sqllogictest
Artifact Content
Not logged in

Artifact 0477324c32cbd9c22e23e35e638fa4484a6d8bbd:


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 ALL + 46 + + 84
----
130

query I rowsort
SELECT 80 col2
----
80

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

query I rowsort
SELECT DISTINCT - 55 + 42 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT - NULLIF ( + + 81, + 6 - + 32 + - + 82 ) * 35 * - 66 + COUNT( * ) AS col1
----
187111

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT - NULLIF ( + + 81, + 6 - + 32 + - + 82 ) * 35 * - 66 + COUNT ( * ) AS col1
----
187111

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT + 13 + + 12 DIV - 23
----
13

skipif mysql # not compatible
query I rowsort label-6
SELECT + 13 + + 12 / - 23
----
13

query II rowsort
SELECT DISTINCT - 62 + 71 AS col0, + 88 * + 51 AS col1
----
9
4488

query I rowsort
SELECT DISTINCT 13 * - 23
----
-299

query I rowsort
SELECT - 16 col0
----
-16

query I rowsort
SELECT DISTINCT + 90 * - - 39 * ( + 69 )
----
242190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-11
SELECT + CAST( NULL AS SIGNED ) * - - 9 AS col1, ( 44 ) AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-11
SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1
----
NULL
44

query I rowsort
SELECT ALL + 72 * + 70 * - - 28
----
141120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-13
SELECT DISTINCT - 17 * 72, COALESCE ( + + COUNT( * ), + - 3 DIV - 9 + - 84 ) * - 53 + - 55 AS col2
----
-1224
-108

skipif mysql # not compatible
query II rowsort label-13
SELECT DISTINCT - 17 * 72, COALESCE ( + + COUNT ( * ), + - 3 / - 9 + - 84 ) * - 53 + - 55 AS col2
----
-1224
-108

query II rowsort
SELECT + 76 * + - 41 * - 48 * 46 * - 46, ( + 91 ) - - + ( + 75 ) AS col0
----
-316485888
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT + CAST( + 58 AS SIGNED ) - - ( 4 ) * + 71
----
342

skipif mysql # not compatible
query I rowsort label-15
SELECT + CAST ( + 58 AS INTEGER ) - - ( 4 ) * + 71
----
342

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT + COUNT( * ) * 78 col1, 30
----
78
30

skipif mysql # not compatible
query II rowsort label-16
SELECT + COUNT ( * ) * 78 col1, 30
----
78
30

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - NULLIF ( + 14, + COUNT( * ) + + 60 + - - 90 + - + NULLIF ( + 78, - + ( + + 87 ) ) + - ( + COUNT( * ) ) + + - 80 + - 33 / + 72 * - 8 + 1 * 27 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-17
SELECT - NULLIF ( + 14, + COUNT ( * ) + + 60 + - - 90 + - + NULLIF ( + 78, - + ( + + 87 ) ) + - ( + COUNT ( * ) ) + + - 80 + - 33 / + 72 * - 8 + 1 * 27 ) AS col2
----
-14

query I rowsort
SELECT DISTINCT + - 87 AS col1
----
-87

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

query I rowsort
SELECT ALL + 5 * - 64 + 60
----
-260

query I rowsort
SELECT DISTINCT 31 * 14 + - 2 + + 84 col0
----
516

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-22
SELECT - 43 * + 32 + - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT - 43 * + 32 + - - CAST ( NULL AS REAL ) AS col1
----
NULL

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

query I rowsort
SELECT ALL - 67 * 43 AS col1
----
-2881

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

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

query I rowsort
SELECT ALL + + 74 * + 52 + 91 AS col1
----
3939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-27
SELECT - - 54 DIV - - 60 * - COUNT( * ) + 37 + + 32 + + 90 * - 12 * + SUM( + 3 ) * - + 67 + 99
----
217248

skipif mysql # not compatible
query I rowsort label-27
SELECT - - 54 / - - 60 * - COUNT ( * ) + 37 + + 32 + + 90 * - 12 * + SUM ( + 3 ) * - + 67 + 99
----
217248

query I rowsort
SELECT DISTINCT + + 20
----
20

query I rowsort
SELECT + 60 + - 35
----
25

query I rowsort
SELECT ALL - 18 * + 43 * - - 46 + 26 + - 37
----
-35615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT + MIN( DISTINCT + + 87 ) DIV 4 * + - 82
----
-1722

skipif mysql # not compatible
query I rowsort label-31
SELECT + MIN ( DISTINCT + + 87 ) / 4 * + - 82
----
-1722

query I rowsort
SELECT - 72 + + - 70 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT ALL - 75 * + - 81 * - MIN( DISTINCT + 79 )
----
-479925

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL - 75 * + - 81 * - MIN ( DISTINCT + 79 )
----
-479925

query I rowsort
SELECT + 84 * + 64
----
5376

query I rowsort
SELECT ALL + 3 * 3 col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-36
SELECT - SUM( - 46 ) + 84 + + 44 * 42, + 15 AS col0
----
1978
15

skipif mysql # not compatible
query II rowsort label-36
SELECT - SUM ( - 46 ) + 84 + + 44 * 42, + 15 AS col0
----
1978
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-37
SELECT DISTINCT + 78 * - COUNT( * ) - + 94 AS col2, - 31 DIV - 89 AS col1
----
-172
0

skipif mysql # not compatible
query II rowsort label-37
SELECT DISTINCT + 78 * - COUNT ( * ) - + 94 AS col2, - 31 / - 89 AS col1
----
-172
0

query I rowsort
SELECT ALL 42 * - + 41
----
-1722

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-41
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL 25 AS col2
----
25

query I rowsort
SELECT - 24 - + 92 * - 76 + + - 36 col1
----
6932

query II rowsort
SELECT DISTINCT - 31 - - 5 + - 58, 6 AS col2
----
-84
6

query I rowsort
SELECT - ( + ( + - 81 ) ) + - 11
----
70

query II rowsort
SELECT - 59 + - 38 * - 75 col0, + 56 * 10 + + - 0 AS col0
----
2791
560

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL ( - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT - NULLIF ( - 11, - 13 )
----
11

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

skipif mysql # not compatible
query I rowsort label-49
SELECT - CAST ( NULL AS INTEGER ) * + 95
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-54
SELECT - 28 + 35 * + - 96, 18 * + + NULLIF ( - - 54, - - ( 16 ) + SUM( - NULLIF ( + 45, + 63 ) ) ) col2
----
-3388
972

skipif mysql # not compatible
query II rowsort label-54
SELECT - 28 + 35 * + - 96, 18 * + + NULLIF ( - - 54, - - ( 16 ) + SUM ( - NULLIF ( + 45, + 63 ) ) ) col2
----
-3388
972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-55
SELECT ALL - ( - ( - 65 ) ) + + - 78 + - + 82 DIV + - MAX( + 35 ) col1
----
-141

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL - ( - ( - 65 ) ) + + - 78 + - + 82 / + - MAX ( + 35 ) col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT - MIN( DISTINCT - + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-56
SELECT - MIN ( DISTINCT - + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT + - CASE + 34 WHEN SUM( DISTINCT + + 46 ) * + + CASE NULLIF ( + 12, 14 * 29 ) WHEN + 51 + + 19 THEN - 72 WHEN - 35 THEN 75 ELSE NULL END * - COUNT( * ) THEN - ( + 23 ) ELSE NULL END + + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT + - CASE + 34 WHEN SUM ( DISTINCT + + 46 ) * + + CASE NULLIF ( + 12, 14 * 29 ) WHEN + 51 + + 19 THEN - 72 WHEN - 35 THEN 75 ELSE NULL END * - COUNT ( * ) THEN - ( + 23 ) ELSE NULL END + + 29 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-58
SELECT - - 7 DIV 67 + 69 AS col2, CAST( NULL AS SIGNED ) * - 57
----
69
NULL

skipif mysql # not compatible
query II rowsort label-58
SELECT - - 7 / 67 + 69 AS col2, CAST ( NULL AS INTEGER ) * - 57
----
69
NULL

query I rowsort
SELECT + + 2 + 52
----
54

query I rowsort
SELECT + 77 + + 35
----
112

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

query I rowsort
SELECT + 91 + 11
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-63
SELECT ALL - - 31 DIV COUNT( * ) DIV - 62 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - - 31 / COUNT ( * ) / - 62 + + 99
----
99

query I rowsort
SELECT + 30 * 2 col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-65
SELECT ALL + COUNT( * ) DIV + 2 + - 33 + + 66 + - + COALESCE ( + + 83, 10 - COUNT( * ) * - 27 * + - 90 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL + COUNT ( * ) / + 2 + - 33 + + 66 + - + COALESCE ( + + 83, 10 - COUNT ( * ) * - 27 * + - 90 ) AS col2
----
-50

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

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

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

query I rowsort
SELECT DISTINCT + ( + 80 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-69
SELECT ALL - 29 DIV 38 + COUNT( CAST( - 90 AS SIGNED ) ) + 78 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL - 29 / 38 + COUNT ( CAST ( - 90 AS INTEGER ) ) + 78 AS col1
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ( - + COUNT( * ) ) * + 96 * - 80 AS col2
----
7680

skipif mysql # not compatible
query I rowsort label-71
SELECT ( - + COUNT ( * ) ) * + 96 * - 80 AS col2
----
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL 50 * - + 93 + + - COUNT( * ) AS col1
----
-4651

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL 50 * - + 93 + + - COUNT ( * ) AS col1
----
-4651

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-73
SELECT + 89 AS col2, + ( + - 83 ) * - - CAST( + 9 AS SIGNED ) + - 26 + - ( + 99 ) AS col2
----
89
-872

skipif mysql # not compatible
query II rowsort label-73
SELECT + 89 AS col2, + ( + - 83 ) * - - CAST ( + 9 AS INTEGER ) + - 26 + - ( + 99 ) AS col2
----
89
-872

query I rowsort
SELECT + - 94
----
-94

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

onlyif mysql # aggregate syntax: 
query II rowsort label-76
SELECT + 99 AS col0, COUNT( * ) * 74 * + 97 + + COUNT( * ) + - 18 + - 88 * + 23 * + 90
----
99
-174999

skipif mysql # not compatible
query II rowsort label-76
SELECT + 99 AS col0, COUNT ( * ) * 74 * + 97 + + COUNT ( * ) + - 18 + - 88 * + 23 * + 90
----
99
-174999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-77
SELECT 57 * - + 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT 57 * - + 80 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 93 * - 60
----
-5580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT DISTINCT 90 - - 62 - - 50 * - + 28 DIV COUNT( * ) col1
----
-1248

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT 90 - - 62 - - 50 * - + 28 / COUNT ( * ) col1
----
-1248

query I rowsort
SELECT DISTINCT 1 * - + 26 col2
----
-26

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

skipif mysql # not compatible
query II rowsort label-81
SELECT DISTINCT - 9 AS col2, COUNT ( * )
----
-9
1

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

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

query I rowsort
SELECT 83 * + 40 col1
----
3320

onlyif mysql # DIV for integer division: 
query II rowsort label-84
SELECT ALL - 18, 41 + - 30 + 93 + + 13 DIV 82 + 97 * ( - 90 ) AS col0
----
-18
-8626

skipif mysql # not compatible
query II rowsort label-84
SELECT ALL - 18, 41 + - 30 + 93 + + 13 / 82 + 97 * ( - 90 ) AS col0
----
-18
-8626

query II rowsort
SELECT + 67 AS col2, - 63
----
67
-63

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

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

query I rowsort
SELECT - 78 AS col0
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT MIN( ALL - 47 ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-88
SELECT MIN ( ALL - 47 ) / + 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT 27 DIV - - 74
----
0

skipif mysql # not compatible
query I rowsort label-89
SELECT 27 / - - 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT 98 * + + 0 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-90
SELECT 98 * + + 0 / + 43
----
0

query I rowsort
SELECT 1 + - 63 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL COUNT( * ) + + + 3 * - 31
----
-92

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL COUNT ( * ) + + + 3 * - 31
----
-92

query II rowsort
SELECT ALL 43 AS col1, 73
----
43
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT 22 * - 32 * MIN( 27 )
----
-19008

skipif mysql # not compatible
query I rowsort label-95
SELECT 22 * - 32 * MIN ( 27 )
----
-19008

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-96
SELECT - 65 AS col1, CAST( NULL AS SIGNED ) + - + ( + 68 ) AS col1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-96
SELECT - 65 AS col1, CAST ( NULL AS INTEGER ) + - + ( + 68 ) AS col1
----
-65
NULL

query I rowsort
SELECT ALL - - 34 + - + 64
----
-30

query II rowsort
SELECT ALL + 25, - 52 + - 17 AS col1
----
25
-69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT ALL - - 59 + - CAST( 79 AS SIGNED ) + - 4 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL - - 59 + - CAST ( 79 AS INTEGER ) + - 4 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT + COUNT( * ) - - 40 col2
----
41

skipif mysql # not compatible
query I rowsort label-101
SELECT + COUNT ( * ) - - 40 col2
----
41

query II rowsort
SELECT + 99 AS col1, 97 AS col0
----
99
97

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

skipif mysql # not compatible
query II rowsort label-103
SELECT - COUNT ( * ), - 53 AS col0
----
-1
-53

query II rowsort
SELECT DISTINCT + 65 AS col0, 49 + + + 18 AS col1
----
65
67

query II rowsort
SELECT 6, + 28 col2
----
6
28

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

query I rowsort
SELECT DISTINCT - - 17 + - 20 col0
----
-3

query II rowsort
SELECT ALL - 58, - 20 AS col0
----
-58
-20

query I rowsort
SELECT 17 + + 13 * - 38 col1
----
-477

query I rowsort
SELECT ALL - 24 * + - 11
----
264

query I rowsort
SELECT 6 * + + COALESCE ( 61, - 49 ) + - + 50 AS col1
----
316

query I rowsort
SELECT ( - 28 ) col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-113
SELECT + 7, - COUNT( * ) * + COUNT( * ) - 70 AS col0
----
7
-71

skipif mysql # not compatible
query II rowsort label-113
SELECT + 7, - COUNT ( * ) * + COUNT ( * ) - 70 AS col0
----
7
-71

query II rowsort
SELECT DISTINCT - 81 AS col0, - 7 * ( 14 ) * 22 AS col1
----
-81
-2156

query I rowsort
SELECT ALL - 96 col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-116
SELECT ALL - CAST( - 92 AS SIGNED ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - CAST ( - 92 AS INTEGER ) AS col0
----
92

query I rowsort
SELECT DISTINCT - NULLIF ( 52, + ( + 4 ) ) col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT ALL + 49 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + 49 / + + 89
----
0

query I rowsort
SELECT ALL - 21 col0
----
-21

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

query I rowsort
SELECT 42 col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT - COUNT( * ) * + - COUNT( ALL + ( - + 45 ) ) + - - 38 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-122
SELECT - COUNT ( * ) * + - COUNT ( ALL + ( - + 45 ) ) + - - 38 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-123
SELECT DISTINCT 48 * + - COUNT( * ) * + 38 * COALESCE ( + 77, - ( 84 ) * ( - 21 ) * - 83 + + - COUNT( * ) - + CAST( NULL AS SIGNED ) * - 3 ) AS col2
----
-140448

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT 48 * + - COUNT ( * ) * + 38 * COALESCE ( + 77, - ( 84 ) * ( - 21 ) * - 83 + + - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * - 3 ) AS col2
----
-140448

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT 11 + - 49 * + COUNT( 57 )
----
-38

skipif mysql # not compatible
query I rowsort label-124
SELECT 11 + - 49 * + COUNT ( 57 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT 82 * - MIN( ALL 39 ) * + 37
----
-118326

skipif mysql # not compatible
query I rowsort label-125
SELECT 82 * - MIN ( ALL 39 ) * + 37
----
-118326

query I rowsort
SELECT 18 * + + 49
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT - SUM( ALL + ( 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT - SUM ( ALL + ( 15 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT DISTINCT COUNT( + 77 ) + - 80 + + 45 + 5
----
-29

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT COUNT ( + 77 ) + - 80 + + 45 + 5
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL 47 + + + 33 + - - 75 - + MIN( DISTINCT + 3 )
----
152

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL 47 + + + 33 + - - 75 - + MIN ( DISTINCT + 3 )
----
152

query I rowsort
SELECT DISTINCT - ( + - 49 ) + + 87 * + 79 AS col1
----
6922

query I rowsort
SELECT ALL + 41 + - 99
----
-58

query I rowsort
SELECT NULLIF ( 89, - 97 ) - + + 31
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT COUNT( * ) + - NULLIF ( 79, - 43 * - 7 * + - 96 ) * - - 60 + - 70 + + COUNT( * ) AS col2
----
-4808

skipif mysql # not compatible
query I rowsort label-133
SELECT COUNT ( * ) + - NULLIF ( 79, - 43 * - 7 * + - 96 ) * - - 60 + - 70 + + COUNT ( * ) AS col2
----
-4808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-134
SELECT ALL SUM( ALL - CAST( + + 95 AS SIGNED ) )
----
-95

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL SUM ( ALL - CAST ( + + 95 AS INTEGER ) )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-135
SELECT DISTINCT CAST( + 87 AS SIGNED ) + 84 col2
----
171

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT CAST ( + 87 AS INTEGER ) + 84 col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT DISTINCT - 88 * + 28 + NULLIF ( + COUNT( - 55 ), 93 )
----
-2463

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - 88 * + 28 + NULLIF ( + COUNT ( - 55 ), 93 )
----
-2463

query I rowsort
SELECT DISTINCT - 24 col2
----
-24

query I rowsort
SELECT - 35 + 0 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-139
SELECT DISTINCT - 28 * 57, - 13 - MAX( + - 60 ) AS col0
----
-1596
47

skipif mysql # not compatible
query II rowsort label-139
SELECT DISTINCT - 28 * 57, - 13 - MAX ( + - 60 ) AS col0
----
-1596
47

query I rowsort
SELECT - - 85 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-141
SELECT - 48 + - + 49 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT - 48 + - + 49 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 72 * ( - - 65 ) AS col0
----
-4680

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-143
SELECT - + 67 * 58, + COALESCE ( + 35, - 56, ( + CAST( 30 AS SIGNED ) ), - + 75 * + 67 ) AS col2, 52 AS col2
----
-3886
35
52

skipif mysql # not compatible
query III rowsort label-143
SELECT - + 67 * 58, + COALESCE ( + 35, - 56, ( + CAST ( 30 AS INTEGER ) ), - + 75 * + 67 ) AS col2, 52 AS col2
----
-3886
35
52

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

query I rowsort
SELECT ALL - - 39 * 51 + 90 AS col1
----
2079

query I rowsort
SELECT DISTINCT + 9 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT - CASE - COUNT( * ) WHEN 21 THEN 69 * + + 30 + 26 ELSE + 31 END * - - 78 AS col2
----
-2418

skipif mysql # not compatible
query I rowsort label-147
SELECT - CASE - COUNT ( * ) WHEN 21 THEN 69 * + + 30 + 26 ELSE + 31 END * - - 78 AS col2
----
-2418

onlyif mysql # aggregate syntax: 
query II rowsort label-148
SELECT COALESCE ( + 64, + COUNT( * ), - 32 ) AS col0, + 16 * + - 75
----
64
-1200

skipif mysql # not compatible
query II rowsort label-148
SELECT COALESCE ( + 64, + COUNT ( * ), - 32 ) AS col0, + 16 * + - 75
----
64
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-149
SELECT ALL + 44 * + ( + - CASE + CAST( + - 98 AS SIGNED ) WHEN - + COUNT( * ) + + 1 + + + 94 + + 0 THEN NULL ELSE + 62 - - COUNT( * ) + 67 END )
----
-5720

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL + 44 * + ( + - CASE + CAST ( + - 98 AS INTEGER ) WHEN - + COUNT ( * ) + + 1 + + + 94 + + 0 THEN NULL ELSE + 62 - - COUNT ( * ) + 67 END )
----
-5720

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

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

query I rowsort
SELECT NULLIF ( - 38, + - 58 ) AS col2
----
-38

query I rowsort
SELECT DISTINCT + 27 * + 53
----
1431

onlyif mysql # DIV for integer division: 
query I rowsort label-153
SELECT + 77 DIV + NULLIF ( - 6, + 44 * - + 96 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-153
SELECT + 77 / + NULLIF ( - 6, + 44 * - + 96 ) AS col0
----
-12

query I rowsort
SELECT NULLIF ( + 9, - 60 )
----
9

query I rowsort
SELECT ALL - 82 * + + 5 AS col1
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT 62 * + - CASE + - 89 WHEN 80 * + COUNT( * ) THEN + - ( 35 ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT 62 * + - CASE + - 89 WHEN 80 * + COUNT ( * ) THEN + - ( 35 ) END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-157
SELECT ALL COALESCE ( - 67, + 75 ) DIV + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL COALESCE ( - 67, + 75 ) / + COUNT ( * ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-158
SELECT - 41 DIV - 58 * + - 22 AS col2, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-158
SELECT - 41 / - 58 * + - 22 AS col2, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL 37 * - 59 + - - COUNT( * ) + + - COUNT( * ) AS col0
----
-2183

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL 37 * - 59 + - - COUNT ( * ) + + - COUNT ( * ) AS col0
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL 5 * - - 92 * - 66 + COUNT( * ) + + + 95 AS col2
----
-30264

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL 5 * - - 92 * - 66 + COUNT ( * ) + + + 95 AS col2
----
-30264

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

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT + COUNT ( * ) / + SUM ( - + 46 )
----
0

query II rowsort
SELECT ALL - 16 * 12 + 46 * + 54 AS col0, - 69 * - 15 * + 48 * + 71
----
2292
3527280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-163
SELECT COUNT( * ) AS col1, - 15 + - + 75 * - ( - SUM( + CAST( NULL AS SIGNED ) ) ) - ( - 6 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-163
SELECT COUNT ( * ) AS col1, - 15 + - + 75 * - ( - SUM ( + CAST ( NULL AS INTEGER ) ) ) - ( - 6 ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT - 74 * - + CASE - - CAST( NULL AS SIGNED ) WHEN + - 35 THEN 58 END * + 55 * + - 76 * + 90 + - CASE COUNT( + 15 ) WHEN - 53 THEN NULL WHEN 93 * 39 - COUNT( * ) - + + 47 / + NULLIF ( - + 6, 5 ) * - 64 - 64 THEN - 18 ELSE + 0 END + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT - 74 * - + CASE - - CAST ( NULL AS INTEGER ) WHEN + - 35 THEN 58 END * + 55 * + - 76 * + 90 + - CASE COUNT ( + 15 ) WHEN - 53 THEN NULL WHEN 93 * 39 - COUNT ( * ) - + + 47 / + NULLIF ( - + 6, 5 ) * - 64 - 64 THEN - 18 ELSE + 0 END + + 3
----
NULL

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

skipif mysql # not compatible
query I rowsort label-165
SELECT + 70 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

query I rowsort
SELECT - - 82 AS col1
----
82

query II rowsort
SELECT 79, 95 AS col0
----
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ALL + 39 * 23 * SUM( ALL 58 ) AS col0
----
52026

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL + 39 * 23 * SUM ( ALL 58 ) AS col0
----
52026

query I rowsort
SELECT + 83 * 75 AS col1
----
6225

query I rowsort
SELECT ALL + + 75 - - 15 * - + 24 col1
----
-285

query II rowsort
SELECT 23, - 24 AS col2
----
23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT ALL 66 - - 72 + - + COALESCE ( - 84, - 97 DIV + 7 + - 0 * 75 ) * - + 53 AS col0
----
-4314

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL 66 - - 72 + - + COALESCE ( - 84, - 97 / + 7 + - 0 * 75 ) * - + 53 AS col0
----
-4314

onlyif mysql # aggregate syntax: 
query II rowsort label-174
SELECT ALL 71 - - MIN( DISTINCT + 16 ) AS col1, - 6 * + - 16
----
87
96

skipif mysql # not compatible
query II rowsort label-174
SELECT ALL 71 - - MIN ( DISTINCT + 16 ) AS col1, - 6 * + - 16
----
87
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-175
SELECT ALL + 68 DIV - + 19 + SUM( DISTINCT - - 34 ) - - 67 col1
----
98

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL + 68 / - + 19 + SUM ( DISTINCT - - 34 ) - - 67 col1
----
98

query II rowsort
SELECT + + 62 * + + ( - 84 ) AS col1, - 33 AS col0
----
-5208
-33

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-178
SELECT - - COALESCE ( CAST( - 4 AS SIGNED ), + + 17 + - COUNT( ALL + + ( - + 8 ) ) * + 66 * MAX( ALL ( 74 ) ) + - 58, - - CASE CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) WHEN + - 69 THEN ( + + 86 ) * + COUNT( 9 ) + + 67 DIV - 38 ELSE NULL END ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-178
SELECT - - COALESCE ( CAST ( - 4 AS INTEGER ), + + 17 + - COUNT ( ALL + + ( - + 8 ) ) * + 66 * MAX ( ALL ( 74 ) ) + - 58, - - CASE CAST ( - CAST ( NULL AS REAL ) AS REAL ) WHEN + - 69 THEN ( + + 86 ) * + COUNT ( 9 ) + + 67 / - 38 ELSE NULL END ) AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT + 86 DIV 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-179
SELECT + 86 / 37 AS col1
----
2

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

skipif mysql # not compatible
query I rowsort label-180
SELECT - - SUM ( + + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT - 69 * - 16 + + - SUM( DISTINCT - 31 ) - 87
----
1048

skipif mysql # not compatible
query I rowsort label-181
SELECT - 69 * - 16 + + - SUM ( DISTINCT - 31 ) - 87
----
1048

onlyif mysql # DIV for integer division: 
query I rowsort label-182
SELECT ALL + 63 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + 63 / 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT ALL 82 DIV 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL 82 / 81 AS col0
----
1

query I rowsort
SELECT ALL - 83 * - 23
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT DISTINCT - COALESCE ( 32, - CASE - - 17 WHEN - COUNT( * ) THEN + 20 END ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - COALESCE ( 32, - CASE - - 17 WHEN - COUNT ( * ) THEN + 20 END ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-186
SELECT DISTINCT - 55 * + + 11 + - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-187
SELECT ALL + 85 DIV - - 48 AS col2, CAST( NULL AS SIGNED ) + - + 28 DIV - 50 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-187
SELECT ALL + 85 / - - 48 AS col2, CAST ( NULL AS INTEGER ) + - + 28 / - 50 AS col2
----
1
NULL

query I rowsort
SELECT ALL 72 * - 65 AS col1
----
-4680

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT + MAX( DISTINCT - 5 ) + + 2
----
-3

skipif mysql # not compatible
query I rowsort label-189
SELECT + MAX ( DISTINCT - 5 ) + + 2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-190
SELECT - CAST( 0 AS SIGNED ) DIV - + 27 - NULLIF ( + + COUNT( * ), - - 3 + 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-190
SELECT - CAST ( 0 AS INTEGER ) / - + 27 - NULLIF ( + + COUNT ( * ), - - 3 + 56 ) AS col0
----
-1

query I rowsort
SELECT - 60 - 4 col0
----
-64

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

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT ALL + 37 DIV + 76 * - 28 + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + 37 / + 76 * - 28 + - 52
----
-52

query I rowsort
SELECT - 0 + - 98 + 93 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-195
SELECT ALL 33 DIV 83 * NULLIF ( 47, + + COALESCE ( 16, + COUNT( * ), + 94 + - 67 ) ) + - - COUNT( DISTINCT - + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL 33 / 83 * NULLIF ( 47, + + COALESCE ( 16, + COUNT ( * ), + 94 + - 67 ) ) + - - COUNT ( DISTINCT - + 70 )
----
1

query I rowsort
SELECT DISTINCT + 49 AS col1
----
49

query II rowsort
SELECT ALL + 14 * + 40, 76 col0
----
560
76

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL + 88 * - - 19 * - - 21 + + COUNT( ALL - 39 )
----
35113

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + 88 * - - 19 * - - 21 + + COUNT ( ALL - 39 )
----
35113

query I rowsort
SELECT - 64 * + - ( + 37 )
----
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT - 70 * + - NULLIF ( 96, 52 ) * 43 + - + ( - 32 ) + - MAX( - 6 ) * - 24 AS col1
----
288848

skipif mysql # not compatible
query I rowsort label-200
SELECT - 70 * + - NULLIF ( 96, 52 ) * 43 + - + ( - 32 ) + - MAX ( - 6 ) * - 24 AS col1
----
288848

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

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

query II rowsort
SELECT + CASE - 79 WHEN 8 * + 56 * + 94 * - 21 * + 84 - + 48 - + + 37 * + 84 / - 29 THEN + 80 END AS col0, 17
----
NULL
17

query I rowsort
SELECT ALL + 11 * + ( - 29 ) + - 62 AS col2
----
-381

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL + 27 * + 40 - - COUNT( * ) + - 60
----
1021

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + 27 * + 40 - - COUNT ( * ) + - 60
----
1021

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT DISTINCT 16 DIV - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT 16 / - 72 AS col2
----
0

query I rowsort
SELECT ALL 39 * + 81 - 91 AS col1
----
3068

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

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT ALL - 2 DIV - COALESCE ( + 42, - - 33 * + 7 * + + 77, 85 * - 26 + 83, - 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - 2 / - COALESCE ( + 42, - - 33 * + 7 * + + 77, 85 * - 26 + 83, - 14 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + 3 - MIN( ALL - 28 ) * + 9 AS col1
----
255

skipif mysql # not compatible
query I rowsort label-210
SELECT + 3 - MIN ( ALL - 28 ) * + 9 AS col1
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-211
SELECT ALL + CASE + - 99 WHEN + 6 / - - CAST( NULL AS SIGNED ) THEN CASE - ( - - 63 ) WHEN 16 THEN NULL WHEN 37 THEN + + 0 + + - COUNT( * ) ELSE - COUNT( * ) - + - 30 + + CASE + SUM( DISTINCT - + 38 ) WHEN - - SUM( DISTINCT - 23 ) + 20 THEN COUNT( * ) + - 56 ELSE + 72 + + ( 56 ) END END WHEN + 93 / + 61 THEN 66 + MAX( 32 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL + CASE + - 99 WHEN + 6 / - - CAST ( NULL AS INTEGER ) THEN CASE - ( - - 63 ) WHEN 16 THEN NULL WHEN 37 THEN + + 0 + + - COUNT ( * ) ELSE - COUNT ( * ) - + - 30 + + CASE + SUM ( DISTINCT - + 38 ) WHEN - - SUM ( DISTINCT - 23 ) + 20 THEN COUNT ( * ) + - 56 ELSE + 72 + + ( 56 ) END END WHEN + 93 / + 61 THEN 66 + MAX ( 32 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT 66 + + CAST( + - 14 AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-212
SELECT 66 + + CAST ( + - 14 AS INTEGER ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT ALL + 11 - + 13 - COALESCE ( - 38, - 3 ) + + - SUM( + 32 )
----
4

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL + 11 - + 13 - COALESCE ( - 38, - 3 ) + + - SUM ( + 32 )
----
4

query I rowsort
SELECT ( - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT - 31 + + COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-215
SELECT - 31 + + COUNT ( * ) AS col1
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-216
SELECT CAST( NULL AS DECIMAL ) * - 29 + - + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT CAST ( NULL AS REAL ) * - 29 + - + 98 AS col1
----
NULL

query I rowsort
SELECT 45 + + - 34 - + 67 * + - 59 + 54
----
4018

query I rowsort
SELECT DISTINCT - 45 * 37 * - 48
----
79920

query II rowsort
SELECT ALL + + 5 * + 62 col0, + 20 AS col1
----
310
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-220
SELECT - 11 + 12 + ( + 12 ) AS col2, + MIN( - 76 ) * - + CAST( NULL AS SIGNED ) + - + 87 + - - 22
----
13
NULL

skipif mysql # not compatible
query II rowsort label-220
SELECT - 11 + 12 + ( + 12 ) AS col2, + MIN ( - 76 ) * - + CAST ( NULL AS INTEGER ) + - + 87 + - - 22
----
13
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-222
SELECT ALL + 26 + + 95 + + COUNT( * ) - COUNT( * ) DIV - 46 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + 26 + + 95 + + COUNT ( * ) - COUNT ( * ) / - 46 AS col2
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-223
SELECT + 38 / - CAST( NULL AS SIGNED ), + 73 AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-223
SELECT + 38 / - CAST ( NULL AS INTEGER ), + 73 AS col1
----
NULL
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-224
SELECT ALL MAX( ALL - 82 ) + 91 DIV 62 + + - ( - + 19 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL MAX ( ALL - 82 ) + 91 / 62 + + - ( - + 19 ) AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-225
SELECT CAST( NULL AS SIGNED ) + + ( CAST( NULL AS SIGNED ) ) + - - 36 - - - 10 + + 83 * MIN( - 56 ) + 93 + ( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT CAST ( NULL AS INTEGER ) + + ( CAST ( NULL AS INTEGER ) ) + - - 36 - - - 10 + + 83 * MIN ( - 56 ) + 93 + ( - 21 )
----
NULL

query I rowsort
SELECT ALL 66 + - 57
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-227
SELECT 85 DIV 3
----
28

skipif mysql # not compatible
query I rowsort label-227
SELECT 85 / 3
----
28

query I rowsort
SELECT 21 + 86 AS col2
----
107

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

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

query II rowsort
SELECT ALL 60 * + + 59 * - + 77 AS col2, 96 col1
----
-272580
96

query I rowsort
SELECT DISTINCT 89 * 38 AS col1
----
3382

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT 11 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-232
SELECT 11 / 17
----
0

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

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

query II rowsort
SELECT 1 AS col1, ( + 27 ) AS col0
----
1
27

query I rowsort
SELECT 72 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-236
SELECT 28 DIV + + COUNT( * ) - SUM( ALL 79 ) - 42, 88 AS col1
----
-93
88

skipif mysql # not compatible
query II rowsort label-236
SELECT 28 / + + COUNT ( * ) - SUM ( ALL 79 ) - 42, 88 AS col1
----
-93
88

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT 43 + + 10 + + - NULLIF ( + 51, 31 ) DIV 54 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-237
SELECT 43 + + 10 + + - NULLIF ( + 51, 31 ) / 54 AS col2
----
53

query I rowsort
SELECT 46 * + 87
----
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT DISTINCT CASE - - CASE - + 79 WHEN - - 16 * + 98 * - 41 + - + CASE 14 WHEN 8 THEN NULL ELSE - - COUNT( * ) * + 3 END THEN + + 92 WHEN + 42 + + 61 * - AVG ( DISTINCT - 41 ) THEN + 49 END WHEN - + 64 + + - 85 + 56 * 68 THEN 96 ELSE NULL END - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT CASE - - CASE - + 79 WHEN - - 16 * + 98 * - 41 + - + CASE 14 WHEN 8 THEN NULL ELSE - - COUNT ( * ) * + 3 END THEN + + 92 WHEN + 42 + + 61 * - AVG ( DISTINCT - 41 ) THEN + 49 END WHEN - + 64 + + - 85 + 56 * 68 THEN 96 ELSE NULL END - + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT - 40 * + + NULLIF ( COALESCE ( 25, - 91 ), + 3 + - 77 ) * + 30 - - COUNT( * ) AS col0
----
-29999

skipif mysql # not compatible
query I rowsort label-240
SELECT - 40 * + + NULLIF ( COALESCE ( 25, - 91 ), + 3 + - 77 ) * + 30 - - COUNT ( * ) AS col0
----
-29999

query I rowsort
SELECT ALL - + 9
----
-9

query I rowsort
SELECT 60 + + 38
----
98

query I rowsort
SELECT + 92 * - + 36 * 33
----
-109296

query I rowsort
SELECT 91 * 17
----
1547

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-247
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) / + + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) / + + 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT - 28 * - - NULLIF ( - 32, + SUM( - 29 ) * + + COUNT( * ) * + + 2 )
----
896

skipif mysql # not compatible
query I rowsort label-248
SELECT - 28 * - - NULLIF ( - 32, + SUM ( - 29 ) * + + COUNT ( * ) * + + 2 )
----
896

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

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

query I rowsort
SELECT - + COALESCE ( + 69, - 96 * + 12 )
----
-69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT DISTINCT - 57 DIV - - 27
----
-2

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT - 57 / - - 27
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-253
SELECT ALL + CAST( - 1 AS SIGNED ) + + - 91
----
-92

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL + CAST ( - 1 AS INTEGER ) + + - 91
----
-92

query II rowsort
SELECT + 70 AS col2, - 23
----
70
-23

query I rowsort
SELECT - - 29
----
29

query I rowsort
SELECT ALL - 64 + 72 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-257
SELECT - 75 * COUNT( * ) + + 0 DIV - 28 + + 73
----
-2

skipif mysql # not compatible
query I rowsort label-257
SELECT - 75 * COUNT ( * ) + + 0 / - 28 + + 73
----
-2

query I rowsort
SELECT ( - + 85 ) * + 15
----
-1275

query II rowsort
SELECT - 96 col1, 21 + 18 AS col0
----
-96
39

query II rowsort
SELECT - 47 AS col0, 15 + + ( - 35 ) * - 94 + - 2
----
-47
3303

query I rowsort
SELECT ALL 42 + 0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT 92 - - - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-262
SELECT 92 - - - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT ALL MAX( DISTINCT 20 )
----
20

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL MAX ( DISTINCT 20 )
----
20

query I rowsort
SELECT ALL 19 + NULLIF ( + NULLIF ( + 47, 64 ), + - 17 / - 1 ) * - 84
----
-3929

query I rowsort
SELECT 1 + + - 65 AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT ALL - 23 + 78 DIV + 76 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL - 23 + 78 / + 76 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT MIN( DISTINCT + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT MIN ( DISTINCT + 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT - 14 * MAX( ALL 64 )
----
-896

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT - 14 * MAX ( ALL 64 )
----
-896

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

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL MIN ( 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT 91 + COUNT( * ) + 96 - + COUNT( ALL ( - 80 ) ) + COUNT( ALL 68 ) * - + 30 * - 91 * - CASE + 77 WHEN + CASE + ( + + 27 ) WHEN - - 75 THEN NULL WHEN + 25 THEN + 50 END * + 78 + + + ( + 2 ) * ( + 22 ) THEN + 32 WHEN COUNT( * ) + + COUNT( * ) * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT 91 + COUNT ( * ) + 96 - + COUNT ( ALL ( - 80 ) ) + COUNT ( ALL 68 ) * - + 30 * - 91 * - CASE + 77 WHEN + CASE + ( + + 27 ) WHEN - - 75 THEN NULL WHEN + 25 THEN + 50 END * + 78 + + + ( + 2 ) * ( + 22 ) THEN + 32 WHEN COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT 27 * - - 72 * 28
----
54432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT - ( - CASE + 53 WHEN + COUNT( * ) THEN + 4 DIV 66 + + - 4 * 34 * 46 + - 42 WHEN + 77 THEN + 21 ELSE - 20 DIV + 31 + + 40 END ) * 23 + + - 25 + - + 61 + - - 42 * - - 28 AS col2
----
2010

skipif mysql # not compatible
query I rowsort label-272
SELECT - ( - CASE + 53 WHEN + COUNT ( * ) THEN + 4 / 66 + + - 4 * 34 * 46 + - 42 WHEN + 77 THEN + 21 ELSE - 20 / + 31 + + 40 END ) * 23 + + - 25 + - + 61 + - - 42 * - - 28 AS col2
----
2010

query I rowsort
SELECT 52 * + ( ( 45 ) ) AS col2
----
2340

query II rowsort
SELECT ALL - 91, ( - 71 ) col1
----
-91
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT + MAX( DISTINCT + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-275
SELECT + MAX ( DISTINCT + 17 ) AS col0
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL COUNT( * ) * - - 97 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL COUNT ( * ) * - - 97 AS col1
----
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL - COUNT( * ) * + 57 + + 53
----
-4

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - COUNT ( * ) * + 57 + + 53
----
-4

query I rowsort
SELECT + + 3 col2
----
3

query I rowsort
SELECT DISTINCT + 47 AS col0
----
47

query I rowsort
SELECT ALL + - 60
----
-60

query I rowsort
SELECT + 29 * - 9 col2
----
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT - NULLIF ( - - 49, - + 4 + - CAST( 18 AS SIGNED ) ) + + - 49 + NULLIF ( NULLIF ( - NULLIF ( CASE 7 WHEN + + 83 THEN NULL WHEN - - 43 * - 56 + - - CASE - ( - 81 ) WHEN + + 91 * + COUNT( * ) * + - 33 THEN NULL ELSE + + 36 - 57 END THEN 10 - - COUNT( * ) END, 73 * + 62 + 60 * 19 ), + CAST( + 71 AS SIGNED ) ), + COUNT( * ) + - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-285
SELECT - NULLIF ( - - 49, - + 4 + - CAST ( 18 AS INTEGER ) ) + + - 49 + NULLIF ( NULLIF ( - NULLIF ( CASE 7 WHEN + + 83 THEN NULL WHEN - - 43 * - 56 + - - CASE - ( - 81 ) WHEN + + 91 * + COUNT ( * ) * + - 33 THEN NULL ELSE + + 36 - 57 END THEN 10 - - COUNT ( * ) END, 73 * + 62 + 60 * 19 ), + CAST ( + 71 AS INTEGER ) ), + COUNT ( * ) + - 53 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-286
SELECT + MIN( + + 67 ), 63 DIV - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
67
63

skipif mysql # not compatible
query II rowsort label-286
SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
67
63

query I rowsort
SELECT ALL + + 82
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-288
SELECT + - COALESCE ( + 67, - 86, COUNT( * ) * 61 * - 45 + + ( + - COUNT( * ) ) ) + - 59 + - 43 * - + 89 * + + COALESCE ( 5, - COUNT( * ) + + - 64 ) + 66 + - CAST( + 0 AS SIGNED ) + - 60 + + 12 - 84 * 56 AS col1
----
14323

skipif mysql # not compatible
query I rowsort label-288
SELECT + - COALESCE ( + 67, - 86, COUNT ( * ) * 61 * - 45 + + ( + - COUNT ( * ) ) ) + - 59 + - 43 * - + 89 * + + COALESCE ( 5, - COUNT ( * ) + + - 64 ) + 66 + - CAST ( + 0 AS INTEGER ) + - 60 + + 12 - 84 * 56 AS col1
----
14323

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

skipif mysql # not compatible
query I rowsort label-289
SELECT + ( SUM ( + + 98 ) )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-290
SELECT ALL + + 40 AS col0, - CASE COUNT( * ) WHEN + + 81 THEN - COALESCE ( + - 17, - - 49 * - 60 ) * + CASE - 42 WHEN 45 THEN - + COUNT( * ) * 66 ELSE NULL END END
----
40
NULL

skipif mysql # not compatible
query II rowsort label-290
SELECT ALL + + 40 AS col0, - CASE COUNT ( * ) WHEN + + 81 THEN - COALESCE ( + - 17, - - 49 * - 60 ) * + CASE - 42 WHEN 45 THEN - + COUNT ( * ) * 66 ELSE NULL END END
----
40
NULL

query I rowsort
SELECT - 79 + + 2 AS col0
----
-77

query I rowsort
SELECT ALL 49 + + + 24 + + - 78 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-293
SELECT + 32 + COUNT( * ) + - 27 + + - 68 * 86 * + - ( - 10 ) * - CASE - 99 WHEN 47 THEN + 84 DIV - 42 WHEN COALESCE ( CASE + + 23 WHEN - 3 + CAST( 99 AS SIGNED ) THEN NULL WHEN + + 91 * - + 14 THEN NULL ELSE + COUNT( * ) * + ( 49 - - 43 ) END, + MIN( DISTINCT + 64 ) * CASE 47 DIV + 63 WHEN - 74 THEN NULL WHEN MIN( - ( - 27 ) ) + 84 THEN NULL WHEN 52 * - 4 + - 10 * 9 THEN CAST( NULL AS SIGNED ) ELSE NULL END, - 58 ) * + 33 THEN 6 * + COUNT( * ) ELSE 19 + + 67 END
----
5029286

skipif mysql # not compatible
query I rowsort label-293
SELECT + 32 + COUNT ( * ) + - 27 + + - 68 * 86 * + - ( - 10 ) * - CASE - 99 WHEN 47 THEN + 84 / - 42 WHEN COALESCE ( CASE + + 23 WHEN - 3 + CAST ( 99 AS INTEGER ) THEN NULL WHEN + + 91 * - + 14 THEN NULL ELSE + COUNT ( * ) * + ( 49 - - 43 ) END, + MIN ( DISTINCT + 64 ) * CASE 47 / + 63 WHEN - 74 THEN NULL WHEN MIN ( - ( - 27 ) ) + 84 THEN NULL WHEN 52 * - 4 + - 10 * 9 THEN CAST ( NULL AS INTEGER ) ELSE NULL END, - 58 ) * + 33 THEN 6 * + COUNT ( * ) ELSE 19 + + 67 END
----
5029286

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-294
SELECT ALL + - CAST( NULL AS DECIMAL ) + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL + - CAST ( NULL AS REAL ) + 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT ALL - + COUNT( * ) * - + MAX( - + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL - + COUNT ( * ) * - + MAX ( - + 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT - - 24 + - MAX( DISTINCT - + 9 ) + ( - 37 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-296
SELECT - - 24 + - MAX ( DISTINCT - + 9 ) + ( - 37 ) AS col0
----
-4

query I rowsort
SELECT - - 13 + + - ( - 86 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL + 27 + - 14 * + 72 * MIN( DISTINCT + 63 ) AS col1
----
-63477

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL + 27 + - 14 * + 72 * MIN ( DISTINCT + 63 ) AS col1
----
-63477

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL MAX( DISTINCT 51 )
----
51

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL MAX ( DISTINCT 51 )
----
51

query I rowsort
SELECT ALL 13 * - 46
----
-598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-301
SELECT - 25 + COALESCE ( - CAST( 58 AS SIGNED ), + 10, - - 98 * + + COUNT( * ) + 84 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-301
SELECT - 25 + COALESCE ( - CAST ( 58 AS INTEGER ), + 10, - - 98 * + + COUNT ( * ) + 84 ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT ALL + 54 DIV 16 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL + 54 / 16 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-303
SELECT DISTINCT MIN( ( + - 77 ) ) AS col0, - CAST( NULL AS SIGNED )
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-303
SELECT DISTINCT MIN ( ( + - 77 ) ) AS col0, - CAST ( NULL AS INTEGER )
----
-77
NULL

query I rowsort
SELECT ALL - 27 + 95 + + 67 AS col0
----
135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT - CASE - - ( + ( - ( - SUM( + - 66 ) ) ) ) WHEN + 68 + + - 75 THEN NULL WHEN 74 THEN - 89 * - - 17 / - 26 * - 67 + + 49 ELSE NULL END / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT - CASE - - ( + ( - ( - SUM ( + - 66 ) ) ) ) WHEN + 68 + + - 75 THEN NULL WHEN 74 THEN - 89 * - - 17 / - 26 * - 67 + + 49 ELSE NULL END / + 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-307
SELECT - 95 + + NULLIF ( 97, - + COUNT( * ) ) * + 0 DIV - 41
----
-95

skipif mysql # not compatible
query I rowsort label-307
SELECT - 95 + + NULLIF ( 97, - + COUNT ( * ) ) * + 0 / - 41
----
-95

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

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL + 55 / + - ( COUNT ( * ) )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-309
SELECT - 71 + + 64 + + COUNT( * ) AS col1, + COUNT( * ) + + 92 + 28 + + 23 * + - ( - 48 ) + - 56 - - + 13 * 42 + 66 + + 28 + ( COUNT( * ) ) + + + 76 * - CAST( - ( - 87 ) AS SIGNED ) * 18 + 1 + + COUNT( * ) * + 61
----
-6
-117144

skipif mysql # not compatible
query II rowsort label-309
SELECT - 71 + + 64 + + COUNT ( * ) AS col1, + COUNT ( * ) + + 92 + 28 + + 23 * + - ( - 48 ) + - 56 - - + 13 * 42 + 66 + + 28 + ( COUNT ( * ) ) + + + 76 * - CAST ( - ( - 87 ) AS INTEGER ) * 18 + 1 + + COUNT ( * ) * + 61
----
-6
-117144

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT DISTINCT ( SUM( DISTINCT - - 6 ) )
----
6

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT ( SUM ( DISTINCT - - 6 ) )
----
6

query I rowsort
SELECT DISTINCT ( + + 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT DISTINCT ( + SUM( + 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT ( + SUM ( + 93 ) )
----
93

query I rowsort
SELECT ALL - 65 * - + 8 * + 88
----
45760

query I rowsort
SELECT - 35 * + 38 AS col0
----
-1330

query I rowsort
SELECT DISTINCT + ( 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-316
SELECT + MAX( + + 2 ) AS col1, + 54 * - - 11 col0
----
2
594

skipif mysql # not compatible
query II rowsort label-316
SELECT + MAX ( + + 2 ) AS col1, + 54 * - - 11 col0
----
2
594

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

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

query I rowsort
SELECT DISTINCT + 23
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT - 83 / - CASE - COUNT( * ) WHEN + + CAST( ( + - 29 ) AS SIGNED ) THEN + 31 END - - 19 + + 51 + - NULLIF ( + 8, - 1 + - 12 ) * + 51 + - + 90 * + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT - 83 / - CASE - COUNT ( * ) WHEN + + CAST ( ( + - 29 ) AS INTEGER ) THEN + 31 END - - 19 + + 51 + - NULLIF ( + 8, - 1 + - 12 ) * + 51 + - + 90 * + 44 AS col1
----
NULL

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

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

query I rowsort
SELECT + - 29 + + - 7 AS col1
----
-36

query I rowsort
SELECT DISTINCT + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL ( - + COUNT( * ) ) * - 79 + 30 + + COUNT( * ) + + 78 AS col2
----
188

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL ( - + COUNT ( * ) ) * - 79 + 30 + + COUNT ( * ) + + 78 AS col2
----
188

query I rowsort
SELECT + + 85 - 10 + 16 * - 13 * - - 49 * + 97
----
-988549

query I rowsort
SELECT DISTINCT + 70 * + + 43 + - 92 AS col1
----
2918

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT 10 * + ( + + 28 ) - + + 43 DIV - 16 + 81 AS col2
----
363

skipif mysql # not compatible
query I rowsort label-327
SELECT 10 * + ( + + 28 ) - + + 43 / - 16 + 81 AS col2
----
363

query II rowsort
SELECT ALL 94 * + 24 AS col2, 63
----
2256
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-329
SELECT ALL - NULLIF ( - 74, - 11 ) * + 85 * + 12 + COUNT( * ) * 46 * ( + 4 ) * 26 + - COUNT( * ) + COALESCE ( - 51, ( - COUNT( * ) ) + - 99 ) + + COALESCE ( + CAST( NULL AS SIGNED ), - + 91 )
----
80121

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - NULLIF ( - 74, - 11 ) * + 85 * + 12 + COUNT ( * ) * 46 * ( + 4 ) * 26 + - COUNT ( * ) + COALESCE ( - 51, ( - COUNT ( * ) ) + - 99 ) + + COALESCE ( + CAST ( NULL AS INTEGER ), - + 91 )
----
80121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT + 57 * + ( - 22 ) * - - COUNT( * ) + + 4 AS col1
----
-1250

skipif mysql # not compatible
query I rowsort label-331
SELECT + 57 * + ( - 22 ) * - - COUNT ( * ) + + 4 AS col1
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT + MIN( 19 ) * 49 - + 20 AS col2
----
911

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT + MIN ( 19 ) * 49 - + 20 AS col2
----
911

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT ALL + COALESCE ( + 44, CASE + + COUNT( * ) WHEN 48 * + ( + ( + AVG ( DISTINCT + 94 ) ) ) - + ( - - 78 ) THEN NULL WHEN + 38 THEN 96 ELSE NULL END * - 64 - - - 53 ) * - - COUNT( * ) * + + 86
----
3784

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + COALESCE ( + 44, CASE + + COUNT ( * ) WHEN 48 * + ( + ( + AVG ( DISTINCT + 94 ) ) ) - + ( - - 78 ) THEN NULL WHEN + 38 THEN 96 ELSE NULL END * - 64 - - - 53 ) * - - COUNT ( * ) * + + 86
----
3784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-334
SELECT + - ( - + ( + + 90 ) ) + 29 * - 67 * - - CAST( NULL AS SIGNED ) * + 12 AS col1, + COUNT( * ) * + - 34 AS col2
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-334
SELECT + - ( - + ( + + 90 ) ) + 29 * - 67 * - - CAST ( NULL AS INTEGER ) * + 12 AS col1, + COUNT ( * ) * + - 34 AS col2
----
NULL
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT + 4 - - CASE - COUNT( * ) WHEN 48 * + + COALESCE ( + + COUNT( - 1 ), ( - COUNT( * ) ) / + 68 + 69 - - 87 * - COALESCE ( 68, 97 + - ( - + ( + + 49 ) ) - - - 85 - + - 20 / ( - + ( 13 ) ) ) + 86 * + 64 ) + - 88 * 12 THEN NULL WHEN + 12 * - 80 + + 56 THEN 5 * + 75 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-335
SELECT + 4 - - CASE - COUNT ( * ) WHEN 48 * + + COALESCE ( + + COUNT ( - 1 ), ( - COUNT ( * ) ) / + 68 + 69 - - 87 * - COALESCE ( 68, 97 + - ( - + ( + + 49 ) ) - - - 85 - + - 20 / ( - + ( 13 ) ) ) + 86 * + 64 ) + - 88 * 12 THEN NULL WHEN + 12 * - 80 + + 56 THEN 5 * + 75 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT + - MIN( DISTINCT + - 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-337
SELECT + - MIN ( DISTINCT + - 8 ) AS col1
----
8

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

query I rowsort
SELECT - NULLIF ( - - 6, - 69 )
----
-6

query I rowsort
SELECT DISTINCT - NULLIF ( 6, 83 ) AS col0
----
-6

query I rowsort
SELECT ALL CASE + - 23 WHEN 54 THEN - - 47 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL - CAST( 10 AS SIGNED ) * - 89 * + 15
----
13350

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - CAST ( 10 AS INTEGER ) * - 89 * + 15
----
13350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-343
SELECT + 89 + 73 * - 47 + COALESCE ( CASE + 6 WHEN + + ( - COUNT( * ) ) THEN 86 * - - 55 * - 98 WHEN + 26 THEN + + AVG ( ALL 88 ) DIV 22 + - ( + 7 ) ELSE NULL END, ( 58 ) * - 45 )
----
-5952

skipif mysql # not compatible
query I rowsort label-343
SELECT + 89 + 73 * - 47 + COALESCE ( CASE + 6 WHEN + + ( - COUNT ( * ) ) THEN 86 * - - 55 * - 98 WHEN + 26 THEN + + AVG ( ALL 88 ) / 22 + - ( + 7 ) ELSE NULL END, ( 58 ) * - 45 )
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT - 54 * - MIN( - - 23 )
----
1242

skipif mysql # not compatible
query I rowsort label-344
SELECT - 54 * - MIN ( - - 23 )
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-345
SELECT ALL SUM( DISTINCT - 8 ) * 38 AS col0, 16 + 16 + - + 78 * CASE + 71 WHEN + 55 - 9 - + + 96 + + 55 + 32 THEN NULL WHEN - - 2 THEN + 96 DIV + 58 + - 94 - - 50 DIV 96 ELSE + + COUNT( DISTINCT 88 ) END
----
-304
-46

skipif mysql # not compatible
query II rowsort label-345
SELECT ALL SUM ( DISTINCT - 8 ) * 38 AS col0, 16 + 16 + - + 78 * CASE + 71 WHEN + 55 - 9 - + + 96 + + 55 + 32 THEN NULL WHEN - - 2 THEN + 96 / + 58 + - 94 - - 50 / 96 ELSE + + COUNT ( DISTINCT 88 ) END
----
-304
-46

query I rowsort
SELECT + 65 + - 97 + + + 57 AS col1
----
25

query II rowsort
SELECT 17 AS col2, 48 * + - 70 AS col1
----
17
-3360

query I rowsort
SELECT + 83 * - 31 * ( - + 25 ) AS col1
----
64325

query I rowsort
SELECT ALL ( 57 ) AS col1
----
57

query II rowsort
SELECT 31, + 17 AS col2
----
31
17

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-352
SELECT - 35 - - - CAST( NULL AS SIGNED ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT - 35 - - - CAST ( NULL AS INTEGER ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL CAST( 38 AS SIGNED ) col1
----
38

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL CAST ( 38 AS INTEGER ) col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-354
SELECT DISTINCT CASE 29 WHEN 77 + + 42 THEN CASE + + CASE - 66 WHEN + 23 THEN ( + 49 ) + 4 ELSE NULL END WHEN - COALESCE ( + 1, 22 ) * - COUNT( * ) THEN + - MIN( ALL + + CAST( - + 91 AS DECIMAL ) ) * ( - - COALESCE ( - 31, + 39 * + 34 ) ) ELSE NULL END WHEN + NULLIF ( - COALESCE ( CAST( - COUNT( * ) AS SIGNED ), + COUNT( 9 ) + + NULLIF ( + 90, 5 ) ), + 73 ) + - 3 THEN NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT CASE 29 WHEN 77 + + 42 THEN CASE + + CASE - 66 WHEN + 23 THEN ( + 49 ) + 4 ELSE NULL END WHEN - COALESCE ( + 1, 22 ) * - COUNT ( * ) THEN + - MIN ( ALL + + CAST ( - + 91 AS REAL ) ) * ( - - COALESCE ( - 31, + 39 * + 34 ) ) ELSE NULL END WHEN + NULLIF ( - COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), + COUNT ( 9 ) + + NULLIF ( + 90, 5 ) ), + 73 ) + - 3 THEN NULL END * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 79 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT 52 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-356
SELECT 52 / 53
----
0

query II rowsort
SELECT - 33 AS col1, 70 AS col2
----
-33
70

onlyif mysql # aggregate syntax: 
query II rowsort label-358
SELECT COUNT( * ) + + + 19 + - 9 AS col2, 12 + 27 AS col0
----
11
39

skipif mysql # not compatible
query II rowsort label-358
SELECT COUNT ( * ) + + + 19 + - 9 AS col2, 12 + 27 AS col0
----
11
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-359
SELECT 61 - 96 DIV - 80 AS col0, + 10 + + CAST( - - 1 AS SIGNED ) AS col0
----
62
11

skipif mysql # not compatible
query II rowsort label-359
SELECT 61 - 96 / - 80 AS col0, + 10 + + CAST ( - - 1 AS INTEGER ) AS col0
----
62
11

query I rowsort
SELECT ALL - 97 col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT 32 * - CASE + 92 WHEN 60 + + + 69 * - 76 - 62 THEN + + 26 + + 77 + + 40 ELSE NULL END / + 18 * COUNT( * ) * + - 21, 62 col2
----
NULL
62

skipif mysql # not compatible
query II rowsort label-361
SELECT 32 * - CASE + 92 WHEN 60 + + + 69 * - 76 - 62 THEN + + 26 + + 77 + + 40 ELSE NULL END / + 18 * COUNT ( * ) * + - 21, 62 col2
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT COALESCE ( + + COUNT( * ), + ( 79 ) * + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-362
SELECT COALESCE ( + + COUNT ( * ), + ( 79 ) * + COUNT ( * ) ) col2
----
1

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

query I rowsort
SELECT DISTINCT + - 1 + 74
----
73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT ALL - COALESCE ( - + CAST( + ( COUNT( * ) ) AS SIGNED ), + 58 + 77 + + 13 ) + ( 51 )
----
52

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL - COALESCE ( - + CAST ( + ( COUNT ( * ) ) AS INTEGER ), + 58 + 77 + + 13 ) + ( 51 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-367
SELECT - 43 DIV 72 + 37 * COUNT( * ) DIV + COUNT( * ) + + COUNT( * ) * + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-367
SELECT - 43 / 72 + 37 * COUNT ( * ) / + COUNT ( * ) + + COUNT ( * ) * + - COUNT ( * )
----
36

query I rowsort
SELECT ALL - - 64
----
64

query I rowsort
SELECT DISTINCT + + 96 * 25
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT 37 * + 47 + + COUNT( * ) + + 70 * + 14
----
2720

skipif mysql # not compatible
query I rowsort label-370
SELECT 37 * + 47 + + COUNT ( * ) + + 70 * + 14
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT + 5 * + 53 + + 14 + + - COUNT( * ) AS col0
----
278

skipif mysql # not compatible
query I rowsort label-371
SELECT + 5 * + 53 + + 14 + + - COUNT ( * ) AS col0
----
278

query II rowsort
SELECT + - 4 AS col0, NULLIF ( - 8, - + AVG ( 32 ) + - 13 )
----
-4
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT + - 1 DIV + 76 + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-374
SELECT + - 1 / + 76 + 58 AS col2
----
58

query I rowsort
SELECT 35 * + - 93 AS col0
----
-3255

query I rowsort
SELECT DISTINCT - + 62
----
-62

query I rowsort
SELECT 84 * 9 AS col2
----
756

query I rowsort
SELECT DISTINCT - 85 * 98 * - 5 AS col0
----
41650

onlyif mysql # DIV for integer division: 
query I rowsort label-379
SELECT DISTINCT + 74 DIV + ( - - 8 ) + - + 99 * + + 57
----
-5634

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT + 74 / + ( - - 8 ) + - + 99 * + + 57
----
-5634

query I rowsort
SELECT ALL - 41 * - 66 AS col1
----
2706

query I rowsort
SELECT - 47 col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT COUNT( * ) + - MAX( ALL - - 29 ) - - 47
----
19

skipif mysql # not compatible
query I rowsort label-382
SELECT COUNT ( * ) + - MAX ( ALL - - 29 ) - - 47
----
19

query I rowsort
SELECT ALL 60 * + 17 AS col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT 1 * - + 33 * COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-384
SELECT 1 * - + 33 * COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT 36 + + 73 * + - 37 * - SUM( + + 73 ) * 67 AS col2
----
13210627

skipif mysql # not compatible
query I rowsort label-385
SELECT 36 + + 73 * + - 37 * - SUM ( + + 73 ) * 67 AS col2
----
13210627

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT NULLIF ( COUNT( * ), + + 44 + - 50 + - 51 * - - ( 36 ) ) + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-386
SELECT NULLIF ( COUNT ( * ), + + 44 + - 50 + - 51 * - - ( 36 ) ) + - 19
----
-18

query I rowsort
SELECT 26 + + CASE + + NULLIF ( + 87, + 84 * + NULLIF ( - + 29, + + 48 ) ) WHEN + 62 THEN NULL WHEN - 26 THEN - + 87 END
----
NULL

query I rowsort
SELECT DISTINCT 15 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-389
SELECT NULLIF ( 8, + 35 * - - COUNT( ALL + + 92 ) ) + - 11 - CASE - 5 WHEN - 63 THEN - + 79 WHEN + + 33 THEN + MAX( DISTINCT + ( - 80 ) ) + + 60 + 44 + + CAST( + - ( COUNT( * ) ) AS DECIMAL ) * COUNT( * ) * + 53 * - 33 + COALESCE ( + 54, 27, 33 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT NULLIF ( 8, + 35 * - - COUNT ( ALL + + 92 ) ) + - 11 - CASE - 5 WHEN - 63 THEN - + 79 WHEN + + 33 THEN + MAX ( DISTINCT + ( - 80 ) ) + + 60 + 44 + + CAST ( + - ( COUNT ( * ) ) AS REAL ) * COUNT ( * ) * + 53 * - 33 + COALESCE ( + 54, 27, 33 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 20 * 36 AS col0
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-391
SELECT CAST( 67 AS SIGNED ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-391
SELECT CAST ( 67 AS INTEGER ) * 0
----
0

query I rowsort
SELECT DISTINCT 5 + + + 94 AS col2
----
99

query II rowsort
SELECT 80 + 16 AS col0, + 55
----
96
55

query I rowsort
SELECT ALL + 2 + 4 AS col0
----
6

query I rowsort
SELECT ALL 70 + - - 93
----
163

query I rowsort
SELECT DISTINCT 83 * - 12 col2
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT MAX( ALL + 41 ) * + 2
----
82

skipif mysql # not compatible
query I rowsort label-397
SELECT MAX ( ALL + 41 ) * + 2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT - SUM( ALL - - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT - SUM ( ALL - - 71 ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT DISTINCT - COALESCE ( - - 13, + - AVG ( - 78 ) DIV - - 11, 23 DIV 0 ) + + + 22
----
9

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT - COALESCE ( - - 13, + - AVG ( - 78 ) / - - 11, 23 / 0 ) + + + 22
----
9

query I rowsort
SELECT ALL + ( + 12 ) + - - 67 AS col0
----
79

query I rowsort
SELECT - 85 * + - 4 * + 60
----
20400

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT ALL - 97 DIV 87 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL - 97 / 87 AS col0
----
-1

query I rowsort
SELECT + - 60 col1
----
-60

query I rowsort
SELECT DISTINCT - 80 + - 35 + + 17 col1
----
-98

query I rowsort
SELECT - + 83 * 22 + - CASE - 79 WHEN 23 THEN + 11 + - + ( - - 84 ) ELSE NULL END + + 5 AS col2
----
NULL

query II rowsort
SELECT ALL - 47 - - + 93 AS col2, - 85
----
46
-85

query I rowsort
SELECT DISTINCT + 89 * + - 55 * - 27 * + 34 * - 77
----
-346007970

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

query I rowsort
SELECT 99 - - 61 AS col1
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL + + NULLIF ( + 98, 15 + - MAX( + + NULLIF ( + + 0, + 87 ) ) * + 52 ) * - CAST( NULL AS SIGNED ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL + + NULLIF ( + 98, 15 + - MAX ( + + NULLIF ( + + 0, + 87 ) ) * + 52 ) * - CAST ( NULL AS INTEGER ) * + 8
----
NULL

query I rowsort
SELECT DISTINCT - 1 col2
----
-1

query I rowsort
SELECT 92 * 35 - - 68 col2
----
3288

query I rowsort
SELECT DISTINCT - - 96
----
96

query II rowsort
SELECT ALL - - COALESCE ( - 2, + - 16, 52 ) AS col1, 99 + - 90 AS col0
----
-2
9

query II rowsort
SELECT ALL - ( + 57 ) AS col1, 8 + ( + ( + 46 ) ) * 98
----
-57
4516

query I rowsort
SELECT 22 * - ( - 39 ) AS col1
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL + MAX( ALL - 99 ) * - 51 AS col0
----
5049

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + MAX ( ALL - 99 ) * - 51 AS col0
----
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT ALL - SUM( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - SUM ( 73 )
----
-73

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

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

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

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

query I rowsort
SELECT 46 * 53
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT ALL COALESCE ( - ( - COUNT( * ) ), - + COUNT( - 21 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL COALESCE ( - ( - COUNT ( * ) ), - + COUNT ( - 21 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-423
SELECT - 2, CASE 75 WHEN + 32 * + - 18 + + CAST( + 27 AS SIGNED ) THEN NULL ELSE - - CASE WHEN 55 IS NOT NULL THEN NULL ELSE + CAST( NULL AS SIGNED ) END / + 35 END AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-423
SELECT - 2, CASE 75 WHEN + 32 * + - 18 + + CAST ( + 27 AS INTEGER ) THEN NULL ELSE - - CASE WHEN 55 IS NOT NULL THEN NULL ELSE + CAST ( NULL AS INTEGER ) END / + 35 END AS col1
----
-2
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT DISTINCT 71 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT 71 / 57
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT - MIN( ALL - - CASE + 2 WHEN + 40 THEN NULL ELSE 82 * + 66 END )
----
-5412

skipif mysql # not compatible
query I rowsort label-426
SELECT - MIN ( ALL - - CASE + 2 WHEN + 40 THEN NULL ELSE 82 * + 66 END )
----
-5412

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

query I rowsort
SELECT ALL 70 + + + 92
----
162

query I rowsort
SELECT - 76 + - - 53
----
-23

query I rowsort
SELECT + 82 * 50 AS col0
----
4100

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL 46 + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL 46 + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT - 52 + + 53
----
1

query I rowsort
SELECT ALL 64 + - 54
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT + 34 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-434
SELECT + 34 / + 94 AS col2
----
0

query I rowsort
SELECT ALL 40 + - 3 * - 79 * + 14
----
3358

query I rowsort
SELECT + 46 - 30
----
16

query I rowsort
SELECT ALL + 43 + + - 66 - 28
----
-51

query I rowsort
SELECT DISTINCT - ( - 88 ) + NULLIF ( 84, + ( + 48 ) * + 56 * 37 + + 23 + - - 64 * + 68 ) * + - 14
----
-1088

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-439
SELECT + - 98 + COUNT( * ) DIV 17 col0, - 73 DIV 57 * + 62
----
-98
-62

skipif mysql # not compatible
query II rowsort label-439
SELECT + - 98 + COUNT ( * ) / 17 col0, - 73 / 57 * + 62
----
-98
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-440
SELECT ALL - CASE + - 29 WHEN + + CAST( + 17 AS DECIMAL ) THEN 52 + - ( + + ( - 43 ) ) END + 96 + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - CASE + - 29 WHEN + + CAST ( + 17 AS REAL ) THEN 52 + - ( + + ( - 43 ) ) END + 96 + - 39
----
NULL

query I rowsort
SELECT ALL + + 71 + - 42
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT + 43 - - NULLIF ( - 86, + - COUNT( * ) * - 45 + + + CASE 76 WHEN - ( + 18 ) THEN + 95 + - 74 ELSE + 97 END )
----
-43

skipif mysql # not compatible
query I rowsort label-442
SELECT + 43 - - NULLIF ( - 86, + - COUNT ( * ) * - 45 + + + CASE 76 WHEN - ( + 18 ) THEN + 95 + - 74 ELSE + 97 END )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - CASE - 28 WHEN + COALESCE ( - - 98, - 2 ) + + + ( + - 56 ) THEN NULL ELSE 20 * + COALESCE ( 36, 47 + 17, + COUNT( * ) * 26 * + ( + 68 ) * + ( 18 ) ) + ( 13 ) END * - 41 + - COUNT( * )
----
30052

skipif mysql # not compatible
query I rowsort label-443
SELECT - CASE - 28 WHEN + COALESCE ( - - 98, - 2 ) + + + ( + - 56 ) THEN NULL ELSE 20 * + COALESCE ( 36, 47 + 17, + COUNT ( * ) * 26 * + ( + 68 ) * + ( 18 ) ) + ( 13 ) END * - 41 + - COUNT ( * )
----
30052

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL 26 * + 76 + - COUNT( 6 )
----
1975

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL 26 * + 76 + - COUNT ( 6 )
----
1975

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

query I rowsort
SELECT ALL - ( + 69 ) * ( 43 ) * 29 - - - 68 + + + 29 * + 80 + 17 + - + 9
----
-83783

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT DISTINCT 84 * ( + - 18 ), COUNT( * ) AS col0
----
-1512
1

skipif mysql # not compatible
query II rowsort label-447
SELECT DISTINCT 84 * ( + - 18 ), COUNT ( * ) AS col0
----
-1512
1

query I rowsort
SELECT DISTINCT + 50 * ( + + COALESCE ( + 39, + - 66, + 67 ) ) - + + 36 * + + 21 + 73 AS col2
----
1267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-449
SELECT DISTINCT - + NULLIF ( + 57, CASE + 37 WHEN CAST( NULL AS SIGNED ) / - - 81 / 38 * - + COUNT( * ) THEN + 82 ELSE NULL END * + - 99 + ( + + 36 ) + - + 62 - + 80 ) * - 74 - + 52 AS col2
----
4166

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - + NULLIF ( + 57, CASE + 37 WHEN CAST ( NULL AS INTEGER ) / - - 81 / 38 * - + COUNT ( * ) THEN + 82 ELSE NULL END * + - 99 + ( + + 36 ) + - + 62 - + 80 ) * - 74 - + 52 AS col2
----
4166

query II rowsort
SELECT DISTINCT + + 11 AS col0, + 13 AS col2
----
11
13

query I rowsort
SELECT ALL + - 85 col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-452
SELECT ALL - COUNT( * ) DIV + SUM( ALL 30 ) col1, + 21 * 21 * - 20 col0
----
0
-8820

skipif mysql # not compatible
query II rowsort label-452
SELECT ALL - COUNT ( * ) / + SUM ( ALL 30 ) col1, + 21 * 21 * - 20 col0
----
0
-8820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-453
SELECT - CASE 19 WHEN ( - + COUNT( * ) ) THEN - 6 WHEN - 35 + + - 47 - - 63 THEN NULL ELSE + COALESCE ( - 80, - 2 ) END * COALESCE ( + + 13, + COALESCE ( + 83, + 57 ) * 7 * COALESCE ( + ( - - 21 ), 72 + - 88, CAST( 6 AS SIGNED ) * + COUNT( * ) + 15, COALESCE ( 24, 57 + + 94 ) ) + 75 )
----
1040

skipif mysql # not compatible
query I rowsort label-453
SELECT - CASE 19 WHEN ( - + COUNT ( * ) ) THEN - 6 WHEN - 35 + + - 47 - - 63 THEN NULL ELSE + COALESCE ( - 80, - 2 ) END * COALESCE ( + + 13, + COALESCE ( + 83, + 57 ) * 7 * COALESCE ( + ( - - 21 ), 72 + - 88, CAST ( 6 AS INTEGER ) * + COUNT ( * ) + 15, COALESCE ( 24, 57 + + 94 ) ) + 75 )
----
1040

query I rowsort
SELECT ( - 87 )
----
-87

query I rowsort
SELECT - 73 * - ( + 84 ) + + 20 AS col0
----
6152

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT + 12 + AVG ( - 90 ) * 25 * + 57 + - NULLIF ( + COUNT( + 29 ), 0 * + - COUNT( * ) ) * + - COUNT( - 90 ) + - CASE 59 WHEN + 99 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT + 12 + AVG ( - 90 ) * 25 * + 57 + - NULLIF ( + COUNT ( + 29 ), 0 * + - COUNT ( * ) ) * + - COUNT ( - 90 ) + - CASE 59 WHEN + 99 THEN - + COUNT ( * ) END
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT + 42 DIV + 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-458
SELECT + 42 / + 45 AS col0
----
0

query I rowsort
SELECT - 48 * + 13 col1
----
-624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-460
SELECT - 60 + + 6 + COALESCE ( ( + 0 ), 92 / + 56 + + + 99 ) + + 54 * + 3 + + CAST( NULL AS SIGNED ) AS col2, - 66
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-460
SELECT - 60 + + 6 + COALESCE ( ( + 0 ), 92 / + 56 + + + 99 ) + + 54 * + 3 + + CAST ( NULL AS INTEGER ) AS col2, - 66
----
NULL
-66

query I rowsort
SELECT - 19 * - 49 AS col2
----
931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-462
SELECT ALL + 37 * + - 39 DIV COUNT( * )
----
-1443

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + 37 * + - 39 / COUNT ( * )
----
-1443

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-464
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), 32 * + 74 * + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), 32 * + 74 * + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT - 4 * - 98 + - COUNT( * )
----
391

skipif mysql # not compatible
query I rowsort label-465
SELECT - 4 * - 98 + - COUNT ( * )
----
391

query I rowsort
SELECT ALL - 26 * - ( + 52 ) + - 14 * 26
----
988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-467
SELECT ALL + NULLIF ( + + COALESCE ( 50, + + 7, - - NULLIF ( 11, 79 + 86 + - 27 ) + - + 88 ), + 22 * + 23 + - 5 * - 77 * - COALESCE ( 50, - ( + MAX( ALL - 72 ) ), CAST( 37 AS SIGNED ) ) ) AS col0, 55 * - COUNT( * ) AS col2
----
50
-55

skipif mysql # not compatible
query II rowsort label-467
SELECT ALL + NULLIF ( + + COALESCE ( 50, + + 7, - - NULLIF ( 11, 79 + 86 + - 27 ) + - + 88 ), + 22 * + 23 + - 5 * - 77 * - COALESCE ( 50, - ( + MAX ( ALL - 72 ) ), CAST ( 37 AS INTEGER ) ) ) AS col0, 55 * - COUNT ( * ) AS col2
----
50
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-468
SELECT DISTINCT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL 35 * - + 43 * + MIN( DISTINCT - + 32 ) + - + 68 AS col0
----
48092

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL 35 * - + 43 * + MIN ( DISTINCT - + 32 ) + - + 68 AS col0
----
48092

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

query I rowsort
SELECT DISTINCT - 29 * - 34 col2
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT ALL + 26 * - 55 + + - COUNT( * )
----
-1431

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL + 26 * - 55 + + - COUNT ( * )
----
-1431

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-473
SELECT - 23, 74 * CAST( NULL AS SIGNED ) * + - 43 AS col0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-473
SELECT - 23, 74 * CAST ( NULL AS INTEGER ) * + - 43 AS col0
----
-23
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-474
SELECT + 66 * + NULLIF ( - - 89, + + CASE - NULLIF ( + - 10, + 38 * + 66 ) WHEN + - 27 THEN NULL WHEN + 97 THEN + - 66 ELSE NULL END - - + 16 + + + 45 * - - 16 + 23 - - MIN( + 51 ) - + + CAST( NULL AS DECIMAL ) ) + - + 78 col0, 15 AS col1
----
5796
15

skipif mysql # not compatible
query II rowsort label-474
SELECT + 66 * + NULLIF ( - - 89, + + CASE - NULLIF ( + - 10, + 38 * + 66 ) WHEN + - 27 THEN NULL WHEN + 97 THEN + - 66 ELSE NULL END - - + 16 + + + 45 * - - 16 + 23 - - MIN ( + 51 ) - + + CAST ( NULL AS REAL ) ) + - + 78 col0, 15 AS col1
----
5796
15

query II rowsort
SELECT 28 AS col0, 48 AS col1
----
28
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-476
SELECT DISTINCT CAST( - 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT CAST ( - 70 AS INTEGER ) AS col0
----
-70

query I rowsort
SELECT - 23 * 55
----
-1265

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT - SUM( DISTINCT 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-478
SELECT - SUM ( DISTINCT 10 ) AS col1
----
-10

query I rowsort
SELECT ALL + 39 + 16 AS col0
----
55

query II rowsort
SELECT ALL 44 + - 76, + 3 AS col0
----
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT + COUNT( * ) * + 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-481
SELECT + COUNT ( * ) * + 48 AS col2
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-482
SELECT ALL - 23 AS col2, 58 DIV - 81 col2
----
-23
0

skipif mysql # not compatible
query II rowsort label-482
SELECT ALL - 23 AS col2, 58 / - 81 col2
----
-23
0

query I rowsort
SELECT + - 61 + - 65 AS col0
----
-126

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

query I rowsort
SELECT + + 86 + - 72 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT ALL + 80 - + + 45 + + 8 * CAST( - - 50 AS SIGNED )
----
435

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + 80 - + + 45 + + 8 * CAST ( - - 50 AS INTEGER )
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - + MAX( + 73 ) * 57 + 94 AS col2
----
-4067

skipif mysql # not compatible
query I rowsort label-487
SELECT - + MAX ( + 73 ) * 57 + 94 AS col2
----
-4067

query I rowsort
SELECT + - 11 + 9 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-489
SELECT + - CAST( NULL AS SIGNED ) * + CASE + 84 WHEN - 64 THEN NULL WHEN - COUNT( * ) THEN + 45 * + 21 / - ( + 68 ) END + - MAX( + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT + - CAST ( NULL AS INTEGER ) * + CASE + 84 WHEN - 64 THEN NULL WHEN - COUNT ( * ) THEN + 45 * + 21 / - ( + 68 ) END + - MAX ( + 6 )
----
NULL

query II rowsort
SELECT ALL 90 AS col1, - 6 AS col1
----
90
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-491
SELECT + - 82, 10 DIV + + 16 * - 44 + 33 + 11 * - SUM( ALL + - 74 ) AS col1
----
-82
847

skipif mysql # not compatible
query II rowsort label-491
SELECT + - 82, 10 / + + 16 * - 44 + 33 + 11 * - SUM ( ALL + - 74 ) AS col1
----
-82
847

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-492
SELECT ALL + + COUNT( * ), - 61 DIV - 39 * - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-492
SELECT ALL + + COUNT ( * ), - 61 / - 39 * - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-493
SELECT COUNT( * ), - 91 AS col0
----
1
-91

skipif mysql # not compatible
query II rowsort label-493
SELECT COUNT ( * ), - 91 AS col0
----
1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT CASE - + 81 WHEN 19 THEN + + COUNT( 74 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT CASE - + 81 WHEN 19 THEN + + COUNT ( 74 ) END AS col0
----
NULL

query I rowsort
SELECT + + 68 + + 60 col1
----
128

query I rowsort
SELECT DISTINCT 36 * - 90 AS col1
----
-3240

query I rowsort
SELECT DISTINCT 45 * 50
----
2250

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

skipif mysql # not compatible
query II rowsort label-498
SELECT CAST ( + - 52 AS INTEGER ) AS col0, + 85 * - COUNT ( * )
----
-52
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-499
SELECT ALL - 9 DIV + - MIN( - 6 ) + - 91 * + - 47
----
4276

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - 9 / + - MIN ( - 6 ) + - 91 * + - 47
----
4276

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

skipif mysql # not compatible
query I rowsort label-500
SELECT COUNT ( * ) * 23
----
23

query II rowsort
SELECT DISTINCT 42 * 14 AS col2, - 76 AS col2
----
588
-76

query I rowsort
SELECT DISTINCT - 33 + - 92 * 34
----
-3161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-503
SELECT COALESCE ( + + 39, - 21 + + 94 + + COUNT( * ) - + 71 * + 77 + + 78 ) DIV - 71 * - + 66 - COALESCE ( - + NULLIF ( 83, + COALESCE ( - + CAST( NULL AS SIGNED ), + - 0 * 19 DIV + 85, - COUNT( * ) DIV + - 20 + + ( + - 3 ) - + - 44 + - ( + + 19 ), - - 97 DIV + ( - 77 ) + - ( + 3 + + NULLIF ( 72 + 25, 29 ) ) ) * + COUNT( * ) ), + 73, + 59 ) + 97
----
180

skipif mysql # not compatible
query I rowsort label-503
SELECT COALESCE ( + + 39, - 21 + + 94 + + COUNT ( * ) - + 71 * + 77 + + 78 ) / - 71 * - + 66 - COALESCE ( - + NULLIF ( 83, + COALESCE ( - + CAST ( NULL AS INTEGER ), + - 0 * 19 / + 85, - COUNT ( * ) / + - 20 + + ( + - 3 ) - + - 44 + - ( + + 19 ), - - 97 / + ( - 77 ) + - ( + 3 + + NULLIF ( 72 + 25, 29 ) ) ) * + COUNT ( * ) ), + 73, + 59 ) + 97
----
180

query I rowsort
SELECT ALL 71 + + 25 + + + NULLIF ( - 37, 72 ) AS col1
----
59

query I rowsort
SELECT DISTINCT COALESCE ( - 42, + 34 ) + - 0 AS col1
----
-42

query II rowsort
SELECT DISTINCT 88 + + 8, 61 AS col1
----
96
61

onlyif mysql # DIV for integer division: 
query II rowsort label-507
SELECT 71 DIV - + 48 AS col1, - 33 AS col2
----
-1
-33

skipif mysql # not compatible
query II rowsort label-507
SELECT 71 / - + 48 AS col1, - 33 AS col2
----
-1
-33

query I rowsort
SELECT ALL + 70 + + + NULLIF ( + - 91, + 29 * - - 14 ) + - 16 - + 9
----
-46

query I rowsort
SELECT 55 * 88 * 80
----
387200

query I rowsort
SELECT DISTINCT + 25 + 69 AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-511
SELECT ALL - 71 + - 83, + MAX( ALL - 29 ) AS col0
----
-154
-29

skipif mysql # not compatible
query II rowsort label-511
SELECT ALL - 71 + - 83, + MAX ( ALL - 29 ) AS col0
----
-154
-29

query I rowsort
SELECT DISTINCT - 98 * + - 21
----
2058

query I rowsort
SELECT - 87 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT COUNT( * ) + - 43 * + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-514
SELECT COUNT ( * ) + - 43 * + COUNT ( * ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-515
SELECT CASE - ( + - COUNT( * ) ) WHEN AVG ( 92 ) + - 3 + ( - ( + + CAST( - - 75 AS SIGNED ) ) ) + 35 + 77 * - - 49 THEN - + 49 - ( CAST( NULL AS SIGNED ) ) END * - + 52 + + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT CASE - ( + - COUNT ( * ) ) WHEN AVG ( 92 ) + - 3 + ( - ( + + CAST ( - - 75 AS INTEGER ) ) ) + 35 + 77 * - - 49 THEN - + 49 - ( CAST ( NULL AS INTEGER ) ) END * - + 52 + + + 52
----
NULL

query I rowsort
SELECT ALL - - ( + ( + + 36 ) ) * + 47
----
1692

query I rowsort
SELECT 66 * + 93 - + 60 + + + 74
----
6152

query I rowsort
SELECT + 56 + 86 AS col1
----
142

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT - CAST( - COUNT( * ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-520
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) col1
----
1

query I rowsort
SELECT DISTINCT + 63 AS col2
----
63

query I rowsort
SELECT - COALESCE ( - 96, 60 ) + - 39 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ALL - 68 * SUM( - 56 )
----
3808

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - 68 * SUM ( - 56 )
----
3808

query I rowsort
SELECT + 14 * - 79 * - + 20 - - 45
----
22165

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT ALL + 57 DIV - - 19 col1
----
3

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL + 57 / - - 19 col1
----
3

query I rowsort
SELECT + 72 + - 14 AS col1
----
58

query I rowsort
SELECT 74 + 47 AS col1
----
121

query I rowsort
SELECT ALL + 8 * 66 col1
----
528

query I rowsort
SELECT + 55 + - 40 + + - 85
----
-70

query I rowsort
SELECT ALL + 33 * + 73 AS col2
----
2409

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

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

query II rowsort
SELECT ALL 33 + + 22 AS col1, 70 * + 89 * 65 AS col2
----
55
404950

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL 47 + NULLIF ( - + ( + - COUNT( * ) ), + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL 47 + NULLIF ( - + ( + - COUNT ( * ) ), + + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 46 * + 51 * - + ( - 63 ) AS col1
----
-147798

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-536
SELECT 66 AS col0, COALESCE ( ( + + COUNT( * ) ), + 84 + + 55 ), + - COUNT( 66 ) * - 57 * - CAST( NULL AS SIGNED ) + - 33 * - CAST( + 74 AS SIGNED ) AS col0
----
66
1
NULL

skipif mysql # not compatible
query III rowsort label-536
SELECT 66 AS col0, COALESCE ( ( + + COUNT ( * ) ), + 84 + + 55 ), + - COUNT ( 66 ) * - 57 * - CAST ( NULL AS INTEGER ) + - 33 * - CAST ( + 74 AS INTEGER ) AS col0
----
66
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL MAX( + 68 ) + 56
----
124

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL MAX ( + 68 ) + 56
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT - ( 88 ) * - + COUNT( * ) + + + 18
----
106

skipif mysql # not compatible
query I rowsort label-538
SELECT - ( 88 ) * - + COUNT ( * ) + + + 18
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT CASE + 78 WHEN - 27 THEN + 50 WHEN - + 58 + 40 * 45 THEN NULL WHEN + NULLIF ( 69, + MIN( - 76 ) ) + - 61 + 62 THEN NULL WHEN 72 THEN - - CASE - 81 WHEN 20 THEN + + 11 END ELSE NULL END + + ( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT CASE + 78 WHEN - 27 THEN + 50 WHEN - + 58 + 40 * 45 THEN NULL WHEN + NULLIF ( 69, + MIN ( - 76 ) ) + - 61 + 62 THEN NULL WHEN 72 THEN - - CASE - 81 WHEN 20 THEN + + 11 END ELSE NULL END + + ( 49 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-540
SELECT DISTINCT - 13 AS col1, + 45 DIV - 81 AS col1
----
-13
0

skipif mysql # not compatible
query II rowsort label-540
SELECT DISTINCT - 13 AS col1, + 45 / - 81 AS col1
----
-13
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-541
SELECT CASE 7 WHEN 79 / - COUNT( * ) + - - COUNT( 91 ) + + + 95 + - 41 + - CASE - MIN( DISTINCT + 90 ) WHEN - 14 + + 81 * 50 THEN 87 WHEN + + 96 THEN + + 13 WHEN - - 34 THEN NULL ELSE - - SUM( DISTINCT 91 ) / ( - - 64 ) END * - + 7 THEN - 98 - - - CAST( NULL AS SIGNED ) ELSE NULL END + 67 AS col1, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-541
SELECT CASE 7 WHEN 79 / - COUNT ( * ) + - - COUNT ( 91 ) + + + 95 + - 41 + - CASE - MIN ( DISTINCT + 90 ) WHEN - 14 + + 81 * 50 THEN 87 WHEN + + 96 THEN + + 13 WHEN - - 34 THEN NULL ELSE - - SUM ( DISTINCT 91 ) / ( - - 64 ) END * - + 7 THEN - 98 - - - CAST ( NULL AS INTEGER ) ELSE NULL END + 67 AS col1, 21
----
NULL
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-542
SELECT DISTINCT ( 37 ) DIV + COUNT( * ) AS col1, 49 * - + 61 AS col1
----
37
-2989

skipif mysql # not compatible
query II rowsort label-542
SELECT DISTINCT ( 37 ) / + COUNT ( * ) AS col1, 49 * - + 61 AS col1
----
37
-2989

query I rowsort
SELECT 75 * - 86 + - 10 * - 76 * - 4 AS col0
----
-9490

query I rowsort
SELECT ALL 88 * - - 11
----
968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT + 58 * - NULLIF ( + 55, + CASE - ( 31 ) WHEN 52 THEN NULL WHEN - 36 * + 6 THEN 59 END ) + + 78 - - 0 DIV + COUNT( * )
----
-3112

skipif mysql # not compatible
query I rowsort label-545
SELECT + 58 * - NULLIF ( + 55, + CASE - ( 31 ) WHEN 52 THEN NULL WHEN - 36 * + 6 THEN 59 END ) + + 78 - - 0 / + COUNT ( * )
----
-3112

query I rowsort
SELECT ALL + 39 - 69 - + - 52
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT 80 + + + CAST( - - 1 AS SIGNED ) * 28 * 71 * 25 + 8 + - 87 + - 81 col1
----
49620

skipif mysql # not compatible
query I rowsort label-547
SELECT 80 + + + CAST ( - - 1 AS INTEGER ) * 28 * 71 * 25 + 8 + - 87 + - 81 col1
----
49620

query II rowsort
SELECT 61, - 17 AS col2
----
61
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT 94 + - - COUNT( * ) + - COUNT( * ) / AVG ( + ( + 67 ) ) + - 65 + + 54 * - 25 * - 84 * + 96 + CASE + 26 WHEN + COALESCE ( + 9, 68 / + + 72 ) + + + 96 THEN COUNT( * ) / 44 / + AVG ( DISTINCT - - 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT 94 + - - COUNT ( * ) + - COUNT ( * ) / AVG ( + ( + 67 ) ) + - 65 + + 54 * - 25 * - 84 * + 96 + CASE + 26 WHEN + COALESCE ( + 9, 68 / + + 72 ) + + + 96 THEN COUNT ( * ) / 44 / + AVG ( DISTINCT - - 13 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-550
SELECT MIN( + - 50 ) * - + CAST( + COUNT( * ) AS SIGNED ) * + + 19 AS col1
----
950

skipif mysql # not compatible
query I rowsort label-550
SELECT MIN ( + - 50 ) * - + CAST ( + COUNT ( * ) AS INTEGER ) * + + 19 AS col1
----
950

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT ALL + 53 DIV + 18 + - + 95 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + 53 / + 18 + - + 95 AS col2
----
-93

query I rowsort
SELECT ALL + 72 * + 84
----
6048

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-553
SELECT ALL + NULLIF ( - + COUNT( * ), CAST( + 12 AS DECIMAL ) + - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL + NULLIF ( - + COUNT ( * ), CAST ( + 12 AS REAL ) + - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT - MIN( DISTINCT - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-554
SELECT - MIN ( DISTINCT - 19 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT + ( CAST( + 51 AS SIGNED ) ) * + - ( - 72 ) * - MAX( DISTINCT + 87 ) + - - COUNT( * ) AS col2
----
-319463

skipif mysql # not compatible
query I rowsort label-555
SELECT + ( CAST ( + 51 AS INTEGER ) ) * + - ( - 72 ) * - MAX ( DISTINCT + 87 ) + - - COUNT ( * ) AS col2
----
-319463

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-557
SELECT DISTINCT + NULLIF ( - 97, + COUNT( * ) * - 42 + + ( 36 ) + - COALESCE ( + 36, + - 1 ) + - 65 + - 13 * + - 31 * + + CAST( NULL AS SIGNED ) ), CASE WHEN + 69 BETWEEN + + 58 * + NULLIF ( - + ( - - 71 ), - 40 ) * + + 81 * - 21 + + 89 - + 53 + + 2 AND NULL THEN - COUNT( * ) END * COUNT( * ) col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-557
SELECT DISTINCT + NULLIF ( - 97, + COUNT ( * ) * - 42 + + ( 36 ) + - COALESCE ( + 36, + - 1 ) + - 65 + - 13 * + - 31 * + + CAST ( NULL AS INTEGER ) ), CASE WHEN + 69 BETWEEN + + 58 * + NULLIF ( - + ( - - 71 ), - 40 ) * + + 81 * - 21 + + 89 - + 53 + + 2 AND NULL THEN - COUNT ( * ) END * COUNT ( * ) col0
----
-97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-558
SELECT DISTINCT + + 68 + + CAST( NULL AS SIGNED ) * - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT + + 68 + + CAST ( NULL AS INTEGER ) * - 70 AS col2
----
NULL

query I rowsort
SELECT ALL + 13 + - 34
----
-21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-561
SELECT DISTINCT - + MIN( - ( - 39 ) ) * + ( 89 ) + - COUNT( * ) DIV 35 AS col0
----
-3471

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT - + MIN ( - ( - 39 ) ) * + ( 89 ) + - COUNT ( * ) / 35 AS col0
----
-3471

query I rowsort
SELECT DISTINCT 42 * - 9 * 27
----
-10206

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT ALL + ( + 3 ) * - COUNT( * ) + - 14 AS col1, 97 col0
----
-17
97

skipif mysql # not compatible
query II rowsort label-563
SELECT ALL + ( + 3 ) * - COUNT ( * ) + - 14 AS col1, 97 col0
----
-17
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-564
SELECT COALESCE ( - + 17, COUNT( * ) + - 20 + 39 * - 41, ( + CASE - - 10 WHEN 83 THEN 99 DIV + 65 ELSE NULL END ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-564
SELECT COALESCE ( - + 17, COUNT ( * ) + - 20 + 39 * - 41, ( + CASE - - 10 WHEN 83 THEN 99 / + 65 ELSE NULL END ) ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT COALESCE ( + 8, - CAST( NULL AS SIGNED ) + + - 49 )
----
8

skipif mysql # not compatible
query I rowsort label-565
SELECT COALESCE ( + 8, - CAST ( NULL AS INTEGER ) + + - 49 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT + 36 DIV 61 + - 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-566
SELECT + 36 / 61 + - 20 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT + COUNT( * ) * - + 14 + 5
----
-9

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT + COUNT ( * ) * - + 14 + 5
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL + NULLIF ( - - 12, 18 * + COUNT( - - 52 ) )
----
12

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL + NULLIF ( - - 12, 18 * + COUNT ( - - 52 ) )
----
12

query I rowsort
SELECT DISTINCT - 61 * + + ( + 25 )
----
-1525

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT + 18 DIV - - 35 * - 79 * 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-570
SELECT + 18 / - - 35 * - 79 * 34 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT - 47 DIV + 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-571
SELECT - 47 / + 43 AS col1
----
-1

query II rowsort
SELECT ALL + 16 * + - 70 col0, - 39 + + 88
----
-1120
49

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT CASE - ( - 47 ) WHEN 10 THEN NULL WHEN + + 2 DIV ( - 96 ) THEN - 98 ELSE + 8 END * + 37 - + 21 * 94 - + 11 DIV - 57 AS col1
----
-1678

skipif mysql # not compatible
query I rowsort label-573
SELECT CASE - ( - 47 ) WHEN 10 THEN NULL WHEN + + 2 / ( - 96 ) THEN - 98 ELSE + 8 END * + 37 - + 21 * 94 - + 11 / - 57 AS col1
----
-1678

query I rowsort
SELECT DISTINCT + 98 * + 97 AS col2
----
9506

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

skipif mysql # not compatible
query I rowsort label-575
SELECT + ( - COUNT ( * ) ) * 70 * - 19 AS col1
----
1330

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

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

skipif mysql # not compatible
query I rowsort label-577
SELECT + SUM ( - - 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-578
SELECT COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-578
SELECT COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT DISTINCT MAX( DISTINCT - - 62 ) * - + 64
----
-3968

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT MAX ( DISTINCT - - 62 ) * - + 64
----
-3968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-580
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) * 34 * - - 69 * + - 76 - + + 85 * + 74 + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-580
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 34 * - - 69 * + - 76 - + + 85 * + 74 + - 86 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-581
SELECT + 51 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-582
SELECT ALL + 24 * + + CAST( NULL AS SIGNED ) - + 88 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL + 24 * + + CAST ( NULL AS INTEGER ) - + 88 col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL + ( - + COUNT( DISTINCT - 49 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL + ( - + COUNT ( DISTINCT - 49 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT + - SUM( + 99 ) * - 76 AS col1
----
7524

skipif mysql # not compatible
query I rowsort label-585
SELECT + - SUM ( + 99 ) * - 76 AS col1
----
7524

query I rowsort
SELECT + 27 + 36
----
63

query I rowsort
SELECT + CASE + 95 WHEN 3 THEN NULL ELSE + 46 + - 0 * - - 57 END - 30 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT COUNT( ALL - 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-588
SELECT COUNT ( ALL - 14 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT + 40 + + COUNT( + 84 ) * 98 * COUNT( * ) * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-589
SELECT + 40 + + COUNT ( + 84 ) * 98 * COUNT ( * ) * - COUNT ( * )
----
-58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-591
SELECT + 54 + + CAST( 5 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-591
SELECT + 54 + + CAST ( 5 AS INTEGER )
----
59

query I rowsort
SELECT + 67 + + 71 + + 85 AS col2
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-593
SELECT ALL - 16 + + - 88 - - 4 * - ( CAST( - + 13 AS SIGNED ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - 16 + + - 88 - - 4 * - ( CAST ( - + 13 AS INTEGER ) ) AS col2
----
-52

query II rowsort
SELECT + + ( - 1 ) + 10 * + 47 col1, ( - 84 )
----
469
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT ALL MAX( + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL MAX ( + 92 ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-596
SELECT ALL + 47 + - 80 * + + 26 + 26 DIV + 6
----
-2029

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL + 47 + - 80 * + + 26 + 26 / + 6
----
-2029

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT + - COUNT( * ) + + COUNT( * ) AS col1, 59
----
0
59

skipif mysql # not compatible
query II rowsort label-597
SELECT + - COUNT ( * ) + + COUNT ( * ) AS col1, 59
----
0
59

query I rowsort
SELECT ALL - 25 * - 3 AS col1
----
75

query I rowsort
SELECT - + 61 + 70 + 37
----
46

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

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

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

query I rowsort
SELECT - ( - - 71 )
----
-71

query I rowsort
SELECT + 36 * - + 16 AS col2
----
-576

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT - ( - 34 ) + - 8 DIV NULLIF ( - + 2, + 84 ) * + 73 + - + 47 col2
----
279

skipif mysql # not compatible
query I rowsort label-604
SELECT - ( - 34 ) + - 8 / NULLIF ( - + 2, + 84 ) * + 73 + - + 47 col2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL + 83 * + SUM( DISTINCT 84 )
----
6972

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + 83 * + SUM ( DISTINCT 84 )
----
6972

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

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT ALL 56 DIV - 78 * + ( + 67 ) - + 76 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL 56 / - 78 * + ( + 67 ) - + 76 AS col2
----
-76

query I rowsort
SELECT - 6 * 78
----
-468

query I rowsort
SELECT ALL + COALESCE ( 11, - - NULLIF ( - 69, - 53 * 73 ) + ( - 53 ), + - 12 )
----
11

query I rowsort
SELECT DISTINCT - 30 * - ( - 28 ) AS col2
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL MAX( + + 61 ) / + 65 + + 22 - 40 + 93 + - ( + COALESCE ( - 41, - 96 + - 69 * + - 31 * + AVG ( ALL 24 ), + - 45 ) ) * + COUNT( * ) * 83 * CASE ( - COUNT( * ) ) WHEN + 97 + 31 THEN - 83 * - MAX( ALL + - 86 ) - - - 4 END * - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL MAX ( + + 61 ) / + 65 + + 22 - 40 + 93 + - ( + COALESCE ( - 41, - 96 + - 69 * + - 31 * + AVG ( ALL 24 ), + - 45 ) ) * + COUNT ( * ) * 83 * CASE ( - COUNT ( * ) ) WHEN + 97 + 31 THEN - 83 * - MAX ( ALL + - 86 ) - - - 4 END * - - 75
----
NULL

query I rowsort
SELECT - 76 * - - 38 AS col0
----
-2888

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT NULLIF ( 99, 42 ) * + - 70 + - + SUM( + + 30 )
----
-6960

skipif mysql # not compatible
query I rowsort label-613
SELECT NULLIF ( 99, 42 ) * + - 70 + - + SUM ( + + 30 )
----
-6960

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ( COUNT( - ( - 37 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-614
SELECT ( COUNT ( - ( - 37 ) ) ) AS col0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-616
SELECT ALL + COALESCE ( + COALESCE ( + 24, + 26 * NULLIF ( + + 14, + COUNT( * ) ), ( - 50 ) + + 10 + 88 DIV - 69 * + CAST( NULL AS SIGNED ) ), + + CASE - COUNT( + 45 ) WHEN CASE - 4 WHEN + MAX( DISTINCT + 4 ) THEN - NULLIF ( + 43, + ( - 62 ) + + 52 ) ELSE NULL END THEN NULL WHEN SUM( 31 ) THEN - 50 END * - - 0 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + COALESCE ( + COALESCE ( + 24, + 26 * NULLIF ( + + 14, + COUNT ( * ) ), ( - 50 ) + + 10 + 88 / - 69 * + CAST ( NULL AS INTEGER ) ), + + CASE - COUNT ( + 45 ) WHEN CASE - 4 WHEN + MAX ( DISTINCT + 4 ) THEN - NULLIF ( + 43, + ( - 62 ) + + 52 ) ELSE NULL END THEN NULL WHEN SUM ( 31 ) THEN - 50 END * - - 0 ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-617
SELECT + COUNT( * ) * + 5 DIV + 13 + - 59 * + 59 + 34 AS col1
----
-3447

skipif mysql # not compatible
query I rowsort label-617
SELECT + COUNT ( * ) * + 5 / + 13 + - 59 * + 59 + 34 AS col1
----
-3447

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT - 29 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-618
SELECT - 29 / - 40
----
0

query I rowsort
SELECT ALL - 21 * 8
----
-168

query I rowsort
SELECT - 40 * + + 68 col0
----
-2720

query I rowsort
SELECT + 46 * 17
----
782

query I rowsort
SELECT - ( + 24 ) * 79
----
-1896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-623
SELECT ALL + CAST( - MAX( ALL + 80 ) AS SIGNED ), 72 AS col0
----
-80
72

skipif mysql # not compatible
query II rowsort label-623
SELECT ALL + CAST ( - MAX ( ALL + 80 ) AS INTEGER ), 72 AS col0
----
-80
72

query I rowsort
SELECT ALL - 22 * + 69 AS col0
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT ALL 1 * 99 + - 67 + - - CASE - 28 WHEN CASE - ( - + COUNT( * ) ) WHEN 86 THEN NULL WHEN + 84 THEN NULL ELSE + + 96 END THEN 15 WHEN + - ( + COALESCE ( - 97, - COALESCE ( 70, 41 * ( 92 ) - - 96 + + 26 + MIN( DISTINCT - + ( - 19 ) ) - + 61 * 51 + 27, - COUNT( * ) * - 47 ) ) ) THEN 36 WHEN - ( 29 ) THEN 54 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL 1 * 99 + - 67 + - - CASE - 28 WHEN CASE - ( - + COUNT ( * ) ) WHEN 86 THEN NULL WHEN + 84 THEN NULL ELSE + + 96 END THEN 15 WHEN + - ( + COALESCE ( - 97, - COALESCE ( 70, 41 * ( 92 ) - - 96 + + 26 + MIN ( DISTINCT - + ( - 19 ) ) - + 61 * 51 + 27, - COUNT ( * ) * - 47 ) ) ) THEN 36 WHEN - ( 29 ) THEN 54 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 32
----
32

query I rowsort
SELECT + + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT - 24 * MAX( - + 81 )
----
1944

skipif mysql # not compatible
query I rowsort label-628
SELECT - 24 * MAX ( - + 81 )
----
1944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT + + CAST( NULL AS SIGNED ) + 4 / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT + + CAST ( NULL AS INTEGER ) + 4 / + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 46 + + + 29 + + 9
----
84

query I rowsort
SELECT + 60 * 79
----
4740

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

query I rowsort
SELECT DISTINCT - - 84 + ( + 95 )
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT - MAX( ALL - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-634
SELECT - MAX ( ALL - 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-635
SELECT 51 DIV + + NULLIF ( ( 65 ), - 63 * SUM( ALL 10 ) + COUNT( * ) * - - 2 + - 33 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-635
SELECT 51 / + + NULLIF ( ( 65 ), - 63 * SUM ( ALL 10 ) + COUNT ( * ) * - - 2 + - 33 ) col0
----
0

query I rowsort
SELECT ALL 57 + 46 AS col1
----
103

query I rowsort
SELECT - - 82 AS col2
----
82

query I rowsort
SELECT - ( - + 11 ) - + 53 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ( MIN( + - 69 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-639
SELECT ( MIN ( + - 69 ) )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT 30 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-640
SELECT 30 / - 67
----
0

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

skipif mysql # not compatible
query I rowsort label-641
SELECT + COUNT ( * ) / ( + SUM ( ALL 48 ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT DISTINCT 66 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT 66 / 77
----
0

query II rowsort
SELECT ALL 18 * - 37, + 11 AS col2
----
-666
11

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT MAX( ALL + ( + 55 ) ) + - COUNT( * ) * - 66
----
121

skipif mysql # not compatible
query I rowsort label-644
SELECT MAX ( ALL + ( + 55 ) ) + - COUNT ( * ) * - 66
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-645
SELECT DISTINCT NULLIF ( - 0, - 77 * 36 + + COUNT( ALL + 33 ) ) / + - 30 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT NULLIF ( - 0, - 77 * 36 + + COUNT ( ALL + 33 ) ) / + - 30 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL - MAX( - 96 ) * - - 85 AS col2
----
8160

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - MAX ( - 96 ) * - - 85 AS col2
----
8160

query I rowsort
SELECT DISTINCT + 98 * + - 80
----
-7840

query II rowsort
SELECT + 56 AS col0, 80 AS col2
----
56
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-649
SELECT ALL - 9 AS col2, - SUM( ALL - 64 ) * + + 2 * + 8 + 18 - - COUNT( * ) * COUNT( * ) + + + 70 + + + 65 * COUNT( * ) + NULLIF ( - 34, 89 ) - + 4 / - - ( + 63 ) - - - CAST( NULL AS SIGNED ) * - - 29
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-649
SELECT ALL - 9 AS col2, - SUM ( ALL - 64 ) * + + 2 * + 8 + 18 - - COUNT ( * ) * COUNT ( * ) + + + 70 + + + 65 * COUNT ( * ) + NULLIF ( - 34, 89 ) - + 4 / - - ( + 63 ) - - - CAST ( NULL AS INTEGER ) * - - 29
----
-9
NULL

query II rowsort
SELECT ALL 58 * + + NULLIF ( 45, + 14 ) AS col1, 17
----
2610
17

query II rowsort
SELECT 77, 50 AS col1
----
77
50

query I rowsort
SELECT 96 + - 48 * + + ( - + 70 ) * 8
----
26976

query I rowsort
SELECT 80 * COALESCE ( + 16, + 31 * - + 22 * 99 + + 90 ) AS col1
----
1280

query I rowsort
SELECT ALL 23 * - 42 * - 71 * - 91 AS col1
----
-6241326

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL - CASE - 20 WHEN + 59 THEN 31 * - + 29 ELSE NULL END / 32 * - COUNT( * ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - CASE - 20 WHEN + 59 THEN 31 * - + 29 ELSE NULL END / 32 * - COUNT ( * ) * 76
----
NULL

query I rowsort
SELECT 5 * + + 68
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL - 85 + COUNT( ALL 82 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL - 85 + COUNT ( ALL 82 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ( + 97 ) - 23 + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-658
SELECT ( + 97 ) - 23 + COUNT ( * ) AS col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-660
SELECT ALL - 41 + COUNT( + 5 ) + + 82 * + 11 + - 69 AS col0, 51 + CASE - 45 WHEN 12 THEN - ( - COUNT( + 5 ) ) WHEN - - 46 / + 6 / COUNT( * ) + + + 16 + - 56 + 25 THEN + + 87 WHEN - - ( - SUM( ALL + - 45 ) ) * - + 75 THEN NULL END
----
793
NULL

skipif mysql # not compatible
query II rowsort label-660
SELECT ALL - 41 + COUNT ( + 5 ) + + 82 * + 11 + - 69 AS col0, 51 + CASE - 45 WHEN 12 THEN - ( - COUNT ( + 5 ) ) WHEN - - 46 / + 6 / COUNT ( * ) + + + 16 + - 56 + 25 THEN + + 87 WHEN - - ( - SUM ( ALL + - 45 ) ) * - + 75 THEN NULL END
----
793
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-661
SELECT + 9 DIV 44 col0
----
0

skipif mysql # not compatible
query I rowsort label-661
SELECT + 9 / 44 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT COUNT( * ) * - - 58 * + - 15 + + - 10 + - - 61 AS col1
----
-819

skipif mysql # not compatible
query I rowsort label-662
SELECT COUNT ( * ) * - - 58 * + - 15 + + - 10 + - - 61 AS col1
----
-819

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

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

query II rowsort
SELECT 94 col1, - 45
----
94
-45

query I rowsort
SELECT - 31 - + ( + 38 )
----
-69

query I rowsort
SELECT ALL + 80 * - 89 * + 41 - - - 71 * + 51
----
-295541

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT - MAX( ALL ( + 33 ) ) * + + 12 - + + 7 AS col1
----
-403

skipif mysql # not compatible
query I rowsort label-667
SELECT - MAX ( ALL ( + 33 ) ) * + + 12 - + + 7 AS col1
----
-403

query II rowsort
SELECT DISTINCT 89, 1 * + - 56 AS col0
----
89
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-669
SELECT ALL NULLIF ( + 28, + + 44 ) DIV + SUM( DISTINCT - + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL NULLIF ( + 28, + + 44 ) / + SUM ( DISTINCT - + 24 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT ALL + 9 + - 84 DIV + 78
----
8

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL + 9 + - 84 / + 78
----
8

query II rowsort
SELECT DISTINCT - 94 col2, + CASE - + 38 WHEN + 0 THEN NULL WHEN - 96 THEN NULL ELSE + 77 END + + - 79 col2
----
-94
-2

query I rowsort
SELECT + 25 + - 26 * + 9
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT COUNT( + 35 ) - + 41
----
-40

skipif mysql # not compatible
query I rowsort label-673
SELECT COUNT ( + 35 ) - + 41
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT + 8 - + COUNT( + + 80 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-674
SELECT + 8 - + COUNT ( + + 80 ) AS col0
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL 91 - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL 91 - - COUNT ( * )
----
92

query I rowsort
SELECT 76 * + - 76 AS col0
----
-5776

query I rowsort
SELECT ALL 89 AS col2
----
89

query I rowsort
SELECT ALL 77 * 36
----
2772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-680
SELECT 64 + + - MIN( DISTINCT 71 ) DIV + 21
----
61

skipif mysql # not compatible
query I rowsort label-680
SELECT 64 + + - MIN ( DISTINCT 71 ) / + 21
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT 24 * - COUNT( * ) * 14 * 57
----
-19152

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT 24 * - COUNT ( * ) * 14 * 57
----
-19152

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT - COUNT( DISTINCT 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-682
SELECT - COUNT ( DISTINCT 61 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-683
SELECT ALL COUNT( * ) DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL COUNT ( * ) / - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL - ( - SUM( DISTINCT + ( + 33 ) ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL - ( - SUM ( DISTINCT + ( + 33 ) ) ) AS col0
----
33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-686
SELECT ALL - 4 * + CAST( - 85 AS SIGNED ) + + 89 * 86 AS col0, + COUNT( * ) AS col2
----
7994
1

skipif mysql # not compatible
query II rowsort label-686
SELECT ALL - 4 * + CAST ( - 85 AS INTEGER ) + + 89 * 86 AS col0, + COUNT ( * ) AS col2
----
7994
1

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT 86 DIV - - 98 + - - 87 * - 84
----
-7308

skipif mysql # not compatible
query I rowsort label-687
SELECT 86 / - - 98 + - - 87 * - 84
----
-7308

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT ALL 72 * 40 + - COUNT( - 72 )
----
2879

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 72 * 40 + - COUNT ( - 72 )
----
2879

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT ALL 75 DIV - ( 41 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL 75 / - ( 41 ) AS col1
----
-1

query I rowsort
SELECT + 33 col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-691
SELECT MAX( + 93 ) AS col0, + 49 * - COUNT( * ) AS col2
----
93
-49

skipif mysql # not compatible
query II rowsort label-691
SELECT MAX ( + 93 ) AS col0, + 49 * - COUNT ( * ) AS col2
----
93
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-692
SELECT ( 42 ) * 78 + + 52 - - - 56 DIV - 80
----
3328

skipif mysql # not compatible
query I rowsort label-692
SELECT ( 42 ) * 78 + + 52 - - - 56 / - 80
----
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT - COUNT( * ) - + 93 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-693
SELECT - COUNT ( * ) - + 93 AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-694
SELECT - COUNT( * ) * - CAST( - CASE + 4 WHEN + ( - 74 ) THEN COUNT( * ) END AS DECIMAL ) * + 48 + + - 46 / - COUNT( * ) / - COUNT( * ) - 84 - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT - COUNT ( * ) * - CAST ( - CASE + 4 WHEN + ( - 74 ) THEN COUNT ( * ) END AS REAL ) * + 48 + + - 46 / - COUNT ( * ) / - COUNT ( * ) - 84 - 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-695
SELECT ALL + 41 * - COUNT( DISTINCT 25 ) + - - 97 + 20, CAST( - - 55 AS SIGNED ) AS col1
----
76
55

skipif mysql # not compatible
query II rowsort label-695
SELECT ALL + 41 * - COUNT ( DISTINCT 25 ) + - - 97 + 20, CAST ( - - 55 AS INTEGER ) AS col1
----
76
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT DISTINCT + + CASE - 10 WHEN + 71 THEN NULL ELSE 44 END * - 0 * + MAX( DISTINCT + 39 ) + + - 56 + + + 85 * 83 AS col0
----
6999

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT + + CASE - 10 WHEN + 71 THEN NULL ELSE 44 END * - 0 * + MAX ( DISTINCT + 39 ) + + - 56 + + + 85 * 83 AS col0
----
6999

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

query II rowsort
SELECT ALL + - ( + 54 ) AS col1, - 72
----
-54
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL + 18 - + SUM( DISTINCT + 51 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + 18 - + SUM ( DISTINCT + 51 ) AS col0
----
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT CASE + 36 WHEN + + ( - 17 ) THEN 44 * - 30 WHEN + COALESCE ( - 18, + 92 ) / COUNT( * ) THEN - - 98 + ( + COUNT( * ) ) WHEN COUNT( * ) + 38 + + 53 + + 97 * 26 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT CASE + 36 WHEN + + ( - 17 ) THEN 44 * - 30 WHEN + COALESCE ( - 18, + 92 ) / COUNT ( * ) THEN - - 98 + ( + COUNT ( * ) ) WHEN COUNT ( * ) + 38 + + 53 + + 97 * 26 THEN NULL ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL + + ( + COALESCE ( + 4, 73 + + 18, 44 ) )
----
4

query I rowsort
SELECT - 23 col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT + - 17 * - ( - MIN( ALL + 16 ) )
----
-272

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + - 17 * - ( - MIN ( ALL + 16 ) )
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT - + MAX( ALL 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-706
SELECT - + MAX ( ALL 2 ) AS col2
----
-2

query I rowsort
SELECT - 36 * 99 * + 94 AS col2
----
-335016

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT - 45 DIV + 49 * - 58 * - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-708
SELECT - 45 / + 49 * - 58 * - 31 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-709
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 67 AS col1, - ( - 46 ) - CAST( + 3 AS SIGNED ) + - - 17 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-709
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 67 AS col1, - ( - 46 ) - CAST ( + 3 AS INTEGER ) + - - 17 AS col0
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL NULLIF ( - 25, COUNT( * ) )
----
-25

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL NULLIF ( - 25, COUNT ( * ) )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT DISTINCT NULLIF ( + CAST( 61 AS SIGNED ), + + ( - - MAX( + 50 ) ) + - - 96 )
----
61

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT NULLIF ( + CAST ( 61 AS INTEGER ), + + ( - - MAX ( + 50 ) ) + - - 96 )
----
61

query I rowsort
SELECT DISTINCT - 71 * - NULLIF ( - - 75, NULLIF ( - 42, - + 91 ) * - - 62 ) * 38 AS col1
----
202350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-713
SELECT - COUNT( - - 28 ) * + CAST( 5 AS SIGNED ) * + + 60 + + COALESCE ( + CAST( NULL AS DECIMAL ), + 89 ) + - 62 * - 18 * - CASE + - 1 WHEN - 99 * + - 55 THEN COUNT( * ) * - 74 + - 35 * + - CAST( MIN( DISTINCT 90 ) AS DECIMAL ) END + - + 44 / - CAST( NULL AS SIGNED ) * - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT - COUNT ( - - 28 ) * + CAST ( 5 AS INTEGER ) * + + 60 + + COALESCE ( + CAST ( NULL AS REAL ), + 89 ) + - 62 * - 18 * - CASE + - 1 WHEN - 99 * + - 55 THEN COUNT ( * ) * - 74 + - 35 * + - CAST ( MIN ( DISTINCT 90 ) AS REAL ) END + - + 44 / - CAST ( NULL AS INTEGER ) * - - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL NULLIF ( + ( 58 ), + 37 * + + COUNT( * ) * - SUM( + + ( - 39 ) ) + - + 55 )
----
58

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL NULLIF ( + ( 58 ), + 37 * + + COUNT ( * ) * - SUM ( + + ( - 39 ) ) + - + 55 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-715
SELECT 45, - 92 * - 50 + COUNT( * ) + - + COUNT( * ) AS col1
----
45
4600

skipif mysql # not compatible
query II rowsort label-715
SELECT 45, - 92 * - 50 + COUNT ( * ) + - + COUNT ( * ) AS col1
----
45
4600

query II rowsort
SELECT - 3 AS col0, - 28 AS col1
----
-3
-28

query I rowsort
SELECT DISTINCT NULLIF ( + 27, 63 * 67 ) col0
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT - COUNT( * ) * - - MAX( 21 ) * 99
----
-2079

skipif mysql # not compatible
query I rowsort label-719
SELECT - COUNT ( * ) * - - MAX ( 21 ) * 99
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT DISTINCT + COUNT( * ) * 48 col1
----
48

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT + COUNT ( * ) * 48 col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-721
SELECT ALL 29 + + COUNT( * ) * CAST( + 63 AS SIGNED ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL 29 + + COUNT ( * ) * CAST ( + 63 AS INTEGER ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-722
SELECT DISTINCT - 81 + 95 + 8 + - 14 + - CASE + - 85 WHEN - + 35 THEN COUNT( * ) WHEN + + SUM( DISTINCT 64 ) * - 15 + - 57 - ( 40 ) / - + CASE - COUNT( * ) WHEN 88 THEN NULL WHEN 54 * ( CASE - - 44 WHEN + 31 THEN + - ( 37 ) * - + 55 ELSE NULL END ) * 96 THEN NULL ELSE - + COALESCE ( ( - ( - MIN( ALL - - 32 ) ) ), - 36, - 26 ) END + - 51 / + 46 THEN - 35 WHEN - ( + SUM( - 82 ) ) * COUNT( ( 72 ) ) THEN NULL END / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT - 81 + 95 + 8 + - 14 + - CASE + - 85 WHEN - + 35 THEN COUNT ( * ) WHEN + + SUM ( DISTINCT 64 ) * - 15 + - 57 - ( 40 ) / - + CASE - COUNT ( * ) WHEN 88 THEN NULL WHEN 54 * ( CASE - - 44 WHEN + 31 THEN + - ( 37 ) * - + 55 ELSE NULL END ) * 96 THEN NULL ELSE - + COALESCE ( ( - ( - MIN ( ALL - - 32 ) ) ), - 36, - 26 ) END + - 51 / + 46 THEN - 35 WHEN - ( + SUM ( - 82 ) ) * COUNT ( ( 72 ) ) THEN NULL END / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-723
SELECT ALL COUNT( * ) + + 6 DIV - ( + 92 ), + 32 AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-723
SELECT ALL COUNT ( * ) + + 6 / - ( + 92 ), + 32 AS col1
----
1
32

query I rowsort
SELECT - ( - 31 ) * + 42 col1
----
1302

query II rowsort
SELECT - 70 - NULLIF ( + 74, - 44 ) * 94 * - 92 AS col1, 50 AS col2
----
639882
50

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

query I rowsort
SELECT DISTINCT + 8 * 91
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT DISTINCT + 43 DIV 55 + 94
----
94

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT + 43 / 55 + 94
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT + CASE - MIN( DISTINCT COALESCE ( + 95, + - 17, + + 0 ) ) WHEN + COUNT( + 35 ) / + + 2 THEN 95 + + 81 + 87 + + 97 + - 11 + - 26 - 54 * 37 / + 97 * ( - 95 ) * 50 * + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-730
SELECT + CASE - MIN ( DISTINCT COALESCE ( + 95, + - 17, + + 0 ) ) WHEN + COUNT ( + 35 ) / + + 2 THEN 95 + + 81 + 87 + + 97 + - 11 + - 26 - 54 * 37 / + 97 * ( - 95 ) * 50 * + 5 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-731
SELECT ALL + AVG ( DISTINCT - + 86 ) * + + 39 * + + CAST( + - 7 AS DECIMAL ) - + + 21 * 58 / - CAST( NULL AS SIGNED ) + + 75 AS col2, - CAST( - + 2 AS SIGNED ) AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-731
SELECT ALL + AVG ( DISTINCT - + 86 ) * + + 39 * + + CAST ( + - 7 AS REAL ) - + + 21 * 58 / - CAST ( NULL AS INTEGER ) + + 75 AS col2, - CAST ( - + 2 AS INTEGER ) AS col2
----
NULL
2

query I rowsort
SELECT - ( + 99 ) * + 48
----
-4752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT COUNT( * ) * - + 58 + - + 39 + + 95 DIV - 55 col2
----
-98

skipif mysql # not compatible
query I rowsort label-733
SELECT COUNT ( * ) * - + 58 + - + 39 + + 95 / - 55 col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-734
SELECT ( - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + 57 + + 84 + COUNT( DISTINCT + - ( 70 ) ) col0
----
142

skipif mysql # not compatible
query I rowsort label-735
SELECT + 57 + + 84 + COUNT ( DISTINCT + - ( 70 ) ) col0
----
142

query I rowsort
SELECT DISTINCT + ( - 18 ) * - 5 + - + 46 AS col2
----
44

query II rowsort
SELECT + 94 AS col0, - ( + - COALESCE ( 45, 53 ) )
----
94
45

query I rowsort
SELECT - 2 * 91 + + 13 * - + 8
----
-286

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

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT + 91 / - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT - - NULLIF ( - 12, - MAX( DISTINCT - - 14 ) / - 15 + 42 ) * + CASE WHEN NOT 9 NOT IN ( + NULLIF ( + 63, - + 7 ) ) THEN - 92 + + 51 ELSE - 32 END - + 57 * + 69
----
-3549

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - - NULLIF ( - 12, - MAX ( DISTINCT - - 14 ) / - 15 + 42 ) * + CASE WHEN NOT 9 NOT IN ( + NULLIF ( + 63, - + 7 ) ) THEN - 92 + + 51 ELSE - 32 END - + 57 * + 69
----
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT + COUNT( + + 0 ) * 64 - + 31
----
33

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + COUNT ( + + 0 ) * 64 - + 31
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT DISTINCT ( + ( 63 ) ) DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT ( + ( 63 ) ) / + 70 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( + 88, - 47 ) * + NULLIF ( + + 41, + + 46 ) + - 85 - + 14 AS col0
----
3509

query I rowsort
SELECT + - 3 * 81 col1
----
-243

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT + MAX( + 57 ) * - 90 * SUM( DISTINCT + 16 ) * + 47, + 40 + - - 48 AS col1
----
-3857760
88

skipif mysql # not compatible
query II rowsort label-746
SELECT + MAX ( + 57 ) * - 90 * SUM ( DISTINCT + 16 ) * + 47, + 40 + - - 48 AS col1
----
-3857760
88

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL 14 * + - 9 - + - MIN( DISTINCT + + 3 ) * + COUNT( * )
----
-123

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL 14 * + - 9 - + - MIN ( DISTINCT + + 3 ) * + COUNT ( * )
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-748
SELECT - 18 * + - ( 90 ) - + - 20 * COUNT( * ) DIV - COALESCE ( 29, - 81 + + 12 ) col0, COUNT( * ) AS col1
----
1620
1

skipif mysql # not compatible
query II rowsort label-748
SELECT - 18 * + - ( 90 ) - + - 20 * COUNT ( * ) / - COALESCE ( 29, - 81 + + 12 ) col0, COUNT ( * ) AS col1
----
1620
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-749
SELECT ALL + 16 AS col1, - CASE - 83 WHEN - - 85 THEN NULL WHEN 13 THEN - 18 * CAST( NULL AS SIGNED ) + - COALESCE ( - ( - COALESCE ( + 86, - + 30 * 58 + 33 ) ), + 94, 32 ) + - - 44 * 49 - 73 END
----
16
NULL

skipif mysql # not compatible
query II rowsort label-749
SELECT ALL + 16 AS col1, - CASE - 83 WHEN - - 85 THEN NULL WHEN 13 THEN - 18 * CAST ( NULL AS INTEGER ) + - COALESCE ( - ( - COALESCE ( + 86, - + 30 * 58 + 33 ) ), + 94, 32 ) + - - 44 * 49 - 73 END
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT + - 86 * - SUM( ALL 53 ) - 15 AS col2
----
4543

skipif mysql # not compatible
query I rowsort label-750
SELECT + - 86 * - SUM ( ALL 53 ) - 15 AS col2
----
4543

query I rowsort
SELECT ALL - 46 * - 87 AS col2
----
4002

onlyif mysql # aggregate syntax: 
query II rowsort label-752
SELECT ALL + 93 AS col1, - CASE + + 18 WHEN + - COUNT( * ) + 15 * + ( + 27 ) THEN NULL WHEN - + 11 THEN - - ( 30 ) END * 4 AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-752
SELECT ALL + 93 AS col1, - CASE + + 18 WHEN + - COUNT ( * ) + 15 * + ( + 27 ) THEN NULL WHEN - + 11 THEN - - ( 30 ) END * 4 AS col1
----
93
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT - ( - 77 ) * CAST( NULL AS SIGNED ) * - 10 + - COUNT( * ) + + - ( ( - COALESCE ( 39, - ( + 14 ), 38 ) ) ) + + + MIN( DISTINCT + 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT - ( - 77 ) * CAST ( NULL AS INTEGER ) * - 10 + - COUNT ( * ) + + - ( ( - COALESCE ( 39, - ( + 14 ), 38 ) ) ) + + + MIN ( DISTINCT + 96 ) AS col1
----
NULL

query I rowsort
SELECT ALL 9 * - - 34 + - 81
----
225

query I rowsort
SELECT + ( - ( 79 ) ) + + + 52 * - - 83 AS col2
----
4237

query II rowsort
SELECT ALL - 94 * + 0 col0, 75 * - ( 8 ) AS col2
----
0
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT + COUNT( * ) + - 82 + - + 64
----
-145

skipif mysql # not compatible
query I rowsort label-757
SELECT + COUNT ( * ) + - 82 + - + 64
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT - 94 + + 15 + - + COUNT( * ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-758
SELECT - 94 + + 15 + - + COUNT ( * ) AS col1
----
-80

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-760
SELECT - ( - + ( + COUNT( * ) ) ) + + - COUNT( * ), CASE 0 WHEN 11 / 1 * + 62 + ( - CAST( - 49 AS SIGNED ) ) THEN + COUNT( * ) - + 18 + NULLIF ( - - COALESCE ( - + 41, 70, - + 49 - 5, + 64 * - 40 - + 62 ), 20 ) WHEN + 83 * - + 8 THEN NULL END col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-760
SELECT - ( - + ( + COUNT ( * ) ) ) + + - COUNT ( * ), CASE 0 WHEN 11 / 1 * + 62 + ( - CAST ( - 49 AS INTEGER ) ) THEN + COUNT ( * ) - + 18 + NULLIF ( - - COALESCE ( - + 41, 70, - + 49 - 5, + 64 * - 40 - + 62 ), 20 ) WHEN + 83 * - + 8 THEN NULL END col1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT ALL CAST( - 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL CAST ( - 98 AS INTEGER )
----
-98

query I rowsort
SELECT + 58 * 2
----
116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - MAX( 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-764
SELECT - MAX ( 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-765
SELECT - CAST( 17 AS SIGNED ) + CASE WHEN NOT ( COUNT( * ) ) IS NULL THEN - 45 * + COUNT( * ) END AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-765
SELECT - CAST ( 17 AS INTEGER ) + CASE WHEN NOT ( COUNT ( * ) ) IS NULL THEN - 45 * + COUNT ( * ) END AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-766
SELECT - 57 * CASE 94 WHEN + 89 + - 2 + - 91 THEN 70 * + + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT - 57 * CASE 94 WHEN + 89 + - 2 + - 91 THEN 70 * + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - 45 * - - 57 + + CASE COUNT( * ) WHEN 36 / + 11 * + 96 * - - 22 + + + 8 - - 56 THEN - 75 ELSE + 48 END * - 29 AS col0
----
-3957

skipif mysql # not compatible
query I rowsort label-767
SELECT - 45 * - - 57 + + CASE COUNT ( * ) WHEN 36 / + 11 * + 96 * - - 22 + + + 8 - - 56 THEN - 75 ELSE + 48 END * - 29 AS col0
----
-3957

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT + 71 DIV - - 96 + + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-768
SELECT + 71 / - - 96 + + 62 AS col1
----
62

query I rowsort
SELECT 95 * - 57 col0
----
-5415

query I rowsort
SELECT ALL 55 * - 61 * 22
----
-73810

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL - ( + 0 ) * CASE - - 97 WHEN - - 91 - + MIN( DISTINCT - 68 ) THEN - 94 WHEN + 30 THEN - + SUM( DISTINCT - ( - 59 ) ) - NULLIF ( - - 47, + 40 + - 0 * + + 33 * 56 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - ( + 0 ) * CASE - - 97 WHEN - - 91 - + MIN ( DISTINCT - 68 ) THEN - 94 WHEN + 30 THEN - + SUM ( DISTINCT - ( - 59 ) ) - NULLIF ( - - 47, + 40 + - 0 * + + 33 * 56 ) END
----
NULL

query I rowsort
SELECT - ( - 23 ) * - 91 * + - 35 + 63 * + 99 + + ( + 54 )
----
79546

query I rowsort
SELECT - + 25 * 99 + + + 93 col1
----
-2382

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT 2 - + + COUNT( - - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-774
SELECT 2 - + + COUNT ( - - 93 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-775
SELECT + 91 + - 36 + - CASE + 24 WHEN 40 + - 13 + 56 THEN + NULLIF ( 4, + - 26 ) * 40 * + + ( + CASE - COUNT( * ) WHEN + 31 THEN 70 * - + 74 * + - AVG ( DISTINCT - 98 ) WHEN - + 27 THEN - ( - - 36 ) WHEN + CAST( NULL AS SIGNED ) * 16 THEN - 90 END ) + + 52 + ( + CAST( - + 64 AS SIGNED ) ) * COUNT( * ) END + - MAX( 45 ) + 2 / 21 / + MIN( NULLIF ( + 87, + 54 ) ) * + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT + 91 + - 36 + - CASE + 24 WHEN 40 + - 13 + 56 THEN + NULLIF ( 4, + - 26 ) * 40 * + + ( + CASE - COUNT ( * ) WHEN + 31 THEN 70 * - + 74 * + - AVG ( DISTINCT - 98 ) WHEN - + 27 THEN - ( - - 36 ) WHEN + CAST ( NULL AS INTEGER ) * 16 THEN - 90 END ) + + 52 + ( + CAST ( - + 64 AS INTEGER ) ) * COUNT ( * ) END + - MAX ( 45 ) + 2 / 21 / + MIN ( NULLIF ( + 87, + 54 ) ) * + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-776
SELECT - 83 * - ( COUNT( NULLIF ( 51, 56 ) ) ) - - 77 + - ( 66 ) DIV + 71 * + 41 + + - 70 * + NULLIF ( 2, 23 * + - 34 ) + + + 34 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-776
SELECT - 83 * - ( COUNT ( NULLIF ( 51, 56 ) ) ) - - 77 + - ( 66 ) / + 71 * + 41 + + - 70 * + NULLIF ( 2, 23 * + - 34 ) + + + 34 AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT + + ( + 74 ) DIV 44 + + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-777
SELECT + + ( + 74 ) / 44 + + 37 AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT + COALESCE ( - COUNT( * ), - + SUM( ALL - + ( + 88 ) ) * - - 74 - - + 82 ) DIV 83 + + MAX( ALL - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-778
SELECT + COALESCE ( - COUNT ( * ), - + SUM ( ALL - + ( + 88 ) ) * - - 74 - - + 82 ) / 83 + + MAX ( ALL - 72 ) AS col0
----
-72

query I rowsort
SELECT ALL - 71 col2
----
-71

query I rowsort
SELECT ALL - 61 col0
----
-61

query II rowsort
SELECT 20 + + 11 AS col1, 24
----
31
24

query I rowsort
SELECT NULLIF ( + + 81, 59 ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT ALL 60 * CAST( - 91 AS SIGNED )
----
-5460

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL 60 * CAST ( - 91 AS INTEGER )
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT MAX( DISTINCT - 87 ) + + + 49
----
-38

skipif mysql # not compatible
query I rowsort label-784
SELECT MAX ( DISTINCT - 87 ) + + + 49
----
-38

query I rowsort
SELECT ( + 8 ) * + 52 * - 67 AS col1
----
-27872

query I rowsort
SELECT - 73 * + - 69 + 32
----
5069

query II rowsort
SELECT DISTINCT 65 + 60 * - 70, + 59 AS col2
----
-4135
59

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT ALL MAX( ALL - 80 ) + - + ( - 28 )
----
-52

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL MAX ( ALL - 80 ) + - + ( - 28 )
----
-52

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

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT 47 + + + COUNT ( * ) * - 12 AS col1
----
35

query I rowsort
SELECT DISTINCT 59 * 67
----
3953

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

query I rowsort
SELECT 89 - 22
----
67

query I rowsort
SELECT 24 * 8
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT DISTINCT - ( ( + - 97 ) ) * + 60 + + 41 * - COUNT( * )
----
5779

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - ( ( + - 97 ) ) * + 60 + + 41 * - COUNT ( * )
----
5779

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT ALL 93 DIV + + 7 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL 93 / + + 7 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT COUNT( * ) + 34 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-796
SELECT COUNT ( * ) + 34 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-797
SELECT 17 - + 60 + + - COALESCE ( - COUNT( * ), + MAX( ALL - NULLIF ( - 99, CAST( NULL AS DECIMAL ) + 58 + 53 ) ) + + 10 + - - 47 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-797
SELECT 17 - + 60 + + - COALESCE ( - COUNT ( * ), + MAX ( ALL - NULLIF ( - 99, CAST ( NULL AS REAL ) + 58 + 53 ) ) + + 10 + - - 47 ) AS col0
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT - COUNT( * ) - 66 * 84
----
-5545

skipif mysql # not compatible
query I rowsort label-799
SELECT - COUNT ( * ) - 66 * 84
----
-5545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-800
SELECT ALL + CASE - 84 WHEN - + 57 * - - 79 * + ( - ( + + 55 ) ) + NULLIF ( - + AVG ( + + 30 ), - 8 ) THEN + CAST( NULL AS SIGNED ) * - - 66 + - ( 81 ) + COUNT( * ) * - 58 * - - 51 WHEN - 65 + - 97 + - 64 * + + MAX( DISTINCT + 86 ) THEN NULL ELSE NULL END * 84 / - AVG ( DISTINCT - 69 ) + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + CASE - 84 WHEN - + 57 * - - 79 * + ( - ( + + 55 ) ) + NULLIF ( - + AVG ( + + 30 ), - 8 ) THEN + CAST ( NULL AS INTEGER ) * - - 66 + - ( 81 ) + COUNT ( * ) * - 58 * - - 51 WHEN - 65 + - 97 + - 64 * + + MAX ( DISTINCT + 86 ) THEN NULL ELSE NULL END * 84 / - AVG ( DISTINCT - 69 ) + + 43 AS col0
----
NULL

query I rowsort
SELECT 97 * + - 79 * - + 37
----
283531

query I rowsort
SELECT 40 * 43 + + 55 * 35 AS col0
----
3645

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-803
SELECT + 31 DIV 41 + + 14 + + COUNT( + + 81 ), - ( + 65 ) + - 64 + - 76 DIV + 34 + - + 22 DIV 90 + - 22 AS col0
----
15
-153

skipif mysql # not compatible
query II rowsort label-803
SELECT + 31 / 41 + + 14 + + COUNT ( + + 81 ), - ( + 65 ) + - 64 + - 76 / + 34 + - + 22 / 90 + - 22 AS col0
----
15
-153

query II rowsort
SELECT - 91 AS col2, 2 AS col1
----
-91
2

query I rowsort
SELECT + COALESCE ( + - 55, - + 10 + 41 ) AS col0
----
-55

query I rowsort
SELECT + 75 col1
----
75

query I rowsort
SELECT DISTINCT - ( + + 76 ) AS col0
----
-76

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

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

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

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

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - + 42 AS col2
----
NULL

query I rowsort
SELECT ALL - 45 col0
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-813
SELECT + + ( - NULLIF ( ( 96 ), - CASE + 48 WHEN - NULLIF ( - 68, + CAST( NULL AS DECIMAL ) ) * - 26 + 28 THEN - + 98 WHEN 80 * - NULLIF ( + 42, + ( 80 ) ) THEN NULL ELSE NULL END ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-813
SELECT + + ( - NULLIF ( ( 96 ), - CASE + 48 WHEN - NULLIF ( - 68, + CAST ( NULL AS REAL ) ) * - 26 + 28 THEN - + 98 WHEN 80 * - NULLIF ( + 42, + ( 80 ) ) THEN NULL ELSE NULL END ) ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT SUM( DISTINCT - 86 ) * 78 * 56
----
-375648

skipif mysql # not compatible
query I rowsort label-814
SELECT SUM ( DISTINCT - 86 ) * 78 * 56
----
-375648

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL - 63 * - 95 + + - 4 + COALESCE ( - COUNT( 41 ), + 59 ) AS col0
----
5980

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - 63 * - 95 + + - 4 + COALESCE ( - COUNT ( 41 ), + 59 ) AS col0
----
5980

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT + 82 * + - 97 + COUNT( * ) + + 59 AS col0
----
-7894

skipif mysql # not compatible
query I rowsort label-816
SELECT + 82 * + - 97 + COUNT ( * ) + + 59 AS col0
----
-7894

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT 30 * + MIN( DISTINCT - 46 ) - + 96
----
-1476

skipif mysql # not compatible
query I rowsort label-817
SELECT 30 * + MIN ( DISTINCT - 46 ) - + 96
----
-1476

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT COUNT( * ) * + - COUNT( ALL - 69 ) * + 18 * - + 41 * + 69 - - 45 + 54 * - 24 * - 48
----
113175

skipif mysql # not compatible
query I rowsort label-819
SELECT COUNT ( * ) * + - COUNT ( ALL - 69 ) * + 18 * - + 41 * + 69 - - 45 + 54 * - 24 * - 48
----
113175

query I rowsort
SELECT ALL - 4 + - 39 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT CASE + CAST( 71 AS SIGNED ) WHEN + - 66 THEN + 68 ELSE NULL END * 85 - - 8 / 32 + - 87 * - - 66 + - ( AVG ( DISTINCT + 25 ) ) + + ( - COUNT( * ) ) * - CAST( + - 19 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT CASE + CAST ( 71 AS INTEGER ) WHEN + - 66 THEN + 68 ELSE NULL END * 85 - - 8 / 32 + - 87 * - - 66 + - ( AVG ( DISTINCT + 25 ) ) + + ( - COUNT ( * ) ) * - CAST ( + - 19 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT ALL COUNT( * ) * + 35 col0
----
35

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL COUNT ( * ) * + 35 col0
----
35

query I rowsort
SELECT 47 col2
----
47

query I rowsort
SELECT + 11 + 49 * 50
----
2461

query I rowsort
SELECT + 17 - 12
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT ALL ( - COUNT( * ) ) - - 62 * - 30 * 22 AS col1
----
-40921

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL ( - COUNT ( * ) ) - - 62 * - 30 * 22 AS col1
----
-40921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT + 81 + + 12 + + CAST( - + 53 AS SIGNED ) * + 5
----
-172

skipif mysql # not compatible
query I rowsort label-827
SELECT + 81 + + 12 + + CAST ( - + 53 AS INTEGER ) * + 5
----
-172

query II rowsort
SELECT - 85 AS col0, 13 * + 91
----
-85
1183

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT - 80 AS col0, + 80 + + COUNT( * ) + - 54 AS col2
----
-80
27

skipif mysql # not compatible
query II rowsort label-829
SELECT - 80 AS col0, + 80 + + COUNT ( * ) + - 54 AS col2
----
-80
27

query I rowsort
SELECT - + 41 + - 91
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT + 73 DIV + NULLIF ( + 74, - 69 ) * + 11 + + + 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-831
SELECT + 73 / + NULLIF ( + 74, - 69 ) * + 11 + + + 54 AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-832
SELECT ALL - 88 * 5 + + 41 + NULLIF ( 35, + + CASE + COUNT( * ) WHEN 97 THEN 99 + 87 WHEN - SUM( ALL + 14 ) * + 86 - + 65 THEN NULL END * - - 83 ) + + 64 AS col0, - 93 * + 18 DIV - COUNT( * ) + + 44 AS col0
----
-300
1718

skipif mysql # not compatible
query II rowsort label-832
SELECT ALL - 88 * 5 + + 41 + NULLIF ( 35, + + CASE + COUNT ( * ) WHEN 97 THEN 99 + 87 WHEN - SUM ( ALL + 14 ) * + 86 - + 65 THEN NULL END * - - 83 ) + + 64 AS col0, - 93 * + 18 / - COUNT ( * ) + + 44 AS col0
----
-300
1718

onlyif mysql # DIV for integer division: 
query II rowsort label-833
SELECT ALL + 91, 11 DIV 94 AS col2
----
91
0

skipif mysql # not compatible
query II rowsort label-833
SELECT ALL + 91, 11 / 94 AS col2
----
91
0

query II rowsort
SELECT + - 34 AS col2, 19
----
-34
19

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

query I rowsort
SELECT ( ( - 20 ) ) * + - 12 + - + 4 AS col1
----
236

query II rowsort
SELECT + 20 AS col1, 76 * - 66
----
20
-5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT DISTINCT - - CAST( - 61 AS SIGNED ) * 95 + + - 21
----
-5816

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT - - CAST ( - 61 AS INTEGER ) * 95 + + - 21
----
-5816

onlyif mysql # aggregate syntax: 
query II rowsort label-839
SELECT - COUNT( * ) + 61 AS col1, 46 * - - 92 AS col2
----
60
4232

skipif mysql # not compatible
query II rowsort label-839
SELECT - COUNT ( * ) + 61 AS col1, 46 * - - 92 AS col2
----
60
4232

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

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

query I rowsort
SELECT + 89 * + 73 + 17 col1
----
6514

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT - ( NULLIF ( - + 53, 43 - AVG ( DISTINCT 1 ) ) ) + 93 + + MAX( ALL + 25 ) * - + 32 * - - COUNT( * ) AS col1
----
-654

skipif mysql # not compatible
query I rowsort label-842
SELECT - ( NULLIF ( - + 53, 43 - AVG ( DISTINCT 1 ) ) ) + 93 + + MAX ( ALL + 25 ) * - + 32 * - - COUNT ( * ) AS col1
----
-654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-843
SELECT CAST( NULL AS SIGNED ) * - CAST( + - 11 AS SIGNED ) / + - 38 + 20 * - + COUNT( * ) + - + 15 + + - 20 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT CAST ( NULL AS INTEGER ) * - CAST ( + - 11 AS INTEGER ) / + - 38 + 20 * - + COUNT ( * ) + - + 15 + + - 20 * + 66
----
NULL

query I rowsort
SELECT ALL - 63 * + + 12
----
-756

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

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

query I rowsort
SELECT - 65 * - - 25 * - 28 col2
----
45500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-847
SELECT ALL + MAX( 98 ) * - CAST( NULL AS SIGNED ) AS col2, - COUNT( + 55 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-847
SELECT ALL + MAX ( 98 ) * - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( + 55 )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-848
SELECT - 41 + 17 AS col0, COUNT( + - 78 )
----
-24
1

skipif mysql # not compatible
query II rowsort label-848
SELECT - 41 + 17 AS col0, COUNT ( + - 78 )
----
-24
1

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT ALL + 45 * + 52 * - - COUNT( * ) * - COUNT( * ) * - 85 * + COALESCE ( COALESCE ( 42, - 13 ), 16 ) col1, 80
----
8353800
80

skipif mysql # not compatible
query II rowsort label-849
SELECT ALL + 45 * + 52 * - - COUNT ( * ) * - COUNT ( * ) * - 85 * + COALESCE ( COALESCE ( 42, - 13 ), 16 ) col1, 80
----
8353800
80

query II rowsort
SELECT DISTINCT ( - 72 ), + 61 col0
----
-72
61

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

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

query I rowsort
SELECT + 34 * + 52 AS col2
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - MAX( DISTINCT + ( - + 84 ) ) col1
----
84

skipif mysql # not compatible
query I rowsort label-853
SELECT - MAX ( DISTINCT + ( - + 84 ) ) col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT ALL ( + - 22 ) DIV ( - 84 ) + + 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL ( + - 22 ) / ( - 84 ) + + 1 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL ( - COUNT( DISTINCT ( 66 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL ( - COUNT ( DISTINCT ( 66 ) ) ) AS col2
----
-1

query I rowsort
SELECT - NULLIF ( + 3, - 76 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT + COUNT( * ) * 4 * - 74 AS col1
----
-296

skipif mysql # not compatible
query I rowsort label-857
SELECT + COUNT ( * ) * 4 * - 74 AS col1
----
-296

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT - 45 - 16 DIV + ( + 44 )
----
-45

skipif mysql # not compatible
query I rowsort label-858
SELECT - 45 - 16 / + ( + 44 )
----
-45

query I rowsort
SELECT - NULLIF ( 64, - + 68 ) * - 21
----
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-860
SELECT - CAST( NULL AS SIGNED ) - MIN( - 4 ) + + MIN( DISTINCT + 17 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT - CAST ( NULL AS INTEGER ) - MIN ( - 4 ) + + MIN ( DISTINCT + 17 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT - 44 * ( - 33 ) * 7 + + 39 * 33
----
11451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT + - 28 + + - 32 + + 1 * - ( + CAST( NULL AS SIGNED ) ) / - 30 * - - 66 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT + - 28 + + - 32 + + 1 * - ( + CAST ( NULL AS INTEGER ) ) / - 30 * - - 66 + + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 18 - + 99 + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 18 - + 99 + 80 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 79 * + 2 * - + 91
----
-14378

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT + + COUNT( * ) - + 19 + - + 34 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-867
SELECT + + COUNT ( * ) - + 19 + - + 34 AS col1
----
-52

query I rowsort
SELECT + 10 col2
----
10

query I rowsort
SELECT ALL - 29 + - - 27 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT - 46 * - 43 * COALESCE ( NULLIF ( + 20, + COUNT( * ) ), - COUNT( ALL 38 ) ) AS col1
----
39560

skipif mysql # not compatible
query I rowsort label-870
SELECT - 46 * - 43 * COALESCE ( NULLIF ( + 20, + COUNT ( * ) ), - COUNT ( ALL 38 ) ) AS col1
----
39560

query I rowsort
SELECT DISTINCT + + 86 AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT 27 DIV + 52 + + - 24 + + 75 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-872
SELECT 27 / + 52 + + - 24 + + 75 AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-873
SELECT ALL - COUNT( * ) DIV SUM( DISTINCT + - 54 ) + + 29
----
29

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - COUNT ( * ) / SUM ( DISTINCT + - 54 ) + + 29
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-874
SELECT ALL + COUNT( * ) DIV COUNT( ALL - 31 ), + 95 AS col2
----
1
95

skipif mysql # not compatible
query II rowsort label-874
SELECT ALL + COUNT ( * ) / COUNT ( ALL - 31 ), + 95 AS col2
----
1
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-875
SELECT + CAST( - 30 AS SIGNED ) DIV 9 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-875
SELECT + CAST ( - 30 AS INTEGER ) / 9 AS col1
----
-3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-878
SELECT ALL 5 DIV - ( - - MAX( + 18 ) ) - + 42 * - + COALESCE ( + 51, + 9 + - NULLIF ( CAST( - - 90 AS SIGNED ), - AVG ( DISTINCT - + 10 ) ), 82 * MAX( ALL 36 ) ) * - 20 col2
----
-42840

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL 5 / - ( - - MAX ( + 18 ) ) - + 42 * - + COALESCE ( + 51, + 9 + - NULLIF ( CAST ( - - 90 AS INTEGER ), - AVG ( DISTINCT - + 10 ) ), 82 * MAX ( ALL 36 ) ) * - 20 col2
----
-42840

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT DISTINCT COUNT( * ) * - 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT COUNT ( * ) * - 84 AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-880
SELECT - 65 DIV - NULLIF ( + 49, CAST( NULL AS SIGNED ) ), - 46 * + 50 AS col2
----
1
-2300

skipif mysql # not compatible
query II rowsort label-880
SELECT - 65 / - NULLIF ( + 49, CAST ( NULL AS INTEGER ) ), - 46 * + 50 AS col2
----
1
-2300

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT MAX( - 51 ) + + 35 + + CAST( 71 AS SIGNED ) - - 64 * + 81
----
5239

skipif mysql # not compatible
query I rowsort label-882
SELECT MAX ( - 51 ) + + 35 + + CAST ( 71 AS INTEGER ) - - 64 * + 81
----
5239

query I rowsort
SELECT 24 * + 83
----
1992

query II rowsort
SELECT ALL - 43 AS col0, - 41 AS col1
----
-43
-41

query II rowsort
SELECT 24 + + 8 * - 28 AS col1, 64 AS col2
----
-200
64

onlyif mysql # aggregate syntax: 
query II rowsort label-886
SELECT ALL + COALESCE ( + + 12, - + ( - 88 ) ) * + ( 10 ) col1, - COUNT( * ) AS col0
----
120
-1

skipif mysql # not compatible
query II rowsort label-886
SELECT ALL + COALESCE ( + + 12, - + ( - 88 ) ) * + ( 10 ) col1, - COUNT ( * ) AS col0
----
120
-1

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

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

query I rowsort
SELECT 40 * + 33 col1
----
1320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT 42 * COUNT( * ) + + - COALESCE ( + - 48, + ( - 38 ) + + 89, - + 44 )
----
90

skipif mysql # not compatible
query I rowsort label-890
SELECT 42 * COUNT ( * ) + + - COALESCE ( + - 48, + ( - 38 ) + + 89, - + 44 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT ALL + 15 + CAST( NULL AS SIGNED ) + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + 15 + CAST ( NULL AS INTEGER ) + + 40 AS col0
----
NULL

query I rowsort
SELECT 23 + + 40 AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT + 40 * + ( + + 75 ) - + 71 DIV 10 AS col0
----
2993

skipif mysql # not compatible
query I rowsort label-893
SELECT + 40 * + ( + + 75 ) - + 71 / 10 AS col0
----
2993

query I rowsort
SELECT + ( + 98 ) * + 4 + - 26
----
366

query I rowsort
SELECT - 2 - + + 88 + + 78 + - 14 * + 35 * + 16
----
-7852

query I rowsort
SELECT ALL 20 col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL + + 74 + - + 63 + + 29 + + - 19 + - + ( - 9 ) + + + MIN( ALL - - 80 ) * + + 41
----
3310

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + + 74 + - + 63 + + 29 + + - 19 + - + ( - 9 ) + + + MIN ( ALL - - 80 ) * + + 41
----
3310

query I rowsort
SELECT - - ( 87 ) col2
----
87

query I rowsort
SELECT DISTINCT + 91 + + - 5 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT - MAX( + 57 ) * - 80
----
4560

skipif mysql # not compatible
query I rowsort label-900
SELECT - MAX ( + 57 ) * - 80
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-901
SELECT CAST( + NULLIF ( + - COUNT( * ), + 92 ) AS SIGNED ) + - 72 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-901
SELECT CAST ( + NULLIF ( + - COUNT ( * ), + 92 ) AS INTEGER ) + - 72 AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT 82 + + 77 + + + 58 DIV + 63
----
159

skipif mysql # not compatible
query I rowsort label-902
SELECT 82 + + 77 + + + 58 / + 63
----
159

query II rowsort
SELECT - 55 AS col2, 49 AS col0
----
-55
49

query I rowsort
SELECT ALL 77 col1
----
77

query I rowsort
SELECT + 44 + + + 84 AS col2
----
128

query I rowsort
SELECT 71 * 75 AS col1
----
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT 74 + + SUM( + ( - 75 ) ) * - 73 * - - 96 - 28
----
525646

skipif mysql # not compatible
query I rowsort label-907
SELECT 74 + + SUM ( + ( - 75 ) ) * - 73 * - - 96 - 28
----
525646

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT - CASE 69 WHEN 24 THEN CASE 1 WHEN - 83 * - COUNT( * ) * + 91 THEN COUNT( * ) ELSE NULL END - - 90 * 48 + - 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-908
SELECT - CASE 69 WHEN 24 THEN CASE 1 WHEN - 83 * - COUNT ( * ) * + 91 THEN COUNT ( * ) ELSE NULL END - - 90 * 48 + - 18 END AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 89 ) + + 80
----
-9

query I rowsort
SELECT ALL + 17 * - 46
----
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT - MAX( ALL + - 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-911
SELECT - MAX ( ALL + - 27 ) AS col0
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT + + COUNT( 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-913
SELECT + + COUNT ( 32 ) AS col1
----
1

query I rowsort
SELECT ALL - - 56 - + - 0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-915
SELECT + 77 DIV - COUNT( * ) + + 75 * + 85 + + COALESCE ( 49, - CASE 38 WHEN 81 THEN + COUNT( - 88 ) + + 26 + + NULLIF ( + + 93, 6 ) END, + ( - + 57 ) DIV + 52 - - 95 ) * - 17
----
5465

skipif mysql # not compatible
query I rowsort label-915
SELECT + 77 / - COUNT ( * ) + + 75 * + 85 + + COALESCE ( 49, - CASE 38 WHEN 81 THEN + COUNT ( - 88 ) + + 26 + + NULLIF ( + + 93, 6 ) END, + ( - + 57 ) / + 52 - - 95 ) * - 17
----
5465

query I rowsort
SELECT 9 + 22 + 26
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-917
SELECT CASE + ( - CAST( - 86 AS SIGNED ) ) WHEN + 36 THEN 13 * - - 16 * 51 * - 63 * + + 86 + 75 WHEN - + COUNT( * ) * - 57 / + CAST( NULL AS DECIMAL ) - COUNT( * ) + - 66 THEN NULL WHEN + 24 / + MAX( DISTINCT - + 78 ) THEN NULL ELSE NULL END * - COUNT( ALL - + CASE + 37 WHEN + - 65 * + + CAST( NULL AS SIGNED ) THEN NULL WHEN - 86 THEN NULL WHEN + 61 THEN + 1 + + + 46 ELSE NULL END ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT CASE + ( - CAST ( - 86 AS INTEGER ) ) WHEN + 36 THEN 13 * - - 16 * 51 * - 63 * + + 86 + 75 WHEN - + COUNT ( * ) * - 57 / + CAST ( NULL AS REAL ) - COUNT ( * ) + - 66 THEN NULL WHEN + 24 / + MAX ( DISTINCT - + 78 ) THEN NULL ELSE NULL END * - COUNT ( ALL - + CASE + 37 WHEN + - 65 * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 86 THEN NULL WHEN + 61 THEN + 1 + + + 46 ELSE NULL END ) + - 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-918
SELECT CAST( NULL AS SIGNED ) * 74 * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT CAST ( NULL AS INTEGER ) * 74 * - 80 AS col2
----
NULL

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

query I rowsort
SELECT 9 * - - 28 + 62 AS col1
----
314

query I rowsort
SELECT ALL 82 * 29 AS col1
----
2378

query I rowsort
SELECT 8 * + 19
----
152

query I rowsort
SELECT DISTINCT - 47 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT 17 * COUNT( DISTINCT - 3 )
----
17

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT 17 * COUNT ( DISTINCT - 3 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT 33 * - - COUNT( ALL 36 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-925
SELECT 33 * - - COUNT ( ALL 36 ) AS col1
----
33

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

onlyif mysql # DIV for integer division: 
query II rowsort label-927
SELECT 53 DIV - 90 col2, - 77
----
0
-77

skipif mysql # not compatible
query II rowsort label-927
SELECT 53 / - 90 col2, - 77
----
0
-77

query I rowsort
SELECT 23 * 19 AS col2
----
437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-929
SELECT 59 + - + CAST( NULL AS SIGNED ) + + COUNT( * ) / - 87 col0, ( 90 )
----
NULL
90

skipif mysql # not compatible
query II rowsort label-929
SELECT 59 + - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) / - 87 col0, ( 90 )
----
NULL
90

query II rowsort
SELECT + 74 * - + 53 + + 48 - 8 AS col2, 30
----
-3882
30

onlyif mysql # aggregate syntax: 
query II rowsort label-931
SELECT ALL - 53 + + COUNT( * ) AS col1, - 61 * 61 * + 78 * - 41
----
-52
11899758

skipif mysql # not compatible
query II rowsort label-931
SELECT ALL - 53 + + COUNT ( * ) AS col1, - 61 * 61 * + 78 * - 41
----
-52
11899758

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT DISTINCT 5 + - + 31 DIV + + 46
----
5

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT 5 + - + 31 / + + 46
----
5

query I rowsort
SELECT 86 * + + 33
----
2838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-934
SELECT DISTINCT NULLIF ( - 56, - + CAST( NULL AS SIGNED ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT NULLIF ( - 56, - + CAST ( NULL AS INTEGER ) ) AS col2
----
-56

query I rowsort
SELECT DISTINCT + 40 + 26 * + 7
----
222

query I rowsort
SELECT ALL - NULLIF ( - 22, - + 53 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-937
SELECT + 33 + - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT + 33 + - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT - MIN( 71 ) AS col0, + 67
----
-71
67

skipif mysql # not compatible
query II rowsort label-938
SELECT - MIN ( 71 ) AS col0, + 67
----
-71
67

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - ( + ( COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-939
SELECT - ( + ( COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT 86 + + 81 + - 37 AS col0
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT + 16 * + - 9 AS col0, 19 * + + COUNT( * ) * - - 78 + 99 AS col1
----
-144
1581

skipif mysql # not compatible
query II rowsort label-941
SELECT + 16 * + - 9 AS col0, 19 * + + COUNT ( * ) * - - 78 + 99 AS col1
----
-144
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT - + 4 - + - CASE + 88 WHEN - - 45 THEN + 51 / - 95 * + 42 * + 99 + - 16 * + COUNT( * ) END * + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT - + 4 - + - CASE + 88 WHEN - - 45 THEN + 51 / - 95 * + 42 * + 99 + - 16 * + COUNT ( * ) END * + - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-943
SELECT DISTINCT + 44 - - CASE - CASE - + SUM( CAST( NULL AS SIGNED ) ) WHEN - 31 THEN + - 76 / + 46 WHEN - AVG ( DISTINCT + + 47 ) THEN 3 ELSE NULL END WHEN - - COUNT( * ) + - 26 * + 56 THEN - 49 WHEN - COALESCE ( - ( + 24 ), - - CASE + 99 WHEN - 18 / + CASE WHEN 32 NOT IN ( + 26 - ( - 2 ) + + 3 ) THEN 30 END * - 27 + + CASE 59 WHEN + 87 THEN NULL ELSE - CAST( + 68 AS DECIMAL ) * - 37 + - + ( - 16 ) END THEN - 67 + + 68 / - 52 ELSE - MIN( DISTINCT 33 ) + 65 END, + NULLIF ( - ( 77 ), 42 ) ) * + 88 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT + 44 - - CASE - CASE - + SUM ( CAST ( NULL AS INTEGER ) ) WHEN - 31 THEN + - 76 / + 46 WHEN - AVG ( DISTINCT + + 47 ) THEN 3 ELSE NULL END WHEN - - COUNT ( * ) + - 26 * + 56 THEN - 49 WHEN - COALESCE ( - ( + 24 ), - - CASE + 99 WHEN - 18 / + CASE WHEN 32 NOT IN ( + 26 - ( - 2 ) + + 3 ) THEN 30 END * - 27 + + CASE 59 WHEN + 87 THEN NULL ELSE - CAST ( + 68 AS REAL ) * - 37 + - + ( - 16 ) END THEN - 67 + + 68 / - 52 ELSE - MIN ( DISTINCT 33 ) + 65 END, + NULLIF ( - ( 77 ), 42 ) ) * + 88 THEN NULL END col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT - 24 DIV 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-945
SELECT - 24 / 61 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT - COUNT( * ) * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-946
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-947
SELECT CASE + CAST( NULL AS DECIMAL ) WHEN CASE 2 WHEN - 40 + - 35 THEN CAST( NULL AS SIGNED ) WHEN - 73 THEN MIN( DISTINCT + 55 ) * 60 END THEN + - 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT CASE + CAST ( NULL AS REAL ) WHEN CASE 2 WHEN - 40 + - 35 THEN CAST ( NULL AS INTEGER ) WHEN - 73 THEN MIN ( DISTINCT + 55 ) * 60 END THEN + - 57 END AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT NULLIF ( - 36, - SUM( + - 59 ) * - - MIN( - 70 ) + - 0 - - 84 + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) - 93 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-950
SELECT NULLIF ( - 36, - SUM ( + - 59 ) * - - MIN ( - 70 ) + - 0 - - 84 + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - 93 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT DISTINCT - COUNT( * ) * + 80 + + 14 + - 39 col1
----
-105

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT - COUNT ( * ) * + 80 + + 14 + - 39 col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT - MIN( DISTINCT + + 99 ) * + + 57 + - 20 * - + COUNT( * )
----
-5623

skipif mysql # not compatible
query I rowsort label-952
SELECT - MIN ( DISTINCT + + 99 ) * + + 57 + - 20 * - + COUNT ( * )
----
-5623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-953
SELECT SUM( CAST( - 67 AS SIGNED ) ) AS col2, 52
----
-67
52

skipif mysql # not compatible
query II rowsort label-953
SELECT SUM ( CAST ( - 67 AS INTEGER ) ) AS col2, 52
----
-67
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT 42 * - MIN( ALL + + 93 ) - - 49 * - 22
----
-4984

skipif mysql # not compatible
query I rowsort label-955
SELECT 42 * - MIN ( ALL + + 93 ) - - 49 * - 22
----
-4984

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT + 4 * COUNT( * ) * 70 * - 36 * - COUNT( * )
----
10080

skipif mysql # not compatible
query I rowsort label-957
SELECT + 4 * COUNT ( * ) * 70 * - 36 * - COUNT ( * )
----
10080

query I rowsort
SELECT DISTINCT + 7 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT + COUNT( DISTINCT + 77 ) + - CAST( 0 AS SIGNED ) + + COUNT( * ) + - + 9
----
-7

skipif mysql # not compatible
query I rowsort label-959
SELECT + COUNT ( DISTINCT + 77 ) + - CAST ( 0 AS INTEGER ) + + COUNT ( * ) + - + 9
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-960
SELECT ALL 99 * 62 + - NULLIF ( 41, 67 * - - 15 ) * - 38 + 25 AS col0, 70 - + ( + - 87 ) DIV + CAST( ( + 12 ) AS SIGNED ) + + ( + + MAX( DISTINCT + 17 ) ) DIV 40
----
7721
77

skipif mysql # not compatible
query II rowsort label-960
SELECT ALL 99 * 62 + - NULLIF ( 41, 67 * - - 15 ) * - 38 + 25 AS col0, 70 - + ( + - 87 ) / + CAST ( ( + 12 ) AS INTEGER ) + + ( + + MAX ( DISTINCT + 17 ) ) / 40
----
7721
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT + 37 + + - 88 + + 52 / - + CAST( NULL AS SIGNED ) / + NULLIF ( + - 17, - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT + 37 + + - 88 + + 52 / - + CAST ( NULL AS INTEGER ) / + NULLIF ( + - 17, - 94 )
----
NULL

query I rowsort
SELECT ALL + 91 + + 19 + 43 AS col2
----
153

query I rowsort
SELECT DISTINCT + 75 * - 83 * + 32 col1
----
-199200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL - MAX( + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - MAX ( + 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL + COUNT( * ) + + - NULLIF ( + 71, - COUNT( * ) * + - 81 ) + + 22
----
-48

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + COUNT ( * ) + + - NULLIF ( + 71, - COUNT ( * ) * + - 81 ) + + 22
----
-48

query I rowsort
SELECT + + ( 10 ) * + 22 * + 15 + + 83 + - + 4 - - + 91 AS col0
----
3470

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT + - 61 + - CASE - CASE - 21 WHEN - + ( - 12 ) THEN NULLIF ( - 15, 19 + - 65 ) * CASE + - COUNT( * ) WHEN + AVG ( DISTINCT - - 20 ) * - 21 THEN NULL ELSE - AVG ( - + 48 ) * - 34 END WHEN + 45 THEN + 77 * + + 91 * + 97 END WHEN + 30 THEN + 42 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT + - 61 + - CASE - CASE - 21 WHEN - + ( - 12 ) THEN NULLIF ( - 15, 19 + - 65 ) * CASE + - COUNT ( * ) WHEN + AVG ( DISTINCT - - 20 ) * - 21 THEN NULL ELSE - AVG ( - + 48 ) * - 34 END WHEN + 45 THEN + 77 * + + 91 * + 97 END WHEN + 30 THEN + 42 END col1
----
NULL

query I rowsort
SELECT - - 56 - + 45 AS col2
----
11

query I rowsort
SELECT + + 86 + 41 col2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-971
SELECT + 40 * + + CAST( + 36 AS SIGNED ), 21 + - 29 AS col2
----
1440
-8

skipif mysql # not compatible
query II rowsort label-971
SELECT + 40 * + + CAST ( + 36 AS INTEGER ), 21 + - 29 AS col2
----
1440
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT - 48 - - COUNT( * ) + - 59
----
-106

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT - 48 - - COUNT ( * ) + - 59
----
-106

query I rowsort
SELECT - - ( - 42 )
----
-42

query I rowsort
SELECT + 67 + 19 col2
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT + + 35 * COUNT( * ) * + - 53
----
-1855

skipif mysql # not compatible
query I rowsort label-976
SELECT + + 35 * COUNT ( * ) * + - 53
----
-1855

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT + COUNT( * ) + 76 + + + 13 * + 44
----
649

skipif mysql # not compatible
query I rowsort label-978
SELECT + COUNT ( * ) + 76 + + + 13 * + 44
----
649

query II rowsort
SELECT 91, + 85 + 67 AS col1
----
91
152

query I rowsort
SELECT ALL - 18 * - 7 * + 88 AS col2
----
11088

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT + COUNT( * ) + ( - 43 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-981
SELECT + COUNT ( * ) + ( - 43 ) col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-982
SELECT ALL 87, CASE - 54 WHEN 1 + 7 + + 47 * + CASE + - 6 WHEN + - 52 THEN + COUNT( * ) WHEN - 12 THEN NULL END - 72 + - 73 THEN 36 WHEN + + 18 THEN NULL ELSE - 51 END AS col0
----
87
-51

skipif mysql # not compatible
query II rowsort label-982
SELECT ALL 87, CASE - 54 WHEN 1 + 7 + + 47 * + CASE + - 6 WHEN + - 52 THEN + COUNT ( * ) WHEN - 12 THEN NULL END - 72 + - 73 THEN 36 WHEN + + 18 THEN NULL ELSE - 51 END AS col0
----
87
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT ALL + 45 + - + 44 * - COUNT( * ) DIV 81 + + 45
----
90

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + 45 + - + 44 * - COUNT ( * ) / 81 + + 45
----
90

query I rowsort
SELECT - 61 * + 88 + 5 + 6
----
-5357

query I rowsort
SELECT ALL 71 * 54 AS col2
----
3834

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT 46 DIV - 95 + - 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-987
SELECT 46 / - 95 + - 51 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT DISTINCT - 87 DIV + 44 + - 50 + 90 DIV 64 DIV 21 + + 1 * - + 53 col0
----
-104

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT - 87 / + 44 + - 50 + 90 / 64 / 21 + + 1 * - + 53 col0
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-989
SELECT ALL + COUNT( * ) DIV 93 + + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + COUNT ( * ) / 93 + + 96 AS col2
----
96

query I rowsort
SELECT - 35 + 65
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-991
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) DIV 36 + 76 + - 44 + + - 47 + 25 + + 22
----
32

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) / 36 + 76 + - 44 + + - 47 + 25 + + 22
----
32

query I rowsort
SELECT - 46 * 13
----
-598

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

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

query I rowsort
SELECT 46 * 20 + + 85
----
1005

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT ALL - 38 DIV + 67 + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - 38 / + 67 + 57 AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT - 99 DIV + 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-996
SELECT - 99 / + 56 AS col2
----
-1

query I rowsort
SELECT + 29 * - 52 + + + 76 AS col0
----
-1432

query I rowsort
SELECT DISTINCT + 94 * + 72 + + + 41 col2
----
6809

query II rowsort
SELECT + 21, + 49 + - 47 AS col2
----
21
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT ALL + CASE - 24 WHEN - CAST( 81 AS SIGNED ) + + ( + + ( - CAST( NULL AS SIGNED ) ) ) - AVG ( 58 ) THEN NULL ELSE 27 END AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL + CASE - 24 WHEN - CAST ( 81 AS INTEGER ) + + ( + + ( - CAST ( NULL AS INTEGER ) ) ) - AVG ( 58 ) THEN NULL ELSE 27 END AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1001
SELECT + MIN( DISTINCT - + CAST( NULLIF ( 89, 71 ) AS SIGNED ) )
----
-89

skipif mysql # not compatible
query I rowsort label-1001
SELECT + MIN ( DISTINCT - + CAST ( NULLIF ( 89, 71 ) AS INTEGER ) )
----
-89

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

query I rowsort
SELECT - 50 AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1004
SELECT ALL 55 * + + MAX( - 98 ) - 44 + + ( + MAX( DISTINCT + 45 ) ) + + 88 * + + 62 AS col0, - 59 * 89 / - CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-1004
SELECT ALL 55 * + + MAX ( - 98 ) - 44 + + ( + MAX ( DISTINCT + 45 ) ) + + 88 * + + 62 AS col0, - 59 * 89 / - CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

query I rowsort
SELECT - + NULLIF ( 87, - AVG ( 53 ) / - - 23 ) - 27
----
-114

query I rowsort
SELECT - NULLIF ( - 12, 81 * - 91 ) AS col1
----
12

query II rowsort
SELECT ALL + 59, - 82 * - 95 col1
----
59
7790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1008
SELECT + CAST( ( - - 43 ) AS SIGNED ) + - 18 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1008
SELECT + CAST ( ( - - 43 ) AS INTEGER ) + - 18 AS col2
----
25

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1010
SELECT + 23 AS col2, 4 * - CASE - 64 WHEN - + COUNT( * ) + - COUNT( * ) THEN NULL WHEN - - ( + - MIN( 91 ) ) THEN 66 END + ( 93 ) * 69 AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-1010
SELECT + 23 AS col2, 4 * - CASE - 64 WHEN - + COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN - - ( + - MIN ( 91 ) ) THEN 66 END + ( 93 ) * 69 AS col0
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1011
SELECT DISTINCT + CASE - ( 69 ) WHEN - SUM( DISTINCT 87 ) * - 71 + + 76 + + 72 THEN NULL WHEN + 57 * - - 97 THEN - - 43 + - COALESCE ( - - COUNT( DISTINCT - 5 ), - - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) - COUNT( * ), + + 15 ) WHEN + 26 * - + 6 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + CASE - ( 69 ) WHEN - SUM ( DISTINCT 87 ) * - 71 + + 76 + + 72 THEN NULL WHEN + 57 * - - 97 THEN - - 43 + - COALESCE ( - - COUNT ( DISTINCT - 5 ), - - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) - COUNT ( * ), + + 15 ) WHEN + 26 * - + 6 THEN NULL ELSE NULL END AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT + - 24 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-1013
SELECT + - 24 / + 30
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT DISTINCT ( + - NULLIF ( - 65, CAST( NULL AS SIGNED ) ) ) * 44 AS col2
----
2860

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT ( + - NULLIF ( - 65, CAST ( NULL AS INTEGER ) ) ) * 44 AS col2
----
2860

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1015
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 19 AS col1, 32 col0
----
NULL
19
32

skipif mysql # not compatible
query III rowsort label-1015
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 19 AS col1, 32 col0
----
NULL
19
32

query II rowsort
SELECT 70, 63 AS col2
----
70
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL - 69 * - COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - 69 * - COUNT ( * ) col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1018
SELECT - - 64 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-1018
SELECT - - 64 / + 49
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1019
SELECT + MIN( ALL - 49 ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1019
SELECT + MIN ( ALL - 49 ) / 77
----
0

query I rowsort
SELECT 98 - + - 32
----
130

query I rowsort
SELECT ALL 77 * - 44 col2
----
-3388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1022
SELECT ALL CAST( - 66 AS SIGNED ) + + + CASE 8 WHEN + 49 + 26 + - 53 THEN - 4 * + 43 * - - 54 END * + 47 * + - 24 * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL CAST ( - 66 AS INTEGER ) + + + CASE 8 WHEN + 49 + 26 + - 53 THEN - 4 * + 43 * - - 54 END * + 47 * + - 24 * - 37
----
NULL

query I rowsort
SELECT ALL 88 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT 30 + - MAX( ALL + 63 ) + - 88 - 67
----
-188

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT 30 + - MAX ( ALL + 63 ) + - 88 - 67
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT COUNT( * ) - - + ( MAX( ( - 51 ) ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-1025
SELECT COUNT ( * ) - - + ( MAX ( ( - 51 ) ) ) AS col1
----
-50

query I rowsort
SELECT COALESCE ( + - 26, + 87 ) * - - 50 AS col2
----
-1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT ALL AVG ( - 58 ) + - + 6 * + SUM( ALL + - 72 ) * - - CASE 77 WHEN 57 THEN + - 91 * 7 WHEN + + 32 THEN - CAST( NULL AS SIGNED ) + NULLIF ( + 37, + + 35 ) WHEN - 64 / + + 23 * + - 12 - - 92 THEN NULL WHEN - + NULLIF ( - CASE CASE + - 99 WHEN + 58 THEN COUNT( * ) - 72 ELSE - - MAX( - 80 ) - - - 9 END WHEN + 18 * + 50 + 29 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + - 12 END, + ( - 79 ) ) THEN NULL END + - COUNT( + + 30 ) + + 49 * - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL AVG ( - 58 ) + - + 6 * + SUM ( ALL + - 72 ) * - - CASE 77 WHEN 57 THEN + - 91 * 7 WHEN + + 32 THEN - CAST ( NULL AS INTEGER ) + NULLIF ( + 37, + + 35 ) WHEN - 64 / + + 23 * + - 12 - - 92 THEN NULL WHEN - + NULLIF ( - CASE CASE + - 99 WHEN + 58 THEN COUNT ( * ) - 72 ELSE - - MAX ( - 80 ) - - - 9 END WHEN + 18 * + 50 + 29 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + - 12 END, + ( - 79 ) ) THEN NULL END + - COUNT ( + + 30 ) + + 49 * - - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - 0 * 11 + 88 + - - 94 - - - 43 AS col2
----
139

query I rowsort
SELECT 59 * + 31 * + 96 AS col0
----
175584

query I rowsort
SELECT DISTINCT + 69 * + ( - 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1031
SELECT DISTINCT CASE + + 32 WHEN - + 96 * 30 THEN NULL WHEN COUNT( * ) - 26 THEN - + NULLIF ( 66, + + SUM( 12 ) * + 61 * NULLIF ( + 19, + CAST( 14 AS SIGNED ) ) ) / 9 * 88 ELSE NULL END + + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT CASE + + 32 WHEN - + 96 * 30 THEN NULL WHEN COUNT ( * ) - 26 THEN - + NULLIF ( 66, + + SUM ( 12 ) * + 61 * NULLIF ( + 19, + CAST ( 14 AS INTEGER ) ) ) / 9 * 88 ELSE NULL END + + 59 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1032
SELECT ALL + 51 + 56 DIV 70 * 30
----
51

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL + 51 + 56 / 70 * 30
----
51

query I rowsort
SELECT 49 * - - 9 * 34 AS col1
----
14994

query I rowsort
SELECT ALL ( - - 62 ) * ( 5 )
----
310

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT ALL + 25 DIV + 2
----
12

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + 25 / + 2
----
12

query I rowsort
SELECT ALL + 52 - + 51
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT - COUNT( * ) * + 31 - - NULLIF ( - + 73, 86 ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-1038
SELECT - COUNT ( * ) * + 31 - - NULLIF ( - + 73, 86 ) AS col2
----
-104

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

query I rowsort
SELECT - 86 + 56 - + 78 AS col0
----
-108

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1042
SELECT DISTINCT + 81 - - COALESCE ( CAST( - NULLIF ( 17, + 31 ) AS SIGNED ), - - 44 ) + - 38
----
26

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT + 81 - - COALESCE ( CAST ( - NULLIF ( 17, + 31 ) AS INTEGER ), - - 44 ) + - 38
----
26

query I rowsort
SELECT + 31 * + 49 + - - 94 + - 64
----
1549

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL - + COALESCE ( - - COUNT( * ), + - 27 ) * + - 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - + COALESCE ( - - COUNT ( * ), + - 27 ) * + - 58 AS col1
----
58

query I rowsort
SELECT DISTINCT - + 96 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + 35 + 47 * - 75 + 58 * + - CASE COUNT( 49 ) WHEN + 84 THEN CASE + - 8 WHEN + SUM( DISTINCT + - 66 ) THEN + COUNT( * ) * + 70 * - - 88 END + NULLIF ( + + 34, - 44 - - + 91 + 14 * 64 ) ELSE - 56 * - 3 END AS col1
----
-13234

skipif mysql # not compatible
query I rowsort label-1046
SELECT + 35 + 47 * - 75 + 58 * + - CASE COUNT ( 49 ) WHEN + 84 THEN CASE + - 8 WHEN + SUM ( DISTINCT + - 66 ) THEN + COUNT ( * ) * + 70 * - - 88 END + NULLIF ( + + 34, - 44 - - + 91 + 14 * 64 ) ELSE - 56 * - 3 END AS col1
----
-13234

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT DISTINCT + + 10 * 18 AS col0, + COUNT( * )
----
180
1

skipif mysql # not compatible
query II rowsort label-1048
SELECT DISTINCT + + 10 * 18 AS col0, + COUNT ( * )
----
180
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT DISTINCT + + 85 * COUNT( + CAST( 80 AS SIGNED ) ) / CAST( NULL AS SIGNED ) * + + ( + COALESCE ( 0, + MIN( DISTINCT + - 24 ) + + 80, 33 ) ) * 32 + + - 31 + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT + + 85 * COUNT ( + CAST ( 80 AS INTEGER ) ) / CAST ( NULL AS INTEGER ) * + + ( + COALESCE ( 0, + MIN ( DISTINCT + - 24 ) + + 80, 33 ) ) * 32 + + - 31 + + 35
----
NULL

query I rowsort
SELECT - 2 + 21 AS col1
----
19

query I rowsort
SELECT ALL 58 AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1052
SELECT COUNT( * ) + + COALESCE ( - COUNT( * ), + 86 + - + COUNT( * ) + + 77, 63 ) AS col2, - 84
----
0
-84

skipif mysql # not compatible
query II rowsort label-1052
SELECT COUNT ( * ) + + COALESCE ( - COUNT ( * ), + 86 + - + COUNT ( * ) + + 77, 63 ) AS col2, - 84
----
0
-84

query I rowsort
SELECT DISTINCT - 15 col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT DISTINCT - 16 + + - COALESCE ( 20, + 61 - 23 + - - ( COUNT( ALL + 65 ) ) + - - 1 + COUNT( * ) DIV + ( - CASE 44 WHEN 80 DIV - + 95 THEN - 91 WHEN + - COUNT( * ) THEN NULL END ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - 16 + + - COALESCE ( 20, + 61 - 23 + - - ( COUNT ( ALL + 65 ) ) + - - 1 + COUNT ( * ) / + ( - CASE 44 WHEN 80 / - + 95 THEN - 91 WHEN + - COUNT ( * ) THEN NULL END ) ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1055
SELECT ALL - CAST( - 25 AS SIGNED ) + 71 * - COALESCE ( + 37, + 41 * 54 + 67, - MIN( ALL - ( - - 53 ) ) ) col1
----
-2602

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - CAST ( - 25 AS INTEGER ) + 71 * - COALESCE ( + 37, + 41 * 54 + 67, - MIN ( ALL - ( - - 53 ) ) ) col1
----
-2602

query I rowsort
SELECT DISTINCT + 0 + - 97 AS col2
----
-97

query I rowsort
SELECT DISTINCT - NULLIF ( + ( + 40 ), - 84 ) + 85 + - + 56
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT DISTINCT ( + - COUNT( * ) ) * - COALESCE ( + COUNT( * ), + 88 / + COUNT( * ) + + 4 ) / 26 + + ( CASE - 1 WHEN - 97 * - 53 + 7 THEN + 77 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT ( + - COUNT ( * ) ) * - COALESCE ( + COUNT ( * ), + 88 / + COUNT ( * ) + + 4 ) / 26 + + ( CASE - 1 WHEN - 97 * - 53 + 7 THEN + 77 END ) AS col1
----
NULL

query I rowsort
SELECT 14 + - 98 * + 70 + + 84
----
-6762

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1060
SELECT NULLIF ( 72, CASE - 86 WHEN + 35 THEN + + 1 * - 30 * 52 END + + + 38 + + ( ( - 87 ) ) / - + CAST( NULL AS DECIMAL ) ) * 4 * + 70
----
20160

skipif mysql # not compatible
query I rowsort label-1060
SELECT NULLIF ( 72, CASE - 86 WHEN + 35 THEN + + 1 * - 30 * 52 END + + + 38 + + ( ( - 87 ) ) / - + CAST ( NULL AS REAL ) ) * 4 * + 70
----
20160

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT NULLIF ( - MAX( + 81 ), - - 22 ) + COALESCE ( - 22, 30, - 55 * + + COUNT( * ) * 58 ) - - 27 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-1061
SELECT NULLIF ( - MAX ( + 81 ), - - 22 ) + COALESCE ( - 22, 30, - 55 * + + COUNT ( * ) * 58 ) - - 27 AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT 59 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-1062
SELECT 59 / 45
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT CASE - 59 WHEN 77 * - 84 THEN ( + - 91 ) WHEN + ( COUNT( * ) ) THEN NULL ELSE + 9 END + + 88 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1063
SELECT CASE - 59 WHEN 77 * - 84 THEN ( + - 91 ) WHEN + ( COUNT ( * ) ) THEN NULL ELSE + 9 END + + 88 AS col1
----
97

query II rowsort
SELECT 59 AS col1, - 17 + - 54
----
59
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1065
SELECT DISTINCT NULLIF ( + 33, - + SUM( 61 ) ) * 55 DIV + + 29 + - - COUNT( * ) * - 8 DIV + 81 DIV + 3
----
62

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT NULLIF ( + 33, - + SUM ( 61 ) ) * 55 / + + 29 + - - COUNT ( * ) * - 8 / + 81 / + 3
----
62

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1067
SELECT ALL - 88 col2, 76 DIV - 78 * + COUNT( * ) AS col1
----
-88
0

skipif mysql # not compatible
query II rowsort label-1067
SELECT ALL - 88 col2, 76 / - 78 * + COUNT ( * ) AS col1
----
-88
0

query I rowsort
SELECT 68 + - 23
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT MAX( + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1069
SELECT MAX ( + 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT NULLIF ( + ( + + 25 ), + COUNT( * ) / + 53 - 78 ) * - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-1070
SELECT NULLIF ( + ( + + 25 ), + COUNT ( * ) / + 53 - 78 ) * - COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT SUM( ALL 18 )
----
18

skipif mysql # not compatible
query I rowsort label-1071
SELECT SUM ( ALL 18 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1072
SELECT 84 + - ( - 35 ) * + + NULLIF ( CAST( - 25 AS SIGNED ), - - 8 - + 30 / + 94 + + 52 * COALESCE ( 2, + 8 * - - 53 ) - MAX( DISTINCT 19 ) )
----
-791

skipif mysql # not compatible
query I rowsort label-1072
SELECT 84 + - ( - 35 ) * + + NULLIF ( CAST ( - 25 AS INTEGER ), - - 8 - + 30 / + 94 + + 52 * COALESCE ( 2, + 8 * - - 53 ) - MAX ( DISTINCT 19 ) )
----
-791

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT + COUNT( ALL + 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1073
SELECT + COUNT ( ALL + 71 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT - 83 * + NULLIF ( + + CASE 35 WHEN 27 + CASE - 10 WHEN - 9 + + - COUNT( * ) * - 11 THEN - + 11 END THEN NULL WHEN SUM( DISTINCT 18 ) * + CAST( - MAX( 47 ) AS SIGNED ) + - 73 THEN - - 90 END, - NULLIF ( - + 83, CASE - 47 WHEN - 94 / - + 60 THEN NULL WHEN - COUNT( * ) / CASE - 81 WHEN 3 THEN + + COUNT( + + ( - 4 ) ) - - + 9 * - + 83 * 27 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + - 14 END THEN MAX( 69 ) END ) ) + - 87 + - CASE + 39 WHEN + ( - MAX( - 28 ) ) THEN NULL WHEN + 38 THEN + 28 WHEN + SUM( 24 ) THEN - 85 * - 77 ELSE NULL END * 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT - 83 * + NULLIF ( + + CASE 35 WHEN 27 + CASE - 10 WHEN - 9 + + - COUNT ( * ) * - 11 THEN - + 11 END THEN NULL WHEN SUM ( DISTINCT 18 ) * + CAST ( - MAX ( 47 ) AS INTEGER ) + - 73 THEN - - 90 END, - NULLIF ( - + 83, CASE - 47 WHEN - 94 / - + 60 THEN NULL WHEN - COUNT ( * ) / CASE - 81 WHEN 3 THEN + + COUNT ( + + ( - 4 ) ) - - + 9 * - + 83 * 27 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + - 14 END THEN MAX ( 69 ) END ) ) + - 87 + - CASE + 39 WHEN + ( - MAX ( - 28 ) ) THEN NULL WHEN + 38 THEN + 28 WHEN + SUM ( 24 ) THEN - 85 * - 77 ELSE NULL END * 62 col0
----
NULL

query I rowsort
SELECT + 83 * - + 45
----
-3735

query I rowsort
SELECT ALL + - 87 * + 17
----
-1479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT ALL 62 * + - CAST( + + 97 AS SIGNED ) AS col1
----
-6014

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL 62 * + - CAST ( + + 97 AS INTEGER ) AS col1
----
-6014

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1079
SELECT ALL - 96, + COUNT( ALL - ( - - 44 ) ) AS col1
----
-96
1

skipif mysql # not compatible
query II rowsort label-1079
SELECT ALL - 96, + COUNT ( ALL - ( - - 44 ) ) AS col1
----
-96
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT DISTINCT - + CASE CAST( 11 AS SIGNED ) WHEN 92 THEN - 27 * NULLIF ( - COALESCE ( 88, - 1 ), - + 87 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT - + CASE CAST ( 11 AS INTEGER ) WHEN 92 THEN - 27 * NULLIF ( - COALESCE ( 88, - 1 ), - + 87 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1081
SELECT ALL - 99 AS col0, - CASE + 94 WHEN 70 + 89 THEN - + 29 WHEN + - COUNT( * ) THEN NULL END
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-1081
SELECT ALL - 99 AS col0, - CASE + 94 WHEN 70 + 89 THEN - + 29 WHEN + - COUNT ( * ) THEN NULL END
----
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT + - ( 57 ) - - + 9 + - AVG ( - 1 ) - - 24 * CASE + + 68 WHEN 79 + AVG ( ALL - 62 ) * + 99 THEN 9 * + - 50 + - 67 + + COUNT( * ) * 62 * - 53 WHEN 25 * - COALESCE ( 94, - ( + - 69 ), CASE - - 65 WHEN - COUNT( * ) * + - 3 THEN - - 19 WHEN - - 46 * + SUM( + 10 ) - - + COUNT( ALL + + 23 ) + 53 / - 97 + + 20 THEN NULL END ) * - 10 * - 69 - - 40 THEN NULL WHEN - ( - 16 ) + - MAX( + 64 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT + - ( 57 ) - - + 9 + - AVG ( - 1 ) - - 24 * CASE + + 68 WHEN 79 + AVG ( ALL - 62 ) * + 99 THEN 9 * + - 50 + - 67 + + COUNT ( * ) * 62 * - 53 WHEN 25 * - COALESCE ( 94, - ( + - 69 ), CASE - - 65 WHEN - COUNT ( * ) * + - 3 THEN - - 19 WHEN - - 46 * + SUM ( + 10 ) - - + COUNT ( ALL + + 23 ) + 53 / - 97 + + 20 THEN NULL END ) * - 10 * - 69 - - 40 THEN NULL WHEN - ( - 16 ) + - MAX ( + 64 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL + CASE - 85 WHEN + - 91 THEN + - 50 - + - COUNT( * ) WHEN - - 24 THEN NULL ELSE + + NULLIF ( 17, + - 83 + + - 39 ) END AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL + CASE - 85 WHEN + - 91 THEN + - 50 - + - COUNT ( * ) WHEN - - 24 THEN NULL ELSE + + NULLIF ( 17, + - 83 + + - 39 ) END AS col1
----
17

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1086
SELECT + CASE NULLIF ( - - ( - 74 ), - NULLIF ( + 75, + + 29 ) * COALESCE ( - CAST( NULL AS DECIMAL ), + NULLIF ( - + 82, - - 76 * + + ( + - 7 ) ) ) ) WHEN - + CAST( + COUNT( * ) AS SIGNED ) + - 17 THEN + + 55 * - 44 + + 47 WHEN + + 13 THEN + ( - - 1 ) / + COUNT( * ) WHEN 11 / 44 THEN NULL ELSE + + 9 END
----
9

skipif mysql # not compatible
query I rowsort label-1086
SELECT + CASE NULLIF ( - - ( - 74 ), - NULLIF ( + 75, + + 29 ) * COALESCE ( - CAST ( NULL AS REAL ), + NULLIF ( - + 82, - - 76 * + + ( + - 7 ) ) ) ) WHEN - + CAST ( + COUNT ( * ) AS INTEGER ) + - 17 THEN + + 55 * - 44 + + 47 WHEN + + 13 THEN + ( - - 1 ) / + COUNT ( * ) WHEN 11 / 44 THEN NULL ELSE + + 9 END
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT - + 98 DIV + 73 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1087
SELECT - + 98 / + 73 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL - 86 + 34 + COUNT( * ) * - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - 86 + 34 + COUNT ( * ) * - COUNT ( * ) AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT ALL + - 41 + ( - 66 ) + + + NULLIF ( - COUNT( * ), - + 67 + + + 6 - + NULLIF ( + 91, + 25 ) * COUNT( * ) + + 4 * + + 11 * 31 + - 33 + + - 55 ) * CAST( + 39 AS SIGNED ) * - 13 + - 89 * + - 14 * ( 33 )
----
41518

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + - 41 + ( - 66 ) + + + NULLIF ( - COUNT ( * ), - + 67 + + + 6 - + NULLIF ( + 91, + 25 ) * COUNT ( * ) + + 4 * + + 11 * 31 + - 33 + + - 55 ) * CAST ( + 39 AS INTEGER ) * - 13 + - 89 * + - 14 * ( 33 )
----
41518

query I rowsort
SELECT - 36 - - 5 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT - COUNT( * ) * 46 * + 36 AS col0
----
-1656

skipif mysql # not compatible
query I rowsort label-1091
SELECT - COUNT ( * ) * 46 * + 36 AS col0
----
-1656

query I rowsort
SELECT ALL + 96 + 53
----
149

query I rowsort
SELECT - 6 + + 29 * 24
----
690

query I rowsort
SELECT ALL COALESCE ( + - ( - 64 ), 96 * + 21, 19 )
----
64

query I rowsort
SELECT - 82 + 77 AS col0
----
-5

query I rowsort
SELECT ALL + 51 - + 33
----
18

query I rowsort
SELECT DISTINCT COALESCE ( + 33, 5, 19 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1098
SELECT ALL - CAST( - 85 AS SIGNED ) DIV 92 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL - CAST ( - 85 AS INTEGER ) / 92 + - COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT ALL ( + + 95 ) AS col2, - 77
----
95
-77

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

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

query II rowsort
SELECT - 16 * - + 68 AS col1, 47 AS col0
----
1088
47

query I rowsort
SELECT + 22 * + - 98 col1
----
-2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1103
SELECT ALL 28 * - 72 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL 28 * - 72 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( - 84 )
----
-84

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

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

query II rowsort
SELECT ( 16 ) AS col0, 27
----
16
27

query I rowsort
SELECT + 86 * + - 29 AS col1
----
-2494

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

query I rowsort
SELECT 86 * - 23 - - 85 + - 47 * - 64
----
1115

query I rowsort
SELECT DISTINCT + 75
----
75

query I rowsort
SELECT DISTINCT + ( - - 39 ) AS col0
----
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT - 48 * + - 65 * + ( - SUM( + 37 ) )
----
-115440

skipif mysql # not compatible
query I rowsort label-1113
SELECT - 48 * + - 65 * + ( - SUM ( + 37 ) )
----
-115440

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + + 62 * - + MAX( DISTINCT + 93 ) AS col2
----
-5766

skipif mysql # not compatible
query I rowsort label-1114
SELECT + + 62 * - + MAX ( DISTINCT + 93 ) AS col2
----
-5766

query I rowsort
SELECT DISTINCT + 45 AS col2
----
45

query II rowsort
SELECT + 84 * + + 48 + + 44 * 10 + - - 16 AS col2, + 23 + - + 87
----
4488
-64

query I rowsort
SELECT - 32 col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL + 67 * - + 40 + 63 * 28 * - - 75 + - COUNT( * ) * - + 29 + ( COUNT( * ) ) + - 93 * + 47 + COUNT( * ) + - 5
----
125275

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL + 67 * - + 40 + 63 * 28 * - - 75 + - COUNT ( * ) * - + 29 + ( COUNT ( * ) ) + - 93 * + 47 + COUNT ( * ) + - 5
----
125275

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL - + 68 * - - COUNT( * ) * 10 + - COUNT( * ) - COUNT( * )
----
-682

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL - + 68 * - - COUNT ( * ) * 10 + - COUNT ( * ) - COUNT ( * )
----
-682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT + 33 + - 43 * + 28 + - 47 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT + 33 + - 43 * + 28 + - 47 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 8 AS col2
----
-8

query I rowsort
SELECT + 30 * - ( + 8 ) * - 12
----
2880

query I rowsort
SELECT - 36 * + 57 * + 15 * + 73
----
-2246940

query I rowsort
SELECT ALL - 94 * - + 63 + - 70 col0
----
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT COUNT( + 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1125
SELECT COUNT ( + 87 ) AS col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1127
SELECT + 82 DIV 39 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1127
SELECT + 82 / 39 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - 88 + + MIN( DISTINCT + 98 )
----
10

skipif mysql # not compatible
query I rowsort label-1128
SELECT - 88 + + MIN ( DISTINCT + 98 )
----
10

query I rowsort
SELECT + 0 * - + 58 AS col2
----
0

query I rowsort
SELECT ALL + 65 - + 88 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1131
SELECT DISTINCT - 10 * - 80 * + COUNT( * ) AS col1, 28 * - 6 AS col1
----
800
-168

skipif mysql # not compatible
query II rowsort label-1131
SELECT DISTINCT - 10 * - 80 * + COUNT ( * ) AS col1, 28 * - 6 AS col1
----
800
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1132
SELECT DISTINCT COUNT( * ) DIV - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT COUNT ( * ) / - 43 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1133
SELECT ALL CAST( + ( - 65 ) AS SIGNED ), + 84 AS col2
----
-65
84

skipif mysql # not compatible
query II rowsort label-1133
SELECT ALL CAST ( + ( - 65 ) AS INTEGER ), + 84 AS col2
----
-65
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL - MIN( DISTINCT + 14 ) * + COUNT( * ) + 97 * - 16 + + - 4 AS col1
----
-1570

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - MIN ( DISTINCT + 14 ) * + COUNT ( * ) + 97 * - 16 + + - 4 AS col1
----
-1570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1135
SELECT + 40 * - COALESCE ( 89, CAST( - 97 AS SIGNED ) + 52 )
----
-3560

skipif mysql # not compatible
query I rowsort label-1135
SELECT + 40 * - COALESCE ( 89, CAST ( - 97 AS INTEGER ) + 52 )
----
-3560

query I rowsort
SELECT + 58 + - - 3
----
61

query I rowsort
SELECT DISTINCT - 47 * + 24
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT - COUNT( * ) + + 76 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1138
SELECT - COUNT ( * ) + + 76 AS col2
----
75

query I rowsort
SELECT - 98 * + ( + ( - 10 ) ) col0
----
980

query I rowsort
SELECT - 10 + - - 52
----
42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN + COUNT( * ) / - COUNT( * ) * 31 * - COUNT( * ) THEN 71 + + 92 + - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) / - COUNT ( * ) * 31 * - COUNT ( * ) THEN 71 + + 92 + - 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT - NULLIF ( + COUNT( * ), + + 46 ) + - + ( 9 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1143
SELECT - NULLIF ( + COUNT ( * ), + + 46 ) + - + ( 9 ) AS col2
----
-10

query I rowsort
SELECT ALL ( - 34 ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT - - COUNT( * ) + + 85 + - - 44 * - + 74 * + 36
----
-117130

skipif mysql # not compatible
query I rowsort label-1145
SELECT - - COUNT ( * ) + + 85 + - - 44 * - + 74 * + 36
----
-117130

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL + MIN( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL + MIN ( 77 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT ALL COUNT( * ) DIV 5 + COUNT( * )
----
1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1149
SELECT + 32 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-1149
SELECT + 32 / - 69
----
0

query I rowsort
SELECT 39 + 87 AS col2
----
126

query II rowsort
SELECT DISTINCT - - NULLIF ( + + 14, ( ( + 99 ) ) + 52 ) * + 7 * + - 16 AS col1, ( - CASE + 17 WHEN 73 + + 83 - + - 23 THEN + + 97 ELSE NULL END )
----
-1568
NULL

query I rowsort
SELECT ALL + - 41 + - ( 27 ) - + 31
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1153
SELECT DISTINCT - SUM( DISTINCT + 79 ) + - + 92 DIV COUNT( * ) AS col1
----
-171

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT - SUM ( DISTINCT + 79 ) + - + 92 / COUNT ( * ) AS col1
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT 18 DIV - - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1154
SELECT 18 / - - 88 AS col2
----
0

query I rowsort
SELECT - - 77 * + 40 + + 4 + 97
----
3181

query I rowsort
SELECT ALL 7 + 33
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT DISTINCT + + 11 * + 17 + - CAST( NULL AS SIGNED ) / + COUNT( 92 ) * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT + + 11 * + 17 + - CAST ( NULL AS INTEGER ) / + COUNT ( 92 ) * + 4
----
NULL

query II rowsort
SELECT ALL - 50 + ( + - 84 ) + + 89 * + 83 AS col1, 49
----
7253
49

query I rowsort
SELECT DISTINCT - + 99 + + - 30 AS col1
----
-129

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

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

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

query I rowsort
SELECT ALL + 84 + - 82 * + 21
----
-1638

query I rowsort
SELECT - 71 - 42
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT 67 * - - MAX( ALL + 95 ) AS col1
----
6365

skipif mysql # not compatible
query I rowsort label-1164
SELECT 67 * - - MAX ( ALL + 95 ) AS col1
----
6365

query I rowsort
SELECT - 54 * 69
----
-3726

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT DISTINCT - 66, - 20 + - - MIN( + 85 ) + - 31 - + 34 AS col0
----
-66
0

skipif mysql # not compatible
query II rowsort label-1167
SELECT DISTINCT - 66, - 20 + - - MIN ( + 85 ) + - 31 - + 34 AS col0
----
-66
0

query I rowsort
SELECT ALL 65 * - - 91 * + 85 col2
----
502775

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

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

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

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT COUNT ( * ) * - - 57 * + COUNT ( - 61 ) AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1171
SELECT ALL 95 col2, ( + - 3 ) * + + COUNT( * ) DIV + 34 + + - CAST( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS SIGNED ) col2
----
95
-73

skipif mysql # not compatible
query II rowsort label-1171
SELECT ALL 95 col2, ( + - 3 ) * + + COUNT ( * ) / + 34 + + - CAST ( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS INTEGER ) col2
----
95
-73

query II rowsort
SELECT - 48 AS col2, 58 AS col2
----
-48
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1173
SELECT ALL NULLIF ( + CAST( 12 AS SIGNED ), - 52 ) - - 53 DIV - 68 DIV 6 * + + CASE - NULLIF ( + 24, - 51 ) WHEN + 69 THEN NULL WHEN + 86 * + COUNT( * ) * - CASE - 22 WHEN 79 THEN - 25 + - - 55 WHEN CAST( NULL AS SIGNED ) THEN - 22 DIV + NULLIF ( + CAST( NULL AS SIGNED ), + 34 ) WHEN - - 86 + 12 + + MAX( DISTINCT + ( + + 45 ) ) * ( 18 ) + 70 + 6 * + 42 THEN 0 ELSE NULL END - + COUNT( * ) THEN NULL ELSE - 94 END + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL NULLIF ( + CAST ( 12 AS INTEGER ), - 52 ) - - 53 / - 68 / 6 * + + CASE - NULLIF ( + 24, - 51 ) WHEN + 69 THEN NULL WHEN + 86 * + COUNT ( * ) * - CASE - 22 WHEN 79 THEN - 25 + - - 55 WHEN CAST ( NULL AS INTEGER ) THEN - 22 / + NULLIF ( + CAST ( NULL AS INTEGER ), + 34 ) WHEN - - 86 + 12 + + MAX ( DISTINCT + ( + + 45 ) ) * ( 18 ) + 70 + 6 * + 42 THEN 0 ELSE NULL END - + COUNT ( * ) THEN NULL ELSE - 94 END + + COUNT ( * )
----
13

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

skipif mysql # not compatible
query I rowsort label-1174
SELECT COUNT ( * ) * - ( 27 )
----
-27

query I rowsort
SELECT 13 col1
----
13

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

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT + 89 / + + COUNT ( * )
----
89

query I rowsort
SELECT - 16 col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT DISTINCT 51 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT 51 / - 78
----
0

query II rowsort
SELECT 99 AS col1, 98 - 74 + ( 94 ) * - 39 AS col0
----
99
-3642

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL + COUNT( DISTINCT 21 ) + - + 0 + + 86 col1
----
87

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL + COUNT ( DISTINCT 21 ) + - + 0 + + 86 col1
----
87

query I rowsort
SELECT 84 * - + 15 AS col2
----
-1260

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT 86 / - + COUNT ( * )
----
-86

query I rowsort
SELECT - 72 * + - 67 AS col2
----
4824

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT - SUM( 12 ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-1184
SELECT - SUM ( 12 ) col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT 95 - + COUNT( * )
----
94

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

query I rowsort
SELECT ALL - ( + 4 ) + - 36 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT - 39 + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-1187
SELECT - 39 + - COUNT ( * )
----
-40

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

query I rowsort
SELECT ALL + ( 27 ) + - - 65
----
92

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

skipif mysql # not compatible
query I rowsort label-1190
SELECT AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT DISTINCT + 46 + - - SUM( - 61 ) * - 43
----
2669

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + 46 + - - SUM ( - 61 ) * - 43
----
2669

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT + + 50 + SUM( DISTINCT - 94 )
----
-44

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + + 50 + SUM ( DISTINCT - 94 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL - + CASE + - 84 WHEN + - COUNT( * ) THEN - ( + 71 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - + CASE + - 84 WHEN + - COUNT ( * ) THEN - ( + 71 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1194
SELECT 56 DIV - 34, 82 AS col0
----
-1
82

skipif mysql # not compatible
query II rowsort label-1194
SELECT 56 / - 34, 82 AS col0
----
-1
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
SELECT 43 * CAST( - 42 AS SIGNED ) * + 70 * 17 AS col1
----
-2149140

skipif mysql # not compatible
query I rowsort label-1195
SELECT 43 * CAST ( - 42 AS INTEGER ) * + 70 * 17 AS col1
----
-2149140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1196
SELECT - 11 * - ( 44 ) * + 81, 92 * - CAST( NULL AS SIGNED ) col1
----
39204
NULL

skipif mysql # not compatible
query II rowsort label-1196
SELECT - 11 * - ( 44 ) * + 81, 92 * - CAST ( NULL AS INTEGER ) col1
----
39204
NULL

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

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT + 97 / + COUNT ( * )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1198
SELECT ALL - 46 AS col0, + CAST( NULL AS SIGNED )
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-1198
SELECT ALL - 46 AS col0, + CAST ( NULL AS INTEGER )
----
-46
NULL

query I rowsort
SELECT ( 86 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT 35 + - 34 * - - 4 - + COUNT( * ) col1
----
-102

skipif mysql # not compatible
query I rowsort label-1200
SELECT 35 + - 34 * - - 4 - + COUNT ( * ) col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL + 47 * SUM( ALL + 72 ) AS col1
----
3384

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + 47 * SUM ( ALL + 72 ) AS col1
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT + MIN( 12 ) * 76 col0
----
912

skipif mysql # not compatible
query I rowsort label-1202
SELECT + MIN ( 12 ) * 76 col0
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1203
SELECT DISTINCT - CAST( + 93 AS SIGNED ) AS col0, - COUNT( * ) + + CAST( NULL AS SIGNED ) * - COALESCE ( COALESCE ( - 64, - 71 ), + - 53 ) * - 26 - + + 47 + - - 11
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-1203
SELECT DISTINCT - CAST ( + 93 AS INTEGER ) AS col0, - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - COALESCE ( COALESCE ( - 64, - 71 ), + - 53 ) * - 26 - + + 47 + - - 11
----
-93
NULL

query I rowsort
SELECT DISTINCT 6 - + - 74 - + 97 * 38 AS col1
----
-3606

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1206
SELECT COUNT( * ) DIV - 33 AS col1, - 48 + + 10
----
0
-38

skipif mysql # not compatible
query II rowsort label-1206
SELECT COUNT ( * ) / - 33 AS col1, - 48 + + 10
----
0
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT ( - 9 ) DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT ( - 9 ) / + 18
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT ALL 52 DIV - 9
----
-5

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL 52 / - 9
----
-5

query I rowsort
SELECT ALL 81 * + 20 col2
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1210
SELECT COUNT( DISTINCT - 87 ) * COUNT( * ) DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-1210
SELECT COUNT ( DISTINCT - 87 ) * COUNT ( * ) / - - 97
----
0

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT 10 * COUNT ( * ) / + + 30 AS col0
----
0

query I rowsort
SELECT ALL 75 + 46
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT 84 + - + 50 DIV + - 80 * - - 63 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1213
SELECT 84 + - + 50 / + - 80 * - - 63 AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1214
SELECT DISTINCT 86 + - + 72 AS col0, + COUNT( * ) col0
----
14
1

skipif mysql # not compatible
query II rowsort label-1214
SELECT DISTINCT 86 + - + 72 AS col0, + COUNT ( * ) col0
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT 4 + 57 - + COUNT( * ) * + 92 * COUNT( * ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT 4 + 57 - + COUNT ( * ) * + 92 * COUNT ( * ) col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1216
SELECT DISTINCT 80 * + 67 AS col0, 74 / + CASE + 73 WHEN + 42 * + SUM( - 21 ) + + 17 THEN NULL WHEN - ( - 62 ) THEN CAST( NULL AS SIGNED ) + + 50 + + + 98 - 8 END - + + 59
----
5360
NULL

skipif mysql # not compatible
query II rowsort label-1216
SELECT DISTINCT 80 * + 67 AS col0, 74 / + CASE + 73 WHEN + 42 * + SUM ( - 21 ) + + 17 THEN NULL WHEN - ( - 62 ) THEN CAST ( NULL AS INTEGER ) + + 50 + + + 98 - 8 END - + + 59
----
5360
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1217
SELECT ALL 39 + - + COUNT( * ) AS col2, 23 * - 90 AS col2
----
38
-2070

skipif mysql # not compatible
query II rowsort label-1217
SELECT ALL 39 + - + COUNT ( * ) AS col2, 23 * - 90 AS col2
----
38
-2070

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

query I rowsort
SELECT + - 64 + - + 50
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1220
SELECT DISTINCT - ( - COUNT( * ) ) + 59 DIV - 26 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - ( - COUNT ( * ) ) + 59 / - 26 AS col2
----
-1

query I rowsort
SELECT + + 89 + - 96 + - 54 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT - + 83 + COUNT( * ) + 3 + - CAST( NULL AS SIGNED ) * - 47 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT - + 83 + COUNT ( * ) + 3 + - CAST ( NULL AS INTEGER ) * - 47 * + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT DISTINCT COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1224
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

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

query I rowsort
SELECT + 59 + + 48 * - 10
----
-421

query I rowsort
SELECT DISTINCT + + 51
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1227
SELECT + + 37 DIV - - MIN( - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-1227
SELECT + + 37 / - - MIN ( - 70 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1228
SELECT ALL 69 * + + COUNT( - 50 ) AS col2, 91 * + 90 / CAST( + 23 AS DECIMAL ) + + - 13 * - + 91 * - CAST( NULL AS SIGNED ), + 8 - - COUNT( * ) * 7 AS col0
----
69
NULL
15

skipif mysql # not compatible
query III rowsort label-1228
SELECT ALL 69 * + + COUNT ( - 50 ) AS col2, 91 * + 90 / CAST ( + 23 AS REAL ) + + - 13 * - + 91 * - CAST ( NULL AS INTEGER ), + 8 - - COUNT ( * ) * 7 AS col0
----
69
NULL
15

query I rowsort
SELECT - - 57 * + + 34 + + 31
----
1969

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT + CASE - + 60 WHEN - - 64 + - - NULLIF ( 57, - COUNT( * ) + + + ( + + 62 ) ) THEN - - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT + CASE - + 60 WHEN - - 64 + - - NULLIF ( 57, - COUNT ( * ) + + + ( + + 62 ) ) THEN - - 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT + - 39 * + 29 + - NULLIF ( + 67, CASE + - MIN( ALL + 2 ) WHEN 73 + - 31 * - + 94 * ( ( + AVG ( - + 7 ) ) ) + - - MIN( DISTINCT - 13 ) THEN NULL WHEN + - COUNT( * ) * - 80 / + - 3 + + + COUNT( * ) THEN 11 WHEN - COALESCE ( + - 33, - ( 45 ) + + + 6 ) + - 33 THEN + 35 - + - COUNT( * ) END * 20 - - COUNT( * ) ) + + 44
----
-1154

skipif mysql # not compatible
query I rowsort label-1231
SELECT + - 39 * + 29 + - NULLIF ( + 67, CASE + - MIN ( ALL + 2 ) WHEN 73 + - 31 * - + 94 * ( ( + AVG ( - + 7 ) ) ) + - - MIN ( DISTINCT - 13 ) THEN NULL WHEN + - COUNT ( * ) * - 80 / + - 3 + + + COUNT ( * ) THEN 11 WHEN - COALESCE ( + - 33, - ( 45 ) + + + 6 ) + - 33 THEN + 35 - + - COUNT ( * ) END * 20 - - COUNT ( * ) ) + + 44
----
-1154

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

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

query I rowsort
SELECT ALL + - 58
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1234
SELECT ALL + ( - CASE + + CAST( + 39 AS SIGNED ) WHEN + + COUNT( * ) + - + 52 THEN + 97 + + 55 + + 94 + - AVG ( ALL + 56 ) * COUNT( * ) * 5 + + NULLIF ( CAST( NULL AS SIGNED ), 81 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL + ( - CASE + + CAST ( + 39 AS INTEGER ) WHEN + + COUNT ( * ) + - + 52 THEN + 97 + + 55 + + 94 + - AVG ( ALL + 56 ) * COUNT ( * ) * 5 + + NULLIF ( CAST ( NULL AS INTEGER ), 81 ) END )
----
NULL

query II rowsort
SELECT + 81 AS col0, + 56
----
81
56

query I rowsort
SELECT ALL + 97 * + 59 AS col2
----
5723

query II rowsort
SELECT DISTINCT + 4 AS col1, 12
----
4
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT COALESCE ( - NULLIF ( 45, - 23 ), + - 3 * + + CAST( - 46 AS SIGNED ) + + 31 - + 11 - + 49 * + 98, + 86 * + - 43 + + + ( + 6 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1238
SELECT COALESCE ( - NULLIF ( 45, - 23 ), + - 3 * + + CAST ( - 46 AS INTEGER ) + + 31 - + 11 - + 49 * + 98, + 86 * + - 43 + + + ( + 6 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT MIN( DISTINCT 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1239
SELECT MIN ( DISTINCT 66 ) AS col1
----
66

query I rowsort
SELECT ALL + 92 * + 96 + 94 AS col0
----
8926

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1242
SELECT ALL ( + 59 ) * + + 84 * - - 45 + COALESCE ( + 37, 43, + 30 * + 59 + - 10 * ( + 30 ) + + - CASE + 48 WHEN - MAX( - 42 ) THEN 29 - - + 79 WHEN + + 82 * - 61 THEN - - 29 + - 76 * CAST( NULL AS SIGNED ) DIV 43 + + - 26 END + - 5, + 60 ) AS col1
----
223057

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL ( + 59 ) * + + 84 * - - 45 + COALESCE ( + 37, 43, + 30 * + 59 + - 10 * ( + 30 ) + + - CASE + 48 WHEN - MAX ( - 42 ) THEN 29 - - + 79 WHEN + + 82 * - 61 THEN - - 29 + - 76 * CAST ( NULL AS INTEGER ) / 43 + + - 26 END + - 5, + 60 ) AS col1
----
223057

query II rowsort
SELECT ALL 0 * + 42 + 90 AS col2, + 27 + + - 47
----
90
-20

query I rowsort
SELECT ALL + 34 * 43 * + - 46
----
-67252

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - CASE - 60 WHEN 75 THEN + + 62 * - - 37 + + MAX( 37 ) WHEN 69 * + COUNT( + 5 ) * - - 16 / - + 54 + - 59 - 43 / - + 73 * 12 + + 29 THEN NULL END + COUNT( * ) + - 67 * + CASE + + 6 WHEN 60 THEN NULL WHEN + - 17 THEN - 63 + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT - CASE - 60 WHEN 75 THEN + + 62 * - - 37 + + MAX ( 37 ) WHEN 69 * + COUNT ( + 5 ) * - - 16 / - + 54 + - 59 - 43 / - + 73 * 12 + + 29 THEN NULL END + COUNT ( * ) + - 67 * + CASE + + 6 WHEN 60 THEN NULL WHEN + - 17 THEN - 63 + 90 END
----
NULL

query I rowsort
SELECT ALL ( 91 ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT + 57 DIV + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1247
SELECT + 57 / + 76 AS col2
----
0

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

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

query I rowsort
SELECT - CASE - 80 WHEN + - 33 * 73 THEN - - 39 END AS col1
----
NULL

query I rowsort
SELECT - 4 + 38 + - + 22
----
12

query I rowsort
SELECT + 77 + ( - 57 ) + - - 35 AS col0
----
55

query II rowsort
SELECT ALL + 80 AS col0, - 89
----
80
-89

query I rowsort
SELECT - - 24
----
24

query I rowsort
SELECT + 90 + + 71 + + 10
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-1255
SELECT ALL - + CASE COUNT( * ) WHEN NULLIF ( - 94, - 19 ) + 94 / - 69 + - + 48 THEN - COUNT( * ) + + - 10 ELSE NULL END + 58 AS col2, + 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-1255
SELECT ALL - + CASE COUNT ( * ) WHEN NULLIF ( - 94, - 19 ) + 94 / - 69 + - + 48 THEN - COUNT ( * ) + + - 10 ELSE NULL END + 58 AS col2, + 79 AS col1
----
NULL
79

query I rowsort
SELECT - + 70
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL + SUM( 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + SUM ( 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL - ( - 67 ) - + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - ( - 67 ) - + COUNT ( * )
----
66

query I rowsort
SELECT + 48 * + 26 + 0 * + 0 AS col0
----
1248

query I rowsort
SELECT ALL + 63 * 11 * - + 29 AS col0
----
-20097

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT DISTINCT 92 - + - 31 DIV - + 76 * - 67
----
92

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT 92 - + - 31 / - + 76 * - 67
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL MIN( - - 96 ) col1
----
96

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL MIN ( - - 96 ) col1
----
96

query II rowsort
SELECT 54, ( - 87 ) + 62 AS col0
----
54
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT - NULLIF ( - 52, 23 ) * + - 35 * + COUNT( * )
----
-1820

skipif mysql # not compatible
query I rowsort label-1264
SELECT - NULLIF ( - 52, 23 ) * + - 35 * + COUNT ( * )
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1265
SELECT + + 91 - 52 + - - 51 + NULLIF ( 3, COUNT( * ) ) * 52 * - NULLIF ( - 43, NULLIF ( - - 95, + 34 ) + - CAST( NULL AS DECIMAL ) * 76 ) * 91 + + - NULLIF ( - MIN( COALESCE ( - 35, + 18 ) ), + COALESCE ( - 4, - 34, - - 82 * - 17 * ( + - 45 ), + + 57 ) ) + - + 8
----
610475

skipif mysql # not compatible
query I rowsort label-1265
SELECT + + 91 - 52 + - - 51 + NULLIF ( 3, COUNT ( * ) ) * 52 * - NULLIF ( - 43, NULLIF ( - - 95, + 34 ) + - CAST ( NULL AS REAL ) * 76 ) * 91 + + - NULLIF ( - MIN ( COALESCE ( - 35, + 18 ) ), + COALESCE ( - 4, - 34, - - 82 * - 17 * ( + - 45 ), + + 57 ) ) + - + 8
----
610475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1266
SELECT + + ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ), - 23 AS col0
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-1266
SELECT + + ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ), - 23 AS col0
----
NULL
-23

query II rowsort
SELECT DISTINCT 1, 74 AS col0
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT + - 16 + + 9 + - - 11 + + ( - 2 ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1268
SELECT + - 16 + + 9 + - - 11 + + ( - 2 ) * COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT + + 25 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1270
SELECT DISTINCT - COUNT( * ) DIV 67 * ( - + 13 ) * + 17 + - 10 + + - 68 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - COUNT ( * ) / 67 * ( - + 13 ) * + 17 + - 10 + + - 68 AS col1
----
-78

query I rowsort
SELECT DISTINCT + NULLIF ( + 16, + 1 ) AS col0
----
16

query I rowsort
SELECT DISTINCT - + 91 * - - 65 AS col0
----
-5915

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT ALL COALESCE ( + - 91, - 42, - 68 ) DIV + - 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL COALESCE ( + - 91, - 42, - 68 ) / + - 76 AS col0
----
1

query I rowsort
SELECT ALL - 64 * - 84 AS col1
----
5376

query I rowsort
SELECT ALL + 11 * - 45
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + 53 * + - 69 * 92 + + 16 + - 55 * - + 73 + - + COUNT( * ) AS col0
----
-332414

skipif mysql # not compatible
query I rowsort label-1276
SELECT + 53 * + - 69 * 92 + + 16 + - 55 * - + 73 + - + COUNT ( * ) AS col0
----
-332414

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

query I rowsort
SELECT - COALESCE ( 24, - 34 * - - 95 - 23 * - 4, - 89, + 64 * - 95 ) * - 66 col2
----
1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1279
SELECT - 6 DIV COUNT( * ) col0, 63 AS col0
----
-6
63

skipif mysql # not compatible
query II rowsort label-1279
SELECT - 6 / COUNT ( * ) col0, 63 AS col0
----
-6
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT ALL 72 DIV + ( + + CASE 49 WHEN 27 THEN NULL ELSE - 99 END ) + + + ( - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL 72 / + ( + + CASE 49 WHEN 27 THEN NULL ELSE - 99 END ) + + + ( - 12 )
----
-12

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1282
SELECT + CASE WHEN - COUNT( * ) NOT IN ( + 67 + COUNT( + + 52 ) ) THEN NULL WHEN NOT - CASE CAST( NULL AS SIGNED ) WHEN COUNT( - - 51 ) THEN + - 74 * + SUM( ALL - - 21 ) ELSE + - 64 END / 78 NOT BETWEEN + 53 AND NULL THEN - 82 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT + CASE WHEN - COUNT ( * ) NOT IN ( + 67 + COUNT ( + + 52 ) ) THEN NULL WHEN NOT - CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( - - 51 ) THEN + - 74 * + SUM ( ALL - - 21 ) ELSE + - 64 END / 78 NOT BETWEEN + 53 AND NULL THEN - 82 END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT COALESCE ( + 2, - 56 ) * - - 34 + CASE + 66 WHEN - 93 + - 85 THEN + - COUNT( * ) + - + 3 END + - 13 + - 5 / - MIN( 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT COALESCE ( + 2, - 56 ) * - - 34 + CASE + 66 WHEN - 93 + - 85 THEN + - COUNT ( * ) + - + 3 END + - 13 + - 5 / - MIN ( 5 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT ALL + 48 * + + ( 93 ) * + - 21 * MIN( ALL - - 35 ) + 69
----
-3280971

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL + 48 * + + ( 93 ) * + - 21 * MIN ( ALL - - 35 ) + 69
----
-3280971

query I rowsort
SELECT DISTINCT 35 * 16 * 94
----
52640

query II rowsort
SELECT DISTINCT 21 * 91 + 97 + - 3 AS col2, 87 * ( 77 ) AS col0
----
2005
6699

query I rowsort
SELECT 87 + - 51 AS col2
----
36

query II rowsort
SELECT DISTINCT - 48 + + 44 AS col0, 61
----
-4
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT 96 + - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1289
SELECT 96 + - COUNT ( * ) AS col1
----
95

query II rowsort
SELECT ALL - 76 + 51 AS col1, 61 AS col0
----
-25
61

query I rowsort
SELECT DISTINCT - 58 * 28
----
-1624

query III rowsort
SELECT 86 * - - ( 68 ) * + - 15 AS col0, 91 AS col2, + 71
----
-87720
91
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT 76 * ( 63 ) * + + 86 + + 75 - + 73 + - + CAST( 25 AS SIGNED ) - - - ( + - 15 ) - - COUNT( * ) + COUNT( * ) + - CAST( CASE - + 20 WHEN 47 * SUM( DISTINCT CAST( 87 AS SIGNED ) ) + + + COUNT( * ) THEN - ( + - 42 ) END AS SIGNED ) * + - 33 / - COUNT( * ) * + - 85 * 83 + COUNT( * ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1293
SELECT 76 * ( 63 ) * + + 86 + + 75 - + 73 + - + CAST ( 25 AS INTEGER ) - - - ( + - 15 ) - - COUNT ( * ) + COUNT ( * ) + - CAST ( CASE - + 20 WHEN 47 * SUM ( DISTINCT CAST ( 87 AS INTEGER ) ) + + + COUNT ( * ) THEN - ( + - 42 ) END AS INTEGER ) * + - 33 / - COUNT ( * ) * + - 85 * 83 + COUNT ( * ) + + 90
----
NULL

query I rowsort
SELECT ALL - - 19 - + 87 + - 46 - - 5 * + 24
----
6

query I rowsort
SELECT - ( - 63 ) * - - 17
----
1071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1296
SELECT ALL - - 2 * ( 85 ) / - 76 + + - 56 + + - 94 + - 71 * + ( 60 ) * + MAX( - 16 ) * + 30 * 76 - 75 - + CAST( NULL AS SIGNED ) * - - 19 * 36 * + 75 - - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - - 2 * ( 85 ) / - 76 + + - 56 + + - 94 + - 71 * + ( 60 ) * + MAX ( - 16 ) * + 30 * 76 - 75 - + CAST ( NULL AS INTEGER ) * - - 19 * 36 * + 75 - - + 92
----
NULL

query I rowsort
SELECT DISTINCT + 34 * - 25 * + 22
----
-18700

query I rowsort
SELECT ALL - - 27 - - - 14
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT 41 + - COUNT( * ) + 73 + 67 - + 32 + + + 84 AS col2
----
232

skipif mysql # not compatible
query I rowsort label-1299
SELECT 41 + - COUNT ( * ) + 73 + 67 - + 32 + + + 84 AS col2
----
232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT ALL + SUM( ALL + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL + SUM ( ALL + 14 ) AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1302
SELECT DISTINCT CAST( ( - - 19 ) AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT CAST ( ( - - 19 ) AS INTEGER )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1303
SELECT ALL - 85 * 69 * + COALESCE ( - + 38, 4 ) DIV + COUNT( * )
----
222870

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - 85 * 69 * + COALESCE ( - + 38, 4 ) / + COUNT ( * )
----
222870

query I rowsort
SELECT + 57 + + 54
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT DISTINCT - - 72 * + - COALESCE ( + 50, + + 23, - 96 + + - 71 DIV + 28 )
----
-3600

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT - - 72 * + - COALESCE ( + 50, + + 23, - 96 + + - 71 / + 28 )
----
-3600

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

query I rowsort
SELECT DISTINCT - + 58 AS col1
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1308
SELECT 77 AS col2, + CAST( NULL AS DECIMAL )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-1308
SELECT 77 AS col2, + CAST ( NULL AS REAL )
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL 88 + 27 - + - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL 88 + 27 - + - COUNT ( * )
----
116

query I rowsort
SELECT 52 * - - 17 AS col1
----
884

query II rowsort
SELECT + 36 AS col1, - 57
----
36
-57

query I rowsort
SELECT DISTINCT 23 + - + ( - 35 ) - 93 * + 85 * - + 66
----
521788

query I rowsort
SELECT 68 col2
----
68

query I rowsort
SELECT ALL 58 + - + 59
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT SUM( 22 ) * + + CASE 2 WHEN + + 55 THEN NULL WHEN - 44 * + 26 / - 51 * + + 26 THEN COALESCE ( + - 51, - ( + 73 ) + - 94 * + 99 - 30 * COUNT( * ) ) + 74 * NULLIF ( - - COUNT( * ), - - 19 ) END / + - COUNT( * ) * + 91 - - AVG ( - 61 ) * + 56 * + 83 + - + 26 * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT SUM ( 22 ) * + + CASE 2 WHEN + + 55 THEN NULL WHEN - 44 * + 26 / - 51 * + + 26 THEN COALESCE ( + - 51, - ( + 73 ) + - 94 * + 99 - 30 * COUNT ( * ) ) + 74 * NULLIF ( - - COUNT ( * ), - - 19 ) END / + - COUNT ( * ) * + 91 - - AVG ( - 61 ) * + 56 * + 83 + - + 26 * 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1316
SELECT ALL - COUNT( + 64 ) * 57 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL - COUNT ( + 64 ) * 57 / 86 AS col0
----
0

query I rowsort
SELECT DISTINCT 64 + + 3
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL 22 + - + COUNT( * ) * - + 86 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL 22 + - + COUNT ( * ) * - + 86 AS col2
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT 44 * + 65 * - + 20 - + - COUNT( * ) + + - 93 DIV + 20 AS col2
----
-57203

skipif mysql # not compatible
query I rowsort label-1319
SELECT 44 * + 65 * - + 20 - + - COUNT ( * ) + + - 93 / + 20 AS col2
----
-57203

query I rowsort
SELECT ALL 16 * - 8
----
-128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT + ( - COUNT( * ) ) * + + 65 - - 18
----
-47

skipif mysql # not compatible
query I rowsort label-1322
SELECT + ( - COUNT ( * ) ) * + + 65 - - 18
----
-47

query I rowsort
SELECT + 68 col1
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL + MIN( 65 ) - + 81
----
-16

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL + MIN ( 65 ) - + 81
----
-16

query I rowsort
SELECT 21 - + 52 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL - COUNT( * ) * - ( - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - COUNT ( * ) * - ( - 27 )
----
-27

query I rowsort
SELECT 31 - - 77 AS col2
----
108

query I rowsort
SELECT ALL 87 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1330
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) / 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1330
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) / 60 AS col0
----
NULL

query I rowsort
SELECT 47 * - 23 col1
----
-1081

query I rowsort
SELECT ALL - 9 * 36 col2
----
-324

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

skipif mysql # not compatible
query I rowsort label-1333
SELECT 18 * COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT 53 + + MIN( DISTINCT - 0 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1334
SELECT 53 + + MIN ( DISTINCT - 0 ) AS col1
----
53

query I rowsort
SELECT ALL + 83 * 63
----
5229

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT 37 DIV - 2
----
-18

skipif mysql # not compatible
query I rowsort label-1336
SELECT 37 / - 2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - NULLIF ( - 86, COUNT( * ) ) * 47 AS col0
----
4042

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - NULLIF ( - 86, COUNT ( * ) ) * 47 AS col0
----
4042

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT 62 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-1338
SELECT 62 / 76
----
0

query I rowsort
SELECT 33 - 8
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT 42 + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1340
SELECT 42 + COUNT ( * ) AS col0
----
43

query I rowsort
SELECT ALL + 47 + + 68
----
115

query I rowsort
SELECT 52 + 35 AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT COALESCE ( 72, ( 91 ) ) DIV 81 + 65 col0
----
65

skipif mysql # not compatible
query I rowsort label-1343
SELECT COALESCE ( 72, ( 91 ) ) / 81 + 65 col0
----
65

query I rowsort
SELECT ALL ( + 32 ) * - 46 + + 87 AS col2
----
-1385

query I rowsort
SELECT COALESCE ( + 96, 32 * + 9 )
----
96

query I rowsort
SELECT ALL 69 * 43 + ( 69 + 56 * 49 )
----
5780

query I rowsort
SELECT ALL 35 * ( 3 ) AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT + COUNT( * ) - + NULLIF ( - MIN( ALL - 30 ), + 59 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1348
SELECT + COUNT ( * ) - + NULLIF ( - MIN ( ALL - 30 ), + 59 ) AS col2
----
-29

query I rowsort
SELECT + 6 * 83 + - 32
----
466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1350
SELECT ALL 19 * CASE COUNT( * ) * ( - 2 * COUNT( * ) ) WHEN MIN( ALL + 31 ) THEN 25 * CAST( NULL AS SIGNED ) + 17 * + AVG ( DISTINCT + 94 ) WHEN 73 + + 86 THEN NULL END - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL 19 * CASE COUNT ( * ) * ( - 2 * COUNT ( * ) ) WHEN MIN ( ALL + 31 ) THEN 25 * CAST ( NULL AS INTEGER ) + 17 * + AVG ( DISTINCT + 94 ) WHEN 73 + + 86 THEN NULL END - - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT 76 * 37 + + MIN( DISTINCT 78 ) AS col2
----
2890

skipif mysql # not compatible
query I rowsort label-1351
SELECT 76 * 37 + + MIN ( DISTINCT 78 ) AS col2
----
2890

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT CASE ( 4 ) WHEN COUNT( * ) THEN + 46 + 75 / 96 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT CASE ( 4 ) WHEN COUNT ( * ) THEN + 46 + 75 / 96 END AS col2
----
NULL

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

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

query I rowsort
SELECT + 10 * + 21 AS col2
----
210

query I rowsort
SELECT - 81 + + 31 AS col1
----
-50

query I rowsort
SELECT + 87 - - 23
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT + NULLIF ( + 78, 82 ) * 51 + + CASE CASE - 77 WHEN 36 * AVG ( DISTINCT 65 ) - 22 * - 95 THEN 80 END WHEN 12 / + ( 38 ) + 80 * CAST( NULL AS SIGNED ) THEN 18 WHEN + 75 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT + NULLIF ( + 78, 82 ) * 51 + + CASE CASE - 77 WHEN 36 * AVG ( DISTINCT 65 ) - 22 * - 95 THEN 80 END WHEN 12 / + ( 38 ) + 80 * CAST ( NULL AS INTEGER ) THEN 18 WHEN + 75 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 29 * 27 - 38 * + 12
----
327

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT + 74 * + MAX( - 49 ) AS col0
----
-3626

skipif mysql # not compatible
query I rowsort label-1359
SELECT + 74 * + MAX ( - 49 ) AS col0
----
-3626

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

query I rowsort
SELECT 13 * + 56 + 69
----
797

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT + NULLIF ( 23, - 59 * 36 - CASE 91 WHEN - 78 THEN + 4 / + CASE + 59 WHEN 58 THEN NULL ELSE COUNT( DISTINCT 5 ) END + 21 ELSE 16 + 90 END )
----
23

skipif mysql # not compatible
query I rowsort label-1362
SELECT + NULLIF ( 23, - 59 * 36 - CASE 91 WHEN - 78 THEN + 4 / + CASE + 59 WHEN 58 THEN NULL ELSE COUNT ( DISTINCT 5 ) END + 21 ELSE 16 + 90 END )
----
23

query I rowsort
SELECT DISTINCT + 54 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1364
SELECT ALL 84 DIV - 36
----
-2

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL 84 / - 36
----
-2

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

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

query I rowsort
SELECT + 67 * - 8
----
-536

query I rowsort
SELECT + 37 * - 75 col2
----
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT COALESCE ( 27, ( ( 12 ) ) + - ( CASE + 43 WHEN 49 / COUNT( * ) THEN + ( + 49 ) WHEN COALESCE ( + 97, 3, 82 ) THEN NULL ELSE + 16 END ), + 49, 86 * 22 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1368
SELECT COALESCE ( 27, ( ( 12 ) ) + - ( CASE + 43 WHEN 49 / COUNT ( * ) THEN + ( + 49 ) WHEN COALESCE ( + 97, 3, 82 ) THEN NULL ELSE + 16 END ), + 49, 86 * 22 ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT + ( + 42 ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-1369
SELECT + ( + 42 ) / 92
----
0

query I rowsort
SELECT ALL + 9 * 46 AS col2
----
414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1371
SELECT - + 87 * - 64 + 3 DIV + COUNT( * )
----
5571

skipif mysql # not compatible
query I rowsort label-1371
SELECT - + 87 * - 64 + 3 / + COUNT ( * )
----
5571

query I rowsort
SELECT - - 98 * 81
----
7938

query I rowsort
SELECT - - 40 + 2 * 98 AS col1
----
236

query I rowsort
SELECT DISTINCT 42 col2
----
42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1376
SELECT - - CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1376
SELECT - - CAST ( COUNT ( * ) AS INTEGER )
----
1

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

query I rowsort
SELECT DISTINCT - 90 + COALESCE ( 88, + 34 ) * - NULLIF ( 78 + 93, - NULLIF ( 21, 2 + 49 ) )
----
-15138

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1380
SELECT ALL + - COALESCE ( NULLIF ( COUNT( * ), 82 + + 43 * CAST( + 92 AS SIGNED ) ), - 93 DIV ( + 65 ) + - 89 ) + + 37
----
36

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + - COALESCE ( NULLIF ( COUNT ( * ), 82 + + 43 * CAST ( + 92 AS INTEGER ) ), - 93 / ( + 65 ) + - 89 ) + + 37
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT + COUNT( * ) + + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1381
SELECT + COUNT ( * ) + + 88 AS col2
----
89

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

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL CAST ( NULL AS INTEGER ) + + 69 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT + + CAST( MAX( ALL 65 ) AS SIGNED ) + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-1383
SELECT + + CAST ( MAX ( ALL 65 ) AS INTEGER ) + - COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT - ( 43 ) AS col2
----
-43

query I rowsort
SELECT ALL + + 55 + ( 93 + - 80 )
----
68

query I rowsort
SELECT + - 2 + ( 95 )
----
93

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

query I rowsort
SELECT - + 22 + 47 col0
----
25

query I rowsort
SELECT ALL - + 42 + 37
----
-5

query I rowsort
SELECT ALL + 43 + 1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - CASE - 63 WHEN + 59 + 96 THEN NULL ELSE - ( SUM( - 21 ) ) + ( 65 ) END * 40
----
-3440

skipif mysql # not compatible
query I rowsort label-1391
SELECT - CASE - 63 WHEN + 59 + 96 THEN NULL ELSE - ( SUM ( - 21 ) ) + ( 65 ) END * 40
----
-3440

query I rowsort
SELECT DISTINCT ( - - 95 ) AS col1
----
95

query I rowsort
SELECT DISTINCT 12 + + 4 * + 25 AS col2
----
112

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

skipif mysql # not compatible
query I rowsort label-1394
SELECT - ( - 52 ) * COUNT ( * )
----
52

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1396
SELECT - CAST( NULL AS SIGNED ) + + 28 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT - CAST ( NULL AS INTEGER ) + + 28 + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL + 44 - - MIN( 54 ) + ( + 88 ) * + 72 col1
----
6434

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + 44 - - MIN ( 54 ) + ( + 88 ) * + 72 col1
----
6434

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL NULLIF ( - NULLIF ( 65, + 10 * 7 ), + MAX( DISTINCT 94 ) * 73 )
----
-65

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL NULLIF ( - NULLIF ( 65, + 10 * 7 ), + MAX ( DISTINCT 94 ) * 73 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT CAST( - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-1399
SELECT CAST ( - 58 AS INTEGER )
----
-58

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

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

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

query I rowsort
SELECT - ( 10 ) * 9 AS col0
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1403
SELECT - CAST( NULL AS DECIMAL ) / - 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1403
SELECT - CAST ( NULL AS REAL ) / - 12 col1
----
NULL

query I rowsort
SELECT - 11 + + 19 * + 65
----
1224

query I rowsort
SELECT ALL + CASE - 98 WHEN 22 THEN - 95 * + 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT DISTINCT - 99 / 15 / - CASE 96 WHEN - COUNT( * ) THEN NULL WHEN ( 52 ) THEN + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT - 99 / 15 / - CASE 96 WHEN - COUNT ( * ) THEN NULL WHEN ( 52 ) THEN + 30 ELSE NULL END
----
NULL

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

query I rowsort
SELECT ( - 14 )
----
-14

query I rowsort
SELECT DISTINCT + 73 AS col0
----
73

query I rowsort
SELECT DISTINCT + 44 col1
----
44

query I rowsort
SELECT ALL CASE 33 WHEN 59 - 85 * 30 THEN 30 WHEN - 22 THEN NULL ELSE - 10 END * + 4 col2
----
-40

query I rowsort
SELECT DISTINCT ( - 69 ) * - 83 AS col0
----
5727

query I rowsort
SELECT DISTINCT + NULLIF ( 78, + 16 ) * 90
----
7020

query I rowsort
SELECT ( 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT + - SUM( 1 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT + - SUM ( 1 ) col0
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT CAST( 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-1417
SELECT CAST ( 4 AS INTEGER )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1418
SELECT DISTINCT + 54 * - - CASE 71 WHEN MAX( 82 ) THEN - 39 + - 32 WHEN + 5 + CAST( - CASE - ( 16 ) WHEN 87 + + ( + 18 + + ( 23 - + CASE + COUNT( * ) + 54 WHEN COUNT( * ) THEN - CASE 36 WHEN - 68 THEN 87 / CAST( - COUNT( * ) AS DECIMAL ) + 52 * - 59 WHEN 33 THEN NULL WHEN + 32 THEN NULL ELSE 11 END ELSE - 21 END ) ) / + 42 THEN + 4 * + 15 - + 43 * + 69 ELSE NULL END AS SIGNED ) THEN NULL ELSE NULL END + - 5 + - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT + 54 * - - CASE 71 WHEN MAX ( 82 ) THEN - 39 + - 32 WHEN + 5 + CAST ( - CASE - ( 16 ) WHEN 87 + + ( + 18 + + ( 23 - + CASE + COUNT ( * ) + 54 WHEN COUNT ( * ) THEN - CASE 36 WHEN - 68 THEN 87 / CAST ( - COUNT ( * ) AS REAL ) + 52 * - 59 WHEN 33 THEN NULL WHEN + 32 THEN NULL ELSE 11 END ELSE - 21 END ) ) / + 42 THEN + 4 * + 15 - + 43 * + 69 ELSE NULL END AS INTEGER ) THEN NULL ELSE NULL END + - 5 + - 52 AS col1
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( - - 36, 66 + + NULLIF ( 38, + 80 ), 81 + 37 * 25 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL + + ( 3 ) * MAX( DISTINCT 69 * 58 ) + - CASE - 20 WHEN + 37 THEN 30 / + 45 + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + + ( 3 ) * MAX ( DISTINCT 69 * 58 ) + - CASE - 20 WHEN + 37 THEN 30 / + 45 + 60 END
----
NULL

query I rowsort
SELECT COALESCE ( + 53, + 57 + - 49, 3 + - 74 )
----
53

query I rowsort
SELECT ALL + 96 * + 29 * - 1 + - 29
----
-2813

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT + - 92 * - COUNT( * ) * 22 col0
----
2024

skipif mysql # not compatible
query I rowsort label-1423
SELECT + - 92 * - COUNT ( * ) * 22 col0
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + 36 * SUM( DISTINCT + 27 ) - - COUNT( * ) AS col1
----
973

skipif mysql # not compatible
query I rowsort label-1424
SELECT + 36 * SUM ( DISTINCT + 27 ) - - COUNT ( * ) AS col1
----
973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT DISTINCT CAST( NULL AS SIGNED ) / - CASE 80 WHEN - 74 THEN + 11 + - 47 * - AVG ( DISTINCT + 37 ) END + CAST( NULL AS SIGNED ) * - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - CASE 80 WHEN - 74 THEN + 11 + - 47 * - AVG ( DISTINCT + 37 ) END + CAST ( NULL AS INTEGER ) * - 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT + + 73 + - - COUNT( * ) + CASE 42 WHEN 82 THEN SUM( DISTINCT - 11 ) END * 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT + + 73 + - - COUNT ( * ) + CASE 42 WHEN 82 THEN SUM ( DISTINCT - 11 ) END * 13 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 4 + - 42 col1
----
-46

query I rowsort
SELECT DISTINCT 43 + + - 77
----
-34

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

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

query I rowsort
SELECT DISTINCT 12 - + 6 AS col2
----
6

query I rowsort
SELECT DISTINCT 71 * + 30 AS col1
----
2130

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT 3 * 72 DIV + 1 AS col1
----
216

skipif mysql # not compatible
query I rowsort label-1432
SELECT 3 * 72 / + 1 AS col1
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1433
SELECT CAST( 31 AS SIGNED ) + + 17 + COALESCE ( - 64, COUNT( * ) ) * - 51 AS col0
----
3312

skipif mysql # not compatible
query I rowsort label-1433
SELECT CAST ( 31 AS INTEGER ) + + 17 + COALESCE ( - 64, COUNT ( * ) ) * - 51 AS col0
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL + NULLIF ( - - COUNT( * ), - - 91 ) - 15
----
-14

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + NULLIF ( - - COUNT ( * ), - - 91 ) - 15
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT + 4 DIV - 20 + + 84 + 59
----
143

skipif mysql # not compatible
query I rowsort label-1435
SELECT + 4 / - 20 + + 84 + 59
----
143

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

query I rowsort
SELECT DISTINCT - 95 * + 69 AS col0
----
-6555

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT 6 * - NULLIF ( - COUNT( * ), + COUNT( * ) * COUNT( - 51 ) )
----
6

skipif mysql # not compatible
query I rowsort label-1438
SELECT 6 * - NULLIF ( - COUNT ( * ), + COUNT ( * ) * COUNT ( - 51 ) )
----
6

query I rowsort
SELECT DISTINCT - 44 col2
----
-44

query I rowsort
SELECT ALL 57 * 82 AS col0
----
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL - CASE - - 99 WHEN + MAX( 59 ) - + ( + 98 ) THEN NULL WHEN 81 * - COUNT( * ) THEN 66 WHEN ( - 0 ) + 19 THEN - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - CASE - - 99 WHEN + MAX ( 59 ) - + ( + 98 ) THEN NULL WHEN 81 * - COUNT ( * ) THEN 66 WHEN ( - 0 ) + 19 THEN - 26 END
----
NULL

query I rowsort
SELECT 21 + + + 27
----
48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT 50 DIV - + 81 + + 55
----
55

skipif mysql # not compatible
query I rowsort label-1444
SELECT 50 / - + 81 + + 55
----
55

query I rowsort
SELECT ALL + ( + 66 ) + 58
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT 11 + - 84 + - 49 DIV ( - 4 ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-1446
SELECT 11 + - 84 + - 49 / ( - 4 ) col1
----
-61

query II rowsort
SELECT + + 28, - 60 AS col2
----
28
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT - 58 * - 75 + 90 * COUNT( * )
----
4440

skipif mysql # not compatible
query I rowsort label-1448
SELECT - 58 * - 75 + 90 * COUNT ( * )
----
4440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1449
SELECT 4 * - 78 DIV + ( - COUNT( * ) ) + + 70 + + 69
----
451

skipif mysql # not compatible
query I rowsort label-1449
SELECT 4 * - 78 / + ( - COUNT ( * ) ) + + 70 + + 69
----
451

onlyif mysql # aggregate syntax: 
query II rowsort label-1450
SELECT 34 AS col2, + COUNT( * ) - 3 AS col2
----
34
-2

skipif mysql # not compatible
query II rowsort label-1450
SELECT 34 AS col2, + COUNT ( * ) - 3 AS col2
----
34
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1451
SELECT ALL + - 89 + + 63 * 46 * + CASE WHEN CAST( NULL AS SIGNED ) IS NULL THEN NULL WHEN NOT ( NULL ) NOT BETWEEN 0 AND ( NULL ) THEN MAX( 45 ) + - 69 ELSE 69 - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + - 89 + + 63 * 46 * + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL WHEN NOT ( NULL ) NOT BETWEEN 0 AND ( NULL ) THEN MAX ( 45 ) + - 69 ELSE 69 - 28 END
----
NULL

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

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

query I rowsort
SELECT ALL + 1 + - 1 AS col1
----
0

query I rowsort
SELECT ALL - 43 + - + 24 AS col2
----
-67

query I rowsort
SELECT ALL - + ( + 40 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT + + CAST( - + COUNT( + 48 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1456
SELECT + + CAST ( - + COUNT ( + 48 ) AS INTEGER )
----
-1

query I rowsort
SELECT 0 + - + 19 + 41 AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1458
SELECT DISTINCT - 59 AS col1, CAST( NULL AS SIGNED )
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-1458
SELECT DISTINCT - 59 AS col1, CAST ( NULL AS INTEGER )
----
-59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT + CAST( + 20 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1459
SELECT + CAST ( + 20 AS INTEGER ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1460
SELECT - CASE COUNT( * ) WHEN - + 26 / 97 + CAST( 30 AS DECIMAL ) * + 18 THEN NULL ELSE 38 END AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1460
SELECT - CASE COUNT ( * ) WHEN - + 26 / 97 + CAST ( 30 AS REAL ) * + 18 THEN NULL ELSE 38 END AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT - + COUNT( 83 ) * - 6 + 29 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1461
SELECT - + COUNT ( 83 ) * - 6 + 29 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT SUM( + 39 ) * - 90 * 9 + - COUNT( * ) AS col2
----
-31591

skipif mysql # not compatible
query I rowsort label-1462
SELECT SUM ( + 39 ) * - 90 * 9 + - COUNT ( * ) AS col2
----
-31591

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT - + 23, - 40 * - + MIN( ALL 28 ) - 66 AS col2
----
-23
1054

skipif mysql # not compatible
query II rowsort label-1463
SELECT - + 23, - 40 * - + MIN ( ALL 28 ) - 66 AS col2
----
-23
1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT - COUNT( DISTINCT 91 ) DIV + 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1464
SELECT - COUNT ( DISTINCT 91 ) / + 33 AS col2
----
0

query I rowsort
SELECT DISTINCT + 75 + + - 50
----
25

query II rowsort
SELECT + 17 AS col2, + 95
----
17
95

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT DISTINCT - 47 - + CAST( 76 AS SIGNED ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT - 47 - + CAST ( 76 AS INTEGER ) AS col1
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT ALL + COALESCE ( 14, - COUNT( * ) ) DIV 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + COALESCE ( 14, - COUNT ( * ) ) / 64 AS col2
----
0

query I rowsort
SELECT + 24 + + - 81
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 26
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 3, + 32 * CASE WHEN NOT 56 IS NOT NULL THEN 83 END, - 28 + + 7 * 89 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT 97 + - SUM( - 81 )
----
178

skipif mysql # not compatible
query I rowsort label-1473
SELECT 97 + - SUM ( - 81 )
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1474
SELECT ALL 23 DIV + NULLIF ( + 52, - CAST( NULL AS SIGNED ) * COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL 23 / + NULLIF ( + 52, - CAST ( NULL AS INTEGER ) * COUNT ( * ) )
----
0

query I rowsort
SELECT 87 * + 47 AS col2
----
4089

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

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

query I rowsort
SELECT ALL 42 col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT ALL ( - - 76 ) * - + COUNT( 0 ) + + 74 DIV - 11 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL ( - - 76 ) * - + COUNT ( 0 ) + + 74 / - 11 AS col2
----
-82

query I rowsort
SELECT DISTINCT 45 AS col2
----
45

query I rowsort
SELECT DISTINCT 99 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT COUNT( * ) + + 80 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1481
SELECT COUNT ( * ) + + 80 AS col0
----
81

query I rowsort
SELECT ALL 16 * - 69
----
-1104

query I rowsort
SELECT 21 + - 1 + + 93 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL - 70 * + + COUNT( * ) + + + COUNT( * ) - - + ( NULLIF ( 92, - 75 ) )
----
23

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL - 70 * + + COUNT ( * ) + + + COUNT ( * ) - - + ( NULLIF ( 92, - 75 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT SUM( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-1485
SELECT SUM ( 97 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1486
SELECT ALL - COUNT( + 96 ), + 67 AS col0
----
-1
67

skipif mysql # not compatible
query II rowsort label-1486
SELECT ALL - COUNT ( + 96 ), + 67 AS col0
----
-1
67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1488
SELECT 46 * + 19 + COALESCE ( - + 77, - CAST( NULL AS SIGNED ) + 5 * + 90, 64 + COUNT( * ), - 8 * - 84 ) AS col1
----
797

skipif mysql # not compatible
query I rowsort label-1488
SELECT 46 * + 19 + COALESCE ( - + 77, - CAST ( NULL AS INTEGER ) + 5 * + 90, 64 + COUNT ( * ), - 8 * - 84 ) AS col1
----
797

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL + 24 * - + 71 * + 0 + - COUNT( DISTINCT 67 ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL + 24 * - + 71 * + 0 + - COUNT ( DISTINCT 67 ) + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1490
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * - - 9 + - - 43 + 49 + + 77 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * - - 9 + - - 43 + 49 + + 77 AS col2
----
160

query I rowsort
SELECT ALL - 66 AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1492
SELECT DISTINCT - COALESCE ( 61, 44 + - ( CAST( 88 AS SIGNED ) ) ) * + SUM( ALL 15 * 66 )
----
-60390

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - COALESCE ( 61, 44 + - ( CAST ( 88 AS INTEGER ) ) ) * + SUM ( ALL 15 * 66 )
----
-60390

query I rowsort
SELECT 15 * 82 * 14
----
17220

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT - 65 * + - ( + COUNT( * ) ) - COALESCE ( 46, 53 * 27 )
----
19

skipif mysql # not compatible
query I rowsort label-1494
SELECT - 65 * + - ( + COUNT ( * ) ) - COALESCE ( 46, 53 * 27 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1495
SELECT ALL + 20 DIV - 44, + CAST( NULL AS SIGNED ) * - CASE 65 WHEN - ( 38 ) THEN SUM( ( 90 ) ) + 62 * + COUNT( * ) WHEN - 74 THEN - 69 * 66 WHEN 77 THEN NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1495
SELECT ALL + 20 / - 44, + CAST ( NULL AS INTEGER ) * - CASE 65 WHEN - ( 38 ) THEN SUM ( ( 90 ) ) + 62 * + COUNT ( * ) WHEN - 74 THEN - 69 * 66 WHEN 77 THEN NULL END AS col2
----
0
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT 23 + + NULLIF ( + - 81, - COUNT( * ) * - 46 + 3 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-1497
SELECT 23 + + NULLIF ( + - 81, - COUNT ( * ) * - 46 + 3 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL - - NULLIF ( COUNT( * ), - 68 + - + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - - NULLIF ( COUNT ( * ), - 68 + - + 77 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT ALL 60 - + - 11 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL 60 - + - 11 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 64
----
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL - + MAX( + 26 ) * - MAX( 70 ) AS col1
----
1820

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL - + MAX ( + 26 ) * - MAX ( 70 ) AS col1
----
1820

query I rowsort
SELECT - + 90 * + 15 AS col1
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL MAX( + - NULLIF ( + NULLIF ( - 73, + 29 ), 73 - - 51 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL MAX ( + - NULLIF ( + NULLIF ( - 73, + 29 ), 73 - - 51 ) ) AS col1
----
73

query II rowsort
SELECT - 74 AS col1, 40 + - 63 * 98 + 26 + - 60
----
-74
-6168

query I rowsort
SELECT - 88 * - - 34
----
-2992

query I rowsort
SELECT - 94 * - + 64
----
6016

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

skipif mysql # not compatible
query II rowsort label-1508
SELECT 61 AS col2, COUNT ( * ) AS col1
----
61
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT DISTINCT NULLIF ( - 85, - 18 - 56 + + ( + 78 ) - - 84 * 8 * NULLIF ( - COALESCE ( - NULLIF ( + 23, 15 ), + COUNT( * ) / + MIN( DISTINCT - 58 ) + - COALESCE ( + 27, - 60, + 89 ), + ( 48 ) * + 30 ), - 22 ) ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT NULLIF ( - 85, - 18 - 56 + + ( + 78 ) - - 84 * 8 * NULLIF ( - COALESCE ( - NULLIF ( + 23, 15 ), + COUNT ( * ) / + MIN ( DISTINCT - 58 ) + - COALESCE ( + 27, - 60, + 89 ), + ( 48 ) * + 30 ), - 22 ) ) col2
----
-85

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

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

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

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

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

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

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

query I rowsort
SELECT - NULLIF ( - 14, - 95 - + + 24 )
----
14

query I rowsort
SELECT - 92 + - 39
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT + COUNT( DISTINCT + ( + 38 ) ) * + 61
----
61

skipif mysql # not compatible
query I rowsort label-1518
SELECT + COUNT ( DISTINCT + ( + 38 ) ) * + 61
----
61

query I rowsort
SELECT - 68 + 72 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL - COUNT( * ) + 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - COUNT ( * ) + 92 AS col1
----
91

query II rowsort
SELECT ALL 69 AS col1, 44 col0
----
69
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL 82 * 17 + + COUNT( * )
----
1395

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL 82 * 17 + + COUNT ( * )
----
1395

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT + 62 * + - 68 * + SUM( ALL + 30 )
----
-126480

skipif mysql # not compatible
query I rowsort label-1523
SELECT + 62 * + - 68 * + SUM ( ALL + 30 )
----
-126480

query I rowsort
SELECT ALL 13 * + 8 + - - 67 + + + 71
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1525
SELECT + ( CAST( 24 AS SIGNED ) ) + - COUNT( * ) * + + ( COUNT( * ) ) + MIN( - 35 - 61 )
----
-73

skipif mysql # not compatible
query I rowsort label-1525
SELECT + ( CAST ( 24 AS INTEGER ) ) + - COUNT ( * ) * + + ( COUNT ( * ) ) + MIN ( - 35 - 61 )
----
-73

query I rowsort
SELECT DISTINCT + NULLIF ( NULLIF ( 33, 94 ), - - 5 + - 72 / - 61 ) * 51 + - 17
----
1666

query I rowsort
SELECT ALL 21 * + 43 - - + 96 + - 39
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT + 13 DIV + 75 + - 33 * 76 + - + 28 + 53 AS col1
----
-2483

skipif mysql # not compatible
query I rowsort label-1528
SELECT + 13 / + 75 + - 33 * 76 + - + 28 + 53 AS col1
----
-2483

query II rowsort
SELECT + NULLIF ( - 83, 59 ) AS col2, 3 AS col1
----
-83
3

query I rowsort
SELECT + 47 + 95 + 99
----
241

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT + MIN( ALL + + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-1532
SELECT + MIN ( ALL + + 89 )
----
89

query I rowsort
SELECT + NULLIF ( - + 27, - 70 ) * + + 30 + + 87 * 61 AS col2
----
4497

query I rowsort
SELECT ALL + 48 * + ( + 25 ) - - - 55
----
1145

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1536
SELECT + 79, - 60 + - COUNT( * ) AS col2
----
79
-61

skipif mysql # not compatible
query II rowsort label-1536
SELECT + 79, - 60 + - COUNT ( * ) AS col2
----
79
-61

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

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

query I rowsort
SELECT ALL + 25 * - 28 + 82
----
-618

query I rowsort
SELECT + 97 + 85 + + - 83 * + 7 col1
----
-399

query I rowsort
SELECT DISTINCT + + 71 AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1541
SELECT + MIN( + 35 ) DIV + - 71, 11 DIV + 74 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-1541
SELECT + MIN ( + 35 ) / + - 71, 11 / + 74 AS col0
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1542
SELECT - 33 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1542
SELECT - 33 / - 54 AS col1
----
0

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

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

query I rowsort
SELECT - 71 * + 75 * - 95 AS col0
----
505875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1545
SELECT COUNT( * ) AS col2, COUNT( * ) DIV CAST( + + 94 AS SIGNED )
----
1
0

skipif mysql # not compatible
query II rowsort label-1545
SELECT COUNT ( * ) AS col2, COUNT ( * ) / CAST ( + + 94 AS INTEGER )
----
1
0

query I rowsort
SELECT ALL + 27 + + - 14 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT - 28 + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-1547
SELECT - 28 + COUNT ( * )
----
-27

query I rowsort
SELECT ALL + 54 + - 89 AS col2
----
-35

query I rowsort
SELECT - 5 + + + 3 AS col2
----
-2

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

query I rowsort
SELECT DISTINCT + 82 * - - 90
----
7380

query I rowsort
SELECT - 98 + + 31 * + 78 AS col1
----
2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - 69 * + COUNT( * ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-1554
SELECT - 69 * + COUNT ( * ) col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1555
SELECT ALL + COUNT( + CASE CAST( NULL AS DECIMAL ) WHEN + 42 + + + 15 + + 39 - - 49 / 40 * + 53 THEN NULL ELSE 16 END ) + 50 * + ( + MIN( DISTINCT + 72 ) - ( 53 ) * - 47 ) AS col1
----
128151

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + COUNT ( + CASE CAST ( NULL AS REAL ) WHEN + 42 + + + 15 + + 39 - - 49 / 40 * + 53 THEN NULL ELSE 16 END ) + 50 * + ( + MIN ( DISTINCT + 72 ) - ( 53 ) * - 47 ) AS col1
----
128151

query I rowsort
SELECT DISTINCT COALESCE ( - - 5, + ( - 0 ) + 86 * - + 25 * + ( + 28 ) ) AS col1
----
5

query I rowsort
SELECT ALL - 91 + + 70 AS col1
----
-21

query I rowsort
SELECT DISTINCT 67
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1559
SELECT - MIN( 86 ), + COUNT( * ) * + + 58 * 93 AS col2
----
-86
5394

skipif mysql # not compatible
query II rowsort label-1559
SELECT - MIN ( 86 ), + COUNT ( * ) * + + 58 * 93 AS col2
----
-86
5394

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

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

query I rowsort
SELECT ALL 67 col2
----
67

query I rowsort
SELECT ALL - + 69 - - + 45 col1
----
-24

query II rowsort
SELECT - 11, 74 * 67 AS col2
----
-11
4958

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT - + 64 DIV + + 1 + - + 56 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-1564
SELECT - + 64 / + + 1 + - + 56 AS col0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1565
SELECT + + CAST( 92 AS SIGNED ) * + + 84 AS col1
----
7728

skipif mysql # not compatible
query I rowsort label-1565
SELECT + + CAST ( 92 AS INTEGER ) * + + 84 AS col1
----
7728

onlyif mysql # aggregate syntax: 
query II rowsort label-1566
SELECT + - 85, + COUNT( * ) col0
----
-85
1

skipif mysql # not compatible
query II rowsort label-1566
SELECT + - 85, + COUNT ( * ) col0
----
-85
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT + CASE 75 WHEN + CAST( NULL AS SIGNED ) THEN - + NULLIF ( + 3, + - 86 ) * 13 ELSE 41 END col1
----
41

skipif mysql # not compatible
query I rowsort label-1567
SELECT + CASE 75 WHEN + CAST ( NULL AS INTEGER ) THEN - + NULLIF ( + 3, + - 86 ) * 13 ELSE 41 END col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1568
SELECT ALL + + 90 DIV + + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL + + 90 / + + 93 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1569
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1, 64 col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-1569
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, 64 col1
----
NULL
64

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

query I rowsort
SELECT - 68 * - 87 * - 48 + + 47
----
-283921

query I rowsort
SELECT ALL - 18 * - 46 col1
----
828

query II rowsort
SELECT + 85 AS col2, - 30
----
85
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1574
SELECT ALL - + 20, COUNT( * ) DIV + 27 AS col0
----
-20
0

skipif mysql # not compatible
query II rowsort label-1574
SELECT ALL - + 20, COUNT ( * ) / + 27 AS col0
----
-20
0

query I rowsort
SELECT DISTINCT - + 60
----
-60

query II rowsort
SELECT ALL - 44 AS col0, ( - 97 )
----
-44
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + COALESCE ( + ( 35 ), 14 * + - 53 * 25 - + COUNT( ALL 98 ) * - 38 + 42, 18 * COUNT( * ) + ( - 98 + - 42 ) * + 69 ) * 55
----
1925

skipif mysql # not compatible
query I rowsort label-1577
SELECT + COALESCE ( + ( 35 ), 14 * + - 53 * 25 - + COUNT ( ALL 98 ) * - 38 + 42, 18 * COUNT ( * ) + ( - 98 + - 42 ) * + 69 ) * 55
----
1925

query I rowsort
SELECT 34 - 84 * 10
----
-806

query I rowsort
SELECT - 70 * + + 84
----
-5880

query I rowsort
SELECT 26 + 32 AS col1
----
58

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

query II rowsort
SELECT ALL 70 + - + 82 AS col2, - 92 col2
----
-12
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT ALL COALESCE ( + 16, - ( 84 ) ) * - CAST( NULL AS SIGNED ) + + + ( + 24 ) * - CAST( + 24 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL COALESCE ( + 16, - ( 84 ) ) * - CAST ( NULL AS INTEGER ) + + + ( + 24 ) * - CAST ( + 24 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 73 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT DISTINCT 0 + SUM( - - 51 ) + + + 47 DIV + 83 col0
----
51

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT 0 + SUM ( - - 51 ) + + + 47 / + 83 col0
----
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL - 95 + - 88 * - CASE WHEN NOT 40 IS NOT NULL THEN - + 16 WHEN NOT + 74 BETWEEN COUNT( DISTINCT ( - COALESCE ( - 3, - 90 ) ) ) AND COUNT( * ) / - CAST( NULL AS SIGNED ) + 48 THEN NULLIF ( - 47, + 33 ) - - 37 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - 95 + - 88 * - CASE WHEN NOT 40 IS NOT NULL THEN - + 16 WHEN NOT + 74 BETWEEN COUNT ( DISTINCT ( - COALESCE ( - 3, - 90 ) ) ) AND COUNT ( * ) / - CAST ( NULL AS INTEGER ) + 48 THEN NULLIF ( - 47, + 33 ) - - 37 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 34 + - - 25 + + + 83
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL CASE - 38 WHEN 0 * + - 38 THEN NULL WHEN + ( + - 6 ) THEN 66 ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL CASE - 38 WHEN 0 * + - 38 THEN NULL WHEN + ( + - 6 ) THEN 66 ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1590
SELECT ( + CAST( + 1 AS SIGNED ) ) - 35
----
-34

skipif mysql # not compatible
query I rowsort label-1590
SELECT ( + CAST ( + 1 AS INTEGER ) ) - 35
----
-34

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

query II rowsort
SELECT 50 * + 89 col0, + ( - - 81 )
----
4450
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT + 77 + + ( - 32 ) * - COUNT( * ) * + 88 AS col0
----
2893

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT + 77 + + ( - 32 ) * - COUNT ( * ) * + 88 AS col0
----
2893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT ALL - CAST( NULL AS SIGNED ) + + 13 * + - 20 / + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL - CAST ( NULL AS INTEGER ) + + 13 * + - 20 / + + 93
----
NULL

query I rowsort
SELECT ALL + 60 + 51
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-1596
SELECT 37 - - COUNT( * ) col0, - 55
----
38
-55

skipif mysql # not compatible
query II rowsort label-1596
SELECT 37 - - COUNT ( * ) col0, - 55
----
38
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT NULLIF ( - + COUNT( * ), + 95 ) + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-1597
SELECT NULLIF ( - + COUNT ( * ), + 95 ) + - 92
----
-93

query I rowsort
SELECT ALL + 60 - - - 70 * 17 * - 86
----
102400

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ( + MAX( + 17 ) ) * - 65
----
-1105

skipif mysql # not compatible
query I rowsort label-1599
SELECT ( + MAX ( + 17 ) ) * - 65
----
-1105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1600
SELECT ( + - COALESCE ( + + 51, + 67 DIV + NULLIF ( + 88, - 65 ) * + 94, COUNT( * ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-1600
SELECT ( + - COALESCE ( + + 51, + 67 / + NULLIF ( + 88, - 65 ) * + 94, COUNT ( * ) ) )
----
-51

query I rowsort
SELECT - - ( 29 )
----
29

query I rowsort
SELECT + 2 + 79 AS col1
----
81

query I rowsort
SELECT + COALESCE ( - 98, 81 + 4 + COALESCE ( - 1, - 92 + 11, + 81, - ( 61 ) ) * 15 ) AS col1
----
-98

query I rowsort
SELECT ALL + 24 * + - 6 * 98
----
-14112

query I rowsort
SELECT - ( ( + 74 ) ) - 91 AS col0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT 0 + + - SUM( ( 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-1606
SELECT 0 + + - SUM ( ( 89 ) )
----
-89

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

skipif mysql # not compatible
query I rowsort label-1607
SELECT - ( + 13 ) / + COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT DISTINCT - + 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT DISTINCT - MAX( + - ( ( + 15 ) ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT - MAX ( + - ( ( + 15 ) ) ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL - NULLIF ( COUNT( * ), MAX( DISTINCT + 40 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - NULLIF ( COUNT ( * ), MAX ( DISTINCT + 40 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1611
SELECT - 9 * 40 + - 94, MAX( - 25 ) AS col1
----
-454
-25

skipif mysql # not compatible
query II rowsort label-1611
SELECT - 9 * 40 + - 94, MAX ( - 25 ) AS col1
----
-454
-25

query I rowsort
SELECT + 70 * + 45 * + + 18 + + 24 + 11
----
56735

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

query II rowsort
SELECT + COALESCE ( - 4, 45 ) AS col0, 11 col1
----
-4
11

onlyif mysql # DIV for integer division: 
query II rowsort label-1615
SELECT 0 DIV + - 22 * - 60 AS col1, 28 AS col1
----
0
28

skipif mysql # not compatible
query II rowsort label-1615
SELECT 0 / + - 22 * - 60 AS col1, 28 AS col1
----
0
28

query I rowsort
SELECT ALL - 48 + - 49 + - 89 AS col0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT 79 DIV - + 35 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1617
SELECT 79 / - + 35 AS col0
----
-2

query I rowsort
SELECT ALL + 45 + - 73 - + 33 AS col0
----
-61

query I rowsort
SELECT ALL 47 + + 88
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT 12 DIV + + 15
----
0

skipif mysql # not compatible
query I rowsort label-1620
SELECT 12 / + + 15
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1621
SELECT DISTINCT - 54 + - COUNT( + + 79 ) + MIN( - + 16 ) - - - NULLIF ( + - 25, - 21 * ( - 69 * 1 ) ) + + 45 DIV - 88
----
-46

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT - 54 + - COUNT ( + + 79 ) + MIN ( - + 16 ) - - - NULLIF ( + - 25, - 21 * ( - 69 * 1 ) ) + + 45 / - 88
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT NULLIF ( + COUNT( * ), + 62 / 58 + - 87 + - COUNT( * ) + - SUM( ALL + 56 ) ) * NULLIF ( + 37 + 74, NULLIF ( 83, - CASE WHEN + 39 < - 30 + + ( + 74 ) THEN NULL ELSE 69 END ) * + 27 )
----
111

skipif mysql # not compatible
query I rowsort label-1622
SELECT NULLIF ( + COUNT ( * ), + 62 / 58 + - 87 + - COUNT ( * ) + - SUM ( ALL + 56 ) ) * NULLIF ( + 37 + 74, NULLIF ( 83, - CASE WHEN + 39 < - 30 + + ( + 74 ) THEN NULL ELSE 69 END ) * + 27 )
----
111

query I rowsort
SELECT 25 + - 47 * - 9 * 86 + - 79 AS col0
----
36324

query I rowsort
SELECT ALL 94 + - CASE + 48 WHEN - 35 THEN + - 89 ELSE - 3 * - 27 + - 91 + NULLIF ( - ( - 49 ), 18 ) END AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1625
SELECT + 34 AS col2, SUM( DISTINCT + 65 ) DIV + + ( + - 55 ) + + - COUNT( * ) * 44 * + + 71 - - MIN( ALL + 25 ) AS col2
----
34
-3100

skipif mysql # not compatible
query II rowsort label-1625
SELECT + 34 AS col2, SUM ( DISTINCT + 65 ) / + + ( + - 55 ) + + - COUNT ( * ) * 44 * + + 71 - - MIN ( ALL + 25 ) AS col2
----
34
-3100

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT + MIN( ALL + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-1626
SELECT + MIN ( ALL + 65 )
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT 21 + + 21 + + - CASE + 73 WHEN - + 33 THEN COUNT( * ) WHEN COUNT( * ) THEN - 87 / + COUNT( * ) WHEN + 99 * - 12 THEN 3 WHEN + SUM( DISTINCT 91 ) THEN 7 END * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT 21 + + 21 + + - CASE + 73 WHEN - + 33 THEN COUNT ( * ) WHEN COUNT ( * ) THEN - 87 / + COUNT ( * ) WHEN + 99 * - 12 THEN 3 WHEN + SUM ( DISTINCT 91 ) THEN 7 END * - 15
----
NULL

query II rowsort
SELECT ALL 1 AS col1, + 22
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT - MIN( 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1630
SELECT - MIN ( 2 ) AS col2
----
-2

query I rowsort
SELECT DISTINCT 86 * 15
----
1290

query I rowsort
SELECT 56 + + + ( + 64 ) AS col0
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT 27 DIV + NULLIF ( + + 71, + + COUNT( * ) + - - 15 + 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1633
SELECT 27 / + NULLIF ( + + 71, + + COUNT ( * ) + - - 15 + 67 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 39 * + 48
----
1872

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

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

query II rowsort
SELECT - 41 col1, - 16 AS col1
----
-41
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL - CASE - COUNT( * ) WHEN - + ( - COUNT( * ) ) THEN SUM( - - 33 ) / 74 * + - MAX( ALL - 32 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL - CASE - COUNT ( * ) WHEN - + ( - COUNT ( * ) ) THEN SUM ( - - 33 ) / 74 * + - MAX ( ALL - 32 ) END
----
NULL

query I rowsort
SELECT + + 57 * + 19 AS col2
----
1083

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT DISTINCT + 43 AS col0, + 88 + + + 94 - - - MIN( ALL - ( + - 50 ) ) + 10 AS col2
----
43
142

skipif mysql # not compatible
query II rowsort label-1639
SELECT DISTINCT + 43 AS col0, + 88 + + + 94 - - - MIN ( ALL - ( + - 50 ) ) + 10 AS col2
----
43
142

query I rowsort
SELECT ALL 24 col0
----
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT DISTINCT 15 DIV + + 15 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT 15 / + + 15 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT + 89 * - 89 + + - 78 + - 38 + + COUNT( * ) * + 51
----
-7986

skipif mysql # not compatible
query I rowsort label-1643
SELECT + 89 * - 89 + + - 78 + - 38 + + COUNT ( * ) * + 51
----
-7986

query I rowsort
SELECT DISTINCT + 41 * 80 + + - 2 col2
----
3278

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

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

query I rowsort
SELECT - 43 * + NULLIF ( 7, + 67 ) * ( 38 ) AS col0
----
-11438

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT ALL - 83 * - + CASE CAST( NULL AS SIGNED ) WHEN + 34 / + 18 * - 19 + - 88 THEN + 89 * 11 END / COUNT( * ) + - 14 * 88 + + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - 83 * - + CASE CAST ( NULL AS INTEGER ) WHEN + 34 / + 18 * - 19 + - 88 THEN + 89 * 11 END / COUNT ( * ) + - 14 * 88 + + 65 col2
----
NULL

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

query I rowsort
SELECT 95 * 97 + - 13 AS col0
----
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT COALESCE ( 96, 65 * 30 + - + COUNT( 19 ) + - ( NULLIF ( + + COUNT( * ), 20 + - 75 * 30 ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-1651
SELECT COALESCE ( 96, 65 * 30 + - + COUNT ( 19 ) + - ( NULLIF ( + + COUNT ( * ), 20 + - 75 * 30 ) ) )
----
96

query I rowsort
SELECT ALL + ( 97 ) col0
----
97

query I rowsort
SELECT 4 * + 58 + + 14 AS col0
----
246

query I rowsort
SELECT - 82 * - - 88
----
-7216

query I rowsort
SELECT NULLIF ( + 91, 77 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1656
SELECT - 23 * 82 DIV + COUNT( * ) + COUNT( * ) AS col0
----
-1885

skipif mysql # not compatible
query I rowsort label-1656
SELECT - 23 * 82 / + COUNT ( * ) + COUNT ( * ) AS col0
----
-1885

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT DISTINCT - 50 DIV ( - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT - 50 / ( - 63 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT - 46 * + - 18 AS col1, - 12 + + - CASE COUNT( * ) WHEN COUNT( * ) * - 20 + + 20 * + 17 THEN 84 END + - 9
----
828
NULL

skipif mysql # not compatible
query II rowsort label-1658
SELECT - 46 * + - 18 AS col1, - 12 + + - CASE COUNT ( * ) WHEN COUNT ( * ) * - 20 + + 20 * + 17 THEN 84 END + - 9
----
828
NULL

query I rowsort
SELECT DISTINCT + 14 col0
----
14

query I rowsort
SELECT ALL ( 19 ) AS col0
----
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT - 86 * + CAST( - + 92 AS SIGNED )
----
7912

skipif mysql # not compatible
query I rowsort label-1662
SELECT - 86 * + CAST ( - + 92 AS INTEGER )
----
7912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1663
SELECT - COALESCE ( + 53, - 73, NULLIF ( - + 91, + + COUNT( * ) * - 37 ) - - ( CAST( NULL AS SIGNED ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-1663
SELECT - COALESCE ( + 53, - 73, NULLIF ( - + 91, + + COUNT ( * ) * - 37 ) - - ( CAST ( NULL AS INTEGER ) ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT - 3 - + 2 * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1664
SELECT - 3 - + 2 * + - COUNT ( * )
----
-1

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

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

query I rowsort
SELECT ALL ( + + 95 ) AS col1
----
95

query II rowsort
SELECT DISTINCT ( - 71 ) AS col1, + 36 AS col0
----
-71
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT - + CASE - 47 WHEN - MIN( ALL - - 5 ) THEN 32 / + - MAX( + ( + 45 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT - + CASE - 47 WHEN - MIN ( ALL - - 5 ) THEN 32 / + - MAX ( + ( + 45 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1669
SELECT DISTINCT COUNT( * ) * - 30 AS col2, + COUNT( + 18 ) AS col1
----
-30
1

skipif mysql # not compatible
query II rowsort label-1669
SELECT DISTINCT COUNT ( * ) * - 30 AS col2, + COUNT ( + 18 ) AS col1
----
-30
1

query I rowsort
SELECT DISTINCT - COALESCE ( 12, + 2, 88 * + 32 + - + 31 )
----
-12

query I rowsort
SELECT + - 53 * 0 + - - 66
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1672
SELECT + COUNT( * ) - 71 AS col1, + CAST( NULL AS SIGNED ) / 70
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-1672
SELECT + COUNT ( * ) - 71 AS col1, + CAST ( NULL AS INTEGER ) / 70
----
-70
NULL

query I rowsort
SELECT ALL 4 * - 76
----
-304

query I rowsort
SELECT - ( 72 ) + + 67 + - ( - ( + - 9 ) ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT + COUNT( * ) + + + 50 * - 5 col0
----
-249

skipif mysql # not compatible
query I rowsort label-1675
SELECT + COUNT ( * ) + + + 50 * - 5 col0
----
-249

query I rowsort
SELECT - + CASE - 11 WHEN - 48 THEN - 47 * - 15 END
----
NULL

query I rowsort
SELECT - - 95 - + 13
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1678
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + - MAX( ALL 38 ) + + 63 - 34 * + - 37
----
1283

skipif mysql # not compatible
query I rowsort label-1680
SELECT + - MAX ( ALL 38 ) + + 63 - 34 * + - 37
----
1283

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT ALL 16 DIV - - 25 + - - 40
----
40

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL 16 / - - 25 + - - 40
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1682
SELECT DISTINCT 53 DIV - + COALESCE ( 56, ( - - 34 ) * - 38 - 87 + - 14 + - + CAST( ( + 32 ) AS SIGNED ) ) * MAX( ALL 77 ) + 95
----
95

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT 53 / - + COALESCE ( 56, ( - - 34 ) * - 38 - 87 + - 14 + - + CAST ( ( + 32 ) AS INTEGER ) ) * MAX ( ALL 77 ) + 95
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1683
SELECT ALL - + 97 DIV + 49 + COUNT( 95 ) + + 41 * NULLIF ( + 4, 1 + + 3 DIV - COUNT( * ) ) + - COUNT( * ) * MAX( - 70 ) AS col2
----
234

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - + 97 / + 49 + COUNT ( 95 ) + + 41 * NULLIF ( + 4, 1 + + 3 / - COUNT ( * ) ) + - COUNT ( * ) * MAX ( - 70 ) AS col2
----
234

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT ALL 33 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL 33 / - 62
----
0

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

query I rowsort
SELECT - ( + - 29 ) * - COALESCE ( + 24, + 60 ) * - 83 * 14 + + 13 + - + ( - 8 )
----
808773

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT ALL + 22 DIV + 10 - - - 13 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL + 22 / + 10 - - - 13 AS col2
----
-11

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT + 52 * 33 * + CASE COUNT( * ) WHEN 13 + + 83 THEN - 2 - + ( + 68 ) WHEN + 70 + 30 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT + 52 * 33 * + CASE COUNT ( * ) WHEN 13 + + 83 THEN - 2 - + ( + 68 ) WHEN + 70 + 30 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 58 + + 49 * 8 AS col0, 25
----
334
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1694
SELECT ALL - COALESCE ( + COUNT( + + 17 ), - - 63, - 85 ) * - 54, + 93 col1
----
54
93

skipif mysql # not compatible
query II rowsort label-1694
SELECT ALL - COALESCE ( + COUNT ( + + 17 ), - - 63, - 85 ) * - 54, + 93 col1
----
54
93

query I rowsort
SELECT ( - - 6 )
----
6

query I rowsort
SELECT ALL 76 * - - 54
----
4104

query I rowsort
SELECT DISTINCT + 98 AS col2
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT DISTINCT + COUNT( * ) * + 47 - + 2 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT + COUNT ( * ) * + 47 - + 2 AS col1
----
45

query I rowsort
SELECT 64 * 13 * + 0 + - 3
----
-3

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

query I rowsort
SELECT ( 68 )
----
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT + 86 * - 17 * + MAX( ALL + 70 ) AS col1
----
-102340

skipif mysql # not compatible
query I rowsort label-1704
SELECT + 86 * - 17 * + MAX ( ALL + 70 ) AS col1
----
-102340

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

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

query I rowsort
SELECT - 75 * - + 32 + - 28 col0
----
2372

query I rowsort
SELECT NULLIF ( 70, + 13 ) col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT COUNT( * ) * - ( COUNT( * ) ) + - 4 + - - 99
----
94

skipif mysql # not compatible
query I rowsort label-1708
SELECT COUNT ( * ) * - ( COUNT ( * ) ) + - 4 + - - 99
----
94

query II rowsort
SELECT 82 - - 67 * 78 AS col1, 62 * + 5 - + ( + 79 )
----
5308
231

query I rowsort
SELECT ALL + 74 * + + 23
----
1702

query I rowsort
SELECT 56 * - 87 AS col2
----
-4872

query I rowsort
SELECT 65 * + 88 col1
----
5720

query I rowsort
SELECT ALL - 45 + - + 84
----
-129

query I rowsort
SELECT 29 + 89 col2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT ALL - CAST( NULL AS SIGNED ) * + 55 + 21 * - + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL - CAST ( NULL AS INTEGER ) * + 55 + 21 * - + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT - CASE + ( - - 49 ) WHEN - MIN( + 72 ) THEN + 89 WHEN - + 7 THEN - 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT - CASE + ( - - 49 ) WHEN - MIN ( + 72 ) THEN + 89 WHEN - + 7 THEN - 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT - - SUM( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-1717
SELECT - - SUM ( - 46 )
----
-46

query I rowsort
SELECT ALL + 10 + - 94 * - - 68 + 16
----
-6366

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT - - MIN( - - 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1719
SELECT - - MIN ( - - 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ( COALESCE ( - + COUNT( * ), - - 97 + - SUM( - 97 ) ) ) * + 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1720
SELECT ( COALESCE ( - + COUNT ( * ), - - 97 + - SUM ( - 97 ) ) ) * + 80 AS col0
----
-80

query I rowsort
SELECT DISTINCT + 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL + COUNT( * ) + + CASE COUNT( * ) WHEN + COUNT( ALL - + 69 ) THEN - + 58 + - 51 ELSE NULL END
----
-108

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL + COUNT ( * ) + + CASE COUNT ( * ) WHEN + COUNT ( ALL - + 69 ) THEN - + 58 + - 51 ELSE NULL END
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1723
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( ALL + 80 ) * - 2 * + - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1723
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( ALL + 80 ) * - 2 * + - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1724
SELECT ALL - + NULLIF ( + - 79, ( - 68 ) * - 32 + CAST( NULL AS DECIMAL ) + + CASE AVG ( DISTINCT + 38 ) WHEN + - COALESCE ( 1, 34 * 30, + 53 ) / CAST( 92 * 80 - + MAX( ALL - 39 ) AS SIGNED ) + - 90 THEN 22 * - ( - ( 59 ) * - COUNT( * ) ) ELSE NULL END )
----
79

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - + NULLIF ( + - 79, ( - 68 ) * - 32 + CAST ( NULL AS REAL ) + + CASE AVG ( DISTINCT + 38 ) WHEN + - COALESCE ( 1, 34 * 30, + 53 ) / CAST ( 92 * 80 - + MAX ( ALL - 39 ) AS INTEGER ) + - 90 THEN 22 * - ( - ( 59 ) * - COUNT ( * ) ) ELSE NULL END )
----
79

query I rowsort
SELECT - 80 * + 33 + + 42 - + ( + 26 ) AS col2
----
-2624

query II rowsort
SELECT + 74, - 82 * + 38 AS col2
----
74
-3116

query II rowsort
SELECT ALL - 60, + 45 AS col2
----
-60
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT ( + 42 ) DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-1728
SELECT ( + 42 ) / + + 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1729
SELECT CAST( NULL AS SIGNED ) + - 34 + - - ( - 83 ) AS col0, 74
----
NULL
74

skipif mysql # not compatible
query II rowsort label-1729
SELECT CAST ( NULL AS INTEGER ) + - 34 + - - ( - 83 ) AS col0, 74
----
NULL
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT CASE - - 5 WHEN 15 + 83 THEN NULL WHEN + + CASE 23 WHEN + ( + - COUNT( * ) ) THEN NULL WHEN 6 / ( 25 ) + 1 / + 44 + 19 * - 0 THEN + COUNT( * ) END * + 54 + - 37 * - COUNT( * ) THEN NULL WHEN - 91 * + CAST( NULL AS SIGNED ) + - COALESCE ( - 15, - 3 ) THEN + COALESCE ( - 22, - 97 * 50 ) ELSE NULL END * + 63 - COUNT( * ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT CASE - - 5 WHEN 15 + 83 THEN NULL WHEN + + CASE 23 WHEN + ( + - COUNT ( * ) ) THEN NULL WHEN 6 / ( 25 ) + 1 / + 44 + 19 * - 0 THEN + COUNT ( * ) END * + 54 + - 37 * - COUNT ( * ) THEN NULL WHEN - 91 * + CAST ( NULL AS INTEGER ) + - COALESCE ( - 15, - 3 ) THEN + COALESCE ( - 22, - 97 * 50 ) ELSE NULL END * + 63 - COUNT ( * ) * 12
----
NULL

query I rowsort
SELECT 21 * 74
----
1554

query II rowsort
SELECT + 43 AS col2, + 16
----
43
16

query II rowsort
SELECT 68 AS col1, - 44 AS col0
----
68
-44

query I rowsort
SELECT 75 * - 31
----
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT COALESCE ( + NULLIF ( + - 30, + 12 + 66 ), + COUNT( * ) * 1 + - 65 * + 14 * ( - - 46 ) - - CASE + COUNT( * ) WHEN + 60 THEN NULL WHEN 71 THEN 82 * + CASE 67 WHEN 49 THEN 92 ELSE NULL END ELSE - 42 + CAST( 0 AS SIGNED ) END * CAST( NULL AS SIGNED ) ) * 29
----
-870

skipif mysql # not compatible
query I rowsort label-1735
SELECT COALESCE ( + NULLIF ( + - 30, + 12 + 66 ), + COUNT ( * ) * 1 + - 65 * + 14 * ( - - 46 ) - - CASE + COUNT ( * ) WHEN + 60 THEN NULL WHEN 71 THEN 82 * + CASE 67 WHEN 49 THEN 92 ELSE NULL END ELSE - 42 + CAST ( 0 AS INTEGER ) END * CAST ( NULL AS INTEGER ) ) * 29
----
-870

query I rowsort
SELECT 82 + - 31 - - - 4 AS col0
----
47

query II rowsort
SELECT ALL - 20 AS col0, ( + - 30 ) * - 80
----
-20
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT + 88 + + COUNT( - + 58 )
----
89

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT + 88 + + COUNT ( - + 58 )
----
89

query I rowsort
SELECT ALL ( 97 ) * + 70
----
6790

query I rowsort
SELECT DISTINCT - 97 AS col2
----
-97

query I rowsort
SELECT ALL + 70 + + 41
----
111

query I rowsort
SELECT DISTINCT 56 * + - ( 44 ) * + CASE + + 18 WHEN + - 39 THEN NULL ELSE + - 90 END
----
221760

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - CASE - 11 WHEN 18 THEN NULL WHEN - COALESCE ( - + 27, - 45 ) * 94 * + COUNT( * ) / + NULLIF ( 96, + 84 ) - + NULLIF ( + COALESCE ( 79, 45 ), + 82 ) + - 2 THEN NULL WHEN + 65 / + 67 + 10 THEN 91 + 94 * 26 WHEN SUM( 82 ) + - 4 THEN + 85 * 43 + - 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT - CASE - 11 WHEN 18 THEN NULL WHEN - COALESCE ( - + 27, - 45 ) * 94 * + COUNT ( * ) / + NULLIF ( 96, + 84 ) - + NULLIF ( + COALESCE ( 79, 45 ), + 82 ) + - 2 THEN NULL WHEN + 65 / + 67 + 10 THEN 91 + 94 * 26 WHEN SUM ( 82 ) + - 4 THEN + 85 * 43 + - 33 END
----
NULL

query I rowsort
SELECT + 37 * - 68 * + + CASE WHEN NULL = - 57 THEN + 46 / - - 43 END + + 93 * + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT - ( - - COUNT( - 16 ) ) + 62 * 92
----
5703

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT - ( - - COUNT ( - 16 ) ) + 62 * 92
----
5703

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

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

query I rowsort
SELECT + 95 * + + 58 * + 78 - - 48 * - 89 AS col0
----
425508

query I rowsort
SELECT - ( COALESCE ( - - 77, - 37 ) ) - 78 col1
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT 23 DIV + + 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1749
SELECT 23 / + + 4 AS col2
----
5

query I rowsort
SELECT DISTINCT + 44 col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT + COUNT( * ) - - - 8 col1
----
-7

skipif mysql # not compatible
query I rowsort label-1751
SELECT + COUNT ( * ) - - - 8 col1
----
-7

query I rowsort
SELECT 92 - - 82
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT - - NULLIF ( - 16, + - COUNT( * ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1753
SELECT - - NULLIF ( - 16, + - COUNT ( * ) ) AS col0
----
-16

query I rowsort
SELECT + 85 + 20 AS col0
----
105

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

query I rowsort
SELECT - 68 * - + 30 col1
----
2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1757
SELECT 25 + - 99 AS col2, + COALESCE ( COUNT( * ), + 53 * + 39 ) DIV 24 - - 8 + + + 79 AS col1
----
-74
87

skipif mysql # not compatible
query II rowsort label-1757
SELECT 25 + - 99 AS col2, + COALESCE ( COUNT ( * ), + 53 * + 39 ) / 24 - - 8 + + + 79 AS col1
----
-74
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT ALL SUM( 24 ) AS col0, 4 * + COUNT( * ) AS col2
----
24
4

skipif mysql # not compatible
query II rowsort label-1758
SELECT ALL SUM ( 24 ) AS col0, 4 * + COUNT ( * ) AS col2
----
24
4

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1760
SELECT 9 DIV - CAST( - - 96 AS SIGNED ) + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-1760
SELECT 9 / - CAST ( - - 96 AS INTEGER ) + - 41
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT CASE - + 67 WHEN - 46 THEN - - 56 * 46 * - 12 * + 74 + - - MIN( DISTINCT 50 ) - + COUNT( * ) WHEN - + 93 * + MAX( + 88 ) + - 32 THEN 16 * - 90 END + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT CASE - + 67 WHEN - 46 THEN - - 56 * 46 * - 12 * + 74 + - - MIN ( DISTINCT 50 ) - + COUNT ( * ) WHEN - + 93 * + MAX ( + 88 ) + - 32 THEN 16 * - 90 END + + 44
----
NULL

query I rowsort
SELECT 21 * 20 AS col2
----
420

query I rowsort
SELECT DISTINCT + 1 * 60 AS col2
----
60

query I rowsort
SELECT DISTINCT + 8
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1766
SELECT DISTINCT + 47 * 78 + - COALESCE ( 59, + + 5 * MAX( DISTINCT - 48 ) * - NULLIF ( - CASE - ( 79 ) WHEN 9 * CAST( NULL AS SIGNED ) + + 71 * COALESCE ( NULLIF ( ( NULLIF ( 89, + 39 + + 11 ) ), 29 * CASE 16 WHEN - 0 * 93 THEN NULL WHEN 67 * - 79 THEN - ( - 89 ) ELSE NULL END + + CAST( NULL AS DECIMAL ) ), 60 ) THEN + 25 ELSE 55 + COALESCE ( - 15 + 22, 20 ) END, 33 * 92 ) + COUNT( * ), - 47 * - 14 ) + - CAST( NULL AS SIGNED ) * 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT + 47 * 78 + - COALESCE ( 59, + + 5 * MAX ( DISTINCT - 48 ) * - NULLIF ( - CASE - ( 79 ) WHEN 9 * CAST ( NULL AS INTEGER ) + + 71 * COALESCE ( NULLIF ( ( NULLIF ( 89, + 39 + + 11 ) ), 29 * CASE 16 WHEN - 0 * 93 THEN NULL WHEN 67 * - 79 THEN - ( - 89 ) ELSE NULL END + + CAST ( NULL AS REAL ) ), 60 ) THEN + 25 ELSE 55 + COALESCE ( - 15 + 22, 20 ) END, 33 * 92 ) + COUNT ( * ), - 47 * - 14 ) + - CAST ( NULL AS INTEGER ) * 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL + CASE - - MAX( - ( - - 64 ) ) WHEN - + 2 THEN + 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + CASE - - MAX ( - ( - - 64 ) ) WHEN - + 2 THEN + 79 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1768
SELECT MIN( DISTINCT + 31 ) AS col1, 38 AS col2
----
31
38

skipif mysql # not compatible
query II rowsort label-1768
SELECT MIN ( DISTINCT + 31 ) AS col1, 38 AS col2
----
31
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1769
SELECT DISTINCT 66 * - 43 * + - CAST( NULL AS SIGNED ) + + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT 66 * - 43 * + - CAST ( NULL AS INTEGER ) + + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT ALL 41 * + SUM( - 81 ) * - 73 * + 15 + 78 + - 71, - 20 * 64 AS col1
----
3636502
-1280

skipif mysql # not compatible
query II rowsort label-1770
SELECT ALL 41 * + SUM ( - 81 ) * - 73 * + 15 + 78 + - 71, - 20 * 64 AS col1
----
3636502
-1280

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1772
SELECT DISTINCT COUNT( * ) * 62 + 7 + CAST( + 75 AS SIGNED )
----
144

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT COUNT ( * ) * 62 + 7 + CAST ( + 75 AS INTEGER )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT + 85 * + 87 * COUNT( * ) * + COALESCE ( - + 40, - 62 ) AS col1
----
-295800

skipif mysql # not compatible
query I rowsort label-1773
SELECT + 85 * + 87 * COUNT ( * ) * + COALESCE ( - + 40, - 62 ) AS col1
----
-295800

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT + 3 DIV + - 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1774
SELECT + 3 / + - 12 AS col1
----
0

query I rowsort
SELECT ALL + 75 * - 3 + 51 + + 55 + + + 45 * 72 * 23 AS col0
----
74401

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL + 39 * + 24 + - - ( + 12 ) DIV - + 39 + 16 * + 85
----
2296

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + 39 * + 24 + - - ( + 12 ) / - + 39 + 16 * + 85
----
2296

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

query I rowsort
SELECT ALL + - 41
----
-41

query II rowsort
SELECT DISTINCT + NULLIF ( + 81, - + 59 * - 56 / - 91 ) AS col1, 87
----
81
87

query I rowsort
SELECT + + ( 21 ) + - - ( 59 )
----
80

query I rowsort
SELECT DISTINCT + 91 * + ( - 95 ) AS col1
----
-8645

query II rowsort
SELECT + - 64 * + 78 - + 9 AS col1, 96 AS col2
----
-5001
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1783
SELECT ALL + ( 79 ) * 12 + + - 46 - - COUNT( * ) DIV + 88
----
902

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL + ( 79 ) * 12 + + - 46 - - COUNT ( * ) / + 88
----
902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT - + 47 + - - CAST( NULL AS SIGNED ) + + - 10 + + + NULLIF ( 59, 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT - + 47 + - - CAST ( NULL AS INTEGER ) + + - 10 + + + NULLIF ( 59, 49 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1785
SELECT + 56 * 31 - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT - - 72 + - COUNT( DISTINCT + 11 )
----
71

skipif mysql # not compatible
query I rowsort label-1787
SELECT - - 72 + - COUNT ( DISTINCT + 11 )
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT + + 3 * 61 * COALESCE ( + 51, - 7 ) * 47 + COUNT( * )
----
438652

skipif mysql # not compatible
query I rowsort label-1789
SELECT + + 3 * 61 * COALESCE ( + 51, - 7 ) * 47 + COUNT ( * )
----
438652

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT - 52 + - 94 DIV + ( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-1791
SELECT - 52 + - 94 / + ( 53 )
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1792
SELECT ALL - 75 / + + CAST( NULL AS DECIMAL ) * 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL - 75 / + + CAST ( NULL AS REAL ) * 54 AS col1
----
NULL

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

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

query I rowsort
SELECT - 10 * + 3 col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1795
SELECT - - 20 DIV 37 * + + NULLIF ( 2, - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1795
SELECT - - 20 / 37 * + + NULLIF ( 2, - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1796
SELECT ALL 53 DIV MAX( 82 ) AS col0, NULLIF ( - 43, - ( COUNT( * ) ) + - 44 ) AS col1
----
0
-43

skipif mysql # not compatible
query II rowsort label-1796
SELECT ALL 53 / MAX ( 82 ) AS col0, NULLIF ( - 43, - ( COUNT ( * ) ) + - 44 ) AS col1
----
0
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL SUM( - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL SUM ( - 4 ) AS col1
----
-4

query I rowsort
SELECT DISTINCT ( + + 0 ) AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1800
SELECT + 94 * + 71 * - - 37, - 11 * + COUNT( * ) AS col1
----
246938
-11

skipif mysql # not compatible
query II rowsort label-1800
SELECT + 94 * + 71 * - - 37, - 11 * + COUNT ( * ) AS col1
----
246938
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT + 11 DIV + 73 * + 71 * 83
----
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT + 11 / + 73 * + 71 * 83
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1803
SELECT 36 AS col1, 5 + + COUNT( DISTINCT 57 ) - 41 - 29 DIV + 54
----
36
-35

skipif mysql # not compatible
query II rowsort label-1803
SELECT 36 AS col1, 5 + + COUNT ( DISTINCT 57 ) - 41 - 29 / + 54
----
36
-35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT 15 DIV COALESCE ( CASE + 38 WHEN 94 + - - ( + - 52 ) THEN + 35 END, 20 ) - 87
----
-87

skipif mysql # not compatible
query I rowsort label-1805
SELECT 15 / COALESCE ( CASE + 38 WHEN 94 + - - ( + - 52 ) THEN + 35 END, 20 ) - 87
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT CAST( + + 75 AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1806
SELECT CAST ( + + 75 AS INTEGER ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT ALL COUNT( * ) DIV - - 28 + + ( + - 93 ) * 83
----
-7719

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL COUNT ( * ) / - - 28 + + ( + - 93 ) * 83
----
-7719

query I rowsort
SELECT ( - 52 ) AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT ALL 62 DIV - + 85 + - ( + + 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL 62 / - + 85 + - ( + + 78 ) AS col0
----
-78

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

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

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

query I rowsort
SELECT 16 * - + 37 - ( - - 2 ) AS col2
----
-594

query I rowsort
SELECT ALL 21 * - 60 AS col0
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-1814
SELECT - 27 + - 45 + + - 50 + + + COUNT( * ) AS col1, - 87 - 60 + 73 * - COUNT( * ) * - 70 + - COUNT( * ) * - - ( - + 20 )
----
-121
4983

skipif mysql # not compatible
query II rowsort label-1814
SELECT - 27 + - 45 + + - 50 + + + COUNT ( * ) AS col1, - 87 - 60 + 73 * - COUNT ( * ) * - 70 + - COUNT ( * ) * - - ( - + 20 )
----
-121
4983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1815
SELECT DISTINCT 31 * + COALESCE ( + - CASE - 90 WHEN - + 30 - + - 73 / 91 THEN 79 * AVG ( DISTINCT + 86 ) + - - 34 + COUNT( * ) ELSE + 43 END, + MIN( - 90 ) ) + CAST( NULL AS SIGNED ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT 31 * + COALESCE ( + - CASE - 90 WHEN - + 30 - + - 73 / 91 THEN 79 * AVG ( DISTINCT + 86 ) + - - 34 + COUNT ( * ) ELSE + 43 END, + MIN ( - 90 ) ) + CAST ( NULL AS INTEGER ) * 9
----
NULL

query I rowsort
SELECT ( 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT + CASE - + 17 WHEN + 48 THEN + 69 * - 94 / - 41 WHEN - 43 * + AVG ( DISTINCT - 52 ) THEN - + SUM( + 40 ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT + CASE - + 17 WHEN + 48 THEN + 69 * - 94 / - 41 WHEN - 43 * + AVG ( DISTINCT - 52 ) THEN - + SUM ( + 40 ) * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 62 * + - 97
----
-6014

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL COUNT( * ) * - 16 * 13 + + + 12 col2
----
-196

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL COUNT ( * ) * - 16 * 13 + + + 12 col2
----
-196

query I rowsort
SELECT ( - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT + NULLIF ( - - COUNT( * ), - + 15 + - + 48 )
----
1

skipif mysql # not compatible
query I rowsort label-1821
SELECT + NULLIF ( - - COUNT ( * ), - + 15 + - + 48 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT - + 92 DIV COALESCE ( COUNT( * ), - 62 + - - 54 ) * 77 * + 87 AS col1
----
-616308

skipif mysql # not compatible
query I rowsort label-1822
SELECT - + 92 / COALESCE ( COUNT ( * ), - 62 + - - 54 ) * 77 * + 87 AS col1
----
-616308

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT + - MIN( - - COALESCE ( 51, + 9 + + + ( - - ( + - 71 ) ) ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1823
SELECT + - MIN ( - - COALESCE ( 51, + 9 + + + ( - - ( + - 71 ) ) ) ) AS col2
----
-51

query I rowsort
SELECT ALL 32 * + + ( + 23 ) + - 95 AS col1
----
641

query I rowsort
SELECT ALL 69 * - - 85 + + 95 AS col1
----
5960

query I rowsort
SELECT ALL + + 8 col0
----
8

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

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

query I rowsort
SELECT + + COALESCE ( - + ( + 52 ), + + 49 * + - 31 ) * - 92 - + + 31 AS col1
----
4753

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT + 58 DIV 97 - - 57 * + + 11 AS col2
----
627

skipif mysql # not compatible
query I rowsort label-1830
SELECT + 58 / 97 - - 57 * + + 11 AS col2
----
627

query I rowsort
SELECT + 28 * 26 / + - ( ( + CASE - 88 WHEN - ( ( 74 ) ) + + - 55 * + 77 THEN - + 2 ELSE NULL END ) )
----
NULL

query I rowsort
SELECT + + 16 + - + 12
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - - CASE + - 19 WHEN - 23 - + + 52 THEN NULL WHEN - 50 + 9 THEN + COUNT( * ) WHEN - + 4 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT - - CASE + - 19 WHEN - 23 - + + 52 THEN NULL WHEN - 50 + 9 THEN + COUNT ( * ) WHEN - + 4 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 99 AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1835
SELECT DISTINCT COUNT( * ), + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1835
SELECT DISTINCT COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT + - 91 * - + 99
----
9009

query I rowsort
SELECT DISTINCT + 6 AS col0
----
6

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

query I rowsort
SELECT + 94 + + 74
----
168

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

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

query I rowsort
SELECT - ( 1 ) AS col2
----
-1

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

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

query I rowsort
SELECT - 76 * 30 AS col2
----
-2280

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT ( ( - 90 ) ) + + + CAST( NULL AS SIGNED ) + + 79 + - 34 * - ( 78 ) / 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT ( ( - 90 ) ) + + + CAST ( NULL AS INTEGER ) + + 79 + - 34 * - ( 78 ) / 45
----
NULL

query I rowsort
SELECT - 83 AS col1
----
-83

query II rowsort
SELECT ALL - 56 + 33 AS col1, + 78
----
-23
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1848
SELECT COUNT( * ) + + - COALESCE ( - + 93, - 72, COUNT( * ) + + 35, 64 ) AS col1, 45 AS col0
----
94
45

skipif mysql # not compatible
query II rowsort label-1848
SELECT COUNT ( * ) + + - COALESCE ( - + 93, - 72, COUNT ( * ) + + 35, 64 ) AS col1, 45 AS col0
----
94
45

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

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

query I rowsort
SELECT ALL 98 + + 81 * - 72
----
-5734

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT 57 + - MIN( ALL 16 )
----
41

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT 57 + - MIN ( ALL 16 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT 81 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-1852
SELECT 81 / + 48
----
1

query I rowsort
SELECT DISTINCT + 38 + 43
----
81

query II rowsort
SELECT ALL - 84 + - - 14 AS col2, 26 * + ( - 15 ) * + 64 * ( 12 ) col0
----
-70
-299520

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + COUNT( * ) * + 45 + + 78 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-1855
SELECT + COUNT ( * ) * + 45 + + 78 AS col1
----
123

query I rowsort
SELECT 65 * + 61
----
3965

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL - COALESCE ( COUNT( * ), + - SUM( ALL 33 ) + + 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - COALESCE ( COUNT ( * ), + - SUM ( ALL 33 ) + + 61 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1858
SELECT + ( - 47 ) DIV - + 42 + - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1858
SELECT + ( - 47 ) / - + 42 + - - COUNT ( * ) AS col1
----
2

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

skipif mysql # not compatible
query I rowsort label-1859
SELECT 74 * - - COUNT ( * )
----
74

query I rowsort
SELECT 81 + - - 1
----
82

query I rowsort
SELECT DISTINCT - - 14
----
14

query I rowsort
SELECT ALL - + 34 - + - 29 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT - 62 * - + 40 * COUNT( * ) * + 73 * - COUNT( + 92 ) * COUNT( * ) * 14
----
-2534560

skipif mysql # not compatible
query I rowsort label-1863
SELECT - 62 * - + 40 * COUNT ( * ) * + 73 * - COUNT ( + 92 ) * COUNT ( * ) * 14
----
-2534560

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT - + MIN( ALL 18 ) - - + 8 - - - 28 * + + 32 * + + COUNT( * ) AS col0
----
-906

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT - + MIN ( ALL 18 ) - - + 8 - - - 28 * + + 32 * + + COUNT ( * ) AS col0
----
-906

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL - COUNT( * ) * ( ( - CASE - 81 WHEN + + 38 + 50 THEN + 17 + - 75 * - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - COUNT ( * ) * ( ( - CASE - 81 WHEN + + 38 + 50 THEN + 17 + - 75 * - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) )
----
NULL

query I rowsort
SELECT - 29 * 20 AS col2
----
-580

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

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

query I rowsort
SELECT + 38 + + - 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT - - 92 * + MIN( DISTINCT - - 38 )
----
3496

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - - 92 * + MIN ( DISTINCT - - 38 )
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT - + 73 * - - 28 * + 30 * MAX( + + 26 ) + + COUNT( * ) AS col1
----
-1594319

skipif mysql # not compatible
query I rowsort label-1871
SELECT - + 73 * - - 28 * + 30 * MAX ( + + 26 ) + + COUNT ( * ) AS col1
----
-1594319

query I rowsort
SELECT + 21 - 1 + + 86
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT 36 * 46 + + MIN( 9 ) DIV - 47 col2
----
1656

skipif mysql # not compatible
query I rowsort label-1873
SELECT 36 * 46 + + MIN ( 9 ) / - 47 col2
----
1656

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1874
SELECT + 65 + + CASE - + 73 WHEN - 82 * COUNT( ALL 45 ) - + ( CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + 6 + + COALESCE ( 33, - + COUNT( * ), + 26 ) THEN - 56 + 42 / NULLIF ( 40 + 52 / - 77, + 54 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT + 65 + + CASE - + 73 WHEN - 82 * COUNT ( ALL 45 ) - + ( CAST ( NULL AS REAL ) ) THEN NULL WHEN + 6 + + COALESCE ( 33, - + COUNT ( * ), + 26 ) THEN - 56 + 42 / NULLIF ( 40 + 52 / - 77, + 54 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - - 4 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1876
SELECT DISTINCT + NULLIF ( + 37, - 79 * + 42 * 93 + + ( MAX( - + CAST( NULL AS SIGNED ) ) ) ) * 23, 46 * ( + ( ( - 51 ) ) ) AS col0
----
851
-2346

skipif mysql # not compatible
query II rowsort label-1876
SELECT DISTINCT + NULLIF ( + 37, - 79 * + 42 * 93 + + ( MAX ( - + CAST ( NULL AS INTEGER ) ) ) ) * 23, 46 * ( + ( ( - 51 ) ) ) AS col0
----
851
-2346

query I rowsort
SELECT - 87 + + 7
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT 16 DIV - - 47
----
0

skipif mysql # not compatible
query I rowsort label-1878
SELECT 16 / - - 47
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT DISTINCT - CAST( + 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT - CAST ( + 70 AS INTEGER ) AS col0
----
-70

query I rowsort
SELECT NULLIF ( - 70, 71 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT ALL SUM( DISTINCT - - 12 ) / + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL SUM ( DISTINCT - - 12 ) / + CAST ( NULL AS INTEGER ) col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT DISTINCT 99 DIV 10 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT 99 / 10 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT ALL 58 + + 74 + - 3 * - CAST( 0 AS SIGNED ) * - 68 + - 39 + 99 AS col1
----
192

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL 58 + + 74 + - 3 * - CAST ( 0 AS INTEGER ) * - 68 + - 39 + 99 AS col1
----
192

query I rowsort
SELECT DISTINCT 93 + + 87
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT DISTINCT 84 AS col1, + 30 * - COUNT( * )
----
84
-30

skipif mysql # not compatible
query II rowsort label-1886
SELECT DISTINCT 84 AS col1, + 30 * - COUNT ( * )
----
84
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL COUNT( * ) + - 90 col2
----
-89

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL COUNT ( * ) + - 90 col2
----
-89

query I rowsort
SELECT DISTINCT 39
----
39

query I rowsort
SELECT ALL 92 + + 96 col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT 65 - 56 + + + 65 - - 0 + - 63 + - - 84 * + 80 + - 1 * + 55 + COUNT( * ) AS col2
----
6677

skipif mysql # not compatible
query I rowsort label-1890
SELECT 65 - 56 + + + 65 - - 0 + - 63 + - - 84 * + 80 + - 1 * + 55 + COUNT ( * ) AS col2
----
6677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1891
SELECT + CASE - 64 WHEN 91 * 84 * 60 THEN COALESCE ( COUNT( * ), + 10, + + 44 ) + - NULLIF ( + 54, - CAST( NULL AS SIGNED ) - + - CASE - 79 WHEN - 40 * + 52 THEN NULL ELSE 32 * ( + 80 ) END ) DIV 18 ELSE 54 END DIV COUNT( + 19 * 91 ) - + 24 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1891
SELECT + CASE - 64 WHEN 91 * 84 * 60 THEN COALESCE ( COUNT ( * ), + 10, + + 44 ) + - NULLIF ( + 54, - CAST ( NULL AS INTEGER ) - + - CASE - 79 WHEN - 40 * + 52 THEN NULL ELSE 32 * ( + 80 ) END ) / 18 ELSE 54 END / COUNT ( + 19 * 91 ) - + 24 AS col1
----
30

query I rowsort
SELECT 84 - + 9 col1
----
75

query II rowsort
SELECT DISTINCT - 23 AS col0, 1
----
-23
1

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

query I rowsort
SELECT DISTINCT - 4 * + - ( - 32 )
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1896
SELECT ALL - - 30, 13 * - COUNT( * ) * + CASE - + CAST( NULL AS SIGNED ) WHEN - 7 THEN + 39 * 30 * - 18 WHEN ( + 87 ) * - 31 + - 97 + CASE 41 WHEN COUNT( * ) THEN - ( COUNT( * ) ) / 28 END + + 10 * - CAST( - 56 * CASE + 7 WHEN - 43 THEN + ( 24 ) WHEN + 97 + - 46 THEN 14 + 1 END AS DECIMAL ) THEN - 8 ELSE NULL END AS col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-1896
SELECT ALL - - 30, 13 * - COUNT ( * ) * + CASE - + CAST ( NULL AS INTEGER ) WHEN - 7 THEN + 39 * 30 * - 18 WHEN ( + 87 ) * - 31 + - 97 + CASE 41 WHEN COUNT ( * ) THEN - ( COUNT ( * ) ) / 28 END + + 10 * - CAST ( - 56 * CASE + 7 WHEN - 43 THEN + ( 24 ) WHEN + 97 + - 46 THEN 14 + 1 END AS REAL ) THEN - 8 ELSE NULL END AS col0
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL + - COUNT( * ) * - + ( + - 82 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL + - COUNT ( * ) * - + ( + - 82 ) col0
----
-82

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

skipif mysql # not compatible
query I rowsort label-1898
SELECT CAST ( NULL AS INTEGER ) * - - 69 AS col0
----
NULL

query I rowsort
SELECT + 96 * + - ( + + 55 )
----
-5280

query I rowsort
SELECT ALL - COALESCE ( + 16, - - 97 )
----
-16

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

query I rowsort
SELECT - - 83 * 33 * - 18 - - 17 + - 92 + - 87 * + 46 * + 1 + - 17
----
-53396

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT + 10 DIV 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1903
SELECT + 10 / 22 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT DISTINCT - 52 * + 75 / + COUNT( * ) + + - CASE + 2 WHEN - + 64 * - 28 THEN - 42 END - CAST( - + COUNT( ( 7 ) ) AS SIGNED ) + - 82 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT - 52 * + 75 / + COUNT ( * ) + + - CASE + 2 WHEN - + 64 * - 28 THEN - 42 END - CAST ( - + COUNT ( ( 7 ) ) AS INTEGER ) + - 82 * 51
----
NULL

query I rowsort
SELECT DISTINCT - 79 col2
----
-79

query I rowsort
SELECT - 63 * + 96
----
-6048

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT 27, + 98 * CASE - COALESCE ( + 56, 44 ) WHEN - 17 THEN + + CASE - COUNT( ALL 97 ) WHEN - 34 * - 26 + + MIN( ALL + 74 ) THEN + - COUNT( * ) END ELSE + 47 * - CASE MIN( ALL + ( + ( 32 ) ) ) * + 2 WHEN COUNT( * ) THEN NULL WHEN 34 THEN 26 END END * 22 AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-1907
SELECT 27, + 98 * CASE - COALESCE ( + 56, 44 ) WHEN - 17 THEN + + CASE - COUNT ( ALL 97 ) WHEN - 34 * - 26 + + MIN ( ALL + 74 ) THEN + - COUNT ( * ) END ELSE + 47 * - CASE MIN ( ALL + ( + ( 32 ) ) ) * + 2 WHEN COUNT ( * ) THEN NULL WHEN 34 THEN 26 END END * 22 AS col2
----
27
NULL

query I rowsort
SELECT ALL - 38 + - 12
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1909
SELECT ALL - CASE 66 WHEN - 63 THEN - CAST( - + 75 AS SIGNED ) WHEN + COUNT( * ) THEN - - 42 / + SUM( DISTINCT 56 ) * - 4 + + 89 + - 12 * - - 0 + + + 26 WHEN + 54 THEN ( - 35 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL - CASE 66 WHEN - 63 THEN - CAST ( - + 75 AS INTEGER ) WHEN + COUNT ( * ) THEN - - 42 / + SUM ( DISTINCT 56 ) * - 4 + + 89 + - 12 * - - 0 + + + 26 WHEN + 54 THEN ( - 35 ) ELSE NULL END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT + NULLIF ( - ( + - MAX( 35 ) ), - - 13 ), + 32 AS col2
----
35
32

skipif mysql # not compatible
query II rowsort label-1912
SELECT + NULLIF ( - ( + - MAX ( 35 ) ), - - 13 ), + 32 AS col2
----
35
32

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

skipif mysql # not compatible
query I rowsort label-1913
SELECT ( MAX ( + - 47 ) )
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ALL + 55 + + - COUNT( DISTINCT - + 67 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL + 55 + + - COUNT ( DISTINCT - + 67 ) AS col1
----
54

query I rowsort
SELECT - 64 + + 87
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT DISTINCT + CAST( + + 83 AS SIGNED ) + NULLIF ( - - COALESCE ( 67, - 16 * + COUNT( * ) + 52 + + + ( - 69 ) + - + 26 * 13 + - 81 ), 29 )
----
150

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT + CAST ( + + 83 AS INTEGER ) + NULLIF ( - - COALESCE ( 67, - 16 * + COUNT ( * ) + 52 + + + ( - 69 ) + - + 26 * 13 + - 81 ), 29 )
----
150

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

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

query I rowsort
SELECT ALL + 56 + + NULLIF ( - - 20, - 95 ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1920
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 21 * - 37 + + 48 * - + COUNT( 3 ) AS col0, + 21 + - 37 AS col1
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-1920
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 21 * - 37 + + 48 * - + COUNT ( 3 ) AS col0, + 21 + - 37 AS col1
----
NULL
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL 5 + - ( - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 5 + - ( - COUNT ( * ) )
----
6

query I rowsort
SELECT + 10 - - ( + ( - 13 ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT + CAST( - + 4 AS SIGNED ) + - 76 + 9 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1923
SELECT + CAST ( - + 4 AS INTEGER ) + - 76 + 9 AS col1
----
-71

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

skipif mysql # not compatible
query I rowsort label-1924
SELECT + CAST ( NULL AS INTEGER ) * + + 70 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1925
SELECT DISTINCT 10 DIV - NULLIF ( - + 14, - CASE + - 25 WHEN + + 74 THEN NULL WHEN - 57 THEN + CAST( - 11 AS SIGNED ) - + ( + 79 ) DIV - 2 ELSE - COUNT( * ) DIV - SUM( - 78 ) * + + 10 END * - 9 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT 10 / - NULLIF ( - + 14, - CASE + - 25 WHEN + + 74 THEN NULL WHEN - 57 THEN + CAST ( - 11 AS INTEGER ) - + ( + 79 ) / - 2 ELSE - COUNT ( * ) / - SUM ( - 78 ) * + + 10 END * - 9 + - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT - MAX( - 81 ) + - 55 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT - MAX ( - 81 ) + - 55 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( + + 39, 89 * - 62 + + 84 * + 34 + + 40 ) AS col2
----
-39

query II rowsort
SELECT 76 AS col0, + 25 col0
----
76
25

query I rowsort
SELECT ALL 45 * + - 84
----
-3780

query I rowsort
SELECT - 51 + - 5 AS col0
----
-56

query II rowsort
SELECT + 56 - + + 19 AS col1, COALESCE ( + + 34, 20 + + 99 ) AS col0
----
37
34

query I rowsort
SELECT DISTINCT NULLIF ( + 72, + 55 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL COUNT( * ) * 87
----
87

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL COUNT ( * ) * 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + COALESCE ( - 90, + + 75 ) * - - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-1934
SELECT + COALESCE ( - 90, + + 75 ) * - - COUNT ( * )
----
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT 68 - - COUNT( * ) * + 83
----
151

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT 68 - - COUNT ( * ) * + 83
----
151

query II rowsort
SELECT ALL 66 col1, 22 * + 32
----
66
704

onlyif mysql # DIV for integer division: 
query I rowsort label-1939
SELECT + + 80 + + - NULLIF ( 31, + - 71 + + 47 - + 91 ) * - 54 + + 90 + + + COALESCE ( + + 39, - + 70 + 42 ) + + - ( - 3 ) DIV 85
----
1883

skipif mysql # not compatible
query I rowsort label-1939
SELECT + + 80 + + - NULLIF ( 31, + - 71 + + 47 - + 91 ) * - 54 + + 90 + + + COALESCE ( + + 39, - + 70 + 42 ) + + - ( - 3 ) / 85
----
1883

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL + 75 * - COUNT( 52 ) + - 90 + - 90
----
-255

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + 75 * - COUNT ( 52 ) + - 90 + - 90
----
-255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1941
SELECT - + CAST( + COUNT( * ) AS SIGNED ) * + - 9 * + AVG ( 75 ) + CAST( NULL AS SIGNED ) * - - 42 * 91 / CAST( NULL AS SIGNED ) / + + COALESCE ( - 48, - + 2 + 81 ) - - 5 * + + 15 * - MIN( - 48 ) + - MAX( DISTINCT - 17 + + 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) * + - 9 * + AVG ( 75 ) + CAST ( NULL AS INTEGER ) * - - 42 * 91 / CAST ( NULL AS INTEGER ) / + + COALESCE ( - 48, - + 2 + 81 ) - - 5 * + + 15 * - MIN ( - 48 ) + - MAX ( DISTINCT - 17 + + 71 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + NULLIF ( - 1, CASE 80 WHEN + 90 * 71 * + - 67 * - + 71 THEN - 87 / + 60 END * 93 + - + 56 * + + 69 + - COUNT( + 50 ) + 29 * 5 + - 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1942
SELECT + NULLIF ( - 1, CASE 80 WHEN + 90 * 71 * + - 67 * - + 71 THEN - 87 / + 60 END * 93 + - + 56 * + + 69 + - COUNT ( + 50 ) + 29 * 5 + - 8 ) AS col2
----
-1

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

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

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

skipif mysql # not compatible
query II rowsort label-1944
SELECT + - COUNT ( * ) col1, COUNT ( * )
----
-1
1

query I rowsort
SELECT DISTINCT + + 59 AS col0
----
59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT ALL + 0 * + ( + 21 ) * - CASE + 79 WHEN + 38 + + 23 + 98 + 11 * + + CAST( NULL AS SIGNED ) THEN NULL WHEN 3 + 73 THEN + ( + + 23 ) * 85 ELSE + + 11 END + 29 + + 85 * 14 + 39 AS col2
----
1258

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL + 0 * + ( + 21 ) * - CASE + 79 WHEN + 38 + + 23 + 98 + 11 * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 3 + 73 THEN + ( + + 23 ) * 85 ELSE + + 11 END + 29 + + 85 * 14 + 39 AS col2
----
1258

query I rowsort
SELECT ALL 77 * + - 90
----
-6930

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL - 92 * 7 + COUNT( * ) * - + 87
----
-731

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - 92 * 7 + COUNT ( * ) * - + 87
----
-731

query I rowsort
SELECT ALL 62 * + 75 + + 85
----
4735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1952
SELECT ( + 11 ) * - 15 + - COUNT( * ) + + MIN( ALL + 94 ) + NULLIF ( - COALESCE ( 37, - - 96 * - 87 * - 98 ), - SUM( + 53 ) ) DIV COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-1952
SELECT ( + 11 ) * - 15 + - COUNT ( * ) + + MIN ( ALL + 94 ) + NULLIF ( - COALESCE ( 37, - - 96 * - 87 * - 98 ), - SUM ( + 53 ) ) / COUNT ( * )
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1953
SELECT ALL - 98 * + 95 * SUM( - 48 ) DIV - - COUNT( * ) AS col1
----
446880

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - 98 * + 95 * SUM ( - 48 ) / - - COUNT ( * ) AS col1
----
446880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * - 55 * - 32 + - - ( + 4 ) + MIN( + 21 ) + - 9 + - 31 * - 50 * + + 20
----
29256

skipif mysql # not compatible
query I rowsort label-1954
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * - 55 * - 32 + - - ( + 4 ) + MIN ( + 21 ) + - 9 + - 31 * - 50 * + + 20
----
29256

query I rowsort
SELECT - 96 + + 51 - 41
----
-86

query I rowsort
SELECT + 36 + + 95
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT + - COUNT( * ) * - + 29 * + 38
----
1102

skipif mysql # not compatible
query I rowsort label-1957
SELECT + - COUNT ( * ) * - + 29 * + 38
----
1102

query I rowsort
SELECT - 74 * ( 53 ) * - + 58 + 67 AS col2
----
227543

query II rowsort
SELECT DISTINCT + 97 AS col0, + 93 - + + 15 AS col0
----
97
78

query I rowsort
SELECT DISTINCT 88 * 34 col0
----
2992

query I rowsort
SELECT ALL - COALESCE ( + - COALESCE ( - 78, - - 4, + 51 ), + 91 ) * - - 44 + + 24 AS col2
----
-3408

query I rowsort
SELECT DISTINCT ( + NULLIF ( - 59, + + 34 ) ) AS col1
----
-59

query I rowsort
SELECT - 76 col1
----
-76

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1965
SELECT - ( + - 50 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT - ( + - 50 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL 3 * - 27 * - 57 - - COUNT( * ) + + CASE - CASE - - 5 WHEN + 86 THEN NULL WHEN - 73 + 34 + + COUNT( * ) THEN CAST( NULL AS SIGNED ) ELSE - COUNT( * ) END WHEN COUNT( * ) THEN NULL ELSE - - 55 END / - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL 3 * - 27 * - 57 - - COUNT ( * ) + + CASE - CASE - - 5 WHEN + 86 THEN NULL WHEN - 73 + 34 + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) END WHEN COUNT ( * ) THEN NULL ELSE - - 55 END / - 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL NULLIF ( - 14, + + ( - 80 ) + COUNT( * ) * - + 69 )
----
-14

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL NULLIF ( - 14, + + ( - 80 ) + COUNT ( * ) * - + 69 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) * + 66 + 46 - - 79 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 66 + 46 - - 79 * 82
----
NULL

query I rowsort
SELECT DISTINCT ( + 4 ) AS col0
----
4

query I rowsort
SELECT ALL + 25 * 14 AS col1
----
350

query I rowsort
SELECT - ( - 72 ) * - 8
----
-576

query I rowsort
SELECT - 81 * - + 49 AS col2
----
3969

query I rowsort
SELECT DISTINCT + 34 * + 74 * - 1 col2
----
-2516

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT DISTINCT - 8 * + COUNT( * ) AS col1, + COALESCE ( 3, + - 42 * - 79 + 38, - COUNT( * ) ) AS col0
----
-8
3

skipif mysql # not compatible
query II rowsort label-1974
SELECT DISTINCT - 8 * + COUNT ( * ) AS col1, + COALESCE ( 3, + - 42 * - 79 + 38, - COUNT ( * ) ) AS col0
----
-8
3

query II rowsort
SELECT ALL ( + + 14 ), + 80 AS col1
----
14
80

query I rowsort
SELECT + 15 + - 58 + - - 3 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - CASE 44 WHEN + 6 + - + 76 THEN 14 / - + 89 * + 95 + + + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT - CASE 44 WHEN + 6 + - + 76 THEN 14 / - + 89 * + 95 + + + COUNT ( * ) ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT + 56 * - + 4 AS col0
----
-224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1980
SELECT ALL - 54 DIV 52 + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - 54 / 52 + - COUNT ( * )
----
-2

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

skipif mysql # not compatible
query I rowsort label-1981
SELECT - 95 - + - CAST ( NULL AS INTEGER ) + - 48 AS col2
----
NULL

query I rowsort
SELECT - + 32 * + 49 AS col2
----
-1568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1983
SELECT - - COUNT( 19 ) DIV + MIN( + - 15 ) - - - 52 - - + 78
----
26

skipif mysql # not compatible
query I rowsort label-1983
SELECT - - COUNT ( 19 ) / + MIN ( + - 15 ) - - - 52 - - + 78
----
26

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1985
SELECT ALL + + 39 DIV + 13 + - 69 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL + + 39 / + 13 + - 69 AS col2
----
-66

query I rowsort
SELECT ALL + 2 * 58
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1987
SELECT ALL - 52 DIV + COALESCE ( + 92, - + 48 ) + + COUNT( - ( + 75 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - 52 / + COALESCE ( + 92, - + 48 ) + + COUNT ( - ( + 75 ) ) AS col2
----
1

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

query I rowsort
SELECT ALL ( + 85 ) + 61
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT + MIN( 20 ) * + + 76 + + + 38
----
1558

skipif mysql # not compatible
query I rowsort label-1990
SELECT + MIN ( 20 ) * + + 76 + + + 38
----
1558

query I rowsort
SELECT ALL - 75 + + + 76 AS col0
----
1

query I rowsort
SELECT ALL 21 + - - 65 + + + 51 * - 71 AS col1
----
-3535

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT DISTINCT 70 * - COUNT( * ) * - 66
----
4620

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT 70 * - COUNT ( * ) * - 66
----
4620

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT ALL 99 DIV 93 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL 99 / 93 AS col0
----
1

query I rowsort
SELECT ALL - 14 col1
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1997
SELECT ALL 69 * - + CASE - 52 WHEN - - 39 THEN + 17 WHEN + 25 THEN - + 37 * - 20 * + CAST( NULL AS DECIMAL ) END * - 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL 69 * - + CASE - 52 WHEN - - 39 THEN + 17 WHEN + 25 THEN - + 37 * - 20 * + CAST ( NULL AS REAL ) END * - 21 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT 65 + + 11 * COUNT( * ) * + 57 AS col0
----
692

skipif mysql # not compatible
query I rowsort label-1998
SELECT 65 + + 11 * COUNT ( * ) * + 57 AS col0
----
692

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT 0 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-1999
SELECT 0 / - 41
----
0

query I rowsort
SELECT DISTINCT 75 * - 33
----
-2475

query II rowsort
SELECT DISTINCT 92 * + 14 * - 29 AS col2, - 9 AS col1
----
-37352
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2002
SELECT 9 + COUNT( 1 ) DIV 57 * + COUNT( * ) col2
----
9

skipif mysql # not compatible
query I rowsort label-2002
SELECT 9 + COUNT ( 1 ) / 57 * + COUNT ( * ) col2
----
9

query I rowsort
SELECT 84 * + - 13 AS col2
----
-1092

query I rowsort
SELECT 19 + - 26
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT 25 * - CASE + 43 WHEN - 40 + + COUNT( * ) * + - 12 THEN + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT 25 * - CASE + 43 WHEN - 40 + + COUNT ( * ) * + - 12 THEN + 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL + COUNT( * ) + + - COALESCE ( + COUNT( * ), - - 40 + COUNT( * ) + - CASE + 75 WHEN 67 THEN + 80 END, 22 * - MIN( + 35 ) ) * + + SUM( - 32 )
----
33

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL + COUNT ( * ) + + - COALESCE ( + COUNT ( * ), - - 40 + COUNT ( * ) + - CASE + 75 WHEN 67 THEN + 80 END, 22 * - MIN ( + 35 ) ) * + + SUM ( - 32 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT COUNT( - 90 ) + - 85 + - 30
----
-114

skipif mysql # not compatible
query I rowsort label-2007
SELECT COUNT ( - 90 ) + - 85 + - 30
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT DISTINCT - - ( - 40 ) + - 40 + - - 69 * MAX( DISTINCT - 20 ) * 20
----
-27680

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT - - ( - 40 ) + - 40 + - - 69 * MAX ( DISTINCT - 20 ) * 20
----
-27680

query I rowsort
SELECT DISTINCT + - 70 + + + 27
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT ALL - - 7 + - 28 DIV 39 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - - 7 + - 28 / 39 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT + 73 + - + ( - - ( + 60 ) ) + - - MAX( DISTINCT - 42 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT + 73 + - + ( - - ( + 60 ) ) + - - MAX ( DISTINCT - 42 ) AS col2
----
-29

query I rowsort
SELECT 36 + - 62 AS col2
----
-26

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

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

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

query I rowsort
SELECT ALL - - 15 + ( - + 91 ) * + 33 * + - 76 + + - NULLIF ( + 15, - 76 )
----
228228

query I rowsort
SELECT ALL + + 28 + + + 29 * + 56 AS col1
----
1652

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2018
SELECT - 94 DIV + 48 + + 21, COUNT( * ) AS col1
----
20
1

skipif mysql # not compatible
query II rowsort label-2018
SELECT - 94 / + 48 + + 21, COUNT ( * ) AS col1
----
20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2019
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) - 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) - 30 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ALL - COUNT( * ) * 74
----
-74

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - COUNT ( * ) * 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT + COUNT( * ) + - NULLIF ( + 35, + 66 )
----
-34

skipif mysql # not compatible
query I rowsort label-2021
SELECT + COUNT ( * ) + - NULLIF ( + 35, + 66 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT ALL + - 98 DIV - - 68
----
-1

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + - 98 / - - 68
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT DISTINCT CASE WHEN ( 80 ) < NULL THEN + - CAST( - COUNT( * ) AS SIGNED ) ELSE NULL END - CASE - 22 WHEN - COUNT( * ) + + COUNT( 65 ) THEN 84 ELSE NULL END * + - 15 * CAST( NULL AS SIGNED ) * - - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT CASE WHEN ( 80 ) < NULL THEN + - CAST ( - COUNT ( * ) AS INTEGER ) ELSE NULL END - CASE - 22 WHEN - COUNT ( * ) + + COUNT ( 65 ) THEN 84 ELSE NULL END * + - 15 * CAST ( NULL AS INTEGER ) * - - 63 AS col0
----
NULL

query I rowsort
SELECT ALL 84 * - 11 AS col2
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL - MIN( ALL - 95 ) - - 72 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - MIN ( ALL - 95 ) - - 72 AS col2
----
167

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

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

query I rowsort
SELECT DISTINCT - 43 * + - 56 * 66 AS col0
----
158928

query I rowsort
SELECT DISTINCT - 17
----
-17

query I rowsort
SELECT ALL 93 * - ( - 19 )
----
1767

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

query I rowsort
SELECT ( - 52 ) + - - 57 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ( - 35 ) + CASE + 63 WHEN COUNT( * ) THEN NULL WHEN - 57 THEN NULL WHEN - NULLIF ( - + NULLIF ( + ( - + SUM( DISTINCT + 93 ) ), + 42 ), + 82 + + 18 ) + - ( + 37 ) - + COALESCE ( 7, + COUNT( * ) ) THEN COUNT( * ) END + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT ( - 35 ) + CASE + 63 WHEN COUNT ( * ) THEN NULL WHEN - 57 THEN NULL WHEN - NULLIF ( - + NULLIF ( + ( - + SUM ( DISTINCT + 93 ) ), + 42 ), + 82 + + 18 ) + - ( + 37 ) - + COALESCE ( 7, + COUNT ( * ) ) THEN COUNT ( * ) END + 91
----
NULL

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

query I rowsort
SELECT ALL - 25 * 9
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT DISTINCT 45 DIV + + 66
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT 45 / + + 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT COALESCE ( + 81, + 88 * + 1, + - 28 ) * 44 * + 43 - + - CAST( NULL AS SIGNED ) + - - 26 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT COALESCE ( + 81, + 88 * + 1, + - 28 ) * 44 * + 43 - + - CAST ( NULL AS INTEGER ) + - - 26 * 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL SUM( DISTINCT + 81 ) + + COUNT( DISTINCT - 90 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL SUM ( DISTINCT + 81 ) + + COUNT ( DISTINCT - 90 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT - MAX( DISTINCT 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-2039
SELECT - MAX ( DISTINCT 35 ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT COUNT( * ) * + 29 * - 74 AS col0
----
-2146

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT COUNT ( * ) * + 29 * - 74 AS col0
----
-2146

query II rowsort
SELECT ALL 73 * - 33, - 78 * + 46 AS col1
----
-2409
-3588

query I rowsort
SELECT ALL NULLIF ( - 96, + 59 ) + - + 73 AS col0
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2043
SELECT ALL COUNT( * ) + + 53 * - CAST( NULL AS SIGNED ) + - 65, + COUNT( * ) + - ( - 36 ) AS col2, 44 * - 0 + - 74 AS col2
----
NULL
37
-74

skipif mysql # not compatible
query III rowsort label-2043
SELECT ALL COUNT ( * ) + + 53 * - CAST ( NULL AS INTEGER ) + - 65, + COUNT ( * ) + - ( - 36 ) AS col2, 44 * - 0 + - 74 AS col2
----
NULL
37
-74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT ALL 60 + + 28 * - - ( + - COALESCE ( COALESCE ( COALESCE ( + + 25, - - 40 + - CASE - + COALESCE ( ( 57 ), 34 DIV 92 + + 96 + + ( + 93 ) ) WHEN + 5 + + + 28 THEN NULL WHEN - 3 * - 84 THEN - 98 END ), + 29 DIV - 40 ), - 11 ) ) + 50 AS col2
----
-590

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL 60 + + 28 * - - ( + - COALESCE ( COALESCE ( COALESCE ( + + 25, - - 40 + - CASE - + COALESCE ( ( 57 ), 34 / 92 + + 96 + + ( + 93 ) ) WHEN + 5 + + + 28 THEN NULL WHEN - 3 * - 84 THEN - 98 END ), + 29 / - 40 ), - 11 ) ) + 50 AS col2
----
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT - NULLIF ( + - COUNT( * ), - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), - 85 ) AS col1
----
1

query I rowsort
SELECT 61 + + 84 * - 36 AS col0
----
-2963

query I rowsort
SELECT - - 92 AS col1
----
92

query I rowsort
SELECT - - 75 + - 82 - - 90 + 43
----
126

query II rowsort
SELECT DISTINCT - 69 + + + 51 AS col2, 62 AS col2
----
-18
62

query I rowsort
SELECT ALL + + 76 + - + 62 AS col1
----
14

query I rowsort
SELECT CASE - - 54 WHEN 72 THEN + - 88 WHEN - + 83 - - - 28 THEN NULL WHEN - - 11 * + 74 THEN 78 * + 1 + - + 33 ELSE 73 END
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT - - 25 * + 25 * MAX( DISTINCT 44 ), ( 32 ) AS col1
----
27500
32

skipif mysql # not compatible
query II rowsort label-2053
SELECT - - 25 * + 25 * MAX ( DISTINCT 44 ), ( 32 ) AS col1
----
27500
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL - 19 * - MAX( + NULLIF ( + - 91, + + 29 ) ) + + 83 AS col1
----
-1646

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - 19 * - MAX ( + NULLIF ( + - 91, + + 29 ) ) + + 83 AS col1
----
-1646

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT - - 81 + + - CAST( - 32 AS SIGNED )
----
113

skipif mysql # not compatible
query I rowsort label-2056
SELECT - - 81 + + - CAST ( - 32 AS INTEGER )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL + COUNT( - 84 ) * + + 7
----
7

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + COUNT ( - 84 ) * + + 7
----
7

query I rowsort
SELECT - 29 * + 49 * - 63 AS col2
----
89523

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL + + ( 13 ) * + - COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + + ( 13 ) * + - COUNT ( * ) AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * 27 + 54 + + COUNT( * ) - + ( - 72 ) * 77 / - ( 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * 27 + 54 + + COUNT ( * ) - + ( - 72 ) * 77 / - ( 24 ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT + + 21 AS col0
----
21

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

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

query I rowsort
SELECT - + 98 * + 69 AS col0
----
-6762

query I rowsort
SELECT ALL + COALESCE ( + 44, - 46 ) AS col2
----
44

query II rowsort
SELECT NULLIF ( 62, - 60 / + + 81 + COALESCE ( 70, + 23 ) * 92 + + - 81 + - 91 + 20 + + 10 * 71 ), - 92 col0
----
62
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2067
SELECT - NULLIF ( 72, - 46 + - COUNT( * ) ) DIV + 24, + 81 - - 16 + - + 81 AS col2, + + 87 AS col1
----
-3
16
87

skipif mysql # not compatible
query III rowsort label-2067
SELECT - NULLIF ( 72, - 46 + - COUNT ( * ) ) / + 24, + 81 - - 16 + - + 81 AS col2, + + 87 AS col1
----
-3
16
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT + 40 DIV 20 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2068
SELECT + 40 / 20 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT ALL + 66 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + 66 / + 46
----
1

query I rowsort
SELECT ALL + COALESCE ( 29, ( - 95 ) ) AS col2
----
29

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT - CAST( NULL AS SIGNED ) / 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT - CAST ( NULL AS INTEGER ) / 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT MIN( + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-2074
SELECT MIN ( + 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT + 65 * + NULLIF ( + + 71, - COUNT( * ) * ( + - 82 ) / 51 * + 70 * - 58 ) + COUNT( * ) + 14 AS col0
----
4630

skipif mysql # not compatible
query I rowsort label-2075
SELECT + 65 * + NULLIF ( + + 71, - COUNT ( * ) * ( + - 82 ) / 51 * + 70 * - 58 ) + COUNT ( * ) + 14 AS col0
----
4630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2076
SELECT ALL + 54 * + 30 * + COALESCE ( + COUNT( * ), COUNT( * ) ) * 49 + - + CAST( - 66 AS SIGNED ) + 68 + - 5 + - ( + 42 ) DIV 79 * + MAX( DISTINCT - ( - ( - + 3 ) ) ) + - 3 + - - 52 * 42 + 68 col2
----
81758

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL + 54 * + 30 * + COALESCE ( + COUNT ( * ), COUNT ( * ) ) * 49 + - + CAST ( - 66 AS INTEGER ) + 68 + - 5 + - ( + 42 ) / 79 * + MAX ( DISTINCT - ( - ( - + 3 ) ) ) + - 3 + - - 52 * 42 + 68 col2
----
81758

query I rowsort
SELECT + 50 * 71
----
3550

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT - CASE + 49 WHEN - 47 THEN NULL WHEN + 11 THEN NULL WHEN + + 70 THEN 64 * + + ( + COUNT( * ) ) + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT - CASE + 49 WHEN - 47 THEN NULL WHEN + 11 THEN NULL WHEN + + 70 THEN 64 * + + ( + COUNT ( * ) ) + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2079
SELECT ALL 32 + + 62 + + CAST( - ( + + 1 ) AS SIGNED ) DIV 53 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL 32 + + 62 + + CAST ( - ( + + 1 ) AS INTEGER ) / 53 AS col2
----
94

query I rowsort
SELECT - 38 + - 86 + 3 + - 26 col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL - 31 + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - 31 + COUNT ( * )
----
-30

query I rowsort
SELECT DISTINCT + 77 * + COALESCE ( + + 0, - + 5 * - ( + 42 ) + + 12, - - 64 ) * + 16 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT ALL ( CAST( - + 99 AS SIGNED ) ) + - 56 col2
----
-155

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL ( CAST ( - + 99 AS INTEGER ) ) + - 56 col2
----
-155

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL - - 36 + - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL - - 36 + - COUNT ( * ) AS col0
----
35

query I rowsort
SELECT DISTINCT NULLIF ( - 74, - 50 ) col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT - - 26 DIV - 16
----
-1

skipif mysql # not compatible
query I rowsort label-2087
SELECT - - 26 / - 16
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT ALL + 15 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL + 15 / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - + COUNT( * ) * + COALESCE ( + - 2, + COALESCE ( - - COALESCE ( - 3, 19 ), + 24 * - 86, 93 ) * + 45 * - - 21 + 80 + - - 20 )
----
2

skipif mysql # not compatible
query I rowsort label-2090
SELECT - + COUNT ( * ) * + COALESCE ( + - 2, + COALESCE ( - - COALESCE ( - 3, 19 ), + 24 * - 86, 93 ) * + 45 * - - 21 + 80 + - - 20 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT - - CASE 14 WHEN COUNT( + - 40 ) * + ( 38 ) THEN NULL WHEN - - 1 * 24 THEN COUNT( * ) * 90 * - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT - - CASE 14 WHEN COUNT ( + - 40 ) * + ( 38 ) THEN NULL WHEN - - 1 * 24 THEN COUNT ( * ) * 90 * - 97 END
----
NULL

query I rowsort
SELECT + - 45 + 31 - - 42
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2093
SELECT ALL - ( - - COUNT( * ) ) - - 44 AS col2, 88 AS col2
----
43
88

skipif mysql # not compatible
query II rowsort label-2093
SELECT ALL - ( - - COUNT ( * ) ) - - 44 AS col2, 88 AS col2
----
43
88

query I rowsort
SELECT - - 7 AS col2
----
7

query I rowsort
SELECT + + 71 + + 88
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-2096
SELECT + SUM( 6 ) + + + 10 AS col1, 13 * + 74 * + 27 - 42
----
16
25932

skipif mysql # not compatible
query II rowsort label-2096
SELECT + SUM ( 6 ) + + + 10 AS col1, 13 * + 74 * + 27 - 42
----
16
25932

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL COUNT( * ) * + 34 * + SUM( + ( + NULLIF ( + - 73, - 72 ) ) )
----
-2482

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL COUNT ( * ) * + 34 * + SUM ( + ( + NULLIF ( + - 73, - 72 ) ) )
----
-2482

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2100
SELECT DISTINCT - 38 * CAST( NULL AS SIGNED ) + - ( + - MIN( - + 53 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT - 38 * CAST ( NULL AS INTEGER ) + - ( + - MIN ( - + 53 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT DISTINCT - 32 - CAST( - 99 AS SIGNED ) + + 9
----
76

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT - 32 - CAST ( - 99 AS INTEGER ) + + 9
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT + COUNT( * ) + - 9 + + 73 + + CASE + - 24 WHEN 78 THEN + ( + 66 ) * + COUNT( * ) + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT + COUNT ( * ) + - 9 + + 73 + + CASE + - 24 WHEN 78 THEN + ( + 66 ) * + COUNT ( * ) + 71 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT + - 93 * 84 * - + COUNT( * ) * - - 32 * 27, 40 AS col0
----
6749568
40

skipif mysql # not compatible
query II rowsort label-2104
SELECT + - 93 * 84 * - + COUNT ( * ) * - - 32 * 27, 40 AS col0
----
6749568
40

query I rowsort
SELECT ALL ( 41 ) AS col1
----
41

query I rowsort
SELECT ALL 88 * 12 AS col2
----
1056

query I rowsort
SELECT + + 8 + + + 37
----
45

query I rowsort
SELECT - - COALESCE ( 99, - ( - + 14 ) + - 84 ) AS col2
----
99

query I rowsort
SELECT - - 44 + - 84 * - 30
----
2564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2110
SELECT + COUNT( DISTINCT - 45 ) * - + 35 + 46 + + + 56 - + - COUNT( * ) * 7 + - - 22 * - 71 * + 97, - AVG ( + - 28 ) * - CAST( NULL AS SIGNED ) AS col0
----
-151440
NULL

skipif mysql # not compatible
query II rowsort label-2110
SELECT + COUNT ( DISTINCT - 45 ) * - + 35 + 46 + + + 56 - + - COUNT ( * ) * 7 + - - 22 * - 71 * + 97, - AVG ( + - 28 ) * - CAST ( NULL AS INTEGER ) AS col0
----
-151440
NULL

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

query I rowsort
SELECT + + 58 * + 19 + + + COALESCE ( - + 59, - - ( + 19 ), 0 ) + - 83 + + - 25 - 71 * - 49 + 97 + + 5 * - 92 / + CASE + 28 WHEN + 87 THEN + 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2113
SELECT - MIN( ALL - NULLIF ( - 39, 24 * + CAST( NULL AS SIGNED ) ) ) * - COALESCE ( + 79, - NULLIF ( COUNT( * ), + 3 ) * + 41 + + CASE - - 14 WHEN - 45 THEN NULL ELSE - COUNT( * ) END * - COUNT( * ) * + 54 + - 73 + + CAST( NULL AS SIGNED ) ) AS col0
----
3081

skipif mysql # not compatible
query I rowsort label-2113
SELECT - MIN ( ALL - NULLIF ( - 39, 24 * + CAST ( NULL AS INTEGER ) ) ) * - COALESCE ( + 79, - NULLIF ( COUNT ( * ), + 3 ) * + 41 + + CASE - - 14 WHEN - 45 THEN NULL ELSE - COUNT ( * ) END * - COUNT ( * ) * + 54 + - 73 + + CAST ( NULL AS INTEGER ) ) AS col0
----
3081

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2117
SELECT DISTINCT + 46 AS col2, COUNT( * ) - + NULLIF ( - 99, 38 ) + 77 * - 70 AS col2
----
46
-5290

skipif mysql # not compatible
query II rowsort label-2117
SELECT DISTINCT + 46 AS col2, COUNT ( * ) - + NULLIF ( - 99, 38 ) + 77 * - 70 AS col2
----
46
-5290

query I rowsort
SELECT ALL + 62 * - 73 * + 77
----
-348502

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT 52 * + SUM( DISTINCT + 31 )
----
1612

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT 52 * + SUM ( DISTINCT + 31 )
----
1612

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2121
SELECT DISTINCT COALESCE ( + 2, - - 9 ) DIV - 96 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT COALESCE ( + 2, - - 9 ) / - 96 + - COUNT ( * )
----
-1

query I rowsort
SELECT + ( - + 42 ) * + 18 col0
----
-756

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

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

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

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

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

query II rowsort
SELECT + 93 AS col2, 43 * + + 58 + - 41 AS col1
----
93
2453

query I rowsort
SELECT - 51 + ( ( - NULLIF ( 32, 26 - + + 2 ) ) ) + + 88
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - SUM( 56 ) + - 51 - 52 * - ( 44 ) AS col2
----
2181

skipif mysql # not compatible
query I rowsort label-2129
SELECT - SUM ( 56 ) + - 51 - 52 * - ( 44 ) AS col2
----
2181

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + NULLIF ( 6, - COUNT( ALL + + 90 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2130
SELECT + NULLIF ( 6, - COUNT ( ALL + + 90 ) ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL + MAX( ALL - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL + MAX ( ALL - 75 ) AS col1
----
-75

query I rowsort
SELECT - 39 * + 37 * 47 AS col1
----
-67821

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT DISTINCT + SUM( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + SUM ( DISTINCT - 1 )
----
-1

query I rowsort
SELECT ALL - 94 * + ( - 14 ) + 78
----
1394

query I rowsort
SELECT DISTINCT 44 * - + 63 AS col0
----
-2772

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2137
SELECT - - 42 AS col1, + MIN( DISTINCT + + 38 ) + - 31
----
42
7

skipif mysql # not compatible
query II rowsort label-2137
SELECT - - 42 AS col1, + MIN ( DISTINCT + + 38 ) + - 31
----
42
7

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

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

query II rowsort
SELECT + 56 AS col0, 58
----
56
58

query I rowsort
SELECT 76 * - 75 + - 64 AS col1
----
-5764

query II rowsort
SELECT ALL 17 col0, 53 AS col0
----
17
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT - 28, COUNT( + - 28 ) AS col1
----
-28
1

skipif mysql # not compatible
query II rowsort label-2142
SELECT - 28, COUNT ( + - 28 ) AS col1
----
-28
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2143
SELECT - SUM( ALL + 48 ) AS col2, SUM( DISTINCT - - 25 )
----
-48
25

skipif mysql # not compatible
query II rowsort label-2143
SELECT - SUM ( ALL + 48 ) AS col2, SUM ( DISTINCT - - 25 )
----
-48
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2144
SELECT ALL + - 4 - - + 46 AS col1, + COUNT( * ) AS col1
----
42
1

skipif mysql # not compatible
query II rowsort label-2144
SELECT ALL + - 4 - - + 46 AS col1, + COUNT ( * ) AS col1
----
42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT + 84 * + 73 * + 82 * - 6 + - COUNT( + 66 ) AS col0
----
-3016945

skipif mysql # not compatible
query I rowsort label-2145
SELECT + 84 * + 73 * + 82 * - 6 + - COUNT ( + 66 ) AS col0
----
-3016945

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL + 28 - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + 28 - COUNT ( * ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2147
SELECT DISTINCT 33 DIV - + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT 33 / - + 68 AS col2
----
0

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

skipif mysql # not compatible
query II rowsort label-2148
SELECT ALL - ( - 13 ), COUNT ( * ) AS col2
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT 91 - COUNT( * ) + + 81 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-2149
SELECT 91 - COUNT ( * ) + + 81 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - 51 * ( 11 ) * + + 44 * - + COUNT( * ) - + 93 AS col0
----
24591

skipif mysql # not compatible
query I rowsort label-2150
SELECT - 51 * ( 11 ) * + + 44 * - + COUNT ( * ) - + 93 AS col0
----
24591

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

query I rowsort
SELECT ALL - 81 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT - 13 AS col1, 12 + + + COUNT( * ) + - 28
----
-13
-15

skipif mysql # not compatible
query II rowsort label-2153
SELECT - 13 AS col1, 12 + + + COUNT ( * ) + - 28
----
-13
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT 14 DIV - 32 * + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT 14 / - 32 * + 57 AS col0
----
0

query I rowsort
SELECT ALL + 76 * COALESCE ( - 85, + 42, + 16 ) + - - 24 + - + ( - - 92 ) * + 23 AS col2
----
-8552

query II rowsort
SELECT ALL 75 AS col1, - 39 AS col2
----
75
-39

query I rowsort
SELECT - 91 + 60 + + 79
----
48

query I rowsort
SELECT - + 47
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT 78 + CAST( - ( - 17 ) AS SIGNED ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2159
SELECT 78 + CAST ( - ( - 17 ) AS INTEGER ) AS col2
----
95

query II rowsort
SELECT ALL 17 * + 46 col0, 87
----
782
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL 35 + - + 89 * - + SUM( 11 ) * + NULLIF ( + 31, - + 39 * - COUNT( * ) * 17 + ( 55 ) ) - 63 + + 6 + 43
----
30370

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL 35 + - + 89 * - + SUM ( 11 ) * + NULLIF ( + 31, - + 39 * - COUNT ( * ) * 17 + ( 55 ) ) - 63 + + 6 + 43
----
30370

onlyif mysql # aggregate syntax: 
query II rowsort label-2162
SELECT ALL - COUNT( DISTINCT + 55 ) AS col0, 88 AS col2
----
-1
88

skipif mysql # not compatible
query II rowsort label-2162
SELECT ALL - COUNT ( DISTINCT + 55 ) AS col0, 88 AS col2
----
-1
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2163
SELECT DISTINCT 58 DIV + COUNT( * ) AS col0, 10 AS col1
----
58
10

skipif mysql # not compatible
query II rowsort label-2163
SELECT DISTINCT 58 / + COUNT ( * ) AS col0, 10 AS col1
----
58
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2164
SELECT ALL COALESCE ( 90, 70, + 20 ) + - - 58 DIV + - 79 + - 0 * - SUM( - - 36 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL COALESCE ( 90, 70, + 20 ) + - - 58 / + - 79 + - 0 * - SUM ( - - 36 ) AS col1
----
90

query I rowsort
SELECT DISTINCT 28 + - 29
----
-1

query I rowsort
SELECT DISTINCT 4 + - 82
----
-78

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

query II rowsort
SELECT ALL 57 + - 87 AS col2, + 47 * + 18 col2
----
-30
846

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

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

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

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

query I rowsort
SELECT ALL 21 + 34 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2172
SELECT ALL - CAST( NULL AS SIGNED ) * + + MAX( 1 ) AS col1, + CASE + 51 WHEN + 75 THEN NULL WHEN + COUNT( * ) * + 98 * 5 * - CAST( NULL AS SIGNED ) THEN + - 68 * + 35 - + 59 * + 89 + 4 * - + COUNT( * ) ELSE NULLIF ( + 39, - + 76 * - 11 * + 14 ) END AS col0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-2172
SELECT ALL - CAST ( NULL AS INTEGER ) * + + MAX ( 1 ) AS col1, + CASE + 51 WHEN + 75 THEN NULL WHEN + COUNT ( * ) * + 98 * 5 * - CAST ( NULL AS INTEGER ) THEN + - 68 * + 35 - + 59 * + 89 + 4 * - + COUNT ( * ) ELSE NULLIF ( + 39, - + 76 * - 11 * + 14 ) END AS col0
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL - 4 - SUM( - 42 ) + - 16
----
22

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - 4 - SUM ( - 42 ) + - 16
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2174
SELECT 35 - 47 AS col2, + 70 DIV COUNT( * ) AS col1
----
-12
70

skipif mysql # not compatible
query II rowsort label-2174
SELECT 35 - 47 AS col2, + 70 / COUNT ( * ) AS col1
----
-12
70

query I rowsort
SELECT ALL 15 * 55
----
825

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2176
SELECT - 23 + + - CAST( + 40 AS SIGNED ) AS col2, 61 col2
----
-63
61

skipif mysql # not compatible
query II rowsort label-2176
SELECT - 23 + + - CAST ( + 40 AS INTEGER ) AS col2, 61 col2
----
-63
61

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

query I rowsort
SELECT DISTINCT - + 72 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT 36 + + - 75 + - COALESCE ( + - MIN( NULLIF ( - + 45, - 30 ) ), 90 )
----
-84

skipif mysql # not compatible
query I rowsort label-2179
SELECT 36 + + - 75 + - COALESCE ( + - MIN ( NULLIF ( - + 45, - 30 ) ), 90 )
----
-84

query II rowsort
SELECT 67 * - + 16, + 15 AS col1
----
-1072
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + + ( + COALESCE ( - 7, + 93 * - 51 * - + 34 * - 79 * + 83 * 47, + 7 ) ) * - + ( + + COALESCE ( + - 88, ( - COUNT( * ) ) - - - 48 ) ) + - 63
----
-679

skipif mysql # not compatible
query I rowsort label-2181
SELECT + + ( + COALESCE ( - 7, + 93 * - 51 * - + 34 * - 79 * + 83 * 47, + 7 ) ) * - + ( + + COALESCE ( + - 88, ( - COUNT ( * ) ) - - - 48 ) ) + - 63
----
-679

query I rowsort
SELECT - 82 * + 98 AS col2
----
-8036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2183
SELECT COUNT( * ) + - CAST( CAST( 38 AS SIGNED ) AS SIGNED ) DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-2183
SELECT COUNT ( * ) + - CAST ( CAST ( 38 AS INTEGER ) AS INTEGER ) / 57
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2184
SELECT ALL - - 81 * COUNT( * ) AS col0, 81 * 82 * 62 AS col0
----
81
411804

skipif mysql # not compatible
query II rowsort label-2184
SELECT ALL - - 81 * COUNT ( * ) AS col0, 81 * 82 * 62 AS col0
----
81
411804

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT 59 + + 61 DIV + 3 + - 48 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2185
SELECT 59 + + 61 / + 3 + - 48 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL - - CASE - - COUNT( * ) WHEN + 64 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 76 + - 59 THEN + SUM( DISTINCT - 45 ) ELSE - + 71 END * 1 * 55
----
-3905

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - - CASE - - COUNT ( * ) WHEN + 64 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 76 + - 59 THEN + SUM ( DISTINCT - 45 ) ELSE - + 71 END * 1 * 55
----
-3905

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT COUNT( * ) / + 33 + + CASE + + 99 WHEN 71 THEN + 57 + - + 80 WHEN - + CASE 53 WHEN - 23 * + 58 + - 32 THEN + 46 / 9 ELSE NULL END + 88 THEN + 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT COUNT ( * ) / + 33 + + CASE + + 99 WHEN 71 THEN + 57 + - + 80 WHEN - + CASE 53 WHEN - 23 * + 58 + - 32 THEN + 46 / 9 ELSE NULL END + 88 THEN + 63 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2188
SELECT 6 + + - COUNT( * ) AS col1, 29 + - 96
----
5
-67

skipif mysql # not compatible
query II rowsort label-2188
SELECT 6 + + - COUNT ( * ) AS col1, 29 + - 96
----
5
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT COUNT( * ) * 18 + + CASE - + 74 WHEN - 96 THEN NULL ELSE - 78 END AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2189
SELECT COUNT ( * ) * 18 + + CASE - + 74 WHEN - 96 THEN NULL ELSE - 78 END AS col2
----
-60

query I rowsort
SELECT DISTINCT + + ( + 91 ) * + + 90 + + 59 AS col1
----
8249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2191
SELECT - - COALESCE ( + + 23, COUNT( * ), 42 * COUNT( * ) * 84 DIV - + CAST( - CASE 9 WHEN + - MAX( DISTINCT 79 ) THEN + 22 END AS SIGNED ) * + - 82 * 13 DIV 99 + + + 69 * CAST( NULL AS SIGNED ) )
----
23

skipif mysql # not compatible
query I rowsort label-2191
SELECT - - COALESCE ( + + 23, COUNT ( * ), 42 * COUNT ( * ) * 84 / - + CAST ( - CASE 9 WHEN + - MAX ( DISTINCT 79 ) THEN + 22 END AS INTEGER ) * + - 82 * 13 / 99 + + + 69 * CAST ( NULL AS INTEGER ) )
----
23

query I rowsort
SELECT 98 + NULLIF ( - - ( + 20 ), 82 ) AS col2
----
118

query I rowsort
SELECT ALL - - 85 * + 40 AS col2
----
3400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2194
SELECT CAST( NULL AS SIGNED ) * + 65 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT CAST ( NULL AS INTEGER ) * + 65 + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 97 + 16 - - 53
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL - 80 + - COUNT( * ) - - + 28 + + 30 * - 19
----
-623

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL - 80 + - COUNT ( * ) - - + 28 + + 30 * - 19
----
-623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2197
SELECT DISTINCT 66 col1, + 3 / - - CASE + 17 WHEN 88 THEN NULL WHEN + 19 + 95 THEN - 47 / + 1 ELSE + + 22 * + CASE - 89 WHEN CASE 38 WHEN + 88 THEN NULL WHEN COUNT( * ) THEN COUNT( * ) * + + 13 + ( 86 ) + 27 + - NULLIF ( + - 96, - COUNT( + 60 ) + - COUNT( * ) ) - + 5 * + ( 27 * 97 + + 65 ) END THEN CAST( NULL AS SIGNED ) WHEN + 40 / - 47 + - 49 THEN NULL END + - CAST( NULL AS SIGNED ) / CASE 31 WHEN + COUNT( * ) * 66 + 46 THEN - 42 * COUNT( * ) ELSE NULL END END + 14 * CAST( NULL AS SIGNED ) AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-2197
SELECT DISTINCT 66 col1, + 3 / - - CASE + 17 WHEN 88 THEN NULL WHEN + 19 + 95 THEN - 47 / + 1 ELSE + + 22 * + CASE - 89 WHEN CASE 38 WHEN + 88 THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) * + + 13 + ( 86 ) + 27 + - NULLIF ( + - 96, - COUNT ( + 60 ) + - COUNT ( * ) ) - + 5 * + ( 27 * 97 + + 65 ) END THEN CAST ( NULL AS INTEGER ) WHEN + 40 / - 47 + - 49 THEN NULL END + - CAST ( NULL AS INTEGER ) / CASE 31 WHEN + COUNT ( * ) * 66 + 46 THEN - 42 * COUNT ( * ) ELSE NULL END END + 14 * CAST ( NULL AS INTEGER ) AS col0
----
66
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT 13 + + COUNT( * ) * 88 + + 9 col1
----
110

skipif mysql # not compatible
query I rowsort label-2200
SELECT 13 + + COUNT ( * ) * 88 + + 9 col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2201
SELECT ALL - COUNT( * ) DIV NULLIF ( - 59, - - 76 + - 72 DIV 37 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - COUNT ( * ) / NULLIF ( - 59, - - 76 + - 72 / 37 + - CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT + 26 AS col1, 66 AS col0
----
26
66

query II rowsort
SELECT ALL + 21 * - 46 + - 29 AS col0, - 38 + + - 76 col2
----
-995
-114

query I rowsort
SELECT ALL - 64 col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT - 90 / + CAST( NULL AS SIGNED ) * - 37 + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT - 90 / + CAST ( NULL AS INTEGER ) * - 37 + + 94
----
NULL

query I rowsort
SELECT 3 * 21 AS col1
----
63

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

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

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

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

query I rowsort
SELECT DISTINCT + 11 * 47 - 68
----
449

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT ALL COALESCE ( 7, 29 * + COUNT( * ) + + - 8 + - COUNT( * ), - 72 DIV + SUM( DISTINCT - 41 ) ) DIV - + 69
----
0

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL COALESCE ( 7, 29 * + COUNT ( * ) + + - 8 + - COUNT ( * ), - 72 / + SUM ( DISTINCT - 41 ) ) / - + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - 46 * - - MIN( + + 50 ) + - 3 AS col0
----
-2303

skipif mysql # not compatible
query I rowsort label-2212
SELECT - 46 * - - MIN ( + + 50 ) + - 3 AS col0
----
-2303

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

query I rowsort
SELECT + 32 * + 69 AS col0
----
2208

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

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

query I rowsort
SELECT - 0 + + 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL - 3 * + CASE MAX( ALL 61 ) WHEN + 8 * - COUNT( * ) THEN NULL ELSE - - 61 * - 88 END AS col2
----
16104

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - 3 * + CASE MAX ( ALL 61 ) WHEN + 8 * - COUNT ( * ) THEN NULL ELSE - - 61 * - 88 END AS col2
----
16104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2219
SELECT + 57 * - CAST( NULL AS SIGNED ) * + 88 * 10 * + ( + + 30 ) AS col2, - 40 + + - 66 + + 93 + 43 - - 23 * - 31 AS col0
----
NULL
-683

skipif mysql # not compatible
query II rowsort label-2219
SELECT + 57 * - CAST ( NULL AS INTEGER ) * + 88 * 10 * + ( + + 30 ) AS col2, - 40 + + - 66 + + 93 + 43 - - 23 * - 31 AS col0
----
NULL
-683

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT + + 97 AS col0, + COUNT( * ) + 18 + + COUNT( * )
----
97
20

skipif mysql # not compatible
query II rowsort label-2221
SELECT + + 97 AS col0, + COUNT ( * ) + 18 + + COUNT ( * )
----
97
20

query I rowsort
SELECT DISTINCT - 59 * - 17 + - + 30 + - 1 AS col0
----
972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT - - COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2223
SELECT - - COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT COUNT( ALL - 76 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2224
SELECT COUNT ( ALL - 76 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2225
SELECT - COUNT( * ) AS col2, + SUM( 0 ) AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-2225
SELECT - COUNT ( * ) AS col2, + SUM ( 0 ) AS col1
----
-1
0

query I rowsort
SELECT + - 45 - 7
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT + + MIN( ALL + - 77 ) * + - NULLIF ( 51, COUNT( * ) )
----
3927

skipif mysql # not compatible
query I rowsort label-2227
SELECT + + MIN ( ALL + - 77 ) * + - NULLIF ( 51, COUNT ( * ) )
----
3927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT ALL - MAX( ALL + 48 ) DIV + 48 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - MAX ( ALL + 48 ) / + 48 col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT - 69 DIV - 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2229
SELECT - 69 / - 50 AS col0
----
1

query I rowsort
SELECT DISTINCT 38 + + + 57
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2231
SELECT - CASE 78 WHEN + CASE + 46 WHEN - ( + 59 ) THEN - 82 * - - 53 ELSE NULL END * - - 28 - CASE + CAST( + 5 AS SIGNED ) WHEN + + MAX( 64 ) THEN NULL WHEN + - COUNT( * ) / + 23 - + COUNT( * ) THEN + - COUNT( * ) + 53 / + 6 * + CAST( 28 AS DECIMAL ) END THEN 41 / 52 WHEN 76 * + 19 THEN + 79 END / NULLIF ( 99, - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT - CASE 78 WHEN + CASE + 46 WHEN - ( + 59 ) THEN - 82 * - - 53 ELSE NULL END * - - 28 - CASE + CAST ( + 5 AS INTEGER ) WHEN + + MAX ( 64 ) THEN NULL WHEN + - COUNT ( * ) / + 23 - + COUNT ( * ) THEN + - COUNT ( * ) + 53 / + 6 * + CAST ( 28 AS REAL ) END THEN 41 / 52 WHEN 76 * + 19 THEN + 79 END / NULLIF ( 99, - 78 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2232
SELECT ALL 56 + - COALESCE ( - 11, - 36 + + 71 + - CAST( NULL AS SIGNED ) DIV - 40, + 92 - + 94 + MIN( ALL - 49 ) + - - 86 )
----
67

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL 56 + - COALESCE ( - 11, - 36 + + 71 + - CAST ( NULL AS INTEGER ) / - 40, + 92 - + 94 + MIN ( ALL - 49 ) + - - 86 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2233
SELECT ALL + + COUNT( * ) + - CAST( NULL AS SIGNED ) / + 98 * + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 98 * + + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL - NULLIF ( - + 62, + MAX( - 22 ) / - 2 + 17 + + - COUNT( * ) / + 80 ) + + + COUNT( DISTINCT - + 67 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL - NULLIF ( - + 62, + MAX ( - 22 ) / - 2 + 17 + + - COUNT ( * ) / + 80 ) + + + COUNT ( DISTINCT - + 67 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT - 82 - - - CAST( + + 0 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-2235
SELECT - 82 - - - CAST ( + + 0 AS INTEGER )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT - 99 + COUNT( DISTINCT + NULLIF ( + 78, + 71 - - 29 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2236
SELECT - 99 + COUNT ( DISTINCT + NULLIF ( + 78, + 71 - - 29 ) ) AS col2
----
-98

query I rowsort
SELECT 3 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL + 85 - - MAX( DISTINCT + 54 )
----
139

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + 85 - - MAX ( DISTINCT + 54 )
----
139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL CASE + AVG ( DISTINCT 18 ) WHEN - 37 THEN - ( 56 ) ELSE - 23 + + - COUNT( * ) END AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL CASE + AVG ( DISTINCT 18 ) WHEN - 37 THEN - ( 56 ) ELSE - 23 + + - COUNT ( * ) END AS col2
----
-24

query I rowsort
SELECT DISTINCT + 86 col1
----
86

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2243
SELECT ALL + SUM( - 52 ) AS col0, - CAST( 14 AS SIGNED ) AS col2
----
-52
-14

skipif mysql # not compatible
query II rowsort label-2243
SELECT ALL + SUM ( - 52 ) AS col0, - CAST ( 14 AS INTEGER ) AS col2
----
-52
-14

query I rowsort
SELECT ( - - 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2245
SELECT + COALESCE ( + 30, 61 * COUNT( * ) - - + 49 DIV - 75, 43 DIV + SUM( - + 73 ) - + CASE - + CAST( 83 AS SIGNED ) WHEN + + 67 THEN NULL ELSE + - COUNT( * ) END )
----
30

skipif mysql # not compatible
query I rowsort label-2245
SELECT + COALESCE ( + 30, 61 * COUNT ( * ) - - + 49 / - 75, 43 / + SUM ( - + 73 ) - + CASE - + CAST ( 83 AS INTEGER ) WHEN + + 67 THEN NULL ELSE + - COUNT ( * ) END )
----
30

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

query II rowsort
SELECT - 32 * + 48 AS col1, - 18
----
-1536
-18

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

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

query I rowsort
SELECT - 50 - - + 97
----
47

query I rowsort
SELECT DISTINCT 61 * - + 19 * + + 91 AS col2
----
-105469

query I rowsort
SELECT ALL 58 * 74
----
4292

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

query I rowsort
SELECT + 41 * 90 * + 41
----
151290

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

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

query I rowsort
SELECT DISTINCT + 4 * - + 10 AS col0
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2256
SELECT + - AVG ( DISTINCT 69 ) * - ( - 43 ) + - 65 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT + - AVG ( DISTINCT 69 ) * - ( - 43 ) + - 65 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT + + 91 * + CAST( 61 AS SIGNED )
----
5551

skipif mysql # not compatible
query I rowsort label-2258
SELECT + + 91 * + CAST ( 61 AS INTEGER )
----
5551

query I rowsort
SELECT 75 * + 77 + + 69 - - 80 AS col2
----
5924

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - NULLIF ( + + CASE 26 WHEN 24 + - + ( - 76 ) - + ( - 44 ) / 31 THEN NULL WHEN 78 * 77 + + CASE 47 WHEN + + 56 + + 81 - - 46 + + - 6 + - + SUM( 42 ) THEN NULL WHEN - 2 THEN + 55 * - 12 END THEN - COUNT( * ) ELSE NULL END, - 38 * 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT - NULLIF ( + + CASE 26 WHEN 24 + - + ( - 76 ) - + ( - 44 ) / 31 THEN NULL WHEN 78 * 77 + + CASE 47 WHEN + + 56 + + 81 - - 46 + + - 6 + - + SUM ( 42 ) THEN NULL WHEN - 2 THEN + 55 * - 12 END THEN - COUNT ( * ) ELSE NULL END, - 38 * 5 ) AS col0
----
NULL

query I rowsort
SELECT + 44 + 57
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL 35 * + 95 * + COUNT( * ) * + 81 + COUNT( ALL - 70 ) + - + 48 AS col0
----
269278

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL 35 * + 95 * + COUNT ( * ) * + 81 + COUNT ( ALL - 70 ) + - + 48 AS col0
----
269278

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL 18 * - + 95 + + NULLIF ( MIN( + 92 ), + COUNT( * ) ) + - 46 + 77 * - SUM( - 60 ) AS col2
----
2956

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL 18 * - + 95 + + NULLIF ( MIN ( + 92 ), + COUNT ( * ) ) + - 46 + 77 * - SUM ( - 60 ) AS col2
----
2956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2264
SELECT ALL - 14 * + CAST( + + 86 AS SIGNED ) + - + ( - COUNT( * ) ) + - 64 + - + 51 + - 56 * + 22 * - COUNT( * ) * + + ( + 19 )
----
22090

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - 14 * + CAST ( + + 86 AS INTEGER ) + - + ( - COUNT ( * ) ) + - 64 + - + 51 + - 56 * + 22 * - COUNT ( * ) * + + ( + 19 )
----
22090

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

query I rowsort
SELECT ALL + 64 + 43 AS col1
----
107

query I rowsort
SELECT ALL - 53 * - NULLIF ( - - 82, - 43 * + - 57 ) col1
----
4346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2268
SELECT - + 84 + 11 col0, + CAST( - MAX( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) * + 94 - - 28 / 72
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-2268
SELECT - + 84 + 11 col0, + CAST ( - MAX ( + CAST ( NULL AS INTEGER ) ) AS REAL ) * + 94 - - 28 / 72
----
-73
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT - 34 + COALESCE ( + 4, - + MIN( ALL - + ( + 1 ) ) ) * + + CASE - SUM( - 52 ) WHEN COUNT( * ) THEN NULL WHEN + - ( + - 50 ) THEN + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT - 34 + COALESCE ( + 4, - + MIN ( ALL - + ( + 1 ) ) ) * + + CASE - SUM ( - 52 ) WHEN COUNT ( * ) THEN NULL WHEN + - ( + - 50 ) THEN + 17 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL COUNT( * ) - - - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL COUNT ( * ) - - - 36 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - 16 * CASE - - 15 WHEN - 2 THEN - - 83 * + + 5 + + COUNT( * ) WHEN + - COUNT( * ) / 10 THEN + - 77 ELSE NULL END / - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT - 16 * CASE - - 15 WHEN - 2 THEN - - 83 * + + 5 + + COUNT ( * ) WHEN + - COUNT ( * ) / 10 THEN + - 77 ELSE NULL END / - 47 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 72 * - 35
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2275
SELECT ALL - CAST( NULL AS SIGNED ) - + - 13 * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - CAST ( NULL AS INTEGER ) - + - 13 * + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 35 AS col2
----
35

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

skipif mysql # not compatible
query I rowsort label-2277
SELECT 38 / - + 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT ALL + CASE + 33 WHEN 73 + + 61 THEN + 36 * + 90 * - 21 WHEN 63 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL END / ( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL + CASE + 33 WHEN 73 + + 61 THEN + 36 * + 90 * - 21 WHEN 63 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL END / ( 80 )
----
NULL

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

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

query I rowsort
SELECT 44 + 86
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT + CAST( 88 AS SIGNED ) * 44 AS col0
----
3872

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + CAST ( 88 AS INTEGER ) * 44 AS col0
----
3872

query I rowsort
SELECT ALL - ( - - 11 ) * - - 8 * - 74 + + 99 AS col2
----
6611

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT 10 DIV 29 + + - 23 col1
----
-23

skipif mysql # not compatible
query I rowsort label-2285
SELECT 10 / 29 + + - 23 col1
----
-23

query I rowsort
SELECT 37 - + 61 AS col2
----
-24

query I rowsort
SELECT 44 + - 51 AS col1
----
-7

query I rowsort
SELECT ALL + 10 * - - 67 col0
----
670

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT + 35 + + MAX( DISTINCT + 54 ) + 73 col2
----
162

skipif mysql # not compatible
query I rowsort label-2290
SELECT + 35 + + MAX ( DISTINCT + 54 ) + 73 col2
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-2291
SELECT 34 * + 62 + - 47 DIV - COALESCE ( 99, - - 29, 41 ) col0
----
2108

skipif mysql # not compatible
query I rowsort label-2291
SELECT 34 * + 62 + - 47 / - COALESCE ( 99, - - 29, 41 ) col0
----
2108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2292
SELECT ALL + 75 + MIN( + ( + + CAST( - 37 AS SIGNED ) ) ) AS col1, 45
----
38
45

skipif mysql # not compatible
query II rowsort label-2292
SELECT ALL + 75 + MIN ( + ( + + CAST ( - 37 AS INTEGER ) ) ) AS col1, 45
----
38
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2293
SELECT + - COUNT( * ) * - COUNT( * ) * + 80 DIV 90 + + 43 DIV 29 * 17 - + 2 * + + 33 * + 85 - - COUNT( * )
----
-5592

skipif mysql # not compatible
query I rowsort label-2293
SELECT + - COUNT ( * ) * - COUNT ( * ) * + 80 / 90 + + 43 / 29 * 17 - + 2 * + + 33 * + 85 - - COUNT ( * )
----
-5592

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + COUNT( ALL - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2294
SELECT + COUNT ( ALL - 61 ) AS col2
----
1

query I rowsort
SELECT ALL - NULLIF ( + 81, 17 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2296
SELECT ALL - + 58 + 57 * 37 * + COUNT( * ) * + 92 + + 55 + + 26 DIV COUNT( * )
----
194051

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL - + 58 + 57 * 37 * + COUNT ( * ) * + 92 + + 55 + + 26 / COUNT ( * )
----
194051

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

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

query I rowsort
SELECT - 75 + 77 + + + ( + 68 ) + - 89 AS col1
----
-19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2300
SELECT DISTINCT + - COALESCE ( - - 13, + - CAST( ( - COUNT( * ) ) AS SIGNED ) + - 80 ) * + 77 AS col1
----
-1001

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT + - COALESCE ( - - 13, + - CAST ( ( - COUNT ( * ) ) AS INTEGER ) + - 80 ) * + 77 AS col1
----
-1001

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2301
SELECT + 10 AS col2, - 23 * CASE + NULLIF ( + + 1, - - 9 + - - 83 ) WHEN - - ( - - 55 ) THEN CASE + - 35 WHEN - - 92 THEN + COALESCE ( 96, + ( + + 41 ) * 24 + + ( COUNT( * ) ) + 22 + - - ( - 52 ) ) WHEN + ( 73 ) * 45 DIV 86 THEN 83 DIV - 42 END ELSE - 37 END * 82 col0
----
10
69782

skipif mysql # not compatible
query II rowsort label-2301
SELECT + 10 AS col2, - 23 * CASE + NULLIF ( + + 1, - - 9 + - - 83 ) WHEN - - ( - - 55 ) THEN CASE + - 35 WHEN - - 92 THEN + COALESCE ( 96, + ( + + 41 ) * 24 + + ( COUNT ( * ) ) + 22 + - - ( - 52 ) ) WHEN + ( 73 ) * 45 / 86 THEN 83 / - 42 END ELSE - 37 END * 82 col0
----
10
69782

query I rowsort
SELECT ALL - + 68
----
-68

query I rowsort
SELECT ALL + + 78 + - - 82 + + + 27 * + - 89 col1
----
-2243

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

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

query II rowsort
SELECT + 10 AS col2, 4
----
10
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT + 8 DIV + + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2307
SELECT + 8 / + + 48 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2308
SELECT - 17 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - 91 * + 46 - COUNT( * ) AS col2
----
-4187

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 91 * + 46 - COUNT ( * ) AS col2
----
-4187

query I rowsort
SELECT ALL 61 - - COALESCE ( - 75, + 56 ) col1
----
-14

query I rowsort
SELECT ALL 13 AS col1
----
13

query II rowsort
SELECT ALL 68 AS col1, - 51 + 46 + + - 5
----
68
-10

query II rowsort
SELECT DISTINCT 73 AS col0, COALESCE ( 26, - + 52 )
----
73
26

query II rowsort
SELECT 74 AS col1, + 79
----
74
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT ALL CAST( - - 96 AS SIGNED ) - - - ( 19 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL CAST ( - - 96 AS INTEGER ) - - - ( 19 ) AS col1
----
77

query I rowsort
SELECT 2 + - 5
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT COUNT( * ) - - - 12 * - COALESCE ( + 42, + COUNT( * ) * COUNT( * ) + + - 70, 88 ) col0
----
505

skipif mysql # not compatible
query I rowsort label-2317
SELECT COUNT ( * ) - - - 12 * - COALESCE ( + 42, + COUNT ( * ) * COUNT ( * ) + + - 70, 88 ) col0
----
505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2318
SELECT COUNT( * ) + - COALESCE ( COUNT( * ), - + CAST( CASE + 18 WHEN - 41 THEN + + 48 END AS SIGNED ), + 11 * + - 78 * - - 33 DIV + 80 ) - + 85 DIV - 34 * - COUNT( * ) + 22 * - COUNT( DISTINCT + 18 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2318
SELECT COUNT ( * ) + - COALESCE ( COUNT ( * ), - + CAST ( CASE + 18 WHEN - 41 THEN + + 48 END AS INTEGER ), + 11 * + - 78 * - - 33 / + 80 ) - + 85 / - 34 * - COUNT ( * ) + 22 * - COUNT ( DISTINCT + 18 ) AS col2
----
-24

query II rowsort
SELECT DISTINCT 36 AS col1, - 19
----
36
-19

query I rowsort
SELECT 54 * - 59 AS col0
----
-3186

onlyif mysql # aggregate syntax: 
query II rowsort label-2321
SELECT ALL 42 AS col0, + 34 + + 81 + - - 28 + - COUNT( + 44 ) * + 70 * + + ( - 18 ) AS col2
----
42
1403

skipif mysql # not compatible
query II rowsort label-2321
SELECT ALL 42 AS col0, + 34 + + 81 + - - 28 + - COUNT ( + 44 ) * + 70 * + + ( - 18 ) AS col2
----
42
1403

query I rowsort
SELECT DISTINCT 94 col2
----
94

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

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

query I rowsort
SELECT 44 * + 39
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT DISTINCT - 42 DIV - 2 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT - 42 / - 2 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT DISTINCT - 86 AS col0, 97 * COUNT( * )
----
-86
97

skipif mysql # not compatible
query II rowsort label-2326
SELECT DISTINCT - 86 AS col0, 97 * COUNT ( * )
----
-86
97

query I rowsort
SELECT ALL - 24 * - 82 AS col0
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - COUNT( * ) * - - 40 col1
----
-40

skipif mysql # not compatible
query I rowsort label-2328
SELECT - COUNT ( * ) * - - 40 col1
----
-40

query I rowsort
SELECT - 76 * - 68 AS col1
----
5168

query I rowsort
SELECT 80 * 5 AS col1
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT - 60 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT - 60 / + 69
----
0

query I rowsort
SELECT + 99 - 25 + + 12 * - - 57 * + - 57
----
-38914

query I rowsort
SELECT ALL + - 43 + - 48
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT ALL + 52 + - CASE + SUM( + CAST( NULL AS SIGNED ) ) WHEN + 47 THEN NULL ELSE + 67 END AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL + 52 + - CASE + SUM ( + CAST ( NULL AS INTEGER ) ) WHEN + 47 THEN NULL ELSE + 67 END AS col2
----
-15

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2336
SELECT ALL + - CAST( NULL AS SIGNED ) + 23 AS col1, + 97 - - 55 AS col0
----
NULL
152

skipif mysql # not compatible
query II rowsort label-2336
SELECT ALL + - CAST ( NULL AS INTEGER ) + 23 AS col1, + 97 - - 55 AS col0
----
NULL
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + - COUNT( * ) * + 15 - - - 83 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2337
SELECT + - COUNT ( * ) * + 15 - - - 83 AS col2
----
-98

query II rowsort
SELECT ALL - - 23, - 25 AS col1
----
23
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2339
SELECT CAST( NULL AS DECIMAL ) * - - 33 + - COALESCE ( + 99, + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT CAST ( NULL AS REAL ) * - - 33 + - COALESCE ( + 99, + 88 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2340
SELECT 29 - + CAST( - - COUNT( * ) AS SIGNED ) col1
----
28

skipif mysql # not compatible
query I rowsort label-2340
SELECT 29 - + CAST ( - - COUNT ( * ) AS INTEGER ) col1
----
28

query I rowsort
SELECT - 76 - - 29 + 70 * - 39 + NULLIF ( - - 96, + ( + - 42 ) ) col2
----
-2681

query I rowsort
SELECT ALL - 37 - - + 98 * + 62
----
6039

query II rowsort
SELECT - 39 AS col2, - 60 - - 1 AS col0
----
-39
-59

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

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

query I rowsort
SELECT NULLIF ( - 90, + 79 ) + + 78 + - NULLIF ( + - 34, + 94 ) + 84
----
106

query I rowsort
SELECT ALL - 87 * + + 31 AS col0
----
-2697

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

query I rowsort
SELECT ALL 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL + COUNT( * ) * + 12 * - 58
----
-696

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + COUNT ( * ) * + 12 * - 58
----
-696

query I rowsort
SELECT - 81 * - + ( + 86 ) AS col0
----
6966

query I rowsort
SELECT - 39 * - 77 AS col0
----
3003

query I rowsort
SELECT + 45 + + 64
----
109

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2353
SELECT - 57 DIV + CAST( 88 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2353
SELECT - 57 / + CAST ( 88 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2354
SELECT + 63 DIV + - COUNT( * ) AS col0, 16 AS col2
----
-63
16

skipif mysql # not compatible
query II rowsort label-2354
SELECT + 63 / + - COUNT ( * ) AS col0, 16 AS col2
----
-63
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2355
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + + MIN( DISTINCT + 6 ) + + - COALESCE ( + - 38, + 46, 72 * CAST( NULL AS DECIMAL ) ) ) + CAST( ( + 37 ) AS SIGNED ) * - 9 + - SUM( DISTINCT 75 ) * + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + + MIN ( DISTINCT + 6 ) + + - COALESCE ( + - 38, + 46, 72 * CAST ( NULL AS REAL ) ) ) + CAST ( ( + 37 ) AS INTEGER ) * - 9 + - SUM ( DISTINCT 75 ) * + 5 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT - MIN( DISTINCT + 43 ) + COUNT( ALL - + 73 )
----
-42

skipif mysql # not compatible
query I rowsort label-2357
SELECT - MIN ( DISTINCT + 43 ) + COUNT ( ALL - + 73 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2358
SELECT DISTINCT + COUNT( * ) + - + 36 AS col0, + 4
----
-35
4

skipif mysql # not compatible
query II rowsort label-2358
SELECT DISTINCT + COUNT ( * ) + - + 36 AS col0, + 4
----
-35
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT 80 + 93 * + COUNT( * ) AS col1
----
173

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT 80 + 93 * + COUNT ( * ) AS col1
----
173

query I rowsort
SELECT ALL 97 * + + 87
----
8439

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT - MIN( 32 ) AS col1, 57 + - 28 * - - 13
----
-32
-307

skipif mysql # not compatible
query II rowsort label-2361
SELECT - MIN ( 32 ) AS col1, 57 + - 28 * - - 13
----
-32
-307

query I rowsort
SELECT ALL 9 + + + 98 AS col1
----
107

query I rowsort
SELECT ALL 73 + 72 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT - 91 + NULLIF ( - 81, 23 * + CASE ( - + COUNT( * ) ) WHEN - COUNT( * ) THEN AVG ( + 57 ) END + - 49 ) * COALESCE ( + + 52, - 43 * - 99 ) + + + 1 col2
----
-4302

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 91 + NULLIF ( - 81, 23 * + CASE ( - + COUNT ( * ) ) WHEN - COUNT ( * ) THEN AVG ( + 57 ) END + - 49 ) * COALESCE ( + + 52, - 43 * - 99 ) + + + 1 col2
----
-4302

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + MIN( ALL - 33 ) + 96 col2
----
63

skipif mysql # not compatible
query I rowsort label-2365
SELECT + MIN ( ALL - 33 ) + 96 col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2366
SELECT DISTINCT 2 + - 80 AS col1, - 99 * - COALESCE ( - 94, - + 98 - + CAST( + CAST( - 50 AS SIGNED ) AS SIGNED ) * - 2, + COUNT( * ) )
----
-78
-9306

skipif mysql # not compatible
query II rowsort label-2366
SELECT DISTINCT 2 + - 80 AS col1, - 99 * - COALESCE ( - 94, - + 98 - + CAST ( + CAST ( - 50 AS INTEGER ) AS INTEGER ) * - 2, + COUNT ( * ) )
----
-78
-9306

query I rowsort
SELECT DISTINCT 9 * - 25 * + 74 + + 44 AS col1
----
-16606

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + + CASE - 86 WHEN - - 51 THEN - - 15 * - 79 * 37 + - 24 WHEN + 52 THEN NULL WHEN 3 THEN + 20 ELSE NULL END * + COUNT( * ) + - + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT + + CASE - 86 WHEN - - 51 THEN - - 15 * - 79 * 37 + - 24 WHEN + 52 THEN NULL WHEN 3 THEN + 20 ELSE NULL END * + COUNT ( * ) + - + 75 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT 87 DIV + 31 + - - 79 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2369
SELECT 87 / + 31 + - - 79 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL + ( COUNT( * ) ) * - + ( - - 85 ) + - COALESCE ( + 1, + - 71 )
----
-86

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL + ( COUNT ( * ) ) * - + ( - - 85 ) + - COALESCE ( + 1, + - 71 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + NULLIF ( - + 81, + + 58 ) + + - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-2371
SELECT + NULLIF ( - + 81, + + 58 ) + + - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2372
SELECT ALL - COUNT( * ) DIV + 22 * 96
----
0

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL - COUNT ( * ) / + 22 * 96
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2374
SELECT + COUNT( * ) + + + MIN( + 49 ) + - + 69 - + MIN( + 50 ) * + CAST( NULL AS SIGNED ) * - - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT + COUNT ( * ) + + + MIN ( + 49 ) + - + 69 - + MIN ( + 50 ) * + CAST ( NULL AS INTEGER ) * - - 82 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 78 * + 98 * + 89
----
680316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2376
SELECT ALL 98 * 13 DIV - - COUNT( DISTINCT - + 96 ) - + 21 * 9 + - 64 * + + 70
----
-3395

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL 98 * 13 / - - COUNT ( DISTINCT - + 96 ) - + 21 * 9 + - 64 * + + 70
----
-3395

query I rowsort
SELECT - + 71 + + 62 col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT + CASE - 50 WHEN + CAST( NULL AS SIGNED ) THEN 41 * + + NULLIF ( 94, - 83 ) / + + 78 * CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT + CASE - 50 WHEN + CAST ( NULL AS INTEGER ) THEN 41 * + + NULLIF ( 94, - 83 ) / + + 78 * CAST ( NULL AS INTEGER ) END AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2380
SELECT - 82 * - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT DISTINCT - 47 * + + 41 * + COUNT( * ) / + 73 * CASE 12 WHEN + 3 THEN + + 1 + - - 92 ELSE NULL END + 25 + - ( + 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT - 47 * + + 41 * + COUNT ( * ) / + 73 * CASE 12 WHEN + 3 THEN + + 1 + - - 92 ELSE NULL END + 25 + - ( + 68 ) AS col1
----
NULL

query I rowsort
SELECT - 17 * 33
----
-561

query I rowsort
SELECT DISTINCT 23 * 23 AS col0
----
529

query I rowsort
SELECT + 63 + - NULLIF ( - 20, 86 * + - 35 * - 5 ) AS col0
----
83

query I rowsort
SELECT ALL COALESCE ( - 52, + NULLIF ( + 83, 64 ), 59 )
----
-52

query I rowsort
SELECT + 81 * + 54 AS col2
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT SUM( + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-2387
SELECT SUM ( + 63 ) AS col0
----
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT - 33 - + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2389
SELECT - 33 - + COUNT ( * ) AS col0
----
-34

query II rowsort
SELECT ALL + 96 + + - ( 36 ) AS col2, - 1 - 96
----
60
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT - 86 * - 26 * + 38 * CAST( + 26 AS SIGNED ) AS col1
----
2209168

skipif mysql # not compatible
query I rowsort label-2392
SELECT - 86 * - 26 * + 38 * CAST ( + 26 AS INTEGER ) AS col1
----
2209168

query I rowsort
SELECT ALL - 23 * + 78
----
-1794

query II rowsort
SELECT ALL + ( + + 78 ) + + + 90 AS col2, 11 AS col2
----
168
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT - MIN( DISTINCT - ( + - 90 ) ) * - + 45 AS col2
----
4050

skipif mysql # not compatible
query I rowsort label-2395
SELECT - MIN ( DISTINCT - ( + - 90 ) ) * - + 45 AS col2
----
4050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2396
SELECT - 50 + CAST( 22 AS SIGNED ) - - - 75 * + 92 AS col0
----
-6928

skipif mysql # not compatible
query I rowsort label-2396
SELECT - 50 + CAST ( 22 AS INTEGER ) - - - 75 * + 92 AS col0
----
-6928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2397
SELECT + SUM( ALL + - 94 ) - ( + 15 ) + + 76 DIV + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-2397
SELECT + SUM ( ALL + - 94 ) - ( + 15 ) + + 76 / + + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT + CASE + - 74 WHEN - COUNT( * ) THEN - 57 * 50 * 94 / 68 * - 43 ELSE NULL END / - ( + + 85 ) * - 73, 47 * - 27 * + 81 + + + 94 AS col2
----
NULL
-102695

skipif mysql # not compatible
query II rowsort label-2398
SELECT + CASE + - 74 WHEN - COUNT ( * ) THEN - 57 * 50 * 94 / 68 * - 43 ELSE NULL END / - ( + + 85 ) * - 73, 47 * - 27 * + 81 + + + 94 AS col2
----
NULL
-102695

query I rowsort
SELECT + 32 - + 69 * + - 53 * + - 17
----
-62137

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

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT CAST ( + + 80 AS INTEGER ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT - - COALESCE ( 56, - SUM( 72 ) * CASE + CAST( NULL AS SIGNED ) WHEN + AVG ( DISTINCT 79 ) THEN NULL ELSE - 41 END + - 87, + - 10, - NULLIF ( + 94, - + COUNT( * ) / - 75 ) + - 88 ) * 66 AS col0
----
3696

skipif mysql # not compatible
query I rowsort label-2401
SELECT - - COALESCE ( 56, - SUM ( 72 ) * CASE + CAST ( NULL AS INTEGER ) WHEN + AVG ( DISTINCT 79 ) THEN NULL ELSE - 41 END + - 87, + - 10, - NULLIF ( + 94, - + COUNT ( * ) / - 75 ) + - 88 ) * 66 AS col0
----
3696

query II rowsort
SELECT ALL 66 AS col1, + 92 AS col0
----
66
92

query I rowsort
SELECT - 78 AS col1
----
-78

query II rowsort
SELECT DISTINCT - 71 AS col2, 52
----
-71
52

query I rowsort
SELECT DISTINCT + 30 - + 21
----
9

query I rowsort
SELECT DISTINCT + 14 * + 48 AS col0
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2407
SELECT + 22 * + - AVG ( CAST( NULL AS SIGNED ) ), + 83 * + + COALESCE ( + COUNT( * ), + - ( - 68 ) * 37 + 68 DIV + CAST( 4 AS SIGNED ) * - CASE + ( 35 ) WHEN 59 THEN ( 18 ) * + 20 ELSE NULL END, 87 DIV + 26 ) AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-2407
SELECT + 22 * + - AVG ( CAST ( NULL AS INTEGER ) ), + 83 * + + COALESCE ( + COUNT ( * ), + - ( - 68 ) * 37 + 68 / + CAST ( 4 AS INTEGER ) * - CASE + ( 35 ) WHEN 59 THEN ( 18 ) * + 20 ELSE NULL END, 87 / + 26 ) AS col1
----
NULL
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2408
SELECT CASE + ( - - 35 ) WHEN 80 THEN - + CAST( NULL AS SIGNED ) / AVG ( - - 86 ) + COUNT( * ) + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT CASE + ( - - 35 ) WHEN 80 THEN - + CAST ( NULL AS INTEGER ) / AVG ( - - 86 ) + COUNT ( * ) + 16 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT ALL 59 DIV + ( - 61 ) - + 38 * + 30 AS col2
----
-1140

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL 59 / + ( - 61 ) - + 38 * + 30 AS col2
----
-1140

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

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

query I rowsort
SELECT ALL 27 * 41 + + - 96
----
1011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2412
SELECT ALL SUM( 26 ) * - + 15 * CAST( NULL AS SIGNED ) * + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL SUM ( 26 ) * - + 15 * CAST ( NULL AS INTEGER ) * + 10 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 27 ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT ALL - 54 DIV + - NULLIF ( + - 66, + + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL - 54 / + - NULLIF ( + - 66, + + 94 )
----
0

query I rowsort
SELECT NULLIF ( + 36, - 46 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT DISTINCT - - 12, - 39 * + 62 * + + COUNT( 68 ) AS col1
----
12
-2418

skipif mysql # not compatible
query II rowsort label-2416
SELECT DISTINCT - - 12, - 39 * + 62 * + + COUNT ( 68 ) AS col1
----
12
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT 63 * + + 70 + - COUNT( * )
----
4409

skipif mysql # not compatible
query I rowsort label-2417
SELECT 63 * + + 70 + - COUNT ( * )
----
4409

query I rowsort
SELECT 48 + + + 70
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT 57 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT 57 / - 60
----
0

query I rowsort
SELECT ALL ( - 30 ) + + 35 + - - 23 col2
----
28

query I rowsort
SELECT ( 24 ) + 3
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT ALL - 64 + + COUNT( * ) + - - CAST( + + 98 AS SIGNED ) + + + 45
----
80

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - 64 + + COUNT ( * ) + - - CAST ( + + 98 AS INTEGER ) + + + 45
----
80

query I rowsort
SELECT 37 + 76 - + 97 AS col1
----
16

query I rowsort
SELECT ALL + 92 + - 41 * COALESCE ( + + 68, + 75 ) * 29 + 77
----
-80683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT 57 + CASE - 44 WHEN - 20 THEN + + COUNT( * ) WHEN + + 40 / CAST( NULL AS SIGNED ) + - COUNT( - 19 ) - - 53 * + 27 THEN NULL END - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT 57 + CASE - 44 WHEN - 20 THEN + + COUNT ( * ) WHEN + + 40 / CAST ( NULL AS INTEGER ) + - COUNT ( - 19 ) - - 53 * + 27 THEN NULL END - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT COUNT( * ) + - + SUM( DISTINCT - 23 )
----
24

skipif mysql # not compatible
query I rowsort label-2426
SELECT COUNT ( * ) + - + SUM ( DISTINCT - 23 )
----
24

query I rowsort
SELECT 72 + + + 67 + 78
----
217

query I rowsort
SELECT 25 col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT 82 + - - COUNT( + - 43 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2429
SELECT 82 + - - COUNT ( + - 43 ) AS col2
----
83

query II rowsort
SELECT 91 + + - 41 col2, 90
----
50
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + + 36 * ( + 79 ) * 49 + 1 + + NULLIF ( 38, - COUNT( ALL + 96 ) * + COUNT( * ) ) AS col0
----
139395

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + + 36 * ( + 79 ) * 49 + 1 + + NULLIF ( 38, - COUNT ( ALL + 96 ) * + COUNT ( * ) ) AS col0
----
139395

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT DISTINCT + - 69 * + 24 * 2 - + COALESCE ( - 40, + 30, + COUNT( * ) * + ( + - MAX( DISTINCT + 93 ) ) ) AS col0
----
-3272

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT + - 69 * + 24 * 2 - + COALESCE ( - 40, + 30, + COUNT ( * ) * + ( + - MAX ( DISTINCT + 93 ) ) ) AS col0
----
-3272

onlyif mysql # aggregate syntax: 
query II rowsort label-2435
SELECT ( - 54 ) * - SUM( - + 49 ) AS col0, 27 AS col2
----
-2646
27

skipif mysql # not compatible
query II rowsort label-2435
SELECT ( - 54 ) * - SUM ( - + 49 ) AS col0, 27 AS col2
----
-2646
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT + COALESCE ( - 13, + 62, - SUM( DISTINCT - + 16 ) - ( + - COUNT( * ) ) )
----
-13

skipif mysql # not compatible
query I rowsort label-2436
SELECT + COALESCE ( - 13, + 62, - SUM ( DISTINCT - + 16 ) - ( + - COUNT ( * ) ) )
----
-13

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2439
SELECT 83 / + - COUNT ( * ) col2
----
-83

query I rowsort
SELECT - 42 * + 48
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT + COUNT( * ) * - - 98 + + COUNT( - - 61 ) + 42 + + COUNT( * ) * + MAX( DISTINCT + 65 ) + + - 61 * 61 AS col0
----
-3515

skipif mysql # not compatible
query I rowsort label-2441
SELECT + COUNT ( * ) * - - 98 + + COUNT ( - - 61 ) + 42 + + COUNT ( * ) * + MAX ( DISTINCT + 65 ) + + - 61 * 61 AS col0
----
-3515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2442
SELECT ALL - + CASE + 30 WHEN - 38 / + 66 / CAST( NULL AS SIGNED ) + - + 40 THEN NULL ELSE 15 * 42 * - + MIN( 59 ) + + - 9 * COUNT( * ) END * - - CASE WHEN ( NULL ) IS NULL THEN 9 END AS col1
----
334611

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - + CASE + 30 WHEN - 38 / + 66 / CAST ( NULL AS INTEGER ) + - + 40 THEN NULL ELSE 15 * 42 * - + MIN ( 59 ) + + - 9 * COUNT ( * ) END * - - CASE WHEN ( NULL ) IS NULL THEN 9 END AS col1
----
334611

query I rowsort
SELECT DISTINCT - + 34 AS col2
----
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ( 87 ) * + - 23 * - 94 * + - COUNT( * ) - 58 AS col1
----
-188152

skipif mysql # not compatible
query I rowsort label-2445
SELECT ( 87 ) * + - 23 * - 94 * + - COUNT ( * ) - 58 AS col1
----
-188152

query I rowsort
SELECT ALL - 8 + - + ( - 79 ) + - - ( 76 ) - - - 75 + - 31
----
41

query I rowsort
SELECT DISTINCT - - 1 AS col2
----
1

query I rowsort
SELECT ( - - 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT - 60 * + 84 + NULLIF ( COUNT( * ), + 23 + - COUNT( * ) ) + 79
----
-4960

skipif mysql # not compatible
query I rowsort label-2449
SELECT - 60 * + 84 + NULLIF ( COUNT ( * ), + 23 + - COUNT ( * ) ) + 79
----
-4960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT 12 * + CAST( 35 AS SIGNED )
----
420

skipif mysql # not compatible
query I rowsort label-2450
SELECT 12 * + CAST ( 35 AS INTEGER )
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT NULLIF ( + - 51, - + 81 + + 32 + + ( + + 71 ) * + 2 ) + + + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2451
SELECT NULLIF ( + - 51, - + 81 + + 32 + + ( + + 71 ) * + 2 ) + + + COUNT ( * )
----
-50

query I rowsort
SELECT ALL 28 + + + 35 AS col2
----
63

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

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT ( + 74 ) + - COUNT ( * ) * COUNT ( * ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT ALL + ( + 16 ) * + CAST( NULL AS SIGNED ) * 21 * 28 * + - 71 + 44 * - ( - MAX( - 10 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL + ( + 16 ) * + CAST ( NULL AS INTEGER ) * 21 * 28 * + - 71 + 44 * - ( - MAX ( - 10 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT ( - 70 ) + - + 38 - + NULLIF ( - - COALESCE ( - - 93, - 53, + - ( + - COALESCE ( + 17, + 79 ) ) ), COUNT( * ) * - 43 ) AS col2
----
-201

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT ( - 70 ) + - + 38 - + NULLIF ( - - COALESCE ( - - 93, - 53, + - ( + - COALESCE ( + 17, + 79 ) ) ), COUNT ( * ) * - 43 ) AS col2
----
-201

query I rowsort
SELECT ALL 92 + - 56 * + 33 * + 4 * + 84
----
-620836

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT DISTINCT 57 DIV 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT 57 / 76 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT ALL 74 + - 90 - - 67 DIV 68 * ( - 26 )
----
-16

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL 74 + - 90 - - 67 / 68 * ( - 26 )
----
-16

query II rowsort
SELECT + 86, 34 AS col0
----
86
34

query I rowsort
SELECT 37 + - - 38
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2461
SELECT DISTINCT 21 DIV 84 * - - 18, 95 + - COUNT( ALL 8 ) + + 93 * - + 78 AS col1
----
0
-7160

skipif mysql # not compatible
query II rowsort label-2461
SELECT DISTINCT 21 / 84 * - - 18, 95 + - COUNT ( ALL 8 ) + + 93 * - + 78 AS col1
----
0
-7160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2462
SELECT 62 AS col2, - CAST( - 78 AS SIGNED ) col1
----
62
78

skipif mysql # not compatible
query II rowsort label-2462
SELECT 62 AS col2, - CAST ( - 78 AS INTEGER ) col1
----
62
78

query I rowsort
SELECT 88 * - + 43
----
-3784

query I rowsort
SELECT ALL 14 - 87 + + 49
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT MAX( ALL - + 98 ) - 41
----
-139

skipif mysql # not compatible
query I rowsort label-2465
SELECT MAX ( ALL - + 98 ) - 41
----
-139

query I rowsort
SELECT ALL 50 AS col1
----
50

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

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT 85 / COUNT ( * )
----
85

query I rowsort
SELECT ( + 39 ) * + - 63 * + + 11 - + 64 - + 78
----
-27169

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT + COUNT( * ) * 49 * - 96 AS col1
----
-4704

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT + COUNT ( * ) * 49 * - 96 AS col1
----
-4704

query I rowsort
SELECT ALL + 36 * 31 * - + 81 AS col2
----
-90396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2471
SELECT + 77 * + COALESCE ( + + COALESCE ( + - 50, - 65 * 57, + - ( 91 ) * - ( + + ( - CASE 69 WHEN + - 94 * + + CASE - + 68 WHEN + COUNT( + 90 ) THEN 2 END + + ( - 25 ) + - - 41 + 96 * 65 THEN - 86 ELSE NULL END ) ) ), + ( - ( + 81 ) ) * + + 18 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT + 77 * + COALESCE ( + + COALESCE ( + - 50, - 65 * 57, + - ( 91 ) * - ( + + ( - CASE 69 WHEN + - 94 * + + CASE - + 68 WHEN + COUNT ( + 90 ) THEN 2 END + + ( - 25 ) + - - 41 + 96 * 65 THEN - 86 ELSE NULL END ) ) ), + ( - ( + 81 ) ) * + + 18 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 - 67 - 88 - + - 13
----
-124

query I rowsort
SELECT 49 * - 80 AS col1
----
-3920

query I rowsort
SELECT - 17 - + - 1 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - MIN( DISTINCT 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2475
SELECT - MIN ( DISTINCT 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT - COUNT( - 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2476
SELECT - COUNT ( - 50 ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-2477
SELECT - ( - - MAX ( - + 18 ) )
----
18

query I rowsort
SELECT ALL NULLIF ( + ( 97 ), + 63 * ( + 42 ) + 11 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2479
SELECT COUNT( * ) * + COALESCE ( + COALESCE ( COUNT( ALL 97 ), 47 ), + - 52 + 1 ), COUNT( * ) - 7 AS col0
----
1
-6

skipif mysql # not compatible
query II rowsort label-2479
SELECT COUNT ( * ) * + COALESCE ( + COALESCE ( COUNT ( ALL 97 ), 47 ), + - 52 + 1 ), COUNT ( * ) - 7 AS col0
----
1
-6

query I rowsort
SELECT - 84 + + 85
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT ALL - 18 + COALESCE ( - + 64, ( - - COUNT( * ) ) ), 78 AS col0
----
-82
78

skipif mysql # not compatible
query II rowsort label-2481
SELECT ALL - 18 + COALESCE ( - + 64, ( - - COUNT ( * ) ) ), 78 AS col0
----
-82
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2482
SELECT ALL + 60 DIV + 91 * - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + 60 / + 91 * - 12 AS col0
----
0

query I rowsort
SELECT ALL + 59 * + 9 + 96 + 3 AS col1
----
630

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

skipif mysql # not compatible
query I rowsort label-2484
SELECT - COUNT ( * ) * 41
----
-41

query I rowsort
SELECT DISTINCT + + 99 * + 62
----
6138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT MAX( ALL - - 88 ) * + 6 + + 42
----
570

skipif mysql # not compatible
query I rowsort label-2487
SELECT MAX ( ALL - - 88 ) * + 6 + + 42
----
570

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2489
SELECT 71 DIV 14 DIV - 12 + + COUNT( * ) + COUNT( * ) * - 62 + 41 + + 77 - 5
----
52

skipif mysql # not compatible
query I rowsort label-2489
SELECT 71 / 14 / - 12 + + COUNT ( * ) + COUNT ( * ) * - 62 + 41 + + 77 - 5
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT COALESCE ( 28, - COUNT( * ) + + - 83 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2490
SELECT COALESCE ( 28, - COUNT ( * ) + + - 83 ) AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2491
SELECT + COUNT( * ) * - COUNT( * ) * + CAST( - 79 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2491
SELECT + COUNT ( * ) * - COUNT ( * ) * + CAST ( - 79 AS INTEGER ) AS col2
----
79

query I rowsort
SELECT - 34 + + 70 - - + 34 AS col2
----
70

query I rowsort
SELECT - 93 * - - 13 AS col0
----
-1209

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2495
SELECT DISTINCT + 99 * + - 67 + - 73 DIV + - 64
----
-6632

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT + 99 * + - 67 + - 73 / + - 64
----
-6632

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

skipif mysql # not compatible
query II rowsort label-2496
SELECT COUNT ( * ), - 74 AS col1
----
1
-74

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

query I rowsort
SELECT - 19 * - - 80 + 33 * 6 AS col1
----
-1322

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2499
SELECT + ( + 83 ) - - 64 DIV 13 DIV + + ( + - 98 ) * + 80 AS col1, + COUNT( * ) - 66 AS col1
----
83
-65

skipif mysql # not compatible
query II rowsort label-2499
SELECT + ( + 83 ) - - 64 / 13 / + + ( + - 98 ) * + 80 AS col1, + COUNT ( * ) - 66 AS col1
----
83
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2500
SELECT MIN( DISTINCT - + 58 ), 7 AS col0
----
-58
7

skipif mysql # not compatible
query II rowsort label-2500
SELECT MIN ( DISTINCT - + 58 ), 7 AS col0
----
-58
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT + 44 * + COUNT( * ) * + + 76 + 52 AS col1
----
3396

skipif mysql # not compatible
query I rowsort label-2501
SELECT + 44 * + COUNT ( * ) * + + 76 + 52 AS col1
----
3396

query I rowsort
SELECT - ( + 51 ) + 65 AS col0
----
14

query I rowsort
SELECT DISTINCT + 20 * 27
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT MIN( ALL - ( - ( 80 ) ) ) col1
----
80

skipif mysql # not compatible
query I rowsort label-2504
SELECT MIN ( ALL - ( - ( 80 ) ) ) col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ( + + COUNT( 28 ) ) * + 3 + + 44 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2505
SELECT ( + + COUNT ( 28 ) ) * + 3 + + 44 AS col2
----
47

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

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

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

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

query II rowsort
SELECT ALL - 84, 4 AS col0
----
-84
4

query I rowsort
SELECT + + 88 * + 0 + + 14 col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2511
SELECT DISTINCT + MIN( - 78 ) DIV - 22
----
3

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT + MIN ( - 78 ) / - 22
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2512
SELECT ALL 8 AS col2, - 31 * COUNT( * )
----
8
-31

skipif mysql # not compatible
query II rowsort label-2512
SELECT ALL 8 AS col2, - 31 * COUNT ( * )
----
8
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT COUNT( + + 88 ) * CASE WHEN NOT 20 IS NOT NULL THEN + - 67 * - 72 END * + ( + + SUM( 62 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT COUNT ( + + 88 ) * CASE WHEN NOT 20 IS NOT NULL THEN + - 67 * - 72 END * + ( + + SUM ( 62 ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT 33 + - + COALESCE ( - COUNT( * ), + 74, 99 ) + - ( - ( + - 14 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT 33 + - + COALESCE ( - COUNT ( * ), + 74, 99 ) + - ( - ( + - 14 ) ) AS col1
----
20

query I rowsort
SELECT DISTINCT + - 64 + + - 81
----
-145

query I rowsort
SELECT DISTINCT + 30 * + 61 * + NULLIF ( + - 7, - 55 ) AS col2
----
-12810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2519
SELECT ALL - 67 + 41 + - + COUNT( * ) * + 44 DIV - 73 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - 67 + 41 + - + COUNT ( * ) * + 44 / - 73 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT + COUNT( * ) - + NULLIF ( - COUNT( * ), - - 13 ) + - 69
----
-67

skipif mysql # not compatible
query I rowsort label-2520
SELECT + COUNT ( * ) - + NULLIF ( - COUNT ( * ), - - 13 ) + - 69
----
-67

query I rowsort
SELECT - + 86 + - - 59 * 42 AS col2
----
2392

onlyif mysql # aggregate syntax: 
query II rowsort label-2522
SELECT - COUNT( * ) AS col0, - 11 + + 40 + + 59 AS col0
----
-1
88

skipif mysql # not compatible
query II rowsort label-2522
SELECT - COUNT ( * ) AS col0, - 11 + + 40 + + 59 AS col0
----
-1
88

query I rowsort
SELECT - - 12 + 78
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2524
SELECT ALL - COALESCE ( - 78, - 7, 36 DIV COUNT( * ) * + - COUNT( * ) ) + - 37 AS col1, - 14 AS col0
----
41
-14

skipif mysql # not compatible
query II rowsort label-2524
SELECT ALL - COALESCE ( - 78, - 7, 36 / COUNT ( * ) * + - COUNT ( * ) ) + - 37 AS col1, - 14 AS col0
----
41
-14

query I rowsort
SELECT + + 0 + + NULLIF ( + 93, + ( 69 ) ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2526
SELECT + 5 * CAST( NULL AS SIGNED ) + + + COUNT( * ) + - 90 AS col1, - 92 - - - 12 * - 44
----
NULL
436

skipif mysql # not compatible
query II rowsort label-2526
SELECT + 5 * CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - 90 AS col1, - 92 - - - 12 * - 44
----
NULL
436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT COUNT( * ) DIV - 72 + - 48 col2
----
-48

skipif mysql # not compatible
query I rowsort label-2527
SELECT COUNT ( * ) / - 72 + - 48 col2
----
-48

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

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

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

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

query I rowsort
SELECT - 4 * - - ( 30 ) AS col1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2531
SELECT + CAST( + 69 AS SIGNED ) AS col0, CASE COUNT( * ) WHEN + 49 + - - 70 * + - 14 THEN - 22 ELSE - + 35 + - + 2 + - 59 END
----
69
-96

skipif mysql # not compatible
query II rowsort label-2531
SELECT + CAST ( + 69 AS INTEGER ) AS col0, CASE COUNT ( * ) WHEN + 49 + - - 70 * + - 14 THEN - 22 ELSE - + 35 + - + 2 + - 59 END
----
69
-96

query I rowsort
SELECT ALL - 5 * 58 AS col2
----
-290

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2534
SELECT - ( - CAST( NULL AS DECIMAL ) ) + - 95 * 51 * - 12 + + + ( + - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT - ( - CAST ( NULL AS REAL ) ) + - 95 * 51 * - 12 + + + ( + - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT - COALESCE ( - 20, - - 64 + - COUNT( * ) ) * 53 + - 1
----
1059

skipif mysql # not compatible
query I rowsort label-2535
SELECT - COALESCE ( - 20, - - 64 + - COUNT ( * ) ) * 53 + - 1
----
1059

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT - COUNT( * ) * + 49 * + - 97 * 45
----
213885

skipif mysql # not compatible
query I rowsort label-2536
SELECT - COUNT ( * ) * + 49 * + - 97 * 45
----
213885

query I rowsort
SELECT ( COALESCE ( - NULLIF ( - + 43, - 54 + + 89 + - + NULLIF ( + - 25, - + 50 ) ), 82 + 48 * 93 ) ) AS col2
----
43

query I rowsort
SELECT ALL + NULLIF ( - 19, + 29 ) AS col2
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT MAX( 69 ) * + 20 + - ( + 20 ) * COUNT( * ) col2
----
1360

skipif mysql # not compatible
query I rowsort label-2540
SELECT MAX ( 69 ) * + 20 + - ( + 20 ) * COUNT ( * ) col2
----
1360

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

skipif mysql # not compatible
query I rowsort label-2541
SELECT - COUNT ( * ) + - ( - - 6 ) AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2542
SELECT - COUNT( CAST( - COALESCE ( + 9, - 41 / + 31 - + + 27 ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2542
SELECT - COUNT ( CAST ( - COALESCE ( + 9, - 41 / + 31 - + + 27 ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT + 95 * 78 * - ( - + 34 ) * + COUNT( * ) AS col1
----
251940

skipif mysql # not compatible
query I rowsort label-2543
SELECT + 95 * 78 * - ( - + 34 ) * + COUNT ( * ) AS col1
----
251940

query I rowsort
SELECT - - 73 - - 90 AS col2
----
163

query I rowsort
SELECT 81 - + 96 * 18 AS col0
----
-1647

query II rowsort
SELECT ALL - - 58 * - - 53, 24 - 17 * - + 66 AS col2
----
3074
1146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT - 61 DIV - COUNT( * ) + + 59 * + NULLIF ( - - COUNT( * ), + 72 ) + + 63 + - - 77 DIV - 60
----
182

skipif mysql # not compatible
query I rowsort label-2547
SELECT - 61 / - COUNT ( * ) + + 59 * + NULLIF ( - - COUNT ( * ), + 72 ) + + 63 + - - 77 / - 60
----
182

query I rowsort
SELECT ALL + - 45 + - 60 AS col2
----
-105

query I rowsort
SELECT - + 91
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT + 97 DIV 45 + - 92
----
-90

skipif mysql # not compatible
query I rowsort label-2550
SELECT + 97 / 45 + - 92
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT CASE - - CASE - + 3 WHEN - 68 THEN - - ( + - 70 ) WHEN + + 39 + 61 + + 24 / + + 75 + + + 86 * + - 33 THEN NULL END WHEN + + 12 * + 20 THEN 46 * + - 50 WHEN + COUNT( * ) + - 91 THEN + 65 * - 75 * COUNT( * ) ELSE NULL END + + 20 + CASE WHEN 40 IN ( + + 22 + + 36 + - 91 / - 11 / - + COUNT( * ) * + COUNT( DISTINCT + + 30 ) + + 93 ) THEN - 48 ELSE - 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT CASE - - CASE - + 3 WHEN - 68 THEN - - ( + - 70 ) WHEN + + 39 + 61 + + 24 / + + 75 + + + 86 * + - 33 THEN NULL END WHEN + + 12 * + 20 THEN 46 * + - 50 WHEN + COUNT ( * ) + - 91 THEN + 65 * - 75 * COUNT ( * ) ELSE NULL END + + 20 + CASE WHEN 40 IN ( + + 22 + + 36 + - 91 / - 11 / - + COUNT ( * ) * + COUNT ( DISTINCT + + 30 ) + + 93 ) THEN - 48 ELSE - 82 END AS col2
----
NULL

query II rowsort
SELECT + 55 * + 8 AS col0, - 17 * + 57 AS col0
----
440
-969

query II rowsort
SELECT DISTINCT + - 3 + + 99 col1, - 50 col0
----
96
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2554
SELECT - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL 8 * + 63 * + COUNT( DISTINCT 24 )
----
504

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL 8 * + 63 * + COUNT ( DISTINCT 24 )
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2556
SELECT DISTINCT - 27 + + - ( - NULLIF ( CAST( NULL AS SIGNED ), - 49 + + COUNT( * ) + 26 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT - 27 + + - ( - NULLIF ( CAST ( NULL AS INTEGER ), - 49 + + COUNT ( * ) + 26 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL 99 - COUNT( + 20 ) + - CASE + + 70 WHEN - COUNT( * ) * - 86 + + COUNT( * ) + - 87 + + 98 THEN - 54 + 1 END * + SUM( ALL + + 92 ) * + MAX( ALL 36 ) + + 81 - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL 99 - COUNT ( + 20 ) + - CASE + + 70 WHEN - COUNT ( * ) * - 86 + + COUNT ( * ) + - 87 + + 98 THEN - 54 + 1 END * + SUM ( ALL + + 92 ) * + MAX ( ALL 36 ) + + 81 - 7
----
NULL

query I rowsort
SELECT DISTINCT 61 AS col2
----
61

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2561
SELECT - 74 DIV + 47 + - 77 col1, 57
----
-78
57

skipif mysql # not compatible
query II rowsort label-2561
SELECT - 74 / + 47 + - 77 col1, 57
----
-78
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT ALL 63 - - - 66 * + CAST( - - CASE MAX( DISTINCT - 86 ) WHEN + 42 THEN NULL ELSE - 61 END AS SIGNED )
----
4089

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL 63 - - - 66 * + CAST ( - - CASE MAX ( DISTINCT - 86 ) WHEN + 42 THEN NULL ELSE - 61 END AS INTEGER )
----
4089

query I rowsort
SELECT 47 + - 85 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2564
SELECT 78 AS col0, COUNT( ALL + 89 )
----
78
1

skipif mysql # not compatible
query II rowsort label-2564
SELECT 78 AS col0, COUNT ( ALL + 89 )
----
78
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2565
SELECT ( - COUNT( * ) ) + - 15 * - 79 * ( - - 11 ) + - ( 98 ) * - NULLIF ( 73, 31 + + + 84 ) * + CAST( - 85 AS SIGNED ) + - + ( + 80 ) AS col0
----
-595136

skipif mysql # not compatible
query I rowsort label-2565
SELECT ( - COUNT ( * ) ) + - 15 * - 79 * ( - - 11 ) + - ( 98 ) * - NULLIF ( 73, 31 + + + 84 ) * + CAST ( - 85 AS INTEGER ) + - + ( + 80 ) AS col0
----
-595136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2566
SELECT ( 27 ) * + CAST( + ( + 23 ) AS SIGNED ) + CAST( + 19 AS SIGNED ) + - - 86 - + + 97 + 74
----
703

skipif mysql # not compatible
query I rowsort label-2566
SELECT ( 27 ) * + CAST ( + ( + 23 ) AS INTEGER ) + CAST ( + 19 AS INTEGER ) + - - 86 - + + 97 + 74
----
703

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

query I rowsort
SELECT + 92 col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT DISTINCT - COUNT( * ) AS col2, + ( 75 ) + - COUNT( * ) * - 16 AS col1
----
-1
91

skipif mysql # not compatible
query II rowsort label-2569
SELECT DISTINCT - COUNT ( * ) AS col2, + ( 75 ) + - COUNT ( * ) * - 16 AS col1
----
-1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL 56 * + MIN( + 89 ) AS col0
----
4984

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL 56 * + MIN ( + 89 ) AS col0
----
4984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT SUM( CAST( NULL AS SIGNED ) ) + + 20 - + - CASE - + 0 WHEN - - 32 THEN NULL WHEN - AVG ( + 50 ) THEN 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT SUM ( CAST ( NULL AS INTEGER ) ) + + 20 - + - CASE - + 0 WHEN - - 32 THEN NULL WHEN - AVG ( + 50 ) THEN 2 ELSE NULL END
----
NULL

query I rowsort
SELECT 97 - - 46 + 11 - 76
----
78

query I rowsort
SELECT 7 + + 92 AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT ALL - 3 * + - COALESCE ( - 43, + COALESCE ( 14, 43 - + - 60 ) + + 57, + CAST( 15 AS SIGNED ) ) * - - 62 AS col1
----
-7998

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - 3 * + - COALESCE ( - 43, + COALESCE ( 14, 43 - + - 60 ) + + 57, + CAST ( 15 AS INTEGER ) ) * - - 62 AS col1
----
-7998

query I rowsort
SELECT DISTINCT - + 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT DISTINCT + SUM( DISTINCT 42 ) + + - 2 * + 6 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT + SUM ( DISTINCT 42 ) + + - 2 * + 6 AS col0
----
30

query I rowsort
SELECT 34 * + 7 - 74 * + 72
----
-5090

query I rowsort
SELECT - 36 + - 90
----
-126

query I rowsort
SELECT ALL + 22 + 75 col1
----
97

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

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

query I rowsort
SELECT - - 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - CASE 57 WHEN + MIN( ALL + 88 ) + + - 58 THEN + ( - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT - CASE 57 WHEN + MIN ( ALL + 88 ) + + - 58 THEN + ( - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT - COALESCE ( - ( 96 ), 73 ) + + 99
----
195

query II rowsort
SELECT - - 3 AS col0, 76 * - 48 * 25 + + 88 AS col0
----
3
-91112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2585
SELECT DISTINCT + 39 + - + COUNT( * ) + - COUNT( * ) DIV + ( - 89 ) + 96 AS col1, + ( 1 ) col0
----
134
1

skipif mysql # not compatible
query II rowsort label-2585
SELECT DISTINCT + 39 + - + COUNT ( * ) + - COUNT ( * ) / + ( - 89 ) + 96 AS col1, + ( 1 ) col0
----
134
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL - MAX( - + 14 ) * 93 * + 75 AS col1
----
97650

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - MAX ( - + 14 ) * 93 * + 75 AS col1
----
97650

onlyif mysql # aggregate syntax: 
query II rowsort label-2587
SELECT ( 76 ) + 27 col0, 58 + - COUNT( * )
----
103
57

skipif mysql # not compatible
query II rowsort label-2587
SELECT ( 76 ) + 27 col0, 58 + - COUNT ( * )
----
103
57

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2589
SELECT ALL 11, - 72 + COUNT( * ) + - 87 * ( - 37 ) + - + COUNT( * ) AS col0
----
11
3147

skipif mysql # not compatible
query II rowsort label-2589
SELECT ALL 11, - 72 + COUNT ( * ) + - 87 * ( - 37 ) + - + COUNT ( * ) AS col0
----
11
3147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT DISTINCT + 78 - - CAST( - COUNT( * ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + 78 - - CAST ( - COUNT ( * ) AS INTEGER )
----
77

query I rowsort
SELECT ALL - - 38 * 78
----
2964

query I rowsort
SELECT + 62 + + 83
----
145

query II rowsort
SELECT - - 44 AS col1, 35
----
44
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL + COUNT( * ) - - NULLIF ( + + 89, + 22 + + 23 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + COUNT ( * ) - - NULLIF ( + + 89, + 22 + + 23 ) col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT DISTINCT + 87 * + + 0 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT + 87 * + + 0 / 52
----
0

query I rowsort
SELECT COALESCE ( - 74, 84 ) * - - 89 AS col2
----
-6586

query I rowsort
SELECT 73 + - - 56 * + ( + 12 ) AS col0
----
745

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT CASE + 58 WHEN - - COUNT( ALL 26 ) * - 79 THEN 35 WHEN + 72 THEN NULL WHEN + COUNT( 41 ) THEN NULL END / - 75 - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT CASE + 58 WHEN - - COUNT ( ALL 26 ) * - 79 THEN 35 WHEN + 72 THEN NULL WHEN + COUNT ( 41 ) THEN NULL END / - 75 - + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2599
SELECT 47 * + COUNT( * ) AS col1, ( + CAST( + + 16 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-2599
SELECT 47 * + COUNT ( * ) AS col1, ( + CAST ( + + 16 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT + ( + CASE - - 79 WHEN + COUNT( * ) THEN NULL WHEN + 41 / - 63 THEN + - MIN( DISTINCT - 65 ) * 27 WHEN - ( ( + + 16 ) ) THEN + 34 - - 62 ELSE NULL END ) / - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + ( + CASE - - 79 WHEN + COUNT ( * ) THEN NULL WHEN + 41 / - 63 THEN + - MIN ( DISTINCT - 65 ) * 27 WHEN - ( ( + + 16 ) ) THEN + 34 - - 62 ELSE NULL END ) / - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2601
SELECT COUNT( - - 49 ) DIV - 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2601
SELECT COUNT ( - - 49 ) / - 31 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL + 79 / + 76
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL COUNT( * ) * 84
----
84

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL COUNT ( * ) * 84
----
84

query I rowsort
SELECT DISTINCT 21 * - 67 AS col2
----
-1407

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

skipif mysql # not compatible
query I rowsort label-2605
SELECT MAX ( DISTINCT 17 )
----
17

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

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

query I rowsort
SELECT ALL 82 * - 29 * 8 + + - 9 + - + 25 AS col1
----
-19058

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

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

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

query II rowsort
SELECT 72 * + 87, 62 AS col1
----
6264
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT MIN( DISTINCT + - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-2611
SELECT MIN ( DISTINCT + - 51 ) AS col1
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT COUNT( - - ( 75 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2613
SELECT COUNT ( - - ( 75 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT - ( 89 ) * + 79 * SUM( + 3 ) + - 34 AS col1
----
-21127

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT - ( 89 ) * + 79 * SUM ( + 3 ) + - 34 AS col1
----
-21127

query I rowsort
SELECT ALL + + 77
----
77

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

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

query I rowsort
SELECT DISTINCT + - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT DISTINCT + - MAX( ALL - + 77 ), - 43 + + ( + 70 ) AS col1
----
77
27

skipif mysql # not compatible
query II rowsort label-2618
SELECT DISTINCT + - MAX ( ALL - + 77 ), - 43 + + ( + 70 ) AS col1
----
77
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2619
SELECT ALL + 1 + 76, + COALESCE ( + 13, - - 25 - + COUNT( * ) ) DIV - NULLIF ( - 93, - - NULLIF ( + 96, + COUNT( * ) + 37 ) * + 16 * - 59 + - + NULLIF ( - COUNT( * ), + - 0 + - + 59 * + + 80 ) * 65 * - 99 - + 25 - - 39 + - 81 * + 33 * - - 20 ) col1
----
77
0

skipif mysql # not compatible
query II rowsort label-2619
SELECT ALL + 1 + 76, + COALESCE ( + 13, - - 25 - + COUNT ( * ) ) / - NULLIF ( - 93, - - NULLIF ( + 96, + COUNT ( * ) + 37 ) * + 16 * - 59 + - + NULLIF ( - COUNT ( * ), + - 0 + - + 59 * + + 80 ) * 65 * - 99 - + 25 - - 39 + - 81 * + 33 * - - 20 ) col1
----
77
0

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

query I rowsort
SELECT + - 28 col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + + 21 + - SUM( + 10 )
----
11

skipif mysql # not compatible
query I rowsort label-2622
SELECT + + 21 + - SUM ( + 10 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT - ( - 78 ) * - - MAX( ALL - 21 ) * 97 / - ( 31 ) / CAST( NULL AS SIGNED ) + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT - ( - 78 ) * - - MAX ( ALL - 21 ) * 97 / - ( 31 ) / CAST ( NULL AS INTEGER ) + - 54
----
NULL

query I rowsort
SELECT ALL 40 * + 86 * - - 52 - + - 23 AS col0
----
178903

query I rowsort
SELECT - 84 * 79
----
-6636

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT + 8 - - 12 * + 54 + - + 35 + + 83 DIV + 10
----
629

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + 8 - - 12 * + 54 + - + 35 + + 83 / + 10
----
629

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2627
SELECT ALL - 49 * + + 77 - + COUNT( * ) DIV - 15, 28 AS col1, + 92 - - - 40 AS col0
----
-3773
28
52

skipif mysql # not compatible
query III rowsort label-2627
SELECT ALL - 49 * + + 77 - + COUNT ( * ) / - 15, 28 AS col1, + 92 - - - 40 AS col0
----
-3773
28
52

query I rowsort
SELECT - - 80 + 46 AS col0
----
126

query I rowsort
SELECT ALL - COALESCE ( - 55, - - 89 )
----
55

query I rowsort
SELECT + 29 col0
----
29

query I rowsort
SELECT - - 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT + + 19 + + - MAX( + 46 ) + - 58 + 51 + - 63 + 16 + + 3 + - 66 + 34 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-2632
SELECT + + 19 + + - MAX ( + 46 ) + - 58 + 51 + - 63 + 16 + + 3 + - 66 + 34 AS col1
----
-110

query I rowsort
SELECT - 16 - 6
----
-22

query I rowsort
SELECT ALL NULLIF ( - 25, + 9 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT DISTINCT + 92 * + - 11 * + + AVG ( DISTINCT + CASE - 71 WHEN - - COALESCE ( 12, - + 92, + 61, + - 72 ) - + 10 THEN NULL ELSE - CAST( NULL AS SIGNED ) * 21 + + 26 * + 16 + + + 1 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + 92 * + - 11 * + + AVG ( DISTINCT + CASE - 71 WHEN - - COALESCE ( 12, - + 92, + 61, + - 72 ) - + 10 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * 21 + + 26 * + 16 + + + 1 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - 46 - - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2636
SELECT - 46 - - COUNT ( * ) AS col2
----
-45

query I rowsort
SELECT ALL + 74 * - - 58
----
4292

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

query I rowsort
SELECT DISTINCT NULLIF ( - 40, + 39 * 24 - - ( - 15 ) / - 6 + - 0 )
----
-40

query I rowsort
SELECT ALL + 75 + + 77
----
152

query I rowsort
SELECT - ( + ( + + 67 ) ) - 30 col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2642
SELECT MAX( CAST( - - 22 AS SIGNED ) ) * 98 * + + 53 + - 24 * - + 93
----
116500

skipif mysql # not compatible
query I rowsort label-2642
SELECT MAX ( CAST ( - - 22 AS INTEGER ) ) * 98 * + + 53 + - 24 * - + 93
----
116500

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2644
SELECT + 27 / - 70 + - - 87 + + CAST( NULL AS SIGNED ) * + 61 * - COUNT( * ) * SUM( 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT + 27 / - 70 + - - 87 + + CAST ( NULL AS INTEGER ) * + 61 * - COUNT ( * ) * SUM ( 13 )
----
NULL

query I rowsort
SELECT + 44 * - 89 AS col2
----
-3916

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

skipif mysql # not compatible
query I rowsort label-2646
SELECT - COUNT ( * ) + 61 + - 28 AS col0
----
32

query II rowsort
SELECT + NULLIF ( + 55, + + 39 ) col2, - 29 * + - 54
----
55
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - COUNT( * ) + 44 - 81 - + COALESCE ( + + 96, + 70 * 85 ) AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-2648
SELECT - COUNT ( * ) + 44 - 81 - + COALESCE ( + + 96, + 70 * 85 ) AS col1
----
-134

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2649
SELECT + NULLIF ( - 28, - + 57 + + ( - 43 ) + + - CAST( CAST( + 26 AS SIGNED ) AS DECIMAL ) ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-2649
SELECT + NULLIF ( - 28, - + 57 + + ( - 43 ) + + - CAST ( CAST ( + 26 AS INTEGER ) AS REAL ) ) col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT ALL - 82 * - + COUNT( + CAST( + 57 AS SIGNED ) ) * - - 89 + 38 * + ( 21 ) * + 71 + + + 93 + 38 AS col2
----
64087

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - 82 * - + COUNT ( + CAST ( + 57 AS INTEGER ) ) * - - 89 + 38 * + ( 21 ) * + 71 + + + 93 + 38 AS col2
----
64087

query I rowsort
SELECT DISTINCT 27 * - 79 + + 60 * + + 26 * 79 col2
----
121107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2652
SELECT ALL COALESCE ( 50, - - 26 + - + 92 * - ( - 87 ), 10 + + COUNT( + + ( - - 87 ) ) + - 49 - 12 * - 45 * + 67 * + 29 + 45 + 84 DIV + COUNT( * ) ) * + 83
----
4150

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL COALESCE ( 50, - - 26 + - + 92 * - ( - 87 ), 10 + + COUNT ( + + ( - - 87 ) ) + - 49 - 12 * - 45 * + 67 * + 29 + 45 + 84 / + COUNT ( * ) ) * + 83
----
4150

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT ALL + - 71 * + 14 + - 73, COUNT( * ) * - 50 AS col2
----
-1067
-50

skipif mysql # not compatible
query II rowsort label-2653
SELECT ALL + - 71 * + 14 + - 73, COUNT ( * ) * - 50 AS col2
----
-1067
-50

query I rowsort
SELECT + 28 * - + 51 AS col0
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT + - 36 + - 93 * COUNT( * ) AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-2655
SELECT + - 36 + - 93 * COUNT ( * ) AS col0
----
-129

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

skipif mysql # not compatible
query I rowsort label-2656
SELECT + 41 + + COUNT ( 86 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT ALL NULLIF ( - 77, - ( - 75 ) ) * CAST( + 15 AS SIGNED )
----
-1155

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL NULLIF ( - 77, - ( - 75 ) ) * CAST ( + 15 AS INTEGER )
----
-1155

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT 57, COUNT( * ) col1
----
57
1

skipif mysql # not compatible
query II rowsort label-2658
SELECT 57, COUNT ( * ) col1
----
57
1

query I rowsort
SELECT + 55 + + + 89
----
144

query II rowsort
SELECT DISTINCT + 15, - 82 AS col0
----
15
-82

query I rowsort
SELECT 32 col2
----
32

query I rowsort
SELECT + - 59 * + 10 * NULLIF ( + - 70, + - 99 / + 4 )
----
41300

query I rowsort
SELECT ALL + 53 * 19 AS col0
----
1007

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

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

query II rowsort
SELECT DISTINCT + - 0 AS col2, 9 AS col0
----
0
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2667
SELECT + 44 * + - AVG ( DISTINCT 77 ) * 4 * - + COALESCE ( - 59, 66 + - + ( - 4 ) ) * + CASE 82 WHEN + 32 THEN 92 WHEN - + 9 * + 76 THEN - - 92 / - - COALESCE ( + + COUNT( * ), - COUNT( * ) * + - 80 + 82 * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( ALL + 87 ) * COUNT( * ) ) ELSE NULL END * + ( - NULLIF ( 70, + 66 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT + 44 * + - AVG ( DISTINCT 77 ) * 4 * - + COALESCE ( - 59, 66 + - + ( - 4 ) ) * + CASE 82 WHEN + 32 THEN 92 WHEN - + 9 * + 76 THEN - - 92 / - - COALESCE ( + + COUNT ( * ), - COUNT ( * ) * + - 80 + 82 * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( ALL + 87 ) * COUNT ( * ) ) ELSE NULL END * + ( - NULLIF ( 70, + 66 ) )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2669
SELECT + - COALESCE ( 35, - - COUNT( * ) ) + - 11 + + - 90 AS col2, + 40 * - COALESCE ( - COUNT( - 83 ), - 9, 5 DIV - 4 + - 38 + - CAST( NULL AS SIGNED ) * 10 * - 58 * + - 96 + - ( + CAST( - 56 AS SIGNED ) ) ) AS col0
----
-136
40

skipif mysql # not compatible
query II rowsort label-2669
SELECT + - COALESCE ( 35, - - COUNT ( * ) ) + - 11 + + - 90 AS col2, + 40 * - COALESCE ( - COUNT ( - 83 ), - 9, 5 / - 4 + - 38 + - CAST ( NULL AS INTEGER ) * 10 * - 58 * + - 96 + - ( + CAST ( - 56 AS INTEGER ) ) ) AS col0
----
-136
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT + 71 + + 80 * 94 DIV - + 49
----
-82

skipif mysql # not compatible
query I rowsort label-2670
SELECT + 71 + + 80 * 94 / - + 49
----
-82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2672
SELECT - COUNT( * ) AS col2, MIN( ALL + 84 )
----
-1
84

skipif mysql # not compatible
query II rowsort label-2672
SELECT - COUNT ( * ) AS col2, MIN ( ALL + 84 )
----
-1
84

query I rowsort
SELECT ALL 10 * + + 72 AS col0
----
720

query I rowsort
SELECT + 22 + - + 31
----
-9

query I rowsort
SELECT DISTINCT 45 * + 20 AS col1
----
900

query I rowsort
SELECT ALL 4 + - 15 AS col2
----
-11

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

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

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

skipif mysql # not compatible
query I rowsort label-2678
SELECT - 75 / - + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT ALL 80 + - 67
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2680
SELECT DISTINCT 39 + 32 DIV + 16 + - 67 DIV MIN( DISTINCT NULLIF ( + ( + 13 ), + 76 ) ) * 19 + - 57 + ( + 66 ) * + CASE + - 22 WHEN + COUNT( * ) * + 4 * + - 43 THEN + + 16 WHEN + 26 * - 61 THEN NULL ELSE - 21 END * - - 69 * - COALESCE ( - MIN( DISTINCT 58 ), 49 + ( - + COUNT( + 52 ) ) ) + - - 61 AS col0
----
-5546822

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT 39 + 32 / + 16 + - 67 / MIN ( DISTINCT NULLIF ( + ( + 13 ), + 76 ) ) * 19 + - 57 + ( + 66 ) * + CASE + - 22 WHEN + COUNT ( * ) * + 4 * + - 43 THEN + + 16 WHEN + 26 * - 61 THEN NULL ELSE - 21 END * - - 69 * - COALESCE ( - MIN ( DISTINCT 58 ), 49 + ( - + COUNT ( + 52 ) ) ) + - - 61 AS col0
----
-5546822

query I rowsort
SELECT + CASE + 10 WHEN - - 88 THEN - 86 WHEN - 97 THEN - ( 63 ) + - + 60 * + 57 * - 60 END * + + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2682
SELECT DISTINCT + 70 + 17 * - - 10 + CASE + - 76 WHEN - CAST( - AVG ( ALL + + 61 ) AS SIGNED ) * 48 + 86 + - + 58 + 84 + 82 - - 93 * + + CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN + ( 9 ) * - - 7 + 1 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT + 70 + 17 * - - 10 + CASE + - 76 WHEN - CAST ( - AVG ( ALL + + 61 ) AS INTEGER ) * 48 + 86 + - + 58 + 84 + 82 - - 93 * + + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN + ( 9 ) * - - 7 + 1 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( - 73 ) AS col0
----
-73

query II rowsort
SELECT 94, - 33 AS col0
----
94
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT ALL + 44 + + 27 DIV - 80 + + + 35 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + 44 + + 27 / - 80 + + + 35 AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2686
SELECT - CAST( NULL AS SIGNED ) * + 61 * + MAX( 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT - CAST ( NULL AS INTEGER ) * + 61 * + MAX ( 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT + COUNT( * ) + - 37 * + + 64 col2
----
-2367

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + COUNT ( * ) + - 37 * + + 64 col2
----
-2367

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL + COUNT( * ) + + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL + COUNT ( * ) + + - 6
----
-5

query II rowsort
SELECT DISTINCT - 84, 3 + 64 AS col0
----
-84
67

query I rowsort
SELECT 79 * 89 AS col0
----
7031

onlyif mysql # aggregate syntax: 
query II rowsort label-2691
SELECT ALL - COUNT( * ) AS col2, + 69 + + 6
----
-1
75

skipif mysql # not compatible
query II rowsort label-2691
SELECT ALL - COUNT ( * ) AS col2, + 69 + + 6
----
-1
75

query II rowsort
SELECT ALL - - 0 AS col2, + 68 + 70
----
0
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2693
SELECT 53 col2, CAST( NULL AS SIGNED ) / - 56 - - COUNT( * ) - COALESCE ( 51, - 35 ) + 29 / + - 74 AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-2693
SELECT 53 col2, CAST ( NULL AS INTEGER ) / - 56 - - COUNT ( * ) - COALESCE ( 51, - 35 ) + 29 / + - 74 AS col1
----
53
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT + CAST( NULL AS SIGNED ) * + 34 - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2694
SELECT + CAST ( NULL AS INTEGER ) * + 34 - 52 AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2696
SELECT DISTINCT - COALESCE ( - + 44, 7 ) DIV - 24
----
-1

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT - COALESCE ( - + 44, 7 ) / - 24
----
-1

query I rowsort
SELECT DISTINCT - 78 col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2698
SELECT MAX( + 39 ) DIV + 13 - + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2698
SELECT MAX ( + 39 ) / + 13 - + + COUNT ( * )
----
2

query II rowsort
SELECT - 7 AS col1, + ( 2 )
----
-7
2

query I rowsort
SELECT DISTINCT - 0 * + 56 + - ( + - 22 ) * + - 56 AS col0
----
-1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2701
SELECT COUNT( * ) + 52 DIV + 83
----
1

skipif mysql # not compatible
query I rowsort label-2701
SELECT COUNT ( * ) + 52 / + 83
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT + CASE - 46 WHEN + 35 + - COUNT( * ) THEN NULL WHEN 55 * 90 * 84 / - COUNT( * ) THEN + - 99 + - + 76 * - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT + CASE - 46 WHEN + 35 + - COUNT ( * ) THEN NULL WHEN 55 * 90 * 84 / - COUNT ( * ) THEN + - 99 + - + 76 * - 15 END
----
NULL

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

query I rowsort
SELECT + 64 + - 31 - - 5
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT ( - CAST( - + 78 AS SIGNED ) ) * 46 AS col2
----
3588

skipif mysql # not compatible
query I rowsort label-2705
SELECT ( - CAST ( - + 78 AS INTEGER ) ) * 46 AS col2
----
3588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2706
SELECT ALL 86 AS col0, COALESCE ( 53, - 7 DIV - 32 + - + SUM( DISTINCT - - 98 ) - - 96 * - 4, - 53 )
----
86
53

skipif mysql # not compatible
query II rowsort label-2706
SELECT ALL 86 AS col0, COALESCE ( 53, - 7 / - 32 + - + SUM ( DISTINCT - - 98 ) - - 96 * - 4, - 53 )
----
86
53

query I rowsort
SELECT ALL 25 AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT - 48 + - + 21 DIV - 93
----
-48

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT - 48 + - + 21 / - 93
----
-48

query I rowsort
SELECT NULLIF ( - - 74, 17 * - + 29 + + - 58 ) * + + ( - + 64 ) + + 83 AS col0
----
-4653

query I rowsort
SELECT 72 * - 74
----
-5328

query I rowsort
SELECT ALL 63 + 33 AS col0
----
96

query I rowsort
SELECT 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT 56 + + 57 - + COUNT( * ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-2713
SELECT 56 + + 57 - + COUNT ( * ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT 62 * - - MAX( + 60 ) AS col2
----
3720

skipif mysql # not compatible
query I rowsort label-2714
SELECT 62 * - - MAX ( + 60 ) AS col2
----
3720

query I rowsort
SELECT DISTINCT 92 + - 26
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2716
SELECT 10 + + + 27 col1, + CAST( NULL AS SIGNED )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-2716
SELECT 10 + + + 27 col1, + CAST ( NULL AS INTEGER )
----
37
NULL

query I rowsort
SELECT 88 - 85 AS col0
----
3

query I rowsort
SELECT DISTINCT 38 * - 52
----
-1976

query I rowsort
SELECT DISTINCT 56 + - + 16
----
40

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

query II rowsort
SELECT ALL 91 + + ( + 48 ) AS col0, - 86
----
139
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT DISTINCT - 67 DIV ( - 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - 67 / ( - 52 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2723
SELECT ALL + ( + - COUNT( * ) ) - + - CASE 29 WHEN + - 86 + 85 * - 25 + - - 58 * - 53 * + 81 THEN + CAST( NULL AS SIGNED ) END / + 45 + 28 * + 44 * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL + ( + - COUNT ( * ) ) - + - CASE 29 WHEN + - 86 + 85 * - 25 + - - 58 * - 53 * + 81 THEN + CAST ( NULL AS INTEGER ) END / + 45 + 28 * + 44 * + 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT 23 - ( + - 85 ) + - + 93 DIV + 98 * 25 * + 53 * + NULLIF ( 74, - + 23 ) * + 37 * 65 DIV 68 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2724
SELECT 23 - ( + - 85 ) + - + 93 / + 98 * 25 * + 53 * + NULLIF ( 74, - + 23 ) * + 37 * 65 / 68 AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2725
SELECT ALL COUNT( * ) DIV + NULLIF ( + + 73, - NULLIF ( - 95, 48 ) ) * - 28 AS col1, + 43 * - COALESCE ( + 29, COUNT( 48 ) ) AS col0
----
0
-1247

skipif mysql # not compatible
query II rowsort label-2725
SELECT ALL COUNT ( * ) / + NULLIF ( + + 73, - NULLIF ( - 95, 48 ) ) * - 28 AS col1, + 43 * - COALESCE ( + 29, COUNT ( 48 ) ) AS col0
----
0
-1247

onlyif mysql # aggregate syntax: 
query II rowsort label-2726
SELECT 32 - + + 42 AS col0, + NULLIF ( - ( + - 88 ), + COUNT( * ) ) AS col1
----
-10
88

skipif mysql # not compatible
query II rowsort label-2726
SELECT 32 - + + 42 AS col0, + NULLIF ( - ( + - 88 ), + COUNT ( * ) ) AS col1
----
-10
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT + COALESCE ( MIN( + - 71 ), - + 80 * CAST( NULL AS SIGNED ) + + NULLIF ( - COALESCE ( - CAST( NULL AS SIGNED ), + - 54 * + 41, - + CASE - - 93 WHEN + 71 THEN + COUNT( * ) ELSE NULL END ), - NULLIF ( MAX( + 73 ), - - 67 * - 71 ) ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2727
SELECT + COALESCE ( MIN ( + - 71 ), - + 80 * CAST ( NULL AS INTEGER ) + + NULLIF ( - COALESCE ( - CAST ( NULL AS INTEGER ), + - 54 * + 41, - + CASE - - 93 WHEN + 71 THEN + COUNT ( * ) ELSE NULL END ), - NULLIF ( MAX ( + 73 ), - - 67 * - 71 ) ) ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT 27 + + - ( + 24 ) + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2728
SELECT 27 + + - ( + 24 ) + + COUNT ( * )
----
4

query I rowsort
SELECT DISTINCT - + 55 AS col0
----
-55

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

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

query I rowsort
SELECT ALL - - 73 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT 65 + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2732
SELECT 65 + COUNT ( * ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT + - CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2733
SELECT + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT + 39 + - COALESCE ( + 31, 94 ) + - + 71 AS col2, 98 * COALESCE ( + 96, - SUM( DISTINCT - 91 ) ) AS col1
----
-63
9408

skipif mysql # not compatible
query II rowsort label-2735
SELECT + 39 + - COALESCE ( + 31, 94 ) + - + 71 AS col2, 98 * COALESCE ( + 96, - SUM ( DISTINCT - 91 ) ) AS col1
----
-63
9408

query I rowsort
SELECT DISTINCT - + 13
----
-13

query I rowsort
SELECT ( + ( + + 15 ) ) * - - 80 AS col1
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT + 12 * - NULLIF ( + - 27, - CAST( + - 16 AS SIGNED ) * - + 31 ) + - ( 49 ) + - 83
----
192

skipif mysql # not compatible
query I rowsort label-2738
SELECT + 12 * - NULLIF ( + - 27, - CAST ( + - 16 AS INTEGER ) * - + 31 ) + - ( 49 ) + - 83
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT - 62 DIV - 10 - + 46
----
-40

skipif mysql # not compatible
query I rowsort label-2739
SELECT - 62 / - 10 - + 46
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT + COUNT( * ) * 88 + - + 2 + + SUM( + 40 )
----
126

skipif mysql # not compatible
query I rowsort label-2740
SELECT + COUNT ( * ) * 88 + - + 2 + + SUM ( + 40 )
----
126

query I rowsort
SELECT ALL + + 16 + - 63 * + 20
----
-1244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2742
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) * - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2743
SELECT DISTINCT + 34 DIV - NULLIF ( COUNT( * ), - 95 ) AS col1, ( + 29 ) * + 89 - 92 * - 58 * - 45 AS col1
----
-34
-237539

skipif mysql # not compatible
query II rowsort label-2743
SELECT DISTINCT + 34 / - NULLIF ( COUNT ( * ), - 95 ) AS col1, ( + 29 ) * + 89 - 92 * - 58 * - 45 AS col1
----
-34
-237539

query I rowsort
SELECT 56 * - 10 AS col0
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-2745
SELECT - 62 AS col2, - COUNT( - 9 )
----
-62
-1

skipif mysql # not compatible
query II rowsort label-2745
SELECT - 62 AS col2, - COUNT ( - 9 )
----
-62
-1

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

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

query I rowsort
SELECT 62 + + - 84 * - 26
----
2246

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT 65 * 54 DIV 88
----
39

skipif mysql # not compatible
query I rowsort label-2748
SELECT 65 * 54 / 88
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-2749
SELECT DISTINCT 69, + 6 + - 77 + 31 DIV 86 AS col0
----
69
-71

skipif mysql # not compatible
query II rowsort label-2749
SELECT DISTINCT 69, + 6 + - 77 + 31 / 86 AS col0
----
69
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-2750
SELECT DISTINCT 51 + + ( + 12 ) AS col0, 49 DIV + 85 + 88 AS col1
----
63
88

skipif mysql # not compatible
query II rowsort label-2750
SELECT DISTINCT 51 + + ( + 12 ) AS col0, 49 / + 85 + 88 AS col1
----
63
88

query II rowsort
SELECT - 73 AS col0, - 46 * - ( + 43 )
----
-73
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL 86 + + NULLIF ( + + 92, COUNT( * ) + + 10 + - 1 + + - ( 51 ) + - 68 * - COUNT( * ) / 85 + - 75 + 96 + - 46 + - - 48 ) + + 1 col0
----
179

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL 86 + + NULLIF ( + + 92, COUNT ( * ) + + 10 + - 1 + + - ( 51 ) + - 68 * - COUNT ( * ) / 85 + - 75 + 96 + - 46 + - - 48 ) + + 1 col0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL - 53 * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL - 53 * COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL 50 - COUNT( + ( - 32 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL 50 - COUNT ( + ( - 32 ) ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - CASE 17 WHEN - 5 THEN NULL WHEN + - 97 THEN NULL ELSE - COUNT( * ) - + 23 * + - 27 END
----
-620

skipif mysql # not compatible
query I rowsort label-2755
SELECT - CASE 17 WHEN - 5 THEN NULL WHEN + - 97 THEN NULL ELSE - COUNT ( * ) - + 23 * + - 27 END
----
-620

query I rowsort
SELECT + 14 * ( - - 27 ) AS col1
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT DISTINCT 0 AS col1, + 26 * MIN( - 27 ) AS col0
----
0
-702

skipif mysql # not compatible
query II rowsort label-2757
SELECT DISTINCT 0 AS col1, + 26 * MIN ( - 27 ) AS col0
----
0
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL COUNT( * ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL COUNT ( * ) * - 52
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT + 43 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT + 43 / 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2760
SELECT - COUNT( ALL + CAST( + 86 AS SIGNED ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2760
SELECT - COUNT ( ALL + CAST ( + 86 AS INTEGER ) ) col1
----
-1

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

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

query II rowsort
SELECT DISTINCT 13 AS col0, 10 * - + 68 AS col1
----
13
-680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2763
SELECT ALL - MIN( - 84 ) * + - ( - + 18 ) + - - 37 DIV + ( + 96 ) col2
----
1512

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - MIN ( - 84 ) * + - ( - + 18 ) + - - 37 / + ( + 96 ) col2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT SUM( DISTINCT + 16 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-2764
SELECT SUM ( DISTINCT + 16 ) col1
----
16

query I rowsort
SELECT ALL + 91 * - - ( - 10 ) - + 89
----
-999

query I rowsort
SELECT + - 22 * + 66 AS col2
----
-1452

query I rowsort
SELECT - + 47 * + 38 * 21
----
-37506

query I rowsort
SELECT ALL + + 84
----
84

query II rowsort
SELECT 1 AS col1, - 51
----
1
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT + 63 * - 77 + + 83 AS col1, COUNT( * )
----
-4768
1

skipif mysql # not compatible
query II rowsort label-2770
SELECT + 63 * - 77 + + 83 AS col1, COUNT ( * )
----
-4768
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2771
SELECT 44 AS col1, - COUNT( * ) * 15
----
44
-15

skipif mysql # not compatible
query II rowsort label-2771
SELECT 44 AS col1, - COUNT ( * ) * 15
----
44
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2772
SELECT - 50 * + - ( - + COALESCE ( - + 26, + + 98 ) ) + 15, + COUNT( + 48 ) AS col0
----
1315
1

skipif mysql # not compatible
query II rowsort label-2772
SELECT - 50 * + - ( - + COALESCE ( - + 26, + + 98 ) ) + 15, + COUNT ( + 48 ) AS col0
----
1315
1

query II rowsort
SELECT ALL - 59 * + 50 * - 57, 24 AS col1
----
168150
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT ALL + ( - 56 ) * - - 80 + 35 + 92 * + COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL + ( - 56 ) * - - 80 + 35 + 92 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 20 * + 57 * - + 88 + + + 56
----
-100264

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL 85 * COALESCE ( + 40, - - COUNT( * ) ) + - 10 AS col1
----
3390

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL 85 * COALESCE ( + 40, - - COUNT ( * ) ) + - 10 AS col1
----
3390

query II rowsort
SELECT DISTINCT + 41 AS col2, - 46 * 26
----
41
-1196

query I rowsort
SELECT NULLIF ( - + 93, 12 * - 10 + CASE + ( + + 22 ) WHEN - 0 / + 60 THEN NULL ELSE 9 * + 4 END + ( + - 20 ) ) AS col2
----
-93

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

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

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

query I rowsort
SELECT DISTINCT + 12 - + - 97 + + 40 col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT DISTINCT + MIN( ALL - 79 ) * - 18 AS col1
----
1422

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT + MIN ( ALL - 79 ) * - 18 AS col1
----
1422

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT 97 - - COUNT( * ) - + ( 55 ) + + + 61 col1
----
104

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT 97 - - COUNT ( * ) - + ( 55 ) + + + 61 col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-2784
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - 8
----
-9

query I rowsort
SELECT ALL ( + - 58 ) AS col1
----
-58

query I rowsort
SELECT - 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT - COUNT( * ) - 48
----
-49

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT - COUNT ( * ) - 48
----
-49

query II rowsort
SELECT - 26 * - 95 AS col2, + 44 * + 63
----
2470
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2789
SELECT ALL - CAST( - 0 AS SIGNED ) * + - CASE - + 28 WHEN 70 * - - ( - 47 ) THEN + 50 END - + 82 AS col0, COUNT( * ) * + NULLIF ( 18, + + 38 * + 8 DIV + 76 ) * - + 80 + - 58 + + - NULLIF ( - NULLIF ( + 40, + 76 * 86 * + + 86 ), - - 72 * 9 + - + 64 ) - + CASE - 97 WHEN - + CAST( NULL AS SIGNED ) THEN + 21 ELSE - 14 * + + COUNT( * ) + - + 75 DIV - COUNT( * ) END AS col0
----
NULL
-1519

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL - CAST ( - 0 AS INTEGER ) * + - CASE - + 28 WHEN 70 * - - ( - 47 ) THEN + 50 END - + 82 AS col0, COUNT ( * ) * + NULLIF ( 18, + + 38 * + 8 / + 76 ) * - + 80 + - 58 + + - NULLIF ( - NULLIF ( + 40, + 76 * 86 * + + 86 ), - - 72 * 9 + - + 64 ) - + CASE - 97 WHEN - + CAST ( NULL AS INTEGER ) THEN + 21 ELSE - 14 * + + COUNT ( * ) + - + 75 / - COUNT ( * ) END AS col0
----
NULL
-1519

query I rowsort
SELECT - 2 * - 99 AS col1
----
198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2791
SELECT DISTINCT ( CASE - 15 WHEN + + 90 * - 83 * - CAST( NULL AS DECIMAL ) + - + 70 + + 24 * + NULLIF ( - + 52, - + ( + + 27 ) ) THEN + COALESCE ( - 63, - - 56 / - + 27 + 9, - 83 * 63 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT ( CASE - 15 WHEN + + 90 * - 83 * - CAST ( NULL AS REAL ) + - + 70 + + 24 * + NULLIF ( - + 52, - + ( + + 27 ) ) THEN + COALESCE ( - 63, - - 56 / - + 27 + 9, - 83 * 63 ) END )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT CAST( 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-2793
SELECT CAST ( 96 AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT + - COUNT( * ) * - MAX( DISTINCT + 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-2794
SELECT + - COUNT ( * ) * - MAX ( DISTINCT + 83 ) col2
----
83

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

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

query I rowsort
SELECT ALL - - 25 + - + 7
----
18

query I rowsort
SELECT + 94 - + - 37 AS col2
----
131

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

skipif mysql # not compatible
query I rowsort label-2798
SELECT + 99 / - - COUNT ( * ) AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT ALL + 85 DIV + 7 + - + 19 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + 85 / + 7 + - + 19 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2800
SELECT ALL - 70 / + + 55 + + ( - 60 ) * + 35 - CASE 87 WHEN - 0 / - - 10 THEN - + SUM( DISTINCT + + 14 ) * - 56 + + COUNT( * ) + + 3 * CAST( NULL AS SIGNED ) END * + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - 70 / + + 55 + + ( - 60 ) * + 35 - CASE 87 WHEN - 0 / - - 10 THEN - + SUM ( DISTINCT + + 14 ) * - 56 + + COUNT ( * ) + + 3 * CAST ( NULL AS INTEGER ) END * + - 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT ALL 33 DIV + - 34 + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL 33 / + - 34 + 19 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT DISTINCT + SUM( - 61 ) * ( 58 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + SUM ( - 61 ) * ( 58 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2803
SELECT + - 6 * + SUM( - + 34 ) + CAST( NULL AS SIGNED ) - - + 12 * 49 + + CAST( 77 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT + - 6 * + SUM ( - + 34 ) + CAST ( NULL AS INTEGER ) - - + 12 * 49 + + CAST ( 77 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2804
SELECT ALL ( 49 ) DIV + ( + + COUNT( * ) ) - 97 + - MAX( ALL + 61 ) + - 27 + + COUNT( * ) * CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL ( 49 ) / + ( + + COUNT ( * ) ) - 97 + - MAX ( ALL + 61 ) + - 27 + + COUNT ( * ) * CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-137

query I rowsort
SELECT + + 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + 68 / + + 10 + + - CASE + ( COUNT( * ) ) WHEN - AVG ( DISTINCT - 61 ) * - 27 + + + 32 THEN 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT + 68 / + + 10 + + - CASE + ( COUNT ( * ) ) WHEN - AVG ( DISTINCT - 61 ) * - 27 + + + 32 THEN 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT - 28 + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2807
SELECT - 28 + COUNT ( * ) AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2808
SELECT ALL 34 DIV + 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL 34 / + 46 AS col1
----
0

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

query I rowsort
SELECT - 45 * - 36 + 47 * + 93 AS col1
----
5991

query I rowsort
SELECT ALL 10 - + 37
----
-27

query I rowsort
SELECT DISTINCT - 49 AS col2
----
-49

query II rowsort
SELECT DISTINCT 39 - - 17 + - 17 AS col1, - 37 + - 93 + + 29 + 42
----
39
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ( - 29 ) * COUNT( * ) + + - ( - 7 ) + + 51
----
29

skipif mysql # not compatible
query I rowsort label-2814
SELECT ( - 29 ) * COUNT ( * ) + + - ( - 7 ) + + 51
----
29

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT DISTINCT + CAST( 71 AS SIGNED ) * + MAX( DISTINCT - - 25 ) AS col0
----
1775

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + CAST ( 71 AS INTEGER ) * + MAX ( DISTINCT - - 25 ) AS col0
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT COUNT( * ) * 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT COUNT ( * ) * 51 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT CAST( + + ( + - 89 ) AS SIGNED ) + + 11
----
-78

skipif mysql # not compatible
query I rowsort label-2818
SELECT CAST ( + + ( + - 89 ) AS INTEGER ) + + 11
----
-78

query I rowsort
SELECT - 69 * + - 44 + + - 84
----
2952

query II rowsort
SELECT DISTINCT 85 col2, 30 AS col0
----
85
30

query I rowsort
SELECT ALL 91 col1
----
91

query I rowsort
SELECT 16 * 68 AS col1
----
1088

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2824
SELECT DISTINCT 96 AS col0, + CAST( 90 AS SIGNED )
----
96
90

skipif mysql # not compatible
query II rowsort label-2824
SELECT DISTINCT 96 AS col0, + CAST ( 90 AS INTEGER )
----
96
90

query I rowsort
SELECT ALL 48 col0
----
48

query I rowsort
SELECT 32 + - - 34 * - 86 + + 49
----
-2843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2827
SELECT - 56 + - - SUM( ALL + 37 ) + - 47 + + - COALESCE ( + 41, - 68 + - 1 DIV - 96 ) * + + ( + - 43 )
----
1697

skipif mysql # not compatible
query I rowsort label-2827
SELECT - 56 + - - SUM ( ALL + 37 ) + - 47 + + - COALESCE ( + 41, - 68 + - 1 / - 96 ) * + + ( + - 43 )
----
1697

query I rowsort
SELECT ALL + 74 + - 57
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT + 22 DIV + - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2829
SELECT + 22 / + - 87 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT + ( ( - COUNT( * ) ) ) + CAST( - 31 AS SIGNED ) - - + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-2830
SELECT + ( ( - COUNT ( * ) ) ) + CAST ( - 31 AS INTEGER ) - - + COUNT ( * )
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-2831
SELECT 99 AS col0, 38 DIV - - 26
----
99
1

skipif mysql # not compatible
query II rowsort label-2831
SELECT 99 AS col0, 38 / - - 26
----
99
1

query I rowsort
SELECT - + 96
----
-96

query I rowsort
SELECT ALL - 39 + 43 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT + 81 + - NULLIF ( + COUNT( * ), + 77 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + 81 + - NULLIF ( + COUNT ( * ), + 77 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL + - 93 + COUNT( ALL + 53 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL + - 93 + COUNT ( ALL + 53 ) AS col1
----
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL 25 + - - COUNT( * ) * + + 3
----
28

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL 25 + - - COUNT ( * ) * + + 3
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT + - 30 DIV + 38 - 84 * + 68 col1
----
-5712

skipif mysql # not compatible
query I rowsort label-2838
SELECT + - 30 / + 38 - 84 * + 68 col1
----
-5712

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT + 8 * - 16 + + 2 DIV - 46 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-2839
SELECT + 8 * - 16 + + 2 / - 46 AS col2
----
-128

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

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

query I rowsort
SELECT DISTINCT 96 * - 72 AS col1
----
-6912

query I rowsort
SELECT 81 * 96 * - + ( - - 11 ) * - 88
----
7527168

query I rowsort
SELECT 17 * 87
----
1479

query I rowsort
SELECT DISTINCT 28 * - - 30
----
840

query I rowsort
SELECT ALL - 56 AS col2
----
-56

query I rowsort
SELECT ALL - 65 col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT 30 DIV 4 - + - 27
----
34

skipif mysql # not compatible
query I rowsort label-2847
SELECT 30 / 4 - + - 27
----
34

query I rowsort
SELECT ALL 75 - - - 28 + + - 12 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL - MIN( ALL - 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - MIN ( ALL - 69 ) AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2850
SELECT COUNT( * ) * 46 + 34 * + 34 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT COUNT ( * ) * 46 + 34 * + 34 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT 26 DIV 14 DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT 26 / 14 / - 10
----
0

query II rowsort
SELECT NULLIF ( - 94, - 60 ) + - ( ( 32 ) ) AS col2, - 55 AS col0
----
-126
-55

query I rowsort
SELECT - 65 * 87 - - + 46
----
-5609

query II rowsort
SELECT ALL - 71, 5 AS col0
----
-71
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT + MIN( - 67 ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-2855
SELECT + MIN ( - 67 ) col1
----
-67

query II rowsort
SELECT 2, 57 - + + 6 AS col2
----
2
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT - MAX( ALL - - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2858
SELECT - MAX ( ALL - - 55 ) AS col1
----
-55

query II rowsort
SELECT ALL 91 col0, 43
----
91
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT ALL MAX( ALL - + ( + 84 ) ) + + - 91 * - 56
----
5012

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL MAX ( ALL - + ( + 84 ) ) + + - 91 * - 56
----
5012

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

query II rowsort
SELECT 2, + 2 + - 13 AS col2
----
2
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2864
SELECT ALL + 4 + - + COALESCE ( - + CASE + 68 WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN + ( - ( - + 47 ) ) * + COUNT( * ) - SUM( - 25 ) THEN + - 42 END, + 72 * 48 + - 16 ) col2
----
-3436

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL + 4 + - + COALESCE ( - + CASE + 68 WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN + ( - ( - + 47 ) ) * + COUNT ( * ) - SUM ( - 25 ) THEN + - 42 END, + 72 * 48 + - 16 ) col2
----
-3436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT 27 + + NULLIF ( 78, - - 16 + 44 ) / - + 61 * - CAST( NULL AS SIGNED ) * + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT 27 + + NULLIF ( 78, - - 16 + 44 ) / - + 61 * - CAST ( NULL AS INTEGER ) * + + 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2866
SELECT + CAST( NULL AS SIGNED ) AS col1, - 79 - + 63 DIV - 89 + + 67 AS col1
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-2866
SELECT + CAST ( NULL AS INTEGER ) AS col1, - 79 - + 63 / - 89 + + 67 AS col1
----
NULL
-12

query I rowsort
SELECT ALL + + 33 + + 93 + + 80 + - 84
----
122

query II rowsort
SELECT ALL 98 AS col2, 9
----
98
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - 29 - + MAX( - 68 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2869
SELECT - 29 - + MAX ( - 68 ) AS col1
----
39

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

skipif mysql # not compatible
query I rowsort label-2870
SELECT + SUM ( + + 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2871
SELECT - 56 + - 16 * CAST( NULL AS SIGNED ) * - 76 + - CASE + + 25 WHEN MAX( 94 ) THEN + 86 + - 1 + + COUNT( * ) - + 26 WHEN + ( COUNT( * ) ) THEN NULL ELSE NULL END, + 30 AS col2
----
NULL
30

skipif mysql # not compatible
query II rowsort label-2871
SELECT - 56 + - 16 * CAST ( NULL AS INTEGER ) * - 76 + - CASE + + 25 WHEN MAX ( 94 ) THEN + 86 + - 1 + + COUNT ( * ) - + 26 WHEN + ( COUNT ( * ) ) THEN NULL ELSE NULL END, + 30 AS col2
----
NULL
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL - - ( 85 ) * CAST( NULL AS SIGNED ) / + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - - ( 85 ) * CAST ( NULL AS INTEGER ) / + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - + SUM( + - 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2873
SELECT - + SUM ( + - 21 ) AS col0
----
21

query I rowsort
SELECT ALL + 2 + 11 - 59 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2875
SELECT - + 19 AS col0, COUNT( DISTINCT + CAST( - 84 AS SIGNED ) ) DIV - 12 AS col2
----
-19
0

skipif mysql # not compatible
query II rowsort label-2875
SELECT - + 19 AS col0, COUNT ( DISTINCT + CAST ( - 84 AS INTEGER ) ) / - 12 AS col2
----
-19
0

query II rowsort
SELECT - 44, + 96 AS col2
----
-44
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2877
SELECT ALL - + 78 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL - + 78 / 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT + 23 + - 66 AS col0, - 31 + - + COUNT( + 54 ) AS col2
----
-43
-32

skipif mysql # not compatible
query II rowsort label-2878
SELECT + 23 + - 66 AS col0, - 31 + - + COUNT ( + 54 ) AS col2
----
-43
-32

query I rowsort
SELECT ( - + 15 ) - + 91
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL - - 53 * + - 97 * ( + COUNT( * ) )
----
-5141

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - - 53 * + - 97 * ( + COUNT ( * ) )
----
-5141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2881
SELECT - 74 * 36 - - 90 + + - 88 + + 45 * + 12 * + 18 * + - 1 * - + CAST( 63 AS SIGNED ) * - 5 col1, + 46 DIV + + ( + MAX( DISTINCT + 39 ) )
----
-3064462
1

skipif mysql # not compatible
query II rowsort label-2881
SELECT - 74 * 36 - - 90 + + - 88 + + 45 * + 12 * + 18 * + - 1 * - + CAST ( 63 AS INTEGER ) * - 5 col1, + 46 / + + ( + MAX ( DISTINCT + 39 ) )
----
-3064462
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2882
SELECT + 50 AS col1, 7 DIV + - ( + 94 ) * + + 30 AS col0
----
50
0

skipif mysql # not compatible
query II rowsort label-2882
SELECT + 50 AS col1, 7 / + - ( + 94 ) * + + 30 AS col0
----
50
0

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

query II rowsort
SELECT ALL - 25 * - 76 AS col2, + 50
----
1900
50

query I rowsort
SELECT - ( + + 52 ) * + - 84 + - 65 + + ( - + 95 )
----
4208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT COALESCE ( + - 28, + ( + 55 ), 60 * - - COUNT( * ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-2887
SELECT COALESCE ( + - 28, + ( + 55 ), 60 * - - COUNT ( * ) ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT DISTINCT + COALESCE ( + - 52, - + 62 * - - CAST( NULL AS SIGNED ) )
----
-52

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + COALESCE ( + - 52, - + 62 * - - CAST ( NULL AS INTEGER ) )
----
-52

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

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

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

query I rowsort
SELECT - ( - + 97 ) + + 5 AS col2
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT + 15 + + 7 DIV - 72 + 87 * + 78 AS col1
----
6801

skipif mysql # not compatible
query I rowsort label-2892
SELECT + 15 + + 7 / - 72 + 87 * + 78 AS col1
----
6801

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT ALL - 63 DIV - 7
----
9

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - 63 / - 7
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT DISTINCT - 30 * - 16 * + COUNT( * ) + + 52 AS col2
----
532

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT - 30 * - 16 * + COUNT ( * ) + + 52 AS col2
----
532

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2895
SELECT ALL - CASE + + AVG ( ALL + 62 ) WHEN + SUM( 82 ) + ( - CASE CAST( - - ( - 41 ) AS DECIMAL ) WHEN + + ( - COUNT( * ) ) THEN + - 12 WHEN + - 91 - 96 THEN NULL WHEN + 25 + - 1 THEN NULL END ) * + COUNT( * ) * + + MAX( DISTINCT - 61 ) * COUNT( * ) * - 5 + + 6 THEN 15 * + COUNT( * ) * - - 96 ELSE NULL END * - 81 + 75 / + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL - CASE + + AVG ( ALL + 62 ) WHEN + SUM ( 82 ) + ( - CASE CAST ( - - ( - 41 ) AS REAL ) WHEN + + ( - COUNT ( * ) ) THEN + - 12 WHEN + - 91 - 96 THEN NULL WHEN + 25 + - 1 THEN NULL END ) * + COUNT ( * ) * + + MAX ( DISTINCT - 61 ) * COUNT ( * ) * - 5 + + 6 THEN 15 * + COUNT ( * ) * - - 96 ELSE NULL END * - 81 + 75 / + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2896
SELECT ALL + 97 * COALESCE ( 42, - 75, - NULLIF ( - - COUNT( * ), - 53 ) + + + 48 / - - NULLIF ( - NULLIF ( - + 53, - - 89 ), - 84 - - 88 ) ) + - COUNT( - 95 ) + - 0 * - COUNT( * ) - + - ( + COUNT( * ) ) + + + 78 / + - 15 + - 44 * + - COALESCE ( + SUM( + 48 ), COALESCE ( - 23, + + COUNT( * ) * - 71 * - 0 ), + 46 + + 17 ) * + + 4 + - CASE - MIN( 38 ) WHEN + MIN( + 27 ) + 7 THEN + ( + MAX( ALL 31 ) ) * COUNT( * ) + CAST( - MIN( ALL 24 ) AS SIGNED ) * 44 WHEN - 3 * 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + 97 * COALESCE ( 42, - 75, - NULLIF ( - - COUNT ( * ), - 53 ) + + + 48 / - - NULLIF ( - NULLIF ( - + 53, - - 89 ), - 84 - - 88 ) ) + - COUNT ( - 95 ) + - 0 * - COUNT ( * ) - + - ( + COUNT ( * ) ) + + + 78 / + - 15 + - 44 * + - COALESCE ( + SUM ( + 48 ), COALESCE ( - 23, + + COUNT ( * ) * - 71 * - 0 ), + 46 + + 17 ) * + + 4 + - CASE - MIN ( 38 ) WHEN + MIN ( + 27 ) + 7 THEN + ( + MAX ( ALL 31 ) ) * COUNT ( * ) + CAST ( - MIN ( ALL 24 ) AS INTEGER ) * 44 WHEN - 3 * 89 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2897
SELECT MAX( 34 ) AS col2, 41 * 77
----
34
3157

skipif mysql # not compatible
query II rowsort label-2897
SELECT MAX ( 34 ) AS col2, 41 * 77
----
34
3157

onlyif mysql # aggregate syntax: 
query III rowsort label-2898
SELECT + MAX( ALL - 64 ) AS col2, 24 + - 99 * - - 60, + 60 col1
----
-64
-5916
60

skipif mysql # not compatible
query III rowsort label-2898
SELECT + MAX ( ALL - 64 ) AS col2, 24 + - 99 * - - 60, + 60 col1
----
-64
-5916
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2899
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) + 52 AS col1, 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-2899
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) + 52 AS col1, 34
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL COUNT( * ) + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL COUNT ( * ) + - 19
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2901
SELECT 91 * + ( + - 56 ) + + - 13 + + + 12 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
-5097
NULL

skipif mysql # not compatible
query II rowsort label-2901
SELECT 91 * + ( + - 56 ) + + - 13 + + + 12 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
-5097
NULL

query I rowsort
SELECT - 91 * - + ( + 14 ) col1
----
1274

onlyif mysql # DIV for integer division: 
query II rowsort label-2903
SELECT ALL 35 DIV - 60 - + 34 + 80 + 18 + - COALESCE ( + 90, + 25 + - 31, + 89 ) - - - 78 + + 38 * - 31, 46 + - 92 * + 1 AS col1
----
-1282
-46

skipif mysql # not compatible
query II rowsort label-2903
SELECT ALL 35 / - 60 - + 34 + 80 + 18 + - COALESCE ( + 90, + 25 + - 31, + 89 ) - - - 78 + + 38 * - 31, 46 + - 92 * + 1 AS col1
----
-1282
-46

query I rowsort
SELECT ALL ( 10 ) + - 83 col1
----
-73

query I rowsort
SELECT + - 86 + ( - ( + 62 ) ) - + 6
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT + 81 + - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT + 81 + - COUNT ( * ) AS col1
----
80

query I rowsort
SELECT DISTINCT 72 col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT + - 11 + CAST( - 39 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-2908
SELECT + - 11 + CAST ( - 39 AS INTEGER )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2909
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - COALESCE ( - 12, + 36 * 67 ) AS col1, + NULLIF ( 72, 11 ) + - - 41
----
NULL
113

skipif mysql # not compatible
query II rowsort label-2909
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - COALESCE ( - 12, + 36 * 67 ) AS col1, + NULLIF ( 72, 11 ) + - - 41
----
NULL
113

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT DISTINCT + 73 - + 78, COUNT( * ) + - 67 - 30 * - 20 * + 10 * - 9 AS col1
----
-5
-54066

skipif mysql # not compatible
query II rowsort label-2910
SELECT DISTINCT + 73 - + 78, COUNT ( * ) + - 67 - 30 * - 20 * + 10 * - 9 AS col1
----
-5
-54066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT DISTINCT - 98 - + CAST( NULL AS SIGNED ) + - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - 98 - + CAST ( NULL AS INTEGER ) + - + 59
----
NULL

query I rowsort
SELECT DISTINCT + 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT - ( - NULLIF ( + COUNT( * ), - - 92 ) ) + - + 8 + ( ( + CAST( - 48 AS SIGNED ) ) ) * + 11 * + 40
----
-21127

skipif mysql # not compatible
query I rowsort label-2913
SELECT - ( - NULLIF ( + COUNT ( * ), - - 92 ) ) + - + 8 + ( ( + CAST ( - 48 AS INTEGER ) ) ) * + 11 * + 40
----
-21127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT - 4 + + 24 + COUNT( * ) * - CAST( ( - - 95 ) AS SIGNED ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2914
SELECT - 4 + + 24 + COUNT ( * ) * - CAST ( ( - - 95 ) AS INTEGER ) AS col0
----
-75

query I rowsort
SELECT ALL 45 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT MIN( - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT MIN ( - 44 ) AS col0
----
-44

query I rowsort
SELECT - - 59 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT CASE - 5 WHEN + 90 THEN - CASE + 75 WHEN + ( 73 ) THEN NULL WHEN + 63 THEN + + 49 * - - 38 * + 4 ELSE - CAST( NULL AS SIGNED ) END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT CASE - 5 WHEN + 90 THEN - CASE + 75 WHEN + ( 73 ) THEN NULL WHEN + 63 THEN + + 49 * - - 38 * + 4 ELSE - CAST ( NULL AS INTEGER ) END ELSE NULL END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL + COUNT( * ) * + + 48 * 38 * + - 52 AS col2
----
-94848

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + COUNT ( * ) * + + 48 * 38 * + - 52 AS col2
----
-94848

onlyif mysql # DIV for integer division: 
query II rowsort label-2921
SELECT ALL + 46 col0, + 66 + 37 + 82 DIV + 54
----
46
104

skipif mysql # not compatible
query II rowsort label-2921
SELECT ALL + 46 col0, + 66 + 37 + 82 / + 54
----
46
104

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT - 63 DIV - + 78 * 35
----
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT - 63 / - + 78 * 35
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2924
SELECT + 10 * ( + 42 ), - CAST( NULL AS SIGNED ) - + 43 * + - 37 - 34 col1
----
420
NULL

skipif mysql # not compatible
query II rowsort label-2924
SELECT + 10 * ( + 42 ), - CAST ( NULL AS INTEGER ) - + 43 * + - 37 - 34 col1
----
420
NULL

query I rowsort
SELECT - 15 * - - CASE - - 90 WHEN 96 THEN NULL ELSE 64 END AS col0
----
-960

query I rowsort
SELECT - 86 * + 62 * 13 AS col1
----
-69316

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ( - CASE - 90 WHEN + - 32 THEN NULL WHEN + COUNT( * ) + ( + 82 ) THEN 38 WHEN 47 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT ( - CASE - 90 WHEN + - 32 THEN NULL WHEN + COUNT ( * ) + ( + 82 ) THEN 38 WHEN 47 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT ( - 13 ) AS col2
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2929
SELECT ALL + 53 * - 57 * - 30 * CAST( NULL AS DECIMAL ) + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + 53 * - 57 * - 30 * CAST ( NULL AS REAL ) + + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT - CASE + 81 WHEN + 75 * - 37 + + COUNT( * ) THEN NULL WHEN - 18 + 87 THEN - 85 ELSE NULL END * + 91 - + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT - CASE + 81 WHEN + 75 * - 37 + + COUNT ( * ) THEN NULL WHEN - 18 + 87 THEN - 85 ELSE NULL END * + 91 - + 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT ALL + COUNT( - + 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + COUNT ( - + 10 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2932
SELECT DISTINCT - 9 * 18 + CAST( + ( - COUNT( * ) ) AS SIGNED ) + + MAX( - - ( + - 25 ) ) AS col1, - 73 AS col0
----
-188
-73

skipif mysql # not compatible
query II rowsort label-2932
SELECT DISTINCT - 9 * 18 + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + + MAX ( - - ( + - 25 ) ) AS col1, - 73 AS col0
----
-188
-73

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

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

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

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

query I rowsort
SELECT ALL + 59 * + - 91 + 74 AS col0
----
-5295

query I rowsort
SELECT ALL - 76 * + + 78 + + - 5 * - - 49
----
-6173

query I rowsort
SELECT ( - 59 )
----
-59

query I rowsort
SELECT 5 * 75 * + 0 + 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT + COALESCE ( COUNT( * ), + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-2939
SELECT + COALESCE ( COUNT ( * ), + 26 )
----
1

query II rowsort
SELECT + 45, - 36 * 95 AS col2
----
45
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL 66 * + 51 + + COALESCE ( + + 49, COUNT( * ) * + 84 ) + - 25 * - 65 * - - MIN( + 60 )
----
100915

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL 66 * + 51 + + COALESCE ( + + 49, COUNT ( * ) * + 84 ) + - 25 * - 65 * - - MIN ( + 60 )
----
100915

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2942
SELECT ALL - 33 * ( + 4 ) + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - 33 * ( + 4 ) + - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 32 * + - 52 * + 22 - + 32 AS col0
----
36576

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL + COALESCE ( - ( - COUNT( * ) ), - 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + COALESCE ( - ( - COUNT ( * ) ), - 17 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2945
SELECT - - 15 DIV - 8 + + 66 AS col0, 43 * 61 DIV - + 73
----
65
-35

skipif mysql # not compatible
query II rowsort label-2945
SELECT - - 15 / - 8 + + 66 AS col0, 43 * 61 / - + 73
----
65
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT 57 * 46 - - 3 + + - 23 DIV + 20 + + 11 * + 44 + - - 60 col0
----
3168

skipif mysql # not compatible
query I rowsort label-2946
SELECT 57 * 46 - - 3 + + - 23 / + 20 + + 11 * + 44 + - - 60 col0
----
3168

query II rowsort
SELECT ALL + 92 col0, 90
----
92
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 40 - 75 * - 54 + 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 40 - 75 * - 54 + 38 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2949
SELECT ALL + CAST( - ( - - 26 ) AS SIGNED ) AS col1, + MIN( + 55 ) / 34 - CAST( NULL AS SIGNED ) / - 89
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-2949
SELECT ALL + CAST ( - ( - - 26 ) AS INTEGER ) AS col1, + MIN ( + 55 ) / 34 - CAST ( NULL AS INTEGER ) / - 89
----
-26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL + 60 * - ( - CASE + COUNT( * ) WHEN 93 THEN + + 21 * - ( + - 82 ) + + - 46 * + 41 WHEN - + 59 THEN 70 ELSE ( - - 60 ) END ) * NULLIF ( - - NULLIF ( + CASE - CASE - - 46 WHEN + + COUNT( * ) THEN NULL ELSE 58 END WHEN + 47 THEN + 34 WHEN ( 1 ) THEN + 15 ELSE NULL END, - COUNT( DISTINCT + 20 ) + + 94 ), - 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + 60 * - ( - CASE + COUNT ( * ) WHEN 93 THEN + + 21 * - ( + - 82 ) + + - 46 * + 41 WHEN - + 59 THEN 70 ELSE ( - - 60 ) END ) * NULLIF ( - - NULLIF ( + CASE - CASE - - 46 WHEN + + COUNT ( * ) THEN NULL ELSE 58 END WHEN + 47 THEN + 34 WHEN ( 1 ) THEN + 15 ELSE NULL END, - COUNT ( DISTINCT + 20 ) + + 94 ), - 97 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 96 * + - 34 * ( - 61 ) - + - AVG ( CASE - + 60 WHEN - 67 + + + 54 THEN - + NULLIF ( - - 23, - + 71 ) * + 83 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2952
SELECT - 56 AS col0, COALESCE ( - COUNT( * ), 5, 84 ) * + 69 * + 76 + - COUNT( * ) + - 35 AS col1
----
-56
-5280

skipif mysql # not compatible
query II rowsort label-2952
SELECT - 56 AS col0, COALESCE ( - COUNT ( * ), 5, 84 ) * + 69 * + 76 + - COUNT ( * ) + - 35 AS col1
----
-56
-5280

query II rowsort
SELECT + 90, + 21 col2
----
90
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT DISTINCT - 46, COUNT( * ) col0
----
-46
1

skipif mysql # not compatible
query II rowsort label-2954
SELECT DISTINCT - 46, COUNT ( * ) col0
----
-46
1

query I rowsort
SELECT - 5 + - 19
----
-24

query I rowsort
SELECT 64 + 32 + 10 col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT - MIN( - 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2957
SELECT - MIN ( - 12 ) AS col2
----
12

query II rowsort
SELECT - 90 AS col0, + 4
----
-90
4

query I rowsort
SELECT ALL ( - 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT + 27 - - - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2960
SELECT + 27 - - - COUNT ( * ) AS col1
----
26

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

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

query I rowsort
SELECT + 41 + - 39
----
2

query I rowsort
SELECT 74 + - 37 * + 74 AS col2
----
-2664

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT MAX( + 37 ) + - 1 + + CAST( NULL AS SIGNED ) + + + 69 - + 28 * 99 * - 88 * - 77 * - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT MAX ( + 37 ) + - 1 + + CAST ( NULL AS INTEGER ) + + + 69 - + 28 * 99 * - 88 * - 77 * - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL COUNT( * ) * + - 77 * - 14 AS col1
----
1078

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL COUNT ( * ) * + - 77 * - 14 AS col1
----
1078

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2969
SELECT 0 + + 29 - - 44 + + CAST( NULL AS DECIMAL ) / - - MAX( 65 ) * + 68 * 8 * - 42, - 76 AS col2
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-2969
SELECT 0 + + 29 - - 44 + + CAST ( NULL AS REAL ) / - - MAX ( 65 ) * + 68 * 8 * - 42, - 76 AS col2
----
NULL
-76

query I rowsort
SELECT 36 - + 90 + + 94
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT - ( + CAST( NULL AS SIGNED ) ) / COALESCE ( 54, + 58 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT - ( + CAST ( NULL AS INTEGER ) ) / COALESCE ( 54, + 58 ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 68 + - + 39
----
29

query I rowsort
SELECT 26 + - ( + - 42 )
----
68

query I rowsort
SELECT ALL - 96 AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT ALL + 9 + + 58 - - 27 * - CAST( - 86 AS SIGNED ) + + COUNT( * ) AS col2
----
2390

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + 9 + + 58 - - 27 * - CAST ( - 86 AS INTEGER ) + + COUNT ( * ) AS col2
----
2390

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT 9 DIV - 59 + - 70 col0
----
-70

skipif mysql # not compatible
query I rowsort label-2976
SELECT 9 / - 59 + - 70 col0
----
-70

query I rowsort
SELECT ALL 38 + + 36 + - + 74 * + + 47
----
-3404

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT DISTINCT ( - + 17 ) DIV 6 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT ( - + 17 ) / 6 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2979
SELECT CAST( NULL AS SIGNED ) * - 4 AS col2, 7 + - - 88 * - 43 AS col2, - 54 * + 75 AS col0
----
NULL
-3777
-4050

skipif mysql # not compatible
query III rowsort label-2979
SELECT CAST ( NULL AS INTEGER ) * - 4 AS col2, 7 + - - 88 * - 43 AS col2, - 54 * + 75 AS col0
----
NULL
-3777
-4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2980
SELECT ALL + COUNT( * ) * - - CASE - + COUNT( * ) WHEN - - 11 THEN NULL ELSE - ( 19 ) DIV - - 5 + - 96 END AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + COUNT ( * ) * - - CASE - + COUNT ( * ) WHEN - - 11 THEN NULL ELSE - ( 19 ) / - - 5 + - 96 END AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT CAST( NULL AS SIGNED ) + + CAST( - CASE - MAX( - CAST( + 66 AS SIGNED ) ) WHEN + 7 THEN NULL WHEN 14 THEN NULL WHEN + + 30 THEN - 35 - 70 * + 20 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT CAST ( NULL AS INTEGER ) + + CAST ( - CASE - MAX ( - CAST ( + 66 AS INTEGER ) ) WHEN + 7 THEN NULL WHEN 14 THEN NULL WHEN + + 30 THEN - 35 - 70 * + 20 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT 70 + - 20
----
50

query I rowsort
SELECT 50 * - 65 * - + 93 col2
----
302250

query I rowsort
SELECT + 0 * + 93 col2
----
0

query I rowsort
SELECT DISTINCT - + 74
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2986
SELECT DISTINCT + CAST( 2 AS SIGNED ) * + COUNT( * )
----
2

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

query I rowsort
SELECT ALL - 6 - + 90 * - 3 AS col0
----
264

query I rowsort
SELECT 94 + - 55 + + 3 * + + 24 + 10 + + 9 col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT - 66 * - 61 * COALESCE ( - 85, + 21, + 98 DIV + AVG ( 74 ) ) + + 91
----
-342119

skipif mysql # not compatible
query I rowsort label-2989
SELECT - 66 * - 61 * COALESCE ( - 85, + 21, + 98 / + AVG ( 74 ) ) + + 91
----
-342119

query I rowsort
SELECT 40 * - 66
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT MIN( - 83 ) + - + 15 col1
----
-98

skipif mysql # not compatible
query I rowsort label-2991
SELECT MIN ( - 83 ) + - + 15 col1
----
-98

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

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

query I rowsort
SELECT ALL 7 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT 19 * - 61 + - - 4 - - SUM( DISTINCT + 22 ) + + 51
----
-1082

skipif mysql # not compatible
query I rowsort label-2994
SELECT 19 * - 61 + - - 4 - - SUM ( DISTINCT + 22 ) + + 51
----
-1082

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT SUM( DISTINCT + - ( + COALESCE ( + 2, - 80 ) ) ) + - 8 col1
----
-10

skipif mysql # not compatible
query I rowsort label-2995
SELECT SUM ( DISTINCT + - ( + COALESCE ( + 2, - 80 ) ) ) + - 8 col1
----
-10

query I rowsort
SELECT ALL + - 58 * - + 2 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT 50 + - - MIN( ALL + 86 ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-2997
SELECT 50 + - - MIN ( ALL + 86 ) AS col1
----
136

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

query I rowsort
SELECT DISTINCT NULLIF ( + - 92, + - 97 + - - 66 )
----
-92

query I rowsort
SELECT ALL ( + + 59 ) * + 34
----
2006

query I rowsort
SELECT ALL + + 67 * - + 28 AS col2
----
-1876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT DISTINCT 63 + + CAST( + 7 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT 63 + + CAST ( + 7 AS INTEGER ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL COUNT( * ) + - 67 + - 82 * - 97 * - 47 AS col1
----
-373904

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL COUNT ( * ) + - 67 + - 82 * - 97 * - 47 AS col1
----
-373904

query II rowsort
SELECT 41 AS col0, - 29 AS col2
----
41
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT 10 DIV + - 68
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT 10 / + - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT 45 + - - 19 - 46 - + 71 DIV 43 * - + 55 + 33
----
106

skipif mysql # not compatible
query I rowsort label-3006
SELECT 45 + - - 19 - 46 - + 71 / 43 * - + 55 + 33
----
106

query I rowsort
SELECT ALL 98 + - 69 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3008
SELECT ALL 66 AS col1, CAST( NULL AS SIGNED ) + ( SUM( + 86 ) )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-3008
SELECT ALL 66 AS col1, CAST ( NULL AS INTEGER ) + ( SUM ( + 86 ) )
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT DISTINCT + 59 + - COUNT( * ) + 46 + + 98 * - - 47 AS col2
----
4710

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT + 59 + - COUNT ( * ) + 46 + + 98 * - - 47 AS col2
----
4710

query I rowsort
SELECT DISTINCT 9 + 29
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3011
SELECT MAX( - + ( + + 36 ) ), - 77 * 30 AS col2
----
-36
-2310

skipif mysql # not compatible
query II rowsort label-3011
SELECT MAX ( - + ( + + 36 ) ), - 77 * 30 AS col2
----
-36
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT DISTINCT CASE 80 WHEN - - 62 THEN - 95 * + + COUNT( * ) + - 65 ELSE NULL END * - + COUNT( * ) + 12 + - - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT CASE 80 WHEN - - 62 THEN - 95 * + + COUNT ( * ) + - 65 ELSE NULL END * - + COUNT ( * ) + 12 + - - 58 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT - 49 DIV + - 96 - - ( - 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3013
SELECT - 49 / + - 96 - - ( - 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT SUM( DISTINCT 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3014
SELECT SUM ( DISTINCT 42 ) AS col2
----
42

query I rowsort
SELECT ALL ( - - 75 ) * 95 AS col0
----
7125

query I rowsort
SELECT 25 - + + 81 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT COALESCE ( - 4, + + 65 - 49 * - - SUM( DISTINCT 2 ) + + - MAX( DISTINCT - 59 ) ) + - 85 * + 67 + 56 col1
----
-5643

skipif mysql # not compatible
query I rowsort label-3017
SELECT COALESCE ( - 4, + + 65 - 49 * - - SUM ( DISTINCT 2 ) + + - MAX ( DISTINCT - 59 ) ) + - 85 * + 67 + 56 col1
----
-5643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT CAST( - 62 AS SIGNED ) * + 78
----
-4836

skipif mysql # not compatible
query I rowsort label-3018
SELECT CAST ( - 62 AS INTEGER ) * + 78
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL 86 * COUNT( * ) - - ( - 82 ) + - + 33 * 41 AS col2
----
-1349

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL 86 * COUNT ( * ) - - ( - 82 ) + - + 33 * 41 AS col2
----
-1349

query I rowsort
SELECT ( + 28 ) * - 43 * + - 17 AS col1
----
20468

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT + 10 * - 40 - + COUNT( * ) AS col2, + 79
----
-401
79

skipif mysql # not compatible
query II rowsort label-3021
SELECT + 10 * - 40 - + COUNT ( * ) AS col2, + 79
----
-401
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT + SUM( ALL 78 ) col0
----
78

skipif mysql # not compatible
query I rowsort label-3022
SELECT + SUM ( ALL 78 ) col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3023
SELECT DISTINCT - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) / - ( - + 99 ) * MAX( ALL + 91 ) AS col0, 42 * - 98 AS col0
----
NULL
-4116

skipif mysql # not compatible
query II rowsort label-3023
SELECT DISTINCT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / - ( - + 99 ) * MAX ( ALL + 91 ) AS col0, 42 * - 98 AS col0
----
NULL
-4116

query I rowsort
SELECT DISTINCT - + 72 AS col2
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT CAST( + - 57 AS SIGNED ) * - 95 * COUNT( * ) col0
----
5415

skipif mysql # not compatible
query I rowsort label-3026
SELECT CAST ( + - 57 AS INTEGER ) * - 95 * COUNT ( * ) col0
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT + 64 + + - COUNT( * ) * + - COUNT( * ) - - + 67 col1
----
132

skipif mysql # not compatible
query I rowsort label-3027
SELECT + 64 + + - COUNT ( * ) * + - COUNT ( * ) - - + 67 col1
----
132

query I rowsort
SELECT - - 74 * - 2 * - 27 AS col0
----
3996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT + ( + CASE - COUNT( * ) WHEN + COALESCE ( + + 87, - COUNT( * ) / - CAST( NULL AS SIGNED ), + ( - COALESCE ( + 81, 27, 60 ) ) ) THEN NULL WHEN + 11 THEN + 84 + 3 ELSE - COUNT( * ) END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3029
SELECT + ( + CASE - COUNT ( * ) WHEN + COALESCE ( + + 87, - COUNT ( * ) / - CAST ( NULL AS INTEGER ), + ( - COALESCE ( + 81, 27, 60 ) ) ) THEN NULL WHEN + 11 THEN + 84 + 3 ELSE - COUNT ( * ) END ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + - 13 AS col2
----
-13

query I rowsort
SELECT ALL - - 44 * 24 col2
----
1056

query I rowsort
SELECT ALL + 19 * + - 70 AS col0
----
-1330

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL + - 31 * - ( - ( COUNT( * ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + - 31 * - ( - ( COUNT ( * ) ) ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3034
SELECT DISTINCT CASE NULLIF ( - - 82, + 10 + - 81 / + COUNT( * ) * 13 ) WHEN + CASE + 79 WHEN - - 22 * - 17 * + 25 + - + 38 THEN NULL ELSE + SUM( DISTINCT - 93 ) END * + - CASE - COUNT( * ) WHEN COUNT( ALL - 9 ) * - + COUNT( * ) * SUM( - - 64 ) THEN NULL WHEN + - 13 THEN + + 15 / + + 91 + + + NULLIF ( + - 83, - COUNT( * ) + + - 52 ) ELSE + - AVG ( + CAST( NULL AS DECIMAL ) ) - - 39 * - CASE + 12 WHEN AVG ( ALL - 63 ) * + 73 * - + 61 THEN CAST( NULL AS SIGNED ) WHEN - 24 / 41 THEN - 3 - - CASE - 73 WHEN 73 THEN COUNT( * ) * - 37 WHEN 3 * 84 THEN NULL ELSE NULL END * - 67 WHEN - 11 THEN + 49 - 41 * 17 END END THEN - 27 WHEN + 43 + 14 * 19 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT CASE NULLIF ( - - 82, + 10 + - 81 / + COUNT ( * ) * 13 ) WHEN + CASE + 79 WHEN - - 22 * - 17 * + 25 + - + 38 THEN NULL ELSE + SUM ( DISTINCT - 93 ) END * + - CASE - COUNT ( * ) WHEN COUNT ( ALL - 9 ) * - + COUNT ( * ) * SUM ( - - 64 ) THEN NULL WHEN + - 13 THEN + + 15 / + + 91 + + + NULLIF ( + - 83, - COUNT ( * ) + + - 52 ) ELSE + - AVG ( + CAST ( NULL AS REAL ) ) - - 39 * - CASE + 12 WHEN AVG ( ALL - 63 ) * + 73 * - + 61 THEN CAST ( NULL AS INTEGER ) WHEN - 24 / 41 THEN - 3 - - CASE - 73 WHEN 73 THEN COUNT ( * ) * - 37 WHEN 3 * 84 THEN NULL ELSE NULL END * - 67 WHEN - 11 THEN + 49 - 41 * 17 END END THEN - 27 WHEN + 43 + 14 * 19 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT + SUM( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + SUM ( - 44 )
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT + + COUNT( * ) + + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3037
SELECT + + COUNT ( * ) + + 26 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT - + COALESCE ( 46, + COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-3038
SELECT - + COALESCE ( 46, + COUNT ( * ) )
----
-46

query I rowsort
SELECT - + 87 + 10
----
-77

query I rowsort
SELECT - 72 * - 67
----
4824

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL + 76 + + COUNT( * ) + - 79 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + 76 + + COUNT ( * ) + - 79 AS col1
----
-2

query I rowsort
SELECT ALL COALESCE ( + NULLIF ( + + 48, - + 63 * - 10 + 48 / - 42 + - 55 + 68 ), - 50 )
----
48

query II rowsort
SELECT 13 AS col1, ( + 70 ) AS col1
----
13
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT - MIN( ALL + + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-3044
SELECT - MIN ( ALL + + 78 )
----
-78

query I rowsort
SELECT DISTINCT CASE - - 26 WHEN - 19 THEN NULL WHEN - + 72 THEN - AVG ( + + 61 ) * - 88 WHEN - - 77 THEN - 47 ELSE 71 + + 66 + - 42 + - 72 * ( 46 ) * - + 67 * 77 END col0
----
17086703

query I rowsort
SELECT ALL - ( 83 ) + ( - COALESCE ( + 1, ( - 17 ) + + 60, 82 ) ) + + - 27 AS col1
----
-111

query I rowsort
SELECT - 80 + 69
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT - 57 + - SUM( DISTINCT ( - 96 ) )
----
39

skipif mysql # not compatible
query I rowsort label-3048
SELECT - 57 + - SUM ( DISTINCT ( - 96 ) )
----
39

query I rowsort
SELECT ALL 68 + - ( - 15 ) - + ( - 9 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT - 50 * + 32 * - COUNT( * ) * 49
----
78400

skipif mysql # not compatible
query I rowsort label-3050
SELECT - 50 * + 32 * - COUNT ( * ) * 49
----
78400

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT - NULLIF ( + 36, SUM( 59 ) + + 18 ) * - 6 * 0
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - NULLIF ( + 36, SUM ( 59 ) + + 18 ) * - 6 * 0
----
0

query II rowsort
SELECT ALL ( - 83 ) AS col0, - 59 + + 15 * 16 + 87
----
-83
268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3053
SELECT + COALESCE ( - + NULLIF ( + + 49, - - 75 ), + SUM( ALL + - 59 ) + + + 86 DIV - - NULLIF ( - 55, 50 + 84 + - - 41 + + COUNT( * ) + CASE - + COUNT( * ) WHEN - + 80 THEN NULL ELSE + - 65 * + - 85 + - - 13 * + COUNT( * ) END - - 39 * - + CAST( 95 AS DECIMAL ) + COALESCE ( 24, - 33, + ( + 75 ) ) * - 74 ) * 78, + + 14 * + 82 DIV + - 34 * NULLIF ( + 65, - MIN( + 62 ) ) * - CASE WHEN NULL IS NULL THEN 14 END * - 9 - + 34 + - 92 ) - 61 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-3053
SELECT + COALESCE ( - + NULLIF ( + + 49, - - 75 ), + SUM ( ALL + - 59 ) + + + 86 / - - NULLIF ( - 55, 50 + 84 + - - 41 + + COUNT ( * ) + CASE - + COUNT ( * ) WHEN - + 80 THEN NULL ELSE + - 65 * + - 85 + - - 13 * + COUNT ( * ) END - - 39 * - + CAST ( 95 AS REAL ) + COALESCE ( 24, - 33, + ( + 75 ) ) * - 74 ) * 78, + + 14 * + 82 / + - 34 * NULLIF ( + 65, - MIN ( + 62 ) ) * - CASE WHEN NULL IS NULL THEN 14 END * - 9 - + 34 + - 92 ) - 61 AS col0
----
-110

query I rowsort
SELECT - 97 + 9 * - 60 AS col2
----
-637

query I rowsort
SELECT + 3 + + + 70
----
73

query I rowsort
SELECT - 14 * + 5 AS col2
----
-70

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

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

query I rowsort
SELECT - CASE - ( + 91 ) WHEN - 32 * + 70 THEN NULL ELSE + 22 END + - 21 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT ALL 61 DIV + NULLIF ( + + 99, - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL 61 / + NULLIF ( + + 99, - 0 ) AS col2
----
0

query I rowsort
SELECT + 67 + + - 40 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT ALL - ( - 73 ) DIV - 15 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL - ( - 73 ) / - 15 AS col1
----
-4

query I rowsort
SELECT + 44 * + 95 + - 97 AS col2
----
4083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3063
SELECT + CAST( + + 44 AS SIGNED ) * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-3063
SELECT + CAST ( + + 44 AS INTEGER ) * + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT - 13, COUNT( ALL - - 16 ) col0
----
-13
1

skipif mysql # not compatible
query II rowsort label-3064
SELECT - 13, COUNT ( ALL - - 16 ) col0
----
-13
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3067
SELECT - COUNT( * ) + + COUNT( * ) + - 39 * 35 AS col1, + 87
----
-1365
87

skipif mysql # not compatible
query II rowsort label-3067
SELECT - COUNT ( * ) + + COUNT ( * ) + - 39 * 35 AS col1, + 87
----
-1365
87

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

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

query I rowsort
SELECT + + 4 + 54
----
58

query I rowsort
SELECT + 27 * + 12 AS col1
----
324

query I rowsort
SELECT DISTINCT 97 * + 95 - 10
----
9205

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT DISTINCT + 65 * 50 DIV - 62
----
-52

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + 65 * 50 / - 62
----
-52

query I rowsort
SELECT ALL - - 25 * - - 49 AS col2
----
1225

query II rowsort
SELECT + 97, 24 col2
----
97
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT COUNT( * ) * - 34 + + 24 + 16 + + 11
----
17

skipif mysql # not compatible
query I rowsort label-3075
SELECT COUNT ( * ) * - 34 + + 24 + 16 + + 11
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT + + 52 + + 23 + + + 40 + + + AVG ( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT + + 52 + + 23 + + + 40 + + + AVG ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + 40 * - - 6 + - + 71 + COUNT( * ) * 65
----
234

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + 40 * - - 6 + - + 71 + COUNT ( * ) * 65
----
234

query I rowsort
SELECT + 60 * + - 61 + - 40
----
-3700

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - MAX( ALL + + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3079
SELECT - MAX ( ALL + + 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT + 82 AS col0, + 25 * - ( COUNT( * ) )
----
82
-25

skipif mysql # not compatible
query II rowsort label-3080
SELECT + 82 AS col0, + 25 * - ( COUNT ( * ) )
----
82
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3081
SELECT - 4 col0, COUNT( * )
----
-4
1

skipif mysql # not compatible
query II rowsort label-3081
SELECT - 4 col0, COUNT ( * )
----
-4
1

query I rowsort
SELECT - - 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT ( COUNT( * ) ) * + 85 + 34
----
119

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT ( COUNT ( * ) ) * + 85 + 34
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-3084
SELECT + 81 + - 28 col1, 0 + - COUNT( * ) * + 87 + - + ( - 18 ) AS col0
----
53
-69

skipif mysql # not compatible
query II rowsort label-3084
SELECT + 81 + - 28 col1, 0 + - COUNT ( * ) * + 87 + - + ( - 18 ) AS col0
----
53
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT ALL 45 * + 79 / + 30 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL 45 * + 79 / + 30 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 59 + + 57 col2
----
116

query I rowsort
SELECT ALL - 4 - - - 78 * + 94 - + + 42 + + NULLIF ( - 3, - + 30 ) * 55 - - 50 * + 65
----
-4293

query I rowsort
SELECT ALL ( + + 40 ) AS col1
----
40

query I rowsort
SELECT ALL CASE - 82 WHEN + 26 THEN NULL WHEN - 20 + + 59 THEN - 83 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT - CAST( ( + CASE - NULLIF ( + + CAST( 62 AS SIGNED ), - 65 ) WHEN + 25 * + + 86 THEN NULL ELSE + 45 * 95 + AVG ( 85 ) END ) AS SIGNED ) AS col0
----
-4360

skipif mysql # not compatible
query I rowsort label-3090
SELECT - CAST ( ( + CASE - NULLIF ( + + CAST ( 62 AS INTEGER ), - 65 ) WHEN + 25 * + + 86 THEN NULL ELSE + 45 * 95 + AVG ( 85 ) END ) AS INTEGER ) AS col0
----
-4360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT - AVG ( - - CAST( NULL AS SIGNED ) ) + + COUNT( * ) + - + 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT - AVG ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + - + 33 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3092
SELECT ALL COALESCE ( COUNT( * ), COALESCE ( + + ( + 17 ), + 6 - + - 47, 99 * - + CASE + 10 WHEN + + COUNT( * ) + 38 THEN + + 58 * - ( + 41 ) * 9 - + - 83 END ) * - CAST( NULL AS SIGNED ), + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL COALESCE ( COUNT ( * ), COALESCE ( + + ( + 17 ), + 6 - + - 47, 99 * - + CASE + 10 WHEN + + COUNT ( * ) + 38 THEN + + 58 * - ( + 41 ) * 9 - + - 83 END ) * - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL + 41 - + 94
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3094
SELECT DISTINCT ( - 91 ) AS col2, COUNT( * ) DIV - 40
----
-91
0

skipif mysql # not compatible
query II rowsort label-3094
SELECT DISTINCT ( - 91 ) AS col2, COUNT ( * ) / - 40
----
-91
0

query I rowsort
SELECT - 83 col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT ALL + ( - COALESCE ( 93, 43 ) ) - NULLIF ( - 22, - - CAST( NULL AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + ( - COALESCE ( 93, 43 ) ) - NULLIF ( - 22, - - CAST ( NULL AS INTEGER ) )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3097
SELECT DISTINCT - MIN( DISTINCT - + 22 ) DIV + - 6
----
-3

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT - MIN ( DISTINCT - + 22 ) / + - 6
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT - 69 * 0 * CASE + + SUM( + 5 ) WHEN 38 + + MIN( - 59 ) THEN + 99 * COUNT( * ) * 22 - + 28 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT - 69 * 0 * CASE + + SUM ( + 5 ) WHEN 38 + + MIN ( - 59 ) THEN + 99 * COUNT ( * ) * 22 - + 28 END col1
----
NULL

query I rowsort
SELECT ALL + ( - - 90 ) AS col1
----
90

query II rowsort
SELECT ALL - 52 * - - 50 * - 54 AS col1, + 1
----
140400
1

query I rowsort
SELECT 48 + - + NULLIF ( + 53, - + 38 ) AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3102
SELECT 79 DIV 33
----
2

skipif mysql # not compatible
query I rowsort label-3102
SELECT 79 / 33
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL - - CAST( + - 28 AS SIGNED ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL - - CAST ( + - 28 AS INTEGER ) AS col0
----
-28

query I rowsort
SELECT 69 * 68
----
4692

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT DISTINCT - 36 + - 40 + NULLIF ( 17, - 19 * MAX( - + 83 ) ), 27 AS col0
----
-59
27

skipif mysql # not compatible
query II rowsort label-3105
SELECT DISTINCT - 36 + - 40 + NULLIF ( 17, - 19 * MAX ( - + 83 ) ), 27 AS col0
----
-59
27

query I rowsort
SELECT DISTINCT - - NULLIF ( + 90, 46 + + 77 * + + 61 ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT ALL + 61 + + 4 + + + 74 - 53 + 96 * 85 * + + ( - - CASE 88 WHEN - + 19 * + CASE - ( - + 48 ) WHEN - CAST( NULL AS SIGNED ) * 48 THEN + + 38 + + 33 ELSE - + 85 * 22 - 98 END THEN NULL WHEN 11 + - 18 THEN 76 + - + 2 ELSE NULL END ) * + 98 * - 73 * ( ( 66 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL + 61 + + 4 + + + 74 - 53 + 96 * 85 * + + ( - - CASE 88 WHEN - + 19 * + CASE - ( - + 48 ) WHEN - CAST ( NULL AS INTEGER ) * 48 THEN + + 38 + + 33 ELSE - + 85 * 22 - 98 END THEN NULL WHEN 11 + - 18 THEN 76 + - + 2 ELSE NULL END ) * + 98 * - 73 * ( ( 66 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT + MAX( ALL + 57 ) + 98 * + 38 AS col2
----
3781

skipif mysql # not compatible
query I rowsort label-3108
SELECT + MAX ( ALL + 57 ) + 98 * + 38 AS col2
----
3781

query I rowsort
SELECT DISTINCT - + 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL - COUNT( * ) + + - COUNT( * ) + - + COUNT( * ) * - 65
----
63

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) + - + COUNT ( * ) * - 65
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT 28 * - 2 DIV - 2 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3111
SELECT 28 * - 2 / - 2 AS col0
----
28

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

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

query I rowsort
SELECT - 45 - 5 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL COUNT( * ) * + + COALESCE ( 27, - + 18, - 43 )
----
27

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL COUNT ( * ) * + + COALESCE ( 27, - + 18, - 43 )
----
27

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

query I rowsort
SELECT DISTINCT - ( + 66 ) * + 57
----
-3762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3117
SELECT - 13 * + 28 + ( - 17 ) + COUNT( * ) DIV + 63
----
-381

skipif mysql # not compatible
query I rowsort label-3117
SELECT - 13 * + 28 + ( - 17 ) + COUNT ( * ) / + 63
----
-381

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3118
SELECT DISTINCT 99 AS col1, - 41 + + 51 - + COUNT( * ) DIV + 71 * + + 10 * - + 28 * - - 55
----
99
10

skipif mysql # not compatible
query II rowsort label-3118
SELECT DISTINCT 99 AS col1, - 41 + + 51 - + COUNT ( * ) / + 71 * + + 10 * - + 28 * - - 55
----
99
10

query I rowsort
SELECT ALL 69 - 95 AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3120
SELECT 16 + COUNT( * ) + + 44 DIV - - 46 * 89 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3120
SELECT 16 + COUNT ( * ) + + 44 / - - 46 * 89 AS col2
----
17

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

skipif mysql # not compatible
query I rowsort label-3121
SELECT COUNT ( * ) + + 66 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL ( - CAST( NULL AS SIGNED ) ) - - 58 + - - COUNT( * ) + 37 * - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) - - 58 + - - COUNT ( * ) + 37 * - 59 AS col1
----
NULL

query I rowsort
SELECT ALL 68 * - 96
----
-6528

query I rowsort
SELECT ALL 85 * - 98 AS col0
----
-8330

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ( 96 ) + + 50 * 84 + - COUNT( * ) col1
----
4295

skipif mysql # not compatible
query I rowsort label-3125
SELECT ( 96 ) + + 50 * 84 + - COUNT ( * ) col1
----
4295

query I rowsort
SELECT ALL - 83 * + - 48
----
3984

query I rowsort
SELECT DISTINCT 91 * + NULLIF ( - + 69, + 38 )
----
-6279

query I rowsort
SELECT 79 + 77 AS col0
----
156

query I rowsort
SELECT ALL 26 * - 44
----
-1144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3130
SELECT MAX( - 78 ) + + 39 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT MAX ( - 78 ) + + 39 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT CAST( 13 AS SIGNED ) + 17 col0
----
30

skipif mysql # not compatible
query I rowsort label-3131
SELECT CAST ( 13 AS INTEGER ) + 17 col0
----
30

query I rowsort
SELECT 95 + + 74 + - 79
----
90

query II rowsort
SELECT ALL 46, + 68 * - - 67 AS col2
----
46
4556

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT 5 + + 49 DIV 86 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3134
SELECT 5 + + 49 / 86 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3135
SELECT ALL - + 37 + + + SUM( + CAST( NULL AS SIGNED ) ) col2, SUM( ALL + 18 )
----
NULL
18

skipif mysql # not compatible
query II rowsort label-3135
SELECT ALL - + 37 + + + SUM ( + CAST ( NULL AS INTEGER ) ) col2, SUM ( ALL + 18 )
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL + COUNT( * ) + + + NULLIF ( 91, 23 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL + COUNT ( * ) + + + NULLIF ( 91, 23 ) col2
----
92

query I rowsort
SELECT + + 68 * - 20 + - + 60 + 65 AS col0
----
-1355

query I rowsort
SELECT ALL + + 24 * - 13 AS col1
----
-312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3139
SELECT - COALESCE ( + - 23, - COUNT( * ) ) * COUNT( * ) DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3139
SELECT - COALESCE ( + - 23, - COUNT ( * ) ) * COUNT ( * ) / 99 AS col1
----
0

query I rowsort
SELECT 88 * - + 24 AS col0
----
-2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3141
SELECT 81 DIV + ( - 73 ), ( + + COUNT( * ) ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3141
SELECT 81 / + ( - 73 ), ( + + COUNT ( * ) ) AS col1
----
-1
1

query I rowsort
SELECT ALL 35 * + 25 AS col0
----
875

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT ALL + + 40 DIV - 35 + + 67 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + + 40 / - 35 + + 67 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL 49 * + COALESCE ( ( - + 48 ), - 99, COUNT( * ) ) AS col0
----
-2352

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL 49 * + COALESCE ( ( - + 48 ), - 99, COUNT ( * ) ) AS col0
----
-2352

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT 19 - - COUNT( + + 7 )
----
20

skipif mysql # not compatible
query I rowsort label-3146
SELECT 19 - - COUNT ( + + 7 )
----
20

query I rowsort
SELECT 77 * + + 93 + + 15 col0
----
7176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3148
SELECT ALL ( - 44 ) * MAX( - 52 ) + + COALESCE ( + 8, + COUNT( * ) ) + - + 60 DIV - - 93 AS col2, 7 * + + ( - 13 )
----
2296
-91

skipif mysql # not compatible
query II rowsort label-3148
SELECT ALL ( - 44 ) * MAX ( - 52 ) + + COALESCE ( + 8, + COUNT ( * ) ) + - + 60 / - - 93 AS col2, 7 * + + ( - 13 )
----
2296
-91

query I rowsort
SELECT DISTINCT 27 * - 75 AS col2
----
-2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT MIN( - CAST( - - 19 AS SIGNED ) ) * + + 76 * - ( - - ( - 30 ) )
----
-43320

skipif mysql # not compatible
query I rowsort label-3150
SELECT MIN ( - CAST ( - - 19 AS INTEGER ) ) * + + 76 * - ( - - ( - 30 ) )
----
-43320

query II rowsort
SELECT DISTINCT + 69 * - 23 AS col0, - 19 * + - 74 * - 50 + + - 10
----
-1587
-70310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3152
SELECT COUNT( * ) DIV + 48 AS col0, - 8
----
0
-8

skipif mysql # not compatible
query II rowsort label-3152
SELECT COUNT ( * ) / + 48 AS col0, - 8
----
0
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ( - + CASE + + 5 WHEN + - 72 THEN NULL ELSE - + 44 + ( - + COUNT( * ) ) + + 57 END ) * + + 40 + + 4 AS col0
----
-476

skipif mysql # not compatible
query I rowsort label-3153
SELECT ( - + CASE + + 5 WHEN + - 72 THEN NULL ELSE - + 44 + ( - + COUNT ( * ) ) + + 57 END ) * + + 40 + + 4 AS col0
----
-476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3154
SELECT - COALESCE ( + 15, - 28 + + COUNT( * ) ) AS col0, CAST( NULLIF ( - 85, CASE 93 WHEN + 43 THEN - - CAST( NULL AS SIGNED ) * - + ( + 25 ) * + 71 WHEN - - 36 THEN NULL WHEN 30 THEN NULL END + AVG ( - - 71 ) ) AS SIGNED ) DIV 2 + - 30 AS col1
----
-15
-72

skipif mysql # not compatible
query II rowsort label-3154
SELECT - COALESCE ( + 15, - 28 + + COUNT ( * ) ) AS col0, CAST ( NULLIF ( - 85, CASE 93 WHEN + 43 THEN - - CAST ( NULL AS INTEGER ) * - + ( + 25 ) * + 71 WHEN - - 36 THEN NULL WHEN 30 THEN NULL END + AVG ( - - 71 ) ) AS INTEGER ) / 2 + - 30 AS col1
----
-15
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT ALL MAX( DISTINCT 73 ) DIV - 36 + + - NULLIF ( + CASE + ( - AVG ( ALL + + 10 ) ) WHEN COALESCE ( - 83, + 67 ) + - 27 * - 55 THEN NULL WHEN - 26 THEN NULL ELSE 30 END, + SUM( - 82 ) ) + + 19 * 49
----
899

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL MAX ( DISTINCT 73 ) / - 36 + + - NULLIF ( + CASE + ( - AVG ( ALL + + 10 ) ) WHEN COALESCE ( - 83, + 67 ) + - 27 * - 55 THEN NULL WHEN - 26 THEN NULL ELSE 30 END, + SUM ( - 82 ) ) + + 19 * 49
----
899

query I rowsort
SELECT + 90 * + - 34 AS col0
----
-3060

query I rowsort
SELECT ALL 72 + + - 48 AS col0
----
24

query I rowsort
SELECT DISTINCT + ( - 88 ) * + 5
----
-440

query I rowsort
SELECT + 51 * - + 79 AS col1
----
-4029

query I rowsort
SELECT ALL 54 col0
----
54

query I rowsort
SELECT + 64 * - 16 AS col1
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL COUNT( * ) + COUNT( * ) + + - NULLIF ( + + 79, + ( - + 46 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL COUNT ( * ) + COUNT ( * ) + + - NULLIF ( + + 79, + ( - + 46 ) )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT COUNT( - 77 ) AS col0, - 33 - + ( - 57 ) AS col1
----
1
24

skipif mysql # not compatible
query II rowsort label-3163
SELECT COUNT ( - 77 ) AS col0, - 33 - + ( - 57 ) AS col1
----
1
24

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

query I rowsort
SELECT DISTINCT + + 75 AS col2
----
75

query I rowsort
SELECT 45 * ( + 71 ) + + 24 + + - 36
----
3183

query II rowsort
SELECT ( + 88 ) AS col2, ( - - 57 )
----
88
57

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

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

query II rowsort
SELECT + 67 * - - 89 + + - 54 + + 55 col1, + 98
----
5964
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT - ( - - 68 ) / COALESCE ( + - ( - 96 ), - 4, 97 + + SUM( DISTINCT - - 68 ) ) + + 60 + - 64 + + CASE WHEN NOT - ( - 87 ) <> + 51 THEN - 21 * + 61 * 99 * COUNT( * ) * COUNT( * ) + + + ( - - 67 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT - ( - - 68 ) / COALESCE ( + - ( - 96 ), - 4, 97 + + SUM ( DISTINCT - - 68 ) ) + + 60 + - 64 + + CASE WHEN NOT - ( - 87 ) <> + 51 THEN - 21 * + 61 * 99 * COUNT ( * ) * COUNT ( * ) + + + ( - - 67 ) END
----
NULL

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

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

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

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

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

query I rowsort
SELECT - 42 * - - 22 + + ( - 51 )
----
-975

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3176
SELECT CASE - 86 WHEN + 21 THEN 69 / ( + - 80 ) + + - 59 - + 33 * AVG ( - - 51 ) / 56 * + - 17 ELSE NULL END * - + COUNT( * ) * + 97 - - 11 + + 8 * + 27 - - 77 * - CAST( - 49 AS DECIMAL ) + + 28 * - - CAST( NULL AS SIGNED ) / - 60 + - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT CASE - 86 WHEN + 21 THEN 69 / ( + - 80 ) + + - 59 - + 33 * AVG ( - - 51 ) / 56 * + - 17 ELSE NULL END * - + COUNT ( * ) * + 97 - - 11 + + 8 * + 27 - - 77 * - CAST ( - 49 AS REAL ) + + 28 * - - CAST ( NULL AS INTEGER ) / - 60 + - + 40
----
NULL

query I rowsort
SELECT - 98 * 88
----
-8624

query I rowsort
SELECT - 4 * - 84 AS col1
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - MAX( ALL 84 ) - + COALESCE ( + 29, 12 )
----
-113

skipif mysql # not compatible
query I rowsort label-3179
SELECT - MAX ( ALL 84 ) - + COALESCE ( + 29, 12 )
----
-113

query I rowsort
SELECT ALL + COALESCE ( - 77, + 79, - - 69 )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3181
SELECT + 11 AS col0, 55 + 74 + COUNT( ALL - 99 ) + 17 AS col2
----
11
147

skipif mysql # not compatible
query II rowsort label-3181
SELECT + 11 AS col0, 55 + 74 + COUNT ( ALL - 99 ) + 17 AS col2
----
11
147

onlyif mysql # DIV for integer division: 
query II rowsort label-3182
SELECT + 16 * + 5 + 2 AS col2, - 59 + - 57 + - 18 DIV + 81 + 44
----
82
-72

skipif mysql # not compatible
query II rowsort label-3182
SELECT + 16 * + 5 + 2 AS col2, - 59 + - 57 + - 18 / + 81 + 44
----
82
-72

query I rowsort
SELECT DISTINCT 9 * - 57 + + - CASE - 14 WHEN + 7 THEN - 22 * + 68 ELSE + - 50 END
----
-463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT - 28 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT - 28 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT - 20 DIV + + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3185
SELECT - 20 / + + 63 AS col1
----
0

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

query I rowsort
SELECT ALL + 56 + - 43 * + 44 * + - CASE + 5 WHEN - - 1 THEN + 16 WHEN - 11 / - ( + - 86 ) + - 46 THEN 86 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT - 84 + + + 44 * 15 DIV 46 DIV ( - - 20 )
----
-84

skipif mysql # not compatible
query I rowsort label-3188
SELECT - 84 + + + 44 * 15 / 46 / ( - - 20 )
----
-84

query I rowsort
SELECT ALL 96 + + 67
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3190
SELECT DISTINCT NULLIF ( - COUNT( * ), - 80 ), - 26 - + + 40 - - 22 + + - 25 DIV - 86 * + + 53 + - + 68 * - COUNT( * ) * COUNT( * ) AS col1
----
-1
24

skipif mysql # not compatible
query II rowsort label-3190
SELECT DISTINCT NULLIF ( - COUNT ( * ), - 80 ), - 26 - + + 40 - - 22 + + - 25 / - 86 * + + 53 + - + 68 * - COUNT ( * ) * COUNT ( * ) AS col1
----
-1
24

query I rowsort
SELECT ALL CASE 61 WHEN + 15 THEN NULL WHEN + NULLIF ( - ( - 32 ), COALESCE ( - 85, + 47, 14 ) / 7 ) / + - 56 THEN - 86 ELSE ( + 57 ) * + - 81 END + - 14 AS col1
----
-4631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT - CAST( - COUNT( + 66 ) AS SIGNED ) + - - 61 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3192
SELECT - CAST ( - COUNT ( + 66 ) AS INTEGER ) + - - 61 AS col1
----
62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3194
SELECT DISTINCT + 39 + - 55 * 3 * + - CAST( NULL AS SIGNED ) / + 22 * + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT + 39 + - 55 * 3 * + - CAST ( NULL AS INTEGER ) / + 22 * + + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT + 30 + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3195
SELECT + 30 + COUNT ( * ) AS col2
----
31

query I rowsort
SELECT ALL - 21 + 66 AS col2
----
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT + 7 + - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

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

query I rowsort
SELECT + 12 * 80
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT DISTINCT 24 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT 24 / + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - CASE + 39 WHEN 97 + 45 THEN - 3 WHEN + 65 * COUNT( * ) THEN + 75 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT - CASE + 39 WHEN 97 + 45 THEN - 3 WHEN + 65 * COUNT ( * ) THEN + 75 END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 59 * - 81 col2
----
-4779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT + 64 DIV MIN( DISTINCT 18 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3204
SELECT + 64 / MIN ( DISTINCT 18 ) AS col2
----
3

query I rowsort
SELECT ALL 76 * 59 AS col0
----
4484

query I rowsort
SELECT DISTINCT 88 * + 30 AS col0
----
2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT CAST( - ( + 85 ) AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3207
SELECT CAST ( - ( + 85 ) AS INTEGER ) AS col0
----
-85

query I rowsort
SELECT ALL 23 * + 48
----
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-3209
SELECT + 28 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-3209
SELECT + 28 / 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT + 34 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT + 34 / + 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3211
SELECT CAST( + 2 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3211
SELECT CAST ( + 2 AS INTEGER ) AS col2
----
2

query I rowsort
SELECT + NULLIF ( - 77, - 62 ) * + 2
----
-154

query I rowsort
SELECT + 22 + - 77
----
-55

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

query I rowsort
SELECT - 87 + 67
----
-20

query I rowsort
SELECT ( 23 ) col0
----
23

query I rowsort
SELECT + ( 64 ) * 95 + 64 AS col1
----
6144

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT ALL + COALESCE ( - 31, - CASE + 3 WHEN + 75 THEN - 58 * 26 - + ( - NULLIF ( - 64, - 31 * 87 + + COALESCE ( 35, - 4 ) ) ) WHEN COALESCE ( 34, + 8 - - 19 ) THEN - COUNT( * ) ELSE NULL END, - 18 + 29, + 29 )
----
-31

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL + COALESCE ( - 31, - CASE + 3 WHEN + 75 THEN - 58 * 26 - + ( - NULLIF ( - 64, - 31 * 87 + + COALESCE ( 35, - 4 ) ) ) WHEN COALESCE ( 34, + 8 - - 19 ) THEN - COUNT ( * ) ELSE NULL END, - 18 + 29, + 29 )
----
-31

query I rowsort
SELECT + 75 * 20 AS col0
----
1500

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

query I rowsort
SELECT DISTINCT - 64 * 44 + - 15
----
-2831

query I rowsort
SELECT ALL - 24 * - 21
----
504

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT - 44 + 28 DIV - 34
----
-44

skipif mysql # not compatible
query I rowsort label-3223
SELECT - 44 + 28 / - 34
----
-44

query I rowsort
SELECT ALL 5 * 4 + - 56 AS col2
----
-36

query I rowsort
SELECT DISTINCT 68 * 18 col2
----
1224

query I rowsort
SELECT 86 + 26
----
112

query I rowsort
SELECT + 21 col2
----
21

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

query I rowsort
SELECT 60 * 43
----
2580

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT 51 * COUNT( * ) + 29
----
80

skipif mysql # not compatible
query I rowsort label-3230
SELECT 51 * COUNT ( * ) + 29
----
80

query I rowsort
SELECT 30 col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT DISTINCT - 6 + 7 DIV - 28 col1
----
-6

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - 6 + 7 / - 28 col1
----
-6

query I rowsort
SELECT ALL 67 * 59 AS col0
----
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT 85 * + NULLIF ( - COUNT( * ), 97 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3234
SELECT 85 * + NULLIF ( - COUNT ( * ), 97 ) AS col1
----
-85

query I rowsort
SELECT ALL + 52 + 14
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT ALL - 61 DIV + ( 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - 61 / + ( 94 ) AS col2
----
0

query I rowsort
SELECT 75 - 72
----
3

query I rowsort
SELECT 69 * 27
----
1863

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3239
SELECT DISTINCT - 17 DIV ( + COALESCE ( 47, + CAST( NULL AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT - 17 / ( + COALESCE ( 47, + CAST ( NULL AS INTEGER ) ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT - MIN( - CAST( 58 AS SIGNED ) ) * CAST( NULLIF ( CAST( + 96 AS SIGNED ), NULLIF ( - COUNT( * ), 45 ) * 28 + + COUNT( * ) ) - + 49 AS SIGNED )
----
2726

skipif mysql # not compatible
query I rowsort label-3240
SELECT - MIN ( - CAST ( 58 AS INTEGER ) ) * CAST ( NULLIF ( CAST ( + 96 AS INTEGER ), NULLIF ( - COUNT ( * ), 45 ) * 28 + + COUNT ( * ) ) - + 49 AS INTEGER )
----
2726

query I rowsort
SELECT - 55 * 2 AS col1
----
-110

query I rowsort
SELECT DISTINCT 6 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT DISTINCT MAX( 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT MAX ( 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3244
SELECT ALL - + NULLIF ( + 94, + COALESCE ( 94, + 53 - - COALESCE ( COUNT( * ), + ( + 35 ) * 48 - COUNT( * ), + ( + ( - ( + 31 ) ) ) * 16 ), - 17 * - 43 + - COUNT( * ) ) + + ( 8 ) ) - + 99 DIV - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL - + NULLIF ( + 94, + COALESCE ( 94, + 53 - - COALESCE ( COUNT ( * ), + ( + 35 ) * 48 - COUNT ( * ), + ( + ( - ( + 31 ) ) ) * 16 ), - 17 * - 43 + - COUNT ( * ) ) + + ( 8 ) ) - + 99 / - COUNT ( * )
----
5

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

skipif mysql # not compatible
query I rowsort label-3245
SELECT + CAST ( NULL AS INTEGER ) * + 88
----
NULL

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

query I rowsort
SELECT + 35 - + 40 col0
----
-5

query I rowsort
SELECT ALL - COALESCE ( - 35, 70 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL MIN( ALL - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL MIN ( ALL - 61 ) AS col2
----
-61

query I rowsort
SELECT 17 * - 52
----
-884

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

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

query I rowsort
SELECT 97 * 75
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - 29 + COALESCE ( COUNT( * ) + NULLIF ( - 82, 4 ), 59 ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-3253
SELECT - 29 + COALESCE ( COUNT ( * ) + NULLIF ( - 82, 4 ), 59 ) AS col2
----
-110

query I rowsort
SELECT + - 56 col2
----
-56

query I rowsort
SELECT CASE - NULLIF ( 27, 6 ) WHEN + 38 - 58 THEN 68 * 62 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + - COUNT( * ) * 54 + 12 * 82
----
930

skipif mysql # not compatible
query I rowsort label-3256
SELECT + - COUNT ( * ) * 54 + 12 * 82
----
930

query I rowsort
SELECT DISTINCT - 74 + 54
----
-20

query I rowsort
SELECT ALL 82 * 45
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT - - MIN( + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT - - MIN ( + 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT DISTINCT + COUNT( * ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT + COUNT ( * ) + - 18
----
-17

query I rowsort
SELECT + 64 * - + 85 * 57 + 65 col0
----
-310015

query I rowsort
SELECT ALL 63 * + - 43 AS col0
----
-2709

query I rowsort
SELECT DISTINCT 21 + 39
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3264
SELECT MAX( DISTINCT 18 ) + - ( COUNT( * ) ) DIV + ( + ( + 98 ) )
----
18

skipif mysql # not compatible
query I rowsort label-3264
SELECT MAX ( DISTINCT 18 ) + - ( COUNT ( * ) ) / + ( + ( + 98 ) )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3265
SELECT ALL NULLIF ( + - MIN( ALL 45 ), + CAST( 1 AS SIGNED ) ) * - ( 29 DIV - 95 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL NULLIF ( + - MIN ( ALL 45 ), + CAST ( 1 AS INTEGER ) ) * - ( 29 / - 95 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT MIN( ALL - - 58 ) DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT MIN ( ALL - - 58 ) / + 68
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT + ( - + 25 ) * 37 + + CAST( - 85 AS SIGNED ) * - 29
----
1540

skipif mysql # not compatible
query I rowsort label-3267
SELECT + ( - + 25 ) * 37 + + CAST ( - 85 AS INTEGER ) * - 29
----
1540

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3268
SELECT DISTINCT 62 + + ( CAST( NULL AS DECIMAL ) ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT 62 + + ( CAST ( NULL AS REAL ) ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT DISTINCT 20 + + - 60 * + CAST( + MAX( + 69 ) AS SIGNED )
----
-4120

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT 20 + + - 60 * + CAST ( + MAX ( + 69 ) AS INTEGER )
----
-4120

query I rowsort
SELECT 5 * + ( 48 )
----
240

query I rowsort
SELECT ALL - 14 col0
----
-14

query I rowsort
SELECT DISTINCT 26 + 85 col1
----
111

query I rowsort
SELECT 88 * + 88
----
7744

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

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL - COUNT ( ALL - 37 ) * + 97 AS col2
----
-97

query I rowsort
SELECT DISTINCT + 39 - - 35 * 99 AS col1
----
3504

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT DISTINCT - ( + COUNT( * ) ) * - NULLIF ( 83, + 74 * 89 )
----
83

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT - ( + COUNT ( * ) ) * - NULLIF ( 83, + 74 * 89 )
----
83

query I rowsort
SELECT ( + + 25 ) + 12 * 60 AS col1
----
745

query I rowsort
SELECT ALL 13 * - + 36 col0
----
-468

query I rowsort
SELECT 20 - - + 9 + 67
----
96

query I rowsort
SELECT ALL - + 86 - 22
----
-108

query I rowsort
SELECT 32 + + 33 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT MIN( ALL 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3282
SELECT MIN ( ALL 96 ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT ALL + 72 DIV + ( + 31 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + 72 / + ( + 31 ) AS col0
----
2

query I rowsort
SELECT + 33 + 81
----
114

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

skipif mysql # not compatible
query I rowsort label-3285
SELECT - ( + COUNT ( * ) ) / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT 1 + + COALESCE ( 31, + 99 ) * + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3286
SELECT 1 + + COALESCE ( 31, + 99 ) * + COUNT ( * ) AS col2
----
32

query I rowsort
SELECT 32 * + + 49
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT - ( 82 ) + SUM( 34 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3288
SELECT - ( 82 ) + SUM ( 34 ) AS col0
----
-48

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT - + CAST( + 97 AS SIGNED ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-3291
SELECT - + CAST ( + 97 AS INTEGER ) col0
----
-97

query I rowsort
SELECT ALL 6 * - 13 + 99 + + 89 AS col1
----
110

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT - 58 * + CAST( + CAST( 10 AS SIGNED ) AS SIGNED )
----
-580

skipif mysql # not compatible
query I rowsort label-3294
SELECT - 58 * + CAST ( + CAST ( 10 AS INTEGER ) AS INTEGER )
----
-580

query II rowsort
SELECT + 96 AS col2, + 25 + - 99 AS col1
----
96
-74

query I rowsort
SELECT ALL - 9 * - 39 + + 59
----
410

query I rowsort
SELECT DISTINCT - 42 * - + 65
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - COUNT( * ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3298
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT COALESCE ( - 75, 54 * 23 + + 60 )
----
-75

query I rowsort
SELECT ALL + NULLIF ( - + 6, - ( + 32 ) + + 27 * + 57 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT - COUNT( * ) + ( - 41 ) * 96
----
-3937

skipif mysql # not compatible
query I rowsort label-3301
SELECT - COUNT ( * ) + ( - 41 ) * 96
----
-3937

query I rowsort
SELECT NULLIF ( 20, 39 ) AS col2
----
20

query I rowsort
SELECT - 9 + + 22
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3304
SELECT 88 / + CAST( NULL AS SIGNED ) + + COALESCE ( + 46, 18 * + 85 + - 87, - 56 + MIN( ALL - 3 ) * 91 ) * + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT 88 / + CAST ( NULL AS INTEGER ) + + COALESCE ( + 46, 18 * + 85 + - 87, - 56 + MIN ( ALL - 3 ) * 91 ) * + 64 AS col1
----
NULL

query II rowsort
SELECT ALL + 34 col2, - 67
----
34
-67

query I rowsort
SELECT + 19 col2
----
19

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + + 92, + 94 * + 16 ) * 1 - 0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT + CAST( - - COUNT( * ) AS SIGNED ) + + ( ( - 53 ) ) + - CAST( NULL AS SIGNED ) * 67 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + 61 * + ( ( 94 ) ) - - 95
----
5829

query I rowsort
SELECT - 43 * + + 35 * + 59
----
-88795

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT - ( + 69 ) * 69 - 92 DIV 4
----
-4784

skipif mysql # not compatible
query I rowsort label-3312
SELECT - ( + 69 ) * 69 - 92 / 4
----
-4784

query I rowsort
SELECT + 8 * - + 96 col0
----
-768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT ALL COALESCE ( - 34, - CASE 47 WHEN 29 * CAST( - 2 * SUM( ALL + ( - ( 1 ) ) ) AS SIGNED ) THEN 97 WHEN 77 + - 6 * - 37 THEN - COALESCE ( - NULLIF ( - ( SUM( 1 ) ), 2 ), 21, 65 ) - - 26 END * MIN( DISTINCT - 58 ), COUNT( * ) ) * - 98 AS col1
----
3332

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL COALESCE ( - 34, - CASE 47 WHEN 29 * CAST ( - 2 * SUM ( ALL + ( - ( 1 ) ) ) AS INTEGER ) THEN 97 WHEN 77 + - 6 * - 37 THEN - COALESCE ( - NULLIF ( - ( SUM ( 1 ) ), 2 ), 21, 65 ) - - 26 END * MIN ( DISTINCT - 58 ), COUNT ( * ) ) * - 98 AS col1
----
3332

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + 84 * ( - - NULLIF ( 78, MAX( ALL - 52 ) ) )
----
6552

skipif mysql # not compatible
query I rowsort label-3315
SELECT + 84 * ( - - NULLIF ( 78, MAX ( ALL - 52 ) ) )
----
6552

query I rowsort
SELECT ALL 44 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - + COALESCE ( 35, - COUNT( * ) ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-3317
SELECT - + COALESCE ( 35, - COUNT ( * ) ) col2
----
-35

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3319
SELECT ALL + 34, - CASE - 55 WHEN 81 * + CAST( NULL AS SIGNED ) THEN - 79 WHEN - 34 THEN NULL END AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-3319
SELECT ALL + 34, - CASE - 55 WHEN 81 * + CAST ( NULL AS INTEGER ) THEN - 79 WHEN - 34 THEN NULL END AS col2
----
34
NULL

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

query II rowsort
SELECT 26 AS col2, 42 - - + 21
----
26
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT - COUNT( ALL + 66 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT - COUNT ( ALL + 66 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + + COUNT( * ) - + 53
----
-52

skipif mysql # not compatible
query I rowsort label-3324
SELECT + + COUNT ( * ) - + 53
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT COUNT( + 46 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3325
SELECT COUNT ( + 46 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT ALL - 41 + - - 94 DIV + 82 - 75
----
-115

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - 41 + - - 94 / + 82 - 75
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT 19 * - - COUNT( * ) * 50 * 14 + - SUM( 73 + + 29 * + NULLIF ( - 13, 12 ) )
----
13604

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT 19 * - - COUNT ( * ) * 50 * 14 + - SUM ( 73 + + 29 * + NULLIF ( - 13, 12 ) )
----
13604

query I rowsort
SELECT - + ( 20 ) * + 85 AS col0
----
-1700

query I rowsort
SELECT ALL + 49 * - - 28 + + + 37 + + ( + 17 + + 25 ) AS col2
----
1451

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

skipif mysql # not compatible
query II rowsort label-3330
SELECT 13 AS col2, - COUNT ( * ) AS col0
----
13
-1

query I rowsort
SELECT ALL + - 4 + - + 28
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT - 34 - + 14 + - 91 DIV 11 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3332
SELECT - 34 - + 14 + - 91 / 11 AS col0
----
-56

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3335
SELECT + COALESCE ( - 39, 64 ) + CAST( - 93 AS SIGNED ) + 90 DIV + MAX( DISTINCT + 48 )
----
-131

skipif mysql # not compatible
query I rowsort label-3335
SELECT + COALESCE ( - 39, 64 ) + CAST ( - 93 AS INTEGER ) + 90 / + MAX ( DISTINCT + 48 )
----
-131

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3336
SELECT + 62 DIV + + 13 + + 57 - - - CAST( 73 AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3336
SELECT + 62 / + + 13 + + 57 - - - CAST ( 73 AS INTEGER ) AS col1
----
-12

query I rowsort
SELECT + 52 col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT CAST( NULL AS SIGNED ) / + + MAX( - + 36 ) - + - CASE AVG ( - 68 ) WHEN + COUNT( * ) THEN NULL WHEN 2 + 34 THEN NULL ELSE - MAX( - 76 ) * 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT CAST ( NULL AS INTEGER ) / + + MAX ( - + 36 ) - + - CASE AVG ( - 68 ) WHEN + COUNT ( * ) THEN NULL WHEN 2 + 34 THEN NULL ELSE - MAX ( - 76 ) * 20 END AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT + 11 * + + 27
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3341
SELECT ALL 87 DIV - + 23 - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL 87 / - + 23 - COUNT ( * ) AS col2
----
-4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL + MAX( 86 ) * - - 22 * 80 - + SUM( ALL 92 ) * - ( + 38 + 68 ) col2
----
161112

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + MAX ( 86 ) * - - 22 * 80 - + SUM ( ALL 92 ) * - ( + 38 + 68 ) col2
----
161112

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT COUNT( * ) * 98 + + 1
----
99

skipif mysql # not compatible
query I rowsort label-3344
SELECT COUNT ( * ) * 98 + + 1
----
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT - ( - COUNT( * ) ) + + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-3346
SELECT - ( - COUNT ( * ) ) + + - 55
----
-54

query I rowsort
SELECT ALL + 93 * + + 37
----
3441

query I rowsort
SELECT - ( 99 ) - - - 93
----
-192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT 94 * - COUNT( * ) + + + 52 + + - 8 + ( - 67 ) * SUM( + 67 ) * - NULLIF ( + 47, + 78 / 2 )
----
210933

skipif mysql # not compatible
query I rowsort label-3350
SELECT 94 * - COUNT ( * ) + + + 52 + + - 8 + ( - 67 ) * SUM ( + 67 ) * - NULLIF ( + 47, + 78 / 2 )
----
210933

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT + MAX( - - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT + MAX ( - - 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT NULLIF ( + - 20, 60 * COUNT( * ) / + 66 )
----
-20

skipif mysql # not compatible
query I rowsort label-3352
SELECT NULLIF ( + - 20, 60 * COUNT ( * ) / + 66 )
----
-20

query II rowsort
SELECT DISTINCT + ( 46 ) AS col1, 26 AS col0
----
46
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3354
SELECT - 79 DIV + COUNT( * ) + - + 37 * - COUNT( * ) + MAX( 79 ) * - 34 AS col2
----
-2728

skipif mysql # not compatible
query I rowsort label-3354
SELECT - 79 / + COUNT ( * ) + - + 37 * - COUNT ( * ) + MAX ( 79 ) * - 34 AS col2
----
-2728

query I rowsort
SELECT ALL 18 * 54 * + 60
----
58320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT - 88 - + CAST( + 9 AS SIGNED ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3356
SELECT - 88 - + CAST ( + 9 AS INTEGER ) AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL + CASE - 15 WHEN 0 * - + 53 / 65 - + 16 + - 47 THEN + 50 + 93 * 28 WHEN 50 * CAST( + 42 * 97 AS SIGNED ) THEN 66 / + 9 END / 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + CASE - 15 WHEN 0 * - + 53 / 65 - + 16 + - 47 THEN + 50 + 93 * 28 WHEN 50 * CAST ( + 42 * 97 AS INTEGER ) THEN 66 / + 9 END / 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL + COUNT( * ) * - 81 * + - ( + 45 ) AS col0
----
3645

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL + COUNT ( * ) * - 81 * + - ( + 45 ) AS col0
----
3645

query I rowsort
SELECT + - 50 * + 73 * - ( - - 57 ) * 71
----
14771550

query II rowsort
SELECT - - 39 + 27 AS col1, + 40
----
66
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT + + 75 * + 80 + + COUNT( * ) col2
----
6001

skipif mysql # not compatible
query I rowsort label-3361
SELECT + + 75 * + 80 + + COUNT ( * ) col2
----
6001

query I rowsort
SELECT + 38 - - 95 AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3363
SELECT ALL ( COUNT( * ) ) * + - 66 * + CASE + 47 WHEN - 83 THEN NULL WHEN SUM( CAST( NULL AS DECIMAL ) ) THEN 82 ELSE MAX( + 45 ) END
----
-2970

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL ( COUNT ( * ) ) * + - 66 * + CASE + 47 WHEN - 83 THEN NULL WHEN SUM ( CAST ( NULL AS REAL ) ) THEN 82 ELSE MAX ( + 45 ) END
----
-2970

query I rowsort
SELECT - - 89 + + 18 + - ( 37 ) * - 47 * + 69
----
120098

query I rowsort
SELECT + 51 - - - 1 + - 18 * - - 97 - 39
----
-1735

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

query I rowsort
SELECT + CASE - 93 WHEN 9 * + 93 THEN 18 WHEN 54 THEN - ( 14 ) END + 32 * 61
----
NULL

query I rowsort
SELECT ALL + - 60 + - + 8
----
-68

query I rowsort
SELECT ALL NULLIF ( + 87, + 45 + + 54 ) + + 81 * + 68
----
5595

query I rowsort
SELECT + 18 + - 13 AS col0
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3372
SELECT - NULLIF ( MIN( DISTINCT - + 1 ), + CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3372
SELECT - NULLIF ( MIN ( DISTINCT - + 1 ), + CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT DISTINCT - 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT 79 + 61 * COALESCE ( - COUNT( 53 ), + 31 + 32 ) * 3 + 74 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3374
SELECT 79 + 61 * COALESCE ( - COUNT ( 53 ), + 31 + 32 ) * 3 + 74 AS col2
----
-30

query I rowsort
SELECT ( + + 63 ) * - - 51 AS col0
----
3213

query I rowsort
SELECT ALL 4 * - - ( - + 79 ) AS col0
----
-316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT 99 + + ( - 49 ) * - CAST( - 29 AS SIGNED ) col2
----
-1322

skipif mysql # not compatible
query I rowsort label-3377
SELECT 99 + + ( - 49 ) * - CAST ( - 29 AS INTEGER ) col2
----
-1322

query I rowsort
SELECT - 52 col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT ALL 50 * CAST( 94 AS SIGNED )
----
4700

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL 50 * CAST ( 94 AS INTEGER )
----
4700

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

query I rowsort
SELECT DISTINCT - 27
----
-27

query II rowsort
SELECT + 15 AS col1, + 16 * 10 * + 52
----
15
8320

query I rowsort
SELECT 4 * + ( - 85 )
----
-340

query I rowsort
SELECT ( 91 ) * + 12 + - 40
----
1052

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ( 93 ) + + COUNT( - + 8 )
----
94

skipif mysql # not compatible
query I rowsort label-3385
SELECT ( 93 ) + + COUNT ( - + 8 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3386
SELECT ( 45 ) * + 60 - - - 5 + + COUNT( * ) DIV - 75 AS col1
----
2695

skipif mysql # not compatible
query I rowsort label-3386
SELECT ( 45 ) * + 60 - - - 5 + + COUNT ( * ) / - 75 AS col1
----
2695

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT 23 DIV + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT 23 / + 26 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3388
SELECT ALL - NULLIF ( + CAST( NULL AS DECIMAL ), + + 26 * + COUNT( * ) * COALESCE ( 95, - 43, + 60 + - 9 / + 81 ) * 27 ) / ( - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL - NULLIF ( + CAST ( NULL AS REAL ), + + 26 * + COUNT ( * ) * COALESCE ( 95, - 43, + 60 + - 9 / + 81 ) * 27 ) / ( - 31 )
----
NULL

query I rowsort
SELECT 94 * + - 45 * 33
----
-139590

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT 4 * - NULLIF ( - 51, - COUNT( * ) * + 78 + + 19 * 58 ) AS col2
----
204

skipif mysql # not compatible
query I rowsort label-3390
SELECT 4 * - NULLIF ( - 51, - COUNT ( * ) * + 78 + + 19 * 58 ) AS col2
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL + ( + 21 ) * + + MAX( DISTINCT + 45 ) AS col0
----
945

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL + ( + 21 ) * + + MAX ( DISTINCT + 45 ) AS col0
----
945

query I rowsort
SELECT 23 - 36 AS col2
----
-13

query I rowsort
SELECT ALL + 72 * + + 3 AS col2
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT DISTINCT - COALESCE ( - 73, 56 * - CAST( 94 AS SIGNED ) - 3 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - COALESCE ( - 73, 56 * - CAST ( 94 AS INTEGER ) - 3 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT + COALESCE ( - 66, 39 * - MAX( + + 19 ) DIV ( - 84 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3395
SELECT + COALESCE ( - 66, 39 * - MAX ( + + 19 ) / ( - 84 ) ) AS col2
----
-66

query I rowsort
SELECT ALL + + COALESCE ( - - 38, + + 23 ) + + 53 * - - 10 * 58
----
30778

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT - + 37 + 57 * - 70 + - 76 + - + 90 * - COUNT( * ) col1
----
-4013

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT - + 37 + 57 * - 70 + - 76 + - + 90 * - COUNT ( * ) col1
----
-4013

query I rowsort
SELECT DISTINCT - 28 col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL - - MAX( + 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - - MAX ( + 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT COUNT( * ) + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-3400
SELECT COUNT ( * ) + - 84
----
-83

query II rowsort
SELECT - + 33 AS col0, 52 AS col1
----
-33
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL - - 12 + CAST( + 46 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL - - 12 + CAST ( + 46 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + MAX( 29 ) * + MAX( + + 92 ) * + + 39 * + 91 AS col2
----
9468732

skipif mysql # not compatible
query I rowsort label-3403
SELECT + MAX ( 29 ) * + MAX ( + + 92 ) * + + 39 * + 91 AS col2
----
9468732

query I rowsort
SELECT DISTINCT - ( - 69 ) AS col0
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT DISTINCT - MIN( - ( + 53 ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT - MIN ( - ( + 53 ) ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT DISTINCT + 84 AS col0, 70 * + COUNT( * ) + 90
----
84
160

skipif mysql # not compatible
query II rowsort label-3407
SELECT DISTINCT + 84 AS col0, 70 * + COUNT ( * ) + 90
----
84
160

query II rowsort
SELECT 86 * 46 * + 13, - 6 + - + ( + 85 ) * NULLIF ( + 46 + - 93 * 90, NULLIF ( + 76, - 83 ) / + 73 ) AS col0
----
51428
707534

query I rowsort
SELECT - ( 64 )
----
-64

query I rowsort
SELECT 89 - - 45 * - + 54 AS col0
----
-2341

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3411
SELECT - - ( + NULLIF ( - - 10, + - CAST( NULL AS DECIMAL ) ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3411
SELECT - - ( + NULLIF ( - - 10, + - CAST ( NULL AS REAL ) ) ) AS col0
----
10

query I rowsort
SELECT 35 - 92
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3413
SELECT 79 DIV - - 11
----
7

skipif mysql # not compatible
query I rowsort label-3413
SELECT 79 / - - 11
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT CAST( - + 93 AS SIGNED ) * 7
----
-651

skipif mysql # not compatible
query I rowsort label-3414
SELECT CAST ( - + 93 AS INTEGER ) * 7
----
-651

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT 46 col1, MIN( - + 26 ) AS col1
----
46
-26

skipif mysql # not compatible
query II rowsort label-3415
SELECT 46 col1, MIN ( - + 26 ) AS col1
----
46
-26

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

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL 57 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 89 - + COALESCE ( 44, + 16 * COALESCE ( - 32, 80 * ( 18 ) + 46 ) * 71 )
----
45

query II rowsort
SELECT DISTINCT 9, - 90 AS col1
----
9
-90

query II rowsort
SELECT ALL 14, 7 AS col2
----
14
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT 78 + + COUNT( * ) - - 54 * - 49 + COUNT( * ) AS col0
----
-2566

skipif mysql # not compatible
query I rowsort label-3420
SELECT 78 + + COUNT ( * ) - - 54 * - 49 + COUNT ( * ) AS col0
----
-2566

query I rowsort
SELECT 14 * - 48 col2
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT SUM( ALL + 87 ) + 24 + 6 * + - 22 * + ( 20 ) * + 63 + 31 AS col0
----
-166178

skipif mysql # not compatible
query I rowsort label-3422
SELECT SUM ( ALL + 87 ) + 24 + 6 * + - 22 * + ( 20 ) * + 63 + 31 AS col0
----
-166178

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT - 65 * - COUNT( * ) + - 87 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3424
SELECT - 65 * - COUNT ( * ) + - 87 AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT ALL + 53 * + 72 + - + 46 * COALESCE ( - + ( - - CAST( NULL AS SIGNED ) ), - 94 )
----
8140

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL + 53 * + 72 + - + 46 * COALESCE ( - + ( - - CAST ( NULL AS INTEGER ) ), - 94 )
----
8140

query I rowsort
SELECT ALL - 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3427
SELECT COUNT( + + 53 ) AS col0, + 15
----
1
15

skipif mysql # not compatible
query II rowsort label-3427
SELECT COUNT ( + + 53 ) AS col0, + 15
----
1
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT ALL - 75 * - 54 * - - 64 + MIN( DISTINCT + - 39 )
----
259161

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - 75 * - 54 * - - 64 + MIN ( DISTINCT + - 39 )
----
259161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT 76 * - + 28 - - 94 - + CAST( 84 AS SIGNED ) AS col2
----
-2118

skipif mysql # not compatible
query I rowsort label-3429
SELECT 76 * - + 28 - - 94 - + CAST ( 84 AS INTEGER ) AS col2
----
-2118

query I rowsort
SELECT 63 + + + COALESCE ( 76, 40 ) + + 57 AS col1
----
196

onlyif mysql # aggregate syntax: 
query II rowsort label-3431
SELECT COUNT( * ) AS col1, 49 AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-3431
SELECT COUNT ( * ) AS col1, 49 AS col1
----
1
49

query I rowsort
SELECT ( - + 12 ) * + 75 AS col0
----
-900

query II rowsort
SELECT ALL - 12 AS col0, - 8
----
-12
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + NULLIF ( + 33, COUNT( + NULLIF ( + 18, - - 72 ) ) ) * + 87
----
2871

skipif mysql # not compatible
query I rowsort label-3434
SELECT + NULLIF ( + 33, COUNT ( + NULLIF ( + 18, - - 72 ) ) ) * + 87
----
2871

query II rowsort
SELECT 58 AS col2, 75 col2
----
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT 32 - 2 + 94 * 90 - - - 61 + - + 88 + - CASE + 37 WHEN - 1 * MIN( DISTINCT - 44 ) THEN 15 ELSE NULL END / - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT 32 - 2 + 94 * 90 - - - 61 + - + 88 + - CASE + 37 WHEN - 1 * MIN ( DISTINCT - 44 ) THEN 15 ELSE NULL END / - 38 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3437
SELECT DISTINCT - - 42 AS col1, - 64 * - CAST( NULL AS SIGNED ) * - CAST( COALESCE ( AVG ( - 44 ), 46, - 77 * 28, AVG ( 66 ) ) AS SIGNED ) * + 53
----
42
NULL

skipif mysql # not compatible
query II rowsort label-3437
SELECT DISTINCT - - 42 AS col1, - 64 * - CAST ( NULL AS INTEGER ) * - CAST ( COALESCE ( AVG ( - 44 ), 46, - 77 * 28, AVG ( 66 ) ) AS INTEGER ) * + 53
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT - MIN( ALL - 77 ) * - + 6
----
-462

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - MIN ( ALL - 77 ) * - + 6
----
-462

query I rowsort
SELECT ALL + COALESCE ( - + 17, 36 ) - 0 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT - 72 AS col0, - COUNT( ALL + + 43 )
----
-72
-1

skipif mysql # not compatible
query II rowsort label-3440
SELECT - 72 AS col0, - COUNT ( ALL + + 43 )
----
-72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT - 66 + 86 * - COUNT( + 65 ) + - - 52 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-3441
SELECT - 66 + 86 * - COUNT ( + 65 ) + - - 52 AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT - - CASE - - 13 WHEN + 64 - - CASE + + 74 WHEN COUNT( * ) * 10 THEN NULL ELSE NULLIF ( CAST( NULL AS SIGNED ), + 38 * 59 + 90 ) + 97 END THEN ( 46 ) END - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT - - CASE - - 13 WHEN + 64 - - CASE + + 74 WHEN COUNT ( * ) * 10 THEN NULL ELSE NULLIF ( CAST ( NULL AS INTEGER ), + 38 * 59 + 90 ) + 97 END THEN ( 46 ) END - 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT - - CAST( + + 22 AS SIGNED ) * + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3443
SELECT - - CAST ( + + 22 AS INTEGER ) * + COUNT ( * ) AS col2
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-3444
SELECT DISTINCT + 24 AS col0, - 34 DIV + 93 AS col2
----
24
0

skipif mysql # not compatible
query II rowsort label-3444
SELECT DISTINCT + 24 AS col0, - 34 / + 93 AS col2
----
24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL - CASE 14 WHEN 87 THEN + + COUNT( * ) + - MAX( ( - 62 ) ) + 67 * - 29 * 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - CASE 14 WHEN 87 THEN + + COUNT ( * ) + - MAX ( ( - 62 ) ) + 67 * - 29 * 93 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - NULLIF ( - 22, + 69 * - 64 + + 26 + - ( - 32 ) / COUNT( * ) ) + 21 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3447
SELECT - NULLIF ( - 22, + 69 * - 64 + + 26 + - ( - 32 ) / COUNT ( * ) ) + 21 AS col1
----
43

query II rowsort
SELECT ALL NULLIF ( - 16, + 71 ), - 35 + - - 73 + - 72 AS col0
----
-16
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT NULLIF ( COALESCE ( - + 30, - 55 ), + 90 * SUM( DISTINCT + ( + 46 ) ) * COUNT( * ) + 42 )
----
-30

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT NULLIF ( COALESCE ( - + 30, - 55 ), + 90 * SUM ( DISTINCT + ( + 46 ) ) * COUNT ( * ) + 42 )
----
-30

query I rowsort
SELECT ALL + 34 * + 88 AS col1
----
2992

query I rowsort
SELECT + 85 + + 50
----
135

query I rowsort
SELECT - 97 * - 82
----
7954

query I rowsort
SELECT - ( + 20 ) * - 21
----
420

query I rowsort
SELECT + 61 + + 45 - + 80
----
26

query I rowsort
SELECT DISTINCT - 89 * - 23 AS col1
----
2047

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

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL + COUNT ( * ) * + - 4 AS col0
----
-4

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

query I rowsort
SELECT + 43 + - 87 + + 85 + - 55
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL - 48 * - + ( - MIN( - 21 ) ) + 45
----
1053

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL - 48 * - + ( - MIN ( - 21 ) ) + 45
----
1053

query I rowsort
SELECT + NULLIF ( - 46, + + 10 ) AS col0
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT - 89 - - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-3462
SELECT - 89 - - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3463
SELECT - - 52 + + 97, - 14 + - ( 31 ) * + MIN( ALL + 79 ) * + CAST( NULL AS DECIMAL ) AS col1
----
149
NULL

skipif mysql # not compatible
query II rowsort label-3463
SELECT - - 52 + + 97, - 14 + - ( 31 ) * + MIN ( ALL + 79 ) * + CAST ( NULL AS REAL ) AS col1
----
149
NULL

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

query I rowsort
SELECT ALL NULLIF ( + 25, - ( - 80 ) ) * - 89 + + + 55 AS col2
----
-2170

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT DISTINCT + 55 DIV 38 + 66
----
67

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT + 55 / 38 + 66
----
67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3468
SELECT - NULLIF ( 17, 5 ) * - + CAST( NULL AS SIGNED ) + MAX( - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT - NULLIF ( 17, 5 ) * - + CAST ( NULL AS INTEGER ) + MAX ( - 78 )
----
NULL

query I rowsort
SELECT + + 27 * - 98 AS col2
----
-2646

query I rowsort
SELECT DISTINCT + + 36 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT + CAST( - 27 AS SIGNED ) + - - 96
----
69

skipif mysql # not compatible
query I rowsort label-3471
SELECT + CAST ( - 27 AS INTEGER ) + - - 96
----
69

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

query I rowsort
SELECT + + 44 + 14 + - - 34
----
92

query I rowsort
SELECT DISTINCT + + 76
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3475
SELECT ALL + COALESCE ( + NULLIF ( + CAST( NULL AS SIGNED ), + - 99 + - COUNT( * ) ), + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + COALESCE ( + NULLIF ( + CAST ( NULL AS INTEGER ), + - 99 + - COUNT ( * ) ), + COUNT ( * ) )
----
1

query I rowsort
SELECT 70 * + 77 * - 71 * + - 49 + - 80
----
18751730

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT - - 11 DIV + 12 + + - 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3477
SELECT - - 11 / + 12 + + - 17 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT - + 95 + - CAST( - COUNT( * ) AS SIGNED ) + + 67
----
-27

skipif mysql # not compatible
query I rowsort label-3478
SELECT - + 95 + - CAST ( - COUNT ( * ) AS INTEGER ) + + 67
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL + - 53 * - COUNT( 10 ) * - 44 + + - 17 + - + 54
----
-2403

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + - 53 * - COUNT ( 10 ) * - 44 + + - 17 + - + 54
----
-2403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT DISTINCT + 56 * - CAST( 54 AS SIGNED )
----
-3024

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT + 56 * - CAST ( 54 AS INTEGER )
----
-3024

query I rowsort
SELECT + + 51 / + 39 / - CASE + 91 WHEN 35 THEN + 38 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 47 * - 43
----
2021

query I rowsort
SELECT ALL 21 * - 47 * + 24 AS col1
----
-23688

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

query I rowsort
SELECT - 33 * 92
----
-3036

query I rowsort
SELECT ALL NULLIF ( + 7, + - 21 + 79 + ( - 50 ) * - + ( AVG ( 75 ) ) + 35 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL + COUNT( * ) + ( + 75 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + COUNT ( * ) + ( + 75 ) AS col1
----
76

query I rowsort
SELECT - ( + + 95 ) * 89 * - 9 * - 65
----
-4946175

query II rowsort
SELECT 4, 62 AS col2
----
4
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL COUNT( * ) + - 62 * + 31
----
-1921

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL COUNT ( * ) + - 62 * + 31
----
-1921

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT + COUNT( * ) + + CASE + COUNT( * ) WHEN 78 THEN NULL ELSE - 9 END
----
-8

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT + COUNT ( * ) + + CASE + COUNT ( * ) WHEN 78 THEN NULL ELSE - 9 END
----
-8

query I rowsort
SELECT - 2 - + 31 + 48
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL + 13 + - MIN( - 22 )
----
35

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + 13 + - MIN ( - 22 )
----
35

query I rowsort
SELECT DISTINCT ( - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT - 90 + - - COUNT( * ) - + 53 * - + ( - COUNT( * ) ) AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-3496
SELECT - 90 + - - COUNT ( * ) - + 53 * - + ( - COUNT ( * ) ) AS col1
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3497
SELECT DISTINCT + NULLIF ( - 11, 89 / 62 * + COUNT( * ) * + + 31 ) / - - 39 + + 70 + + ( CAST( NULL AS SIGNED ) ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT + NULLIF ( - 11, 89 / 62 * + COUNT ( * ) * + + 31 ) / - - 39 + + 70 + + ( CAST ( NULL AS INTEGER ) ) * 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3498
SELECT + 81 / - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - - - 27 + - 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT + 81 / - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - - - 27 + - 7 col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 49 + - COUNT( * ) + - + COUNT( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL - 26 * + 1 * MIN( 2 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - 26 * + 1 * MIN ( 2 ) AS col1
----
-52

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - CASE + 27 WHEN 36 + 63 + - - COUNT( * ) THEN NULL ELSE - + 26 END AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3506
SELECT - CASE + 27 WHEN 36 + 63 + - - COUNT ( * ) THEN NULL ELSE - + 26 END AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3507
SELECT 95 + 89 + + 61, + CAST( NULL AS SIGNED ) * + COUNT( ALL - 56 ) * + CAST( NULL AS SIGNED ) AS col1
----
245
NULL

skipif mysql # not compatible
query II rowsort label-3507
SELECT 95 + 89 + + 61, + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 56 ) * + CAST ( NULL AS INTEGER ) AS col1
----
245
NULL

query I rowsort
SELECT + 26 * 21
----
546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3509
SELECT 54 * - 18 * 48, CAST( 58 AS SIGNED ) AS col0
----
-46656
58

skipif mysql # not compatible
query II rowsort label-3509
SELECT 54 * - 18 * 48, CAST ( 58 AS INTEGER ) AS col0
----
-46656
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + 17 * + COUNT( * ) + + ( - + COUNT( * ) ) + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-3510
SELECT + 17 * + COUNT ( * ) + + ( - + COUNT ( * ) ) + - COUNT ( * )
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT 33 * + - 37 * + ( - - SUM( ALL + 37 ) ) AS col2
----
-45177

skipif mysql # not compatible
query I rowsort label-3512
SELECT 33 * + - 37 * + ( - - SUM ( ALL + 37 ) ) AS col2
----
-45177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT DISTINCT - CAST( - - COUNT( 52 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT - CAST ( - - COUNT ( 52 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - - 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT 10 + COUNT( * ) - - + CASE - 10 WHEN 34 + CASE + + 11 WHEN 96 THEN NULL WHEN 31 * 42 THEN + 21 + + 4 ELSE NULL END - - 19 * 72 THEN NULL WHEN MIN( ALL 79 ) + 15 THEN NULL WHEN 66 THEN 79 * - 93 END * + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT 10 + COUNT ( * ) - - + CASE - 10 WHEN 34 + CASE + + 11 WHEN 96 THEN NULL WHEN 31 * 42 THEN + 21 + + 4 ELSE NULL END - - 19 * 72 THEN NULL WHEN MIN ( ALL 79 ) + 15 THEN NULL WHEN 66 THEN 79 * - 93 END * + 45 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3517
SELECT CASE - 43 WHEN - + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN 26 ELSE NULL END + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - CASE - 65 WHEN 69 + - 16 * 29 THEN + 80 WHEN - 40 THEN + 97 WHEN 42 THEN 21 + - 15 WHEN + ( ( + MIN( DISTINCT - 14 ) ) ) + 44 THEN NULL ELSE NULL END + 40 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT CASE - 43 WHEN - + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN 26 ELSE NULL END + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - CASE - 65 WHEN 69 + - 16 * 29 THEN + 80 WHEN - 40 THEN + 97 WHEN 42 THEN 21 + - 15 WHEN + ( ( + MIN ( DISTINCT - 14 ) ) ) + 44 THEN NULL ELSE NULL END + 40 * 39
----
NULL

query I rowsort
SELECT 79 + + 9 + + 99 AS col1
----
187

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3519
SELECT ALL 74 + + 51 - - - CAST( NULL AS SIGNED ) * - 9, - ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3519
SELECT ALL 74 + + 51 - - - CAST ( NULL AS INTEGER ) * - 9, - ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT 88 + COUNT( DISTINCT 59 ) * - 1, - COUNT( * ) * - 94 * - 74 AS col0
----
87
-6956

skipif mysql # not compatible
query II rowsort label-3520
SELECT 88 + COUNT ( DISTINCT 59 ) * - 1, - COUNT ( * ) * - 94 * - 74 AS col0
----
87
-6956

query I rowsort
SELECT 24 - - 45 * - 1
----
-21

query I rowsort
SELECT - 4 col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT ALL MIN( - + 98 ) + - 39 * 44 AS col1
----
-1814

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL MIN ( - + 98 ) + - 39 * 44 AS col1
----
-1814

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT 26 * + + COUNT( * ) col0
----
26

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT 26 * + + COUNT ( * ) col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT 7 DIV + ( - 25 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT 7 / + ( - 25 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3526
SELECT DISTINCT SUM( ALL - + ( + 59 ) ) + 69, - 12 - - 72 AS col2
----
10
60

skipif mysql # not compatible
query II rowsort label-3526
SELECT DISTINCT SUM ( ALL - + ( + 59 ) ) + 69, - 12 - - 72 AS col2
----
10
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3527
SELECT ALL + 17 + + 55 * COUNT( * ) * - + 32 AS col1, 41 AS col2
----
-1743
41

skipif mysql # not compatible
query II rowsort label-3527
SELECT ALL + 17 + + 55 * COUNT ( * ) * - + 32 AS col1, 41 AS col2
----
-1743
41

query I rowsort
SELECT 33 + - 25 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ( + + 97 ) * + 87 * COUNT( * )
----
8439

skipif mysql # not compatible
query I rowsort label-3529
SELECT ( + + 97 ) * + 87 * COUNT ( * )
----
8439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3530
SELECT ( ( + 97 ) ) + - - COUNT( * ) * - 21, - 77 * + + COUNT( * ) * 52 * - CAST( + 90 AS SIGNED ) AS col1
----
76
360360

skipif mysql # not compatible
query II rowsort label-3530
SELECT ( ( + 97 ) ) + - - COUNT ( * ) * - 21, - 77 * + + COUNT ( * ) * 52 * - CAST ( + 90 AS INTEGER ) AS col1
----
76
360360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL + 82 - - 76 + - 88 * + CAST( NULL AS SIGNED ) * - ( 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + 82 - - 76 + - 88 * + CAST ( NULL AS INTEGER ) * - ( 72 ) AS col1
----
NULL

query II rowsort
SELECT 38 * - + NULLIF ( + + 50, + + 82 ), + 94 * 99 AS col2
----
-1900
9306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - ( COALESCE ( 17, - COUNT( * ) * + 13 + - - 80 * + 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - ( COALESCE ( 17, - COUNT ( * ) * + 13 + - - 80 * + 54 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT + COUNT( * ) + ( + - COUNT( * ) ) * + 22 * - + COUNT( * ) * + 37
----
815

skipif mysql # not compatible
query I rowsort label-3534
SELECT + COUNT ( * ) + ( + - COUNT ( * ) ) * + 22 * - + COUNT ( * ) * + 37
----
815

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3535
SELECT DISTINCT - NULLIF ( + 28, - AVG ( ALL + CAST( + - 32 AS SIGNED ) ) ) AS col2, 65 * 58
----
-28
3770

skipif mysql # not compatible
query II rowsort label-3535
SELECT DISTINCT - NULLIF ( + 28, - AVG ( ALL + CAST ( + - 32 AS INTEGER ) ) ) AS col2, 65 * 58
----
-28
3770

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3536
SELECT CAST( NULL AS DECIMAL ) + - MIN( + 66 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ( + COUNT( * ) ) - - 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3538
SELECT ( + COUNT ( * ) ) - - 95 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT - 80 DIV - 37 - + 18 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 80 / - 37 - + 18 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT 9 * COALESCE ( - 51, COUNT( * ) + - CASE + + 39 WHEN - - 89 THEN - 3 END + 1, + 82 DIV - 37 ) DIV COUNT( * )
----
-459

skipif mysql # not compatible
query I rowsort label-3540
SELECT 9 * COALESCE ( - 51, COUNT ( * ) + - CASE + + 39 WHEN - - 89 THEN - 3 END + 1, + 82 / - 37 ) / COUNT ( * )
----
-459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3541
SELECT COALESCE ( + - 48, + 76, - - MAX( 92 ) ) DIV 5 - - 27 + + - 3
----
15

skipif mysql # not compatible
query I rowsort label-3541
SELECT COALESCE ( + - 48, + 76, - - MAX ( 92 ) ) / 5 - - 27 + + - 3
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT - ( - - ( + 88 ) ) * ( 84 ) DIV + 97 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - ( - - ( + 88 ) ) * ( 84 ) / + 97 AS col0
----
-76

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

query I rowsort
SELECT DISTINCT + 20 * + 51 col0
----
1020

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT CAST( + - 77 AS SIGNED ) + - - ( + 93 ) + + - 67
----
-51

skipif mysql # not compatible
query I rowsort label-3546
SELECT CAST ( + - 77 AS INTEGER ) + - - ( + 93 ) + + - 67
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT DISTINCT + 70 + - - COUNT( DISTINCT 13 ) * - - MIN( 19 )
----
89

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT + 70 + - - COUNT ( DISTINCT 13 ) * - - MIN ( 19 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT DISTINCT - SUM( DISTINCT 36 ) AS col1, + SUM( + ( ( 55 ) ) ) - 54 * + 74
----
-36
-3941

skipif mysql # not compatible
query II rowsort label-3548
SELECT DISTINCT - SUM ( DISTINCT 36 ) AS col1, + SUM ( + ( ( 55 ) ) ) - 54 * + 74
----
-36
-3941

query II rowsort
SELECT ALL + 37 + - NULLIF ( 38, 84 + + 50 ) col0, 99 * - ( + 11 )
----
-1
-1089

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

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

query II rowsort
SELECT 34, 15 AS col1
----
34
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3552
SELECT MIN( ALL CAST( + 4 AS SIGNED ) ) * + COUNT( * ) DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT MIN ( ALL CAST ( + 4 AS INTEGER ) ) * + COUNT ( * ) / - 9
----
0

query I rowsort
SELECT ALL - 48 + - + 18
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT DISTINCT - NULLIF ( 79, + 83 * - CAST( NULL AS SIGNED ) * + + 71 - + - 77 ) + - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - NULLIF ( 79, + 83 * - CAST ( NULL AS INTEGER ) * + + 71 - + - 77 ) + - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL MIN( DISTINCT - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL MIN ( DISTINCT - 73 )
----
-73

query I rowsort
SELECT ALL 20 + - 62 * + 47
----
-2894

query I rowsort
SELECT 23 * 29 * 94
----
62698

query I rowsort
SELECT ALL - 12 + - 22 * - 9
----
186

query I rowsort
SELECT DISTINCT 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT COUNT( * ) - 67 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3560
SELECT COUNT ( * ) - 67 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL 84 + - 31 + + + MIN( ALL 14 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL 84 + - 31 + + + MIN ( ALL 14 ) AS col0
----
67

query I rowsort
SELECT 13 - + + 55 * 83
----
-4552

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT 49 * - + COUNT( * ) * + - 53 * - 85
----
-220745

skipif mysql # not compatible
query I rowsort label-3563
SELECT 49 * - + COUNT ( * ) * + - 53 * - 85
----
-220745

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT 38 * - - MAX( ( + 97 ) )
----
3686

skipif mysql # not compatible
query I rowsort label-3564
SELECT 38 * - - MAX ( ( + 97 ) )
----
3686

query I rowsort
SELECT DISTINCT 72 * - 16 AS col2
----
-1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT SUM( NULLIF ( 1, + CAST( NULL AS SIGNED ) ) ) - - + 21 + - 1
----
21

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT SUM ( NULLIF ( 1, + CAST ( NULL AS INTEGER ) ) ) - - + 21 + - 1
----
21

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

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

query I rowsort
SELECT + - 40 - + + 57 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT DISTINCT + 27, + 40 * - - COUNT( * ) col1
----
27
40

skipif mysql # not compatible
query II rowsort label-3569
SELECT DISTINCT + 27, + 40 * - - COUNT ( * ) col1
----
27
40

query I rowsort
SELECT + 81 * + - 91
----
-7371

query I rowsort
SELECT ALL 20 * + 46
----
920

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3573
SELECT - CAST( 40 AS SIGNED ) DIV + + COUNT( * ) - 94 col2
----
-134

skipif mysql # not compatible
query I rowsort label-3573
SELECT - CAST ( 40 AS INTEGER ) / + + COUNT ( * ) - 94 col2
----
-134

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3575
SELECT ALL - ( - ( - 34 ) ) * + 49 * - - COUNT( * ) / - COUNT( * ) * 66 * - CAST( NULL AS SIGNED ) AS col2, 74 col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-3575
SELECT ALL - ( - ( - 34 ) ) * + 49 * - - COUNT ( * ) / - COUNT ( * ) * 66 * - CAST ( NULL AS INTEGER ) AS col2, 74 col1
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT - SUM( - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-3576
SELECT - SUM ( - 74 )
----
74

query I rowsort
SELECT ALL + 1 * + 79 * - + 7 + + 85 + + 26
----
-442

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

query I rowsort
SELECT ALL + + 14
----
14

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

query I rowsort
SELECT DISTINCT 16 * 3 + + - 7 * - 81
----
615

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL 54 * + COALESCE ( COUNT( * ), - - SUM( ALL - + 31 ) * - CASE - ( 85 ) WHEN - 63 THEN NULL WHEN COUNT( * ) THEN 46 + + COUNT( * ) END ) + 35 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL 54 * + COALESCE ( COUNT ( * ), - - SUM ( ALL - + 31 ) * - CASE - ( 85 ) WHEN - 63 THEN NULL WHEN COUNT ( * ) THEN 46 + + COUNT ( * ) END ) + 35 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + 6 + - SUM( DISTINCT 98 ) + + CASE - MIN( DISTINCT + 36 ) WHEN - 96 THEN + 93 + 33 - - MIN( ALL + 96 ) - + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT + 6 + - SUM ( DISTINCT 98 ) + + CASE - MIN ( DISTINCT + 36 ) WHEN - 96 THEN + 93 + 33 - - MIN ( ALL + 96 ) - + COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT - 80 DIV + 14
----
-5

skipif mysql # not compatible
query I rowsort label-3584
SELECT - 80 / + 14
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT + 19 + + COUNT( * ) * 78 AS col0, COUNT( * ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-3585
SELECT + 19 + + COUNT ( * ) * 78 AS col0, COUNT ( * ) AS col0
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT - + ( ( + COUNT( * ) ) ) * 36 * 21 AS col0
----
-756

skipif mysql # not compatible
query I rowsort label-3586
SELECT - + ( ( + COUNT ( * ) ) ) * 36 * 21 AS col0
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3587
SELECT + + 86 col0, 66 + NULLIF ( + + 18, + CASE 37 WHEN + COUNT( * ) + 20 + - CAST( + + COUNT( * ) AS SIGNED ) THEN 31 * + CAST( 32 AS SIGNED ) ELSE - 42 + CASE + 41 WHEN 32 + + COUNT( * ) * - 96 THEN NULL WHEN 88 + - ( - COUNT( * ) ) THEN 65 + ( + COALESCE ( + 93, 5 ) ) WHEN + 29 THEN - 85 END / 60 END * - 68 ) AS col0
----
86
84

skipif mysql # not compatible
query II rowsort label-3587
SELECT + + 86 col0, 66 + NULLIF ( + + 18, + CASE 37 WHEN + COUNT ( * ) + 20 + - CAST ( + + COUNT ( * ) AS INTEGER ) THEN 31 * + CAST ( 32 AS INTEGER ) ELSE - 42 + CASE + 41 WHEN 32 + + COUNT ( * ) * - 96 THEN NULL WHEN 88 + - ( - COUNT ( * ) ) THEN 65 + ( + COALESCE ( + 93, 5 ) ) WHEN + 29 THEN - 85 END / 60 END * - 68 ) AS col0
----
86
84

query I rowsort
SELECT ( - - 48 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT ALL - MIN( DISTINCT - ( - + CAST( 47 AS SIGNED ) ) ) * - 58 AS col1
----
2726

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL - MIN ( DISTINCT - ( - + CAST ( 47 AS INTEGER ) ) ) * - 58 AS col1
----
2726

query I rowsort
SELECT ALL 71 * + + 47 + - - 46 AS col2
----
3383

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT + COUNT( ALL + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT + COUNT ( ALL + 71 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3592
SELECT ALL - 49 * + + 6 * + - 86 + + CAST( + AVG ( ALL 36 ) AS SIGNED ) * - COUNT( * ) + + + 79 + - + 38 + ( 44 ) * CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL - 49 * + + 6 * + - 86 + + CAST ( + AVG ( ALL 36 ) AS INTEGER ) * - COUNT ( * ) + + + 79 + - + 38 + ( 44 ) * CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 50 + + 68
----
18

query I rowsort
SELECT ALL - 44 * + 65 AS col2
----
-2860

query I rowsort
SELECT - 26 + 17 + 9
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3596
SELECT ALL NULLIF ( + ( - 14 ), 54 ) DIV CAST( 27 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL NULLIF ( + ( - 14 ), 54 ) / CAST ( 27 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT + CASE 8 WHEN + 46 THEN NULL ELSE ( + COUNT( * ) ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT + CASE 8 WHEN + 46 THEN NULL ELSE ( + COUNT ( * ) ) END AS col2
----
1

query I rowsort
SELECT - 79 + - 25 AS col2
----
-104

query I rowsort
SELECT - 91 + - 26 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query III rowsort label-3600
SELECT - 67 + + 79 AS col0, + CASE - - 83 WHEN - COUNT( * ) THEN NULL ELSE - ( - MIN( ALL + ( 4 ) ) ) END, - COALESCE ( - ( COUNT( * ) ), 29 ) / + CASE - COUNT( * ) WHEN - 57 THEN + 18 / - 27 WHEN - 97 THEN 41 * - 1 ELSE - ( + CASE 93 WHEN - 32 / + 20 THEN - 84 * 11 ELSE NULL END ) END col0
----
12
4
NULL

skipif mysql # not compatible
query III rowsort label-3600
SELECT - 67 + + 79 AS col0, + CASE - - 83 WHEN - COUNT ( * ) THEN NULL ELSE - ( - MIN ( ALL + ( 4 ) ) ) END, - COALESCE ( - ( COUNT ( * ) ), 29 ) / + CASE - COUNT ( * ) WHEN - 57 THEN + 18 / - 27 WHEN - 97 THEN 41 * - 1 ELSE - ( + CASE 93 WHEN - 32 / + 20 THEN - 84 * 11 ELSE NULL END ) END col0
----
12
4
NULL

query I rowsort
SELECT + 73 - - 79
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL CASE - NULLIF ( - - ( + 13 ), - + 96 ) WHEN + 40 THEN - CASE + - 30 WHEN + 23 THEN + + 91 END ELSE + CASE 79 WHEN COUNT( * ) THEN - 75 WHEN COALESCE ( COALESCE ( 52, COUNT( * ) / 94, + COUNT( * ) - COUNT( * ) ), + COUNT( * ) / - 78, - 98 ) - 27 THEN NULL ELSE NULL END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL CASE - NULLIF ( - - ( + 13 ), - + 96 ) WHEN + 40 THEN - CASE + - 30 WHEN + 23 THEN + + 91 END ELSE + CASE 79 WHEN COUNT ( * ) THEN - 75 WHEN COALESCE ( COALESCE ( 52, COUNT ( * ) / 94, + COUNT ( * ) - COUNT ( * ) ), + COUNT ( * ) / - 78, - 98 ) - 27 THEN NULL ELSE NULL END END col0
----
NULL

query I rowsort
SELECT ALL 31 * + 96 AS col1
----
2976

onlyif mysql # aggregate syntax: 
query II rowsort label-3604
SELECT DISTINCT ( - 37 ), COUNT( DISTINCT + 26 ) AS col1
----
-37
1

skipif mysql # not compatible
query II rowsort label-3604
SELECT DISTINCT ( - 37 ), COUNT ( DISTINCT + 26 ) AS col1
----
-37
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT DISTINCT CAST( - 13 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT CAST ( - 13 AS INTEGER ) AS col0
----
-13

query II rowsort
SELECT + + 78 * + 37 + - 76 * 96 AS col2, + 69 * 96
----
-4410
6624

onlyif mysql # aggregate syntax: 
query II rowsort label-3607
SELECT + 2 AS col0, - SUM( ALL - 77 ) AS col1
----
2
77

skipif mysql # not compatible
query II rowsort label-3607
SELECT + 2 AS col0, - SUM ( ALL - 77 ) AS col1
----
2
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - - COUNT( ALL + + 3 ) + + - 12
----
-11

skipif mysql # not compatible
query I rowsort label-3608
SELECT - - COUNT ( ALL + + 3 ) + + - 12
----
-11

query I rowsort
SELECT + - ( + ( + - 3 ) ) * 17 - + + 66
----
-15

query II rowsort
SELECT + + 28 + + ( + + ( - 29 ) ), 36 AS col0
----
-1
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3611
SELECT ALL + 22 DIV - 2 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL + 22 / - 2 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT + + 17 DIV + 31 col1
----
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT + + 17 / + 31 col1
----
0

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

query I rowsort
SELECT DISTINCT - 67 col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3615
SELECT ALL 54 + - COALESCE ( - - 10, + + 30, NULLIF ( + - 84, + 74 * - NULLIF ( + 47, - 53 + - 40 + 76 * - 47 * + MAX( - 86 ) ) ) DIV 29 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL 54 + - COALESCE ( - - 10, + + 30, NULLIF ( + - 84, + 74 * - NULLIF ( + 47, - 53 + - 40 + 76 * - 47 * + MAX ( - 86 ) ) ) / 29 ) AS col0
----
44

query I rowsort
SELECT ALL + 73 + + 20 AS col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT ALL 98 DIV - - 33 + + 77 * + 16
----
1234

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL 98 / - - 33 + + 77 * + 16
----
1234

query II rowsort
SELECT + + 31, 8 AS col0
----
31
8

query I rowsort
SELECT ALL - 81 * - 30 col0
----
2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3620
SELECT + COUNT( * ) * - + SUM( CASE - 27 WHEN - + 65 * - 26 * + + 73 * - - CAST( 38 AS SIGNED ) + - 16 * 31 * - 22 THEN - 62 END ) + - 82 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT + COUNT ( * ) * - + SUM ( CASE - 27 WHEN - + 65 * - 26 * + + 73 * - - CAST ( 38 AS INTEGER ) + - 16 * 31 * - 22 THEN - 62 END ) + - 82 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3621
SELECT ALL 14 DIV + 79 * - COUNT( * ) + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL 14 / + 79 * - COUNT ( * ) + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3622
SELECT + COUNT( * ) AS col0, + 48 DIV + 82 * 47 * - 75 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-3622
SELECT + COUNT ( * ) AS col0, + 48 / + 82 * 47 * - 75 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT 32 * - COUNT( * ) * 9 - 19 AS col1
----
-307

skipif mysql # not compatible
query I rowsort label-3623
SELECT 32 * - COUNT ( * ) * 9 - 19 AS col1
----
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT SUM( DISTINCT 45 )
----
45

skipif mysql # not compatible
query I rowsort label-3624
SELECT SUM ( DISTINCT 45 )
----
45

query I rowsort
SELECT DISTINCT + 59 col1
----
59

query I rowsort
SELECT DISTINCT + 40 AS col2
----
40

query I rowsort
SELECT ALL - 5 / - ( 81 ) + - CASE 79 WHEN - 27 THEN NULL WHEN + 10 THEN + 99 END + + 53
----
NULL

query I rowsort
SELECT DISTINCT + 55 AS col1
----
55

query I rowsort
SELECT ALL + 68
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-3630
SELECT + 15 * - 24 col0, 47 * 61 DIV - - 47 AS col0
----
-360
61

skipif mysql # not compatible
query II rowsort label-3630
SELECT + 15 * - 24 col0, 47 * 61 / - - 47 AS col0
----
-360
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT DISTINCT - 95 * + + 91 * + - MAX( ALL + 3 ) - 28 + + 94 * + 34
----
29103

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT - 95 * + + 91 * + - MAX ( ALL + 3 ) - 28 + + 94 * + 34
----
29103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3632
SELECT DISTINCT + 40 * SUM( ALL - + 22 ), - COUNT( * ) DIV - MIN( 58 ) - COUNT( * ) AS col0
----
-880
-1

skipif mysql # not compatible
query II rowsort label-3632
SELECT DISTINCT + 40 * SUM ( ALL - + 22 ), - COUNT ( * ) / - MIN ( 58 ) - COUNT ( * ) AS col0
----
-880
-1

query II rowsort
SELECT 42 * + 51, + 42 AS col1
----
2142
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3634
SELECT DISTINCT - 68 - - CAST( - ( ( - COUNT( + 79 ) ) ) AS SIGNED ) DIV ( - 7 ) + + COALESCE ( + - 6, - 89 - - + 24 )
----
-74

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - 68 - - CAST ( - ( ( - COUNT ( + 79 ) ) ) AS INTEGER ) / ( - 7 ) + + COALESCE ( + - 6, - 89 - - + 24 )
----
-74

query I rowsort
SELECT ALL - 95 * - 13
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT 64 * COUNT( 44 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3636
SELECT 64 * COUNT ( 44 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT COUNT( ALL 16 ) * 69 * - 68 col2
----
-4692

skipif mysql # not compatible
query I rowsort label-3637
SELECT COUNT ( ALL 16 ) * 69 * - 68 col2
----
-4692

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

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

query I rowsort
SELECT 77 * + 21 AS col2
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT SUM( - 42 ) + + + COALESCE ( + + 58, ( + 7 ) - - 79 ) * - 8 + + 26
----
-480

skipif mysql # not compatible
query I rowsort label-3640
SELECT SUM ( - 42 ) + + + COALESCE ( + + 58, ( + 7 ) - - 79 ) * - 8 + + 26
----
-480

query I rowsort
SELECT - + NULLIF ( - 35, - 1 - 14 * - 68 * + - 22 )
----
35

query I rowsort
SELECT 15 * - - 12 * - - 47 AS col1
----
8460

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3643
SELECT + COUNT( + + 11 ) + COALESCE ( - 12, + 15, + 60 ) + + - 74 DIV COUNT( * ) AS col2, COUNT( + - 47 )
----
-85
1

skipif mysql # not compatible
query II rowsort label-3643
SELECT + COUNT ( + + 11 ) + COALESCE ( - 12, + 15, + 60 ) + + - 74 / COUNT ( * ) AS col2, COUNT ( + - 47 )
----
-85
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3644
SELECT ALL + - NULLIF ( - + 36, + 19 * + + 82 ) + + CAST( 26 AS SIGNED ) DIV 86 * + 61 * COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL + - NULLIF ( - + 36, + 19 * + + 82 ) + + CAST ( 26 AS INTEGER ) / 86 * + 61 * COUNT ( * )
----
36

query I rowsort
SELECT DISTINCT - COALESCE ( - 50, - - 15 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL + SUM( DISTINCT + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL + SUM ( DISTINCT + 78 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3647
SELECT ALL 43 + + - SUM( + - 80 ), - COUNT( * ) AS col0
----
123
-1

skipif mysql # not compatible
query II rowsort label-3647
SELECT ALL 43 + + - SUM ( + - 80 ), - COUNT ( * ) AS col0
----
123
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3648
SELECT 54 - + 83 AS col0, - CASE - 32 WHEN 57 / 52 * 42 + 17 * + + 86 THEN NULL WHEN 54 + COUNT( * ) THEN 54 WHEN - 32 THEN + CASE - 75 WHEN MIN( 31 ) THEN NULL WHEN 17 * + 88 THEN NULL ELSE - COUNT( * ) * 84 END * 42 ELSE NULLIF ( ( 24 ), + NULLIF ( + CAST( + AVG ( ALL 19 ) AS SIGNED ), CASE - 90 WHEN 40 + NULLIF ( 19, 78 ) THEN + 12 + + COUNT( * ) * 76 ELSE - ( + 14 ) END + + 6 * + CAST( + 52 AS SIGNED ) ) ) END + - 58 AS col2
----
-29
3470

skipif mysql # not compatible
query II rowsort label-3648
SELECT 54 - + 83 AS col0, - CASE - 32 WHEN 57 / 52 * 42 + 17 * + + 86 THEN NULL WHEN 54 + COUNT ( * ) THEN 54 WHEN - 32 THEN + CASE - 75 WHEN MIN ( 31 ) THEN NULL WHEN 17 * + 88 THEN NULL ELSE - COUNT ( * ) * 84 END * 42 ELSE NULLIF ( ( 24 ), + NULLIF ( + CAST ( + AVG ( ALL 19 ) AS INTEGER ), CASE - 90 WHEN 40 + NULLIF ( 19, 78 ) THEN + 12 + + COUNT ( * ) * 76 ELSE - ( + 14 ) END + + 6 * + CAST ( + 52 AS INTEGER ) ) ) END + - 58 AS col2
----
-29
3470

query I rowsort
SELECT DISTINCT - - ( 78 ) + + 51 AS col0
----
129

query I rowsort
SELECT ALL + 0 + + - 56 * + 44 * 13
----
-32032

query I rowsort
SELECT ALL - 41 + + 81 AS col0
----
40

query I rowsort
SELECT DISTINCT + - 49 * + - 17 + 67 AS col0
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT + 92 + + MIN( DISTINCT 7 )
----
99

skipif mysql # not compatible
query I rowsort label-3653
SELECT + 92 + + MIN ( DISTINCT 7 )
----
99

query I rowsort
SELECT 23 * + + 58
----
1334

query I rowsort
SELECT - + 10
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3656
SELECT 54 DIV - + 13 AS col2, - 58 + COALESCE ( - - 97, - ( + 12 ) * + + COUNT( * ) ) * - COALESCE ( - COUNT( * ), - 50 ) + - 87
----
-4
-48

skipif mysql # not compatible
query II rowsort label-3656
SELECT 54 / - + 13 AS col2, - 58 + COALESCE ( - - 97, - ( + 12 ) * + + COUNT ( * ) ) * - COALESCE ( - COUNT ( * ), - 50 ) + - 87
----
-4
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT + ( 40 ) DIV - 4 - + 9
----
-19

skipif mysql # not compatible
query I rowsort label-3657
SELECT + ( 40 ) / - 4 - + 9
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT DISTINCT + 17 DIV - 15 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT + 17 / - 15 AS col0
----
-1

query I rowsort
SELECT 2 * - ( + 62 ) AS col2
----
-124

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3661
SELECT COUNT( * ) DIV + 18 - + 81 * - 58 * + - 18 * - 58 AS col2
----
4904712

skipif mysql # not compatible
query I rowsort label-3661
SELECT COUNT ( * ) / + 18 - + 81 * - 58 * + - 18 * - 58 AS col2
----
4904712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT DISTINCT + 67 * + 47 * + SUM( + 74 ) * + 79 * + - 18 + + 63 + + 80 + - - 59 + - - 48 + - - 1 * + ( + CASE 54 WHEN COALESCE ( 68, - NULLIF ( + 78, + 82 * 94 ) * 58, + 64 + + CAST( NULL AS SIGNED ) ) / - COUNT( * ) THEN NULL WHEN + COUNT( + 76 ) THEN 29 END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + 67 * + 47 * + SUM ( + 74 ) * + 79 * + - 18 + + 63 + + 80 + - - 59 + - - 48 + - - 1 * + ( + CASE 54 WHEN COALESCE ( 68, - NULLIF ( + 78, + 82 * 94 ) * 58, + 64 + + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) THEN NULL WHEN + COUNT ( + 76 ) THEN 29 END ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 33 - 31
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT COALESCE ( - COUNT( * ), - 46 * + 0 ) * 63
----
-63

skipif mysql # not compatible
query I rowsort label-3664
SELECT COALESCE ( - COUNT ( * ), - 46 * + 0 ) * 63
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT DISTINCT - 71, 59 * COALESCE ( + + 87, - - ( - COUNT( * ) ), + COALESCE ( 17, - - SUM( DISTINCT + 14 ) ) ) AS col2
----
-71
5133

skipif mysql # not compatible
query II rowsort label-3665
SELECT DISTINCT - 71, 59 * COALESCE ( + + 87, - - ( - COUNT ( * ) ), + COALESCE ( 17, - - SUM ( DISTINCT + 14 ) ) ) AS col2
----
-71
5133

query I rowsort
SELECT 48 + - - 91
----
139

query I rowsort
SELECT ( - + 7 ) * 94 + - 55 * - - 38
----
-2748

query I rowsort
SELECT 38 + + 8 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT 77 + - 48 + ( + 23 ) * 74 * ( - CASE 29 WHEN ( + 54 ) * - CAST( + 68 AS SIGNED ) * + - 36 / + CASE + 58 WHEN 31 THEN NULL ELSE - 55 END + 19 + 62 THEN 70 WHEN CAST( + COALESCE ( COALESCE ( COALESCE ( 97, 31 / CAST( - 15 AS SIGNED ), - 74 ), MIN( 6 ) - 30 ), + 10 + - 72 * + CAST( - 63 AS SIGNED ) ) AS SIGNED ) THEN NULLIF ( 31, MAX( 49 ) - NULLIF ( SUM( 16 ), 95 + - CASE 82 WHEN + MIN( ALL - 19 ) * 13 THEN COUNT( * ) + - 9 WHEN 10 THEN 86 WHEN COUNT( * ) THEN NULL END ) ) END ) + 44 * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT 77 + - 48 + ( + 23 ) * 74 * ( - CASE 29 WHEN ( + 54 ) * - CAST ( + 68 AS INTEGER ) * + - 36 / + CASE + 58 WHEN 31 THEN NULL ELSE - 55 END + 19 + 62 THEN 70 WHEN CAST ( + COALESCE ( COALESCE ( COALESCE ( 97, 31 / CAST ( - 15 AS INTEGER ), - 74 ), MIN ( 6 ) - 30 ), + 10 + - 72 * + CAST ( - 63 AS INTEGER ) ) AS INTEGER ) THEN NULLIF ( 31, MAX ( 49 ) - NULLIF ( SUM ( 16 ), 95 + - CASE 82 WHEN + MIN ( ALL - 19 ) * 13 THEN COUNT ( * ) + - 9 WHEN 10 THEN 86 WHEN COUNT ( * ) THEN NULL END ) ) END ) + 44 * 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL - 64 + + COUNT( * ) * + - 64 * - + ( - 74 ) * - COUNT( * ) * - - 96 * MIN( DISTINCT - - 92 )
----
41828288

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL - 64 + + COUNT ( * ) * + - 64 * - + ( - 74 ) * - COUNT ( * ) * - - 96 * MIN ( DISTINCT - - 92 )
----
41828288

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT - 30 + + 22 * - 55 + + - MAX( + - 19 ) AS col1
----
-1221

skipif mysql # not compatible
query I rowsort label-3671
SELECT - 30 + + 22 * - 55 + + - MAX ( + - 19 ) AS col1
----
-1221

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT DISTINCT + 28 DIV - + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + 28 / - + 88 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT - 74 DIV + 49
----
-1

skipif mysql # not compatible
query I rowsort label-3673
SELECT - 74 / + 49
----
-1

query I rowsort
SELECT ALL + 6 + + 82
----
88

query II rowsort
SELECT - 37 AS col1, - 82 AS col1
----
-37
-82

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

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - ( + COUNT ( * ) ) * + 19 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) col0
----
NULL

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

query II rowsort
SELECT - 71 AS col1, 24 AS col2
----
-71
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT + 24 + - SUM( - 58 ) * 42 col0
----
2460

skipif mysql # not compatible
query I rowsort label-3679
SELECT + 24 + - SUM ( - 58 ) * 42 col0
----
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT + MIN( DISTINCT - + 55 ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-3680
SELECT + MIN ( DISTINCT - + 55 ) col2
----
-55

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

query II rowsort
SELECT ALL + 35, 83 AS col1
----
35
83

query I rowsort
SELECT - 90 * 51 col2
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT 38 + - + SUM( ALL ( - 66 ) ) + - 47
----
57

skipif mysql # not compatible
query I rowsort label-3684
SELECT 38 + - + SUM ( ALL ( - 66 ) ) + - 47
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT DISTINCT ( ( - MIN( - 94 ) ) )
----
94

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT ( ( - MIN ( - 94 ) ) )
----
94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT - CASE 88 WHEN + CAST( + - 48 AS SIGNED ) THEN 24 + + CAST( - 24 AS SIGNED ) + + + 65 * - ( - - 28 ) * SUM( DISTINCT 63 ) + - ( - 54 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT - CASE 88 WHEN + CAST ( + - 48 AS INTEGER ) THEN 24 + + CAST ( - 24 AS INTEGER ) + + + 65 * - ( - - 28 ) * SUM ( DISTINCT 63 ) + - ( - 54 ) END AS col2
----
NULL

query I rowsort
SELECT + 22 + - - 33
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3689
SELECT 17 * 73 + + - CAST( + + COUNT( * ) AS SIGNED )
----
1240

skipif mysql # not compatible
query I rowsort label-3689
SELECT 17 * 73 + + - CAST ( + + COUNT ( * ) AS INTEGER )
----
1240

query I rowsort
SELECT ALL + 38 * - 61 col2
----
-2318

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT ( 71 ) + + 77 + 8, - COUNT( DISTINCT 76 ) AS col1
----
156
-1

skipif mysql # not compatible
query II rowsort label-3691
SELECT ( 71 ) + + 77 + 8, - COUNT ( DISTINCT 76 ) AS col1
----
156
-1

query I rowsort
SELECT ALL + + 55 * - 56 AS col2
----
-3080

query I rowsort
SELECT + + 50 col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT COALESCE ( + 80, ( - - 81 ) DIV + 23 DIV 24 )
----
80

skipif mysql # not compatible
query I rowsort label-3694
SELECT COALESCE ( + 80, ( - - 81 ) / + 23 / 24 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT - CAST( NULL AS SIGNED ) * + 38 * - + 81 + + - 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT - CAST ( NULL AS INTEGER ) * + 38 * - + 81 + + - 7 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT MIN( DISTINCT 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3696
SELECT MIN ( DISTINCT 97 ) AS col1
----
97

query I rowsort
SELECT ALL - 68 * 58
----
-3944

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT ALL 55 DIV ( - + 41 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL 55 / ( - + 41 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 74 AS col1
----
74

query I rowsort
SELECT DISTINCT + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - 84 * - NULLIF ( - 52, + + SUM( DISTINCT + 59 ) )
----
-4368

skipif mysql # not compatible
query I rowsort label-3702
SELECT - 84 * - NULLIF ( - 52, + + SUM ( DISTINCT + 59 ) )
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT SUM( DISTINCT - - ( - 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-3703
SELECT SUM ( DISTINCT - - ( - 15 ) )
----
-15

query I rowsort
SELECT DISTINCT 54 * 89 AS col2
----
4806

query I rowsort
SELECT DISTINCT 13 * - COALESCE ( - + 61, + 82, 86 ) * + - 88 * - + 85 AS col2
----
5931640

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL ( + COUNT( * ) ) * - COUNT( * ) + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL ( + COUNT ( * ) ) * - COUNT ( * ) + - 54
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT COUNT( ALL 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3707
SELECT COUNT ( ALL 79 ) AS col2
----
1

query I rowsort
SELECT ALL 19 * - + 45 + - - ( - ( + 33 ) ) AS col1
----
-888

query I rowsort
SELECT ALL + 35 + 63
----
98

query II rowsort
SELECT ALL - 66 + + 66, - 15 AS col1
----
0
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3711
SELECT - CAST( - 86 AS SIGNED ) AS col1, - 3
----
86
-3

skipif mysql # not compatible
query II rowsort label-3711
SELECT - CAST ( - 86 AS INTEGER ) AS col1, - 3
----
86
-3

query I rowsort
SELECT ALL 64 + - 98
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3713
SELECT + - 5 DIV MAX( DISTINCT - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-3713
SELECT + - 5 / MAX ( DISTINCT - 57 )
----
0

query I rowsort
SELECT + COALESCE ( - 59, 43 * + 33 ) + 69
----
10

query I rowsort
SELECT - 17 * - 51 * - - 43
----
37281

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

query I rowsort
SELECT + 61 + + 48
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT DISTINCT 5 * + CAST( - 34 AS SIGNED )
----
-170

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT 5 * + CAST ( - 34 AS INTEGER )
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + MIN( - 22 ) + + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3719
SELECT + MIN ( - 22 ) + + + COUNT ( * )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT - 44 DIV 75 + + 27 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3720
SELECT - 44 / 75 + + 27 AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT + - CAST( NULL AS SIGNED ) * - + 9 * - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT + - CAST ( NULL AS INTEGER ) * - + 9 * - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + 59 - - - 53 + + COUNT( * ) + MIN( ALL - 4 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + 59 - - - 53 + + COUNT ( * ) + MIN ( ALL - 4 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT - CASE ( 2 ) WHEN - 81 THEN NULL WHEN - 13 THEN - - 65 + COALESCE ( SUM( DISTINCT + 10 ), - SUM( ALL + - 31 ) + + 12 / + 8 / 49, + 64 ) + - 35 * 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT - CASE ( 2 ) WHEN - 81 THEN NULL WHEN - 13 THEN - - 65 + COALESCE ( SUM ( DISTINCT + 10 ), - SUM ( ALL + - 31 ) + + 12 / + 8 / 49, + 64 ) + - 35 * 2 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT DISTINCT + ( CAST( + 41 AS SIGNED ) ) * - + 45 AS col1
----
-1845

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT + ( CAST ( + 41 AS INTEGER ) ) * - + 45 AS col1
----
-1845

query I rowsort
SELECT DISTINCT 76 - - 9
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT + MIN( - + ( - 58 ) ) col0
----
58

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + MIN ( - + ( - 58 ) ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - + 4 + + + 23 + - 12 * + 57 - COUNT( * )
----
-666

skipif mysql # not compatible
query I rowsort label-3727
SELECT - + 4 + + + 23 + - 12 * + 57 - COUNT ( * )
----
-666

query I rowsort
SELECT DISTINCT - CASE 67 WHEN - + 93 THEN - + 21 * + 74 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT + 77 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-3729
SELECT + 77 / 71
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT ALL COALESCE ( + COUNT( * ), 7 ) AS col1, 57 AS col0
----
1
57

skipif mysql # not compatible
query II rowsort label-3730
SELECT ALL COALESCE ( + COUNT ( * ), 7 ) AS col1, 57 AS col0
----
1
57

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3732
SELECT - CASE - - 93 WHEN 18 * - 9 THEN NULL WHEN - - CASE - 51 WHEN + 0 + - + AVG ( + 27 ) * + 67 * - CASE + - 63 WHEN - - 40 + - 26 - 24 THEN 83 * NULLIF ( - 61, 99 ) WHEN 17 * CAST( NULL AS SIGNED ) + - 62 THEN NULL END + - COUNT( * ) THEN NULL WHEN - 38 - - 40 THEN COALESCE ( SUM( ALL 94 ), - 38 * - 83 ) ELSE 80 * - 64 END THEN 7 ELSE NULL END * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT - CASE - - 93 WHEN 18 * - 9 THEN NULL WHEN - - CASE - 51 WHEN + 0 + - + AVG ( + 27 ) * + 67 * - CASE + - 63 WHEN - - 40 + - 26 - 24 THEN 83 * NULLIF ( - 61, 99 ) WHEN 17 * CAST ( NULL AS INTEGER ) + - 62 THEN NULL END + - COUNT ( * ) THEN NULL WHEN - 38 - - 40 THEN COALESCE ( SUM ( ALL 94 ), - 38 * - 83 ) ELSE 80 * - 64 END THEN 7 ELSE NULL END * 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT COALESCE ( 48, 53 + - 78 - - - 88 + + COUNT( * ) * - + 50 + + + 13 - 6 * + - 18 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT COALESCE ( 48, 53 + - 78 - - - 88 + + COUNT ( * ) * - + 50 + + + 13 - 6 * + - 18 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL + MAX( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + MAX ( DISTINCT 32 )
----
32

query I rowsort
SELECT - 20 * + 75 col0
----
-1500

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - 2 + 21 * + - 15 * MIN( ALL - 21 ) + 77 * ( - + ( - - COUNT( * ) ) ) AS col0
----
6536

skipif mysql # not compatible
query I rowsort label-3740
SELECT - 2 + 21 * + - 15 * MIN ( ALL - 21 ) + 77 * ( - + ( - - COUNT ( * ) ) ) AS col0
----
6536

query I rowsort
SELECT DISTINCT - 19 * + 49
----
-931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT ALL NULLIF ( + CAST( - - 15 AS SIGNED ), - 22 + - 19 - - 82 + + 22 + - 9 ) * ( - - 31 ) + - 58 AS col1
----
407

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL NULLIF ( + CAST ( - - 15 AS INTEGER ), - 22 + - 19 - - 82 + + 22 + - 9 ) * ( - - 31 ) + - 58 AS col1
----
407

query I rowsort
SELECT - 53 * 75 + + 5 * + + 2
----
-3965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3744
SELECT + ( - SUM( ALL 54 ) ) - + - 11 + - + 43 * - + 77 * - - COALESCE ( 12, + - 41 * 79 DIV + 6 + + 1 + + ( - - COUNT( * ) ), - - 49 ) AS col1
----
39689

skipif mysql # not compatible
query I rowsort label-3744
SELECT + ( - SUM ( ALL 54 ) ) - + - 11 + - + 43 * - + 77 * - - COALESCE ( 12, + - 41 * 79 / + 6 + + 1 + + ( - - COUNT ( * ) ), - - 49 ) AS col1
----
39689

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + COALESCE ( + 36, + 81, 70 * - COUNT( ALL - 15 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3745
SELECT + COALESCE ( + 36, + 81, 70 * - COUNT ( ALL - 15 ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT MIN( ALL 30 ) * - + COUNT( * ) + 67
----
37

skipif mysql # not compatible
query I rowsort label-3746
SELECT MIN ( ALL 30 ) * - + COUNT ( * ) + 67
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT ALL ( - - NULLIF ( + + COALESCE ( + - CASE + COUNT( * ) WHEN 33 + - 78 + 94 * - 35 DIV - 34 THEN - COUNT( * ) * - 51 + + 5 DIV + COUNT( * ) ELSE NULL END, 10 + + 75, 14 ), 1 DIV 19 ) ) * + 45 + 91 * + ( - 58 * 85 )
----
-444805

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL ( - - NULLIF ( + + COALESCE ( + - CASE + COUNT ( * ) WHEN 33 + - 78 + 94 * - 35 / - 34 THEN - COUNT ( * ) * - 51 + + 5 / + COUNT ( * ) ELSE NULL END, 10 + + 75, 14 ), 1 / 19 ) ) * + 45 + 91 * + ( - 58 * 85 )
----
-444805

query I rowsort
SELECT - NULLIF ( - 89, 26 ) + + 2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - ( + 18 ) + + + SUM( ALL 61 ) + - 47 * + - ( - + 66 )
----
-3059

skipif mysql # not compatible
query I rowsort label-3749
SELECT - ( + 18 ) + + + SUM ( ALL 61 ) + - 47 * + - ( - + 66 )
----
-3059

query I rowsort
SELECT ALL + - 35 col0
----
-35

query I rowsort
SELECT + 89 * - 48 + + + 60
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL 80 * - - 77 + - 84 + + 6 * + ( - + 94 ) * + CASE + + 39 WHEN + 29 * + + 60 + 64 + - + 26 THEN NULL WHEN 51 THEN ( - + 78 ) * - COALESCE ( - COUNT( * ) * SUM( 25 * + 64 ), 33, 67 / 97 ) - ( NULLIF ( - SUM( 81 ), + 3 ) + 53 / 64 ) ELSE NULL END * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL 80 * - - 77 + - 84 + + 6 * + ( - + 94 ) * + CASE + + 39 WHEN + 29 * + + 60 + 64 + - + 26 THEN NULL WHEN 51 THEN ( - + 78 ) * - COALESCE ( - COUNT ( * ) * SUM ( 25 * + 64 ), 33, 67 / 97 ) - ( NULLIF ( - SUM ( 81 ), + 3 ) + 53 / 64 ) ELSE NULL END * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + COUNT( + 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3753
SELECT + COUNT ( + 66 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT + MAX( DISTINCT + + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3754
SELECT + MAX ( DISTINCT + + 69 ) AS col2
----
69

query I rowsort
SELECT DISTINCT + ( - COALESCE ( + - 84, 42 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3756
SELECT - 32 DIV - SUM( - - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT - 32 / - SUM ( - - 34 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT + - 18 * + COALESCE ( + - 60, - COUNT( * ) ) AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-3757
SELECT + - 18 * + COALESCE ( + - 60, - COUNT ( * ) ) AS col2
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL - 12 * + + MIN( ALL + 77 ) AS col2
----
-924

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL - 12 * + + MIN ( ALL + 77 ) AS col2
----
-924

query I rowsort
SELECT ALL 75 * - + 28 AS col0
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - + COUNT( * ) * - 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3760
SELECT - + COUNT ( * ) * - 57 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3761
SELECT + NULLIF ( - 67, + ( COUNT( * ) ) + - + 71 + + 71 * + - CAST( - 0 AS SIGNED ) - - 30 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3761
SELECT + NULLIF ( - 67, + ( COUNT ( * ) ) + - + 71 + + 71 * + - CAST ( - 0 AS INTEGER ) - - 30 ) AS col2
----
-67

query I rowsort
SELECT DISTINCT 94 * + 24
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT - + 38 * + COUNT( * ) * - 33 * + 42 AS col0
----
52668

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT - + 38 * + COUNT ( * ) * - 33 * + 42 AS col0
----
52668

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL - MIN( 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - MIN ( 76 ) AS col2
----
-76

query I rowsort
SELECT + 8 + 66 AS col0
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-3768
SELECT ALL + 44 AS col1, 75 + + + 65 DIV + 95 AS col1
----
44
75

skipif mysql # not compatible
query II rowsort label-3768
SELECT ALL + 44 AS col1, 75 + + + 65 / + 95 AS col1
----
44
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + 48 * CASE - 19 WHEN - + 41 * + + COUNT( * ) * 91 THEN NULL WHEN - + 72 THEN + + 69 * 78 ELSE + 10 * + 58 + - 44 - + 46 + + - 43 * - + 34 END AS col0
----
93696

skipif mysql # not compatible
query I rowsort label-3769
SELECT + 48 * CASE - 19 WHEN - + 41 * + + COUNT ( * ) * 91 THEN NULL WHEN - + 72 THEN + + 69 * 78 ELSE + 10 * + 58 + - 44 - + 46 + + - 43 * - + 34 END AS col0
----
93696

query I rowsort
SELECT + - 16 * - + 40 * - - 59
----
37760

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL SUM( ALL + - 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL SUM ( ALL + - 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT COALESCE ( - 64, ( + MAX( + 99 ) ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3772
SELECT COALESCE ( - 64, ( + MAX ( + 99 ) ) ) AS col0
----
-64

query I rowsort
SELECT - - 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + 68 * + COUNT( DISTINCT 24 ) * - 26 * - 94 * - 39
----
-6481488

skipif mysql # not compatible
query I rowsort label-3774
SELECT + 68 * + COUNT ( DISTINCT 24 ) * - 26 * - 94 * - 39
----
-6481488

query I rowsort
SELECT 58 * + + 14
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT MAX( - 30 ) * - ( + COUNT( 73 ) ) + + - 6 + - 34 col0
----
-10

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT MAX ( - 30 ) * - ( + COUNT ( 73 ) ) + + - 6 + - 34 col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT DISTINCT 92 DIV + 95 * + ( + 39 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT 92 / + 95 * + ( + 39 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3778
SELECT DISTINCT - 13 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT - 13 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT NULLIF ( - 93, + + 48 ) + + 39 + - 78 - + COUNT( DISTINCT + + 47 ) * + 83 * - 39 AS col1
----
3105

skipif mysql # not compatible
query I rowsort label-3779
SELECT NULLIF ( - 93, + + 48 ) + + 39 + - 78 - + COUNT ( DISTINCT + + 47 ) * + 83 * - 39 AS col1
----
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT NULLIF ( + + 65, 66 ) * + 64 - + 60 * + ( - COUNT( * ) )
----
4220

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT NULLIF ( + + 65, 66 ) * + 64 - + 60 * + ( - COUNT ( * ) )
----
4220

query I rowsort
SELECT ALL 3 * - 25 AS col1
----
-75

query I rowsort
SELECT 58 + 52 + - 5 AS col0
----
105

query II rowsort
SELECT + 58, + 50 + + + 24 + - 60 + + NULLIF ( + + 61, 71 * + 97 * + 6 ) * - + 46 AS col1
----
58
-2792

query I rowsort
SELECT ALL 96 + 23 * + 70
----
1706

query I rowsort
SELECT NULLIF ( - 95, + ( - 22 ) ) * - 60 * 49 AS col2
----
279300

query II rowsort
SELECT 85, 57 * - 46 * 10 AS col0
----
85
-26220

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT + 13 AS col1, 62 + - COALESCE ( - - 82, + COUNT( + + 41 ), + COUNT( * ) * - - 96 + - - NULLIF ( + + MIN( 51 ), + 41 ) ) + - COUNT( * )
----
13
-21

skipif mysql # not compatible
query II rowsort label-3787
SELECT + 13 AS col1, 62 + - COALESCE ( - - 82, + COUNT ( + + 41 ), + COUNT ( * ) * - - 96 + - - NULLIF ( + + MIN ( 51 ), + 41 ) ) + - COUNT ( * )
----
13
-21

query I rowsort
SELECT 48 * + - ( - + 26 ) AS col2
----
1248

query I rowsort
SELECT ALL + 60 + + 55 col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT - SUM( ALL - 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT - SUM ( ALL - 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT - COALESCE ( + 51, - + COUNT( - 9 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT - COALESCE ( + 51, - + COUNT ( - 9 ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT 95 + + 14 * - COUNT( * ) + - 30
----
51

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT 95 + + 14 * - COUNT ( * ) + - 30
----
51

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

query I rowsort
SELECT ALL + 60 + - - 60 col0
----
120

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

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

query I rowsort
SELECT + 2 * + 98 AS col2
----
196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL - MIN( DISTINCT + + 64 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - MIN ( DISTINCT + + 64 ) col1
----
-64

query I rowsort
SELECT + - 67 col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3800
SELECT ALL - 83 * - 24 + - COALESCE ( - - 27, 40, - + 35 + - 91 + - ( + + 4 ) * + CAST( + 23 AS SIGNED ) ) AS col0, ( + 6 )
----
1965
6

skipif mysql # not compatible
query II rowsort label-3800
SELECT ALL - 83 * - 24 + - COALESCE ( - - 27, 40, - + 35 + - 91 + - ( + + 4 ) * + CAST ( + 23 AS INTEGER ) ) AS col0, ( + 6 )
----
1965
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3801
SELECT DISTINCT + 25 - + - COUNT( * ), 51 AS col1
----
26
51

skipif mysql # not compatible
query II rowsort label-3801
SELECT DISTINCT + 25 - + - COUNT ( * ), 51 AS col1
----
26
51

query II rowsort
SELECT ALL - - 69 AS col0, + 96 AS col2
----
69
96

query I rowsort
SELECT - ( - 1 ) col1
----
1

query II rowsort
SELECT + 12, + 56 col2
----
12
56

query I rowsort
SELECT DISTINCT - - 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - CASE + 31 WHEN - CASE + ( - - 50 ) WHEN - - 77 THEN + 97 END * + 49 THEN NULL WHEN 75 + + 12 THEN - 91 * + 68 / SUM( ALL 79 ) WHEN + - ( - 61 ) * - 30 THEN NULL END - - 8 * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT - CASE + 31 WHEN - CASE + ( - - 50 ) WHEN - - 77 THEN + 97 END * + 49 THEN NULL WHEN 75 + + 12 THEN - 91 * + 68 / SUM ( ALL 79 ) WHEN + - ( - 61 ) * - 30 THEN NULL END - - 8 * 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT ALL COALESCE ( - 62, - + ( 85 ) * - MAX( ALL - 34 ), - - COALESCE ( 75, + + 12 DIV 7 + + 46, + - 3 DIV - 59 + - + 10 * - + NULLIF ( 69, NULLIF ( + MIN( DISTINCT + 16 ), + 73 * 83 + 24 ) ) ) * - COUNT( * ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL COALESCE ( - 62, - + ( 85 ) * - MAX ( ALL - 34 ), - - COALESCE ( 75, + + 12 / 7 + + 46, + - 3 / - 59 + - + 10 * - + NULLIF ( 69, NULLIF ( + MIN ( DISTINCT + 16 ), + 73 * 83 + 24 ) ) ) * - COUNT ( * ) ) AS col2
----
-62

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3809
SELECT + COALESCE ( - + COUNT( * ), COUNT( * ) + - 51 ) DIV - + ( 95 ) AS col0, + 77 * 93 + 56 - + + ( + ( + + 64 ) ) + - - 67 * - 87 + + 30 + - - 0
----
0
1354

skipif mysql # not compatible
query II rowsort label-3809
SELECT + COALESCE ( - + COUNT ( * ), COUNT ( * ) + - 51 ) / - + ( 95 ) AS col0, + 77 * 93 + 56 - + + ( + ( + + 64 ) ) + - - 67 * - 87 + + 30 + - - 0
----
0
1354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3810
SELECT + 2 DIV 49 * - 77 DIV + COUNT( * ) + - 2 + - COUNT( * ) * - 93
----
91

skipif mysql # not compatible
query I rowsort label-3810
SELECT + 2 / 49 * - 77 / + COUNT ( * ) + - 2 + - COUNT ( * ) * - 93
----
91

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

query II rowsort
SELECT 2 + - + NULLIF ( + ( - - 32 ), - + 65 ) * + 44 AS col2, 68 AS col0
----
-1406
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT + 15 * + 42 + - COUNT( * )
----
629

skipif mysql # not compatible
query I rowsort label-3813
SELECT + 15 * + 42 + - COUNT ( * )
----
629

query I rowsort
SELECT ALL + 7 * + 48 * - 22
----
-7392

query III rowsort
SELECT ALL + 35 col0, 68 - + 78 + + 31 col2, + - 15 + - 97 - - + 82 + - COALESCE ( + + 77, - 58 )
----
35
21
-107

query I rowsort
SELECT - + 79 col1
----
-79

query I rowsort
SELECT DISTINCT + 79 + + 38 * 41 * + 52 * 50 AS col1
----
4050879

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3818
SELECT COALESCE ( - - ( + - 21 ), + 12 * - 20 DIV + - 51 DIV - COUNT( ALL - + 49 ) + 65 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3818
SELECT COALESCE ( - - ( + - 21 ), + 12 * - 20 / + - 51 / - COUNT ( ALL - + 49 ) + 65 ) AS col2
----
-21

query I rowsort
SELECT ALL - + 69 + - 95 * 73
----
-7004

query I rowsort
SELECT DISTINCT 56 + - 50
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3821
SELECT DISTINCT - CASE + 10 WHEN + 42 THEN + - CAST( NULL AS SIGNED ) * + 96 + + 36 WHEN - 46 * + 52 + + 64 + - + 59 - + + 45 THEN NULL END * - 82 / - - COUNT( * ) * + + 91 * + 17 + - COUNT( * ) - - 18 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - CASE + 10 WHEN + 42 THEN + - CAST ( NULL AS INTEGER ) * + 96 + + 36 WHEN - 46 * + 52 + + 64 + - + 59 - + + 45 THEN NULL END * - 82 / - - COUNT ( * ) * + + 91 * + 17 + - COUNT ( * ) - - 18 * - 6
----
NULL

query I rowsort
SELECT ALL 33 + - 88 * + 9
----
-759

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL COUNT( * ) * + 54 * - 62
----
-3348

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL COUNT ( * ) * + 54 * - 62
----
-3348

query I rowsort
SELECT ALL 97 + NULLIF ( - - 81, + ( 27 ) ) + ( - 62 ) * - 60 * + 81 col0
----
301498

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT 38 - NULLIF ( + MAX( ALL - 9 ), - ( + + 41 ) * COUNT( * ) ) + - 91
----
-44

skipif mysql # not compatible
query I rowsort label-3826
SELECT 38 - NULLIF ( + MAX ( ALL - 9 ), - ( + + 41 ) * COUNT ( * ) ) + - 91
----
-44

query I rowsort
SELECT 89 col1
----
89

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

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

query I rowsort
SELECT DISTINCT 90 + 15 AS col1
----
105

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

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

query I rowsort
SELECT ALL 25 * - 21 AS col1
----
-525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3832
SELECT ALL 37 DIV - MAX( DISTINCT + 64 ) * + - 66 + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL 37 / - MAX ( DISTINCT + 64 ) * + - 66 + - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ( - - COUNT( * ) ) - + ( NULLIF ( - MAX( - 92 ), + 71 - - 62 * 84 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-3833
SELECT ( - - COUNT ( * ) ) - + ( NULLIF ( - MAX ( - 92 ), + 71 - - 62 * 84 ) )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT DISTINCT 54 * + + COUNT( * ) AS col1, ( - 56 )
----
54
-56

skipif mysql # not compatible
query II rowsort label-3834
SELECT DISTINCT 54 * + + COUNT ( * ) AS col1, ( - 56 )
----
54
-56

query I rowsort
SELECT ALL 76 * + 21 - + 82 AS col1
----
1514

onlyif mysql # DIV for integer division: 
query II rowsort label-3836
SELECT ALL 89 * - 63, ( + - 70 ) DIV 74 col1
----
-5607
0

skipif mysql # not compatible
query II rowsort label-3836
SELECT ALL 89 * - 63, ( + - 70 ) / 74 col1
----
-5607
0

query II rowsort
SELECT DISTINCT 48 * 40 AS col2, - 45
----
1920
-45

query I rowsort
SELECT CASE - 78 WHEN - 15 THEN - 52 END + - 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT MAX( DISTINCT - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3839
SELECT MAX ( DISTINCT - 57 ) AS col2
----
-57

query I rowsort
SELECT 20 * + + 56 + - + 66
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + 74 * + COUNT( ALL + 98 )
----
74

skipif mysql # not compatible
query I rowsort label-3841
SELECT + 74 * + COUNT ( ALL + 98 )
----
74

query I rowsort
SELECT - ( 73 ) - - - 5 AS col0
----
-78

query I rowsort
SELECT ALL - - 58
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3844
SELECT 32 DIV + 22 + + ( - 31 ) - - - 75 + + ( - - MIN( 76 ) ) AS col2, + 32 AS col2
----
-29
32

skipif mysql # not compatible
query II rowsort label-3844
SELECT 32 / + 22 + + ( - 31 ) - - - 75 + + ( - - MIN ( 76 ) ) AS col2, + 32 AS col2
----
-29
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT MAX( + 66 ) * + 97 + - 97
----
6305

skipif mysql # not compatible
query I rowsort label-3845
SELECT MAX ( + 66 ) * + 97 + - 97
----
6305

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT 61 * + - COUNT( * ) + - ( + - 18 )
----
-43

skipif mysql # not compatible
query I rowsort label-3848
SELECT 61 * + - COUNT ( * ) + - ( + - 18 )
----
-43

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

query I rowsort
SELECT ALL + + 13 * - 27
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT DISTINCT + 44 * + + COUNT( * ) * - - 34 AS col0
----
1496

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT + 44 * + + COUNT ( * ) * - - 34 AS col0
----
1496

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

query I rowsort
SELECT + 52 col0
----
52

query I rowsort
SELECT DISTINCT - - 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT - + MIN( DISTINCT 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - + MIN ( DISTINCT 58 )
----
-58

query I rowsort
SELECT DISTINCT 47 col2
----
47

query I rowsort
SELECT - ( - 45 ) * - 40 + 94 AS col1
----
-1706

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3858
SELECT ALL + 50 + + + 7 + - 99 + + ( + - NULLIF ( 22, - + CASE - + 50 WHEN 0 THEN NULL WHEN - AVG ( DISTINCT + 48 ) THEN + NULLIF ( 75, + CAST( + - ( + 62 ) AS DECIMAL ) * + COUNT( * ) + - 28 ) END * ( + 96 ) ) ) * - ( - 69 ) * 1 col0
----
-1560

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + 50 + + + 7 + - 99 + + ( + - NULLIF ( 22, - + CASE - + 50 WHEN 0 THEN NULL WHEN - AVG ( DISTINCT + 48 ) THEN + NULLIF ( 75, + CAST ( + - ( + 62 ) AS REAL ) * + COUNT ( * ) + - 28 ) END * ( + 96 ) ) ) * - ( - 69 ) * 1 col0
----
-1560

query II rowsort
SELECT DISTINCT + 28 + - + 86, 98 AS col2
----
-58
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN + 75 THEN NULL ELSE + COUNT( * ) END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN + 75 THEN NULL ELSE + COUNT ( * ) END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL 9 * + COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3863
SELECT - NULLIF ( - 83, COUNT( * ) ) DIV 70 * - 35 + - - 15 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3863
SELECT - NULLIF ( - 83, COUNT ( * ) ) / 70 * - 35 + - - 15 AS col1
----
-20

query I rowsort
SELECT ALL - 32 + 14 - - ( - - 37 ) - - 4 * + 29 + - - 0
----
135

query I rowsort
SELECT ALL + 77 + + 43
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - MIN( ALL + - 34 ) - - 59 + - - 4
----
97

skipif mysql # not compatible
query I rowsort label-3866
SELECT - MIN ( ALL + - 34 ) - - 59 + - - 4
----
97

query I rowsort
SELECT - 79 + + 64 AS col0
----
-15

query I rowsort
SELECT - 38 * - + 78 * + NULLIF ( 63, ( + - 29 ) )
----
186732

query I rowsort
SELECT ALL 49 * 48 AS col0
----
2352

query II rowsort
SELECT ALL - 78 + + 67 + 16 AS col2, 11
----
5
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3871
SELECT - 11 AS col1, 63 + ( + 46 ) + NULLIF ( + 95, - 77 + 22 ) + + + COUNT( * ) + 93 * - 8 * - 22 * - 13 + 18 + - 13 DIV - 89 - + 78
----
-11
-212639

skipif mysql # not compatible
query II rowsort label-3871
SELECT - 11 AS col1, 63 + ( + 46 ) + NULLIF ( + 95, - 77 + 22 ) + + + COUNT ( * ) + 93 * - 8 * - 22 * - 13 + 18 + - 13 / - 89 - + 78
----
-11
-212639

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT + 15 - 29 - - MIN( 92 ) * 12
----
1090

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + 15 - 29 - - MIN ( 92 ) * 12
----
1090

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT ALL 2 - 49 + - 56 * 22 AS col0, COUNT( * ) * 81
----
-1279
81

skipif mysql # not compatible
query II rowsort label-3873
SELECT ALL 2 - 49 + - 56 * 22 AS col0, COUNT ( * ) * 81
----
-1279
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3874
SELECT + NULLIF ( - ( + 41 ), - 1 ) * + COUNT( * ) * - 76 * + ( - 15 ), - 4 AS col0
----
-46740
-4

skipif mysql # not compatible
query II rowsort label-3874
SELECT + NULLIF ( - ( + 41 ), - 1 ) * + COUNT ( * ) * - 76 * + ( - 15 ), - 4 AS col0
----
-46740
-4

query I rowsort
SELECT ALL + 6 * - 71 * 49
----
-20874

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3876
SELECT + ( + 51 ) + - - CAST( NULL AS SIGNED ) AS col0, 81 * + - 59
----
NULL
-4779

skipif mysql # not compatible
query II rowsort label-3876
SELECT + ( + 51 ) + - - CAST ( NULL AS INTEGER ) AS col0, 81 * + - 59
----
NULL
-4779

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - CASE - CASE - 82 WHEN 53 + + + 19 + + 4 * + + ( 95 ) THEN + COUNT( DISTINCT + - 93 ) ELSE NULL END WHEN + 15 THEN NULL WHEN COUNT( * ) THEN - - 77 - 38 ELSE 16 END * 72 - - 82
----
-1070

skipif mysql # not compatible
query I rowsort label-3879
SELECT - CASE - CASE - 82 WHEN 53 + + + 19 + + 4 * + + ( 95 ) THEN + COUNT ( DISTINCT + - 93 ) ELSE NULL END WHEN + 15 THEN NULL WHEN COUNT ( * ) THEN - - 77 - 38 ELSE 16 END * 72 - - 82
----
-1070

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

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

query I rowsort
SELECT ( - 17 ) AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3882
SELECT + NULLIF ( - 31, CAST( 71 AS SIGNED ) ), - 37 AS col0
----
-31
-37

skipif mysql # not compatible
query II rowsort label-3882
SELECT + NULLIF ( - 31, CAST ( 71 AS INTEGER ) ), - 37 AS col0
----
-31
-37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT 34 DIV + ( + - 3 ) + 58 + 57
----
104

skipif mysql # not compatible
query I rowsort label-3884
SELECT 34 / + ( + - 3 ) + 58 + 57
----
104

query I rowsort
SELECT DISTINCT + 53 col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3886
SELECT ALL CAST( NULL AS DECIMAL ) * - + 73 + + 97 + + COUNT( * ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL CAST ( NULL AS REAL ) * - + 73 + + 97 + + COUNT ( * ) + + 37
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + 96 AS col1
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT + + COALESCE ( - - 96, - - SUM( + + NULLIF ( + - 2, 84 ) ), 4, 82 - - 34 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT + + COALESCE ( - - 96, - - SUM ( + + NULLIF ( + - 2, 84 ) ), 4, 82 - - 34 ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3892
SELECT ALL - 6 * + 26 + 36 DIV - - 29
----
-155

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL - 6 * + 26 + 36 / - - 29
----
-155

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3894
SELECT + - CASE + + 81 WHEN CAST( COUNT( + - 5 ) AS DECIMAL ) THEN + - 51 * 89 + + 83 + + 77 WHEN + 64 * + - 76 THEN NULL END AS col2, 8 - - - 70 + + 32
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-3894
SELECT + - CASE + + 81 WHEN CAST ( COUNT ( + - 5 ) AS REAL ) THEN + - 51 * 89 + + 83 + + 77 WHEN + 64 * + - 76 THEN NULL END AS col2, 8 - - - 70 + + 32
----
NULL
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3895
SELECT + - 51 DIV ( + - 29 ) + + 73 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3895
SELECT + - 51 / ( + - 29 ) + + 73 * + COUNT ( * )
----
74

query I rowsort
SELECT ALL + 73 * - 87 * - 69 + + 89 + + 51 AS col1
----
438359

onlyif mysql # aggregate syntax: 
query II rowsort label-3897
SELECT COUNT( * ) col0, 24
----
1
24

skipif mysql # not compatible
query II rowsort label-3897
SELECT COUNT ( * ) col0, 24
----
1
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL + 79 * 45 + + SUM( + 19 ) AS col0
----
3574

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + 79 * 45 + + SUM ( + 19 ) AS col0
----
3574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT - ( NULLIF ( + COALESCE ( - 8, 34 * - - 29 * + 83 + - 58, 54 ), + - 90 ) ) * 60 + 70 - - CAST( ( COUNT( ALL + 6 ) ) AS SIGNED ) + - 46 AS col1
----
505

skipif mysql # not compatible
query I rowsort label-3900
SELECT - ( NULLIF ( + COALESCE ( - 8, 34 * - - 29 * + 83 + - 58, 54 ), + - 90 ) ) * 60 + 70 - - CAST ( ( COUNT ( ALL + 6 ) ) AS INTEGER ) + - 46 AS col1
----
505

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL + MAX( ALL + - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + MAX ( ALL + - 58 ) AS col2
----
-58

query I rowsort
SELECT ALL + 29 * 54 * - 54 + - 35
----
-84599

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT + 22 * - 13 - + 95 + 46 * SUM( DISTINCT 66 ) * 80 * 49 AS col2, 65 AS col0
----
11900739
65

skipif mysql # not compatible
query II rowsort label-3903
SELECT + 22 * - 13 - + 95 + 46 * SUM ( DISTINCT 66 ) * 80 * 49 AS col2, 65 AS col0
----
11900739
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT DISTINCT - 27 * 12 DIV - ( NULLIF ( + - 82, - 0 ) ) + 93 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - 27 * 12 / - ( NULLIF ( + - 82, - 0 ) ) + 93 AS col0
----
90

query I rowsort
SELECT ALL + 43 * 12 + 34 - - 51 * + + 63 * - + 54 * + 93 + - + 33 AS col1
----
-16135169

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

query I rowsort
SELECT ALL - 46 + + - 59 AS col1
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3908
SELECT + 62 + + 66 AS col0, - COUNT( * ) * 34 * 65, + CASE COALESCE ( CAST( NULL AS SIGNED ), - 38 * 35 / CAST( + - 14 AS SIGNED ) + ( + 87 ) ) WHEN - - ( 26 ) / + + 61 * + ( + 30 ) THEN NULL WHEN + 55 THEN + 82 END + - 90 AS col0
----
128
-2210
NULL

skipif mysql # not compatible
query III rowsort label-3908
SELECT + 62 + + 66 AS col0, - COUNT ( * ) * 34 * 65, + CASE COALESCE ( CAST ( NULL AS INTEGER ), - 38 * 35 / CAST ( + - 14 AS INTEGER ) + ( + 87 ) ) WHEN - - ( 26 ) / + + 61 * + ( + 30 ) THEN NULL WHEN + 55 THEN + 82 END + - 90 AS col0
----
128
-2210
NULL

query I rowsort
SELECT - NULLIF ( 97, - - 51 * - 66 * + + 75 ) + + 56
----
-41

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

query I rowsort
SELECT DISTINCT ( + ( 66 ) ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - COUNT( * ) + + 71
----
70

skipif mysql # not compatible
query I rowsort label-3912
SELECT - COUNT ( * ) + + 71
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT ALL NULLIF ( + 97, 91 ) - - ( - - 45 ) + + 61 DIV + COUNT( - + 39 )
----
203

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL NULLIF ( + 97, 91 ) - - ( - - 45 ) + + 61 / + COUNT ( - + 39 )
----
203

query I rowsort
SELECT DISTINCT 79 * - + 42
----
-3318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3915
SELECT ALL CAST( CASE 9 WHEN - + 63 * + + COUNT( ALL + ( - 29 ) ) THEN - CAST( ( COUNT( * ) ) AS SIGNED ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL CAST ( CASE 9 WHEN - + 63 * + + COUNT ( ALL + ( - 29 ) ) THEN - CAST ( ( COUNT ( * ) ) AS INTEGER ) END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 60, - + CASE - + 79 WHEN 52 + 95 + - 79 * + 28 * + 62 THEN NULL WHEN + 11 THEN - 17 * - 37 + + + 54 END )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT CASE + - SUM( ALL 81 ) WHEN - 25 + - 96 THEN NULL WHEN - 91 * + - 6 THEN 81 ELSE + + 29 * 43 - - COUNT( * ) END
----
1248

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT CASE + - SUM ( ALL 81 ) WHEN - 25 + - 96 THEN NULL WHEN - 91 * + - 6 THEN 81 ELSE + + 29 * 43 - - COUNT ( * ) END
----
1248

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

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

query I rowsort
SELECT - 78 * - 59 AS col0
----
4602

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT + 30 DIV ( 11 )
----
2

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 30 / ( 11 )
----
2

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

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - 11 * - 15 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + ( + - 9 ) AS col2
----
-9

query I rowsort
SELECT DISTINCT + 80 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT - 18 - COUNT( * ) + + + 14 * - + 17 + - - 43 - 9
----
-223

skipif mysql # not compatible
query I rowsort label-3927
SELECT - 18 - COUNT ( * ) + + + 14 * - + 17 + - - 43 - 9
----
-223

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

query I rowsort
SELECT - 76 * + 25 + + 75
----
-1825

query I rowsort
SELECT + 45 * + 10 + - 90
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL + 26 / + 39 * - 90 + - 39 * + + 58 + 13 + SUM( 47 ) + + 48 * - - CASE - 87 WHEN 60 THEN NULL WHEN + + 63 THEN + 44 END - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + 26 / + 39 * - 90 + - 39 * + + 58 + 13 + SUM ( 47 ) + + 48 * - - CASE - 87 WHEN 60 THEN NULL WHEN + + 63 THEN + 44 END - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT - MAX( - 22 ) + 5 * - COALESCE ( 38, + + 86 * NULLIF ( + - 8, - MIN( ALL + 56 ) ) + + 60 ) + - - 56
----
-112

skipif mysql # not compatible
query I rowsort label-3932
SELECT - MAX ( - 22 ) + 5 * - COALESCE ( 38, + + 86 * NULLIF ( + - 8, - MIN ( ALL + 56 ) ) + + 60 ) + - - 56
----
-112

query I rowsort
SELECT + - 77 col1
----
-77

query I rowsort
SELECT - - 63 + + 98 + - - 97 * 66 + - 88 AS col1
----
6475

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + - MIN( + 38 ) - + - 72 - - 88 * + 63 AS col0
----
5578

skipif mysql # not compatible
query I rowsort label-3935
SELECT + - MIN ( + 38 ) - + - 72 - - 88 * + 63 AS col0
----
5578

query I rowsort
SELECT DISTINCT - + 38 AS col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3937
SELECT ALL 42 + - COUNT( * ) DIV - + 49
----
42

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL 42 + - COUNT ( * ) / - + 49
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT 0 + - 14 + - - 6 * + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3938
SELECT 0 + - 14 + - - 6 * + COUNT ( * ) AS col1
----
-8

query I rowsort
SELECT ALL - ( + 26 ) + 55
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL + 28 + - NULLIF ( - 57, - COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL + 28 + - NULLIF ( - 57, - COUNT ( * ) )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3942
SELECT 77 + + - ( + MIN( DISTINCT - 97 ) ) col2, 80 - + 69 AS col0
----
174
11

skipif mysql # not compatible
query II rowsort label-3942
SELECT 77 + + - ( + MIN ( DISTINCT - 97 ) ) col2, 80 - + 69 AS col0
----
174
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT ALL 18 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL 18 / - 80
----
0

query I rowsort
SELECT DISTINCT 87 * - 98 AS col0
----
-8526

query I rowsort
SELECT DISTINCT - 0 + - 19
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3946
SELECT DISTINCT - CASE - 2 WHEN 81 + + 83 - + + 57 * - - 15 + - 38 + - 40 / - + 9 THEN - - 89 + - COUNT( * ) ELSE + + 97 END, 51 AS col2
----
-97
51

skipif mysql # not compatible
query II rowsort label-3946
SELECT DISTINCT - CASE - 2 WHEN 81 + + 83 - + + 57 * - - 15 + - 38 + - 40 / - + 9 THEN - - 89 + - COUNT ( * ) ELSE + + 97 END, 51 AS col2
----
-97
51

query I rowsort
SELECT 0 * + 46 + + 20 * - 76
----
-1520

query I rowsort
SELECT - 88 + 40
----
-48

query I rowsort
SELECT DISTINCT 15 - + - 62
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3950
SELECT MAX( 28 ) DIV + 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3950
SELECT MAX ( 28 ) / + 5 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3951
SELECT 87 + - + 25 * COALESCE ( NULLIF ( - CAST( NULL AS SIGNED ), 87 DIV + 17 + 97 + 91 + - + 3 ), + - 79 ) DIV - COUNT( * ) AS col2
----
-1888

skipif mysql # not compatible
query I rowsort label-3951
SELECT 87 + - + 25 * COALESCE ( NULLIF ( - CAST ( NULL AS INTEGER ), 87 / + 17 + 97 + 91 + - + 3 ), + - 79 ) / - COUNT ( * ) AS col2
----
-1888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3952
SELECT DISTINCT 67 DIV MAX( + 46 ) * 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT 67 / MAX ( + 46 ) * 39 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3953
SELECT ALL COUNT( * ) - - + 47 DIV ( 3 ) * - - 39 + - 64 AS col2
----
522

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL COUNT ( * ) - - + 47 / ( 3 ) * - - 39 + - 64 AS col2
----
522

query II rowsort
SELECT DISTINCT 5, 7 AS col2
----
5
7

query I rowsort
SELECT 57 * - + 66
----
-3762

query I rowsort
SELECT DISTINCT 25 * - - 78 AS col1
----
1950

query I rowsort
SELECT 11 * + 55
----
605

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL - COUNT( * ) * - - 87
----
-87

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - COUNT ( * ) * - - 87
----
-87

query I rowsort
SELECT 82 + + 88 col2
----
170

query II rowsort
SELECT 29 AS col0, 18
----
29
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3961
SELECT DISTINCT 80, + MIN( - 9 ) DIV 95 * + ( + + 97 ) col0
----
80
0

skipif mysql # not compatible
query II rowsort label-3961
SELECT DISTINCT 80, + MIN ( - 9 ) / 95 * + ( + + 97 ) col0
----
80
0

query I rowsort
SELECT DISTINCT ( 19 ) AS col1
----
19

query I rowsort
SELECT ALL + 59 + 77 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL + COUNT( * ) + + SUM( - 38 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + COUNT ( * ) + + SUM ( - 38 ) AS col0
----
-37

query I rowsort
SELECT - 60 / - + CASE 79 WHEN + ( - - 82 ) THEN - 31 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3966
SELECT ALL - + CAST( NULL AS DECIMAL ) + AVG ( + - 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL - + CAST ( NULL AS REAL ) + AVG ( + - 40 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + 69 * - COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3967
SELECT + 69 * - COUNT ( * ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3968
SELECT DISTINCT - 56 DIV - COUNT( * ) + + 65 * + 53 AS col0
----
3501

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - 56 / - COUNT ( * ) + + 65 * + 53 AS col0
----
3501

query I rowsort
SELECT ALL + + 39 + + 18 * - 11
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT 23 DIV - - 73
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT 23 / - - 73
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT + + 43 DIV - + ( COUNT( * ) ) + - 91 DIV - ( - 42 )
----
-45

skipif mysql # not compatible
query I rowsort label-3971
SELECT + + 43 / - + ( COUNT ( * ) ) + - 91 / - ( - 42 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL - + 27 + - - 22 - COALESCE ( + + COALESCE ( - 13, + + COUNT( * ) - + COUNT( * ) + - 37 ), + 49 ) * + 66 * - COUNT( * ) * + 19 col1
----
-16307

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL - + 27 + - - 22 - COALESCE ( + + COALESCE ( - 13, + + COUNT ( * ) - + COUNT ( * ) + - 37 ), + 49 ) * + 66 * - COUNT ( * ) * + 19 col1
----
-16307

query I rowsort
SELECT ALL - + ( + + 50 )
----
-50

query I rowsort
SELECT ALL - - 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT COALESCE ( - 61, - 72 + + + 16 + + COUNT( * ), - 12 + - 13 + 91 + - + 35 )
----
-61

skipif mysql # not compatible
query I rowsort label-3975
SELECT COALESCE ( - 61, - 72 + + + 16 + + COUNT ( * ), - 12 + - 13 + 91 + - + 35 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL - - COUNT( DISTINCT 59 )
----
1

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL - - COUNT ( DISTINCT 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT MIN( ALL 38 ) * 66
----
2508

skipif mysql # not compatible
query I rowsort label-3977
SELECT MIN ( ALL 38 ) * 66
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL - 71 + + ( - SUM( ALL - 16 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - 71 + + ( - SUM ( ALL - 16 ) ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3979
SELECT 67, - 46 * + COUNT( * ) AS col0
----
67
-46

skipif mysql # not compatible
query II rowsort label-3979
SELECT 67, - 46 * + COUNT ( * ) AS col0
----
67
-46

query II rowsort
SELECT + - 94 AS col1, + 82
----
-94
82

query I rowsort
SELECT ALL + + 47 - + NULLIF ( 90, - - 12 )
----
-43

query I rowsort
SELECT + ( + 21 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT 16 * + 93 / + + 33 * + CAST( NULL AS SIGNED ) + 87 * + COUNT( - ( - - 16 ) ) * + COALESCE ( + - 79, + 32 / - + 65 ) + + ( + NULLIF ( - 18, - + 99 ) ) - - COALESCE ( + 74, COUNT( DISTINCT 77 ), 7 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT 16 * + 93 / + + 33 * + CAST ( NULL AS INTEGER ) + 87 * + COUNT ( - ( - - 16 ) ) * + COALESCE ( + - 79, + 32 / - + 65 ) + + ( + NULLIF ( - 18, - + 99 ) ) - - COALESCE ( + 74, COUNT ( DISTINCT 77 ), 7 + COUNT ( * ) )
----
NULL

query I rowsort
SELECT 15 * - + 95
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL - MIN( 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - MIN ( 64 )
----
-64

query I rowsort
SELECT + 26 - - + 65
----
91

query II rowsort
SELECT + 86 AS col2, 83 col0
----
86
83

query II rowsort
SELECT DISTINCT - 28 AS col0, + 50 - + 74 AS col1
----
-28
-24

query I rowsort
SELECT 67 * + 87 * - 27 AS col2
----
-157383

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT + 35 * 1 * + 66 * - - 66 - + 26 * + 92 * 0 col2, COUNT( DISTINCT 56 )
----
152460
1

skipif mysql # not compatible
query II rowsort label-3990
SELECT + 35 * 1 * + 66 * - - 66 - + 26 * + 92 * 0 col2, COUNT ( DISTINCT 56 )
----
152460
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL 79 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL 79 * COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT COUNT( ALL - ( 57 ) ) - - 71 * + + 50 AS col2
----
3551

skipif mysql # not compatible
query I rowsort label-3992
SELECT COUNT ( ALL - ( 57 ) ) - - 71 * + + 50 AS col2
----
3551

query I rowsort
SELECT ALL 91 * + 77 AS col1
----
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT 57 * - + NULLIF ( + - 62, CASE + SUM( DISTINCT - 36 ) WHEN + + COALESCE ( ( + - 46 ), - + 43 * + 82 + - 78 ) THEN + + 85 END )
----
3534

skipif mysql # not compatible
query I rowsort label-3994
SELECT 57 * - + NULLIF ( + - 62, CASE + SUM ( DISTINCT - 36 ) WHEN + + COALESCE ( ( + - 46 ), - + 43 * + 82 + - 78 ) THEN + + 85 END )
----
3534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT ALL 67 * + - CAST( - - 28 AS SIGNED )
----
-1876

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL 67 * + - CAST ( - - 28 AS INTEGER )
----
-1876

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT 66 * - MIN( + 24 )
----
-1584

skipif mysql # not compatible
query I rowsort label-3996
SELECT 66 * - MIN ( + 24 )
----
-1584

onlyif mysql # aggregate syntax: 
query II rowsort label-3997
SELECT ALL 10, CASE 85 WHEN - 12 THEN ( SUM( 9 ) ) * - ( - 75 ) - - ( COUNT( * ) ) * + - COUNT( * ) * + 88 + - ( 67 ) / - 32 + COUNT( * ) ELSE NULL END col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-3997
SELECT ALL 10, CASE 85 WHEN - 12 THEN ( SUM ( 9 ) ) * - ( - 75 ) - - ( COUNT ( * ) ) * + - COUNT ( * ) * + 88 + - ( 67 ) / - 32 + COUNT ( * ) ELSE NULL END col2
----
10
NULL

query II rowsort
SELECT DISTINCT 69, 99 AS col2
----
69
99

query I rowsort
SELECT DISTINCT 54 + - 45
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4000
SELECT ALL COALESCE ( - COUNT( * ), 96, - 4 + - + CAST( NULL AS SIGNED ) ) DIV + ( 9 ) + + + 37 DIV + COUNT( 91 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL COALESCE ( - COUNT ( * ), 96, - 4 + - + CAST ( NULL AS INTEGER ) ) / + ( 9 ) + + + 37 / + COUNT ( 91 ) AS col0
----
37

query I rowsort
SELECT DISTINCT 83 + + 47
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4002
SELECT - COUNT( * ), - 33 DIV - - 4 AS col1
----
-1
-8

skipif mysql # not compatible
query II rowsort label-4002
SELECT - COUNT ( * ), - 33 / - - 4 AS col1
----
-1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT COUNT( * ) * + 25 * - ( 42 ) AS col2
----
-1050

skipif mysql # not compatible
query I rowsort label-4003
SELECT COUNT ( * ) * + 25 * - ( 42 ) AS col2
----
-1050

query II rowsort
SELECT DISTINCT 18 + 55 AS col1, + 92
----
73
92

query I rowsort
SELECT ALL 84 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL + ( COUNT( * ) ) + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL + ( COUNT ( * ) ) + 13 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT COUNT( ALL + + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-4007
SELECT COUNT ( ALL + + 35 )
----
1

query I rowsort
SELECT ALL - 27 + - 13 AS col2
----
-40

query I rowsort
SELECT + 67 + - - 70 col2
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4010
SELECT - CAST( NULL AS SIGNED ) AS col0, + CASE - + COALESCE ( + 30, 67 - - NULLIF ( + COALESCE ( 4, + COUNT( + + 78 ) * 32 + - 74, + - 10 ), - COUNT( * ) + + 27 ) + + ( 41 ) / + - 56 ) WHEN + - COUNT( * ) / - CASE - - 71 WHEN 35 * ( + 51 ) THEN - 68 * COALESCE ( 17, 97, - 43 + - COUNT( * ) * 26 ) END + 23 * CAST( NULL AS DECIMAL ) THEN COUNT( * ) ELSE 46 * 14 + + 48 / + ( - SUM( - 54 ) * - 15 ) END + NULLIF ( - ( NULLIF ( 17, ( AVG ( + 34 ) ) + COUNT( * ) ) ) - + ( + CAST( NULL AS SIGNED ) ), + 57 / - 20 ) / + NULLIF ( + MAX( ALL - 9 ) + + 46, 21 * 8 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4010
SELECT - CAST ( NULL AS INTEGER ) AS col0, + CASE - + COALESCE ( + 30, 67 - - NULLIF ( + COALESCE ( 4, + COUNT ( + + 78 ) * 32 + - 74, + - 10 ), - COUNT ( * ) + + 27 ) + + ( 41 ) / + - 56 ) WHEN + - COUNT ( * ) / - CASE - - 71 WHEN 35 * ( + 51 ) THEN - 68 * COALESCE ( 17, 97, - 43 + - COUNT ( * ) * 26 ) END + 23 * CAST ( NULL AS REAL ) THEN COUNT ( * ) ELSE 46 * 14 + + 48 / + ( - SUM ( - 54 ) * - 15 ) END + NULLIF ( - ( NULLIF ( 17, ( AVG ( + 34 ) ) + COUNT ( * ) ) ) - + ( + CAST ( NULL AS INTEGER ) ), + 57 / - 20 ) / + NULLIF ( + MAX ( ALL - 9 ) + + 46, 21 * 8 ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT DISTINCT + + 74 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + + 74 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4012
SELECT DISTINCT + 66 AS col0, - ( + CAST( NULL AS SIGNED ) ) * + ( CAST( NULL AS SIGNED ) ) AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-4012
SELECT DISTINCT + 66 AS col0, - ( + CAST ( NULL AS INTEGER ) ) * + ( CAST ( NULL AS INTEGER ) ) AS col0
----
66
NULL

query I rowsort
SELECT ALL + 61 + + + ( - 70 ) + - 21 col1
----
-30

query I rowsort
SELECT - 21 * + 51 col0
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + - 53 * - COUNT( * ) + + + 69 + - 38
----
84

skipif mysql # not compatible
query I rowsort label-4015
SELECT + - 53 * - COUNT ( * ) + + + 69 + - 38
----
84

query I rowsort
SELECT ALL - 95 * + 23 - 6 AS col2
----
-2191

query I rowsort
SELECT ( 70 )
----
70

query I rowsort
SELECT + - 37 AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT + CAST( - - ( + 5 ) AS SIGNED ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4019
SELECT + CAST ( - - ( + 5 ) AS INTEGER ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT - ( 50 ) - - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-4020
SELECT - ( 50 ) - - COUNT ( * )
----
-49

query II rowsort
SELECT + 0 col1, - 61 * - + 40 * - 30
----
0
-73200

query I rowsort
SELECT ALL + - 40 AS col2
----
-40

query I rowsort
SELECT 70 * 90 + - 0
----
6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4024
SELECT DISTINCT + COUNT( * ) DIV - COUNT( DISTINCT 32 ) + + + 11, MAX( ALL 3 ) AS col0
----
10
3

skipif mysql # not compatible
query II rowsort label-4024
SELECT DISTINCT + COUNT ( * ) / - COUNT ( DISTINCT 32 ) + + + 11, MAX ( ALL 3 ) AS col0
----
10
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT ALL + 14 * 80 * 94 DIV - 45 AS col1
----
-2339

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + 14 * 80 * 94 / - 45 AS col1
----
-2339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT - ( + CAST( NULL AS SIGNED ) ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT - ( + CAST ( NULL AS INTEGER ) ) / + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT NULLIF ( - + 36, COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-4027
SELECT NULLIF ( - + 36, COUNT ( * ) )
----
-36

query I rowsort
SELECT ALL + ( - + 94 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4029
SELECT - MAX( ALL 37 ) * ( 71 ) DIV - - 63 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4029
SELECT - MAX ( ALL 37 ) * ( 71 ) / - - 63 AS col2
----
-41

query I rowsort
SELECT ALL + COALESCE ( - 48, 38 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - 67 + + - ( - ( MIN( + ( - + 82 ) ) ) ) AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-4031
SELECT - 67 + + - ( - ( MIN ( + ( - + 82 ) ) ) ) AS col0
----
-149

query I rowsort
SELECT DISTINCT 11 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL + 43 + - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + 43 + - COUNT ( * ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL 31 + - 80 * - ( MIN( ALL + + 85 ) ) AS col1
----
6831

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL 31 + - 80 * - ( MIN ( ALL + + 85 ) ) AS col1
----
6831

query I rowsort
SELECT DISTINCT - 71 + - 87 + 9
----
-149

query I rowsort
SELECT ALL ( + 40 ) + + 68 AS col0
----
108

query II rowsort
SELECT + 13 + - 64 * - 23, + 78 * + 79 AS col1
----
1485
6162

query I rowsort
SELECT - NULLIF ( + 51, 9 ) AS col2
----
-51

query I rowsort
SELECT - 28 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4040
SELECT + 48 * + CAST( - + CASE + COUNT( 51 ) WHEN + + 95 THEN NULL WHEN - AVG ( + - 29 ) * - CAST( NULL AS SIGNED ) THEN - 77 / - 89 ELSE + - 49 END AS SIGNED )
----
2352

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 48 * + CAST ( - + CASE + COUNT ( 51 ) WHEN + + 95 THEN NULL WHEN - AVG ( + - 29 ) * - CAST ( NULL AS INTEGER ) THEN - 77 / - 89 ELSE + - 49 END AS INTEGER )
----
2352

query I rowsort
SELECT DISTINCT 12 * - 8 * 15 col2
----
-1440

query I rowsort
SELECT - 51 + - 3 + - 28
----
-82

query I rowsort
SELECT NULLIF ( - 10, - 12 ) AS col0
----
-10

query I rowsort
SELECT + - 70 + - ( 38 ) + - 13 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-4045
SELECT DISTINCT - - 18 * + - COUNT( * ), 17 * - SUM( + - 51 ) AS col2
----
-18
867

skipif mysql # not compatible
query II rowsort label-4045
SELECT DISTINCT - - 18 * + - COUNT ( * ), 17 * - SUM ( + - 51 ) AS col2
----
-18
867

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT ALL ( - - COUNT( * ) ) AS col1, 11 col0
----
1
11

skipif mysql # not compatible
query II rowsort label-4046
SELECT ALL ( - - COUNT ( * ) ) AS col1, 11 col0
----
1
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4047
SELECT DISTINCT 70 - - COUNT( ALL + - 50 ) + - 79 + 78 * + + ( + 84 ) * 74 * + COUNT( - 89 ) * - NULLIF ( - NULLIF ( - CAST( + 42 AS SIGNED ), - + COUNT( * ) * + - 27 ), - - 47 + - 11 / - 3 + + COUNT( * ) + CAST( 63 AS DECIMAL ) / - 55 ) AS col2
----
-20363624

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT 70 - - COUNT ( ALL + - 50 ) + - 79 + 78 * + + ( + 84 ) * 74 * + COUNT ( - 89 ) * - NULLIF ( - NULLIF ( - CAST ( + 42 AS INTEGER ), - + COUNT ( * ) * + - 27 ), - - 47 + - 11 / - 3 + + COUNT ( * ) + CAST ( 63 AS REAL ) / - 55 ) AS col2
----
-20363624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4048
SELECT ALL - CAST( 44 AS SIGNED ) AS col0, - 85 + - + CAST( CAST( COALESCE ( - 86, + 3 ) AS SIGNED ) AS SIGNED ) AS col1
----
-44
1

skipif mysql # not compatible
query II rowsort label-4048
SELECT ALL - CAST ( 44 AS INTEGER ) AS col0, - 85 + - + CAST ( CAST ( COALESCE ( - 86, + 3 ) AS INTEGER ) AS INTEGER ) AS col1
----
-44
1

query I rowsort
SELECT ALL + 88 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4050
SELECT - + COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4051
SELECT COUNT( DISTINCT - 89 ), COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4051
SELECT COUNT ( DISTINCT - 89 ), COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT NULLIF ( - ( - 44 ), + 81 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT 69 * - - 74 + 35 * COUNT( * )
----
5141

skipif mysql # not compatible
query I rowsort label-4053
SELECT 69 * - - 74 + 35 * COUNT ( * )
----
5141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4054
SELECT ALL MIN( DISTINCT 51 ) DIV + 79 - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL MIN ( DISTINCT 51 ) / + 79 - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 77 * - ( + - 52 )
----
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + MAX( + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4056
SELECT + MAX ( + 68 ) AS col1
----
68

query I rowsort
SELECT ALL + 34 AS col1
----
34

query I rowsort
SELECT ALL 15 * 42
----
630

query II rowsort
SELECT ALL + 51 AS col1, - 52 AS col0
----
51
-52

query I rowsort
SELECT ( + + 89 )
----
89

query I rowsort
SELECT ( + 99 ) AS col1
----
99

query I rowsort
SELECT ( + 14 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT + COUNT( * ) DIV + 22 * + 44 * + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT + COUNT ( * ) / + 22 * + 44 * + 28 AS col2
----
0

query I rowsort
SELECT ALL 20 * + 94 + 94
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + COUNT( * ) - - 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4065
SELECT + COUNT ( * ) - - 95 AS col0
----
96

query I rowsort
SELECT - 26 + 55
----
29

query I rowsort
SELECT ALL - 84 * + 15
----
-1260

query I rowsort
SELECT ( + - 49 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4069
SELECT DISTINCT 89 * - + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) + + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT 89 * - + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) + + + 45
----
NULL

query I rowsort
SELECT ALL 57 * - ( - 56 ) + - - 28 + 35 + 7 * + + 5
----
3290

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4071
SELECT DISTINCT + 69 AS col0, + 13 + 96 + ( - ( + 28 ) ) + - 78 DIV ( + COUNT( + 91 ) ) DIV - + NULLIF ( 87, 92 ) + + + 95 * - COALESCE ( - - COUNT( + ( - 70 ) ), CASE 85 WHEN + 22 * - 50 + 8 * - NULLIF ( COUNT( * ) * 49, COALESCE ( 76, - 15 + - NULLIF ( 84, - 19 + 98 ) ) ) THEN NULL WHEN 25 THEN NULL WHEN - 15 THEN 20 * 75 ELSE NULL END + + 71, 34 DIV + 0 ) AS col1
----
69
-14

skipif mysql # not compatible
query II rowsort label-4071
SELECT DISTINCT + 69 AS col0, + 13 + 96 + ( - ( + 28 ) ) + - 78 / ( + COUNT ( + 91 ) ) / - + NULLIF ( 87, 92 ) + + + 95 * - COALESCE ( - - COUNT ( + ( - 70 ) ), CASE 85 WHEN + 22 * - 50 + 8 * - NULLIF ( COUNT ( * ) * 49, COALESCE ( 76, - 15 + - NULLIF ( 84, - 19 + 98 ) ) ) THEN NULL WHEN 25 THEN NULL WHEN - 15 THEN 20 * 75 ELSE NULL END + + 71, 34 / + 0 ) AS col1
----
69
-14

query I rowsort
SELECT DISTINCT - 42 * - 81 * 69 * + - 50 + + 10 col1
----
-11736890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT + ( + 84 ) + - CAST( NULL AS SIGNED ) / + ( - - ( + AVG ( - - 89 ) ) ) * + 1 + 14 + 60 + - 8 * - 1 + + COALESCE ( + 51, - 21 * + + 73 * + CASE COUNT( * ) WHEN - + 56 * + ( 90 ) / - COUNT( * ) + - 43 THEN 46 * COUNT( * ) - 67 ELSE NULL END, 28, - 89 ) + + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT + ( + 84 ) + - CAST ( NULL AS INTEGER ) / + ( - - ( + AVG ( - - 89 ) ) ) * + 1 + 14 + 60 + - 8 * - 1 + + COALESCE ( + 51, - 21 * + + 73 * + CASE COUNT ( * ) WHEN - + 56 * + ( 90 ) / - COUNT ( * ) + - 43 THEN 46 * COUNT ( * ) - 67 ELSE NULL END, 28, - 89 ) + + 47 col2
----
NULL

query I rowsort
SELECT - 72 - + 8 * 9
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4075
SELECT COALESCE ( + 77, - + CAST( NULL AS SIGNED ) + 62, - - ( + 85 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4075
SELECT COALESCE ( + 77, - + CAST ( NULL AS INTEGER ) + 62, - - ( + 85 ) ) AS col2
----
77

query II rowsort
SELECT DISTINCT + 65 * + - 6 + 5, 52 AS col1
----
-385
52

query I rowsort
SELECT ALL + 94 + + 65 col1
----
159

query I rowsort
SELECT 11 + + 26 + + 69
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - - NULLIF ( COUNT( * ), + 93 + + 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4079
SELECT - - NULLIF ( COUNT ( * ), + 93 + + 9 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT - MIN( + 64 ) + - 77 - - 15 AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-4080
SELECT - MIN ( + 64 ) + - 77 - - 15 AS col2
----
-126

query II rowsort
SELECT 75, + 96 AS col2
----
75
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL NULLIF ( - 12, + 34 + + 78 * COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL NULLIF ( - 12, + 34 + + 78 * COUNT ( * ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL + - 53 - - SUM( ALL - + 49 )
----
-102

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + - 53 - - SUM ( ALL - + 49 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ( + COUNT( ALL + 97 ) ) * + - MIN( ALL - 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4084
SELECT ( + COUNT ( ALL + 97 ) ) * + - MIN ( ALL - 82 ) AS col0
----
82

query I rowsort
SELECT ALL 15 * - 67
----
-1005

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4086
SELECT 18, NULLIF ( 61, + ( + - 51 ) * - ( + 40 ) + - CAST( NULL AS SIGNED ) * + 1 ) DIV + + 57 AS col2
----
18
1

skipif mysql # not compatible
query II rowsort label-4086
SELECT 18, NULLIF ( 61, + ( + - 51 ) * - ( + 40 ) + - CAST ( NULL AS INTEGER ) * + 1 ) / + + 57 AS col2
----
18
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4087
SELECT DISTINCT + NULLIF ( - 24, - 80 ) - + + CASE COUNT( * ) WHEN - + 35 THEN 26 + - 72 WHEN - 31 THEN NULL END, + MIN( - 61 ) AS col2
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-4087
SELECT DISTINCT + NULLIF ( - 24, - 80 ) - + + CASE COUNT ( * ) WHEN - + 35 THEN 26 + - 72 WHEN - 31 THEN NULL END, + MIN ( - 61 ) AS col2
----
NULL
-61

query I rowsort
SELECT ALL - 11 AS col1
----
-11

query I rowsort
SELECT + 3 + - 64 + 73
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT 0 * 32 + - COUNT( * ) DIV + + NULLIF ( + + 46, - 3 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT 0 * 32 + - COUNT ( * ) / + + NULLIF ( + + 46, - 3 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4091
SELECT 31 + CAST( NULL AS SIGNED ) * CAST( + 45 AS DECIMAL ) + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT 31 + CAST ( NULL AS INTEGER ) * CAST ( + 45 AS REAL ) + + 13
----
NULL

query II rowsort
SELECT + 96, 93 * - 53 - - 49 AS col0
----
96
-4880

onlyif mysql # DIV for integer division: 
query I rowsort label-4093
SELECT - 39 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-4093
SELECT - 39 / 83
----
0

query I rowsort
SELECT + 78 + - 7 col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT ALL - NULLIF ( ( + 27 ), - - COUNT( * ) ) AS col1, 33
----
-27
33

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL - NULLIF ( ( + 27 ), - - COUNT ( * ) ) AS col1, 33
----
-27
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL MAX( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL MAX ( - 36 )
----
-36

query I rowsort
SELECT - 85 col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT ALL + - COUNT( * ) * + 74 DIV - 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + - COUNT ( * ) * + 74 / - 44 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4099
SELECT + 5 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT + 5 / + 17
----
0

query I rowsort
SELECT ALL - + 89 AS col2
----
-89

query I rowsort
SELECT DISTINCT 9 + + 94
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL 68 + 2 * + + 54 * - 72 + + - 96 - - CAST( NULL AS SIGNED ) * + + MAX( ALL 77 ) * - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL 68 + 2 * + + 54 * - 72 + + - 96 - - CAST ( NULL AS INTEGER ) * + + MAX ( ALL 77 ) * - 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT 67 + + COUNT( ALL 78 ) * - CASE - 93 WHEN - + 47 THEN + - 61 END - - - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT 67 + + COUNT ( ALL 78 ) * - CASE - 93 WHEN - + 47 THEN + - 61 END - - - 54 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4104
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT DISTINCT 73 + - COALESCE ( - 76, - - 95 * + 98 DIV + 6, + + ( - 25 ) ) AS col0
----
149

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT 73 + - COALESCE ( - 76, - - 95 * + 98 / + 6, + + ( - 25 ) ) AS col0
----
149

query I rowsort
SELECT ALL 38 + 34 * + - 20
----
-642

query I rowsort
SELECT ALL 96 * + - 26 * 75 AS col0
----
-187200

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL 8 + - - COALESCE ( - 41, 33 ) + ( + + NULLIF ( - COUNT( * ), - 53 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL 8 + - - COALESCE ( - 41, 33 ) + ( + + NULLIF ( - COUNT ( * ), - 53 ) )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4109
SELECT DISTINCT 67 + - + SUM( + - 96 ) * + 92, - 82 * - + 57 AS col1
----
8899
4674

skipif mysql # not compatible
query II rowsort label-4109
SELECT DISTINCT 67 + - + SUM ( + - 96 ) * + 92, - 82 * - + 57 AS col1
----
8899
4674

query I rowsort
SELECT DISTINCT - 50 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT 25 * + 91 + - + COUNT( * )
----
2274

skipif mysql # not compatible
query I rowsort label-4111
SELECT 25 * + 91 + - + COUNT ( * )
----
2274

query I rowsort
SELECT DISTINCT - 62 col0
----
-62

query I rowsort
SELECT ALL - 62 + - 23 * + - ( 84 ) AS col2
----
1870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4114
SELECT ALL - COUNT( + + 35 ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - COUNT ( + + 35 ) / + 85
----
0

query I rowsort
SELECT 17 + - + 17 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4116
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * COALESCE ( - - 75, + 8, + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT - CAST ( NULL AS REAL ) * COALESCE ( - - 75, + 8, + 40 )
----
NULL

query I rowsort
SELECT ALL + + 18 * 41 - + 93 * - 82 * 28
----
214266

query I rowsort
SELECT 36 * - + 69 * - 13 AS col0
----
32292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4119
SELECT ALL + + 1 * + COUNT( * ) DIV 31 * 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL + + 1 * + COUNT ( * ) / 31 * 93 AS col1
----
0

query I rowsort
SELECT + 96 + - 7 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT ALL - + COUNT( * ) * + 19 col2, - 69
----
-19
-69

skipif mysql # not compatible
query II rowsort label-4121
SELECT ALL - + COUNT ( * ) * + 19 col2, - 69
----
-19
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT 15 * CAST( + - 18 AS SIGNED ) AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-4122
SELECT 15 * CAST ( + - 18 AS INTEGER ) AS col1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT + SUM( 38 ) - - 20
----
58

skipif mysql # not compatible
query I rowsort label-4123
SELECT + SUM ( 38 ) - - 20
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL CAST( + 45 AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL CAST ( + 45 AS INTEGER ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - 76 * - + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-4125
SELECT - 76 * - + COUNT ( * )
----
76

query I rowsort
SELECT ALL - - 0 * 73 AS col1
----
0

query I rowsort
SELECT - 43 * + 66
----
-2838

query I rowsort
SELECT - + 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT - - SUM( - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4129
SELECT - - SUM ( - 64 )
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-4130
SELECT 5 DIV 31 * - 94 AS col1, 61 AS col0
----
0
61

skipif mysql # not compatible
query II rowsort label-4130
SELECT 5 / 31 * - 94 AS col1, 61 AS col0
----
0
61

query I rowsort
SELECT 76 * + - 66 AS col0
----
-5016

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT COUNT( + + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-4132
SELECT COUNT ( + + 32 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4133
SELECT DISTINCT 37 * 70 + - 54 + - - CAST( - ( - - COUNT( * ) ) AS SIGNED ) * 90 * + 40
----
-1064

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT 37 * 70 + - 54 + - - CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) * 90 * + 40
----
-1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL 6 * - - COUNT( * ) + + - 69 / - + 3 * + - 54 + CAST( NULL AS SIGNED ) * + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL 6 * - - COUNT ( * ) + + - 69 / - + 3 * + - 54 + CAST ( NULL AS INTEGER ) * + - 73
----
NULL

query I rowsort
SELECT 2 * 45 AS col0
----
90

query I rowsort
SELECT ALL - NULLIF ( - 24, + 19 / - - 33 + + - 35 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL + SUM( ALL - + 92 ) * - 63 * + 65 * - 9 + + 59 * - - 53 col2
----
-3387533

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + SUM ( ALL - + 92 ) * - 63 * + 65 * - 9 + + 59 * - - 53 col2
----
-3387533

onlyif mysql # aggregate syntax: 
query II rowsort label-4138
SELECT + COUNT( * ), SUM( - + 42 ) AS col1
----
1
-42

skipif mysql # not compatible
query II rowsort label-4138
SELECT + COUNT ( * ), SUM ( - + 42 ) AS col1
----
1
-42

query I rowsort
SELECT + 37 * + 12 + + + 62 + - 67 AS col1
----
439

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT MIN( + 24 ) col0
----
24

skipif mysql # not compatible
query I rowsort label-4140
SELECT MIN ( + 24 ) col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT ALL + ( - 33 ) * - + ( + - COUNT( * ) ) + + 25 - - + CAST( - 87 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + ( - 33 ) * - + ( + - COUNT ( * ) ) + + 25 - - + CAST ( - 87 AS INTEGER )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4142
SELECT + CASE + 36 WHEN COUNT( DISTINCT 39 ) THEN - - 40 END AS col0, 8 AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-4142
SELECT + CASE + 36 WHEN COUNT ( DISTINCT 39 ) THEN - - 40 END AS col0, 8 AS col1
----
NULL
8

query I rowsort
SELECT DISTINCT + ( + 97 ) AS col1
----
97

query I rowsort
SELECT + 30 * - 32 AS col0
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + MAX( DISTINCT + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4145
SELECT + MAX ( DISTINCT + 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL 0 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL 0 - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4147
SELECT + CASE - CAST( + 83 AS SIGNED ) WHEN + COUNT( * ) * - 48 + + MIN( - 90 ) + - + 15 * 91 THEN - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT + CASE - CAST ( + 83 AS INTEGER ) WHEN + COUNT ( * ) * - 48 + + MIN ( - 90 ) + - + 15 * 91 THEN - 93 ELSE NULL END
----
NULL

query I rowsort
SELECT 39 * - - 30 * - - 45 - - 73
----
52723

query I rowsort
SELECT + ( 26 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4150
SELECT - - CAST( - 42 AS SIGNED ) + + - COUNT( * ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-4150
SELECT - - CAST ( - 42 AS INTEGER ) + + - COUNT ( * ) col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4151
SELECT + 33 * + - NULLIF ( - + 6, + COUNT( * ) DIV - 80 + + - 78 + COALESCE ( - - 38, + 88, - 50 DIV + SUM( - + 52 ) + + 33 ) ) DIV + COUNT( * ) AS col0
----
198

skipif mysql # not compatible
query I rowsort label-4151
SELECT + 33 * + - NULLIF ( - + 6, + COUNT ( * ) / - 80 + + - 78 + COALESCE ( - - 38, + 88, - 50 / + SUM ( - + 52 ) + + 33 ) ) / + COUNT ( * ) AS col0
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4152
SELECT + - 3 + - 61 * COUNT( * ) * - 83 * - + COALESCE ( - 48, - + 78, + CAST( + 7 AS SIGNED ) + 19, COALESCE ( 87, + 6 DIV - 6 ) ) + + 35 - - + 55 * - 86 + - COALESCE ( 11, + ( + 80 ), + + 26 + - 75 ) + + CASE + 94 WHEN - COUNT( * ) THEN NULL ELSE - MIN( 23 ) END + - 74 * 63 AS col1
----
233630

skipif mysql # not compatible
query I rowsort label-4152
SELECT + - 3 + - 61 * COUNT ( * ) * - 83 * - + COALESCE ( - 48, - + 78, + CAST ( + 7 AS INTEGER ) + 19, COALESCE ( 87, + 6 / - 6 ) ) + + 35 - - + 55 * - 86 + - COALESCE ( 11, + ( + 80 ), + + 26 + - 75 ) + + CASE + 94 WHEN - COUNT ( * ) THEN NULL ELSE - MIN ( 23 ) END + - 74 * 63 AS col1
----
233630

query II rowsort
SELECT ALL 35, 97 AS col1
----
35
97

query I rowsort
SELECT DISTINCT + - 11 * 91
----
-1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT + + COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) + + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT + + COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) + + - 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL - 43 * - - COUNT( DISTINCT + 73 )
----
-43

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL - 43 * - - COUNT ( DISTINCT + 73 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT - + 53 AS col2, NULLIF ( + - COUNT( ALL - 10 ), - + ( + COUNT( * ) ) ) / COALESCE ( + CASE + - COUNT( * ) WHEN + 93 THEN - 2 WHEN + 51 + 50 THEN NULL ELSE NULL END, - 14 ) * COUNT( * )
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-4157
SELECT - + 53 AS col2, NULLIF ( + - COUNT ( ALL - 10 ), - + ( + COUNT ( * ) ) ) / COALESCE ( + CASE + - COUNT ( * ) WHEN + 93 THEN - 2 WHEN + 51 + 50 THEN NULL ELSE NULL END, - 14 ) * COUNT ( * )
----
-53
NULL

query I rowsort
SELECT - ( 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - - COUNT( ALL + 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4159
SELECT - - COUNT ( ALL + 20 ) AS col2
----
1

query I rowsort
SELECT + - 51 + + + 56 * - 79 * + 46 AS col0
----
-203555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4161
SELECT - - COUNT( * ) DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-4161
SELECT - - COUNT ( * ) / - - 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4162
SELECT ALL + COALESCE ( - CAST( + - 51 AS SIGNED ), ( COUNT( * ) ) * + 78 ) + - 47
----
4

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + COALESCE ( - CAST ( + - 51 AS INTEGER ), ( COUNT ( * ) ) * + 78 ) + - 47
----
4

query I rowsort
SELECT + ( - 78 ) col0
----
-78

query I rowsort
SELECT - + 71 * + - 5 * - - 7
----
2485

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT + 49 + COUNT( * ) * 86 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-4165
SELECT + 49 + COUNT ( * ) * 86 AS col1
----
135

query II rowsort
SELECT DISTINCT - 50 AS col2, 80 * - 40 AS col1
----
-50
-3200

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT - 63 + 54 DIV 13 * - 88
----
-415

skipif mysql # not compatible
query I rowsort label-4167
SELECT - 63 + 54 / 13 * - 88
----
-415

query I rowsort
SELECT COALESCE ( - 11, 13 + - - 39 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4169
SELECT ALL 32 + COUNT( * ) + + CAST( + SUM( ALL + + 59 ) AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL 32 + COUNT ( * ) + + CAST ( + SUM ( ALL + + 59 ) AS INTEGER )
----
92

query I rowsort
SELECT DISTINCT 91 + - 8 AS col2
----
83

query I rowsort
SELECT ALL + 25 + 93 + + NULLIF ( + 66, - ( - + 40 ) ) * + 72 * 17 AS col2
----
80902

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - 20 - - + 36 - - 56 + - - 99 - + 86 + - 55 * - - CASE - 96 WHEN 0 * - COUNT( * ) + - 77 * + 7 THEN + 62 * 75 / 53 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT - 20 - - + 36 - - 56 + - - 99 - + 86 + - 55 * - - CASE - 96 WHEN 0 * - COUNT ( * ) + - 77 * + 7 THEN + 62 * 75 / 53 ELSE NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( 86, 18 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4174
SELECT ( + CAST( NULL AS SIGNED ) ) AS col0, - COUNT( * ) DIV + COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4174
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) / + COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4175
SELECT 62 DIV + + NULLIF ( - + 28, - 47 ) + - - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4175
SELECT 62 / + + NULLIF ( - + 28, - 47 ) + - - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL + 0 / + 7 - - CASE WHEN 80 > - + 30 * - - COALESCE ( 68, 15 + - + 4 + 73 * MAX( - 27 ) - - ( - 70 ) * - 43 * 74, 24 * 79 / + - COUNT( * ) - - + COUNT( + - NULLIF ( 64, - 1 ) ) + 57 - - 12 * 9 * COALESCE ( MIN( ALL 73 ) * 18 + 95, MAX( DISTINCT 25 ) ) ) + ( 51 - 68 ) * + COALESCE ( - 50, + 9, + ( 58 ) * + COUNT( * ), + 30 + - ( 74 ) ) THEN NULL WHEN NULL <= COUNT( * ) THEN 93 / 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL + 0 / + 7 - - CASE WHEN 80 > - + 30 * - - COALESCE ( 68, 15 + - + 4 + 73 * MAX ( - 27 ) - - ( - 70 ) * - 43 * 74, 24 * 79 / + - COUNT ( * ) - - + COUNT ( + - NULLIF ( 64, - 1 ) ) + 57 - - 12 * 9 * COALESCE ( MIN ( ALL 73 ) * 18 + 95, MAX ( DISTINCT 25 ) ) ) + ( 51 - 68 ) * + COALESCE ( - 50, + 9, + ( 58 ) * + COUNT ( * ), + 30 + - ( 74 ) ) THEN NULL WHEN NULL <= COUNT ( * ) THEN 93 / 73 ELSE NULL END
----
NULL

query I rowsort
SELECT + 3 col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4178
SELECT - 49 + + 41 DIV + + SUM( + 39 ) + COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4178
SELECT - 49 + + 41 / + + SUM ( + 39 ) + COUNT ( * ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - 60 + + MAX( - 33 ) - - 14 * + 82 * - 75 + - COUNT( * )
----
-86194

skipif mysql # not compatible
query I rowsort label-4179
SELECT - 60 + + MAX ( - 33 ) - - 14 * + 82 * - 75 + - COUNT ( * )
----
-86194

query I rowsort
SELECT 62 * 5 + + 61
----
371

query I rowsort
SELECT + 42 - - 22 AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT - 20 DIV + - ( + - ( 85 ) ) + + 75
----
75

skipif mysql # not compatible
query I rowsort label-4182
SELECT - 20 / + - ( + - ( 85 ) ) + + 75
----
75

query I rowsort
SELECT ( 12 ) AS col2
----
12

query II rowsort
SELECT ALL + 1, 28 AS col0
----
1
28

query I rowsort
SELECT - 6 * 24
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4186
SELECT ALL + 71, - 41 + + - NULLIF ( - 63, + AVG ( + 16 ) ) * + CAST( NULL AS DECIMAL ) * CASE + CAST( NULL AS DECIMAL ) WHEN - 21 / - AVG ( - 79 ) * + + 55 + MAX( DISTINCT + 85 ) THEN + 39 * + 73 * 1 + 24 + + CAST( - MIN( + 52 ) AS SIGNED ) WHEN 46 THEN + ( + 54 ) + NULLIF ( + 49, 35 ) END * 34 - - 89 / 14 AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4186
SELECT ALL + 71, - 41 + + - NULLIF ( - 63, + AVG ( + 16 ) ) * + CAST ( NULL AS REAL ) * CASE + CAST ( NULL AS REAL ) WHEN - 21 / - AVG ( - 79 ) * + + 55 + MAX ( DISTINCT + 85 ) THEN + 39 * + 73 * 1 + 24 + + CAST ( - MIN ( + 52 ) AS INTEGER ) WHEN 46 THEN + ( + 54 ) + NULLIF ( + 49, 35 ) END * 34 - - 89 / 14 AS col1
----
71
NULL

query I rowsort
SELECT ALL + ( - + 54 ) col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT + SUM( DISTINCT 39 ) + - ( 44 ) * - + CASE - + CAST( NULL AS SIGNED ) WHEN + 71 * - 73 * - 91 THEN NULL WHEN - 60 THEN NULL ELSE - COUNT( * ) END * NULLIF ( - 17, + 45 * + - COUNT( * ) ) + + - 39 + CAST( COUNT( * ) AS SIGNED )
----
749

skipif mysql # not compatible
query I rowsort label-4188
SELECT + SUM ( DISTINCT 39 ) + - ( 44 ) * - + CASE - + CAST ( NULL AS INTEGER ) WHEN + 71 * - 73 * - 91 THEN NULL WHEN - 60 THEN NULL ELSE - COUNT ( * ) END * NULLIF ( - 17, + 45 * + - COUNT ( * ) ) + + - 39 + CAST ( COUNT ( * ) AS INTEGER )
----
749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT NULLIF ( + - 39, + + CAST( NULL AS SIGNED ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4189
SELECT NULLIF ( + - 39, + + CAST ( NULL AS INTEGER ) ) AS col1
----
-39

query I rowsort
SELECT 93 * ( + + 26 ) + - - 42
----
2460

query II rowsort
SELECT ALL + - 48 AS col2, 78
----
-48
78

query II rowsort
SELECT - 80, 57 * + 69 AS col0
----
-80
3933

query I rowsort
SELECT + - 16 + + 71 AS col2
----
55

query II rowsort
SELECT ALL 30 AS col1, 29 col2
----
30
29

query I rowsort
SELECT DISTINCT + 94 * - - 52 AS col2
----
4888

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL - CASE WHEN NOT + 88 NOT IN ( COUNT( * ), COUNT( * ) ) THEN - + 57 + - 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL - CASE WHEN NOT + 88 NOT IN ( COUNT ( * ), COUNT ( * ) ) THEN - + 57 + - 0 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT + COUNT( * ), ( + + 84 ) + ( - 47 ) AS col0
----
1
37

skipif mysql # not compatible
query II rowsort label-4197
SELECT + COUNT ( * ), ( + + 84 ) + ( - 47 ) AS col0
----
1
37

query I rowsort
SELECT + 53 col1
----
53

query I rowsort
SELECT - - ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL SUM( 66 ) + - NULLIF ( 59, + 28 ) + - + 96 + + 2 - + MAX( - 57 ) + ( 41 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL SUM ( 66 ) + - NULLIF ( 59, + 28 ) + - + 96 + + 2 - + MAX ( - 57 ) + ( 41 ) col2
----
11

query II rowsort
SELECT ALL - 57 AS col1, 70 * - 1
----
-57
-70

query I rowsort
SELECT + 94 + 68 + 34
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT + COALESCE ( SUM( DISTINCT 36 ), + 5 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT + COALESCE ( SUM ( DISTINCT 36 ), + 5 ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL + 29 + 38 + 59 + - 68 / + COUNT( * ) - CASE + 39 WHEN 60 THEN + 17 + + 42 + + 93 * + - 63 * + 39 * - CASE + + 33 WHEN 63 THEN + + 19 END END * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL + 29 + 38 + 59 + - 68 / + COUNT ( * ) - CASE + 39 WHEN 60 THEN + 17 + + 42 + + 93 * + - 63 * + 39 * - CASE + + 33 WHEN 63 THEN + + 19 END END * - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4205
SELECT DISTINCT 50 DIV + CAST( + - MAX( DISTINCT - 95 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT 50 / + CAST ( + - MAX ( DISTINCT - 95 ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ALL - 93 + - + 95 col0
----
-188

query I rowsort
SELECT + 79 * + 34 AS col0
----
2686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT ALL SUM( DISTINCT 83 ) DIV - - 84 DIV - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL SUM ( DISTINCT 83 ) / - - 84 / - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT COUNT( ALL ( - + 42 ) ) - 59 + + 12
----
-46

skipif mysql # not compatible
query I rowsort label-4209
SELECT COUNT ( ALL ( - + 42 ) ) - 59 + + 12
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4210
SELECT DISTINCT - CASE 26 WHEN + 61 * - CAST( NULL AS SIGNED ) / CASE 9 WHEN + 91 + - 59 THEN AVG ( DISTINCT 87 ) ELSE - 89 END / + 1 THEN - 58 + - 90 + + 4 + + COUNT( * ) + + + 48 * + MIN( - 95 ) * ( - + 51 ) ELSE + - NULLIF ( + NULLIF ( - - 57, 32 ), 34 + - - 19 + - 18 * - 76 ) END col1
----
57

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT - CASE 26 WHEN + 61 * - CAST ( NULL AS INTEGER ) / CASE 9 WHEN + 91 + - 59 THEN AVG ( DISTINCT 87 ) ELSE - 89 END / + 1 THEN - 58 + - 90 + + 4 + + COUNT ( * ) + + + 48 * + MIN ( - 95 ) * ( - + 51 ) ELSE + - NULLIF ( + NULLIF ( - - 57, 32 ), 34 + - - 19 + - 18 * - 76 ) END col1
----
57

query I rowsort
SELECT 30 * - - ( + 41 )
----
1230

query I rowsort
SELECT DISTINCT + 22 * + 14
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT - 90 * - - COUNT( * ) + + 55 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4213
SELECT - 90 * - - COUNT ( * ) + + 55 AS col1
----
-35

query I rowsort
SELECT ALL + ( - 37 ) * + COALESCE ( - - 19, 33 )
----
-703

onlyif mysql # aggregate syntax: 
query II rowsort label-4215
SELECT ALL + 67 + - 77 AS col1, 33 * 2 + + COUNT( * ) AS col1
----
-10
67

skipif mysql # not compatible
query II rowsort label-4215
SELECT ALL + 67 + - 77 AS col1, 33 * 2 + + COUNT ( * ) AS col1
----
-10
67

query I rowsort
SELECT - 6 + - - 34 AS col0
----
28

query I rowsort
SELECT ALL + 56 * 39 col2
----
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT + ( - 85 ) DIV 83 * 34 * + 38
----
-1292

skipif mysql # not compatible
query I rowsort label-4218
SELECT + ( - 85 ) / 83 * 34 * + 38
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT COUNT( * ) + - 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4219
SELECT COUNT ( * ) + - 2 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL - COUNT( * ) + 51 - - 72 col1
----
122

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - COUNT ( * ) + 51 - - 72 col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4221
SELECT + - CASE 36 WHEN + CASE + COUNT( * ) WHEN 97 THEN NULL WHEN - CASE + 64 WHEN + 19 - + - 49 * - - ( - 13 ) - - ( - - 52 ) THEN - 43 * 34 ELSE NULL END THEN COUNT( * ) + - ( 57 ) END * 8 THEN NULL WHEN + 73 THEN + NULLIF ( + - CASE 38 WHEN + ( + 14 ) + + - 44 THEN NULL WHEN - COALESCE ( 83, - 22 ) THEN CASE - 42 WHEN 35 * 35 THEN + 93 - 63 * NULLIF ( - CASE - 80 WHEN - 79 - + 61 THEN + 48 + 71 END * - 83, COUNT( DISTINCT CASE 10 WHEN 64 * - CAST( NULL AS SIGNED ) THEN - 67 END ) * + 82 + + 63 ) WHEN + 46 THEN + ( + 38 ) / + COUNT( DISTINCT 82 ) ELSE - 54 END * 43 + - COALESCE ( ( 26 ), - 79 ) * - 35 WHEN - 91 + + 84 THEN NULL ELSE MAX( DISTINCT + 40 ) + + 67 END, COALESCE ( + CASE + 54 WHEN + 77 THEN NULL WHEN - 10 THEN + 24 * 8 ELSE NULL END, 23, - 90 ) * - 92 ) * + 89 + - 10 * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT + - CASE 36 WHEN + CASE + COUNT ( * ) WHEN 97 THEN NULL WHEN - CASE + 64 WHEN + 19 - + - 49 * - - ( - 13 ) - - ( - - 52 ) THEN - 43 * 34 ELSE NULL END THEN COUNT ( * ) + - ( 57 ) END * 8 THEN NULL WHEN + 73 THEN + NULLIF ( + - CASE 38 WHEN + ( + 14 ) + + - 44 THEN NULL WHEN - COALESCE ( 83, - 22 ) THEN CASE - 42 WHEN 35 * 35 THEN + 93 - 63 * NULLIF ( - CASE - 80 WHEN - 79 - + 61 THEN + 48 + 71 END * - 83, COUNT ( DISTINCT CASE 10 WHEN 64 * - CAST ( NULL AS INTEGER ) THEN - 67 END ) * + 82 + + 63 ) WHEN + 46 THEN + ( + 38 ) / + COUNT ( DISTINCT 82 ) ELSE - 54 END * 43 + - COALESCE ( ( 26 ), - 79 ) * - 35 WHEN - 91 + + 84 THEN NULL ELSE MAX ( DISTINCT + 40 ) + + 67 END, COALESCE ( + CASE + 54 WHEN + 77 THEN NULL WHEN - 10 THEN + 24 * 8 ELSE NULL END, 23, - 90 ) * - 92 ) * + 89 + - 10 * COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL ( + 75 ) + + 25
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT 82 + - 31 AS col1, - COUNT( * ) + + 66
----
51
65

skipif mysql # not compatible
query II rowsort label-4223
SELECT 82 + - 31 AS col1, - COUNT ( * ) + + 66
----
51
65

query I rowsort
SELECT - - 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL CASE - SUM( ALL 68 ) WHEN + 63 THEN + + 22 WHEN + 11 + 71 + - 67 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL CASE - SUM ( ALL 68 ) WHEN + 63 THEN + + 22 WHEN + 11 + 71 + - 67 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4226
SELECT + COUNT( * ) * 84 AS col0, NULLIF ( - + 91, + - NULLIF ( - MAX( ALL + + ( + 2 ) ), - 26 + 81 ) )
----
84
-91

skipif mysql # not compatible
query II rowsort label-4226
SELECT + COUNT ( * ) * 84 AS col0, NULLIF ( - + 91, + - NULLIF ( - MAX ( ALL + + ( + 2 ) ), - 26 + 81 ) )
----
84
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL + + 22 * - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL + + 22 * - COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT - + 85 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4229
SELECT SUM( 45 ) + - - 8 col1, + 16 * - + COUNT( * ) * - - MAX( - - 54 ) - + 32 * + - 39
----
53
384

skipif mysql # not compatible
query II rowsort label-4229
SELECT SUM ( 45 ) + - - 8 col1, + 16 * - + COUNT ( * ) * - - MAX ( - - 54 ) - + 32 * + - 39
----
53
384

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT COUNT( * ) + + + 26 + + 27, 26 + + 40 AS col0
----
54
66

skipif mysql # not compatible
query II rowsort label-4230
SELECT COUNT ( * ) + + + 26 + + 27, 26 + + 40 AS col0
----
54
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT NULLIF ( - - 52, - - 23 * + + 93 ) * + COUNT( + 65 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4231
SELECT NULLIF ( - - 52, - - 23 * + + 93 ) * + COUNT ( + 65 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT 30 + COUNT( * ) * + + COUNT( * ) * - 60 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4232
SELECT 30 + COUNT ( * ) * + + COUNT ( * ) * - 60 AS col2
----
-30

query I rowsort
SELECT 36 + + 77 + - 80 * - 66
----
5393

query I rowsort
SELECT ALL + 35 * - 99 col1
----
-3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT - CAST( NULL AS SIGNED ) * - COALESCE ( - + SUM( DISTINCT + 0 ), + + NULLIF ( - 36, + + 23 ) * + 23 ) + - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT - CAST ( NULL AS INTEGER ) * - COALESCE ( - + SUM ( DISTINCT + 0 ), + + NULLIF ( - 36, + + 23 ) * + 23 ) + - + 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4236
SELECT ALL - 81 AS col0, COUNT( + 1 ) + + + 70 * - COALESCE ( - CASE + - 78 WHEN 45 THEN + 67 * 25 - - 14 ELSE NULL END, + 49, + 95 * 4 - 1 DIV 92 * 3 )
----
-81
-3429

skipif mysql # not compatible
query II rowsort label-4236
SELECT ALL - 81 AS col0, COUNT ( + 1 ) + + + 70 * - COALESCE ( - CASE + - 78 WHEN 45 THEN + 67 * 25 - - 14 ELSE NULL END, + 49, + 95 * 4 - 1 / 92 * 3 )
----
-81
-3429

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT COALESCE ( + COALESCE ( - 23, - 90 + - 52 + 42, + 19 * + COALESCE ( - - COUNT( * ), - 71 ) + ( + - 47 ) - + SUM( ALL 65 ) + + - SUM( DISTINCT - 84 ) * + 42 + + 72 ), + 30, + + COUNT( * ) ) * 95
----
-2185

skipif mysql # not compatible
query I rowsort label-4237
SELECT COALESCE ( + COALESCE ( - 23, - 90 + - 52 + 42, + 19 * + COALESCE ( - - COUNT ( * ), - 71 ) + ( + - 47 ) - + SUM ( ALL 65 ) + + - SUM ( DISTINCT - 84 ) * + 42 + + 72 ), + 30, + + COUNT ( * ) ) * 95
----
-2185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT 20 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT 20 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT MAX( - - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4239
SELECT MAX ( - - 86 ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT 62 DIV - 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4240
SELECT 62 / - 39 AS col0
----
-1

query I rowsort
SELECT DISTINCT - 97 col0
----
-97

query I rowsort
SELECT 9 * - ( + 26 ) + + 6
----
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4243
SELECT ALL - 73 + + 43 + + - CAST( 83 AS SIGNED ) * + - 66 * COUNT( * ) * + 95 * + - 84 / + - 8 * - + CASE + COUNT( * ) WHEN - 57 - 75 THEN + CASE + 39 WHEN - 76 * - 53 + 79 * - NULLIF ( - - 85, + 37 ) THEN - + 82 WHEN + - COUNT( * ) * + 27 THEN NULL WHEN - 29 / + + 52 + 52 THEN NULL ELSE MIN( - 63 ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - 73 + + 43 + + - CAST ( 83 AS INTEGER ) * + - 66 * COUNT ( * ) * + 95 * + - 84 / + - 8 * - + CASE + COUNT ( * ) WHEN - 57 - 75 THEN + CASE + 39 WHEN - 76 * - 53 + 79 * - NULLIF ( - - 85, + 37 ) THEN - + 82 WHEN + - COUNT ( * ) * + 27 THEN NULL WHEN - 29 / + + 52 + 52 THEN NULL ELSE MIN ( - 63 ) END END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4244
SELECT - CAST( - + 16 AS SIGNED ) * + + 54 * + 73 + - 43 * + 55 * - 26 * - CAST( - 89 AS SIGNED ) * - 30 + + - CASE SUM( DISTINCT - + 67 ) WHEN + - ( + 39 ) * - + 8 * - 31 THEN - 36 / + 56 + 62 / + CAST( - 36 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT - CAST ( - + 16 AS INTEGER ) * + + 54 * + 73 + - 43 * + 55 * - 26 * - CAST ( - 89 AS INTEGER ) * - 30 + + - CASE SUM ( DISTINCT - + 67 ) WHEN + - ( + 39 ) * - + 8 * - 31 THEN - 36 / + 56 + 62 / + CAST ( - 36 AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4245
SELECT DISTINCT 65 * ( 0 ) DIV NULLIF ( - + MAX( ALL 12 ), 18 + ( - 12 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT 65 * ( 0 ) / NULLIF ( - + MAX ( ALL 12 ), 18 + ( - 12 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + 4 * ( - - COUNT( * ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4246
SELECT + 4 * ( - - COUNT ( * ) ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4247
SELECT DISTINCT - CASE + 81 WHEN CASE 8 WHEN CAST( NULL AS DECIMAL ) + - + 20 THEN MAX( - - 93 ) * 57 WHEN - 2 THEN NULL END - 29 + + 57 * - 78 * + 87 THEN + 95 + - NULLIF ( COUNT( * ), 77 / + 59 + - + CAST( NULL AS SIGNED ) ) * 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT - CASE + 81 WHEN CASE 8 WHEN CAST ( NULL AS REAL ) + - + 20 THEN MAX ( - - 93 ) * 57 WHEN - 2 THEN NULL END - 29 + + 57 * - 78 * + 87 THEN + 95 + - NULLIF ( COUNT ( * ), 77 / + 59 + - + CAST ( NULL AS INTEGER ) ) * 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4248
SELECT ALL + + SUM( 49 ) + + 70, - 48 - + 29 AS col2
----
119
-77

skipif mysql # not compatible
query II rowsort label-4248
SELECT ALL + + SUM ( 49 ) + + 70, - 48 - + 29 AS col2
----
119
-77

query I rowsort
SELECT + 83 * 42 + - - 60 - + 39
----
3507

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT + + COUNT( ( + 47 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4250
SELECT + + COUNT ( ( + 47 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + + SUM( DISTINCT - + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-4251
SELECT + + SUM ( DISTINCT - + 87 )
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4252
SELECT CAST( NULL AS DECIMAL ) * - + 71 + - ( + 16 ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT CAST ( NULL AS REAL ) * - + 71 + - ( + 16 ) + - 6
----
NULL

query I rowsort
SELECT 15 + - 57 + + 93 + 3 + - 68
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT + NULLIF ( - CASE + - NULLIF ( - 3, 16 ) WHEN + NULLIF ( + CAST( + 52 AS SIGNED ), - - 77 + - + 96 ) THEN NULL ELSE - 35 END, + 97 / - 49 + 98 - 65 - + MAX( 58 ) )
----
35

skipif mysql # not compatible
query I rowsort label-4254
SELECT + NULLIF ( - CASE + - NULLIF ( - 3, 16 ) WHEN + NULLIF ( + CAST ( + 52 AS INTEGER ), - - 77 + - + 96 ) THEN NULL ELSE - 35 END, + 97 / - 49 + 98 - 65 - + MAX ( 58 ) )
----
35

query I rowsort
SELECT DISTINCT - + COALESCE ( 96, 49 * + 48, - 59 + 84 ) * + 45 AS col0
----
-4320

query I rowsort
SELECT + - ( - 98 )
----
98

query I rowsort
SELECT 7 * + 62 AS col2
----
434

query I rowsort
SELECT ALL + + 20 * + 8 * - 16 + + 15 + - + COALESCE ( 5, - 94 ) AS col2
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT 84 + - 47 + 5 * MAX( ALL 35 ) + 65
----
277

skipif mysql # not compatible
query I rowsort label-4259
SELECT 84 + - 47 + 5 * MAX ( ALL 35 ) + 65
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT - 68 * + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-4260
SELECT - 68 * + COUNT ( * )
----
-68

query I rowsort
SELECT - 73 + + 55 * + 52 AS col1
----
2787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT - CAST( NULL AS SIGNED ) * - - CAST( 99 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT - CAST ( NULL AS INTEGER ) * - - CAST ( 99 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL CASE + + SUM( - + 50 ) WHEN - 74 THEN + 2 * + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL CASE + + SUM ( - + 50 ) WHEN - 74 THEN + 2 * + 99 END
----
NULL

query I rowsort
SELECT ALL 51 col2
----
51

query I rowsort
SELECT DISTINCT 43 * + ( - - 51 )
----
2193

query I rowsort
SELECT + 66 * - 88 * - 62
----
360096

query I rowsort
SELECT - 71 - + ( + 5 ) AS col2
----
-76

query II rowsort
SELECT + 36 * 96 col1, + 36 * ( + 80 ) col0
----
3456
2880

query I rowsort
SELECT ( - + 48 ) AS col0
----
-48

query I rowsort
SELECT DISTINCT + 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT - 81 * + + 3 + COUNT( * )
----
-242

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT - 81 * + + 3 + COUNT ( * )
----
-242

query I rowsort
SELECT DISTINCT + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT DISTINCT - 62 * + 94 + - MAX( ALL 33 )
----
-5861

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT - 62 * + 94 + - MAX ( ALL 33 )
----
-5861

query II rowsort
SELECT ALL - 74 * 3 AS col0, + 3 * - 81 + - - 50
----
-222
-193

query I rowsort
SELECT + + 4 * + - 86 * 69 * - 47 AS col1
----
1115592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4276
SELECT ALL 60 * - 81 - - + 7 + + + 1 DIV - COUNT( * ) - + 96 * + 28 - + 58 AS col0
----
-7600

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL 60 * - 81 - - + 7 + + + 1 / - COUNT ( * ) - + 96 * + 28 - + 58 AS col0
----
-7600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4277
SELECT + + 32 * NULLIF ( 25, - 12 ) + + 6 AS col0, ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) col0
----
806
NULL

skipif mysql # not compatible
query II rowsort label-4277
SELECT + + 32 * NULLIF ( 25, - 12 ) + + 6 AS col0, ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) col0
----
806
NULL

query I rowsort
SELECT + ( - - ( + - NULLIF ( - 40, - - 87 ) ) ) AS col1
----
40

query I rowsort
SELECT DISTINCT + + 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT MAX( + 12 ) * - 11 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT MAX ( + 12 ) * - 11 AS col0
----
-132

query I rowsort
SELECT ALL + - 1 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4282
SELECT DISTINCT - 17 * - - 20 - - ( - 74 ), 70 AS col2, + CAST( - CASE + 86 WHEN - 11 * - + 24 * + 57 + ( - 69 ) THEN - 70 + + 8 END AS SIGNED ) AS col0
----
-414
70
NULL

skipif mysql # not compatible
query III rowsort label-4282
SELECT DISTINCT - 17 * - - 20 - - ( - 74 ), 70 AS col2, + CAST ( - CASE + 86 WHEN - 11 * - + 24 * + 57 + ( - 69 ) THEN - 70 + + 8 END AS INTEGER ) AS col0
----
-414
70
NULL

query I rowsort
SELECT + - 99 AS col1
----
-99

query I rowsort
SELECT - - 28 + + - 48 AS col1
----
-20

query I rowsort
SELECT - 50 * + + COALESCE ( + 6, 48 ) AS col1
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL - COUNT( * ) * + 49 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - COUNT ( * ) * + 49 AS col0
----
-49

query I rowsort
SELECT - 86 * 89 * - 20 + + + 52
----
153132

query I rowsort
SELECT - 14 * - - 49 AS col0
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL 20 * COUNT( * ) col0
----
20

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL 20 * COUNT ( * ) col0
----
20

query I rowsort
SELECT ALL + 35 + + 28 * - 65
----
-1785

onlyif mysql # aggregate syntax: 
query II rowsort label-4291
SELECT - 43 + - COUNT( * ) * + - 30 AS col1, 70 AS col1
----
-13
70

skipif mysql # not compatible
query II rowsort label-4291
SELECT - 43 + - COUNT ( * ) * + - 30 AS col1, 70 AS col1
----
-13
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT - 54 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT - 54 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 72 + + + 75
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT - COUNT( * ) DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-4294
SELECT - COUNT ( * ) / 19
----
0

query I rowsort
SELECT ALL + 72 + + 88 AS col0
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT - 48 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT - 48 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - COALESCE ( COUNT( * ), + 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-4297
SELECT - COALESCE ( COUNT ( * ), + 21 )
----
-1

query I rowsort
SELECT - 24 + + + 24 AS col2
----
0

query I rowsort
SELECT DISTINCT ( + 53 ) col0
----
53

query I rowsort
SELECT ALL 88 + + 15 - 16 + + + 88 * - 28 * - - 93 * 39
----
-8936841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT + - CASE 16 WHEN 83 - 13 THEN - - 23 * - CAST( NULL AS SIGNED ) + - - 39 ELSE + 55 + - 85 * + COUNT( * ) - + 21 + - 73 END
----
124

skipif mysql # not compatible
query I rowsort label-4301
SELECT + - CASE 16 WHEN 83 - 13 THEN - - 23 * - CAST ( NULL AS INTEGER ) + - - 39 ELSE + 55 + - 85 * + COUNT ( * ) - + 21 + - 73 END
----
124

query I rowsort
SELECT DISTINCT + 16 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT - MAX( DISTINCT 18 ) * + 29 * - 30 * - ( + ( 89 ) ) + 79
----
-1393661

skipif mysql # not compatible
query I rowsort label-4303
SELECT - MAX ( DISTINCT 18 ) * + 29 * - 30 * - ( + ( 89 ) ) + 79
----
-1393661

query II rowsort
SELECT + 31 * - NULLIF ( - + 40, - 5 ) * - 66, 12 col0
----
-81840
12

query I rowsort
SELECT + + 59 + - + 99
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT + + MIN( ALL 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT + + MIN ( ALL 4 )
----
4

query I rowsort
SELECT ALL + 57 AS col0
----
57

query I rowsort
SELECT DISTINCT + + 51 col2
----
51

query I rowsort
SELECT ALL + 12 * - 43 col2
----
-516

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT + + 7 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT + + 7 / - 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4311
SELECT ALL + COUNT( * ) DIV + 1
----
1

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + COUNT ( * ) / + 1
----
1

query I rowsort
SELECT + - 93 AS col1
----
-93

query I rowsort
SELECT + - 37
----
-37

query II rowsort
SELECT + - 24 AS col1, + 86
----
-24
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + COUNT( DISTINCT + + 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4315
SELECT + COUNT ( DISTINCT + + 23 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT - 91 DIV + 20 col2
----
-4

skipif mysql # not compatible
query I rowsort label-4316
SELECT - 91 / + 20 col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4317
SELECT ALL COUNT( * ) * + MIN( ALL + 50 ) AS col1, CAST( NULL AS DECIMAL ) AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL COUNT ( * ) * + MIN ( ALL + 50 ) AS col1, CAST ( NULL AS REAL ) AS col0
----
50
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( + - 8, + 32 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT DISTINCT 44 * + + SUM( DISTINCT 57 ) * + + 35 - - COALESCE ( + + 14, - MIN( ALL - 14 ) + + 70 ) AS col0
----
87794

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT 44 * + + SUM ( DISTINCT 57 ) * + + 35 - - COALESCE ( + + 14, - MIN ( ALL - 14 ) + + 70 ) AS col0
----
87794

query II rowsort
SELECT DISTINCT - 88 AS col1, 49
----
-88
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT ALL 79 * CASE 7 WHEN 33 THEN NULL ELSE - CAST( - 83 AS SIGNED ) END AS col0
----
6557

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL 79 * CASE 7 WHEN 33 THEN NULL ELSE - CAST ( - 83 AS INTEGER ) END AS col0
----
6557

query II rowsort
SELECT - 39, + 41 AS col0
----
-39
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL - 3 + - 59 - + 4 * + + 66 * + - NULLIF ( + COUNT( * ), - 75 * - MIN( 39 ) / - MAX( ALL + - 3 ) + + ( - CASE 92 WHEN - 89 THEN NULL WHEN - COUNT( * ) - - CAST( + + 68 AS SIGNED ) THEN NULL ELSE - 99 END ) * - + 53 ) AS col0
----
202

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL - 3 + - 59 - + 4 * + + 66 * + - NULLIF ( + COUNT ( * ), - 75 * - MIN ( 39 ) / - MAX ( ALL + - 3 ) + + ( - CASE 92 WHEN - 89 THEN NULL WHEN - COUNT ( * ) - - CAST ( + + 68 AS INTEGER ) THEN NULL ELSE - 99 END ) * - + 53 ) AS col0
----
202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL + 49 + - CAST( - + 77 AS SIGNED )
----
126

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + 49 + - CAST ( - + 77 AS INTEGER )
----
126

query II rowsort
SELECT 97 AS col0, + 0 * + 56 col1
----
97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4326
SELECT 67 AS col1, ( + COUNT( * ) )
----
67
1

skipif mysql # not compatible
query II rowsort label-4326
SELECT 67 AS col1, ( + COUNT ( * ) )
----
67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT 46 + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-4327
SELECT 46 + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT 55 + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4328
SELECT 55 + COUNT ( * ) AS col1
----
56

query I rowsort
SELECT DISTINCT + 86 + + + 23 col1
----
109

query I rowsort
SELECT DISTINCT 72 + 57 * - - 7 AS col1
----
471

query I rowsort
SELECT ALL NULLIF ( - 16, + 19 * + + 70 ) + 42 + - 13 AS col1
----
13

query II rowsort
SELECT - 16 AS col1, 80
----
-16
80

query I rowsort
SELECT ALL 6 + - 7
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4334
SELECT DISTINCT ( 15 ) + - MAX( 79 ) * + - 86 * + COUNT( * ) + + 30 * MIN( ALL + + 89 ) AS col0, 75 * + + 44 + + COUNT( * ) AS col2
----
9479
3301

skipif mysql # not compatible
query II rowsort label-4334
SELECT DISTINCT ( 15 ) + - MAX ( 79 ) * + - 86 * + COUNT ( * ) + + 30 * MIN ( ALL + + 89 ) AS col0, 75 * + + 44 + + COUNT ( * ) AS col2
----
9479
3301

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL + COUNT( * ) + MIN( 76 ) * - ( + - 98 ) * + - 87 * 1 - + 70
----
-648045

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL + COUNT ( * ) + MIN ( 76 ) * - ( + - 98 ) * + - 87 * 1 - + 70
----
-648045

query I rowsort
SELECT ALL + 69 * 35
----
2415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT 80 * - SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT 80 * - SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - 83 AS col2, - 42 + - 45 AS col1
----
-83
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT 44 - - + COUNT( DISTINCT ( + 57 ) ), 76 * + 14 AS col0
----
45
1064

skipif mysql # not compatible
query II rowsort label-4339
SELECT 44 - - + COUNT ( DISTINCT ( + 57 ) ), 76 * + 14 AS col0
----
45
1064

query I rowsort
SELECT - 16 * - ( - 63 ) + - + ( - 52 )
----
-956

query I rowsort
SELECT DISTINCT - + 38 AS col0
----
-38

query II rowsort
SELECT ALL - 80, 39 AS col1
----
-80
39

query I rowsort
SELECT - ( ( - - 60 ) ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT + - COUNT( 82 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4344
SELECT + - COUNT ( 82 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT - - COUNT( * ) - + + 45 + + 25
----
-19

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - - COUNT ( * ) - + + 45 + + 25
----
-19

query II rowsort
SELECT ALL - 3 AS col2, 46 * - + 71 AS col0
----
-3
-3266

query I rowsort
SELECT 92 * + - 69
----
-6348

query II rowsort
SELECT - 32 * 31 + + 40 + - + 23 col1, + 60 + 11 AS col2
----
-975
71

query I rowsort
SELECT DISTINCT + 39 * + + 97
----
3783

query I rowsort
SELECT ALL - - COALESCE ( + 15, - 86 * - + ( + 57 ), - + 3 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4351
SELECT - + 94 DIV + 97 + - + 87 * - COUNT( * ) + 45
----
132

skipif mysql # not compatible
query I rowsort label-4351
SELECT - + 94 / + 97 + - + 87 * - COUNT ( * ) + 45
----
132

query I rowsort
SELECT + 98 * + + 83 * + 36
----
292824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT DISTINCT ( COUNT( * ) ) + + - COALESCE ( - + COALESCE ( - 10, 11 * 1 + + 38 ), - 33 * - MIN( - + 81 ) + + 2 + + 54 DIV + 40 + - 47 ) + - 11 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT ( COUNT ( * ) ) + + - COALESCE ( - + COALESCE ( - 10, 11 * 1 + + 38 ), - 33 * - MIN ( - + 81 ) + + 2 + + 54 / + 40 + - 47 ) + - 11 AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT ALL + COALESCE ( 53, - 81 / + COUNT( * ) ) + - COUNT( * ) + - 44 + - 51 + + 90 * - + 3 * 41 * CAST( NULL AS SIGNED ) * - 72 * + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + COALESCE ( 53, - 81 / + COUNT ( * ) ) + - COUNT ( * ) + - 44 + - 51 + + 90 * - + 3 * 41 * CAST ( NULL AS INTEGER ) * - 72 * + 32 AS col2
----
NULL

query I rowsort
SELECT ALL + ( 41 ) + + - 94 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL 61 + - + COUNT( * ) + 86 + - 70 + + NULLIF ( - - 76, + 4 ) - - 27 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL 61 + - + COUNT ( * ) + 86 + - 70 + + NULLIF ( - - 76, + 4 ) - - 27 AS col0
----
179

query I rowsort
SELECT DISTINCT 20 * + - 65
----
-1300

query II rowsort
SELECT 10 * - 73, 32 + - 31 + + 21 * - 63 col1
----
-730
-1322

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL NULLIF ( 19, 72 * - 28 * + 61 - + COUNT( * ) - 77 ) + + 28
----
47

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL NULLIF ( 19, 72 * - 28 * + 61 - + COUNT ( * ) - 77 ) + + 28
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4360
SELECT 74 * - 65, - 12 DIV + ( + MIN( ALL + + NULLIF ( - 83, - 25 + CAST( NULL AS SIGNED ) * COALESCE ( + 44, - + 77 ) ) ) ) * 17 * - - 20 DIV - 3 AS col0
----
-4810
0

skipif mysql # not compatible
query II rowsort label-4360
SELECT 74 * - 65, - 12 / + ( + MIN ( ALL + + NULLIF ( - 83, - 25 + CAST ( NULL AS INTEGER ) * COALESCE ( + 44, - + 77 ) ) ) ) * 17 * - - 20 / - 3 AS col0
----
-4810
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT SUM( ALL + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT SUM ( ALL + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT ( 70 ) * 10 * - - COUNT( * ) AS col0
----
700

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT ( 70 ) * 10 * - - COUNT ( * ) AS col0
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT ( COUNT( * ) ) * + - 58 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4363
SELECT ( COUNT ( * ) ) * + - 58 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT COALESCE ( - 59, - COUNT( * ) + 93 ) + - 90 * + 73 AS col0
----
-6629

skipif mysql # not compatible
query I rowsort label-4364
SELECT COALESCE ( - 59, - COUNT ( * ) + 93 ) + - 90 * + 73 AS col0
----
-6629

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT - COUNT( ALL 77 ), 21 AS col0
----
-1
21

skipif mysql # not compatible
query II rowsort label-4365
SELECT - COUNT ( ALL 77 ), 21 AS col0
----
-1
21

query I rowsort
SELECT 61 + + ( 12 ) * - 99
----
-1127

query I rowsort
SELECT 28 * + 26
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT - SUM( - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4368
SELECT - SUM ( - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT 59 + 7 - + + 35 + 75 * - + 85 * + + 32 * - - COUNT( * ) AS col2
----
-203969

skipif mysql # not compatible
query I rowsort label-4369
SELECT 59 + 7 - + + 35 + 75 * - + 85 * + + 32 * - - COUNT ( * ) AS col2
----
-203969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT + 13 - + CAST( + 96 AS SIGNED ) + + 8 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4370
SELECT + 13 - + CAST ( + 96 AS INTEGER ) + + 8 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT DISTINCT + 67 DIV + + 2
----
33

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + 67 / + + 2
----
33

query I rowsort
SELECT + 71 + + + 19 + 76
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4373
SELECT - MIN( + + 84 ) DIV 12 * - 63 col1
----
441

skipif mysql # not compatible
query I rowsort label-4373
SELECT - MIN ( + + 84 ) / 12 * - 63 col1
----
441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT DISTINCT 50 * 3 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT 50 * 3 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 93 + + + 13 AS col1
----
-80

query I rowsort
SELECT ALL 68 * + 22 + - 37
----
1459

query I rowsort
SELECT + 37 * + - 62 * + 76 AS col2
----
-174344

query I rowsort
SELECT 90 * + 35 + 27 AS col2
----
3177

query I rowsort
SELECT DISTINCT + - 95 col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT - COUNT( * ) + - 45 + + + 28 DIV + 61 * COUNT( * ) * 7 + 66
----
20

skipif mysql # not compatible
query I rowsort label-4380
SELECT - COUNT ( * ) + - 45 + + + 28 / + 61 * COUNT ( * ) * 7 + 66
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT - + COUNT( * ) * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4381
SELECT - + COUNT ( * ) * - + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT ALL - - 48 DIV 12 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL - - 48 / 12 AS col0
----
4

query I rowsort
SELECT + + 99 AS col0
----
99

query I rowsort
SELECT DISTINCT + + 61 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL + NULLIF ( + COUNT( * ), CASE + - 65 WHEN + 21 * + MAX( ALL 30 ) THEN - - 9 / + 89 / + - NULLIF ( + 31, 0 ) WHEN + - 60 THEN NULL WHEN - 86 THEN NULL END ) * + - ( 29 ) + NULLIF ( 53, - - ( - COUNT( * ) ) ) + 46 + + - COUNT( DISTINCT 42 )
----
69

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + NULLIF ( + COUNT ( * ), CASE + - 65 WHEN + 21 * + MAX ( ALL 30 ) THEN - - 9 / + 89 / + - NULLIF ( + 31, 0 ) WHEN + - 60 THEN NULL WHEN - 86 THEN NULL END ) * + - ( 29 ) + NULLIF ( 53, - - ( - COUNT ( * ) ) ) + 46 + + - COUNT ( DISTINCT 42 )
----
69

query I rowsort
SELECT ALL + - 79 col0
----
-79

query I rowsort
SELECT COALESCE ( ( 17 ), 31 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT + 98 * - 31 + + - NULLIF ( - COUNT( * ), + 90 + - 25 ) AS col0
----
-3037

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + 98 * - 31 + + - NULLIF ( - COUNT ( * ), + 90 + - 25 ) AS col0
----
-3037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4389
SELECT + COUNT( * ) AS col2, COUNT( * ) * CASE CASE MIN( ALL 69 ) WHEN - ( - 22 ) THEN NULL WHEN 62 * - 46 + + - AVG ( + 49 ) * - 64 * - + 95 THEN - 96 END WHEN 36 * + + MAX( + NULLIF ( - - 19, 39 * + CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN - 12 THEN - + CAST( NULL AS SIGNED ) WHEN + 20 THEN NULL END + + + 75 * + 94 * 84
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4389
SELECT + COUNT ( * ) AS col2, COUNT ( * ) * CASE CASE MIN ( ALL 69 ) WHEN - ( - 22 ) THEN NULL WHEN 62 * - 46 + + - AVG ( + 49 ) * - 64 * - + 95 THEN - 96 END WHEN 36 * + + MAX ( + NULLIF ( - - 19, 39 * + CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN - 12 THEN - + CAST ( NULL AS INTEGER ) WHEN + 20 THEN NULL END + + + 75 * + 94 * 84
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4390
SELECT COUNT( * ) AS col1, 58
----
1
58

skipif mysql # not compatible
query II rowsort label-4390
SELECT COUNT ( * ) AS col1, 58
----
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + SUM( - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-4391
SELECT + SUM ( - 87 )
----
-87

query I rowsort
SELECT - 25 + + - ( 1 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT ALL + CAST( + + 89 AS SIGNED ) * + 58 + - ( + CASE - 21 WHEN + 24 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - 78 THEN - 67 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + CAST ( + + 89 AS INTEGER ) * + 58 + - ( + CASE - 21 WHEN + 24 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 78 THEN - 67 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT + MIN( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + MIN ( + 85 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT ALL 35 * - 45 * + 6 - + COUNT( * ) DIV COUNT( * ) * - 58 AS col1
----
-9392

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 35 * - 45 * + 6 - + COUNT ( * ) / COUNT ( * ) * - 58 AS col1
----
-9392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL ( - + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL ( - + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT ( - + 17 ) AS col2
----
-17

query I rowsort
SELECT + 54 * - 25 AS col0
----
-1350

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT ALL 77 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL 77 / + 95 AS col0
----
0

query II rowsort
SELECT - 69 AS col1, + 72 AS col2
----
-69
72

query I rowsort
SELECT + ( - ( + ( + - COALESCE ( + 64, 25 * + 82, - - 31 ) ) ) ) + + 3 + 24 col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT - SUM( ALL - 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4402
SELECT - SUM ( ALL - 37 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - 18 / + CASE + - 8 WHEN + COUNT( * ) THEN + 34 WHEN + 34 THEN + 98 * - 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT - 18 / + CASE + - 8 WHEN + COUNT ( * ) THEN + 34 WHEN + 34 THEN + 98 * - 23 ELSE NULL END
----
NULL

query I rowsort
SELECT + 41 + + 26 AS col1
----
67

query I rowsort
SELECT ALL - 96 * 37 * + + 27 * - 38 col1
----
3644352

query II rowsort
SELECT DISTINCT 13 AS col2, - 53 * + 81 col2
----
13
-4293

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4407
SELECT 20 AS col1, + SUM( DISTINCT - 13 ) DIV NULLIF ( + 57, + COUNT( * ) - 75 + - + ( + - NULLIF ( - 32, + - ( - 41 ) ) ) )
----
20
0

skipif mysql # not compatible
query II rowsort label-4407
SELECT 20 AS col1, + SUM ( DISTINCT - 13 ) / NULLIF ( + 57, + COUNT ( * ) - 75 + - + ( + - NULLIF ( - 32, + - ( - 41 ) ) ) )
----
20
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT - + MAX( ( - + 45 ) ), 56 - 55 AS col1
----
45
1

skipif mysql # not compatible
query II rowsort label-4408
SELECT - + MAX ( ( - + 45 ) ), 56 - 55 AS col1
----
45
1

query II rowsort
SELECT ALL + 86 AS col1, 50
----
86
50

query I rowsort
SELECT + - 50 * + 78
----
-3900

onlyif mysql # DIV for integer division: 
query II rowsort label-4411
SELECT + + 44 * 10 DIV + + 73 AS col2, + 98 AS col1
----
6
98

skipif mysql # not compatible
query II rowsort label-4411
SELECT + + 44 * 10 / + + 73 AS col2, + 98 AS col1
----
6
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT ( - CASE + COUNT( * ) WHEN 27 THEN NULL WHEN + + 68 THEN - - 89 END ) / - 98 + + ( + MAX( ALL - - 41 ) ) + - 2 * ( + 37 ) * 66 + - - COUNT( ALL - 62 ) - - + ( 2 ) - + 59 * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT ( - CASE + COUNT ( * ) WHEN 27 THEN NULL WHEN + + 68 THEN - - 89 END ) / - 98 + + ( + MAX ( ALL - - 41 ) ) + - 2 * ( + 37 ) * 66 + - - COUNT ( ALL - 62 ) - - + ( 2 ) - + 59 * 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT ALL + COUNT( * ) DIV + 31 * - 68 - + - 54 * + + 71 + 79 AS col1
----
3913

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL + COUNT ( * ) / + 31 * - 68 - + - 54 * + + 71 + 79 AS col1
----
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - 21 / - - 38 * CASE + + 75 WHEN - 58 THEN - 78 + + 39 END + NULLIF ( + NULLIF ( COUNT( * ), + 6 ), - AVG ( + - ( 9 ) ) ) + - ( ( + 70 ) ) + - 67 / 5 / - 93 * - + 25 + + 97 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - 21 / - - 38 * CASE + + 75 WHEN - 58 THEN - 78 + + 39 END + NULLIF ( + NULLIF ( COUNT ( * ), + 6 ), - AVG ( + - ( 9 ) ) ) + - ( ( + 70 ) ) + - 67 / 5 / - 93 * - + 25 + + 97 * - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT DISTINCT - + 27 DIV - 62 + + - 56 + + 47
----
-9

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - + 27 / - 62 + + - 56 + + 47
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT ALL + MIN( DISTINCT - - ( - - 59 ) ) DIV 99 + + + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + MIN ( DISTINCT - - ( - - 59 ) ) / 99 + + + 51 AS col2
----
51

query I rowsort
SELECT DISTINCT + - 29
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4418
SELECT ALL + - 62 DIV - COALESCE ( CAST( 40 AS SIGNED ), 46 ) + - 44 - - 39 * 68 - - + 98 * - - ( + ( ( - 79 ) ) ) + 22 + + 15 * + SUM( + - ( 63 ) )
----
-6056

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + - 62 / - COALESCE ( CAST ( 40 AS INTEGER ), 46 ) + - 44 - - 39 * 68 - - + 98 * - - ( + ( ( - 79 ) ) ) + 22 + + 15 * + SUM ( + - ( 63 ) )
----
-6056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT DISTINCT - + ( - NULLIF ( 45, 92 ) ) / 76 * + 92 + 2 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - + ( - NULLIF ( 45, 92 ) ) / 76 * + 92 + 2 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - COUNT( * ) * COUNT( * ) + 28 * - 40
----
-1121

skipif mysql # not compatible
query I rowsort label-4420
SELECT - COUNT ( * ) * COUNT ( * ) + 28 * - 40
----
-1121

query I rowsort
SELECT ( + - 56 )
----
-56

query I rowsort
SELECT ( + 57 ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT - 20 DIV + + 52
----
0

skipif mysql # not compatible
query I rowsort label-4423
SELECT - 20 / + + 52
----
0

query I rowsort
SELECT + 32 * - 8 * - 35 AS col2
----
8960

query I rowsort
SELECT - 38 * - 54
----
2052

onlyif mysql # aggregate syntax: 
query II rowsort label-4426
SELECT + COUNT( * ) + + + 82 * + ( - 92 ) AS col1, 8
----
-7543
8

skipif mysql # not compatible
query II rowsort label-4426
SELECT + COUNT ( * ) + + + 82 * + ( - 92 ) AS col1, 8
----
-7543
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT DISTINCT - 27 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT - 27 / - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL + 44 * 5 * + 92 - COUNT( - 10 )
----
20239

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + 44 * 5 * + 92 - COUNT ( - 10 )
----
20239

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4429
SELECT DISTINCT + CASE + 77 WHEN + + 73 / - + 23 * + 74 THEN + - COALESCE ( - 49, - NULLIF ( - 84, + 35 ) ) * 84 / + 55 ELSE - CAST( - 56 AS SIGNED ) END AS col0, + 6 * - 99
----
56
-594

skipif mysql # not compatible
query II rowsort label-4429
SELECT DISTINCT + CASE + 77 WHEN + + 73 / - + 23 * + 74 THEN + - COALESCE ( - 49, - NULLIF ( - 84, + 35 ) ) * 84 / + 55 ELSE - CAST ( - 56 AS INTEGER ) END AS col0, + 6 * - 99
----
56
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT 93 * - CASE + 22 WHEN 39 THEN - 1 + - 40 WHEN 18 THEN NULL END - + COUNT( * ) * 56 * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT 93 * - CASE + 22 WHEN 39 THEN - 1 + - 40 WHEN 18 THEN NULL END - + COUNT ( * ) * 56 * 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT ALL - 55 * - + 58 * - NULLIF ( 7, + - 0 ) col0, COUNT( * )
----
-22330
1

skipif mysql # not compatible
query II rowsort label-4431
SELECT ALL - 55 * - + 58 * - NULLIF ( 7, + - 0 ) col0, COUNT ( * )
----
-22330
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - 42 * + COUNT( * ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-4432
SELECT - 42 * + COUNT ( * ) col2
----
-42

query I rowsort
SELECT NULLIF ( + 60, 83 )
----
60

query I rowsort
SELECT DISTINCT - 37 * 80
----
-2960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT ALL CAST( - - 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL CAST ( - - 91 AS INTEGER ) AS col2
----
91

query I rowsort
SELECT - NULLIF ( + - 77, 95 ) + + - 92 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT NULLIF ( + NULLIF ( + - 79, ( - 88 ) ), 17 * - SUM( + 35 ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4437
SELECT NULLIF ( + NULLIF ( + - 79, ( - 88 ) ), 17 * - SUM ( + 35 ) ) AS col2
----
-79

query I rowsort
SELECT ALL - 56 * + 89 AS col2
----
-4984

query II rowsort
SELECT - 12 * - + 49 AS col0, ( - 40 )
----
588
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT ALL ( + 74 ) DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL ( + 74 ) / + 27
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT - 53 DIV + NULLIF ( 13, - + 13 + 36 + 87 ) + - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4441
SELECT - 53 / + NULLIF ( 13, - + 13 + 36 + 87 ) + - COUNT ( * ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL - CASE - + 69 WHEN + 97 THEN 41 + - COUNT( * ) * ( - 25 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL - CASE - + 69 WHEN + 97 THEN 41 + - COUNT ( * ) * ( - 25 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT DISTINCT + 76 + - 3 AS col2, + NULLIF ( - SUM( ALL - 56 ), - + 64 )
----
73
56

skipif mysql # not compatible
query II rowsort label-4443
SELECT DISTINCT + 76 + - 3 AS col2, + NULLIF ( - SUM ( ALL - 56 ), - + 64 )
----
73
56

query I rowsort
SELECT DISTINCT - 8
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT + 75 + + CASE CAST( + 6 AS SIGNED ) WHEN - 3 + - 74 * + AVG ( DISTINCT - ( - 66 ) ) / + + 65 * 95 THEN + - 85 ELSE NULL END * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT + 75 + + CASE CAST ( + 6 AS INTEGER ) WHEN - 3 + - 74 * + AVG ( DISTINCT - ( - 66 ) ) / + + 65 * 95 THEN + - 85 ELSE NULL END * - 92
----
NULL

query I rowsort
SELECT ALL + + 69 + 45
----
114

query I rowsort
SELECT 44 + - 56
----
-12

query I rowsort
SELECT - - 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL COUNT( DISTINCT - 98 ) + + + ( - COUNT( * ) ) * - 66 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL COUNT ( DISTINCT - 98 ) + + + ( - COUNT ( * ) ) * - 66 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4450
SELECT - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT - CAST ( NULL AS REAL ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 24 * NULLIF ( - - 47, - ( AVG ( + 35 ) ) * - 0 ) * + + COALESCE ( + 54, 88, + 27 ) * 30 AS col2
----
1827360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4452
SELECT 37 + - + 80, 23 DIV - 73 + - - COUNT( * ) AS col1
----
-43
1

skipif mysql # not compatible
query II rowsort label-4452
SELECT 37 + - + 80, 23 / - 73 + - - COUNT ( * ) AS col1
----
-43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + 2 + - - COALESCE ( + 6, 80 * - COUNT( * ) + - 19 ) - - 78
----
86

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + 2 + - - COALESCE ( + 6, 80 * - COUNT ( * ) + - 19 ) - - 78
----
86

query I rowsort
SELECT - 65 col2
----
-65

query I rowsort
SELECT - + 29 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4456
SELECT ALL - ( + CAST( + ( 34 ) AS SIGNED ) ), - MIN( + - 72 ) AS col2
----
-34
72

skipif mysql # not compatible
query II rowsort label-4456
SELECT ALL - ( + CAST ( + ( 34 ) AS INTEGER ) ), - MIN ( + - 72 ) AS col2
----
-34
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4457
SELECT 72 DIV + 46 + - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4457
SELECT 72 / + 46 + - 41 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT - SUM( - 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - SUM ( - 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT COUNT( DISTINCT 7 ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-4459
SELECT COUNT ( DISTINCT 7 ) + + 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL 2 * - COUNT( * ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL 2 * - COUNT ( * ) col1
----
-2

query I rowsort
SELECT 39 * 69 * + 46
----
123786

query I rowsort
SELECT DISTINCT - 78 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT SUM( DISTINCT + 39 ) * + 44 AS col1
----
1716

skipif mysql # not compatible
query I rowsort label-4463
SELECT SUM ( DISTINCT + 39 ) * + 44 AS col1
----
1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4464
SELECT DISTINCT 1 * + MAX( ALL - CAST( + 87 AS SIGNED ) ) DIV + 19
----
-4

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT 1 * + MAX ( ALL - CAST ( + 87 AS INTEGER ) ) / + 19
----
-4

query II rowsort
SELECT ALL - 9 col1, 33
----
-9
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4466
SELECT CASE + 32 WHEN + + 79 THEN NULL WHEN - SUM( DISTINCT - ( 60 ) ) THEN NULL WHEN - - CASE + 9 WHEN - CASE + 24 WHEN - AVG ( - - 44 ) THEN NULL WHEN - 27 THEN NULL ELSE + 48 END THEN NULL WHEN + + 59 / + - COUNT( * ) THEN + CAST( + 4 AS SIGNED ) END - + 14 THEN 37 ELSE + CASE 79 WHEN ( CAST( NULL AS SIGNED ) ) * - - ( - - 10 ) * 98 THEN NULL WHEN + COALESCE ( - ( + ( + - COALESCE ( - 7, + - 94 + + SUM( - 4 ) ) ) ), COUNT( * ) ) + 83 * - MIN( ALL 41 * - 91 ) THEN - 29 * CASE - 67 * + 77 WHEN 85 + 15 THEN COUNT( * ) END + COALESCE ( + 4, 26 ) END + 86 END / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT CASE + 32 WHEN + + 79 THEN NULL WHEN - SUM ( DISTINCT - ( 60 ) ) THEN NULL WHEN - - CASE + 9 WHEN - CASE + 24 WHEN - AVG ( - - 44 ) THEN NULL WHEN - 27 THEN NULL ELSE + 48 END THEN NULL WHEN + + 59 / + - COUNT ( * ) THEN + CAST ( + 4 AS INTEGER ) END - + 14 THEN 37 ELSE + CASE 79 WHEN ( CAST ( NULL AS INTEGER ) ) * - - ( - - 10 ) * 98 THEN NULL WHEN + COALESCE ( - ( + ( + - COALESCE ( - 7, + - 94 + + SUM ( - 4 ) ) ) ), COUNT ( * ) ) + 83 * - MIN ( ALL 41 * - 91 ) THEN - 29 * CASE - 67 * + 77 WHEN 85 + 15 THEN COUNT ( * ) END + COALESCE ( + 4, 26 ) END + 86 END / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 90 * 29 AS col2
----
2610

query I rowsort
SELECT + 11 AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4469
SELECT 70 + + 20 + + 94 * + 72 + COUNT( * ) * 22 - + 94 DIV 49
----
6879

skipif mysql # not compatible
query I rowsort label-4469
SELECT 70 + + 20 + + 94 * + 72 + COUNT ( * ) * 22 - + 94 / 49
----
6879

query I rowsort
SELECT DISTINCT - 12 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT DISTINCT + 79 DIV + - 84
----
0

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT + 79 / + - 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT DISTINCT 35 DIV - 86 DIV 10 * 30
----
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT 35 / - 86 / 10 * 30
----
0

query I rowsort
SELECT ALL 94 + - - 54 * + + 10 AS col2
----
634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT ALL + + COALESCE ( 43, 97 - + 25, + + ( 71 ) DIV - MAX( + 29 ), + MIN( 47 ) ) + + + 41
----
84

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL + + COALESCE ( 43, 97 - + 25, + + ( 71 ) / - MAX ( + 29 ), + MIN ( 47 ) ) + + + 41
----
84

query II rowsort
SELECT - 25 * 28 + - 48 AS col2, - 33 AS col2
----
-748
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT - 90 * - - 65 * - COUNT( * ) AS col2, 30 + 79
----
5850
109

skipif mysql # not compatible
query II rowsort label-4476
SELECT - 90 * - - 65 * - COUNT ( * ) AS col2, 30 + 79
----
5850
109

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4477
SELECT - 60 + COALESCE ( - - 11, + NULLIF ( + + 51, - + 19 ) DIV - 32 - - CAST( - + ( - 70 ) AS SIGNED ), + - 5 DIV + 95 + - + 27 DIV - + 88 )
----
-49

skipif mysql # not compatible
query I rowsort label-4477
SELECT - 60 + COALESCE ( - - 11, + NULLIF ( + + 51, - + 19 ) / - 32 - - CAST ( - + ( - 70 ) AS INTEGER ), + - 5 / + 95 + - + 27 / - + 88 )
----
-49

query I rowsort
SELECT ALL ( + 10 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT DISTINCT - + 4 + + 71 + + - COUNT( * ) DIV + 91 col1
----
67

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT - + 4 + + 71 + + - COUNT ( * ) / + 91 col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL - 22 + COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - 22 + COUNT ( * ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4481
SELECT + 26 * + 33 + + 39, - 6 * + CAST( NULL AS SIGNED ) * - 44 col0
----
897
NULL

skipif mysql # not compatible
query II rowsort label-4481
SELECT + 26 * + 33 + + 39, - 6 * + CAST ( NULL AS INTEGER ) * - 44 col0
----
897
NULL

query I rowsort
SELECT ALL - 11 + + 6
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4483
SELECT DISTINCT - - 12 * MIN( + 64 ) + COALESCE ( MAX( - - CAST( NULL AS SIGNED ) ), 96 + - 11 - + COALESCE ( 65, - 25 + - 68 * - 59 ) * - NULLIF ( - COALESCE ( - 23, - - 92 ), - + 44 ) + - 21 + + NULLIF ( - + 80, - - ( - - 13 ) ), + + COUNT( * ) )
----
2247

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT - - 12 * MIN ( + 64 ) + COALESCE ( MAX ( - - CAST ( NULL AS INTEGER ) ), 96 + - 11 - + COALESCE ( 65, - 25 + - 68 * - 59 ) * - NULLIF ( - COALESCE ( - 23, - - 92 ), - + 44 ) + - 21 + + NULLIF ( - + 80, - - ( - - 13 ) ), + + COUNT ( * ) )
----
2247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL - CAST( NULL AS SIGNED ) + - 64 + 38 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL - CAST ( NULL AS INTEGER ) + - 64 + 38 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 32 AS col0
----
32

query I rowsort
SELECT ALL + 62 + - 19 AS col1
----
43

query I rowsort
SELECT DISTINCT - - 99 + - 55
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT COUNT( DISTINCT - + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-4488
SELECT COUNT ( DISTINCT - + 97 )
----
1

query I rowsort
SELECT ALL - 81 + - 82 AS col0
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4490
SELECT ALL COALESCE ( + - 87, + - 59 + - 27 + - 32 ) AS col1, NULLIF ( + COUNT( * ), 42 + - CAST( NULL AS SIGNED ) + + + 29 ) + + 56 AS col2
----
-87
57

skipif mysql # not compatible
query II rowsort label-4490
SELECT ALL COALESCE ( + - 87, + - 59 + - 27 + - 32 ) AS col1, NULLIF ( + COUNT ( * ), 42 + - CAST ( NULL AS INTEGER ) + + + 29 ) + + 56 AS col2
----
-87
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT MAX( DISTINCT - + 10 ) * + ( - 25 )
----
250

skipif mysql # not compatible
query I rowsort label-4491
SELECT MAX ( DISTINCT - + 10 ) * + ( - 25 )
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT + MAX( - 65 ) * 4 AS col2
----
-260

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT + MAX ( - 65 ) * 4 AS col2
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4493
SELECT ALL - COALESCE ( + - 7, - 61 * - 61, - COUNT( * ) * + - COUNT( * ) + 79 DIV - COUNT( * ) ) - + + 57 col1
----
-50

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL - COALESCE ( + - 7, - 61 * - 61, - COUNT ( * ) * + - COUNT ( * ) + 79 / - COUNT ( * ) ) - + + 57 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT - 42 - + + ( - COUNT( * ) ) + - 53 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 42 - + + ( - COUNT ( * ) ) + - 53 AS col0
----
-94

query II rowsort
SELECT - 56 AS col1, 94
----
-56
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT - COALESCE ( - + 26, + - COUNT( * ) + + CASE 55 WHEN + 96 * + SUM( ( + - 26 ) ) THEN + - CAST( NULL AS SIGNED ) * - 52 WHEN 16 THEN NULL ELSE - 18 END ) * - 5 + + 8 - - COUNT( * ) * 1 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-4496
SELECT - COALESCE ( - + 26, + - COUNT ( * ) + + CASE 55 WHEN + 96 * + SUM ( ( + - 26 ) ) THEN + - CAST ( NULL AS INTEGER ) * - 52 WHEN 16 THEN NULL ELSE - 18 END ) * - 5 + + 8 - - COUNT ( * ) * 1 AS col2
----
-121

query I rowsort
SELECT ALL 86 * - 69 * 87 AS col0
----
-516258

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT COUNT( * ) - - NULLIF ( - - 24, - 92 ) + + - COALESCE ( + 23, - COUNT( ( 32 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-4498
SELECT COUNT ( * ) - - NULLIF ( - - 24, - 92 ) + + - COALESCE ( + 23, - COUNT ( ( 32 ) ) )
----
2

query I rowsort
SELECT ALL + 54 - - 85 col1
----
139

query I rowsort
SELECT DISTINCT - 82 * - 83
----
6806

query I rowsort
SELECT ALL + ( + - 46 ) * 53
----
-2438

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT - COUNT( * ) * - 25 - - - 6 + - - 4 - ( - + 5 ) + 49 * - 36 * COUNT( * ) AS col2
----
-1736

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT - COUNT ( * ) * - 25 - - - 6 + - - 4 - ( - + 5 ) + 49 * - 36 * COUNT ( * ) AS col2
----
-1736

query II rowsort
SELECT ALL - 10 AS col2, 64
----
-10
64

query I rowsort
SELECT 45 * - + 96 AS col1
----
-4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT CAST( - 49 AS SIGNED ) - + 52
----
-101

skipif mysql # not compatible
query I rowsort label-4505
SELECT CAST ( - 49 AS INTEGER ) - + 52
----
-101

query II rowsort
SELECT ALL - 25 AS col2, - 82 col2
----
-25
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT MAX( DISTINCT + 47 ) * + + MAX( DISTINCT 68 ) AS col0
----
3196

skipif mysql # not compatible
query I rowsort label-4507
SELECT MAX ( DISTINCT + 47 ) * + + MAX ( DISTINCT 68 ) AS col0
----
3196

query II rowsort
SELECT 74 + 7, + 98 + 16 AS col1
----
81
114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4509
SELECT DISTINCT - ( NULLIF ( 58, - 11 / - COUNT( * ) - + + AVG ( CAST( NULL AS DECIMAL ) ) + + - 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - ( NULLIF ( 58, - 11 / - COUNT ( * ) - + + AVG ( CAST ( NULL AS REAL ) ) + + - 58 ) )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT ALL 97 * - + 3 / + 86 * + 16 * 35 + + CAST( NULL AS SIGNED ) + - CASE 30 WHEN CASE + + NULLIF ( 41, + 4 ) WHEN 59 * 97 + + 2 THEN - COALESCE ( - COALESCE ( - AVG ( - - CASE + 87 WHEN 36 + - - 22 THEN + 3 * 35 + + + 67 - + - 44 ELSE NULL END ), - NULLIF ( + + ( + AVG ( + 3 ) ), + + 55 + 26 ) * + + 39 + - 37 + + - 23 * + 51 + 41, CAST( NULL AS SIGNED ) ), - COUNT( * ), - COUNT( * ) ) / - CASE + 37 * ( 29 * 54 ) WHEN 73 THEN 28 ELSE + NULLIF ( + 24, + CAST( - 21 AS SIGNED ) ) + ( + 8 ) END + + 68 WHEN + 27 THEN 12 - 88 ELSE NULL END - - 65 THEN 34 * 31 ELSE NULL END * 25 / 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL 97 * - + 3 / + 86 * + 16 * 35 + + CAST ( NULL AS INTEGER ) + - CASE 30 WHEN CASE + + NULLIF ( 41, + 4 ) WHEN 59 * 97 + + 2 THEN - COALESCE ( - COALESCE ( - AVG ( - - CASE + 87 WHEN 36 + - - 22 THEN + 3 * 35 + + + 67 - + - 44 ELSE NULL END ), - NULLIF ( + + ( + AVG ( + 3 ) ), + + 55 + 26 ) * + + 39 + - 37 + + - 23 * + 51 + 41, CAST ( NULL AS INTEGER ) ), - COUNT ( * ), - COUNT ( * ) ) / - CASE + 37 * ( 29 * 54 ) WHEN 73 THEN 28 ELSE + NULLIF ( + 24, + CAST ( - 21 AS INTEGER ) ) + ( + 8 ) END + + 68 WHEN + 27 THEN 12 - 88 ELSE NULL END - - 65 THEN 34 * 31 ELSE NULL END * 25 / 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL COUNT( ALL - 16 ) * 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL COUNT ( ALL - 16 ) * 33 AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT + ( 33 ) DIV + + 73 * + MIN( ALL - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT + ( 33 ) / + + 73 * + MIN ( ALL - 47 )
----
0

query I rowsort
SELECT DISTINCT 12 * + 83
----
996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4514
SELECT MAX( CAST( - - 26 AS SIGNED ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4514
SELECT MAX ( CAST ( - - 26 AS INTEGER ) ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT 88 + COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT 88 + COUNT ( * ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4516
SELECT ALL COUNT( * ) * COALESCE ( 14, - SUM( 45 ) + - + 42 * - 52 ) DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL COUNT ( * ) * COALESCE ( 14, - SUM ( 45 ) + - + 42 * - 52 ) / 87 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT + 74 DIV 71 * - 93 * - 67
----
6231

skipif mysql # not compatible
query I rowsort label-4517
SELECT + 74 / 71 * - 93 * - 67
----
6231

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT + NULLIF ( + - NULLIF ( 29, 64 * - COUNT( * ) ), - 63 * + COUNT( * ) ) + + - 56 * ( 2 )
----
-141

skipif mysql # not compatible
query I rowsort label-4518
SELECT + NULLIF ( + - NULLIF ( 29, 64 * - COUNT ( * ) ), - 63 * + COUNT ( * ) ) + + - 56 * ( 2 )
----
-141

query II rowsort
SELECT DISTINCT + + 23 AS col0, + 28
----
23
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL - 26 + 41 - + + MAX( DISTINCT - 70 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - 26 + 41 - + + MAX ( DISTINCT - 70 ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT + - CAST( NULL AS SIGNED ) + + 37 + ( - 77 ) + 84 / - NULLIF ( - 36, - + 36 / - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT + - CAST ( NULL AS INTEGER ) + + 37 + ( - 77 ) + 84 / - NULLIF ( - 36, - + 36 / - 68 )
----
NULL

query I rowsort
SELECT + + 46 + 68 AS col0
----
114

query I rowsort
SELECT NULLIF ( + 19, - NULLIF ( - 46, + 76 ) )
----
19

query I rowsort
SELECT 71 * + 90 * + 46 + + 50 AS col1
----
293990

query I rowsort
SELECT ALL + 66 + + 47
----
113

query I rowsort
SELECT ALL + + 39 * + 48
----
1872

query I rowsort
SELECT ( + 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4528
SELECT ALL 7 DIV - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL 7 / - - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT - 33 + - - COUNT( DISTINCT - 41 )
----
-32

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - 33 + - - COUNT ( DISTINCT - 41 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL COUNT( * ) - + + 36 + - + 76 + 34 * - 60
----
-2151

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL COUNT ( * ) - + + 36 + - + 76 + 34 * - 60
----
-2151

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT + 83 * - + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + 83 * - + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4532
SELECT 32 AS col1, COUNT( * ) AS col1, - 91 DIV + + 95 + - 3
----
32
1
-3

skipif mysql # not compatible
query III rowsort label-4532
SELECT 32 AS col1, COUNT ( * ) AS col1, - 91 / + + 95 + - 3
----
32
1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL + - COUNT( * ) * + 21
----
-21

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL + - COUNT ( * ) * + 21
----
-21

query I rowsort
SELECT + - 44 + - + 13 AS col2
----
-57

query II rowsort
SELECT ALL 73, 21 + - 47 AS col0
----
73
-26

query II rowsort
SELECT DISTINCT 95 AS col0, 65 * - 90
----
95
-5850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4537
SELECT ALL + CAST( 75 AS SIGNED ) * + NULLIF ( - 11, + - COUNT( * ) * + + AVG ( DISTINCT 71 ) + 26 * + 88 ) + - CAST( 1 AS SIGNED ) DIV - 99
----
-825

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + CAST ( 75 AS INTEGER ) * + NULLIF ( - 11, + - COUNT ( * ) * + + AVG ( DISTINCT 71 ) + 26 * + 88 ) + - CAST ( 1 AS INTEGER ) / - 99
----
-825

query I rowsort
SELECT - COALESCE ( 12, 53 ) * + 97 AS col0
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT COUNT( + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT COUNT ( + 85 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - ( - 46 ) + + 89 * - - COUNT( * ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-4540
SELECT - ( - 46 ) + + 89 * - - COUNT ( * ) AS col2
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT ALL CASE 71 WHEN - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * CASE + + ( 83 ) WHEN - + 60 + + 1 THEN NULL WHEN + 25 + + + 51 THEN + + COUNT( * ) * + 22 * - COUNT( * ) WHEN - 3 * - 85 * + + 49 THEN NULL END * CAST( NULL AS SIGNED ) + COUNT( ALL - ( + 38 ) ) + - 68 THEN - ( SUM( + ( + 35 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL CASE 71 WHEN - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * CASE + + ( 83 ) WHEN - + 60 + + 1 THEN NULL WHEN + 25 + + + 51 THEN + + COUNT ( * ) * + 22 * - COUNT ( * ) WHEN - 3 * - 85 * + + 49 THEN NULL END * CAST ( NULL AS INTEGER ) + COUNT ( ALL - ( + 38 ) ) + - 68 THEN - ( SUM ( + ( + 35 ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - COUNT( DISTINCT - 11 ) * 43
----
-43

skipif mysql # not compatible
query I rowsort label-4542
SELECT - COUNT ( DISTINCT - 11 ) * 43
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT DISTINCT + 14 DIV + - 31
----
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT + 14 / + - 31
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT DISTINCT - 78 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - 78 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT ALL 7 * + 21 col0, 38 * 60 + + - SUM( DISTINCT 83 ) AS col2
----
147
2197

skipif mysql # not compatible
query II rowsort label-4545
SELECT ALL 7 * + 21 col0, 38 * 60 + + - SUM ( DISTINCT 83 ) AS col2
----
147
2197

query I rowsort
SELECT DISTINCT 68 * + 44 + + - 5 AS col2
----
2987

query I rowsort
SELECT ALL + 24 * - 21 AS col2
----
-504

query I rowsort
SELECT 33 * - 46 - - - 66 * - + NULLIF ( + 87, + 50 )
----
4224

query I rowsort
SELECT ( + 76 )
----
76

query I rowsort
SELECT DISTINCT + ( 98 ) AS col0
----
98

query I rowsort
SELECT COALESCE ( - 42, 2 * - 61 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4552
SELECT ALL - COUNT( * ) * + MAX( - + CAST( NULL AS SIGNED ) ) * + 87 + + 10, - 9 + + 35 + + NULLIF ( - + 44, - 81 + + 84 * + + 89 + 76 ) AS col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-4552
SELECT ALL - COUNT ( * ) * + MAX ( - + CAST ( NULL AS INTEGER ) ) * + 87 + + 10, - 9 + + 35 + + NULLIF ( - + 44, - 81 + + 84 * + + 89 + 76 ) AS col1
----
NULL
-18

query I rowsort
SELECT - ( ( + 60 ) ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT + NULLIF ( + 47, + ( ( MAX( + + 81 ) ) ) * CAST( + ( + 6 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4554
SELECT + NULLIF ( + 47, + ( ( MAX ( + + 81 ) ) ) * CAST ( + ( + 6 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) AS col1
----
47

query I rowsort
SELECT DISTINCT + 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT - 4 * 1 * - COALESCE ( + - 81, COUNT( * ) ) + + + 99 - - - 2 AS col0
----
-227

skipif mysql # not compatible
query I rowsort label-4556
SELECT - 4 * 1 * - COALESCE ( + - 81, COUNT ( * ) ) + + + 99 - - - 2 AS col0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL - + 51 * 81 + COUNT( * ) + + - COALESCE ( + 61, + + 22 + - - 31 + - 16 + + 57 * + 5 - - 71 - + COALESCE ( 13, + + 5 + - 74 ) - + 47 * COUNT( * ) ) * + 20 AS col1
----
-5350

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL - + 51 * 81 + COUNT ( * ) + + - COALESCE ( + 61, + + 22 + - - 31 + - 16 + + 57 * + 5 - - 71 - + COALESCE ( 13, + + 5 + - 74 ) - + 47 * COUNT ( * ) ) * + 20 AS col1
----
-5350

query I rowsort
SELECT ALL + - 84 * 17 - + 88 AS col0
----
-1516

query I rowsort
SELECT + + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL + - CASE - - 56 WHEN 11 THEN + 80 + + - COUNT( * ) - - + 49 - CASE - COUNT( DISTINCT + 10 ) WHEN + - 42 THEN NULLIF ( - NULLIF ( + 60, AVG ( + - 3 ) / - 40 ), ( - - 36 ) ) END * + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL + - CASE - - 56 WHEN 11 THEN + 80 + + - COUNT ( * ) - - + 49 - CASE - COUNT ( DISTINCT + 10 ) WHEN + - 42 THEN NULLIF ( - NULLIF ( + 60, AVG ( + - 3 ) / - 40 ), ( - - 36 ) ) END * + 2 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - ( + 58 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT ALL 5 * + ( + 95 ) - + NULLIF ( 74, - CAST( - - 81 AS SIGNED ) + + + 55 - + 38 - - + 61 ) + + 50 AS col2
----
451

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL 5 * + ( + 95 ) - + NULLIF ( 74, - CAST ( - - 81 AS INTEGER ) + + + 55 - + 38 - - + 61 ) + + 50 AS col2
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + - COUNT( * ) + 49 * - SUM( + 93 )
----
-4558

skipif mysql # not compatible
query I rowsort label-4563
SELECT + - COUNT ( * ) + 49 * - SUM ( + 93 )
----
-4558

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT - SUM( DISTINCT - - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4564
SELECT - SUM ( DISTINCT - - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT + + 59 + 62 + - 98 * + - COUNT( * )
----
219

skipif mysql # not compatible
query I rowsort label-4565
SELECT + + 59 + 62 + - 98 * + - COUNT ( * )
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT ALL + CAST( MIN( + 3 ) AS SIGNED ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL + CAST ( MIN ( + 3 ) AS INTEGER ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT + - AVG ( ALL - 58 ) * + - CASE - + COUNT( ALL + ( 87 ) ) WHEN + 53 * 65 / 19 THEN + CAST( + - COUNT( * ) AS SIGNED ) + + COALESCE ( + 29, - + 68 ) * - COUNT( * ) - + 26 + - 73 WHEN - 31 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT + - AVG ( ALL - 58 ) * + - CASE - + COUNT ( ALL + ( 87 ) ) WHEN + 53 * 65 / 19 THEN + CAST ( + - COUNT ( * ) AS INTEGER ) + + COALESCE ( + 29, - + 68 ) * - COUNT ( * ) - + 26 + - 73 WHEN - 31 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 29 col2
----
29

query I rowsort
SELECT + 38 * 11 AS col1
----
418

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT ALL 44 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL 44 / - 83
----
0

query I rowsort
SELECT + 49 + - + 96 AS col1
----
-47

query II rowsort
SELECT 6, - 57 + - - 29 AS col1
----
6
-28

query II rowsort
SELECT ALL 37 * - ( + 28 ), + 13 * + 68 AS col0
----
-1036
884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT - CAST( - + NULLIF ( + 24, + 13 ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-4574
SELECT - CAST ( - + NULLIF ( + 24, + 13 ) AS INTEGER )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4575
SELECT - CAST( NULL AS SIGNED ) * - + 45 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT - CAST ( NULL AS INTEGER ) * - + 45 * 38
----
NULL

query II rowsort
SELECT - 39 AS col2, - 72
----
-39
-72

query I rowsort
SELECT ALL - 64 + + - 48 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + 19 - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4578
SELECT + 19 - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL ( MAX( ALL + 51 ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL ( MAX ( ALL + 51 ) ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4580
SELECT DISTINCT 43 + CASE CAST( - 8 AS DECIMAL ) WHEN + COUNT( * ) THEN NULL WHEN 58 THEN - 31 END + + COUNT( * ) * + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT 43 + CASE CAST ( - 8 AS REAL ) WHEN + COUNT ( * ) THEN NULL WHEN 58 THEN - 31 END + + COUNT ( * ) * + - 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT - CAST( NULL AS SIGNED ) * - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT - CAST ( NULL AS INTEGER ) * - 92 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 19 + - 92
----
-73

query I rowsort
SELECT ALL 77 + 36
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4584
SELECT DISTINCT 36 * COUNT( * ) * - - COUNT( * ), NULLIF ( + 61, - 48 * + 30 - - MIN( DISTINCT - 83 ) ) + - - 10 AS col2
----
36
71

skipif mysql # not compatible
query II rowsort label-4584
SELECT DISTINCT 36 * COUNT ( * ) * - - COUNT ( * ), NULLIF ( + 61, - 48 * + 30 - - MIN ( DISTINCT - 83 ) ) + - - 10 AS col2
----
36
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4585
SELECT ALL - MAX( DISTINCT + CAST( + 89 AS SIGNED ) ) + 32 - 53 * COUNT( * ) DIV + MAX( CASE + 31 WHEN + - CAST( NULL AS SIGNED ) THEN - - 4 DIV 89 ELSE + 91 END ) + + 40 DIV + 15
----
-55

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - MAX ( DISTINCT + CAST ( + 89 AS INTEGER ) ) + 32 - 53 * COUNT ( * ) / + MAX ( CASE + 31 WHEN + - CAST ( NULL AS INTEGER ) THEN - - 4 / 89 ELSE + 91 END ) + + 40 / + 15
----
-55

query I rowsort
SELECT ALL - 34 col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL + 38 + + MAX( ALL - 54 ) + 92 * - - ( 51 )
----
4676

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + 38 + + MAX ( ALL - 54 ) + 92 * - - ( 51 )
----
4676

query I rowsort
SELECT 9 - - 66
----
75

query II rowsort
SELECT 0 AS col2, 31
----
0
31

query II rowsort
SELECT + 65, 57 col1
----
65
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL - 66 + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL - 66 + COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4592
SELECT 89 * + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4593
SELECT + 71, COUNT( * ) AS col1
----
71
1

skipif mysql # not compatible
query II rowsort label-4593
SELECT + 71, COUNT ( * ) AS col1
----
71
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4594
SELECT ALL + 2 + + 77 * + + 69 col2, 82 + + 63 DIV - 63
----
5315
81

skipif mysql # not compatible
query II rowsort label-4594
SELECT ALL + 2 + + 77 * + + 69 col2, 82 + + 63 / - 63
----
5315
81

query I rowsort
SELECT ALL - - 9
----
9

query I rowsort
SELECT DISTINCT + 99 - + - 98
----
197

query II rowsort
SELECT ALL - 35 * - 1 + 88 - - 41 + + 74 * + 79 col0, 56
----
6010
56

query I rowsort
SELECT DISTINCT + + 85 * + 64
----
5440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT - ( - - 96 ) * + 27 + + NULLIF ( - COUNT( * ), - + 21 * - 90 * - + 22 * - COALESCE ( + COUNT( * ), - - CAST( + + 24 AS SIGNED ) + - 56 + - 99 + + 52 ) ) + 34
----
-2559

skipif mysql # not compatible
query I rowsort label-4599
SELECT - ( - - 96 ) * + 27 + + NULLIF ( - COUNT ( * ), - + 21 * - 90 * - + 22 * - COALESCE ( + COUNT ( * ), - - CAST ( + + 24 AS INTEGER ) + - 56 + - 99 + + 52 ) ) + 34
----
-2559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4600
SELECT DISTINCT - ( - + 91 ) * CASE - 89 WHEN + 93 * COUNT( * ) * + - ( - 11 ) + - AVG ( ALL + - 29 ) + + MAX( + 35 ) + ( 97 ) THEN - 58 + - CAST( NULL AS SIGNED ) ELSE NULL END * - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT - ( - + 91 ) * CASE - 89 WHEN + 93 * COUNT ( * ) * + - ( - 11 ) + - AVG ( ALL + - 29 ) + + MAX ( + 35 ) + ( 97 ) THEN - 58 + - CAST ( NULL AS INTEGER ) ELSE NULL END * - 52 AS col1
----
NULL

query II rowsort
SELECT ALL 50 - - 42 * + 84 AS col1, 30 + + + 69 * - + 15 AS col0
----
3578
-1005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4602
SELECT + 20 * + CASE + + 8 WHEN - 34 THEN NULL WHEN 9 THEN NULL ELSE - COUNT( * ) - ( COUNT( * ) ) * + 24 * - CAST( NULL AS SIGNED ) END - 22 + MAX( ALL 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT + 20 * + CASE + + 8 WHEN - 34 THEN NULL WHEN 9 THEN NULL ELSE - COUNT ( * ) - ( COUNT ( * ) ) * + 24 * - CAST ( NULL AS INTEGER ) END - 22 + MAX ( ALL 26 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4603
SELECT + COUNT( * ) * + - 85 + + - 3 AS col0, - 78 col0
----
-88
-78

skipif mysql # not compatible
query II rowsort label-4603
SELECT + COUNT ( * ) * + - 85 + + - 3 AS col0, - 78 col0
----
-88
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT - 76 * + NULLIF ( 54, + ( + NULLIF ( 28, + - 6 + + + 28 ) ) ) * - - ( - + 64 ) + 12 - + + ( NULLIF ( + + COUNT( * ), COALESCE ( 57, + 72, - 19 ) ) ) + + - 74 * + - 49 AS col1
----
266293

skipif mysql # not compatible
query I rowsort label-4604
SELECT - 76 * + NULLIF ( 54, + ( + NULLIF ( 28, + - 6 + + + 28 ) ) ) * - - ( - + 64 ) + 12 - + + ( NULLIF ( + + COUNT ( * ), COALESCE ( 57, + 72, - 19 ) ) ) + + - 74 * + - 49 AS col1
----
266293

query I rowsort
SELECT ALL - NULLIF ( 32, 2 + 14 + + 19 + + 20 + - - 63 + + - 99 - - AVG ( - 48 ) * - 55 + + 89 )
----
-32

query I rowsort
SELECT + ( + + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - MAX( ALL 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4607
SELECT - MAX ( ALL 43 )
----
-43

query I rowsort
SELECT - 95 + - + NULLIF ( + 21, - 44 ) + - 87 + + 12
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT - SUM( ALL - + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT - SUM ( ALL - + 70 ) AS col1
----
70

query I rowsort
SELECT 6 + + + 42 AS col1
----
48

query I rowsort
SELECT ALL + 49 AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT DISTINCT CAST( + - 72 AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT CAST ( + - 72 AS INTEGER ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL + SUM( ALL 92 ) * - COUNT( + 28 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + SUM ( ALL 92 ) * - COUNT ( + 28 ) AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT + CAST( NULL AS SIGNED ) - - + MAX( ALL NULLIF ( 28, + 56 ) ) + - + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT + CAST ( NULL AS INTEGER ) - - + MAX ( ALL NULLIF ( 28, + 56 ) ) + - + 77 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 56 * - - 59 + 57 * + - 10 AS col2
----
-3874

query I rowsort
SELECT 48 * 42
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL 38 + ( - SUM( DISTINCT - 94 ) )
----
132

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL 38 + ( - SUM ( DISTINCT - 94 ) )
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT ALL 90 + CAST( - - 55 AS SIGNED ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL 90 + CAST ( - - 55 AS INTEGER ) AS col0
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4619
SELECT 74 + + COUNT( * ) col0, - CAST( NULL AS SIGNED ) AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-4619
SELECT 74 + + COUNT ( * ) col0, - CAST ( NULL AS INTEGER ) AS col2
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL 2 + - 87 + 23 * + 67 * + 43 * - + MAX( DISTINCT - + 93 )
----
6162374

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL 2 + - 87 + 23 * + 67 * + 43 * - + MAX ( DISTINCT - + 93 )
----
6162374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT CAST( + - 5 AS SIGNED ) + - + 30 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4621
SELECT CAST ( + - 5 AS INTEGER ) + - + 30 AS col0
----
-35

query I rowsort
SELECT ALL 78 + - - 2 AS col1
----
80

query I rowsort
SELECT - 97 col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4625
SELECT 73 * 89 DIV + COUNT( * ) AS col1
----
6497

skipif mysql # not compatible
query I rowsort label-4625
SELECT 73 * 89 / + COUNT ( * ) AS col1
----
6497

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT 9 + - + SUM( + ( - 70 ) )
----
79

skipif mysql # not compatible
query I rowsort label-4626
SELECT 9 + - + SUM ( + ( - 70 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT 65 + COUNT( * ) + - 62 * + 37
----
-2228

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT 65 + COUNT ( * ) + - 62 * + 37
----
-2228

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL COUNT( * ) + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL COUNT ( * ) + - 5
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT SUM( ALL 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4629
SELECT SUM ( ALL 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT 28 + - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4630
SELECT 28 + - COUNT ( * ) AS col2
----
27

query I rowsort
SELECT 99 * + 38 col1
----
3762

query I rowsort
SELECT DISTINCT 29 * + - ( + 47 ) AS col0
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL MAX( - - 79 ) - 60 * + 82
----
-4841

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL MAX ( - - 79 ) - 60 * + 82
----
-4841

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - 65 * 1 * COUNT( * ) * + COUNT( * ) + 29
----
-36

skipif mysql # not compatible
query I rowsort label-4634
SELECT - 65 * 1 * COUNT ( * ) * + COUNT ( * ) + 29
----
-36

query I rowsort
SELECT DISTINCT - + 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - MAX( ALL 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - MAX ( ALL 70 ) AS col0
----
-70

query II rowsort
SELECT + 90 * - + 54, - 29 AS col0
----
-4860
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4638
SELECT ALL + 14 - 36, 15 DIV COUNT( * ) + + 11 + - 76 AS col0
----
-22
-50

skipif mysql # not compatible
query II rowsort label-4638
SELECT ALL + 14 - 36, 15 / COUNT ( * ) + + 11 + - 76 AS col0
----
-22
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT 3 + + COUNT( * ) AS col1, 66 + 12 AS col0
----
4
78

skipif mysql # not compatible
query II rowsort label-4639
SELECT 3 + + COUNT ( * ) AS col1, 66 + 12 AS col0
----
4
78

query I rowsort
SELECT DISTINCT - - 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - 57 * SUM( + + 48 ) * + + 2 AS col2
----
-5472

skipif mysql # not compatible
query I rowsort label-4641
SELECT - 57 * SUM ( + + 48 ) * + + 2 AS col2
----
-5472

query II rowsort
SELECT ALL + 54 - 72 col1, 37 - + 79
----
-18
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT - 96 DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - 96 / - + 99
----
0

query I rowsort
SELECT ( + 34 )
----
34

query I rowsort
SELECT ALL + 62 * COALESCE ( + + 63, + - COALESCE ( - + 67, - + 85 * - - 96 ) ) + 56
----
3962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT + 93 * - + COALESCE ( + CAST( NULL AS SIGNED ), - - 89, - 7 + + - 15 )
----
-8277

skipif mysql # not compatible
query I rowsort label-4646
SELECT + 93 * - + COALESCE ( + CAST ( NULL AS INTEGER ), - - 89, - 7 + + - 15 )
----
-8277

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL - - COUNT( 3 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - - COUNT ( 3 ) col2
----
1

query I rowsort
SELECT + + CASE - ( + 58 ) WHEN 81 THEN + 88 * - 12 END
----
NULL

query I rowsort
SELECT DISTINCT - - 85 col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4650
SELECT + - 45 * + 93 + + 3 + - + 67, + ( NULLIF ( - ( ( - NULLIF ( 17, 87 * - 64 ) ) ), COUNT( * ) ) ) AS col1
----
-4249
17

skipif mysql # not compatible
query II rowsort label-4650
SELECT + - 45 * + 93 + + 3 + - + 67, + ( NULLIF ( - ( ( - NULLIF ( 17, 87 * - 64 ) ) ), COUNT ( * ) ) ) AS col1
----
-4249
17

query I rowsort
SELECT ALL - - 48 * + - 86
----
-4128

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT 54 * - NULLIF ( + + 92, - - AVG ( DISTINCT - 32 ) + - 74 ) + - - 69 - + 51 DIV 43 + + NULLIF ( - 57, 43 + - 60 - 39 ) AS col2
----
-4957

skipif mysql # not compatible
query I rowsort label-4652
SELECT 54 * - NULLIF ( + + 92, - - AVG ( DISTINCT - 32 ) + - 74 ) + - - 69 - + 51 / 43 + + NULLIF ( - 57, 43 + - 60 - 39 ) AS col2
----
-4957

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL + + 35 + + MIN( - 21 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + + 35 + + MIN ( - 21 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL NULLIF ( COUNT( * ), - ( 59 ) + 5 + - 6 * COUNT( * ) * + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL NULLIF ( COUNT ( * ), - ( 59 ) + 5 + - 6 * COUNT ( * ) * + - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT DISTINCT CASE + 25 WHEN - COUNT( * ) * + COUNT( * ) + 54 THEN - - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT CASE + 25 WHEN - COUNT ( * ) * + COUNT ( * ) + 54 THEN - - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT 0 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4656
SELECT 0 + - + COUNT ( * )
----
-1

query I rowsort
SELECT 39 col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL + 64 + - + 90 + - + CAST( - 0 AS SIGNED ) * + - 49
----
-26

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL + 64 + - + 90 + - + CAST ( - 0 AS INTEGER ) * + - 49
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4659
SELECT ALL 84 + + SUM( ALL - - 77 ) + - 20 * + + MIN( - 34 ) * - CAST( NULL AS SIGNED ) * + 4 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL 84 + + SUM ( ALL - - 77 ) + - 20 * + + MIN ( - 34 ) * - CAST ( NULL AS INTEGER ) * + 4 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 6, 59 * 42 / 14 * - + 35 ) AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT ALL + 38 + 92 DIV + ( + 84 )
----
39

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + 38 + 92 / + ( + 84 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4662
SELECT - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4662
SELECT - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4663
SELECT + 42 * COUNT( * ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT + 42 * COUNT ( * ) / - 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4664
SELECT ALL 48 + - - CASE + - CAST( COUNT( * ) AS SIGNED ) WHEN + 96 + + CAST( - 76 AS SIGNED ) * + 93 THEN 98 ELSE - 26 DIV - 42 + - 69 END
----
-21

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL 48 + - - CASE + - CAST ( COUNT ( * ) AS INTEGER ) WHEN + 96 + + CAST ( - 76 AS INTEGER ) * + 93 THEN 98 ELSE - 26 / - 42 + - 69 END
----
-21

query I rowsort
SELECT - 13 + + + 50
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4666
SELECT DISTINCT MIN( ALL + 22 ) * + CAST( NULL AS DECIMAL ) + CAST( - 27 AS SIGNED ) + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT MIN ( ALL + 22 ) * + CAST ( NULL AS REAL ) + CAST ( - 27 AS INTEGER ) + - 85 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4667
SELECT - CASE + + 39 WHEN - 15 / COUNT( * ) * 12 * + CAST( 56 AS SIGNED ) / - 97 * + 29 + - NULLIF ( + 87, + + 68 * - 96 ) THEN 39 + - - 53 - - 68 * - - 66 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT - CASE + + 39 WHEN - 15 / COUNT ( * ) * 12 * + CAST ( 56 AS INTEGER ) / - 97 * + 29 + - NULLIF ( + 87, + + 68 * - 96 ) THEN 39 + - - 53 - - 68 * - - 66 END AS col2
----
NULL

query I rowsort
SELECT + ( + 70 ) - 82 * - + 40 AS col2
----
3350

query I rowsort
SELECT ALL 14 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL - COUNT( * ) - - 57 - 74 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL - COUNT ( * ) - - 57 - 74 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4671
SELECT + 59 + - + 19 + - + 34 * - COUNT( * ) / + + 30 * - 15 * - 25 * + CAST( NULL AS DECIMAL ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT + 59 + - + 19 + - + 34 * - COUNT ( * ) / + + 30 * - 15 * - 25 * + CAST ( NULL AS REAL ) * + 46
----
NULL

query I rowsort
SELECT ALL + 6 * - 79 - - 90 - - 62 col2
----
-322

query I rowsort
SELECT + 76 * + + 39 AS col2
----
2964

query I rowsort
SELECT + 88 * 26 - 94
----
2194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4675
SELECT DISTINCT + ( 74 ) DIV + 91 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + ( 74 ) / + 91 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - 5 * COUNT( DISTINCT - + 52 ) * - - 38 + - + 21 AS col0
----
-211

skipif mysql # not compatible
query I rowsort label-4676
SELECT - 5 * COUNT ( DISTINCT - + 52 ) * - - 38 + - + 21 AS col0
----
-211

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT ALL 71 DIV + - 36
----
-1

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL 71 / + - 36
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4678
SELECT + COUNT( * ) DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT + COUNT ( * ) / + - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - 15 + - - COUNT( * ) - 8 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 15 + - - COUNT ( * ) - 8 AS col1
----
-22

query I rowsort
SELECT ALL + 76 AS col0
----
76

query I rowsort
SELECT - - 72 * + 74 AS col0
----
5328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT ALL - 66 * - - NULLIF ( - COUNT( * ), + + CAST( - 80 AS SIGNED ) ) + + - 25 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - 66 * - - NULLIF ( - COUNT ( * ), + + CAST ( - 80 AS INTEGER ) ) + + - 25 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - + 49 / CASE - - NULLIF ( - 5, - 53 ) WHEN COUNT( * ) + - 3 * 68 THEN - COUNT( * ) END * + 76 + + COUNT( * ) * - - MIN( - 39 ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT - + 49 / CASE - - NULLIF ( - 5, - 53 ) WHEN COUNT ( * ) + - 3 * 68 THEN - COUNT ( * ) END * + 76 + + COUNT ( * ) * - - MIN ( - 39 ) * - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + + COUNT ( * ) AS col2
----
1

query II rowsort
SELECT + 74 col2, 57 + - 60
----
74
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4687
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-4687
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, 22
----
NULL
22

query I rowsort
SELECT DISTINCT + - 56 AS col1
----
-56

query I rowsort
SELECT DISTINCT 75 * + + 10 + + + 12 * - COALESCE ( + 29, 69 - + 20 * - + 25, - 81 ) + 78
----
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT ALL + NULLIF ( + 98, + COALESCE ( + - 29, - ( 37 ), + 14 + + + 35 + - 59 ) * - CAST( + 79 AS SIGNED ) * - CASE + 20 WHEN - 87 THEN NULL WHEN + 14 THEN + - 0 * 53 * - + ( - COUNT( * ) ) END + + 50 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL + NULLIF ( + 98, + COALESCE ( + - 29, - ( 37 ), + 14 + + + 35 + - 59 ) * - CAST ( + 79 AS INTEGER ) * - CASE + 20 WHEN - 87 THEN NULL WHEN + 14 THEN + - 0 * 53 * - + ( - COUNT ( * ) ) END + + 50 ) AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4691
SELECT + 75 AS col0, + 32 DIV + COUNT( + 38 ) - + 14
----
75
18

skipif mysql # not compatible
query II rowsort label-4691
SELECT + 75 AS col0, + 32 / + COUNT ( + 38 ) - + 14
----
75
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT ALL 8 * - 73 * + COUNT( * ) + 40 AS col0
----
-544

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL 8 * - 73 * + COUNT ( * ) + 40 AS col0
----
-544

query II rowsort
SELECT + 24 col1, 54 * + - 93 AS col2
----
24
-5022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT CAST( + 41 AS SIGNED ) * - + 50 * + ( + - 64 ) + 57 AS col2
----
131257

skipif mysql # not compatible
query I rowsort label-4694
SELECT CAST ( + 41 AS INTEGER ) * - + 50 * + ( + - 64 ) + 57 AS col2
----
131257

query I rowsort
SELECT ALL 96 * - 99 + + 54
----
-9450

query I rowsort
SELECT ALL 9 * + 0 + + 9
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT ALL + NULLIF ( - 3, + 23 + NULLIF ( 47, - 54 ) ) + 88 DIV + + 32
----
-1

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + NULLIF ( - 3, + 23 + NULLIF ( 47, - 54 ) ) + 88 / + + 32
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4698
SELECT - CAST( + 21 AS SIGNED ) * 53 + + CAST( NULL AS DECIMAL ) AS col1, 61 AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4698
SELECT - CAST ( + 21 AS INTEGER ) * 53 + + CAST ( NULL AS REAL ) AS col1, 61 AS col0
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT + 51 + + + COUNT( * ) * + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + 51 + + + COUNT ( * ) * + COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL + 33 - + COUNT( + - 63 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + 33 - + COUNT ( + - 63 ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT - CAST( - - 28 AS SIGNED ) * + ( 45 ) + + COALESCE ( + + 28, - + COUNT( * ) )
----
-1232

skipif mysql # not compatible
query I rowsort label-4701
SELECT - CAST ( - - 28 AS INTEGER ) * + ( 45 ) + + COALESCE ( + + 28, - + COUNT ( * ) )
----
-1232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4702
SELECT - NULLIF ( ( 30 ), + COUNT( * ) + - + 88 + + - CAST( - + 79 AS DECIMAL ) - CASE CAST( - + 96 AS SIGNED ) WHEN + + SUM( DISTINCT + 45 ) / 65 * - 16 * + 22 - 12 THEN - + 92 / 42 / - 55 ELSE NULL END + - + 49 * + 43 + - 66 * 32 / - - 79 ) + - SUM( CAST( NULL AS SIGNED ) ) / - - 81 AS col0, + 29 AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-4702
SELECT - NULLIF ( ( 30 ), + COUNT ( * ) + - + 88 + + - CAST ( - + 79 AS REAL ) - CASE CAST ( - + 96 AS INTEGER ) WHEN + + SUM ( DISTINCT + 45 ) / 65 * - 16 * + 22 - 12 THEN - + 92 / 42 / - 55 ELSE NULL END + - + 49 * + 43 + - 66 * 32 / - - 79 ) + - SUM ( CAST ( NULL AS INTEGER ) ) / - - 81 AS col0, + 29 AS col2
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT - MAX( - NULLIF ( 70, 76 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4703
SELECT - MAX ( - NULLIF ( 70, 76 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - 7 + + COALESCE ( + 30, ( SUM( DISTINCT + + 26 ) ) ) * + NULLIF ( + 34, 99 - 1 + + + 28 )
----
1013

skipif mysql # not compatible
query I rowsort label-4704
SELECT - 7 + + COALESCE ( + 30, ( SUM ( DISTINCT + + 26 ) ) ) * + NULLIF ( + 34, 99 - 1 + + + 28 )
----
1013

query II rowsort
SELECT ALL NULLIF ( - + 6, + 79 * + 94 ) AS col1, 82
----
-6
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT ALL CAST( + 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL CAST ( + 85 AS INTEGER )
----
85

query I rowsort
SELECT - 83 + + + 46 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL + COUNT( - + 39 ) - + - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + COUNT ( - + 39 ) - + - COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4709
SELECT DISTINCT ( 79 ) col0, CAST( NULL AS SIGNED ) AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-4709
SELECT DISTINCT ( 79 ) col0, CAST ( NULL AS INTEGER ) AS col1
----
79
NULL

query I rowsort
SELECT DISTINCT ( - 19 ) AS col2
----
-19

query I rowsort
SELECT ALL 15 col0
----
15

query I rowsort
SELECT ALL ( - 72 ) AS col1
----
-72

query II rowsort
SELECT DISTINCT 18 col1, + 44 col1
----
18
44

query I rowsort
SELECT - 64 * + 4 AS col0
----
-256

query I rowsort
SELECT DISTINCT + + 11 * NULLIF ( 8, - 67 * - CASE 86 WHEN - 11 * + 2 * - 38 * 57 - - 74 THEN - 34 * 53 END )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL COUNT( DISTINCT - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL COUNT ( DISTINCT - 80 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4717
SELECT DISTINCT + 29 * - 73 + - MAX( DISTINCT 57 ) DIV - CAST( + ( + 82 ) AS SIGNED ) * 96 AS col2
----
-2117

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + 29 * - 73 + - MAX ( DISTINCT 57 ) / - CAST ( + ( + 82 ) AS INTEGER ) * 96 AS col2
----
-2117

query I rowsort
SELECT - 30 * + 72 + - 27 AS col1
----
-2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT + 99 + + COALESCE ( + 97, - COUNT( * ) + 25 - + + CAST( NULL AS SIGNED ) + + - 77 * - 60 * + 53 ) + + - COUNT( * ) * - 67 - - 92 AS col1
----
355

skipif mysql # not compatible
query I rowsort label-4719
SELECT + 99 + + COALESCE ( + 97, - COUNT ( * ) + 25 - + + CAST ( NULL AS INTEGER ) + + - 77 * - 60 * + 53 ) + + - COUNT ( * ) * - 67 - - 92 AS col1
----
355

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT + + 1 DIV - 58 * + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT + + 1 / - 58 * + 37 AS col1
----
0

query I rowsort
SELECT ALL + ( + 43 ) * + 64 AS col2
----
2752

query II rowsort
SELECT 75 AS col0, - 7
----
75
-7

query I rowsort
SELECT + 61 + 4 AS col2
----
65

query I rowsort
SELECT ALL + - 69 * + 77 AS col2
----
-5313

query I rowsort
SELECT ALL + - NULLIF ( - 87, + 90 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT + 75 DIV COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 75 / COUNT ( * )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT ALL + 59 DIV + 42 + ( + 52 ) + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL + 59 / + 42 + ( + 52 ) + - COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4728
SELECT ALL + 14, COUNT( * ) * - COUNT( * ) + 88 - 20 DIV + 35 AS col0
----
14
87

skipif mysql # not compatible
query II rowsort label-4728
SELECT ALL + 14, COUNT ( * ) * - COUNT ( * ) + 88 - 20 / + 35 AS col0
----
14
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT DISTINCT - 13 DIV - 70 * - 6 * + 75 * + + 77 DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT - 13 / - 70 * - 6 * + 75 * + + 77 / 57 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4730
SELECT - - SUM( DISTINCT - 97 ) DIV + 72
----
-1

skipif mysql # not compatible
query I rowsort label-4730
SELECT - - SUM ( DISTINCT - 97 ) / + 72
----
-1

query I rowsort
SELECT + - 74 + - 68
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT + CASE + 37 WHEN - - 7 THEN - 97 / 33 + + + SUM( + 52 ) WHEN COUNT( * ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT + CASE + 37 WHEN - - 7 THEN - 97 / 33 + + + SUM ( + 52 ) WHEN COUNT ( * ) THEN NULL END col1
----
NULL

query I rowsort
SELECT + - ( + 93 ) * - + 35 + 63
----
3318

query II rowsort
SELECT - 4 AS col2, - 1 col2
----
-4
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4735
SELECT ALL - 58 DIV - 38 + NULLIF ( - COUNT( * ), + CASE + 81 WHEN 63 THEN + - 41 ELSE NULL END ) DIV + - NULLIF ( ( + 25 ), + COALESCE ( - - COUNT( * ), 50 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - 58 / - 38 + NULLIF ( - COUNT ( * ), + CASE + 81 WHEN 63 THEN + - 41 ELSE NULL END ) / + - NULLIF ( ( + 25 ), + COALESCE ( - - COUNT ( * ), 50 ) )
----
1

query I rowsort
SELECT 60 * - + 86 - + 15
----
-5175

query I rowsort
SELECT DISTINCT 20 * + 48
----
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4738
SELECT CAST( - 57 AS SIGNED ) * - 74 - - 68 + - COUNT( * ) * - - 12 + + - 93 DIV 16 col2
----
4269

skipif mysql # not compatible
query I rowsort label-4738
SELECT CAST ( - 57 AS INTEGER ) * - 74 - - 68 + - COUNT ( * ) * - - 12 + + - 93 / 16 col2
----
4269

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL 49 - + MAX( + ( + 25 ) )
----
24

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL 49 - + MAX ( + ( + 25 ) )
----
24

query I rowsort
SELECT DISTINCT 41 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT + 29 / + NULLIF ( AVG ( DISTINCT - 1 ), - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + 29 / + NULLIF ( AVG ( DISTINCT - 1 ), - + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 52 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT ALL - CAST( NULL AS SIGNED ) * 94 * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - CAST ( NULL AS INTEGER ) * 94 * + 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT DISTINCT 6 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT 6 / 64
----
0

query I rowsort
SELECT 24 * - + ( 6 ) col2
----
-144

query I rowsort
SELECT 27 * 48
----
1296

query I rowsort
SELECT ALL + 39 * - 20 AS col0
----
-780

query I rowsort
SELECT 14 * 55 AS col2
----
770

query I rowsort
SELECT 17 + + 29 * 54 AS col2
----
1583

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + MAX( DISTINCT + + 76 ) + 55
----
131

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + MAX ( DISTINCT + + 76 ) + 55
----
131

query I rowsort
SELECT - 37 + 42 + + - 31 + + 9
----
-17

query II rowsort
SELECT 49 + + + 20 * 24 AS col0, - 91 * - 62 * + 89
----
529
502138

query I rowsort
SELECT 96 + - ( - ( + 93 ) ) AS col2
----
189

query I rowsort
SELECT ALL + - 42 + + 17 * - 82
----
-1436

query I rowsort
SELECT ALL - 84 + 35
----
-49

query I rowsort
SELECT + + ( - - 43 )
----
43

query I rowsort
SELECT ALL - + 41 * - 14 + + 7 * - + 26 AS col1
----
392

query I rowsort
SELECT DISTINCT - 77 col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL - CAST( NULL AS SIGNED ) + - CASE + 11 WHEN - 24 * + 81 THEN NULL ELSE - COUNT( * ) + + - CAST( NULL AS SIGNED ) END + + 24 / 25 * - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - CAST ( NULL AS INTEGER ) + - CASE + 11 WHEN - 24 * + 81 THEN NULL ELSE - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) END + + 24 / 25 * - 7 AS col1
----
NULL

query I rowsort
SELECT ALL - 39 AS col0
----
-39

query I rowsort
SELECT ALL - 79 * 9 AS col0
----
-711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4762
SELECT DISTINCT - MIN( + + 61 ), CAST( NULL AS SIGNED ) col0, - COUNT( * ) AS col1
----
-61
NULL
-1

skipif mysql # not compatible
query III rowsort label-4762
SELECT DISTINCT - MIN ( + + 61 ), CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col1
----
-61
NULL
-1

query I rowsort
SELECT ALL - - 19 AS col2
----
19

query I rowsort
SELECT + 94 col1
----
94

query II rowsort
SELECT ALL - 29 - + 35 AS col2, 93 + - 7 * + 95 + + + 2
----
-64
-570

query I rowsort
SELECT 93 * 24 AS col0
----
2232

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT ALL 61 DIV 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL 61 / 59 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT 99 DIV + 48 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4768
SELECT 99 / + 48 AS col1
----
2

query II rowsort
SELECT ALL - 38, + 11 * + 20 AS col1
----
-38
220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4770
SELECT MAX( - + 39 ) + + 6 DIV 91
----
-39

skipif mysql # not compatible
query I rowsort label-4770
SELECT MAX ( - + 39 ) + + 6 / 91
----
-39

query I rowsort
SELECT 12 + - ( - 2 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4772
SELECT ALL 8 DIV + 15 * + - ( + - CASE + + 10 WHEN - 74 THEN + + 48 + - - 67 ELSE + - 37 END )
----
0

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL 8 / + 15 * + - ( + - CASE + + 10 WHEN - 74 THEN + + 48 + - - 67 ELSE + - 37 END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT 83 * + ( - ( + COUNT( * ) ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4773
SELECT 83 * + ( - ( + COUNT ( * ) ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL 25 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL 25 * COUNT ( * )
----
25

query I rowsort
SELECT 89 + 9 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ( + MIN( + 65 ) ) + + SUM( ALL - + 68 ) + + - 30
----
-33

skipif mysql # not compatible
query I rowsort label-4776
SELECT ( + MIN ( + 65 ) ) + + SUM ( ALL - + 68 ) + + - 30
----
-33

query I rowsort
SELECT DISTINCT ( 21 ) * + 68
----
1428

query II rowsort
SELECT 43 * - 34 + - 37 AS col0, - 8 - - + 14 * - 52 + + + 86 * 21 * 88 AS col1
----
-1499
158192

query I rowsort
SELECT ALL 48 col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL 65 * COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL 65 * COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT - MAX( 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4781
SELECT - MAX ( 23 ) AS col2
----
-23

query I rowsort
SELECT DISTINCT 0 * - 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT ALL 58 AS col2, - 47 + + COUNT( * ) + + 88 AS col0
----
58
42

skipif mysql # not compatible
query II rowsort label-4783
SELECT ALL 58 AS col2, - 47 + + COUNT ( * ) + + 88 AS col0
----
58
42

query I rowsort
SELECT 8 * + 50 * - + 69 AS col2
----
-27600

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT 43 + + ( + COUNT( * ) ) + - 68
----
-24

skipif mysql # not compatible
query I rowsort label-4785
SELECT 43 + + ( + COUNT ( * ) ) + - 68
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT DISTINCT 53 + 24 * - 19 * 90 * + - COUNT( * ) - + 85 + + 6
----
41014

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT 53 + 24 * - 19 * 90 * + - COUNT ( * ) - + 85 + + 6
----
41014

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL ( COUNT( * ) ) + - NULLIF ( 76, + 19 + - - 71 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL ( COUNT ( * ) ) + - NULLIF ( 76, + 19 + - - 71 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4788
SELECT - 69 AS col1, - MIN( ALL - - 78 ) col0
----
-69
-78

skipif mysql # not compatible
query II rowsort label-4788
SELECT - 69 AS col1, - MIN ( ALL - - 78 ) col0
----
-69
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT 62 + 87 - - - COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-4789
SELECT 62 + 87 - - - COUNT ( * )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL - - CASE ( - 91 ) WHEN 76 * - - NULLIF ( - + COUNT( * ), + 37 + MAX( DISTINCT - - 25 ) / - 34 * + + 82 ) * + 2 + 45 - + ( 46 ) THEN + + 11 END + + + COUNT( * ) + - + 62 - - 3 * + - 36 * + ( - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - - CASE ( - 91 ) WHEN 76 * - - NULLIF ( - + COUNT ( * ), + 37 + MAX ( DISTINCT - - 25 ) / - 34 * + + 82 ) * + 2 + 45 - + ( 46 ) THEN + + 11 END + + + COUNT ( * ) + - + 62 - - 3 * + - 36 * + ( - 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT 72 + + 76 + + SUM( + 89 ) - + 60 - ( + 33 ) + 64 * 15 * 62 AS col1
----
59664

skipif mysql # not compatible
query I rowsort label-4791
SELECT 72 + + 76 + + SUM ( + 89 ) - + 60 - ( + 33 ) + 64 * 15 * 62 AS col1
----
59664

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL - SUM( DISTINCT + 1 ) * - COUNT( * ) * - 92
----
-92

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - SUM ( DISTINCT + 1 ) * - COUNT ( * ) * - 92
----
-92

query I rowsort
SELECT DISTINCT + 68 + 20
----
88

query I rowsort
SELECT - + ( + + 71 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT 64 / - 61 * NULLIF ( + - ( - CAST( NULL AS SIGNED ) ), + 55 * + 32 * - - 40 + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT 64 / - 61 * NULLIF ( + - ( - CAST ( NULL AS INTEGER ) ), + 55 * + 32 * - - 40 + 73 )
----
NULL

query I rowsort
SELECT ALL - 35 + - 46
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT 44 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT 44 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + SUM( - 25 ) + - COUNT( * ) * - 5 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4798
SELECT + SUM ( - 25 ) + - COUNT ( * ) * - 5 AS col1
----
-20

query I rowsort
SELECT ALL 26 * 99 - - 16 AS col0
----
2590

query I rowsort
SELECT DISTINCT + - 8 col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT DISTINCT + - 52, - COUNT( * ) + + COUNT( * ) AS col0
----
-52
0

skipif mysql # not compatible
query II rowsort label-4801
SELECT DISTINCT + - 52, - COUNT ( * ) + + COUNT ( * ) AS col0
----
-52
0

query II rowsort
SELECT + 23 AS col0, - 13 * - 89 AS col1
----
23
1157

query I rowsort
SELECT - + 73 * - 57
----
4161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4804
SELECT ALL - 47 * + 49 col1, 21 - + 96 - + 35 + - 66 * + COUNT( * ) * - ( - - 17 ) * - - ( + 82 ) - - 6 + + CAST( NULL AS SIGNED ) AS col2
----
-2303
NULL

skipif mysql # not compatible
query II rowsort label-4804
SELECT ALL - 47 * + 49 col1, 21 - + 96 - + 35 + - 66 * + COUNT ( * ) * - ( - - 17 ) * - - ( + 82 ) - - 6 + + CAST ( NULL AS INTEGER ) AS col2
----
-2303
NULL

query I rowsort
SELECT + 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT - COUNT( * ) * - - 69
----
-69

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT - COUNT ( * ) * - - 69
----
-69

query II rowsort
SELECT ALL + ( + 27 ), - 30 AS col0
----
27
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT ALL - NULLIF ( + 54, COUNT( * ) ) * + 94 AS col1, 97
----
-5076
97

skipif mysql # not compatible
query II rowsort label-4808
SELECT ALL - NULLIF ( + 54, COUNT ( * ) ) * + 94 AS col1, 97
----
-5076
97

query I rowsort
SELECT + 96 * 74 col1
----
7104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT - 27 * CAST( NULL AS SIGNED ) - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT - 27 * CAST ( NULL AS INTEGER ) - - 68
----
NULL

query I rowsort
SELECT ALL + 73 AS col1
----
73

query I rowsort
SELECT ALL + 82 AS col2
----
82

query I rowsort
SELECT - 60 * 54 AS col0
----
-3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT ALL SUM( ALL + 14 ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL SUM ( ALL + 14 ) / 42
----
0

query I rowsort
SELECT ALL + 69 AS col0
----
69

query II rowsort
SELECT + 30 * - 9 AS col0, ( - 33 )
----
-270
-33

query I rowsort
SELECT - 0 * - - 26
----
0

query I rowsort
SELECT + 6 * 25
----
150

query I rowsort
SELECT 76 * - 16 - + 21
----
-1237

query I rowsort
SELECT ALL 64 + 31 + + + 6 * - + 73
----
-343

query I rowsort
SELECT + 70 * 5 AS col2
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL - 39 + ( SUM( + + 7 ) ) * + 12
----
45

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL - 39 + ( SUM ( + + 7 ) ) * + 12
----
45

query I rowsort
SELECT ALL + 58 + + - 76
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + 85 + - - 6 * + + COUNT( * ) + + 78 AS col1
----
169

skipif mysql # not compatible
query I rowsort label-4824
SELECT + 85 + - - 6 * + + COUNT ( * ) + + 78 AS col1
----
169

query I rowsort
SELECT + 55 * + - 20
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL COUNT( * ) * + 80 * + + 73 + 43 * ( + + COUNT( * ) ) * - 64 * - 85 * + COUNT( * ) col2
----
239760

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL COUNT ( * ) * + 80 * + + 73 + 43 * ( + + COUNT ( * ) ) * - 64 * - 85 * + COUNT ( * ) col2
----
239760

query I rowsort
SELECT 37 col2
----
37

query I rowsort
SELECT + 99 + + - 50 AS col0
----
49

query I rowsort
SELECT - 33 col1
----
-33

query II rowsort
SELECT ALL 51 - + + 70 AS col2, 30 * - 29 AS col2
----
-19
-870

query I rowsort
SELECT + + 18 * - - 62 * - 60
----
-66960

query I rowsort
SELECT + - 43 + - - 49 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - - CASE - COUNT( * ) WHEN 37 + - - 49 THEN - + 96 WHEN 3 + - 79 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT - - CASE - COUNT ( * ) WHEN 37 + - - 49 THEN - + 96 WHEN 3 + - 79 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + + COUNT( DISTINCT 67 ) + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-4834
SELECT + + COUNT ( DISTINCT 67 ) + - 5
----
-4

query I rowsort
SELECT ALL + 62 - 44 + + - 6
----
12

query I rowsort
SELECT + - 93 + - 46
----
-139

query I rowsort
SELECT ALL + - 40 AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT - 90 DIV - 39 - + 75 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4838
SELECT - 90 / - 39 - + 75 AS col0
----
-73

query I rowsort
SELECT + 24 * + + 38 * - + 86 * + 90
----
-7058880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT + 14 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT + 14 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT - 96 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT - 96 / 97
----
0

query I rowsort
SELECT DISTINCT 55 * - 36 AS col2
----
-1980

query I rowsort
SELECT ( + + 81 ) col0
----
81

query I rowsort
SELECT ALL + 86 * - + 73 * - 75 + - 57 + 65 * 61 + + 14
----
474772

query I rowsort
SELECT ALL - 25 * + 11 + - 96 * + + 83 + + ( - 26 ) AS col1
----
-8269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4846
SELECT CASE - + 27 WHEN 43 THEN - CAST( NULL AS SIGNED ) - - + MAX( DISTINCT - 24 ) / 13 WHEN + 60 * COUNT( - COALESCE ( NULLIF ( + - 10, 30 ), - 41, 7 ) ) THEN NULL WHEN + 12 + 15 THEN NULL WHEN + + COUNT( * ) THEN + CAST( NULL AS DECIMAL ) END * MIN( DISTINCT 70 ) + + 48 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT CASE - + 27 WHEN 43 THEN - CAST ( NULL AS INTEGER ) - - + MAX ( DISTINCT - 24 ) / 13 WHEN + 60 * COUNT ( - COALESCE ( NULLIF ( + - 10, 30 ), - 41, 7 ) ) THEN NULL WHEN + 12 + 15 THEN NULL WHEN + + COUNT ( * ) THEN + CAST ( NULL AS REAL ) END * MIN ( DISTINCT 70 ) + + 48 + + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - 54 - MAX( - 42 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-4847
SELECT - 54 - MAX ( - 42 ) col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT + MAX( + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4848
SELECT + MAX ( + 41 ) AS col2
----
41

query I rowsort
SELECT ALL + ( + 85 )
----
85

query I rowsort
SELECT - 24 + + - 46
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT + MIN( + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4851
SELECT + MIN ( + 96 ) AS col0
----
96

query I rowsort
SELECT ALL - 9 * + + ( + 60 ) + + - 42
----
-582

query I rowsort
SELECT COALESCE ( - 21, - + 38 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT - COUNT( * ) * 48 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4854
SELECT - COUNT ( * ) * 48 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT ALL - CASE - + 79 WHEN + 71 + + 18 + + COALESCE ( - - 11, + ( - 79 ) * + + 40 * + SUM( DISTINCT + 16 ), + - 72 * - 77 / - NULLIF ( - MAX( 1 ), - CAST( NULL AS SIGNED ) ) * + - 17 * - 54 ) THEN + - CASE - + 32 WHEN 0 THEN NULL WHEN 18 + + 91 + - 82 + 37 * + 1 THEN - COUNT( * ) * + - 56 + COUNT( * ) ELSE NULL END END * + + 54 + 93 * + 18 * + + 88 * + 18 * CASE + COUNT( * ) WHEN - SUM( ALL + 47 ) * + 93 THEN + + 66 + - 72 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - CASE - + 79 WHEN + 71 + + 18 + + COALESCE ( - - 11, + ( - 79 ) * + + 40 * + SUM ( DISTINCT + 16 ), + - 72 * - 77 / - NULLIF ( - MAX ( 1 ), - CAST ( NULL AS INTEGER ) ) * + - 17 * - 54 ) THEN + - CASE - + 32 WHEN 0 THEN NULL WHEN 18 + + 91 + - 82 + 37 * + 1 THEN - COUNT ( * ) * + - 56 + COUNT ( * ) ELSE NULL END END * + + 54 + 93 * + 18 * + + 88 * + 18 * CASE + COUNT ( * ) WHEN - SUM ( ALL + 47 ) * + 93 THEN + + 66 + - 72 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT + 7, 95 + + 70 + - COUNT( * ) AS col0
----
7
164

skipif mysql # not compatible
query II rowsort label-4856
SELECT + 7, 95 + + 70 + - COUNT ( * ) AS col0
----
7
164

query I rowsort
SELECT - 90 * + 46 + + 52
----
-4088

query I rowsort
SELECT ALL + 82 * + 14 + - 8
----
1140

query I rowsort
SELECT DISTINCT ( - - 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - 46 + ( + ( - - 40 ) ) * - COUNT( * ) * - - 82 * - 11 col2
----
36034

skipif mysql # not compatible
query I rowsort label-4860
SELECT - 46 + ( + ( - - 40 ) ) * - COUNT ( * ) * - - 82 * - 11 col2
----
36034

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT DISTINCT + 29 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + 29 / - 95
----
0

query I rowsort
SELECT + 39 + + - 35 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4863
SELECT 33, COUNT( ALL 51 ) DIV + 64 AS col0
----
33
0

skipif mysql # not compatible
query II rowsort label-4863
SELECT 33, COUNT ( ALL 51 ) / + 64 AS col0
----
33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + 53 + + + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4864
SELECT + 53 + + + COUNT ( * ) AS col0
----
54

query I rowsort
SELECT ALL - + 22 - 98 AS col2
----
-120

query I rowsort
SELECT ALL - 52 - - - 80 col0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT + 5 / + 89 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + 5 / + 89 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT COUNT( * ) * - 59 * - + CAST( - 45 AS SIGNED )
----
-2655

skipif mysql # not compatible
query I rowsort label-4868
SELECT COUNT ( * ) * - 59 * - + CAST ( - 45 AS INTEGER )
----
-2655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4869
SELECT DISTINCT 45 * NULLIF ( + COUNT( * ), + + 59 * - 83 * + - 17 * 58 * - COUNT( * ) ), CAST( 95 AS SIGNED ) AS col2
----
45
95

skipif mysql # not compatible
query II rowsort label-4869
SELECT DISTINCT 45 * NULLIF ( + COUNT ( * ), + + 59 * - 83 * + - 17 * 58 * - COUNT ( * ) ), CAST ( 95 AS INTEGER ) AS col2
----
45
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL 58 * - COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL 58 * - COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT - 55 * 14
----
-770

query I rowsort
SELECT ALL 25 * 39
----
975

query I rowsort
SELECT + 21 * 83
----
1743

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT COUNT( 15 ) * - + 72 * + + 27 + - COUNT( DISTINCT 85 )
----
-1945

skipif mysql # not compatible
query I rowsort label-4874
SELECT COUNT ( 15 ) * - + 72 * + + 27 + - COUNT ( DISTINCT 85 )
----
-1945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT CAST( + 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-4875
SELECT CAST ( + 40 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4876
SELECT ALL + COALESCE ( 43, - 94 * COUNT( * ), 5 DIV 73 + + - COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + COALESCE ( 43, - 94 * COUNT ( * ), 5 / 73 + + - COUNT ( * ) )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT DISTINCT - COUNT( * ) AS col1, + 1 AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-4877
SELECT DISTINCT - COUNT ( * ) AS col1, + 1 AS col0
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4878
SELECT 99 + NULLIF ( + 5, CAST( - + MIN( + - 1 ) AS DECIMAL ) * - - 96 + - 76 )
----
104

skipif mysql # not compatible
query I rowsort label-4878
SELECT 99 + NULLIF ( + 5, CAST ( - + MIN ( + - 1 ) AS REAL ) * - - 96 + - 76 )
----
104

query II rowsort
SELECT + 74, - 3 + + - 38 AS col0
----
74
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT - COUNT( * ) * - + 65 + - ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT - COUNT ( * ) * - + 65 + - ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT + 28, 1 AS col1
----
28
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4882
SELECT ALL COALESCE ( + - 98, COUNT( * ) ) + - 96 AS col1, 39 * + - 78 * - 61
----
-194
185562

skipif mysql # not compatible
query II rowsort label-4882
SELECT ALL COALESCE ( + - 98, COUNT ( * ) ) + - 96 AS col1, 39 * + - 78 * - 61
----
-194
185562

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4883
SELECT COUNT ( * ) * COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT ALL CAST( + 73 AS SIGNED ) * - 54 AS col0
----
-3942

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL CAST ( + 73 AS INTEGER ) * - 54 AS col0
----
-3942

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + 81 * - 89 * + 52 + - + 86 + + 26 + 7 + - COUNT( * ) * + MIN( DISTINCT - 49 ) * - - 16 * 64 AS col0
----
-324745

skipif mysql # not compatible
query I rowsort label-4886
SELECT + 81 * - 89 * + 52 + - + 86 + + 26 + 7 + - COUNT ( * ) * + MIN ( DISTINCT - 49 ) * - - 16 * 64 AS col0
----
-324745

query II rowsort
SELECT 89 AS col1, + 87 - 58 AS col0
----
89
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL - COUNT( DISTINCT + - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - COUNT ( DISTINCT + - 22 )
----
-1

query I rowsort
SELECT COALESCE ( + - 74, 68 ) * + 58
----
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL COUNT( * ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL COUNT ( * ) + - 97
----
-96

query I rowsort
SELECT ALL - 13 + 50
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-4892
SELECT DISTINCT - 85 AS col2, + 13 DIV - - 14 * - + 99 * - 11
----
-85
0

skipif mysql # not compatible
query II rowsort label-4892
SELECT DISTINCT - 85 AS col2, + 13 / - - 14 * - + 99 * - 11
----
-85
0

query I rowsort
SELECT ALL + 49 + 93 - 23 * + 55 * - + 70 AS col2
----
88692

query I rowsort
SELECT 59 * - 19
----
-1121

query I rowsort
SELECT DISTINCT + 68 - + + 88
----
-20

query I rowsort
SELECT ALL + 56 - 20 * 70 AS col0
----
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT SUM( DISTINCT - 65 ) * + CAST( NULL AS SIGNED ) * - 56 + - - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT SUM ( DISTINCT - 65 ) * + CAST ( NULL AS INTEGER ) * - 56 + - - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - + COUNT( ALL 41 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4898
SELECT - + COUNT ( ALL 41 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT - ( - - ( 90 ) ) * - 56 - + + 60 - COUNT( * ) * - 89 * 3 * - + 28 AS col2
----
-2496

skipif mysql # not compatible
query I rowsort label-4899
SELECT - ( - - ( 90 ) ) * - 56 - + + 60 - COUNT ( * ) * - 89 * 3 * - + 28 AS col2
----
-2496

query I rowsort
SELECT ALL + 7 * 96 AS col2
----
672

query I rowsort
SELECT ALL + 95 - - + 48 * 2 col1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL MIN( ALL 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL MIN ( ALL 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4903
SELECT + ( - - 48 ) DIV - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4903
SELECT + ( - - 48 ) / - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT 98 + - 20 + - + 23 * + + 67 * 73 * + 68 - + COUNT( - 78 )
----
-7649447

skipif mysql # not compatible
query I rowsort label-4904
SELECT 98 + - 20 + - + 23 * + + 67 * 73 * + 68 - + COUNT ( - 78 )
----
-7649447

onlyif mysql # DIV for integer division: 
query II rowsort label-4905
SELECT + 97 + + + 42 col2, - 66 * + + 68 DIV - 17 + - - 2
----
139
266

skipif mysql # not compatible
query II rowsort label-4905
SELECT + 97 + + + 42 col2, - 66 * + + 68 / - 17 + - - 2
----
139
266

query I rowsort
SELECT 72 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT 18 / + + COALESCE ( + + ( - - 35 ), 75 - - - COUNT( * ) + + 5 / COUNT( * ) + - 11 + ( - 89 ) / - 41 ) * - COUNT( * ) * + CASE + - 50 WHEN - - 78 * + 13 + - COUNT( * ) THEN ( - COUNT( * ) ) * - CASE + 13 WHEN + COUNT( * ) THEN 16 END + - ( + 62 ) WHEN + COALESCE ( 28, + COUNT( * ), 37 ) * + - 52 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT 18 / + + COALESCE ( + + ( - - 35 ), 75 - - - COUNT ( * ) + + 5 / COUNT ( * ) + - 11 + ( - 89 ) / - 41 ) * - COUNT ( * ) * + CASE + - 50 WHEN - - 78 * + 13 + - COUNT ( * ) THEN ( - COUNT ( * ) ) * - CASE + 13 WHEN + COUNT ( * ) THEN 16 END + - ( + 62 ) WHEN + COALESCE ( 28, + COUNT ( * ), 37 ) * + - 52 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 19 + + 45
----
26

query II rowsort
SELECT ALL 63, - 94 * + 62 * + - ( - 31 ) AS col0
----
63
-180668

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL + 30 + + - COUNT( + ( + - 39 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + 30 + + - COUNT ( + ( + - 39 ) ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT 67 + - 26 + + 28 * - COALESCE ( + COUNT( * ), - 65 ) * + 44 + + 92
----
-1099

skipif mysql # not compatible
query I rowsort label-4911
SELECT 67 + - 26 + + 28 * - COALESCE ( + COUNT ( * ), - 65 ) * + 44 + + 92
----
-1099

onlyif mysql # DIV for integer division: 
query I rowsort label-4912
SELECT ALL - 19 DIV - 82 * + 93 * - 96 * 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - 19 / - 82 * + 93 * - 96 * 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4913
SELECT COUNT ( * ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL ( - + COUNT( * ) ) * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL ( - + COUNT ( * ) ) * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL 31 + - 29 + + + MAX( + 37 ) + - - 2 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL 31 + - 29 + + + MAX ( + 37 ) + - - 2 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT DISTINCT - MIN( + - 19 ) * SUM( ALL + 7 ) + - + ( 25 )
----
108

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT - MIN ( + - 19 ) * SUM ( ALL + 7 ) + - + ( 25 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT COUNT( * ) * - 22 * + - 83 col0
----
1826

skipif mysql # not compatible
query I rowsort label-4917
SELECT COUNT ( * ) * - 22 * + - 83 col0
----
1826

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ( + COUNT( * ) ) * + 35 + + + 27 * - 39 * + - 33 * - 89 + + 13 col1
----
-3092613

skipif mysql # not compatible
query I rowsort label-4918
SELECT ( + COUNT ( * ) ) * + 35 + + + 27 * - 39 * + - 33 * - 89 + + 13 col1
----
-3092613

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT COUNT( * ) + + 26 * + 5 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-4919
SELECT COUNT ( * ) + + 26 * + 5 AS col0
----
131

query I rowsort
SELECT ALL - 82 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT MIN( ALL - 40 ), + COUNT( * ) + 56 AS col1
----
-40
57

skipif mysql # not compatible
query II rowsort label-4921
SELECT MIN ( ALL - 40 ), + COUNT ( * ) + 56 AS col1
----
-40
57

query I rowsort
SELECT - 39 * + ( 79 ) + - 43
----
-3124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4923
SELECT DISTINCT - COUNT( * ) * - - 80 + - + 19 DIV - 41 * - + 47 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - COUNT ( * ) * - - 80 + - + 19 / - 41 * - + 47 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT MIN( - + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4924
SELECT MIN ( - + 42 )
----
-42

query I rowsort
SELECT ALL 41 * + 27
----
1107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT ALL 53 DIV + ( - MAX( - ( - 69 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL 53 / + ( - MAX ( - ( - 69 ) ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT + SUM( + - 6 ) AS col0, - COUNT( ALL - 37 )
----
-6
-1

skipif mysql # not compatible
query II rowsort label-4927
SELECT + SUM ( + - 6 ) AS col0, - COUNT ( ALL - 37 )
----
-6
-1

query I rowsort
SELECT + 95 * - 59 - + 26 AS col0
----
-5631

onlyif mysql # aggregate syntax: 
query II rowsort label-4929
SELECT ALL 47 - - COALESCE ( - 26, + 51 ) + 44, 87 + 21 * 65 * - + COUNT( + 76 ) AS col1
----
65
-1278

skipif mysql # not compatible
query II rowsort label-4929
SELECT ALL 47 - - COALESCE ( - 26, + 51 ) + 44, 87 + 21 * 65 * - + COUNT ( + 76 ) AS col1
----
65
-1278

query I rowsort
SELECT 42 + + 74
----
116

query I rowsort
SELECT + - 64 AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT + 78 DIV 64 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4932
SELECT + 78 / 64 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - 59 * - COUNT( * ) + - - 17
----
76

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 59 * - COUNT ( * ) + - - 17
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT ALL 62 * + - COALESCE ( + NULLIF ( ( + - CAST( + 79 AS SIGNED ) ), + 56 ), - 94 ) AS col2
----
4898

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL 62 * + - COALESCE ( + NULLIF ( ( + - CAST ( + 79 AS INTEGER ) ), + 56 ), - 94 ) AS col2
----
4898

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + COUNT( * ) + - - 45 * + 59 * + + 66 AS col0
----
175231

skipif mysql # not compatible
query I rowsort label-4936
SELECT + COUNT ( * ) + - - 45 * + 59 * + + 66 AS col0
----
175231

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL - CASE + - 51 WHEN - - 92 THEN NULL WHEN - + COUNT( * ) THEN - + 67 WHEN + 70 + + + 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL - CASE + - 51 WHEN - - 92 THEN NULL WHEN - + COUNT ( * ) THEN - + 67 WHEN + 70 + + + 52 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - + 39 * + NULLIF ( + - COUNT( * ), - 84 / - - 44 * 46 + + + 20 * - 91 + - 13 ) + - + 11 * - 93 - 40 - - 25 + + 94 * - + 24
----
-1209

skipif mysql # not compatible
query I rowsort label-4938
SELECT - + 39 * + NULLIF ( + - COUNT ( * ), - 84 / - - 44 * 46 + + + 20 * - 91 + - 13 ) + - + 11 * - 93 - 40 - - 25 + + 94 * - + 24
----
-1209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT - CAST( ( + ( + - 86 ) ) AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT - CAST ( ( + ( + - 86 ) ) AS INTEGER ) AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT ALL ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 64 + + - 27 AS col0
----
37

query II rowsort
SELECT - + 89 + + 86 + 74 * ( + 0 ) AS col0, - 8 * 69 AS col1
----
-3
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - - COUNT( * ) + - 11 * + 76 AS col1
----
-835

skipif mysql # not compatible
query I rowsort label-4943
SELECT - - COUNT ( * ) + - 11 * + 76 AS col1
----
-835

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - 64 + + - MIN( 51 ) * + 39 * - ( + + 64 ) AS col2
----
127232

skipif mysql # not compatible
query I rowsort label-4944
SELECT - 64 + + - MIN ( 51 ) * + 39 * - ( + + 64 ) AS col2
----
127232

query I rowsort
SELECT - + 36
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4946
SELECT ALL + COUNT( 14 ), 56 AS col0
----
1
56

skipif mysql # not compatible
query II rowsort label-4946
SELECT ALL + COUNT ( 14 ), 56 AS col0
----
1
56

query I rowsort
SELECT ALL + 69 col2
----
69

query I rowsort
SELECT - - 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL - COUNT( + 94 ) + - COUNT( * ) - - 3 + - + 18
----
-17

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - COUNT ( + 94 ) + - COUNT ( * ) - - 3 + - + 18
----
-17

query I rowsort
SELECT ALL + 30 + - 15 * 94
----
-1380

query II rowsort
SELECT 33 AS col1, 51 - 41 + - ( - 77 ) * + - 46 AS col1
----
33
-3532

query I rowsort
SELECT - 13 * + 20
----
-260

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4953
SELECT ALL COALESCE ( + CAST( - AVG ( - + ( + 13 ) ) AS SIGNED ), - 89 DIV - 58 )
----
13

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL COALESCE ( + CAST ( - AVG ( - + ( + 13 ) ) AS INTEGER ), - 89 / - 58 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL ( - NULLIF ( - ( + + 40 ), + 86 / - COUNT( * ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL ( - NULLIF ( - ( + + 40 ), + 86 / - COUNT ( * ) ) )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4955
SELECT DISTINCT + 12 + + 58 + 91 * + CASE - COUNT( * ) WHEN - + 47 THEN 82 ELSE 18 * + 9 END * - 55 + + + 53 - - COUNT( * ) * - + 29 + + 66 DIV + 59 AS col2
----
-810715

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + 12 + + 58 + 91 * + CASE - COUNT ( * ) WHEN - + 47 THEN 82 ELSE 18 * + 9 END * - 55 + + + 53 - - COUNT ( * ) * - + 29 + + 66 / + 59 AS col2
----
-810715

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT - MAX( - 84 ) * + 19 AS col2, COUNT( * ) AS col2
----
1596
1

skipif mysql # not compatible
query II rowsort label-4956
SELECT - MAX ( - 84 ) * + 19 AS col2, COUNT ( * ) AS col2
----
1596
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT DISTINCT - 40 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT - 40 / + 83
----
0

query II rowsort
SELECT ALL + 17, 7 AS col2
----
17
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + MIN( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-4959
SELECT + MIN ( - 55 )
----
-55

query I rowsort
SELECT DISTINCT - 67 * - 58 AS col0
----
3886

query I rowsort
SELECT + NULLIF ( 75, + + 17 ) + + 16 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - 88 * - NULLIF ( + CASE + 54 WHEN 18 / - 16 THEN 52 + ( + 12 ) ELSE - 90 * - 34 END, + 18 * - - 95 + + 68 + NULLIF ( COUNT( * ), - 75 * + COUNT( * ) + - 86 * - 44 ) ) AS col1
----
269280

skipif mysql # not compatible
query I rowsort label-4962
SELECT - 88 * - NULLIF ( + CASE + 54 WHEN 18 / - 16 THEN 52 + ( + 12 ) ELSE - 90 * - 34 END, + 18 * - - 95 + + 68 + NULLIF ( COUNT ( * ), - 75 * + COUNT ( * ) + - 86 * - 44 ) ) AS col1
----
269280

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT + ( + + COALESCE ( - + 66, - + 25 * - - COUNT( * ) * SUM( - 50 ) * + + 6 + - 13 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-4963
SELECT + ( + + COALESCE ( - + 66, - + 25 * - - COUNT ( * ) * SUM ( - 50 ) * + + 6 + - 13 ) )
----
-66

query I rowsort
SELECT ALL + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT + COUNT( * ) AS col1, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4965
SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT DISTINCT - COUNT( * ) * 76 + 74 - + + 93 + 16 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT - COUNT ( * ) * 76 + 74 - + + 93 + 16 AS col1
----
-79

query II rowsort
SELECT ALL + + 2 AS col1, 78 + - 43
----
2
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4968
SELECT + 46, CAST( - + 5 AS SIGNED ) AS col2
----
46
-5

skipif mysql # not compatible
query II rowsort label-4968
SELECT + 46, CAST ( - + 5 AS INTEGER ) AS col2
----
46
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4969
SELECT DISTINCT + - CAST( 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT + - CAST ( 87 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL - 73 * 30 * + 1 * - COALESCE ( - CASE 1 WHEN + MAX( ALL + - 43 ) THEN - 31 * - + 29 * + 86 ELSE NULL END, - 71 ) AS col0
----
-155490

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - 73 * 30 * + 1 * - COALESCE ( - CASE 1 WHEN + MAX ( ALL + - 43 ) THEN - 31 * - + 29 * + 86 ELSE NULL END, - 71 ) AS col0
----
-155490

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT COUNT( * ) * + + 62 - - 48 * ( + 54 ) + - + 22 * - - 34 + + - 22 + - 70
----
1814

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT COUNT ( * ) * + + 62 - - 48 * ( + 54 ) + - + 22 * - - 34 + + - 22 + - 70
----
1814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT + 52 * COALESCE ( + 28, - + 39 + CAST( NULL AS SIGNED ) ) AS col0
----
1456

skipif mysql # not compatible
query I rowsort label-4972
SELECT + 52 * COALESCE ( + 28, - + 39 + CAST ( NULL AS INTEGER ) ) AS col0
----
1456

onlyif mysql # aggregate syntax: 
query II rowsort label-4973
SELECT 27 AS col1, + COUNT( * )
----
27
1

skipif mysql # not compatible
query II rowsort label-4973
SELECT 27 AS col1, + COUNT ( * )
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - NULLIF ( - - COUNT( * ), 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4974
SELECT - NULLIF ( - - COUNT ( * ), 26 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT + 79 DIV + - 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4975
SELECT + 79 / + - 45 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4976
SELECT - 48 DIV + + MIN( ALL + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT - 48 / + + MIN ( ALL + 71 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL + COUNT( * ) * + 31 + + 59 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL + COUNT ( * ) * + 31 + + 59 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + - 83 - + + 8 + + SUM( DISTINCT + 0 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4978
SELECT + - 83 - + + 8 + + SUM ( DISTINCT + 0 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT SUM( 59 ) + + + 23 + - 13
----
69

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT SUM ( 59 ) + + + 23 + - 13
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT DISTINCT + CASE - - CASE + + COUNT( - 29 ) WHEN - + COALESCE ( - 55, + + 73 ) / - 70 + 40 + NULLIF ( + ( + + 26 ), 93 / + COUNT( * ) ) * + 29 + + ( + 76 ) - - COUNT( ALL + + ( - 97 ) ) THEN - 25 + + 32 * + 42 + ( - CAST( + MAX( DISTINCT + 81 ) AS SIGNED ) ) + - COUNT( * ) / - 0 - + 20 WHEN 41 THEN NULL ELSE NULL END WHEN + 66 * + 20 THEN 99 END + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT + CASE - - CASE + + COUNT ( - 29 ) WHEN - + COALESCE ( - 55, + + 73 ) / - 70 + 40 + NULLIF ( + ( + + 26 ), 93 / + COUNT ( * ) ) * + 29 + + ( + 76 ) - - COUNT ( ALL + + ( - 97 ) ) THEN - 25 + + 32 * + 42 + ( - CAST ( + MAX ( DISTINCT + 81 ) AS INTEGER ) ) + - COUNT ( * ) / - 0 - + 20 WHEN 41 THEN NULL ELSE NULL END WHEN + 66 * + 20 THEN 99 END + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT + 68 + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4981
SELECT + 68 + COUNT ( * )
----
69

query I rowsort
SELECT + 8 + - 5 + - 61 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - 14 - + + MAX( ALL 22 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4983
SELECT - 14 - + + MAX ( ALL 22 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL SUM( + 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL SUM ( + 83 ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4985
SELECT + 84 + CASE - - COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) THEN + - 27 - - 13 + - 0 WHEN + COUNT( * ) * ( + - 93 ) * + - 50 * - 13 THEN NULL ELSE NULL END - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT + 84 + CASE - - COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) THEN + - 27 - - 13 + - 0 WHEN + COUNT ( * ) * ( + - 93 ) * + - 50 * - 13 THEN NULL ELSE NULL END - + 11
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT - 90 * - - 54 * - 70 DIV COUNT( * ) * - - 66 AS col1
----
22453200

skipif mysql # not compatible
query I rowsort label-4986
SELECT - 90 * - - 54 * - 70 / COUNT ( * ) * - - 66 AS col1
----
22453200

query I rowsort
SELECT ALL - 53 * + 38 col0
----
-2014

query I rowsort
SELECT ALL + ( + ( 32 ) ) - - + 85 + 24 * - 58
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL SUM( ALL + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL SUM ( ALL + 89 )
----
89

query I rowsort
SELECT ALL - 35 * + + 56 AS col0
----
-1960

query I rowsort
SELECT - 54 + 25 * - 94
----
-2404

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4992
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, + 13 AS col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-4992
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col1, + 13 AS col1
----
NULL
13

query I rowsort
SELECT ALL - 36 * + - 62
----
2232

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT - COUNT( * ) * - - 9 AS col2, + 62 AS col1
----
-9
62

skipif mysql # not compatible
query II rowsort label-4994
SELECT - COUNT ( * ) * - - 9 AS col2, + 62 AS col1
----
-9
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT + SUM( + 23 ) col0, - 22 AS col1
----
23
-22

skipif mysql # not compatible
query II rowsort label-4995
SELECT + SUM ( + 23 ) col0, - 22 AS col1
----
23
-22

query I rowsort
SELECT - 0 + + 11 + + 4 * 95 AS col0
----
391

query I rowsort
SELECT 81 + 62 AS col2
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT 52 DIV + + 97
----
0

skipif mysql # not compatible
query I rowsort label-4998
SELECT 52 / + + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + 86 * - - 11 - - CASE - - COUNT( * ) WHEN + 30 * + 91 THEN NULL WHEN 16 / 29 THEN - - 70 ELSE - 73 * + 32 END - + + 6 * 76 * 19 * - COUNT( * ) * - 48 AS col1
----
-417262

skipif mysql # not compatible
query I rowsort label-4999
SELECT + 86 * - - 11 - - CASE - - COUNT ( * ) WHEN + 30 * + 91 THEN NULL WHEN 16 / 29 THEN - - 70 ELSE - 73 * + 32 END - + + 6 * 76 * 19 * - COUNT ( * ) * - 48 AS col1
----
-417262

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT COALESCE ( + 17, - 49 * - COUNT( * ) ) * - COUNT( * ) * - COUNT( * ) - + + 66
----
-49

skipif mysql # not compatible
query I rowsort label-5000
SELECT COALESCE ( + 17, - 49 * - COUNT ( * ) ) * - COUNT ( * ) * - COUNT ( * ) - + + 66
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT ALL + + 84 DIV + 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL + + 84 / + 80 AS col1
----
1

query I rowsort
SELECT - 83 * - 72
----
5976

query I rowsort
SELECT 28 * - - 47 + - + 83
----
1233

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - 49 * - COUNT( * ) + - + 8 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5004
SELECT - 49 * - COUNT ( * ) + - + 8 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT + - SUM( + - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-5005
SELECT + - SUM ( + - 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL + 92 + + COUNT( * ) + + + 85
----
178

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + 92 + + COUNT ( * ) + + + 85
----
178

query I rowsort
SELECT + 72 + + 50
----
122

query I rowsort
SELECT ALL - + 42 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL - COUNT( * ) * 57
----
-57

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - COUNT ( * ) * 57
----
-57

query I rowsort
SELECT ALL - - NULLIF ( 78, - - 91 * + - 64 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5011
SELECT ALL - CAST( + 23 AS SIGNED ) AS col2, + 67
----
-23
67

skipif mysql # not compatible
query II rowsort label-5011
SELECT ALL - CAST ( + 23 AS INTEGER ) AS col2, + 67
----
-23
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT + 99 + - - 58 + - + 79 - + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-5012
SELECT + 99 + - - 58 + - + 79 - + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL - NULLIF ( - COUNT( * ), + 72 + - 63 ) + + MAX( - 71 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - NULLIF ( - COUNT ( * ), + 72 + - 63 ) + + MAX ( - 71 ) AS col0
----
-70

query I rowsort
SELECT DISTINCT - 68 * 40
----
-2720

query I rowsort
SELECT 52 * + 2 AS col1
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT ALL - COUNT( * ) DIV - MIN( DISTINCT - 12 ) + + ( - - 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - COUNT ( * ) / - MIN ( DISTINCT - 12 ) + + ( - - 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT 42 + MAX( - 81 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-5017
SELECT 42 + MAX ( - 81 ) col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - MAX( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-5018
SELECT - MAX ( DISTINCT 45 )
----
-45

query I rowsort
SELECT ( - - 47 ) + 92 col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT COUNT( * ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-5020
SELECT COUNT ( * ) * + 72
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT 56 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT 56 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 27 * - 73
----
-1971

onlyif mysql # aggregate syntax: 
query III rowsort label-5023
SELECT ALL 26 col2, + 56 * 71, 42 + NULLIF ( - CASE - 52 WHEN - 20 * + 32 + - COUNT( * ) THEN + + 27 * + 36 ELSE - - 53 + + 97 END, - 5 ) col2
----
26
3976
-108

skipif mysql # not compatible
query III rowsort label-5023
SELECT ALL 26 col2, + 56 * 71, 42 + NULLIF ( - CASE - 52 WHEN - 20 * + 32 + - COUNT ( * ) THEN + + 27 * + 36 ELSE - - 53 + + 97 END, - 5 ) col2
----
26
3976
-108

query I rowsort
SELECT DISTINCT 7 - - 9
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ( - 71 ) * - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5025
SELECT ( - 71 ) * - COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL COUNT( * ) * - + 24 * ( - COALESCE ( - 27, - 80 * + + COALESCE ( + 73, + - 64 ), 63 ) ) AS col2
----
-648

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL COUNT ( * ) * - + 24 * ( - COALESCE ( - 27, - 80 * + + COALESCE ( + 73, + - 64 ), 63 ) ) AS col2
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT MIN( ALL - 92 ) * - COUNT( * ) * 97 AS col1
----
8924

skipif mysql # not compatible
query I rowsort label-5027
SELECT MIN ( ALL - 92 ) * - COUNT ( * ) * 97 AS col1
----
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT COUNT( * ) * MAX( ALL + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-5028
SELECT COUNT ( * ) * MAX ( ALL + 45 )
----
45

query I rowsort
SELECT - 4 col2
----
-4

query I rowsort
SELECT ALL + 5 * - 85
----
-425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5031
SELECT CASE - - ( 61 ) WHEN - 66 - - + CAST( 40 AS SIGNED ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 81 + - 40 - MAX( ALL + - 70 ) DIV - 92 END - - ( 1 )
----
42

skipif mysql # not compatible
query I rowsort label-5031
SELECT CASE - - ( 61 ) WHEN - 66 - - + CAST ( 40 AS INTEGER ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 81 + - 40 - MAX ( ALL + - 70 ) / - 92 END - - ( 1 )
----
42

query I rowsort
SELECT ( + 49 ) + - + 85 AS col2
----
-36

query I rowsort
SELECT + 14 col0
----
14

query I rowsort
SELECT ALL 23 * + 55
----
1265

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT 87 DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-5035
SELECT 87 / 58
----
1

query I rowsort
SELECT ( 48 ) * 36
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5037
SELECT 5 * COUNT( * ) + 11 DIV + 2 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5037
SELECT 5 * COUNT ( * ) + 11 / + 2 AS col0
----
10

query I rowsort
SELECT 3 + - 77 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT - 44 * - 90 - 68 * + COUNT( * )
----
3892

skipif mysql # not compatible
query I rowsort label-5039
SELECT - 44 * - 90 - 68 * + COUNT ( * )
----
3892

query I rowsort
SELECT DISTINCT - 15 + + 55
----
40

query I rowsort
SELECT ALL + 60 + ( NULLIF ( 71, + 28 ) )
----
131

query I rowsort
SELECT 83 * 15
----
1245

query I rowsort
SELECT DISTINCT + 42 + - ( + 37 ) * - 43
----
1633

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT 96 * - ( - COUNT( * ) )
----
96

skipif mysql # not compatible
query I rowsort label-5044
SELECT 96 * - ( - COUNT ( * ) )
----
96

query I rowsort
SELECT DISTINCT - 15 + - 26
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL - MAX( ALL + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL - MAX ( ALL + 96 )
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5047
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT + CAST ( NULL AS REAL ) + 91 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 43 + 14
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT CASE + 99 WHEN SUM( DISTINCT 57 ) * + 49 THEN - SUM( 33 ) ELSE + 10 * + CASE 96 / 57 WHEN 5 THEN - COUNT( * ) WHEN 71 * - 96 + 94 THEN + 81 ELSE NULL END + 50 END * + ( - 48 * 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT CASE + 99 WHEN SUM ( DISTINCT 57 ) * + 49 THEN - SUM ( 33 ) ELSE + 10 * + CASE 96 / 57 WHEN 5 THEN - COUNT ( * ) WHEN 71 * - 96 + 94 THEN + 81 ELSE NULL END + 50 END * + ( - 48 * 5 ) AS col2
----
NULL

query I rowsort
SELECT 92 - - 81 AS col2
----
173

query I rowsort
SELECT ALL + 71 * 80
----
5680

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT 2 + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5052
SELECT 2 + + COUNT ( * ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT + MAX( - 51 ) * 11 col1
----
-561

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT + MAX ( - 51 ) * 11 col1
----
-561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5055
SELECT ALL - CAST( + 28 AS SIGNED ) - 51 col2
----
-79

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - CAST ( + 28 AS INTEGER ) - 51 col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5056
SELECT 27 - + COUNT( * ) DIV + 78
----
27

skipif mysql # not compatible
query I rowsort label-5056
SELECT 27 - + COUNT ( * ) / + 78
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT + 53 * + COUNT( * ) col2
----
53

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + 53 * + COUNT ( * ) col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT CASE - 4 WHEN + COUNT( * ) + - 99 THEN + 72 ELSE 9 * + CAST( NULL AS SIGNED ) + + 13 END * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT CASE - 4 WHEN + COUNT ( * ) + - 99 THEN + 72 ELSE 9 * + CAST ( NULL AS INTEGER ) + + 13 END * + 11
----
NULL

query I rowsort
SELECT 27 + + 4
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT ALL 89 DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL 89 / 18
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5061
SELECT COUNT( * ) + + 81 DIV - 98
----
1

skipif mysql # not compatible
query I rowsort label-5061
SELECT COUNT ( * ) + + 81 / - 98
----
1

query I rowsort
SELECT + ( 24 ) - - 12 col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5063
SELECT - COUNT( * ) DIV + CAST( 75 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT - COUNT ( * ) / + CAST ( 75 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT + CAST( NULL AS SIGNED ) * - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT + CAST ( NULL AS INTEGER ) * - 92 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 24 * - 28
----
-672

query I rowsort
SELECT + 65 + + 25 AS col0
----
90

query I rowsort
SELECT DISTINCT CASE + 27 WHEN 15 * - 88 THEN NULL WHEN - 52 THEN + AVG ( + 36 ) + - 98 ELSE 32 END
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT DISTINCT 88 + - ( + ( + CASE + 23 WHEN 16 * + 64 THEN + 13 WHEN ( + CASE 12 WHEN + 91 / + NULLIF ( 43, NULLIF ( - CASE 63 WHEN - 75 * + COUNT( * ) THEN 3 END, - 49 ) + + 81 / - AVG ( DISTINCT 19 + - 14 ) ) + 60 THEN NULL WHEN 80 * - 49 THEN NULL WHEN 39 THEN 65 + - MIN( - 37 ) END ) * - 64 + 96 THEN - COUNT( * ) END ) ) * 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT 88 + - ( + ( + CASE + 23 WHEN 16 * + 64 THEN + 13 WHEN ( + CASE 12 WHEN + 91 / + NULLIF ( 43, NULLIF ( - CASE 63 WHEN - 75 * + COUNT ( * ) THEN 3 END, - 49 ) + + 81 / - AVG ( DISTINCT 19 + - 14 ) ) + 60 THEN NULL WHEN 80 * - 49 THEN NULL WHEN 39 THEN 65 + - MIN ( - 37 ) END ) * - 64 + 96 THEN - COUNT ( * ) END ) ) * 48 col2
----
NULL

query I rowsort
SELECT + + 11 + - 58 AS col0
----
-47

query I rowsort
SELECT + - 47 + 7 * + 82 col0
----
527

query I rowsort
SELECT ALL + 66 * - 54 + + 48
----
-3516

query I rowsort
SELECT ALL + + 10 * COALESCE ( 85 - 3, 83 * 36, + 42 * ( + CASE 97 WHEN - 65 + - 47 * + 52 THEN NULL ELSE 36 END ) ) + - 42 AS col0
----
778

query I rowsort
SELECT + - 33
----
-33

query I rowsort
SELECT + - 1 * - ( 98 + + 15 ) + + 19 * 38
----
835

query I rowsort
SELECT DISTINCT + + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL - 36 * + COUNT( * ) + - COALESCE ( + 55, - COALESCE ( - 8, - 84 ) + - 23 ) * + 92 AS col2
----
-5096

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - 36 * + COUNT ( * ) + - COALESCE ( + 55, - COALESCE ( - 8, - 84 ) + - 23 ) * + 92 AS col2
----
-5096

query I rowsort
SELECT DISTINCT + - 2
----
-2

query I rowsort
SELECT ALL + 72 * 0 - - 47 * - 30 AS col1
----
-1410

query I rowsort
SELECT DISTINCT 46 * - 94 AS col0
----
-4324

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT + 41 * - CASE - 76 WHEN - 3 THEN NULL ELSE - 4 END + SUM( + 94 + 75 ) * + ( - 96 ) AS col2
----
-16060

skipif mysql # not compatible
query I rowsort label-5080
SELECT + 41 * - CASE - 76 WHEN - 3 THEN NULL ELSE - 4 END + SUM ( + 94 + 75 ) * + ( - 96 ) AS col2
----
-16060

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT - - COUNT( * ) - 54 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5081
SELECT - - COUNT ( * ) - 54 AS col1
----
-53

query I rowsort
SELECT - - COALESCE ( - 51, + 94, 72 ) * 52 AS col1
----
-2652

query I rowsort
SELECT + 45 * 4 + 6 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - 57 * - MIN( ALL 29 - - 78 ) + - 27 AS col1
----
6072

skipif mysql # not compatible
query I rowsort label-5084
SELECT - 57 * - MIN ( ALL 29 - - 78 ) + - 27 AS col1
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + 57 + - SUM( + NULLIF ( + 72, - 10 + + 25 * + 7 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5085
SELECT + 57 + - SUM ( + NULLIF ( + 72, - 10 + + 25 * + 7 ) ) AS col1
----
-15

query I rowsort
SELECT - 61 * + 74
----
-4514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5087
SELECT - CASE COUNT( * ) WHEN COUNT( * ) * 99 THEN NULL ELSE 80 END + - 16 DIV + 44 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5087
SELECT - CASE COUNT ( * ) WHEN COUNT ( * ) * 99 THEN NULL ELSE 80 END + - 16 / + 44 AS col0
----
-80

query I rowsort
SELECT - 44 * - 31 * 20 + - 80 col0
----
27200

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL + SUM( DISTINCT + 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + SUM ( DISTINCT + 9 ) AS col2
----
9

query I rowsort
SELECT - 31 + + 17 AS col2
----
-14

query I rowsort
SELECT ALL - 67 * - 65
----
4355

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT DISTINCT - CASE + - 79 WHEN 42 THEN COUNT( * ) + - 99 WHEN 56 * + SUM( 66 ) THEN - COUNT( * ) + - 1 ELSE 70 * 83 END * + 45
----
-261450

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT - CASE + - 79 WHEN 42 THEN COUNT ( * ) + - 99 WHEN 56 * + SUM ( 66 ) THEN - COUNT ( * ) + - 1 ELSE 70 * 83 END * + 45
----
-261450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT - CAST( + COUNT( 39 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5093
SELECT - CAST ( + COUNT ( 39 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - COALESCE ( + 63, - 99 ) + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5094
SELECT - COALESCE ( + 63, - 99 ) + + COUNT ( * )
----
-62

query I rowsort
SELECT ALL NULLIF ( + 35, 45 * + COALESCE ( - 82, + 55, - 88 * AVG ( ALL 37 ) ) + + 80 ) AS col2
----
35

query I rowsort
SELECT DISTINCT + 22 * 60
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT - SUM( DISTINCT 25 ) * - 86 AS col0
----
2150

skipif mysql # not compatible
query I rowsort label-5097
SELECT - SUM ( DISTINCT 25 ) * - 86 AS col0
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT ( + NULLIF ( 79, - COUNT( * ) ) )
----
79

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT ( + NULLIF ( 79, - COUNT ( * ) ) )
----
79

query I rowsort
SELECT DISTINCT 70 + 32 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL COUNT( * ) + - + 64
----
-63

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL COUNT ( * ) + - + 64
----
-63

query I rowsort
SELECT ALL ( - 37 ) col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT - 5 - + MAX( DISTINCT 10 ) * + ( NULLIF ( - 11, 98 / 87 ) ) AS col0
----
105

skipif mysql # not compatible
query I rowsort label-5102
SELECT - 5 - + MAX ( DISTINCT 10 ) * + ( NULLIF ( - 11, 98 / 87 ) ) AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT DISTINCT + 15 + - 78 + COALESCE ( 42 + - 66 DIV 29, - 20 - + 4 ) * 67 AS col1
----
2617

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT + 15 + - 78 + COALESCE ( 42 + - 66 / 29, - 20 - + 4 ) * 67 AS col1
----
2617

query I rowsort
SELECT + 72 + - - 92 * 70
----
6512

query I rowsort
SELECT ALL 46 + - - 97
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5106
SELECT - 16 * - - 54 DIV COUNT( * ) AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-5106
SELECT - 16 * - - 54 / COUNT ( * ) AS col1
----
-864

query I rowsort
SELECT DISTINCT + + 35 + + 82
----
117

query I rowsort
SELECT + NULLIF ( + 14, - ( 69 ) ) - 42 AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-5109
SELECT ALL 85 DIV + 31 + 72 * 62 - - 85 AS col2
----
4551

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL 85 / + 31 + 72 * 62 - - 85 AS col2
----
4551

query I rowsort
SELECT ALL - - 22 * - 51
----
-1122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5111
SELECT ALL + - 70 DIV 52 - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + - 70 / 52 - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT SUM( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5112
SELECT SUM ( 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + 88 + NULLIF ( ( COUNT( * ) ), + 99 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5113
SELECT + 88 + NULLIF ( ( COUNT ( * ) ), + 99 ) AS col2
----
89

query I rowsort
SELECT DISTINCT + 68 col0
----
68

query I rowsort
SELECT DISTINCT + - 20 col2
----
-20

query I rowsort
SELECT + 59 * - 4 + + 22 * 77 AS col1
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL + COUNT( * ) * + ( 29 ) + - 82 * - 99 AS col1
----
8147

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL + COUNT ( * ) * + ( 29 ) + - 82 * - 99 AS col1
----
8147

query I rowsort
SELECT ALL + + 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT DISTINCT + 88 AS col2, NULLIF ( 60, 66 + ( COALESCE ( 51, - 86 + COUNT( * ), + 27 / 93 + - 84 * + 40 ) ) / + 71 ) AS col1
----
88
60

skipif mysql # not compatible
query II rowsort label-5119
SELECT DISTINCT + 88 AS col2, NULLIF ( 60, 66 + ( COALESCE ( 51, - 86 + COUNT ( * ), + 27 / 93 + - 84 * + 40 ) ) / + 71 ) AS col1
----
88
60

query I rowsort
SELECT ALL 13 * - 34
----
-442

query I rowsort
SELECT + 19 + - 74 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ( - 25 ) + + 52 - + COUNT( DISTINCT - 69 )
----
26

skipif mysql # not compatible
query I rowsort label-5122
SELECT ( - 25 ) + + 52 - + COUNT ( DISTINCT - 69 )
----
26

query II rowsort
SELECT 82 AS col0, 8 AS col0
----
82
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-5124
SELECT 46 * - COUNT ( * )
----
-46

query I rowsort
SELECT 81 * - 14 AS col1
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT COUNT( * ) + + 48 + 70 * ( - 6 ) AS col0
----
-371

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT COUNT ( * ) + + 48 + 70 * ( - 6 ) AS col0
----
-371

query I rowsort
SELECT ALL - 46 + 85 AS col0
----
39

query I rowsort
SELECT 71 + - ( - 64 ) - 91 / CASE + 33 WHEN 49 - AVG ( - 72 ) / 51 THEN 94 WHEN CASE + 53 WHEN - 71 * 5 + + 50 THEN + ( + 73 ) * - 36 WHEN 82 THEN - 99 * - 15 ELSE 80 / - 16 END THEN - 91 END AS col1
----
NULL

query I rowsort
SELECT 81 + + + 38
----
119

query I rowsort
SELECT ALL + 73 + + 28 col1
----
101

query I rowsort
SELECT ALL + 46 + + - 25 * 89 AS col0
----
-2179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT CASE + 54 WHEN + 94 - + 34 THEN ( + ( + 49 ) ) + + ( 30 + 10 ) WHEN + 26 * + 73 THEN 35 / CAST( NULL AS SIGNED ) END + ( + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT CASE + 54 WHEN + 94 - + 34 THEN ( + ( + 49 ) ) + + ( 30 + 10 ) WHEN + 26 * + 73 THEN 35 / CAST ( NULL AS INTEGER ) END + ( + 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT 97 - - SUM( DISTINCT + 4 ) - - ( 61 + + COUNT( * ) ) * - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5133
SELECT 97 - - SUM ( DISTINCT + 4 ) - - ( 61 + + COUNT ( * ) ) * - COUNT ( * )
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5134
SELECT 98 AS col0, + 41 * + CASE - ( + CAST( 89 AS DECIMAL ) ) WHEN + 92 * 64 + CAST( 8 AS DECIMAL ) THEN 46 + - 86 WHEN 45 * 58 THEN NULL ELSE NULL END AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-5134
SELECT 98 AS col0, + 41 * + CASE - ( + CAST ( 89 AS REAL ) ) WHEN + 92 * 64 + CAST ( 8 AS REAL ) THEN 46 + - 86 WHEN 45 * 58 THEN NULL ELSE NULL END AS col2
----
98
NULL

query I rowsort
SELECT 6 - + 18
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ALL - MAX( - + 43 ) * - 84 AS col1
----
-3612

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL - MAX ( - + 43 ) * - 84 AS col1
----
-3612

query I rowsort
SELECT 16 + - 12 + - - 93 * - 79
----
-7343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5138
SELECT - 65 col1, - COUNT( * ) * 41 / 23 + CAST( NULL AS SIGNED )
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-5138
SELECT - 65 col1, - COUNT ( * ) * 41 / 23 + CAST ( NULL AS INTEGER )
----
-65
NULL

query I rowsort
SELECT DISTINCT - 56 * + 81 * 47
----
-213192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5140
SELECT DISTINCT CASE 4 WHEN ( MAX( ALL 47 ) ) * 65 THEN NULL ELSE 39 DIV 41 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT CASE 4 WHEN ( MAX ( ALL 47 ) ) * 65 THEN NULL ELSE 39 / 41 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT 63 + + 1 + + - MAX( DISTINCT - 29 )
----
93

skipif mysql # not compatible
query I rowsort label-5141
SELECT 63 + + 1 + + - MAX ( DISTINCT - 29 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT ALL + 65 - - 35 + + + 0 DIV + 87
----
100

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL + 65 - - 35 + + + 0 / + 87
----
100

query II rowsort
SELECT 6, 99 AS col1
----
6
99

query I rowsort
SELECT ALL ( - 15 ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT 27 + - SUM( - - 64 ) + + 92 * - COUNT( * ) * CASE WHEN NOT 19 * 73 <= ( NULL ) THEN - ( 76 ) WHEN COUNT( * ) / 75 IS NULL THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT 27 + - SUM ( - - 64 ) + + 92 * - COUNT ( * ) * CASE WHEN NOT 19 * 73 <= ( NULL ) THEN - ( 76 ) WHEN COUNT ( * ) / 75 IS NULL THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - - 86 AS col1
----
86

query I rowsort
SELECT 73 + - 69 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5148
SELECT + 67, CAST( - 60 AS SIGNED ) - COUNT( * ) AS col0
----
67
-61

skipif mysql # not compatible
query II rowsort label-5148
SELECT + 67, CAST ( - 60 AS INTEGER ) - COUNT ( * ) AS col0
----
67
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT - + COALESCE ( - COUNT( ALL 28 ), - 30, 60 * - CASE 48 WHEN NULLIF ( 16, 43 ) + + 9 THEN NULL ELSE 30 END - - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT - + COALESCE ( - COUNT ( ALL 28 ), - 30, 60 * - CASE 48 WHEN NULLIF ( 16, 43 ) + + 9 THEN NULL ELSE 30 END - - 20 )
----
1

query I rowsort
SELECT ALL - + 95 * - 89
----
8455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5151
SELECT 63 * - CASE - - 65 WHEN 2 THEN NULL WHEN - NULLIF ( - 42, NULLIF ( - ( + 74 ), 33 + + CAST( 72 AS SIGNED ) ) ) + 38 THEN COUNT( * ) WHEN + 11 + ( + 5 ) THEN 4 * - 24 END * - 39 - - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT 63 * - CASE - - 65 WHEN 2 THEN NULL WHEN - NULLIF ( - 42, NULLIF ( - ( + 74 ), 33 + + CAST ( 72 AS INTEGER ) ) ) + 38 THEN COUNT ( * ) WHEN + 11 + ( + 5 ) THEN 4 * - 24 END * - 39 - - 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT + - MAX( - 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5152
SELECT + - MAX ( - 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL + COUNT( * ) * - 26 + - 38
----
-64

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL + COUNT ( * ) * - 26 + - 38
----
-64

query I rowsort
SELECT + 74 * + - 83 + - 23 - ( + 49 + 6 )
----
-6220

query I rowsort
SELECT ALL - - 8
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT - 86 DIV + 95 + - - 3
----
3

skipif mysql # not compatible
query I rowsort label-5156
SELECT - 86 / + 95 + - - 3
----
3

query I rowsort
SELECT ALL - - 15 * + - 81 AS col0
----
-1215

query I rowsort
SELECT DISTINCT + - 53 * - 35
----
1855

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT 34 DIV - + ( - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-5159
SELECT 34 / - + ( - 95 )
----
0

query I rowsort
SELECT - 94 * 16 + - + 3 + - 24
----
-1531

query II rowsort
SELECT 36 * + 47 AS col2, - 0
----
1692
0

query I rowsort
SELECT 40 * - - 30 + + 99 + + ( 47 ) * 20 AS col2
----
2239

query I rowsort
SELECT ( - - 59 ) + + - 44
----
15

query I rowsort
SELECT ALL 60 + + 43 * - 37 * + 62
----
-98582

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT COUNT( * ) * - 77 + - + ( - 63 )
----
-14

skipif mysql # not compatible
query I rowsort label-5165
SELECT COUNT ( * ) * - 77 + - + ( - 63 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT + COUNT( + 75 ) * - COUNT( * ) + - COUNT( * ) DIV + 17 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5166
SELECT + COUNT ( + 75 ) * - COUNT ( * ) + - COUNT ( * ) / + 17 AS col0
----
-1

query I rowsort
SELECT DISTINCT 6 * + 66 AS col1
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - COUNT( DISTINCT - 87 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5168
SELECT - COUNT ( DISTINCT - 87 ) AS col1
----
-1

query I rowsort
SELECT ALL 0 + + 72 + + + 41
----
113

query I rowsort
SELECT DISTINCT 59 + + - ( ( 17 ) ) * 95
----
-1556

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT 6 + - 2 DIV + - 18 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5171
SELECT 6 + - 2 / + - 18 AS col0
----
6

query I rowsort
SELECT ALL 94 + - + 63
----
31

query I rowsort
SELECT 16 + - 93
----
-77

query I rowsort
SELECT ALL 11 col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT ALL + 15 DIV + - 25 * - + 27
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + 15 / + - 25 * - + 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5176
SELECT ( + - COUNT( * ) ) DIV + - 73 * - - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5176
SELECT ( + - COUNT ( * ) ) / + - 73 * - - 23 AS col2
----
0

query I rowsort
SELECT DISTINCT ( 96 ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5178
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT - 64 - - + 10 - - - 36 + - COUNT( 57 ) DIV + 93 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-5179
SELECT - 64 - - + 10 - - - 36 + - COUNT ( 57 ) / + 93 AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT 8 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-5180
SELECT 8 / + 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5181
SELECT + ( + - 86 ) * - 83 + + 5 + MAX( 91 ) / - ( + 71 * 35 + CAST( NULL AS SIGNED ) ) / COALESCE ( + 76, - 3 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT + ( + - 86 ) * - 83 + + 5 + MAX ( 91 ) / - ( + 71 * 35 + CAST ( NULL AS INTEGER ) ) / COALESCE ( + 76, - 3 ) col1
----
NULL

query I rowsort
SELECT 11 - + ( + - 48 ) col0
----
59

query I rowsort
SELECT - NULLIF ( - 92, - 31 ) * + 43 AS col0
----
3956

query I rowsort
SELECT + 56 + + COALESCE ( - 84, 61 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT - - CASE + 74 WHEN MAX( - - 94 ) THEN - MAX( 74 ) + + 48 WHEN - COUNT( DISTINCT CAST( - 82 AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT - - CASE + 74 WHEN MAX ( - - 94 ) THEN - MAX ( 74 ) + + 48 WHEN - COUNT ( DISTINCT CAST ( - 82 AS INTEGER ) ) THEN NULL END
----
NULL

query I rowsort
SELECT ( 94 ) + - + 55 * + 48 AS col1
----
-2546

query I rowsort
SELECT ALL - 21 AS col1
----
-21

query I rowsort
SELECT ( 51 )
----
51

query I rowsort
SELECT DISTINCT 93 * - + 74 + + + 34 AS col2
----
-6848

query I rowsort
SELECT DISTINCT - - 1 * - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT 57 * - + 12 + + - ( - 85 ) + + NULLIF ( - 99, - SUM( - 50 ) ) AS col0
----
-698

skipif mysql # not compatible
query I rowsort label-5191
SELECT 57 * - + 12 + + - ( - 85 ) + + NULLIF ( - 99, - SUM ( - 50 ) ) AS col0
----
-698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5192
SELECT ALL - 37 * + + 93 * 86 + + - 92 + + 4 DIV COUNT( * )
----
-296014

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - 37 * + + 93 * 86 + + - 92 + + 4 / COUNT ( * )
----
-296014

query I rowsort
SELECT 26 col1
----
26

query I rowsort
SELECT DISTINCT + 94 * - 24 - + + 14 + - 40 * - 27 + + 54 AS col1
----
-1136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5195
SELECT ALL + 15 * COUNT( * ) + + 10 + 64 DIV 43 + 76
----
102

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + 15 * COUNT ( * ) + + 10 + 64 / 43 + 76
----
102

query I rowsort
SELECT DISTINCT ( 11 ) * - 85 + 94
----
-841

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL SUM( ALL - 42 ) * - 28 * 46 + + - 32 * + 37 AS col1
----
52912

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL SUM ( ALL - 42 ) * - 28 * 46 + + - 32 * + 37 AS col1
----
52912

query I rowsort
SELECT DISTINCT - 0 * + ( - COALESCE ( + 89, - 40 ) ) * - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL 44 * 68 + - 55 * - MAX( + 86 ) AS col1
----
7722

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL 44 * 68 + - 55 * - MAX ( + 86 ) AS col1
----
7722

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5200
SELECT + CAST( NULL AS DECIMAL ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT + CAST ( NULL AS REAL ) * - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT MAX( DISTINCT - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-5201
SELECT MAX ( DISTINCT - - 78 )
----
78

query I rowsort
SELECT - 6 + + 97
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT + COUNT( * ) * ( - + CASE + 26 WHEN - + 86 / 20 THEN 11 ELSE 39 END )
----
-39

skipif mysql # not compatible
query I rowsort label-5203
SELECT + COUNT ( * ) * ( - + CASE + 26 WHEN - + 86 / 20 THEN 11 ELSE 39 END )
----
-39

query II rowsort
SELECT ALL + 32, + CASE - - 1 WHEN 72 + 7 THEN 79 ELSE NULL END AS col2
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + ( - 17 ) * + + 33 + - COUNT( * ) + + 42 * 51 AS col1
----
1580

skipif mysql # not compatible
query I rowsort label-5205
SELECT + ( - 17 ) * + + 33 + - COUNT ( * ) + + 42 * 51 AS col1
----
1580

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT + 88 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT + 88 / + 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT + COUNT( * ) AS col2, - ( + 10 ) AS col0
----
1
-10

skipif mysql # not compatible
query II rowsort label-5207
SELECT + COUNT ( * ) AS col2, - ( + 10 ) AS col0
----
1
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT + CASE - COUNT( * ) WHEN - 84 + CAST( NULL AS SIGNED ) * - + 20 * - 79 - + 14 THEN NULL WHEN 70 THEN NULL WHEN + 43 THEN - ( NULLIF ( - 8, - 72 * - 83 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT + CASE - COUNT ( * ) WHEN - 84 + CAST ( NULL AS INTEGER ) * - + 20 * - 79 - + 14 THEN NULL WHEN 70 THEN NULL WHEN + 43 THEN - ( NULLIF ( - 8, - 72 * - 83 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT - 28 - CAST( - + ( 95 ) AS SIGNED ) col2
----
67

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - 28 - CAST ( - + ( 95 ) AS INTEGER ) col2
----
67

query I rowsort
SELECT + 52 - + - 36
----
88

query I rowsort
SELECT DISTINCT ( - 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT + 29 + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-5212
SELECT + 29 + COUNT ( * )
----
30

query I rowsort
SELECT + 46 * + + 4
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT - + 43 + + ( + - SUM( ALL - CAST( NULL AS SIGNED ) ) ) + - SUM( DISTINCT 24 ) / + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT - + 43 + + ( + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) + - SUM ( DISTINCT 24 ) / + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5215
SELECT ALL + 57 * - 11 + + - ( + COUNT( * ) ) DIV + 33 col1
----
-627

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL + 57 * - 11 + + - ( + COUNT ( * ) ) / + 33 col1
----
-627

onlyif mysql # aggregate syntax: 
query II rowsort label-5216
SELECT + + 51 * - - SUM( DISTINCT - 92 ) AS col1, + 11 AS col2
----
-4692
11

skipif mysql # not compatible
query II rowsort label-5216
SELECT + + 51 * - - SUM ( DISTINCT - 92 ) AS col1, + 11 AS col2
----
-4692
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT + NULLIF ( 78, 83 + COUNT( * ) + + - 6 ) * 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT + NULLIF ( 78, 83 + COUNT ( * ) + + - 6 ) * 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT + + MAX( + 91 ) - + + ( - 23 ) + - 94 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5218
SELECT + + MAX ( + 91 ) - + + ( - 23 ) + - 94 AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5219
SELECT ALL - 43, - CAST( NULL AS SIGNED ) * 3 * 91 * + + 56 AS col0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-5219
SELECT ALL - 43, - CAST ( NULL AS INTEGER ) * 3 * 91 * + + 56 AS col0
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT MAX( DISTINCT + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT MAX ( DISTINCT + 10 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT ALL COUNT( + - 0 ) * 87 * + CAST( NULL AS SIGNED ) + + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL COUNT ( + - 0 ) * 87 * + CAST ( NULL AS INTEGER ) + + - 78
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5222
SELECT ALL + 5 + 73 DIV - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL + 5 + 73 / - COUNT ( * )
----
-68

query I rowsort
SELECT ALL + + 27 * - - 7
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT + - 36 DIV COUNT( * ) * + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-5224
SELECT + - 36 / COUNT ( * ) * + COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - SUM( + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-5225
SELECT - SUM ( + 80 )
----
-80

query I rowsort
SELECT + + ( - 52 ) * - + 9
----
468

query I rowsort
SELECT - + 18 AS col0
----
-18

query I rowsort
SELECT ALL - 80 * - NULLIF ( - 98, 91 ) * + 26 AS col2
----
-203840

query I rowsort
SELECT + - 75 + - + 4 + - NULLIF ( - ( - - 91 ), ( - 85 ) )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT - 70 DIV - 68 + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-5230
SELECT - 70 / - 68 + - 96
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5231
SELECT - + COALESCE ( - 84, + 19 + + 38 * + SUM( 72 ) * COALESCE ( 0, 32, 93 + + 54 ), 24 - 99 * - COUNT( * ) ) + 0 DIV 21
----
84

skipif mysql # not compatible
query I rowsort label-5231
SELECT - + COALESCE ( - 84, + 19 + + 38 * + SUM ( 72 ) * COALESCE ( 0, 32, 93 + + 54 ), 24 - 99 * - COUNT ( * ) ) + 0 / 21
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT + NULLIF ( 84, + 97 + - 1 * - NULLIF ( - 22, COUNT( * ) + 69 ) * + ( - 31 ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + NULLIF ( 84, + 97 + - 1 * - NULLIF ( - 22, COUNT ( * ) + 69 ) * + ( - 31 ) ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5233
SELECT ALL COALESCE ( + + 71, - 31, + - 75 * - 23 DIV + 36 - COALESCE ( 32 + - 24, + 98 + - 41 * 59 ) * 88 ) DIV - 72 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL COALESCE ( + + 71, - 31, + - 75 * - 23 / + 36 - COALESCE ( 32 + - 24, + 98 + - 41 * 59 ) * 88 ) / - 72 + COUNT ( * )
----
1

query I rowsort
SELECT + - 32 * - + 25 * 2 + - 28 * - + 3 + ( + ( 82 ) ) AS col2
----
1766

query II rowsort
SELECT + 16 AS col0, - 48 + - + 58
----
16
-106

query II rowsort
SELECT ALL + 91 AS col1, 32 AS col0
----
91
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT MIN( ALL + 41 ) * ( 16 ) + - COUNT( * ) + 5 AS col2
----
660

skipif mysql # not compatible
query I rowsort label-5237
SELECT MIN ( ALL + 41 ) * ( 16 ) + - COUNT ( * ) + 5 AS col2
----
660

query I rowsort
SELECT ALL 31 * - - 83 AS col0
----
2573

query I rowsort
SELECT DISTINCT + 4 AS col0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-5240
SELECT ALL + 45, 60 DIV - - 94 + - 69 AS col1
----
45
-69

skipif mysql # not compatible
query II rowsort label-5240
SELECT ALL + 45, 60 / - - 94 + - 69 AS col1
----
45
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5241
SELECT - 19 + - NULLIF ( - CAST( 44 AS SIGNED ), + MAX( DISTINCT 46 ) / COUNT( * ) + 14 ) + + COUNT( ALL + 14 )
----
26

skipif mysql # not compatible
query I rowsort label-5241
SELECT - 19 + - NULLIF ( - CAST ( 44 AS INTEGER ), + MAX ( DISTINCT 46 ) / COUNT ( * ) + 14 ) + + COUNT ( ALL + 14 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5242
SELECT 78 * + - CAST( NULL AS SIGNED ) + + ( + ( + + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT 78 * + - CAST ( NULL AS INTEGER ) + + ( + ( + + COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - 36 + - COUNT( ALL - 45 ) * - 6 * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-5243
SELECT - 36 + - COUNT ( ALL - 45 ) * - 6 * COUNT ( * )
----
-30

query I rowsort
SELECT + 82 col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT + 2 * 4 + + 44 + + 43 * 13 + + CASE COUNT( * ) WHEN 13 + - 2 THEN 10 ELSE NULL END + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT + 2 * 4 + + 44 + + 43 * 13 + + CASE COUNT ( * ) WHEN 13 + - 2 THEN 10 ELSE NULL END + - 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5246
SELECT ALL + ( 1 ), MAX( DISTINCT 85 ) DIV 2 AS col0
----
1
42

skipif mysql # not compatible
query II rowsort label-5246
SELECT ALL + ( 1 ), MAX ( DISTINCT 85 ) / 2 AS col0
----
1
42

query II rowsort
SELECT ALL + 35 col2, - 79
----
35
-79

query I rowsort
SELECT ( + - 53 ) AS col0
----
-53

query I rowsort
SELECT 14 * - 89 + + 21 + + - ( 23 )
----
-1248

query I rowsort
SELECT ( 3 )
----
3

query I rowsort
SELECT ( + 44 )
----
44

query I rowsort
SELECT + 65 + 74
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT ALL + 42 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + 42 / + 64
----
0

query I rowsort
SELECT + 45 * - 60 + + - 65 AS col1
----
-2765

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT - 24 * - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT - 24 * - COUNT ( * )
----
24

query I rowsort
SELECT ALL - 15 * + - 49 * + 41
----
30135

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT - 46 * 95 DIV + 51 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-5257
SELECT - 46 * 95 / + 51 AS col0
----
-85

query I rowsort
SELECT COALESCE ( 65, + 77 )
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5259
SELECT ALL + 52 * - - 9 * - 14 * - CAST( + CASE 40 WHEN + ( 78 ) THEN + 87 / 85 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + 52 * - - 9 * - 14 * - CAST ( + CASE 40 WHEN + ( 78 ) THEN + 87 / 85 END AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 16 + + 90 * + COALESCE ( ( + 82 ), - 40 ) AS col2
----
7396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5262
SELECT - 55 DIV + + COUNT( * ) + + + COUNT( * ) + - NULLIF ( + 0, - COUNT( * ) * + 37 + - 38 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5262
SELECT - 55 / + + COUNT ( * ) + + + COUNT ( * ) + - NULLIF ( + 0, - COUNT ( * ) * + 37 + - 38 ) AS col0
----
-54

query I rowsort
SELECT ( + 36 )
----
36

query I rowsort
SELECT + 30 + + - 94 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5265
SELECT - 69 * 23 + + CASE + COUNT( + 34 ) WHEN + MIN( + 25 ) * ( 50 * CAST( NULL AS SIGNED ) ) THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT - 69 * 23 + + CASE + COUNT ( + 34 ) WHEN + MIN ( + 25 ) * ( 50 * CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5266
SELECT DISTINCT + CASE + 39 WHEN + 23 THEN + - 63 WHEN - + 61 THEN - - 81 / COUNT( * ) ELSE + 24 + + 45 END * - AVG ( DISTINCT 97 - + 72 ) + CASE + 20 WHEN - 8 + AVG ( ALL - 47 ) THEN NULL ELSE + 25 * - MAX( CASE - 7 WHEN + CAST( + 6 AS SIGNED ) THEN + 50 * NULLIF ( + 25, - 36 ) + + 85 * 17 ELSE NULL END * - 68 ) END * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT + CASE + 39 WHEN + 23 THEN + - 63 WHEN - + 61 THEN - - 81 / COUNT ( * ) ELSE + 24 + + 45 END * - AVG ( DISTINCT 97 - + 72 ) + CASE + 20 WHEN - 8 + AVG ( ALL - 47 ) THEN NULL ELSE + 25 * - MAX ( CASE - 7 WHEN + CAST ( + 6 AS INTEGER ) THEN + 50 * NULLIF ( + 25, - 36 ) + + 85 * 17 ELSE NULL END * - 68 ) END * - 31
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5267
SELECT ALL + 45 * + + COUNT( * ), + 63 DIV - + NULLIF ( - 91, CAST( 23 AS SIGNED ) ) AS col2
----
45
0

skipif mysql # not compatible
query II rowsort label-5267
SELECT ALL + 45 * + + COUNT ( * ), + 63 / - + NULLIF ( - 91, CAST ( 23 AS INTEGER ) ) AS col2
----
45
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT + - 40 + + CAST( - + 2 AS SIGNED ) * + NULLIF ( + - COUNT( * ), + 82 ) + - 16
----
-54

skipif mysql # not compatible
query I rowsort label-5268
SELECT + - 40 + + CAST ( - + 2 AS INTEGER ) * + NULLIF ( + - COUNT ( * ), + 82 ) + - 16
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT + ( COUNT( * ) ) + + + NULLIF ( - - MAX( + - 87 ), 66 + 59 )
----
-86

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + ( COUNT ( * ) ) + + + NULLIF ( - - MAX ( + - 87 ), 66 + 59 )
----
-86

query I rowsort
SELECT ALL - 76 + - 84 AS col2
----
-160

query I rowsort
SELECT ALL + NULLIF ( + 56, + 67 ) + + + 89 - + 3 AS col1
----
142

query I rowsort
SELECT + 76 - + 63 AS col1
----
13

query I rowsort
SELECT + CASE 52 WHEN - + 76 THEN NULL WHEN + 70 / + 74 - - 7 THEN + 6 END col1
----
NULL

query I rowsort
SELECT - + 73 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT COUNT( * ) + + 82 * + 53 * - COALESCE ( - 18, + COUNT( ALL - 75 ) * COUNT( * ) ) AS col1
----
78229

skipif mysql # not compatible
query I rowsort label-5275
SELECT COUNT ( * ) + + 82 * + 53 * - COALESCE ( - 18, + COUNT ( ALL - 75 ) * COUNT ( * ) ) AS col1
----
78229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT - 59 * 94 * - CASE - 89 WHEN - 16 * COUNT( 35 ) THEN + 22 DIV - 55 + 78 WHEN 76 THEN - 84 ELSE + 34 END
----
188564

skipif mysql # not compatible
query I rowsort label-5276
SELECT - 59 * 94 * - CASE - 89 WHEN - 16 * COUNT ( 35 ) THEN + 22 / - 55 + 78 WHEN 76 THEN - 84 ELSE + 34 END
----
188564

query II rowsort
SELECT - 68 + - ( ( + 30 ) ) AS col1, - 20 + + 74 AS col2
----
-98
54

query I rowsort
SELECT ALL 42 + - 98 AS col2
----
-56

query I rowsort
SELECT - 82 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT ALL - COALESCE ( - + COUNT( * ), 69 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL - COALESCE ( - + COUNT ( * ), 69 ) col1
----
1

query I rowsort
SELECT 65 - 30
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT ALL 37 DIV ( - + 2 ) * - 69 col0
----
1242

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL 37 / ( - + 2 ) * - 69 col0
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL 7 - COUNT( * ) * 53 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL 7 - COUNT ( * ) * 53 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT - COUNT( * ) * + 84
----
-84

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT - COUNT ( * ) * + 84
----
-84

query I rowsort
SELECT 90 * + 88
----
7920

query I rowsort
SELECT DISTINCT 36 * + 13
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5287
SELECT CAST( - 3 AS SIGNED ) * - 20 + + + 87 * 67, - COUNT( - 64 ) AS col0
----
5889
-1

skipif mysql # not compatible
query II rowsort label-5287
SELECT CAST ( - 3 AS INTEGER ) * - 20 + + + 87 * 67, - COUNT ( - 64 ) AS col0
----
5889
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT MIN( ALL CASE 63 WHEN + + 90 THEN - 36 * - 94 + 68 + 76 * 53 END ) * - CAST( CAST( - 26 AS SIGNED ) * 69 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT MIN ( ALL CASE 63 WHEN + + 90 THEN - 36 * - 94 + 68 + 76 * 53 END ) * - CAST ( CAST ( - 26 AS INTEGER ) * 69 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 28 - + 12 + 0 + + 49 + - COALESCE ( + - 71, + 9 ) AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL - ( + CASE - + AVG ( DISTINCT + 76 ) WHEN 46 THEN NULL ELSE - COUNT( * ) * MAX( DISTINCT 48 ) END )
----
48

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - ( + CASE - + AVG ( DISTINCT + 76 ) WHEN 46 THEN NULL ELSE - COUNT ( * ) * MAX ( DISTINCT 48 ) END )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT 94 * COUNT( * ) * + NULLIF ( + 70, - 20 ) col1
----
6580

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT 94 * COUNT ( * ) * + NULLIF ( + 70, - 20 ) col1
----
6580

query I rowsort
SELECT 15 * 97 * + 35 AS col1
----
50925

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT 86 + 69 - + + 44 + COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-5293
SELECT 86 + 69 - + + 44 + COUNT ( * )
----
112

query I rowsort
SELECT CASE 69 WHEN + 78 THEN 17 END + + - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT + 53 * - CASE 25 WHEN + 95 - CASE - 9 WHEN NULLIF ( 16, + 20 ) + COUNT( * ) THEN 26 + - 88 WHEN ( - NULLIF ( - 51, - ( 52 ) * 75 ) ) * + 28 THEN NULL END * 19 THEN NULL WHEN - MIN( 59 ) THEN + ( 92 ) * 3 END * COUNT( * ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT + 53 * - CASE 25 WHEN + 95 - CASE - 9 WHEN NULLIF ( 16, + 20 ) + COUNT ( * ) THEN 26 + - 88 WHEN ( - NULLIF ( - 51, - ( 52 ) * 75 ) ) * + 28 THEN NULL END * 19 THEN NULL WHEN - MIN ( 59 ) THEN + ( 92 ) * 3 END * COUNT ( * ) + 72
----
NULL

query I rowsort
SELECT + - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - COUNT( * ) * + COALESCE ( + + 67, - 87, ( - 23 ) * 58 + 51 ) + + MIN( DISTINCT 59 ) - - COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5297
SELECT - COUNT ( * ) * + COALESCE ( + + 67, - 87, ( - 23 ) * 58 + 51 ) + + MIN ( DISTINCT 59 ) - - COUNT ( * ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL - CAST( 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL - CAST ( 6 AS INTEGER )
----
-6

query I rowsort
SELECT ALL - + 36 * + - 69
----
2484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT 16 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT 16 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT DISTINCT - + COUNT( * ) + + - 46 * - + COUNT( * ) col2
----
45

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT - + COUNT ( * ) + + - 46 * - + COUNT ( * ) col2
----
45

query I rowsort
SELECT + 7 + + 45 col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT 65 + + + 84 + 39 + 22 - + 4 + + CAST( - COUNT( * ) AS SIGNED ) - - COUNT( * ) * + COUNT( * ) * 27 AS col2
----
232

skipif mysql # not compatible
query I rowsort label-5303
SELECT 65 + + + 84 + 39 + 22 - + 4 + + CAST ( - COUNT ( * ) AS INTEGER ) - - COUNT ( * ) * + COUNT ( * ) * 27 AS col2
----
232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5304
SELECT MIN( + - 81 ) DIV + 22
----
-3

skipif mysql # not compatible
query I rowsort label-5304
SELECT MIN ( + - 81 ) / + 22
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT - 60 + + + ( + 58 ) * + NULLIF ( - COUNT( * ), - + 90 * 39 )
----
-118

skipif mysql # not compatible
query I rowsort label-5305
SELECT - 60 + + + ( + 58 ) * + NULLIF ( - COUNT ( * ), - + 90 * 39 )
----
-118

query I rowsort
SELECT DISTINCT + - 31 + 73
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5307
SELECT + CAST( + CASE - + SUM( ( + CAST( NULL AS DECIMAL ) ) ) WHEN - 21 THEN + - 37 + + ( - COALESCE ( 64, 15 ) + - COUNT( * ) ) ELSE 83 + 94 END AS SIGNED ) * 49 col1
----
8673

skipif mysql # not compatible
query I rowsort label-5307
SELECT + CAST ( + CASE - + SUM ( ( + CAST ( NULL AS REAL ) ) ) WHEN - 21 THEN + - 37 + + ( - COALESCE ( 64, 15 ) + - COUNT ( * ) ) ELSE 83 + 94 END AS INTEGER ) * 49 col1
----
8673

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5308
SELECT ALL - 89 + - 35 * - CAST( NULL AS DECIMAL ) / - 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - 89 + - 35 * - CAST ( NULL AS REAL ) / - 86 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL + SUM( DISTINCT + - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL + SUM ( DISTINCT + - 77 ) AS col2
----
-77

query I rowsort
SELECT DISTINCT 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL - + 89 - - MIN( + + 45 )
----
-44

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - + 89 - - MIN ( + + 45 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT 52 + + COUNT( * ) + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-5312
SELECT 52 + + COUNT ( * ) + + COUNT ( * )
----
54

query I rowsort
SELECT 34 col1
----
34

query I rowsort
SELECT 0 * + + 23 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL 95 * COUNT( - 80 )
----
95

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL 95 * COUNT ( - 80 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT + 80 AS col1, - CASE ( - + COUNT( * ) ) WHEN + MAX( + 26 ) + 50 THEN NULL WHEN COUNT( * ) + + 56 * + 6 THEN + COUNT( * ) * 41 END + - 12 * - 63
----
80
NULL

skipif mysql # not compatible
query II rowsort label-5316
SELECT + 80 AS col1, - CASE ( - + COUNT ( * ) ) WHEN + MAX ( + 26 ) + 50 THEN NULL WHEN COUNT ( * ) + + 56 * + 6 THEN + COUNT ( * ) * 41 END + - 12 * - 63
----
80
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5317
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2, + 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II row