sqllogictest
Artifact Content
Not logged in

Artifact e8865f0b4cd39e206cefb207caf5aaa56cf4be42:


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 16 + - 5
----
11

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

skipif mysql # not compatible
query I rowsort label-1
SELECT 47 / - 94
----
0

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

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

query I rowsort
SELECT - 53 - - + 38 * + 13
----
441

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT DISTINCT - CASE COUNT( * ) WHEN + 38 THEN 2 WHEN - + 3 THEN NULL ELSE + - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - CASE COUNT ( * ) WHEN + 38 THEN 2 WHEN - + 3 THEN NULL ELSE + - COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT 85 + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-7
SELECT 85 + - COUNT ( * )
----
84

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

query I rowsort
SELECT - COALESCE ( + 0, - 91 + + 37, 65 - - - 20 )
----
0

query I rowsort
SELECT - 68
----
-68

query I rowsort
SELECT + + 46 + - + 5 + 4 AS col0
----
45

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

query I rowsort
SELECT ALL 7
----
7

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

query I rowsort
SELECT ALL 12 + - - 22
----
34

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

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

query II rowsort
SELECT ALL + 98, 43 * + 19 + - 17 AS col2
----
98
800

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT ALL - SUM( ALL 35 ) + NULLIF ( + 73, - - 6 * + - 92 ) + 16 * + 40 * + 59
----
37798

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL - SUM ( ALL 35 ) + NULLIF ( + 73, - - 6 * + - 92 ) + 16 * + 40 * + 59
----
37798

query I rowsort
SELECT - 98
----
-98

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

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL - COUNT ( * ) + + + 17 + - COUNT ( * ) AS col2
----
15

query I rowsort
SELECT 95 AS col1
----
95

query I rowsort
SELECT + 55
----
55

query I rowsort
SELECT - 41 + + 3
----
-38

query I rowsort
SELECT + 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT NULLIF ( SUM( + 80 ), - 14 * - + 38 * ( - 38 ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-25
SELECT NULLIF ( SUM ( + 80 ), - 14 * - + 38 * ( - 38 ) ) AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT 80 * - 17 + 24 + AVG ( DISTINCT - + 20 ) * - 65 * - CAST( NULL AS SIGNED ) + COALESCE ( COUNT( * ), + 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT 80 * - 17 + 24 + AVG ( DISTINCT - + 20 ) * - 65 * - CAST ( NULL AS INTEGER ) + COALESCE ( COUNT ( * ), + 54 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT - 23 * MIN( - + 47 )
----
1081

skipif mysql # not compatible
query I rowsort label-27
SELECT - 23 * MIN ( - + 47 )
----
1081

query I rowsort
SELECT + 64 col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-29
SELECT - 29 DIV - 8 + COUNT( - 84 ) + + 87 AS col0, - CAST( NULL AS SIGNED ) AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-29
SELECT - 29 / - 8 + COUNT ( - 84 ) + + 87 AS col0, - CAST ( NULL AS INTEGER ) AS col2
----
91
NULL

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

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + ( - + 0 ) * + 14
----
NULL

query I rowsort
SELECT NULLIF ( + 6, - 0 - + 27 ) AS col0
----
6

query I rowsort
SELECT 17 * + 48 + ( + 41 ) + 7 * - 21 col1
----
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-33
SELECT ALL SUM( DISTINCT + - ( - 50 ) ) * COUNT( - CAST( NULL AS DECIMAL ) ) * + CASE 66 WHEN + - 39 + 97 THEN + + 52 WHEN - 89 + + 92 THEN NULL END * - 9 - 97 * - CASE + 80 WHEN - CAST( NULL AS SIGNED ) + 19 THEN + - 22 * + 11 / + 72 WHEN + + 94 THEN + ( + - 13 ) ELSE + 43 * 53 + + COALESCE ( - - COUNT( * ), COALESCE ( - 74, 77, + + 14 * + + CAST( NULL AS SIGNED ) ) * - + 11 ) END + - - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL SUM ( DISTINCT + - ( - 50 ) ) * COUNT ( - CAST ( NULL AS REAL ) ) * + CASE 66 WHEN + - 39 + 97 THEN + + 52 WHEN - 89 + + 92 THEN NULL END * - 9 - 97 * - CASE + 80 WHEN - CAST ( NULL AS INTEGER ) + 19 THEN + - 22 * + 11 / + 72 WHEN + + 94 THEN + ( + - 13 ) ELSE + 43 * 53 + + COALESCE ( - - COUNT ( * ), COALESCE ( - 74, 77, + + 14 * + + CAST ( NULL AS INTEGER ) ) * - + 11 ) END + - - 3 AS col0
----
NULL

query I rowsort
SELECT - 51 * 53
----
-2703

query I rowsort
SELECT COALESCE ( - 81, - - 5 ) AS col0
----
-81

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

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

query I rowsort
SELECT 18 * - ( 31 ) * + 31 + - 84 AS col1
----
-17382

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-39
SELECT + 17 * + 37 + 97 + + CASE + 78 WHEN - - 49 THEN NULL ELSE 27 + - ( 60 ) END AS col1, - MAX( - CAST( NULL AS SIGNED ) ) AS col1
----
693
NULL

skipif mysql # not compatible
query II rowsort label-39
SELECT + 17 * + 37 + 97 + + CASE + 78 WHEN - - 49 THEN NULL ELSE 27 + - ( 60 ) END AS col1, - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1
----
693
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL + + MAX( - ( 30 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + + MAX ( - ( 30 ) ) AS col0
----
-30

query I rowsort
SELECT + + 11 + 3 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-46
SELECT - CASE + + 36 WHEN - 58 THEN - - 28 * - 98 + 72 + - + AVG ( 73 ) WHEN - + 44 THEN NULL WHEN + - 81 THEN 80 * + 51 END * + COUNT( * ) * + 41 AS col1, 44 + + - 33 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-46
SELECT - CASE + + 36 WHEN - 58 THEN - - 28 * - 98 + 72 + - + AVG ( 73 ) WHEN - + 44 THEN NULL WHEN + - 81 THEN 80 * + 51 END * + COUNT ( * ) * + 41 AS col1, 44 + + - 33 AS col0
----
NULL
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT + - 36 + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-48
SELECT + - 36 + - COUNT ( * )
----
-37

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

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

query I rowsort
SELECT - 52
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-52
SELECT + COUNT( * ) * - 10 - - + COUNT( * ) - COALESCE ( + 52, + + COALESCE ( - SUM( ALL - 53 ), + 79 * - CAST( NULL AS SIGNED ) ) ) + - - 75 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-52
SELECT + COUNT ( * ) * - 10 - - + COUNT ( * ) - COALESCE ( + 52, + + COALESCE ( - SUM ( ALL - 53 ), + 79 * - CAST ( NULL AS INTEGER ) ) ) + - - 75 AS col0
----
14

query I rowsort
SELECT - 91
----
-91

query I rowsort
SELECT ALL 43 * 41 * ( + 47 ) * + 25 AS col0
----
2071525

query I rowsort
SELECT - + 87
----
-87

query I rowsort
SELECT 32 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-57
SELECT + + 59 + - + CAST( NULL AS SIGNED ) AS col1, + ( 65 ) DIV + + 17 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-57
SELECT + + 59 + - + CAST ( NULL AS INTEGER ) AS col1, + ( 65 ) / + + 17 AS col1
----
NULL
3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-60
SELECT ALL - AVG ( DISTINCT + 75 ) + CAST( NULL AS SIGNED ) + - 7 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - AVG ( DISTINCT + 75 ) + CAST ( NULL AS INTEGER ) + - 7 + - - COUNT ( * )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-62
SELECT ALL + CAST( - 20 AS SIGNED ) col2, COUNT( * ) AS col0
----
-20
1

skipif mysql # not compatible
query II rowsort label-62
SELECT ALL + CAST ( - 20 AS INTEGER ) col2, COUNT ( * ) AS col0
----
-20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT DISTINCT - 46 + 73 + + 36 * + MAX( DISTINCT - 23 ) AS col2
----
-801

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT - 46 + 73 + + 36 * + MAX ( DISTINCT - 23 ) AS col2
----
-801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-64
SELECT + - COUNT( * ) * - 16 * + - 88 * CAST( - 25 AS SIGNED ) * + 19 + 29
----
668829

skipif mysql # not compatible
query I rowsort label-64
SELECT + - COUNT ( * ) * - 16 * + - 88 * CAST ( - 25 AS INTEGER ) * + 19 + 29
----
668829

query I rowsort
SELECT - 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT + CASE + COUNT( * ) WHEN + 48 THEN NULL ELSE 4 END + + COUNT( * ) + - 19
----
-14

skipif mysql # not compatible
query I rowsort label-66
SELECT + CASE + COUNT ( * ) WHEN + 48 THEN NULL ELSE 4 END + + COUNT ( * ) + - 19
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-67
SELECT ALL 46 + CAST( NULL AS SIGNED ), ( COUNT( - 35 ) ) + - + 52 * 35 AS col0
----
NULL
-1819

skipif mysql # not compatible
query II rowsort label-67
SELECT ALL 46 + CAST ( NULL AS INTEGER ), ( COUNT ( - 35 ) ) + - + 52 * 35 AS col0
----
NULL
-1819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-68
SELECT ALL CASE CAST( - CASE - COUNT( * ) WHEN 73 THEN NULL ELSE + 91 END AS SIGNED ) WHEN - COUNT( * ) * - - 91 * + - 91 THEN + NULLIF ( + 65, + 48 - - + 40 ) WHEN - 91 THEN - 12 END
----
-12

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL CASE CAST ( - CASE - COUNT ( * ) WHEN 73 THEN NULL ELSE + 91 END AS INTEGER ) WHEN - COUNT ( * ) * - - 91 * + - 91 THEN + NULLIF ( + 65, + 48 - - + 40 ) WHEN - 91 THEN - 12 END
----
-12

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

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

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

query I rowsort
SELECT - 53 AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-72
SELECT ALL COALESCE ( + 69, - - 3, NULLIF ( - COALESCE ( 67, + 31, + 38 ), + - 57 ) DIV + 48 * + - CASE + - 31 WHEN + 37 + - - 71 * 84 THEN NULL ELSE + 14 END * + 43 - - 84 * + - COUNT( ALL - + 14 ), + CASE + + COUNT( * ) WHEN + 60 THEN 12 * 41 * + - 8 + - 37 ELSE 87 - + + 3 * + + COUNT( * ) END DIV - 10 ) * 12 * + MAX( - 66 ) col0
----
-54648

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL COALESCE ( + 69, - - 3, NULLIF ( - COALESCE ( 67, + 31, + 38 ), + - 57 ) / + 48 * + - CASE + - 31 WHEN + 37 + - - 71 * 84 THEN NULL ELSE + 14 END * + 43 - - 84 * + - COUNT ( ALL - + 14 ), + CASE + + COUNT ( * ) WHEN + 60 THEN 12 * 41 * + - 8 + - 37 ELSE 87 - + + 3 * + + COUNT ( * ) END / - 10 ) * 12 * + MAX ( - 66 ) col0
----
-54648

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT + 17 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-73
SELECT + 17 / - 68
----
0

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

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

query I rowsort
SELECT 86
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-76
SELECT ALL - 12 - - 80 * + CASE - - CAST( NULL AS SIGNED ) WHEN 84 + - 19 THEN NULL ELSE + - 90 END AS col1
----
-7212

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - 12 - - 80 * + CASE - - CAST ( NULL AS INTEGER ) WHEN 84 + - 19 THEN NULL ELSE + - 90 END AS col1
----
-7212

query I rowsort
SELECT DISTINCT 17 * - 42
----
-714

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

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

query I rowsort
SELECT ALL 52 * NULLIF ( - + 89, + ( + + 66 ) ) AS col0
----
-4628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-80
SELECT CAST( NULL AS SIGNED ), COUNT( + 79 ) + - 18 AS col2
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-80
SELECT CAST ( NULL AS INTEGER ), COUNT ( + 79 ) + - 18 AS col2
----
NULL
-17

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-83
SELECT CAST( 98 AS SIGNED ) col2
----
98

skipif mysql # not compatible
query I rowsort label-83
SELECT CAST ( 98 AS INTEGER ) col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT + 10 * - 22 * CAST( + + ( - 3 ) AS SIGNED ) * - 43 * + 82 AS col2
----
-2327160

skipif mysql # not compatible
query I rowsort label-84
SELECT + 10 * - 22 * CAST ( + + ( - 3 ) AS INTEGER ) * - 43 * + 82 AS col2
----
-2327160

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

onlyif mysql # aggregate syntax: 
query II rowsort label-86
SELECT DISTINCT + 22, 6 + CASE - - COUNT( - 65 ) WHEN + - 58 - - COUNT( * ) THEN - 1 ELSE NULL END AS col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-86
SELECT DISTINCT + 22, 6 + CASE - - COUNT ( - 65 ) WHEN + - 58 - - COUNT ( * ) THEN - 1 ELSE NULL END AS col2
----
22
NULL

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT DISTINCT - 77 DIV 31 * + ( - - 59 ) col0
----
-118

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT - 77 / 31 * + ( - - 59 ) col0
----
-118

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

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL + 59 * - COUNT( DISTINCT ( + ( 65 ) ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL + 59 * - COUNT ( DISTINCT ( + ( 65 ) ) ) AS col0
----
-59

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT 60 * + 71 + + 14 DIV COUNT( * ) AS col0
----
4274

skipif mysql # not compatible
query I rowsort label-94
SELECT 60 * + 71 + + 14 / COUNT ( * ) AS col0
----
4274

query I rowsort
SELECT ( ( 83 ) )
----
83

query I rowsort
SELECT ALL - 87 * 5 col1
----
-435

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

query I rowsort
SELECT - 43 * 7
----
-301

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT + 41 * 79 - COUNT( * ) AS col2
----
3238

skipif mysql # not compatible
query I rowsort label-100
SELECT + 41 * 79 - COUNT ( * ) AS col2
----
3238

query I rowsort
SELECT 53 AS col1
----
53

query I rowsort
SELECT ALL - CASE 93 WHEN + 3 THEN + 69 WHEN 50 + + 52 THEN NULL WHEN 25 THEN 5 END + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT 95 + NULLIF ( + MIN( ALL - 40 ), + 57 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-103
SELECT 95 + NULLIF ( + MIN ( ALL - 40 ), + 57 ) AS col2
----
55

query I rowsort
SELECT 1 * 30 AS col2
----
30

query I rowsort
SELECT 4 + 10 * - 46
----
-456

query I rowsort
SELECT ALL 75 col2
----
75

query I rowsort
SELECT 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT ALL + COUNT( * ) + + 66 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL + COUNT ( * ) + + 66 AS col1
----
67

query I rowsort
SELECT - 31
----
-31

query I rowsort
SELECT 26 AS col1
----
26

query I rowsort
SELECT - 88
----
-88

query I rowsort
SELECT 39 + 65 AS col0
----
104

query I rowsort
SELECT ALL - 25 * 35 AS col2
----
-875

query I rowsort
SELECT 34
----
34

query I rowsort
SELECT 69
----
69

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

query I rowsort
SELECT 77 AS col2
----
77

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

query I rowsort
SELECT - 99
----
-99

query I rowsort
SELECT 29 + - 73 * - 5 AS col2
----
394

query I rowsort
SELECT - 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-122
SELECT DISTINCT 6 - COALESCE ( 28, CASE - CAST( + 84 AS SIGNED ) WHEN ( COUNT( * ) ) THEN NULL ELSE 99 * + 80 END DIV 73 + - 92 DIV 80 )
----
-22

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT 6 - COALESCE ( 28, CASE - CAST ( + 84 AS INTEGER ) WHEN ( COUNT ( * ) ) THEN NULL ELSE 99 * + 80 END / 73 + - 92 / 80 )
----
-22

query I rowsort
SELECT DISTINCT + 8 * 19 col0
----
152

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

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT ALL 58 DIV - 7 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL 58 / - 7 AS col0
----
-8

query I rowsort
SELECT 77 AS col0
----
77

query I rowsort
SELECT 35 + 20 AS col0
----
55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT ALL 5 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL 5 / - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT NULLIF ( 32, 96 ) * - ( + COUNT( * ) * + 96 ) AS col1
----
-3072

skipif mysql # not compatible
query I rowsort label-130
SELECT NULLIF ( 32, 96 ) * - ( + COUNT ( * ) * + 96 ) AS col1
----
-3072

query I rowsort
SELECT ( - 0 ) * 25 AS col2
----
0

query I rowsort
SELECT 54 * + 99
----
5346

query I rowsort
SELECT 1
----
1

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

query I rowsort
SELECT 54 * + 10 + 79 col0
----
619

query I rowsort
SELECT 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL - COALESCE ( 80, 59 + COUNT( * ) * 62 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - COALESCE ( 80, 59 + COUNT ( * ) * 62 ) AS col1
----
-80

query I rowsort
SELECT + 88 col0
----
88

query I rowsort
SELECT DISTINCT - 12
----
-12

query I rowsort
SELECT ALL 62 * - 53 AS col2
----
-3286

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL + 91 + - COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + 91 + - COUNT ( * ) AS col1
----
90

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

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

query I rowsort
SELECT + + 86
----
86

query I rowsort
SELECT 2 * - 83 col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT - 49 * + 91 + + 24 * + COUNT( * )
----
-4435

skipif mysql # not compatible
query I rowsort label-146
SELECT - 49 * + 91 + + 24 * + COUNT ( * )
----
-4435

query I rowsort
SELECT + 52
----
52

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

query I rowsort
SELECT DISTINCT + 72 + 93 AS col1
----
165

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

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

query I rowsort
SELECT + 14
----
14

query I rowsort
SELECT + 47 + ( - 22 ) * 65 AS col1
----
-1383

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL + COUNT( * ) + + ( - 75 + 71 ) * - 64
----
257

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + COUNT ( * ) + + ( - 75 + 71 ) * - 64
----
257

query I rowsort
SELECT + - 71
----
-71

query I rowsort
SELECT ALL - - 39
----
39

query I rowsort
SELECT + - 1
----
-1

query I rowsort
SELECT ALL - - 78
----
78

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-160
SELECT ALL - SUM( - 30 ) + 73 * ( ( CAST( + ( 38 ) AS SIGNED ) ) )
----
2804

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL - SUM ( - 30 ) + 73 * ( ( CAST ( + ( 38 ) AS INTEGER ) ) )
----
2804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-161
SELECT - COUNT( * ) + + 9 * + CAST( 56 + CAST( 20 + MIN( DISTINCT - 67 ) AS SIGNED ) * COUNT( * ) AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-161
SELECT - COUNT ( * ) + + 9 * + CAST ( 56 + CAST ( 20 + MIN ( DISTINCT - 67 ) AS INTEGER ) * COUNT ( * ) AS INTEGER ) AS col2
----
80

query I rowsort
SELECT ALL 48
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT CASE + 82 WHEN 83 + 46 * 29 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT CASE + 82 WHEN 83 + 46 * 29 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT - 82 * 52 + - CASE - 14 + 99 WHEN - ( - 51 ) * COUNT( * ) THEN NULL WHEN - 95 + 9 THEN 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT - 82 * 52 + - CASE - 14 + 99 WHEN - ( - 51 ) * COUNT ( * ) THEN NULL WHEN - 95 + 9 THEN 5 END
----
NULL

query I rowsort
SELECT + 89 * 3
----
267

query I rowsort
SELECT - 21 AS col1
----
-21

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

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

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

query I rowsort
SELECT - 11 + + 64 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT 19 DIV NULLIF ( + 29, 50 + + 20 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-171
SELECT 19 / NULLIF ( + 29, 50 + + 20 ) col0
----
0

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

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

query I rowsort
SELECT DISTINCT 2
----
2

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

query I rowsort
SELECT 41
----
41

query I rowsort
SELECT ALL 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT 61 + + 25 + + 13 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-178
SELECT 61 + + 25 + + 13 * COUNT ( * )
----
99

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

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

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

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

query I rowsort
SELECT 35 * 11 col2
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT MIN( + + 70 ) + 34
----
104

skipif mysql # not compatible
query I rowsort label-182
SELECT MIN ( + + 70 ) + 34
----
104

query I rowsort
SELECT - 15 col1
----
-15

query I rowsort
SELECT - 17
----
-17

query I rowsort
SELECT 80 + + 33 + + 69 AS col1
----
182

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

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

query I rowsort
SELECT - 20 AS col2
----
-20

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

query I rowsort
SELECT DISTINCT 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT + 77 * + + SUM( + 28 ) AS col1
----
2156

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT + 77 * + + SUM ( + 28 ) AS col1
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL + 59 + MAX( DISTINCT - 35 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL + 59 + MAX ( DISTINCT - 35 ) col1
----
24

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

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

query I rowsort
SELECT ALL - 24 * 40 + 91 * 62
----
4682

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

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

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

query I rowsort
SELECT ALL - 34
----
-34

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

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

query I rowsort
SELECT + - 16
----
-16

query I rowsort
SELECT + - 49 * 76 AS col2
----
-3724

query I rowsort
SELECT + 58
----
58

query I rowsort
SELECT 8 AS col0
----
8

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

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

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

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

query I rowsort
SELECT ALL 34 * + 77 + + 22 col0
----
2640

query I rowsort
SELECT DISTINCT - - ( ( 60 ) ) * + 6 + - 36
----
324

query I rowsort
SELECT ALL - - 57 * - + 74 * - 96 + + 28
----
404956

query I rowsort
SELECT ALL - 16 * - 95
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT MIN( DISTINCT - + ( 3 ) ) * 84 + 36
----
-216

skipif mysql # not compatible
query I rowsort label-209
SELECT MIN ( DISTINCT - + ( 3 ) ) * 84 + 36
----
-216

query I rowsort
SELECT 64
----
64

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

query I rowsort
SELECT 1 AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL + COUNT( * ) * + COALESCE ( 2, COALESCE ( COUNT( DISTINCT - 11 ), 21 + 66 ) * 87 ) * - ( COUNT( * ) ) - 39
----
-41

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + COUNT ( * ) * + COALESCE ( 2, COALESCE ( COUNT ( DISTINCT - 11 ), 21 + 66 ) * 87 ) * - ( COUNT ( * ) ) - 39
----
-41

query I rowsort
SELECT - 56 * - - 14 AS col0
----
-784

query I rowsort
SELECT ALL - 75
----
-75

query I rowsort
SELECT DISTINCT 11 col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT - COUNT( * ) * - 67 * COUNT( * ) - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-218
SELECT - COUNT ( * ) * - 67 * COUNT ( * ) - COUNT ( * )
----
66

query I rowsort
SELECT ALL + 53 * + + 73
----
3869

query I rowsort
SELECT - 53 AS col2
----
-53

query I rowsort
SELECT 31 AS col0
----
31

query I rowsort
SELECT ALL CASE 6 WHEN 76 + - 99 * 53 THEN - 69 WHEN - 63 / + ( ( 25 ) ) THEN NULL ELSE - 56 END
----
-56

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

skipif mysql # not compatible
query I rowsort label-223
SELECT - COUNT ( * ) - - COUNT ( * )
----
0

query I rowsort
SELECT - 15 col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-225
SELECT - 5 * - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT - 5 * - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT - CASE - - 49 WHEN + 32 * 79 THEN NULL ELSE + 53 * - 16 END * - COUNT( * )
----
-848

skipif mysql # not compatible
query I rowsort label-227
SELECT - CASE - - 49 WHEN + 32 * 79 THEN NULL ELSE + 53 * - 16 END * - COUNT ( * )
----
-848

query I rowsort
SELECT ALL + 91 + - 41 * 18 col1
----
-647

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL - SUM( - 69 ) + - + 95
----
-26

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL - SUM ( - 69 ) + - + 95
----
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT - COUNT( * ) + + - MIN( DISTINCT 69 )
----
-70

skipif mysql # not compatible
query I rowsort label-232
SELECT - COUNT ( * ) + + - MIN ( DISTINCT 69 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT - 92 AS col2, COALESCE ( MAX( 94 ), 1 )
----
-92
94

skipif mysql # not compatible
query II rowsort label-233
SELECT - 92 AS col2, COALESCE ( MAX ( 94 ), 1 )
----
-92
94

query I rowsort
SELECT + 3 * + + 57
----
171

query I rowsort
SELECT + 66 * - 79 + 32 - + 47 * NULLIF ( 69, - 87 )
----
-8425

query I rowsort
SELECT 36
----
36

query I rowsort
SELECT 4
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-238
SELECT DISTINCT - 19 DIV + 87 + + - NULLIF ( 17, + COUNT( * ) ) * NULLIF ( - 40, - 42 - 9 * 35 ) AS col1
----
680

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT - 19 / + 87 + + - NULLIF ( 17, + COUNT ( * ) ) * NULLIF ( - 40, - 42 - 9 * 35 ) AS col1
----
680

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

query I rowsort
SELECT - 68 + 9
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL - 76 / + 49 * + CASE + NULLIF ( AVG ( - 45 ), + 87 ) WHEN + 29 + - 27 THEN + ( 83 ) WHEN COUNT( * ) THEN + NULLIF ( + 7, + 79 ) END + - NULLIF ( - ( - 39 ) + 83, + 84 * 72 ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL - 76 / + 49 * + CASE + NULLIF ( AVG ( - 45 ), + 87 ) WHEN + 29 + - 27 THEN + ( 83 ) WHEN COUNT ( * ) THEN + NULLIF ( + 7, + 79 ) END + - NULLIF ( - ( - 39 ) + 83, + 84 * 72 ) / COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT - - COUNT( * ) * + + NULLIF ( - 3, 59 ) * - 49
----
147

skipif mysql # not compatible
query I rowsort label-242
SELECT - - COUNT ( * ) * + + NULLIF ( - 3, 59 ) * - 49
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT + MIN( + - 29 ) + 51 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-243
SELECT + MIN ( + - 29 ) + 51 AS col2
----
22

query II rowsort
SELECT ALL + + 60, - 97 * - 3 AS col0
----
60
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-245
SELECT + COALESCE ( - CAST( - 46 AS SIGNED ), - 73 * - 94 )
----
46

skipif mysql # not compatible
query I rowsort label-245
SELECT + COALESCE ( - CAST ( - 46 AS INTEGER ), - 73 * - 94 )
----
46

query I rowsort
SELECT 51 * - - 65 + - 45 AS col2
----
3270

query I rowsort
SELECT - 44 * + 35 * - + 55 AS col2
----
84700

query I rowsort
SELECT 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT - - 39 * - 62 + - - COUNT( * )
----
-2417

skipif mysql # not compatible
query I rowsort label-249
SELECT - - 39 * - 62 + - - COUNT ( * )
----
-2417

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-250
SELECT 16, COALESCE ( + COUNT( * ), + 35, 79 * 53 ) DIV + 42 AS col2
----
16
0

skipif mysql # not compatible
query II rowsort label-250
SELECT 16, COALESCE ( + COUNT ( * ), + 35, 79 * 53 ) / + 42 AS col2
----
16
0

query I rowsort
SELECT + 33
----
33

query I rowsort
SELECT + + 1 + - - 78 AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-253
SELECT ALL COUNT( * ) DIV - 86 * + ( + 53 ) + + 26
----
26

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL COUNT ( * ) / - 86 * + ( + 53 ) + + 26
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT + 71 DIV + - 83 * + 23 * + 91
----
0

skipif mysql # not compatible
query I rowsort label-254
SELECT + 71 / + - 83 * + 23 * + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT + COALESCE ( + 91, 98, 95 + 35 ) DIV 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-255
SELECT + COALESCE ( + 91, 98, 95 + 35 ) / 78 AS col2
----
1

query I rowsort
SELECT ALL - 5 * + 15 AS col0
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL MAX( + 2 ) * + 64
----
128

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL MAX ( + 2 ) * + 64
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-259
SELECT + - 24 DIV - + 20 col0
----
1

skipif mysql # not compatible
query I rowsort label-259
SELECT + - 24 / - + 20 col0
----
1

query I rowsort
SELECT DISTINCT + 21
----
21

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

query I rowsort
SELECT + + 49 * 32
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT ALL + 44 * + COUNT( * ) * - 68
----
-2992

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL + 44 * + COUNT ( * ) * - 68
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT + NULLIF ( + + MIN( - 36 ), - COUNT( * ) + 1 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-264
SELECT + NULLIF ( + + MIN ( - 36 ), - COUNT ( * ) + 1 ) AS col2
----
-36

query I rowsort
SELECT CASE - 6 WHEN - - 92 + - - 49 THEN + 27 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT CASE - ( + - COUNT( DISTINCT + - 67 ) ) WHEN 75 + + 13 THEN - 0 + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-266
SELECT CASE - ( + - COUNT ( DISTINCT + - 67 ) ) WHEN 75 + + 13 THEN - 0 + 7 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 52
----
52

query I rowsort
SELECT - 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT - 74 * + - ( + COUNT( * ) ) * 42 + 13
----
3121

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT - 74 * + - ( + COUNT ( * ) ) * 42 + 13
----
3121

query I rowsort
SELECT ALL - 31 * - + ( - 25 )
----
-775

query I rowsort
SELECT + 81 * + 46
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT ALL 87 + - COUNT( * ) * - - 77 * + 13
----
-914

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL 87 + - COUNT ( * ) * - - 77 * + 13
----
-914

query I rowsort
SELECT DISTINCT 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT ALL + COUNT( ALL + 72 ) + COALESCE ( + 67, - 45 * + 49 + + 57 ) * + 96
----
6433

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + COUNT ( ALL + 72 ) + COALESCE ( + 67, - 45 * + 49 + + 57 ) * + 96
----
6433

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL - 5 + - 0 + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL - 5 + - 0 + - COUNT ( * )
----
-6

query I rowsort
SELECT 3
----
3

query I rowsort
SELECT ALL 39 * - 21
----
-819

query I rowsort
SELECT - 51 + 76
----
25

query I rowsort
SELECT 11 AS col0
----
11

query I rowsort
SELECT - 81 AS col0
----
-81

query I rowsort
SELECT ALL + 60 + - 99 AS col1
----
-39

query I rowsort
SELECT - 37
----
-37

query I rowsort
SELECT AVG ( DISTINCT - + 94 ) / + + CASE - 41 WHEN 32 THEN - 96 * - CASE 35 WHEN - 65 THEN 83 ELSE 70 END ELSE NULL END + + 82 * 63 AS col0
----
NULL

query I rowsort
SELECT 98 col0
----
98

query I rowsort
SELECT ALL + 41 + 64 AS col2
----
105

query I rowsort
SELECT DISTINCT + 51
----
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT - MIN( - 64 ) * - - 43 AS col0
----
2752

skipif mysql # not compatible
query I rowsort label-288
SELECT - MIN ( - 64 ) * - - 43 AS col0
----
2752

query I rowsort
SELECT 75 col2
----
75

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

query I rowsort
SELECT - 94 AS col1
----
-94

query I rowsort
SELECT 37
----
37

query I rowsort
SELECT + 44
----
44

query I rowsort
SELECT 18 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT - 41 * - + NULLIF ( - - COUNT( * ), + AVG ( DISTINCT + 19 ) / - 77 + - 72 ) + 88 * 33 AS col0
----
2945

skipif mysql # not compatible
query I rowsort label-295
SELECT - 41 * - + NULLIF ( - - COUNT ( * ), + AVG ( DISTINCT + 19 ) / - 77 + - 72 ) + 88 * 33 AS col0
----
2945

query I rowsort
SELECT + + 92
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT - + 63 / + 58 * - - CASE - 80 WHEN + 66 / CASE 67 * 45 WHEN - 8 * 3 THEN COUNT( * ) / NULLIF ( - COALESCE ( ( 57 ), 40, 17 ), 61 ) ELSE NULL END THEN NULL WHEN 78 THEN CAST( 85 AS SIGNED ) + + ( 55 ) * 94 END + 64 - CAST( 13 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT - + 63 / + 58 * - - CASE - 80 WHEN + 66 / CASE 67 * 45 WHEN - 8 * 3 THEN COUNT ( * ) / NULLIF ( - COALESCE ( ( 57 ), 40, 17 ), 61 ) ELSE NULL END THEN NULL WHEN 78 THEN CAST ( 85 AS INTEGER ) + + ( 55 ) * 94 END + 64 - CAST ( 13 AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL - + 62 * + COALESCE ( 10, + + 8 ) AS col1
----
-620

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-300
SELECT 56 * - CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-300
SELECT 56 * - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + + 71 col1
----
71

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

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

query I rowsort
SELECT DISTINCT - - 12 * + + 22 AS col0
----
264

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

query I rowsort
SELECT ALL - 5
----
-5

query I rowsort
SELECT 79 * + - ( NULLIF ( - + 46, 48 + + 34 ) ) - - 54 * 91 AS col0
----
8548

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

query I rowsort
SELECT 35 * 0 + 25
----
25

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

query I rowsort
SELECT 36 AS col2
----
36

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

query I rowsort
SELECT DISTINCT + 90 + + - 93 + - ( + 37 )
----
-40

query I rowsort
SELECT + 48
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-314
SELECT + 0 AS col0, 38 * - COUNT( * ) AS col0
----
0
-38

skipif mysql # not compatible
query II rowsort label-314
SELECT + 0 AS col0, 38 * - COUNT ( * ) AS col0
----
0
-38

query I rowsort
SELECT NULLIF ( 96, + 37 + - 0 ) * + + 49 + + 55
----
4759

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-319
SELECT ALL + ( + 48 ) DIV MAX( ALL + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + ( + 48 ) / MAX ( ALL + 33 )
----
1

query I rowsort
SELECT 73 + + 1 AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT ALL - 72 + - - 86 DIV 93 * - 56
----
-72

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL - 72 + - - 86 / 93 * - 56
----
-72

query I rowsort
SELECT DISTINCT + 18 * 94
----
1692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-323
SELECT ALL COUNT( * ) + - MAX( DISTINCT 1 ) DIV 90 + - - 46 * + 84
----
3865

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL COUNT ( * ) + - MAX ( DISTINCT 1 ) / 90 + - - 46 * + 84
----
3865

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

query I rowsort
SELECT ALL 70
----
70

query I rowsort
SELECT - 71 AS col0
----
-71

query I rowsort
SELECT - 72 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT 99 + COUNT( * ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-328
SELECT 99 + COUNT ( * ) AS col1
----
100

query I rowsort
SELECT 51
----
51

query I rowsort
SELECT - 26
----
-26

query I rowsort
SELECT ALL 33 + + - 62
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL SUM( + 9 ) + 56 + - COUNT( * ) * - COUNT( DISTINCT + 42 ) * ( 66 + + NULLIF ( 66 + + 14, ( - 52 ) / MAX( ( - 71 ) ) ) )
----
211

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL SUM ( + 9 ) + 56 + - COUNT ( * ) * - COUNT ( DISTINCT + 42 ) * ( 66 + + NULLIF ( 66 + + 14, ( - 52 ) / MAX ( ( - 71 ) ) ) )
----
211

query I rowsort
SELECT - 80 AS col1
----
-80

query I rowsort
SELECT 94 AS col0
----
94

query I rowsort
SELECT CASE - - 49 WHEN + - 6 + - 69 THEN 51 END - 45
----
NULL

query I rowsort
SELECT 88 * + - 78 AS col0
----
-6864

query I rowsort
SELECT - 35
----
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ALL 97 - - 11 + COUNT( + - 47 ) - + - 30 + + 46
----
185

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 97 - - 11 + COUNT ( + - 47 ) - + - 30 + + 46
----
185

query I rowsort
SELECT ALL 89
----
89

query I rowsort
SELECT 80 AS col0
----
80

query I rowsort
SELECT 96 AS col0
----
96

query I rowsort
SELECT ALL - 35
----
-35

query I rowsort
SELECT 22 - + 69 + + + 68 * + 89 + 87
----
6092

query I rowsort
SELECT - 27
----
-27

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

query I rowsort
SELECT 25 + - 11 AS col1
----
14

query I rowsort
SELECT 71 * 92 col0
----
6532

query I rowsort
SELECT - 11
----
-11

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

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

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

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

query I rowsort
SELECT - + 17
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT - 19 * + COUNT( * ) + + COUNT( * ) + - 91 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-354
SELECT - 19 * + COUNT ( * ) + + COUNT ( * ) + - 91 AS col2
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-355
SELECT CAST( COALESCE ( + SUM( ALL 94 ), 5 ) AS SIGNED ) * 83 col2
----
7802

skipif mysql # not compatible
query I rowsort label-355
SELECT CAST ( COALESCE ( + SUM ( ALL 94 ), 5 ) AS INTEGER ) * 83 col2
----
7802

query I rowsort
SELECT DISTINCT - - 78
----
78

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-358
SELECT - + 2 DIV - - COUNT( * ) + - 22 col1
----
-24

skipif mysql # not compatible
query I rowsort label-358
SELECT - + 2 / - - COUNT ( * ) + - 22 col1
----
-24

query I rowsort
SELECT ALL - 68 * + 15 + - - 18 * + + 57
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-360
SELECT ALL - - 6 AS col2, + 12 - - MIN( DISTINCT + 66 ) AS col0
----
6
78

skipif mysql # not compatible
query II rowsort label-360
SELECT ALL - - 6 AS col2, + 12 - - MIN ( DISTINCT + 66 ) AS col0
----
6
78

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

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

query I rowsort
SELECT ALL - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-364
SELECT - 89 + + CAST( - 43 AS SIGNED ) AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-364
SELECT - 89 + + CAST ( - 43 AS INTEGER ) AS col0
----
-132

query I rowsort
SELECT + 7
----
7

query I rowsort
SELECT 33 * CASE 74 WHEN 58 THEN - COALESCE ( + 14, NULLIF ( - 35, 35 + 99 * 89 ) + 53, - 79 ) WHEN ( 50 ) THEN NULL ELSE NULL END * - 23 + 56 AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT + 56 DIV - 7 + - ( 0 ) + - 47 + + 39 * + 94 AS col0
----
3611

skipif mysql # not compatible
query I rowsort label-368
SELECT + 56 / - 7 + - ( 0 ) + - 47 + + 39 * + 94 AS col0
----
3611

onlyif mysql # DIV for integer division: 
query I rowsort label-369
SELECT ALL + + NULLIF ( 62, + 84 ) + 76 + 23 DIV - 63
----
138

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL + + NULLIF ( 62, + 84 ) + 76 + 23 / - 63
----
138

query I rowsort
SELECT 69 col1
----
69

query I rowsort
SELECT + 2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-372
SELECT 83 + - + 29 + - + MIN( ALL ( + 25 ) ) * - 1 DIV + 98
----
54

skipif mysql # not compatible
query I rowsort label-372
SELECT 83 + - + 29 + - + MIN ( ALL ( + 25 ) ) * - 1 / + 98
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-373
SELECT COUNT( * ), SUM( + - 51 ) + + - MAX( + 4 ) + + 75 AS col0
----
1
20

skipif mysql # not compatible
query II rowsort label-373
SELECT COUNT ( * ), SUM ( + - 51 ) + + - MAX ( + 4 ) + + 75 AS col0
----
1
20

query I rowsort
SELECT ALL - 31 * 31 AS col1
----
-961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-375
SELECT ALL + 77 + - 42 * COALESCE ( - 82, - 77 + 91 + - NULLIF ( 71, + 87 ) * 12 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + 77 + - 42 * COALESCE ( - 82, - 77 + 91 + - NULLIF ( 71, + 87 ) * 12 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 50 * - + 96
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT 73 * - NULLIF ( + NULLIF ( + COALESCE ( + - 3, + 7, + 50 ), - CASE 77 WHEN COUNT( * ) * COUNT( * ) + - 15 THEN COUNT( ALL + 8 ) + 63 / 41 ELSE NULL END ), 53 ) col0
----
219

skipif mysql # not compatible
query I rowsort label-377
SELECT 73 * - NULLIF ( + NULLIF ( + COALESCE ( + - 3, + 7, + 50 ), - CASE 77 WHEN COUNT ( * ) * COUNT ( * ) + - 15 THEN COUNT ( ALL + 8 ) + 63 / 41 ELSE NULL END ), 53 ) col0
----
219

query I rowsort
SELECT ALL + 4 + 98 AS col0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-379
SELECT + 58 AS col0, - 9 / - 9 + COUNT( * ) - CASE 83 WHEN 12 THEN - 48 WHEN 90 THEN NULL END
----
58
NULL

skipif mysql # not compatible
query II rowsort label-379
SELECT + 58 AS col0, - 9 / - 9 + COUNT ( * ) - CASE 83 WHEN 12 THEN - 48 WHEN 90 THEN NULL END
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL - 77 + CASE - MIN( ALL + 33 ) WHEN + - 65 * - 2 * 6 THEN 70 + 32 ELSE NULL END + - 40 * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - 77 + CASE - MIN ( ALL + 33 ) WHEN + - 65 * - 2 * 6 THEN 70 + 32 ELSE NULL END + - 40 * + 70
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT + 14 AS col1, 74 + + + COUNT( DISTINCT 86 ) + + 72 + + 94 * 15 * COUNT( * )
----
14
1557

skipif mysql # not compatible
query II rowsort label-382
SELECT + 14 AS col1, 74 + + + COUNT ( DISTINCT 86 ) + + 72 + + 94 * 15 * COUNT ( * )
----
14
1557

query I rowsort
SELECT 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL - COUNT( * ) + ( 53 )
----
52

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - COUNT ( * ) + ( 53 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT - 16 + - + NULLIF ( + SUM( 83 ), - + 69 + + 18 + + 15 ) + + 39 * COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-385
SELECT - 16 + - + NULLIF ( + SUM ( 83 ), - + 69 + + 18 + + 15 ) + + 39 * COUNT ( * ) AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-386
SELECT - CAST( + 19 AS SIGNED ) + + 40 DIV - 95 + 40
----
21

skipif mysql # not compatible
query I rowsort label-386
SELECT - CAST ( + 19 AS INTEGER ) + + 40 / - 95 + 40
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-387
SELECT ALL + MAX( - 26 ) - CASE - 53 WHEN - + 88 * - CAST( + SUM( - 29 ) AS SIGNED ) + - 26 THEN NULL ELSE + 26 * - CAST( NULL AS DECIMAL ) + 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL + MAX ( - 26 ) - CASE - 53 WHEN - + 88 * - CAST ( + SUM ( - 29 ) AS INTEGER ) + - 26 THEN NULL ELSE + 26 * - CAST ( NULL AS REAL ) + 92 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT DISTINCT + 87 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT + 87 / + 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT ALL 80 * - 65 * - COUNT( DISTINCT - 92 ) col2, COUNT( * ) AS col2
----
5200
1

skipif mysql # not compatible
query II rowsort label-389
SELECT ALL 80 * - 65 * - COUNT ( DISTINCT - 92 ) col2, COUNT ( * ) AS col2
----
5200
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT + 44 * CASE + ( - 10 ) WHEN + 59 THEN - 40 * 34 WHEN + 92 * + 99 + 18 THEN - MIN( ALL - 72 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-391
SELECT + 44 * CASE + ( - 10 ) WHEN + 59 THEN - 40 * 34 WHEN + 92 * + 99 + 18 THEN - MIN ( ALL - 72 ) END
----
NULL

query I rowsort
SELECT ALL + 70 * - 74
----
-5180

query I rowsort
SELECT DISTINCT - 15 * ( 22 )
----
-330

query II rowsort
SELECT + 48 * + 59 * + - 36 + - 86 AS col0, ( - 56 )
----
-102038
-56

query I rowsort
SELECT DISTINCT + 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT + + ( MAX( DISTINCT + + 19 ) ) + + MIN( DISTINCT 9 ) + 75 * - 16
----
-1172

skipif mysql # not compatible
query I rowsort label-396
SELECT + + ( MAX ( DISTINCT + + 19 ) ) + + MIN ( DISTINCT 9 ) + 75 * - 16
----
-1172

query I rowsort
SELECT - 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + SUM( DISTINCT - - 68 ) + + + 69
----
137

skipif mysql # not compatible
query I rowsort label-398
SELECT + SUM ( DISTINCT - - 68 ) + + + 69
----
137

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

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

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

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

query I rowsort
SELECT DISTINCT 35
----
35

query I rowsort
SELECT ALL ( + - 91 ) * + - 28
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT + CASE - ( - COUNT( * ) ) WHEN + 26 THEN ( - 70 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT + CASE - ( - COUNT ( * ) ) WHEN + 26 THEN ( - 70 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-404
SELECT ALL 34 + - 43 + + + ( COALESCE ( + - COUNT( * ), 18 + - 5, - COALESCE ( 92, 1 DIV 94 + 7 ) * ( - COUNT( * ) ), 42 * 77 ) ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL 34 + - 43 + + + ( COALESCE ( + - COUNT ( * ), 18 + - 5, - COALESCE ( 92, 1 / 94 + 7 ) * ( - COUNT ( * ) ), 42 * 77 ) ) col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT DISTINCT 38 DIV - + 14 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT 38 / - + 14 AS col1
----
-2

query I rowsort
SELECT + + 68 * + 25 * 53 AS col2
----
90100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT ALL + COUNT( DISTINCT 84 ) * 84 * - MAX( + 63 ) * 52 * CAST( + 20 * - 50 AS SIGNED ) + 3
----
275184003

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL + COUNT ( DISTINCT 84 ) * 84 * - MAX ( + 63 ) * 52 * CAST ( + 20 * - 50 AS INTEGER ) + 3
----
275184003

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

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

query I rowsort
SELECT + - 34
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT - 25 AS col0, - COUNT( + 92 ) * - 49 col0
----
-25
49

skipif mysql # not compatible
query II rowsort label-410
SELECT - 25 AS col0, - COUNT ( + 92 ) * - 49 col0
----
-25
49

query I rowsort
SELECT - 58
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-412
SELECT DISTINCT + NULLIF ( + 38, 49 ) * + 22 + + CAST( - COALESCE ( + 43, - 14 ) AS SIGNED ) + 51 * 91 col0
----
5434

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT + NULLIF ( + 38, 49 ) * + 22 + + CAST ( - COALESCE ( + 43, - 14 ) AS INTEGER ) + 51 * 91 col0
----
5434

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT + 12 DIV 9 + + 66 - + 4 + - 77 + + 3 DIV + 67 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-413
SELECT + 12 / 9 + + 66 - + 4 + - 77 + + 3 / + 67 AS col2
----
-14

query I rowsort
SELECT + - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL COUNT( * ) * + 15 * + - 32 * - 62 + + - 62 AS col2
----
29698

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL COUNT ( * ) * + 15 * + - 32 * - 62 + + - 62 AS col2
----
29698

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-416
SELECT ( 79 ) AS col0, - COUNT( * ) DIV + 27 * - 56
----
79
0

skipif mysql # not compatible
query II rowsort label-416
SELECT ( 79 ) AS col0, - COUNT ( * ) / + 27 * - 56
----
79
0

onlyif mysql # DIV for integer division: 
query II rowsort label-417
SELECT ALL + 59 * - 1 + + - ( - ( - + 25 ) ), 96 + 16 + 34 DIV 80 AS col0
----
-84
112

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL + 59 * - 1 + + - ( - ( - + 25 ) ), 96 + 16 + 34 / 80 AS col0
----
-84
112

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

query I rowsort
SELECT DISTINCT 88 * + + 17
----
1496

query I rowsort
SELECT - 58 * 39 AS col2
----
-2262

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-422
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 43 * - 7 + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 43 * - 7 + - 23 AS col1
----
NULL

query I rowsort
SELECT + 5 + 85 + - - 20 AS col0
----
110

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

query I rowsort
SELECT - 87 * 42 AS col0
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT ( - 95 ) * - MAX( DISTINCT - ( + 80 ) ) * + 23 + - 94
----
-174894

skipif mysql # not compatible
query I rowsort label-426
SELECT ( - 95 ) * - MAX ( DISTINCT - ( + 80 ) ) * + 23 + - 94
----
-174894

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-429
SELECT - CAST( + + ( + + 56 ) AS SIGNED ) + + 77 DIV 45 DIV 99 * - 30 DIV COALESCE ( 80, 45 ) + 23
----
-33

skipif mysql # not compatible
query I rowsort label-429
SELECT - CAST ( + + ( + + 56 ) AS INTEGER ) + + 77 / 45 / 99 * - 30 / COALESCE ( 80, 45 ) + 23
----
-33

query I rowsort
SELECT ALL 20 * 89 - 42 * NULLIF ( - 12, - + 7 / - - 61 * 57 )
----
2284

query I rowsort
SELECT DISTINCT + 37
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT DISTINCT + 83 * 71 DIV 63 * 91 col1
----
8463

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + 83 * 71 / 63 * 91 col1
----
8463

query I rowsort
SELECT DISTINCT + 34 * 21 - + 21 AS col1
----
693

onlyif mysql # aggregate syntax: 
query II rowsort label-434
SELECT DISTINCT ( - 74 ) col1, 34 * + 80 * - + SUM( - 94 ) - + 97 AS col1
----
-74
255583

skipif mysql # not compatible
query II rowsort label-434
SELECT DISTINCT ( - 74 ) col1, 34 * + 80 * - + SUM ( - 94 ) - + 97 AS col1
----
-74
255583

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

query I rowsort
SELECT 88
----
88

query I rowsort
SELECT - 23 col1
----
-23

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-439
SELECT ALL - - 48 DIV + - 63 AS col1, 82 + + + CAST( NULL AS SIGNED ) * + + 40
----
0
NULL

skipif mysql # not compatible
query II rowsort label-439
SELECT ALL - - 48 / + - 63 AS col1, 82 + + + CAST ( NULL AS INTEGER ) * + + 40
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-440
SELECT - CAST( NULL AS SIGNED ) + - 22 + + 73 AS col0, + 17 + + + MIN( + - CAST( NULL AS SIGNED ) ) + + + 10 + + 88 * + 79 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-440
SELECT - CAST ( NULL AS INTEGER ) + - 22 + + 73 AS col0, + 17 + + + MIN ( + - CAST ( NULL AS INTEGER ) ) + + + 10 + + 88 * + 79 AS col2
----
NULL
NULL

query I rowsort
SELECT - - 0
----
0

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

query I rowsort
SELECT - 21 + - - 26 col0
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT ALL - 52 + - COUNT( 49 )
----
-53

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL - 52 + - COUNT ( 49 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-446
SELECT + 48 * + 89 + SUM( DISTINCT 35 ) + 2 + + - SUM( - + 10 ) + 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT + 48 * + 89 + SUM ( DISTINCT 35 ) + 2 + + - SUM ( - + 10 ) + 21 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-447
SELECT ALL + + 68 + - CAST( + 69 AS SIGNED ), - 53 AS col2
----
-1
-53

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL + + 68 + - CAST ( + 69 AS INTEGER ), - 53 AS col2
----
-1
-53

query I rowsort
SELECT DISTINCT - + 6 + + 22 * + 92 * + + 47
----
95122

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

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT + + 43 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - - 97 + + COUNT( * ) - + - 18 * + - ( - + ( COUNT( * ) ) )
----
116

skipif mysql # not compatible
query I rowsort label-450
SELECT - - 97 + + COUNT ( * ) - + - 18 * + - ( - + ( COUNT ( * ) ) )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT ALL 41 + - - ( + COUNT( * ) ) * COUNT( * ) * + + 54 * - MAX( ALL - - 53 ) * 15
----
-42889

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL 41 + - - ( + COUNT ( * ) ) * COUNT ( * ) * + + 54 * - MAX ( ALL - - 53 ) * 15
----
-42889

query I rowsort
SELECT - 53 AS col1
----
-53

query I rowsort
SELECT 87 AS col0
----
87

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

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

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

query I rowsort
SELECT DISTINCT 25
----
25

query I rowsort
SELECT ALL 68 + + 77 AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT + NULLIF ( - COUNT( * ), + 28 ) + CASE - 49 WHEN - 15 + COUNT( * ) THEN 27 * 12 ELSE NULL END - 16 * COALESCE ( - NULLIF ( + 66, 41 - COUNT( * ) ) * COALESCE ( + 11, SUM( ALL - ( 98 ) ) * + 48 + 23 ), 7 * - 74 ) * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT + NULLIF ( - COUNT ( * ), + 28 ) + CASE - 49 WHEN - 15 + COUNT ( * ) THEN 27 * 12 ELSE NULL END - 16 * COALESCE ( - NULLIF ( + 66, 41 - COUNT ( * ) ) * COALESCE ( + 11, SUM ( ALL - ( 98 ) ) * + 48 + 23 ), 7 * - 74 ) * + 54 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT ALL + 14 DIV - + 71 + - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL + 14 / - + 71 + - + 93
----
-93

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

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

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

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

query I rowsort
SELECT ALL + 18
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT ALL 41 DIV 78 * + + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL 41 / 78 * + + 65 AS col0
----
0

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

query II rowsort
SELECT 53 AS col0, 49 AS col1
----
53
49

query I rowsort
SELECT ALL 17 - - - 71
----
-54

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

query I rowsort
SELECT + 57
----
57

query I rowsort
SELECT DISTINCT - 40
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT 79 * - NULLIF ( - CAST( - ( COUNT( * ) ) AS SIGNED ), - - 20 + - + 19 * + - CAST( NULL AS SIGNED ) + COUNT( * ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-471
SELECT 79 * - NULLIF ( - CAST ( - ( COUNT ( * ) ) AS INTEGER ), - - 20 + - + 19 * + - CAST ( NULL AS INTEGER ) + COUNT ( * ) ) AS col0
----
-79

query I rowsort
SELECT 15 * + 9 * + ( - 28 ) * + 76
----
-287280

query I rowsort
SELECT ALL 10 * - - 39 AS col2
----
390

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

query I rowsort
SELECT + 65 col0
----
65

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

query I rowsort
SELECT DISTINCT 40 * - + ( + + 7 ) * 74
----
-20720

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

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

query I rowsort
SELECT 4 * - - 70 * 19
----
5320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-481
SELECT ALL - 40 col0, CAST( NULL AS SIGNED ) * 63
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-481
SELECT ALL - 40 col0, CAST ( NULL AS INTEGER ) * 63
----
-40
NULL

query I rowsort
SELECT ALL - 43
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT DISTINCT - SUM( ALL + 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT - SUM ( ALL + 43 ) AS col0
----
-43

query I rowsort
SELECT 94 * - 93 col0
----
-8742

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

query I rowsort
SELECT + 86
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT CAST( NULL AS SIGNED ) * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT CAST ( NULL AS INTEGER ) * 66 AS col1
----
NULL

query I rowsort
SELECT 39 * 69 AS col0
----
2691

query II rowsort
SELECT ALL 90 AS col1, 97 AS col2
----
90
97

query I rowsort
SELECT 91
----
91

query I rowsort
SELECT - - 66 AS col1
----
66

query I rowsort
SELECT ALL - 10
----
-10

query II rowsort
SELECT DISTINCT 63 AS col2, + 44
----
63
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-495
SELECT ALL + COUNT( * ) AS col1, 64 * + 34 - + + 3 + 94 + 39 DIV - - 69 col2
----
1
2267

skipif mysql # not compatible
query II rowsort label-495
SELECT ALL + COUNT ( * ) AS col1, 64 * + 34 - + + 3 + 94 + 39 / - - 69 col2
----
1
2267

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT 71 + + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT 71 + + COUNT ( * ) AS col1
----
72

query I rowsort
SELECT - 19
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-498
SELECT ALL NULLIF ( COUNT( * ), + 40 / + - 10 ) AS col0, + 80
----
1
80

skipif mysql # not compatible
query II rowsort label-498
SELECT ALL NULLIF ( COUNT ( * ), + 40 / + - 10 ) AS col0, + 80
----
1
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT ALL + CAST( + 33 AS SIGNED ) + - 84 + 74 * + + 26 * - 15 col1
----
-28911

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + CAST ( + 33 AS INTEGER ) + - 84 + 74 * + + 26 * - 15 col1
----
-28911

query I rowsort
SELECT 77
----
77

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

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

query I rowsort
SELECT - 42 + - + 18 + + 52 AS col2
----
-8

query I rowsort
SELECT DISTINCT - 90 + - ( + 10 )
----
-100

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

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

query I rowsort
SELECT - 75
----
-75

query I rowsort
SELECT 69 + - ( + 70 ) AS col2
----
-1

query I rowsort
SELECT ALL - 28
----
-28

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

query I rowsort
SELECT + 8 * 3 AS col2
----
24

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

skipif mysql # not compatible
query II rowsort label-511
SELECT 20 AS col2, COUNT ( * ) AS col1
----
20
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL + - COUNT( * ) + + 81
----
80

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + - COUNT ( * ) + + 81
----
80

query I rowsort
SELECT DISTINCT - 7 + + - 43 AS col1
----
-50

query I rowsort
SELECT ALL - 7 col0
----
-7

query I rowsort
SELECT DISTINCT 54
----
54

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

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

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

query I rowsort
SELECT ALL + 5 + 47
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT DISTINCT - 46 - + MAX( + + 89 ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - 46 - + MAX ( + + 89 ) AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT CASE - + ( 41 ) WHEN + + 76 * + ( + + 45 ) + - - 47 + + COUNT( * ) THEN 13 * 93 ELSE NULL END * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT CASE - + ( 41 ) WHEN + + 76 * + ( + + 45 ) + - - 47 + + COUNT ( * ) THEN 13 * 93 ELSE NULL END * 79
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT 89 DIV - 86
----
-1

skipif mysql # not compatible
query I rowsort label-523
SELECT 89 / - 86
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-524
SELECT ALL - 73 * COALESCE ( - COUNT( ALL - - 46 ), 46 DIV COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - 73 * COALESCE ( - COUNT ( ALL - - 46 ), 46 / COUNT ( * ) )
----
73

query I rowsort
SELECT ALL + 18 * - 52 * 81 AS col1
----
-75816

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

query I rowsort
SELECT 58 AS col1
----
58

query I rowsort
SELECT 70 * 84 * - + 97
----
-570360

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

query I rowsort
SELECT 66 AS col2
----
66

query I rowsort
SELECT 71 AS col2
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT 89 - - 56 + CASE WHEN NULL < ( - NULLIF ( - - 36, + MIN( - - 4 ) ) ) THEN + MIN( DISTINCT 43 ) END * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT 89 - - 56 + CASE WHEN NULL < ( - NULLIF ( - - 36, + MIN ( - - 4 ) ) ) THEN + MIN ( DISTINCT 43 ) END * - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL - 10 * + + 69 * - COUNT( * ) col2
----
690

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - 10 * + + 69 * - COUNT ( * ) col2
----
690

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-535
SELECT DISTINCT - NULLIF ( + NULLIF ( - - 11, 46 ), + - 47 + + 63 + 26 + 74 - - + CAST( NULL AS DECIMAL ) / - 74 * - 24 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT - NULLIF ( + NULLIF ( - - 11, 46 ), + - 47 + + 63 + 26 + 74 - - + CAST ( NULL AS REAL ) / - 74 * - 24 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT DISTINCT - COUNT( * ) * 62 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT - COUNT ( * ) * 62 AS col1
----
-62

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

query I rowsort
SELECT 58 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT - ( + + SUM( DISTINCT + NULLIF ( + 33, - 18 + + - 20 ) ) )
----
-33

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT - ( + + SUM ( DISTINCT + NULLIF ( + 33, - 18 + + - 20 ) ) )
----
-33

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

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

query I rowsort
SELECT ALL - 59
----
-59

query I rowsort
SELECT 44 AS col2
----
44

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

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

query I rowsort
SELECT ALL 21 + + 32 AS col0
----
53

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

query I rowsort
SELECT 95 AS col0
----
95

query I rowsort
SELECT + 89
----
89

query I rowsort
SELECT 23 + 36 * - 39
----
-1381

query I rowsort
SELECT ALL 67 * 46 * 68
----
209576

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT DISTINCT CASE NULLIF ( 98, MAX( 39 ) ) WHEN - - 27 * - 71 * + 0 - - 69 THEN + 88 END + 28 * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT CASE NULLIF ( 98, MAX ( 39 ) ) WHEN - - 27 * - 71 * + 0 - - 69 THEN + 88 END + 28 * 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL 59 + 52 * 58 * + + SUM( - 93 ) AS col0
----
-280429

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL 59 + 52 * 58 * + + SUM ( - 93 ) AS col0
----
-280429

query I rowsort
SELECT 98
----
98

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT ALL + - 80 + NULLIF ( CAST( NULL AS SIGNED ), 31 + - 88 ) + - ( + ( - - 44 ) ) * 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL + - 80 + NULLIF ( CAST ( NULL AS INTEGER ), 31 + - 88 ) + - ( + ( - - 44 ) ) * 56 AS col1
----
NULL

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

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

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

query I rowsort
SELECT 35
----
35

query I rowsort
SELECT - 92 AS col2
----
-92

query I rowsort
SELECT ALL - 69 + 64
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-561
SELECT 71 - - COUNT( * ) * CAST( + MIN( 13 ) AS SIGNED ) AS col1, 49 DIV 49 AS col1
----
84
1

skipif mysql # not compatible
query II rowsort label-561
SELECT 71 - - COUNT ( * ) * CAST ( + MIN ( 13 ) AS INTEGER ) AS col1, 49 / 49 AS col1
----
84
1

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

query I rowsort
SELECT - 82
----
-82

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

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

query I rowsort
SELECT DISTINCT 10 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT - CASE - - NULLIF ( + 15, + AVG ( ALL + - 71 ) / 8 ) WHEN + 85 * NULLIF ( - - 35, 22 ) + 49 * + 41 THEN NULL WHEN NULLIF ( + 48, 16 ) THEN + COUNT( * ) * COALESCE ( - 29, COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT - CASE - - NULLIF ( + 15, + AVG ( ALL + - 71 ) / 8 ) WHEN + 85 * NULLIF ( - - 35, 22 ) + 49 * + 41 THEN NULL WHEN NULLIF ( + 48, 16 ) THEN + COUNT ( * ) * COALESCE ( - 29, COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL COUNT( * ) * - CASE - - 22 WHEN - 30 THEN - 36 * + - 24 - - 34 * - 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL COUNT ( * ) * - CASE - - 22 WHEN - 30 THEN - 36 * + - 24 - - 34 * - 73 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 75 - + 36 + 78 AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-569
SELECT DISTINCT 12 * 30 DIV + 96 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT 12 * 30 / + 96 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT + 86 + MIN( + 16 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-570
SELECT + 86 + MIN ( + 16 ) AS col0
----
102

query I rowsort
SELECT ALL 61
----
61

query I rowsort
SELECT ALL - - 34 * - + 72 * + 28 + + + 85 + 82
----
-68377

query I rowsort
SELECT - 69 + - NULLIF ( + - 9, + 96 ) AS col1
----
-60

query I rowsort
SELECT 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT - 88 + + + 68 - - COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-575
SELECT - 88 + + + 68 - - COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ALL MIN( ALL + 71 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL MIN ( ALL + 71 ) col0
----
71

query I rowsort
SELECT - 64 * + 35 AS col1
----
-2240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-578
SELECT ALL + NULLIF ( 39, - ( + - COUNT( * ) ) + - COUNT( * ) ) DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL + NULLIF ( 39, - ( + - COUNT ( * ) ) + - COUNT ( * ) ) / 89 AS col1
----
0

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

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

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

query I rowsort
SELECT + 10
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT ALL + 51 DIV NULLIF ( + 93, ( + 49 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL + 51 / NULLIF ( + 93, ( + 49 ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 46 col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-584
SELECT ALL + 42 * NULLIF ( + COUNT( * ), - CASE 68 WHEN + - 23 THEN COALESCE ( COALESCE ( COUNT( * ), - 3 ), 45, + 26 * + 49 ) WHEN 11 / ( + 11 ) + + COUNT( * ) THEN NULL ELSE NULL END + + CAST( NULL AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL + 42 * NULLIF ( + COUNT ( * ), - CASE 68 WHEN + - 23 THEN COALESCE ( COALESCE ( COUNT ( * ), - 3 ), 45, + 26 * + 49 ) WHEN 11 / ( + 11 ) + + COUNT ( * ) THEN NULL ELSE NULL END + + CAST ( NULL AS INTEGER ) )
----
42

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-586
SELECT 15 * + CAST( NULL AS DECIMAL ) * 68 + - + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT 15 * + CAST ( NULL AS REAL ) * 68 + - + 29 AS col0
----
NULL

query I rowsort
SELECT ALL + 59
----
59

query I rowsort
SELECT - 33 * - 19 AS col0
----
627

query I rowsort
SELECT + 75
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT DISTINCT - 2 * NULLIF ( + - 62, + 18 * - + 4 ) + - COUNT( * ) + + 84 * 7
----
711

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT - 2 * NULLIF ( + - 62, + 18 * - + 4 ) + - COUNT ( * ) + + 84 * 7
----
711

onlyif mysql # aggregate syntax: 
query II rowsort label-592
SELECT ALL + COUNT( * ) * + 73 * - - 98 + 0 + 51 * - COUNT( * ), - 43 * - 86 + - 6 col2
----
7103
3692

skipif mysql # not compatible
query II rowsort label-592
SELECT ALL + COUNT ( * ) * + 73 * - - 98 + 0 + 51 * - COUNT ( * ), - 43 * - 86 + - 6 col2
----
7103
3692

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-593
SELECT NULLIF ( + 85, NULLIF ( + + 49, - 15 * 30 * - COUNT( - + 81 ) ) * CAST( + 86 AS DECIMAL ) )
----
85

skipif mysql # not compatible
query I rowsort label-593
SELECT NULLIF ( + 85, NULLIF ( + + 49, - 15 * 30 * - COUNT ( - + 81 ) ) * CAST ( + 86 AS REAL ) )
----
85

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

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT - 86 * - + CAST ( NULL AS REAL ) + - 45
----
NULL

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

query I rowsort
SELECT - 79 + 97
----
18

query I rowsort
SELECT ALL - 42 * - 95 + 35 * - 21 + 99 + 75 * + 25 * + 65
----
125229

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT DISTINCT - 10 * + + 17 + + COUNT( * ) + - 9 + COUNT( + - 29 ) * - + 73 * COALESCE ( - 97, MAX( DISTINCT 73 ), 13 ) * - COUNT( * )
----
-7259

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT - 10 * + + 17 + + COUNT ( * ) + - 9 + COUNT ( + - 29 ) * - + 73 * COALESCE ( - 97, MAX ( DISTINCT 73 ), 13 ) * - COUNT ( * )
----
-7259

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT - 78 * - 92 - + - COUNT( DISTINCT + + 68 )
----
7177

skipif mysql # not compatible
query I rowsort label-602
SELECT - 78 * - 92 - + - COUNT ( DISTINCT + + 68 )
----
7177

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + COALESCE ( + 5, COUNT( * ) * 68 + 22 ) * + 31 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-603
SELECT + COALESCE ( + 5, COUNT ( * ) * 68 + 22 ) * + 31 AS col2
----
155

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

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

query I rowsort
SELECT + + 79 + - 19 AS col1
----
60

query I rowsort
SELECT DISTINCT ( COALESCE ( - 90, + - 98, + ( 94 ) + - 1 * 84 ) ) * 15 * - 22 + 82
----
29782

query I rowsort
SELECT + - 4 + + 26
----
22

query I rowsort
SELECT ALL 86 * + 27 + - 15
----
2307

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT + + COALESCE ( - COUNT( * ), 6, - 64 * + + COUNT( DISTINCT - 0 ) ) * 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-609
SELECT + + COALESCE ( - COUNT ( * ), 6, - 64 * + + COUNT ( DISTINCT - 0 ) ) * 41 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT + 90 + COUNT( * ) + + 36 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-610
SELECT + 90 + COUNT ( * ) + + 36 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-611
SELECT + - 60 - + + 99 / CAST( NULL AS SIGNED ) + + 21 + COALESCE ( - 73, + 77, 20 + + NULLIF ( - - 51, - 94 + COUNT( * ) / 72 ) + 80 / - 75, 75 + 18 ) + 14 * - 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT + - 60 - + + 99 / CAST ( NULL AS INTEGER ) + + 21 + COALESCE ( - 73, + 77, 20 + + NULLIF ( - - 51, - 94 + COUNT ( * ) / 72 ) + 80 / - 75, 75 + 18 ) + 14 * - 9 col1
----
NULL

query I rowsort
SELECT ALL - 88
----
-88

query I rowsort
SELECT + 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-614
SELECT + 17 * + + 59 + - 60 - + 68 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT + 17 * + + 59 + - 60 - + 68 + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-617
SELECT - CASE + + 75 WHEN - 80 THEN + + 30 + - + 21 * + 37 END, + CAST( NULL AS SIGNED ) + - 34 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-617
SELECT - CASE + + 75 WHEN - 80 THEN + + 30 + - + 21 * + 37 END, + CAST ( NULL AS INTEGER ) + - 34 AS col1
----
NULL
NULL

query I rowsort
SELECT + - 77 + 70
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT + 44 DIV 18 col2
----
2

skipif mysql # not compatible
query I rowsort label-619
SELECT + 44 / 18 col2
----
2

query I rowsort
SELECT ALL 33
----
33

query I rowsort
SELECT + + 2 + - 43
----
-41

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

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

query I rowsort
SELECT - + ( 50 ) col2
----
-50

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

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

query I rowsort
SELECT - ( - 71 ) AS col2
----
71

query I rowsort
SELECT - 6 * 80 * + 38 AS col1
----
-18240

query I rowsort
SELECT DISTINCT 45
----
45

query I rowsort
SELECT 91 col0
----
91

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

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL 51, COUNT ( * ) * COUNT ( * ) AS col2
----
51
1

query I rowsort
SELECT DISTINCT 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-632
SELECT - CAST( NULL AS SIGNED ) AS col2, ( - COUNT( DISTINCT + 75 ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-632
SELECT - CAST ( NULL AS INTEGER ) AS col2, ( - COUNT ( DISTINCT + 75 ) ) AS col1
----
NULL
-1

query I rowsort
SELECT - 8
----
-8

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

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

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

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL COUNT ( * ) + 21 AS col2
----
22

query I rowsort
SELECT - 62
----
-62

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-638
SELECT + 69 DIV + 2, CAST( NULL AS SIGNED ) AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-638
SELECT + 69 / + 2, CAST ( NULL AS INTEGER ) AS col2
----
34
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-639
SELECT - CAST( NULL AS SIGNED ) / - 20 * CAST( 1 AS SIGNED ) - - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT - CAST ( NULL AS INTEGER ) / - 20 * CAST ( 1 AS INTEGER ) - - 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-640
SELECT DISTINCT - 31 DIV 92 + - 82 DIV 95 DIV + 56 * + COUNT( * ) + 32 - SUM( DISTINCT - 10 ) * + 40 * ( 65 ) AS col2
----
26032

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT - 31 / 92 + - 82 / 95 / + 56 * + COUNT ( * ) + 32 - SUM ( DISTINCT - 10 ) * + 40 * ( 65 ) AS col2
----
26032

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-642
SELECT - 15 * - - CAST( - 28 AS SIGNED ) + - 36 + + - 95 - - 51 DIV - 76 * + 62 AS col2
----
289

skipif mysql # not compatible
query I rowsort label-642
SELECT - 15 * - - CAST ( - 28 AS INTEGER ) + - 36 + + - 95 - - 51 / - 76 * + 62 AS col2
----
289

query I rowsort
SELECT - 15 * - 16 AS col1
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT ALL 46 DIV + 48 + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL 46 / + 48 + - 35
----
-35

query II rowsort
SELECT ALL + 84, - 42 + - 88 AS col1
----
84
-130

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

query I rowsort
SELECT - - 30 + + 26
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT + 30 DIV - - 83 - + - 2
----
2

skipif mysql # not compatible
query I rowsort label-648
SELECT + 30 / - - 83 - + - 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT DISTINCT - 60 * + + 24 + MIN( ALL - ( 90 ) ) + - 83 * - 90 AS col2
----
5940

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT - 60 * + + 24 + MIN ( ALL - ( 90 ) ) + - 83 * - 90 AS col2
----
5940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-650
SELECT - 51 * + 32 * - 36 + + 99 * + + 33 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT - 51 * + 32 * - 36 + + 99 * + + 33 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 49 - + 89
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL COUNT( * ) * - COUNT( * ) + + 37 * - - 50 * + CASE 43 WHEN - - ( + 48 ) THEN + NULLIF ( 25, - + 94 * 45 ) + 49 ELSE + 94 END + - 5 * + 58
----
173609

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + 37 * - - 50 * + CASE 43 WHEN - - ( + 48 ) THEN + NULLIF ( 25, - + 94 * 45 ) + 49 ELSE + 94 END + - 5 * + 58
----
173609

query I rowsort
SELECT - 4
----
-4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT + 98 * - + COUNT( DISTINCT + + 80 ) - + + CASE 19 WHEN 89 THEN + ( - ( - 20 ) ) END * + + ( 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT + 98 * - + COUNT ( DISTINCT + + 80 ) - + + CASE 19 WHEN 89 THEN + ( - ( - 20 ) ) END * + + ( 47 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL + 67 * MIN( DISTINCT - - 8 ) - - 42 AS col1
----
578

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + 67 * MIN ( DISTINCT - - 8 ) - - 42 AS col1
----
578

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

query I rowsort
SELECT ALL - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL 45 - + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL 45 - + + COUNT ( * )
----
44

query I rowsort
SELECT 92 * - 16
----
-1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-664
SELECT ALL ( + 35 ) AS col1, - 12 - + + SUM( CAST( NULL AS SIGNED ) )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-664
SELECT ALL ( + 35 ) AS col1, - 12 - + + SUM ( CAST ( NULL AS INTEGER ) )
----
35
NULL

query I rowsort
SELECT - 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT - + NULLIF ( - 56, - COUNT( * ) + + 68 + + + ( + 11 ) / + + 14 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-666
SELECT - + NULLIF ( - 56, - COUNT ( * ) + + 68 + + + ( + 11 ) / + + 14 ) AS col2
----
56

query I rowsort
SELECT + 68 + 15
----
83

query II rowsort
SELECT - 12 AS col1, ( - 59 )
----
-12
-59

query I rowsort
SELECT ALL 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-670
SELECT ALL - 68 * + + 12 + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
-816

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL - 68 * + + 12 + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
-816

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

query I rowsort
SELECT - 4 + 63
----
59

query I rowsort
SELECT ALL 40
----
40

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

query I rowsort
SELECT ( - 10 ) + 20
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL + 51 * + - ( - 52 ) * - + CASE + + 99 WHEN - - 57 * + + 81 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL + 51 * + - ( - 52 ) * - + CASE + + 99 WHEN - - 57 * + + 81 THEN + COUNT ( * ) END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT MIN( ALL - 38 ) * + + 76 + + 43
----
-2845

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT MIN ( ALL - 38 ) * + + 76 + + 43
----
-2845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-679
SELECT ALL COUNT( * ) + - CASE - - 75 WHEN - 54 / + - 69 - - AVG ( ALL CAST( NULL AS SIGNED ) ) THEN NULL WHEN - + 34 THEN - 51 END + COALESCE ( 69, 74 + 88 ) + 98 / COUNT( * ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL COUNT ( * ) + - CASE - - 75 WHEN - 54 / + - 69 - - AVG ( ALL CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - + 34 THEN - 51 END + COALESCE ( 69, 74 + 88 ) + 98 / COUNT ( * ) * - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT COUNT( * ) - + 86
----
-85

skipif mysql # not compatible
query I rowsort label-680
SELECT COUNT ( * ) - + 86
----
-85

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

query I rowsort
SELECT ALL 11 + - 85
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-683
SELECT 88 + - - ( CAST( NULL AS SIGNED ) ) + - COUNT( * ) + + 44 AS col0, 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-683
SELECT 88 + - - ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + + 44 AS col0, 80 AS col1
----
NULL
80

query I rowsort
SELECT 24 + - 71 AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-685
SELECT COUNT( + - 24 ) * + 25 - + CASE - ( + - COUNT( * ) ) WHEN ( CAST( NULL AS SIGNED ) ) * + 95 THEN NULL WHEN + 43 THEN NULL ELSE + - 40 + 19 END AS col2
----
46

skipif mysql # not compatible
query I rowsort label-685
SELECT COUNT ( + - 24 ) * + 25 - + CASE - ( + - COUNT ( * ) ) WHEN ( CAST ( NULL AS INTEGER ) ) * + 95 THEN NULL WHEN + 43 THEN NULL ELSE + - 40 + 19 END AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT ALL COUNT( * ) + - - MIN( ALL + 18 )
----
19

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL COUNT ( * ) + - - MIN ( ALL + 18 )
----
19

query I rowsort
SELECT 60 AS col0
----
60

query I rowsort
SELECT 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-689
SELECT 43 + - 42 col0, 57 * + CASE + - 73 WHEN - + 7 THEN + + COUNT( * ) + - 74 WHEN - 56 THEN NULL ELSE NULL END * - CAST( - 54 AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-689
SELECT 43 + - 42 col0, 57 * + CASE + - 73 WHEN - + 7 THEN + + COUNT ( * ) + - 74 WHEN - 56 THEN NULL ELSE NULL END * - CAST ( - 54 AS REAL ) AS col1
----
1
NULL

query I rowsort
SELECT 14 + - - 11 + - 23 * + - 91
----
2118

query I rowsort
SELECT - 18
----
-18

query I rowsort
SELECT DISTINCT 19 col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-693
SELECT ALL ( - - 17 ) + + - CAST( NULL AS SIGNED ) * - ( - CAST( NULL AS SIGNED ) ) * - - NULLIF ( - 65, 6 * 60 / - 58 ) / - 94 + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL ( - - 17 ) + + - CAST ( NULL AS INTEGER ) * - ( - CAST ( NULL AS INTEGER ) ) * - - NULLIF ( - 65, 6 * 60 / - 58 ) / - 94 + + 5 AS col2
----
NULL

query I rowsort
SELECT + 29
----
29

query I rowsort
SELECT DISTINCT - 75 col2
----
-75

query II rowsort
SELECT ALL + 89 + - 58 AS col2, 70 AS col2
----
31
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( + 57, + + 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( + 57, + + 92 ) AS col2
----
NULL

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

query I rowsort
SELECT + 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT 89 * + 94 * - + 44 + + COUNT( * )
----
-368103

skipif mysql # not compatible
query I rowsort label-700
SELECT 89 * + 94 * - + 44 + + COUNT ( * )
----
-368103

query I rowsort
SELECT + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT CASE MIN( - - 65 ) WHEN - + 42 - + 37 THEN - 14 + + 8 - 8 / - + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT CASE MIN ( - - 65 ) WHEN - + 42 - + 37 THEN - 14 + + 8 - 8 / - + 53 END
----
NULL

query I rowsort
SELECT + + 94 * - 23 + - 94 AS col1
----
-2256

onlyif mysql # DIV for integer division: 
query II rowsort label-704
SELECT ALL 66 - - 75 DIV 97 * + - 41 * + 40, 94 + - 56 AS col1
----
66
38

skipif mysql # not compatible
query II rowsort label-704
SELECT ALL 66 - - 75 / 97 * + - 41 * + 40, 94 + - 56 AS col1
----
66
38

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

query II rowsort
SELECT - 10 + + - 30 col1, + 58
----
-40
58

query I rowsort
SELECT + + 35
----
35

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

query I rowsort
SELECT + 59 + - 95 * 82
----
-7731

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT DISTINCT - MAX( DISTINCT - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - MAX ( DISTINCT - 43 )
----
43

query I rowsort
SELECT + 86 * - + 21 + 30
----
-1776

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

query I rowsort
SELECT ALL - 38 - - 14 AS col1
----
-24

query I rowsort
SELECT ALL - + 16
----
-16

query I rowsort
SELECT + NULLIF ( - - 65, + + 56 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL - - 19 * 77 * COUNT( * )
----
1463

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - - 19 * 77 * COUNT ( * )
----
1463

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

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - - COUNT ( * ) / ( + ( + 92 ) )
----
0

query I rowsort
SELECT - 8 + + 81 + 68
----
141

query II rowsort
SELECT DISTINCT - 30 * + 84, 55 * - 64 AS col1
----
-2520
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT 38 + - - 67 + 52 - - + 28 * + 98 * + - COUNT( * ) AS col0
----
-2587

skipif mysql # not compatible
query I rowsort label-720
SELECT 38 + - - 67 + 52 - - + 28 * + 98 * + - COUNT ( * ) AS col0
----
-2587

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

skipif mysql # not compatible
query I rowsort label-721
SELECT - 66 / - COUNT ( * ) + ( 10 ) AS col0
----
76

query I rowsort
SELECT - 35 + + 54 + - CASE + - ( + 96 ) WHEN + ( 53 ) THEN NULL WHEN - 90 THEN NULL ELSE + 99 * - 1 END
----
118

query I rowsort
SELECT - COALESCE ( + 71, 12, - - 43 ) AS col1
----
-71

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

query I rowsort
SELECT + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL + COUNT( + 32 ) * COUNT( * ) + - 35 col0
----
-34

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL + COUNT ( + 32 ) * COUNT ( * ) + - 35 col0
----
-34

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

query II rowsort
SELECT ALL 91 AS col1, - ( NULLIF ( - - 93, 55 ) ) AS col0
----
91
-93

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT COUNT( * ) + 36 * NULLIF ( - 40, + 48 - + MIN( DISTINCT - - ( - 94 ) ) * - + 44 )
----
-1439

skipif mysql # not compatible
query I rowsort label-731
SELECT COUNT ( * ) + 36 * NULLIF ( - 40, + 48 - + MIN ( DISTINCT - - ( - 94 ) ) * - + 44 )
----
-1439

query I rowsort
SELECT 46
----
46

query I rowsort
SELECT ALL - 92 + - - 14 + + 53 * - 14 * + - 62 * + 92
----
4232290

query I rowsort
SELECT 16
----
16

query I rowsort
SELECT 24 + 89 + + - ( - 74 )
----
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT ALL + 83 + CAST( + ( + - 61 ) AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL + 83 + CAST ( + ( + - 61 ) AS INTEGER )
----
22

query I rowsort
SELECT 33 * + - 23
----
-759

query I rowsort
SELECT ALL - 20 + - + 13 AS col2
----
-33

query I rowsort
SELECT - 6
----
-6

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

onlyif mysql # aggregate syntax: 
query II rowsort label-741
SELECT - 58, MIN( + + 70 ) + + COUNT( * ) * + + 80 * + COUNT( 52 ) AS col2
----
-58
150

skipif mysql # not compatible
query II rowsort label-741
SELECT - 58, MIN ( + + 70 ) + + COUNT ( * ) * + + 80 * + COUNT ( 52 ) AS col2
----
-58
150

query I rowsort
SELECT - 60
----
-60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL 57 + - NULLIF ( + SUM( DISTINCT - 28 ), 56 ) * + COUNT( * ) - - 83
----
168

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL 57 + - NULLIF ( + SUM ( DISTINCT - 28 ), 56 ) * + COUNT ( * ) - - 83
----
168

query I rowsort
SELECT 23 * + 10 AS col1
----
230

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

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

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

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

query I rowsort
SELECT ALL 51 + 23
----
74

query I rowsort
SELECT 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT DISTINCT SUM( ALL 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT SUM ( ALL 22 ) AS col1
----
22

query I rowsort
SELECT 49 * + 80 AS col2
----
3920

onlyif mysql # aggregate syntax: 
query II rowsort label-752
SELECT 70 AS col2, 13 - + - CASE ( - - ( 91 ) ) WHEN COALESCE ( + 64, + + 67 ) THEN 19 * + + 64 + COUNT( * ) END
----
70
NULL

skipif mysql # not compatible
query II rowsort label-752
SELECT 70 AS col2, 13 - + - CASE ( - - ( 91 ) ) WHEN COALESCE ( + 64, + + 67 ) THEN 19 * + + 64 + COUNT ( * ) END
----
70
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT COUNT( * ) + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-754
SELECT COUNT ( * ) + - 93
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-755
SELECT ( + - 10 ) * - 98 * - - 78 * 20 + + 54 AS col0, 12 * COUNT( * ) + + - 94 * - - COUNT( * )
----
1528854
-82

skipif mysql # not compatible
query II rowsort label-755
SELECT ( + - 10 ) * - 98 * - - 78 * 20 + + 54 AS col0, 12 * COUNT ( * ) + + - 94 * - - COUNT ( * )
----
1528854
-82

query I rowsort
SELECT ALL - 94
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT CASE - 70 WHEN - NULLIF ( - 3, + AVG ( DISTINCT - CAST( + 83 AS SIGNED ) ) ) * - ( + + NULLIF ( 46, CASE - 57 WHEN 67 THEN + 80 / + 12 END ) ) + - 89 / 11 THEN + ( 28 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT CASE - 70 WHEN - NULLIF ( - 3, + AVG ( DISTINCT - CAST ( + 83 AS INTEGER ) ) ) * - ( + + NULLIF ( 46, CASE - 57 WHEN 67 THEN + 80 / + 12 END ) ) + - 89 / 11 THEN + ( 28 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-758
SELECT ALL COALESCE ( + - 2, + 29, - 23 ) * + - 17 - - 45 + 6 DIV - 85 + - 33 - + - 95 * + 39 * 76 + + 28 AS col0
----
281654

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL COALESCE ( + - 2, + 29, - 23 ) * + - 17 - - 45 + 6 / - 85 + - 33 - + - 95 * + 39 * 76 + + 28 AS col0
----
281654

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT 39 DIV - - 18 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-759
SELECT 39 / - - 18 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT DISTINCT - 86 DIV + 8
----
-10

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT - 86 / + 8
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT - - 18 DIV - - 97 - ( 13 ) + + 19 * + 27
----
500

skipif mysql # not compatible
query I rowsort label-761
SELECT - - 18 / - - 97 - ( 13 ) + + 19 * + 27
----
500

query I rowsort
SELECT DISTINCT - 65
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-763
SELECT + CAST( - ( ( + NULLIF ( - + NULLIF ( + - 76, 78 * + + 30 + 0 - MIN( DISTINCT + 11 ) + + 79 ), + 31 * 13 ) ) ) AS SIGNED ) * 72
----
-5472

skipif mysql # not compatible
query I rowsort label-763
SELECT + CAST ( - ( ( + NULLIF ( - + NULLIF ( + - 76, 78 * + + 30 + 0 - MIN ( DISTINCT + 11 ) + + 79 ), + 31 * 13 ) ) ) AS INTEGER ) * 72
----
-5472

query II rowsort
SELECT ALL + - 40 AS col0, 63 AS col0
----
-40
63

query II rowsort
SELECT ALL + 42, - 54 col0
----
42
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + 27 + - 61 + - 4 + - NULLIF ( COUNT( * ), + 68 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-766
SELECT + 27 + - 61 + - 4 + - NULLIF ( COUNT ( * ), + 68 ) AS col1
----
-39

query II rowsort
SELECT + ( - 69 ) - + 53 AS col0, 82 col1
----
-122
82

query I rowsort
SELECT - - 90 * - + 58
----
-5220

query I rowsort
SELECT - 10 - + 86 col0
----
-96

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT DISTINCT + MIN( 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT + MIN ( 83 ) AS col0
----
83

query I rowsort
SELECT DISTINCT + 16 + - 77
----
-61

query I rowsort
SELECT - 90
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-778
SELECT DISTINCT + 51 + + - 4 + + 79 + - 41 col0, 7 + + 6 DIV + 12 AS col2
----
85
7

skipif mysql # not compatible
query II rowsort label-778
SELECT DISTINCT + 51 + + - 4 + + 79 + - 41 col0, 7 + + 6 / + 12 AS col2
----
85
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT ALL - CASE + + 40 WHEN - - 67 THEN - CASE - 27 WHEN - - 63 * + COUNT( * ) THEN NULL WHEN + 46 + - 69 + + 58 - - 40 THEN - 76 - + CAST( NULL AS SIGNED ) * + - 94 * CAST( NULL AS SIGNED ) ELSE 43 END ELSE 43 END * - 44 col2
----
1892

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - CASE + + 40 WHEN - - 67 THEN - CASE - 27 WHEN - - 63 * + COUNT ( * ) THEN NULL WHEN + 46 + - 69 + + 58 - - 40 THEN - 76 - + CAST ( NULL AS INTEGER ) * + - 94 * CAST ( NULL AS INTEGER ) ELSE 43 END ELSE 43 END * - 44 col2
----
1892

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT - 99 DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-780
SELECT - 99 / 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL - NULLIF ( + SUM( + 33 ), - 34 / + 59 * + COUNT( * ) - + 3 + 83 ) * - - 6
----
-198

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL - NULLIF ( + SUM ( + 33 ), - 34 / + 59 * + COUNT ( * ) - + 3 + 83 ) * - - 6
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL - ( + 96 ) + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - ( + 96 ) + - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-783
SELECT - 87 + - 94 - + + 25 DIV - ( - 31 ) * + 33 * MIN( ALL - - 74 ) - - 43 * - 58 * - - 8 * - 47 + + MAX( DISTINCT 41 ) + 55 AS col2
----
937659

skipif mysql # not compatible
query I rowsort label-783
SELECT - 87 + - 94 - + + 25 / - ( - 31 ) * + 33 * MIN ( ALL - - 74 ) - - 43 * - 58 * - - 8 * - 47 + + MAX ( DISTINCT 41 ) + 55 AS col2
----
937659

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

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

query I rowsort
SELECT ALL - 89 - 23 + - 5
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-786
SELECT - 57 * - - 43, ( - COUNT( DISTINCT + 74 ) ) + MIN( DISTINCT + 94 ) + - - 49 AS col1
----
-2451
142

skipif mysql # not compatible
query II rowsort label-786
SELECT - 57 * - - 43, ( - COUNT ( DISTINCT + 74 ) ) + MIN ( DISTINCT + 94 ) + - - 49 AS col1
----
-2451
142

query I rowsort
SELECT DISTINCT COALESCE ( + - 53, - 75 + + 97 * + 24 + + 13, + + 90 )
----
-53

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

query I rowsort
SELECT - 22 AS col0
----
-22

query I rowsort
SELECT - 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL - 89 - 92 * COUNT( * )
----
-181

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL - 89 - 92 * COUNT ( * )
----
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-792
SELECT - 21 * + + CAST( - + 56 AS SIGNED ) AS col2
----
1176

skipif mysql # not compatible
query I rowsort label-792
SELECT - 21 * + + CAST ( - + 56 AS INTEGER ) AS col2
----
1176

query I rowsort
SELECT 17 AS col2
----
17

query I rowsort
SELECT DISTINCT - 71 * + 24
----
-1704

query I rowsort
SELECT - 56 * - 98 AS col1
----
5488

query I rowsort
SELECT + 62 + + - ( + + CASE + + 74 WHEN + ( + 89 ) + - 47 + 73 * + ( - + 79 ) THEN 94 ELSE 1 END ) * - + 2 + - 45
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT ALL - 62 * - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL - 62 * - COUNT ( * )
----
62

query I rowsort
SELECT - 73 + + 16 AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-799
SELECT ALL COALESCE ( - - COUNT( * ), + - 56 DIV 1 * - 10, - + 60 * - + 2 + 31 * CAST( ( + - 15 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL COALESCE ( - - COUNT ( * ), + - 56 / 1 * - 10, - + 60 * - + 2 + 31 * CAST ( ( + - 15 ) AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-800
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col2, 29 * + CASE - 1 WHEN 97 THEN NULL WHEN 39 + + MAX( DISTINCT - 88 ) * 19 * CASE - - 41 WHEN - 23 THEN NULL ELSE + + 40 END + COUNT( * ) THEN + 29 - - 66 * + COUNT( * ) END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-800
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, 29 * + CASE - 1 WHEN 97 THEN NULL WHEN 39 + + MAX ( DISTINCT - 88 ) * 19 * CASE - - 41 WHEN - 23 THEN NULL ELSE + + 40 END + COUNT ( * ) THEN + 29 - - 66 * + COUNT ( * ) END AS col1
----
-1
NULL

query I rowsort
SELECT - + 76 + - - 10 AS col1
----
-66

query I rowsort
SELECT ALL - 19
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-803
SELECT ALL + - CASE - COALESCE ( + + 50, - 65, - 61 ) WHEN - 15 THEN NULL ELSE - - 69 * 0 * - + ( - 0 ) * 9 + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + - CASE - COALESCE ( + + 50, - 65, - 61 ) WHEN - 15 THEN NULL ELSE - - 69 * 0 * - + ( - 0 ) * 9 + CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT + + 6
----
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-807
SELECT + 54 DIV - 73 + - 82 + COUNT( ALL - 12 )
----
-81

skipif mysql # not compatible
query I rowsort label-807
SELECT + 54 / - 73 + - 82 + COUNT ( ALL - 12 )
----
-81

query I rowsort
SELECT ALL - + 10 * + 49 * + 0 + + 53 col2
----
53

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT 99 * - 9 + - ( - COUNT( DISTINCT 2 ) ) AS col0
----
-890

skipif mysql # not compatible
query I rowsort label-811
SELECT 99 * - 9 + - ( - COUNT ( DISTINCT 2 ) ) AS col0
----
-890

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-813
SELECT + COUNT( * ) * + 38 + - 43 + - ( - COALESCE ( 48, - 9 + + - COUNT( * ) DIV - - 31 ) ) * + 34 AS col0
----
1627

skipif mysql # not compatible
query I rowsort label-813
SELECT + COUNT ( * ) * + 38 + - 43 + - ( - COALESCE ( 48, - 9 + + - COUNT ( * ) / - - 31 ) ) * + 34 AS col0
----
1627

onlyif mysql # aggregate syntax: 
query II rowsort label-814
SELECT ALL + MIN( 56 ) AS col2, - 43
----
56
-43

skipif mysql # not compatible
query II rowsort label-814
SELECT ALL + MIN ( 56 ) AS col2, - 43
----
56
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT + ( - 5 ) DIV 20 + 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-815
SELECT + ( - 5 ) / 20 + 95 AS col1
----
95

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

query I rowsort
SELECT + - 44 * - 99 AS col0
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL + 27 * 15 - - ( - ( - - 23 ) ) * COUNT( * ) + + 25 + - 82 * COUNT( * ) * - 28 * 79
----
181791

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + 27 * 15 - - ( - ( - - 23 ) ) * COUNT ( * ) + + 25 + - 82 * COUNT ( * ) * - 28 * 79
----
181791

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + CASE + COUNT( ALL + 82 ) WHEN COUNT( * ) - - - NULLIF ( - 30, 66 + - 90 ) THEN - 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-819
SELECT + CASE + COUNT ( ALL + 82 ) WHEN COUNT ( * ) - - - NULLIF ( - 30, 66 + - 90 ) THEN - 22 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT ALL COUNT( * ) * + ( + + 72 ) * - + 85 + + + 9 + CAST( NULL AS SIGNED ) * ( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL COUNT ( * ) * + ( + + 72 ) * - + 85 + + + 9 + CAST ( NULL AS INTEGER ) * ( 7 )
----
NULL

query I rowsort
SELECT ALL + - 14
----
-14

query I rowsort
SELECT + 3
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-824
SELECT ALL + 91 * - + ( + CAST( - + 72 AS SIGNED ) ) + + + 0 + - + 34 + + 63
----
6581

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + 91 * - + ( + CAST ( - + 72 AS INTEGER ) ) + + + 0 + - + 34 + + 63
----
6581

query I rowsort
SELECT 38 col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT + + COUNT( * ) * + 37, + 91 col1
----
37
91

skipif mysql # not compatible
query II rowsort label-826
SELECT + + COUNT ( * ) * + 37, + 91 col1
----
37
91

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT DISTINCT - - 63 * 75 * + 89 - + 11 + - 61 + + COUNT( * ) * 43
----
420496

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT - - 63 * 75 * + 89 - + 11 + - 61 + + COUNT ( * ) * 43
----
420496

onlyif mysql # aggregate syntax: 
query II rowsort label-828
SELECT ALL + 62 AS col0, - ( - 31 ) * + - 95 * - 14 - - 23 + COUNT( DISTINCT + 21 ) * 57 * CASE + 91 WHEN COALESCE ( + - 17, - 77 + + COUNT( * ) ) THEN COUNT( * ) * 51 WHEN - COUNT( * ) THEN - 29 - - COALESCE ( + 48 - 91, 41 ) * + 84 END
----
62
NULL

skipif mysql # not compatible
query II rowsort label-828
SELECT ALL + 62 AS col0, - ( - 31 ) * + - 95 * - 14 - - 23 + COUNT ( DISTINCT + 21 ) * 57 * CASE + 91 WHEN COALESCE ( + - 17, - 77 + + COUNT ( * ) ) THEN COUNT ( * ) * 51 WHEN - COUNT ( * ) THEN - 29 - - COALESCE ( + 48 - 91, 41 ) * + 84 END
----
62
NULL

query I rowsort
SELECT CASE + + 91 WHEN - 89 + 3 THEN NULL ELSE + ( - 39 ) END
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-830
SELECT COUNT( * ) * + - 64 * 99 + 4 DIV 43 AS col0
----
-6336

skipif mysql # not compatible
query I rowsort label-830
SELECT COUNT ( * ) * + - 64 * 99 + 4 / 43 AS col0
----
-6336

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

query I rowsort
SELECT + 87 * - - 4 * - 55
----
-19140

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT 25 * - 1 + - + COUNT( * ) + + 36
----
10

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT 25 * - 1 + - + COUNT ( * ) + + 36
----
10

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

query I rowsort
SELECT DISTINCT + 82 * 55 - - + 48
----
4558

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

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

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

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

query I rowsort
SELECT DISTINCT + 48 * + 94
----
4512

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

query I rowsort
SELECT - 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT SUM( - - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-842
SELECT SUM ( - - 12 ) AS col1
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL ( 46 ) - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL ( 46 ) - COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL COALESCE ( 38, + - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL COALESCE ( 38, + - COUNT ( * ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-846
SELECT - CAST( NULL AS SIGNED ) col0, - COUNT( * ) * + 12
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-846
SELECT - CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * + 12
----
NULL
-12

query II rowsort
SELECT - ( + - 95 ) * - - 40 * - ( 79 ) * 56 col1, 80
----
-16811200
80

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

query I rowsort
SELECT ALL ( + - 50 ) * - 33 * + 87
----
143550

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

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

query I rowsort
SELECT 8
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-852
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 53 * - COUNT( * ) AS col1
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-852
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 53 * - COUNT ( * ) AS col1
----
NULL
-53

query I rowsort
SELECT ALL 87
----
87

query II rowsort
SELECT - 88 AS col0, 14 AS col1
----
-88
14

query I rowsort
SELECT ALL 79
----
79

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

query I rowsort
SELECT 36 * + ( 70 )
----
2520

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

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

query I rowsort
SELECT DISTINCT - 95
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-860
SELECT + ( + CAST( NULL AS SIGNED ) ) + - - 66 AS col2, 61 AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-860
SELECT + ( + CAST ( NULL AS INTEGER ) ) + - - 66 AS col2, 61 AS col0
----
NULL
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-861
SELECT ALL CAST( NULL AS SIGNED ) col2, 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL CAST ( NULL AS INTEGER ) col2, 47
----
NULL
47

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

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

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

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

query II rowsort
SELECT + + 46, 26 AS col0
----
46
26

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT ALL - COUNT( * ) + + - 4
----
-5

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - COUNT ( * ) + + - 4
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-866
SELECT COUNT( * ) DIV - 70 + + 6 + - + 95 - + COUNT( * ) DIV + 25 * + 41 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-866
SELECT COUNT ( * ) / - 70 + + 6 + - + 95 - + COUNT ( * ) / + 25 * + 41 AS col2
----
-89

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-868
SELECT - COUNT( * ) + + ( - - 39 ) + - ( - + 30 ) * + + 21 * 88 + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) * COUNT( * ) ) - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT - COUNT ( * ) + + ( - - 39 ) + - ( - + 30 ) * + + 21 * 88 + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) * COUNT ( * ) ) - 35
----
NULL

query I rowsort
SELECT ALL 85 * 84
----
7140

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

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

query I rowsort
SELECT ALL + 7 + 32 * + 81 + - 16
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT MIN( 54 )
----
54

skipif mysql # not compatible
query I rowsort label-872
SELECT MIN ( 54 )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT + 12 + 3 + + 54 + - - 98 + 43 DIV + 53
----
167

skipif mysql # not compatible
query I rowsort label-873
SELECT + 12 + 3 + + 54 + - - 98 + 43 / + 53
----
167

query I rowsort
SELECT 61 * + 28
----
1708

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-876
SELECT + 95 - - - CASE 12 WHEN - 2 THEN ( - 4 ) * 43 + - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) / - + ( - 46 ) * AVG ( ALL + 29 ) THEN + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT + 95 - - - CASE 12 WHEN - 2 THEN ( - 4 ) * 43 + - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) / - + ( - 46 ) * AVG ( ALL + 29 ) THEN + 88 END
----
NULL

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

query I rowsort
SELECT + 93
----
93

query I rowsort
SELECT ALL 74 + + + 94
----
168

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

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

query I rowsort
SELECT 75 AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-882
SELECT ALL CAST( - 58 AS SIGNED ) DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL CAST ( - 58 AS INTEGER ) / + 78 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-883
SELECT COUNT( * ) DIV - + ( 3 ) * 70 * - - 42 + + - ( + 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-883
SELECT COUNT ( * ) / - + ( 3 ) * 70 * - - 42 + + - ( + 77 ) col0
----
-77

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

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL - MIN ( - 99 )
----
99

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

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

query I rowsort
SELECT 61
----
61

query I rowsort
SELECT ALL + 7 - + 87 + - - 25 * - COALESCE ( 46, + 28 ) * + + 98
----
-112780

query I rowsort
SELECT 70 AS col1
----
70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-890
SELECT DISTINCT COALESCE ( - COALESCE ( + - NULLIF ( 71, - 41 ), + + 81, 11 ), - + COUNT( * ) DIV - 62 + + 11 ) * - - 92
----
6532

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT COALESCE ( - COALESCE ( + - NULLIF ( 71, - 41 ), + + 81, 11 ), - + COUNT ( * ) / - 62 + + 11 ) * - - 92
----
6532

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

query I rowsort
SELECT - 12 AS col0
----
-12

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

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL ( - 94 ) * + COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT COUNT( * ) + - + COUNT( * ) + - - 82 + - + 63 - - 78
----
97

skipif mysql # not compatible
query I rowsort label-894
SELECT COUNT ( * ) + - + COUNT ( * ) + - - 82 + - + 63 - - 78
----
97

query I rowsort
SELECT - 66 col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT COUNT( * ) + 54
----
55

skipif mysql # not compatible
query I rowsort label-896
SELECT COUNT ( * ) + 54
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-897
SELECT ALL ( - + NULLIF ( + - CAST( NULL AS DECIMAL ), - - 61 ) ) * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL ( - + NULLIF ( + - CAST ( NULL AS REAL ), - - 61 ) ) * + 64 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 27 AS col2, 49
----
27
49

query I rowsort
SELECT ALL 31
----
31

query I rowsort
SELECT 67 + - 96
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-901
SELECT CAST( + COUNT( * ) AS SIGNED ) + 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-901
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + 57 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT + 36 + + 61 * + 42 * + COUNT( * )
----
2598

skipif mysql # not compatible
query I rowsort label-902
SELECT + 36 + + 61 * + 42 * + COUNT ( * )
----
2598

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT ALL 6 DIV - + 62
----
0

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL 6 / - + 62
----
0

query I rowsort
SELECT ALL - 4 + - 52 * + - 87 AS col2
----
4520

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

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

query II rowsort
SELECT - 80 col1, + ( + 97 )
----
-80
97

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

skipif mysql # not compatible
query I rowsort label-907
SELECT + CAST ( - 8 AS INTEGER ) / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 28 + - - 91 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL + 13 + + - COUNT( + 44 ) * - + 14
----
27

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL + 13 + + - COUNT ( + 44 ) * - + 14
----
27

query I rowsort
SELECT + 30
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-911
SELECT - CASE + 78 WHEN + 37 * COUNT( * ) THEN NULL ELSE COUNT( * ) * - - ( + - 56 ) END + ( + MIN( - - 78 ) ) * COUNT( * ) DIV - 72 + - 66
----
-11

skipif mysql # not compatible
query I rowsort label-911
SELECT - CASE + 78 WHEN + 37 * COUNT ( * ) THEN NULL ELSE COUNT ( * ) * - - ( + - 56 ) END + ( + MIN ( - - 78 ) ) * COUNT ( * ) / - 72 + - 66
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT ALL + - 80 + - 46 DIV + 66 - + 95 + + COALESCE ( + COUNT( * ), MAX( ALL - + 71 ) )
----
-174

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL + - 80 + - 46 / + 66 - + 95 + + COALESCE ( + COUNT ( * ), MAX ( ALL - + 71 ) )
----
-174

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT - COUNT( * ) + 72 * - MIN( DISTINCT 99 ) * + + 85
----
-605881

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT - COUNT ( * ) + 72 * - MIN ( DISTINCT 99 ) * + + 85
----
-605881

query I rowsort
SELECT DISTINCT - - 17
----
17

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-919
SELECT 93 AS col2, 14 DIV - 20
----
93
0

skipif mysql # not compatible
query II rowsort label-919
SELECT 93 AS col2, 14 / - 20
----
93
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT ALL - - COALESCE ( - - 6, CAST( NULL AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - - COALESCE ( - - 6, CAST ( NULL AS INTEGER ) )
----
6

query I rowsort
SELECT + 87
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT - + 25 * - 1 + - CAST( NULL AS SIGNED ) - ( + 35 ) + + - COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT - + 25 * - 1 + - CAST ( NULL AS INTEGER ) - ( + 35 ) + + - COUNT ( * ) * COUNT ( * )
----
NULL

query I rowsort
SELECT + + 63
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT ALL - + 1 - CASE - COUNT( * ) WHEN + - 93 + - + 16 THEN + 69 ELSE NULL END col0, 74 AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-924
SELECT ALL - + 1 - CASE - COUNT ( * ) WHEN + - 93 + - + 16 THEN + 69 ELSE NULL END col0, 74 AS col2
----
NULL
74

query I rowsort
SELECT 30 AS col0
----
30

query I rowsort
SELECT ALL + 62 - - 71 AS col1
----
133

query I rowsort
SELECT 56 * - 15
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT ALL - MAX( 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL - MAX ( 54 )
----
-54

query II rowsort
SELECT DISTINCT + 48 * 17 AS col0, - 25 * + ( + - 23 ) AS col2
----
816
575

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT - ( COUNT( * ) ) * + - 10 + - - 48 - + 4 - - 69 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-932
SELECT - ( COUNT ( * ) ) * + - 10 + - - 48 - + 4 - - 69 AS col2
----
123

query I rowsort
SELECT 47 AS col1
----
47

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

query I rowsort
SELECT + 7 col2
----
7

query II rowsort
SELECT 32 * - 84, - 22 AS col1
----
-2688
-22

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

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

query I rowsort
SELECT 42 * - - ( - 18 ) AS col0
----
-756

query I rowsort
SELECT 39 AS col0
----
39

query I rowsort
SELECT DISTINCT 68
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-942
SELECT ALL 45 DIV - SUM( DISTINCT - 16 )
----
2

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL 45 / - SUM ( DISTINCT - 16 )
----
2

query I rowsort
SELECT ALL 74
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-944
SELECT + NULLIF ( 58, + CAST( NULL AS SIGNED ) * - 50 * - - COUNT( * ) ) * - 66
----
-3828

skipif mysql # not compatible
query I rowsort label-944
SELECT + NULLIF ( 58, + CAST ( NULL AS INTEGER ) * - 50 * - - COUNT ( * ) ) * - 66
----
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT ALL COUNT( * ) * - 78
----
-78

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL COUNT ( * ) * - 78
----
-78

query I rowsort
SELECT 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-947
SELECT - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT - NULLIF ( - - 56, + COUNT( * ) + 67 )
----
-56

skipif mysql # not compatible
query I rowsort label-949
SELECT - NULLIF ( - - 56, + COUNT ( * ) + 67 )
----
-56

query I rowsort
SELECT - - 53 AS col1
----
53

query I rowsort
SELECT 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-952
SELECT ALL COUNT( * ) + 15, + 12 + 31 AS col2
----
16
43

skipif mysql # not compatible
query II rowsort label-952
SELECT ALL COUNT ( * ) + 15, + 12 + 31 AS col2
----
16
43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT + 61 DIV - 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-954
SELECT + 61 / - 43 AS col1
----
-1

query I rowsort
SELECT ALL 76
----
76

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

query I rowsort
SELECT ALL + 82 + + 39 - + 12 + 74 + + 24 AS col1
----
207

query I rowsort
SELECT + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT + COUNT( * ) * - + 86 * - ( - 89 ) + 85 - + 78 * + 61 * + - MAX( ALL 29 ) AS col2
----
130413

skipif mysql # not compatible
query I rowsort label-959
SELECT + COUNT ( * ) * - + 86 * - ( - 89 ) + 85 - + 78 * + 61 * + - MAX ( ALL 29 ) AS col2
----
130413

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

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT + 50 - + CASE 99 WHEN + + 77 THEN MAX( ALL + - 29 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT + 50 - + CASE 99 WHEN + + 77 THEN MAX ( ALL + - 29 ) END
----
NULL

query I rowsort
SELECT ALL 32
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT - MIN( DISTINCT 90 ) DIV 66 * + 36 * - COALESCE ( COUNT( * ), - - 70 - 23 ) * - + 14 * - ( + 8 ) AS col0
----
4032

skipif mysql # not compatible
query I rowsort label-963
SELECT - MIN ( DISTINCT 90 ) / 66 * + 36 * - COALESCE ( COUNT ( * ), - - 70 - 23 ) * - + 14 * - ( + 8 ) AS col0
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + + 35 * - COUNT( * ) * + + 39
----
-1365

skipif mysql # not compatible
query I rowsort label-964
SELECT + + 35 * - COUNT ( * ) * + + 39
----
-1365

query I rowsort
SELECT - 78 / CASE 30 WHEN - 24 - 53 + 82 THEN NULL WHEN 27 * + 3 THEN - 68 ELSE NULL END + - + 86 + - + 72 + + + 50 + + ( + + 54 ) * + 30 + - - 60 * - 8 + + 39 AS col1
----
NULL

query I rowsort
SELECT 32
----
32

query I rowsort
SELECT + + 78
----
78

query I rowsort
SELECT + + 86 + + + 28
----
114

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

query II rowsort
SELECT + 39 * - + 39 AS col0, 27
----
-1521
27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-972
SELECT ALL 0 * SUM( ALL - 40 ) - + + 91 * COUNT( * ) - CAST( NULL AS SIGNED ), 83 + - + 54 + - 62 col0
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-972
SELECT ALL 0 * SUM ( ALL - 40 ) - + + 91 * COUNT ( * ) - CAST ( NULL AS INTEGER ), 83 + - + 54 + - 62 col0
----
NULL
-33

query I rowsort
SELECT + 42
----
42

query I rowsort
SELECT ALL + 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT + NULLIF ( COUNT( * ), CASE + + COUNT( * ) WHEN - + 31 THEN SUM( COALESCE ( + 55, + 29 ) ) ELSE NULL END * + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-975
SELECT + NULLIF ( COUNT ( * ), CASE + + COUNT ( * ) WHEN - + 31 THEN SUM ( COALESCE ( + 55, + 29 ) ) ELSE NULL END * + 54 )
----
1

query I rowsort
SELECT + 87 + + 19
----
106

query I rowsort
SELECT + 5 * 5
----
25

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT - COUNT( * ) + - 78
----
-79

skipif mysql # not compatible
query I rowsort label-982
SELECT - COUNT ( * ) + - 78
----
-79

query II rowsort
SELECT + 65 AS col2, + 7 AS col0
----
65
7

query I rowsort
SELECT - 27 * - - 77
----
-2079

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

query I rowsort
SELECT ALL 24 * + + 90 * - + 39 + + - 99
----
-84339

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-987
SELECT - 36 * COUNT( * ) + - 6 DIV - 61 * + NULLIF ( - 9, 58 ) * - 94 DIV - 14 + + 13 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-987
SELECT - 36 * COUNT ( * ) + - 6 / - 61 * + NULLIF ( - 9, 58 ) * - 94 / - 14 + + 13 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-988
SELECT - ( CASE CAST( - + 67 AS SIGNED ) WHEN 27 * + CAST( NULL AS SIGNED ) * + 35 * + 45 * + 22 THEN - ( + 99 ) / - 67 * CAST( - - 40 AS SIGNED ) * + + 30 - - - 83 END ) - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT - ( CASE CAST ( - + 67 AS INTEGER ) WHEN 27 * + CAST ( NULL AS INTEGER ) * + 35 * + 45 * + 22 THEN - ( + 99 ) / - 67 * CAST ( - - 40 AS INTEGER ) * + + 30 - - - 83 END ) - COUNT ( * ) col2
----
NULL

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

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

query I rowsort
SELECT - 91 + + + 67 col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-991
SELECT COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 73 * + - 23 AS col2
----
-1679

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

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL + COUNT ( * ) + 92 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT DISTINCT + - 47 + + - 85 DIV - 1 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT + - 47 + + - 85 / - 1 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT DISTINCT 24 DIV + 47 col0
----
0

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT 24 / + 47 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-996
SELECT - - NULLIF ( - + 93, - - 15 ) + - + 33 + + ( - 97 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-996
SELECT - - NULLIF ( - + 93, - - 15 ) + - + 33 + + ( - 97 ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT ALL + + 97 + - ( - 87 ) - 59 DIV 41 AS col0
----
183

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + + 97 + - ( - 87 ) - 59 / 41 AS col0
----
183

query I rowsort
SELECT ALL 51 - - 50
----
101

query I rowsort
SELECT 42
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT DISTINCT COUNT( * ) AS col2, 93 + + - ( + - 57 )
----
1
150

skipif mysql # not compatible
query II rowsort label-1000
SELECT DISTINCT COUNT ( * ) AS col2, 93 + + - ( + - 57 )
----
1
150

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1003
SELECT ALL - 70 - + COALESCE ( CAST( NULL AS SIGNED ), + - 98 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL - 70 - + COALESCE ( CAST ( NULL AS INTEGER ), + - 98 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1004
SELECT - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT ALL + 95 * MAX( ALL + 84 ) + + COALESCE ( ( + COUNT( * ) ), COALESCE ( - 18, - 26 ) ) AS col2
----
7981

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL + 95 * MAX ( ALL + 84 ) + + COALESCE ( ( + COUNT ( * ) ), COALESCE ( - 18, - 26 ) ) AS col2
----
7981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT - - 90 * - SUM( DISTINCT 93 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT - - 90 * - SUM ( DISTINCT 93 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT + - ( - COUNT( 44 ) ) * - + 33 * - + 24 + 29 + ( + + 69 )
----
890

skipif mysql # not compatible
query I rowsort label-1007
SELECT + - ( - COUNT ( 44 ) ) * - + 33 * - + 24 + 29 + ( + + 69 )
----
890

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT ALL - 80 AS col2, - COUNT( * ) + - - 85
----
-80
84

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL - 80 AS col2, - COUNT ( * ) + - - 85
----
-80
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT ALL COUNT( ALL 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL COUNT ( ALL 33 ) col0
----
1

query I rowsort
SELECT - 0
----
0

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

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

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

query I rowsort
SELECT 40 AS col1
----
40

query I rowsort
SELECT + NULLIF ( + 59, + NULLIF ( + 99, 60 * - + 2 + - - 60 ) )
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT + 11 * + COUNT( * ) * 6 * + - 97 * 60 AS col1
----
-384120

skipif mysql # not compatible
query I rowsort label-1016
SELECT + 11 * + COUNT ( * ) * 6 * + - 97 * 60 AS col1
----
-384120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1017
SELECT DISTINCT COUNT( * ) DIV - 18 AS col2, + COUNT( * ) - 60 AS col1
----
0
-59

skipif mysql # not compatible
query II rowsort label-1017
SELECT DISTINCT COUNT ( * ) / - 18 AS col2, + COUNT ( * ) - 60 AS col1
----
0
-59

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1021
SELECT CAST( - 29 AS SIGNED ), 9 AS col1
----
-29
9

skipif mysql # not compatible
query II rowsort label-1021
SELECT CAST ( - 29 AS INTEGER ), 9 AS col1
----
-29
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT ALL 8 DIV - 30 + 86
----
86

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL 8 / - 30 + 86
----
86

query I rowsort
SELECT + 75 + + - 55 + + - 8 AS col0
----
12

query I rowsort
SELECT ALL - 40 * 29 AS col1
----
-1160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT CASE + + COUNT( * ) WHEN + - 36 + - 99 + + 42 * + + MIN( ALL + CAST( NULL AS SIGNED ) ) * 4 THEN + 45 + + 3 WHEN - COUNT( * ) * + 27 * 92 + + - 9 - + 76 THEN NULL END * + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT CASE + + COUNT ( * ) WHEN + - 36 + - 99 + + 42 * + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) * 4 THEN + 45 + + 3 WHEN - COUNT ( * ) * + 27 * 92 + + - 9 - + 76 THEN NULL END * + + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1026
SELECT DISTINCT 74 * + + COUNT( * ) AS col0, + 54
----
74
54

skipif mysql # not compatible
query II rowsort label-1026
SELECT DISTINCT 74 * + + COUNT ( * ) AS col0, + 54
----
74
54

query I rowsort
SELECT ALL + 67 + - 82 col1
----
-15

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

query I rowsort
SELECT ALL 9 * - 72 col0
----
-648

query I rowsort
SELECT 67 * + 42 + + - 6
----
2808

query I rowsort
SELECT 10 col0
----
10

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

query I rowsort
SELECT 93 + - + 42 AS col2
----
51

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

query I rowsort
SELECT + 28 col2
----
28

query II rowsort
SELECT 2 + + + 95 AS col2, - 84
----
97
-84

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

query I rowsort
SELECT 1 col0
----
1

query I rowsort
SELECT ALL 39 + 36
----
75

query I rowsort
SELECT ALL - + 74 * 57 + - 36 AS col2
----
-4254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1041
SELECT DISTINCT + 93 + + MIN( - CAST( 78 AS SIGNED ) ) AS col1, - 39 AS col1
----
15
-39

skipif mysql # not compatible
query II rowsort label-1041
SELECT DISTINCT + 93 + + MIN ( - CAST ( 78 AS INTEGER ) ) AS col1, - 39 AS col1
----
15
-39

query I rowsort
SELECT ALL - 34 - 2
----
-36

query II rowsort
SELECT DISTINCT - NULLIF ( + 28, - + 1 ) * - - 21, 18 AS col1
----
-588
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1044
SELECT ALL + - 61 - + COUNT( * ) AS col0, COUNT( * ) * - 95 - 75 * COALESCE ( - - SUM( - 75 ), - 48 ) * + COUNT( * ) DIV COUNT( * )
----
-62
5530

skipif mysql # not compatible
query II rowsort label-1044
SELECT ALL + - 61 - + COUNT ( * ) AS col0, COUNT ( * ) * - 95 - 75 * COALESCE ( - - SUM ( - 75 ), - 48 ) * + COUNT ( * ) / COUNT ( * )
----
-62
5530

query I rowsort
SELECT - 22 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1046
SELECT 36 DIV COUNT( * ) + - + 93
----
-57

skipif mysql # not compatible
query I rowsort label-1046
SELECT 36 / COUNT ( * ) + - + 93
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT COUNT( ALL + 86 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1047
SELECT COUNT ( ALL + 86 ) col0
----
1

query I rowsort
SELECT ALL - - 69 - 61 col1
----
8

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

query II rowsort
SELECT 85 * - 55 AS col1, 96
----
-4675
96

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

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

query I rowsort
SELECT 15 - - 54 AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) / - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) / - + 29
----
NULL

query I rowsort
SELECT ALL 95
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT 61 - - 31 * + - COALESCE ( + 74, COUNT( * ) + - COALESCE ( - COUNT( * ), - 68, - 42 ) DIV + 70 ) AS col2
----
-2233

skipif mysql # not compatible
query I rowsort label-1055
SELECT 61 - - 31 * + - COALESCE ( + 74, COUNT ( * ) + - COALESCE ( - COUNT ( * ), - 68, - 42 ) / + 70 ) AS col2
----
-2233

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1057
SELECT ALL + 75 DIV CAST( 23 AS SIGNED ) * - - 80 + 57 AS col1
----
297

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL + 75 / CAST ( 23 AS INTEGER ) * - - 80 + 57 AS col1
----
297

query I rowsort
SELECT 24 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1059
SELECT + COUNT( * ) DIV + 8 + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1059
SELECT + COUNT ( * ) / + 8 + 40 AS col2
----
40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT ALL - 83 * - COUNT( * ) * - - CAST( + 72 AS SIGNED ) + - - 94
----
6070

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL - 83 * - COUNT ( * ) * - - CAST ( + 72 AS INTEGER ) + - - 94
----
6070

query I rowsort
SELECT - 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT + ( - CASE - - 80 WHEN COUNT( * ) THEN - 41 * + + ( 83 ) END ) + - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT + ( - CASE - - 80 WHEN COUNT ( * ) THEN - 41 * + + ( 83 ) END ) + - + 91
----
NULL

query I rowsort
SELECT 99
----
99

query I rowsort
SELECT 26 + - + 77
----
-51

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

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

query I rowsort
SELECT DISTINCT 90
----
90

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

query I rowsort
SELECT + 94
----
94

query II rowsort
SELECT ALL 28 + - + 95 + - 63, 35 AS col0
----
-130
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT 52 + + ( - - 1 ) + 46 * + CAST( - + 56 AS SIGNED ) - 14
----
-2537

skipif mysql # not compatible
query I rowsort label-1071
SELECT 52 + + ( - - 1 ) + 46 * + CAST ( - + 56 AS INTEGER ) - 14
----
-2537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1072
SELECT ALL + COUNT( * ) * 85 * 25 DIV COUNT( * ) AS col1
----
2125

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL + COUNT ( * ) * 85 * 25 / COUNT ( * ) AS col1
----
2125

query I rowsort
SELECT ALL - 32
----
-32

query I rowsort
SELECT ALL - 72 + + 69 * - + 47 + + - 59
----
-3374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1075
SELECT ALL 98 + - COUNT( * ) * COALESCE ( - 33, + 78 + + 96 + - 31 * + 0 * 76, - COUNT( * ) DIV COUNT( * ) * - 87 )
----
131

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL 98 + - COUNT ( * ) * COALESCE ( - 33, + 78 + + 96 + - 31 * + 0 * 76, - COUNT ( * ) / COUNT ( * ) * - 87 )
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT 48 DIV 3
----
16

skipif mysql # not compatible
query I rowsort label-1076
SELECT 48 / 3
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT 27 + + MIN( ALL + 3 )
----
30

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT 27 + + MIN ( ALL + 3 )
----
30

query II rowsort
SELECT 49, 21 AS col2
----
49
21

query I rowsort
SELECT + 18 col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT ALL 62 DIV + 58
----
1

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL 62 / + 58
----
1

query I rowsort
SELECT 57 AS col1
----
57

query I rowsort
SELECT 92 AS col0
----
92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1084
SELECT ALL - 47 AS col2, - COUNT( * ) * - + CASE + + 42 WHEN + 21 THEN 0 ELSE NULL END * - CAST( - + CASE + - 10 WHEN 38 + + 8 - - + ( - MIN( 58 ) ) * 55 + - - 88 THEN + COUNT( * ) WHEN - 14 * - 85 THEN - 67 + - COUNT( * ) WHEN - 60 / + 93 THEN NULL END AS SIGNED ) + 23
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-1084
SELECT ALL - 47 AS col2, - COUNT ( * ) * - + CASE + + 42 WHEN + 21 THEN 0 ELSE NULL END * - CAST ( - + CASE + - 10 WHEN 38 + + 8 - - + ( - MIN ( 58 ) ) * 55 + - - 88 THEN + COUNT ( * ) WHEN - 14 * - 85 THEN - 67 + - COUNT ( * ) WHEN - 60 / + 93 THEN NULL END AS INTEGER ) + 23
----
-47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT CASE - + COUNT( * ) WHEN 27 + + - 56 + - 25 + - ( - - 4 ) THEN NULL WHEN - SUM( ALL - 62 ) + + - 33 THEN - 92 END * 81 + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT CASE - + COUNT ( * ) WHEN 27 + + - 56 + - 25 + - ( - - 4 ) THEN NULL WHEN - SUM ( ALL - 62 ) + + - 33 THEN - 92 END * 81 + 11
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT DISTINCT 67 - + CAST( + CASE - + 76 WHEN - 89 + + + COUNT( * ) THEN NULL WHEN - - 0 THEN + - 13 ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT 67 - + CAST ( + CASE - + 76 WHEN - 89 + + + COUNT ( * ) THEN NULL WHEN - - 0 THEN + - 13 ELSE NULL END AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 64 - + - 48
----
112

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

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

query I rowsort
SELECT 59
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT ALL - MAX( 44 ) * + 8 AS col0, 33
----
-352
33

skipif mysql # not compatible
query II rowsort label-1092
SELECT ALL - MAX ( 44 ) * + 8 AS col0, 33
----
-352
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT + MAX( DISTINCT ( ( + - 26 ) ) ) * + 81 + 17 * + + 33 AS col0
----
-1545

skipif mysql # not compatible
query I rowsort label-1093
SELECT + MAX ( DISTINCT ( ( + - 26 ) ) ) * + 81 + 17 * + + 33 AS col0
----
-1545

query I rowsort
SELECT - 3 - 27 AS col1
----
-30

query I rowsort
SELECT ALL 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT 7 + - ( 35 ) + - COUNT( - + 44 )
----
-29

skipif mysql # not compatible
query I rowsort label-1096
SELECT 7 + - ( 35 ) + - COUNT ( - + 44 )
----
-29

query I rowsort
SELECT 38 * - 26 AS col1
----
-988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT COALESCE ( + COUNT( ALL ( - 12 ) ), + - 45, + + 99 + 56, 37 * + - COALESCE ( - 54, - ( - COUNT( * ) ), COUNT( * ) DIV - + 87 * + 94 * - 21 + - - 4 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1098
SELECT COALESCE ( + COUNT ( ALL ( - 12 ) ), + - 45, + + 99 + 56, 37 * + - COALESCE ( - 54, - ( - COUNT ( * ) ), COUNT ( * ) / - + 87 * + 94 * - 21 + - - 4 ) ) AS col0
----
1

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

query I rowsort
SELECT - 69 + - + 58
----
-127

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1101
SELECT 99 * + + 50 + CAST( 17 AS SIGNED ) + 95 DIV - ( + 50 ) AS col2
----
4966

skipif mysql # not compatible
query I rowsort label-1101
SELECT 99 * + + 50 + CAST ( 17 AS INTEGER ) + 95 / - ( + 50 ) AS col2
----
4966

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT COUNT( * ) + 6 * - + MIN( ALL - 32 ) * SUM( - 34 ) + - 95 + - CASE + 16 WHEN + 30 * + 81 + + - 83 THEN + + 67 WHEN - 96 THEN - 88 * 60 WHEN 2 THEN NULL ELSE NULL END + - CASE + 71 WHEN + - 72 THEN NULL ELSE + 73 + 32 * - 69 END + 56 * 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT COUNT ( * ) + 6 * - + MIN ( ALL - 32 ) * SUM ( - 34 ) + - 95 + - CASE + 16 WHEN + 30 * + 81 + + - 83 THEN + + 67 WHEN - 96 THEN - 88 * 60 WHEN 2 THEN NULL ELSE NULL END + - CASE + 71 WHEN + - 72 THEN NULL ELSE + 73 + 32 * - 69 END + 56 * 11 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT 76 + ( + 96 ) - - 79 + - ( + COUNT( * ) ) DIV - ( - 37 )
----
251

skipif mysql # not compatible
query I rowsort label-1105
SELECT 76 + ( + 96 ) - - 79 + - ( + COUNT ( * ) ) / - ( - 37 )
----
251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1106
SELECT + 10 + - + ( - CASE CASE + + CAST( NULL AS SIGNED ) WHEN NULLIF ( - NULLIF ( - 96, - 77 + - 87 + - 56 ), - CAST( NULL AS SIGNED ) ) THEN + 11 WHEN - 9 - 81 * + + CAST( NULL AS DECIMAL ) THEN 25 WHEN + COUNT( + + 4 ) THEN NULL END WHEN + 17 * MAX( ALL - 51 * + 47 ) THEN NULL ELSE - 52 * - CAST( NULL AS SIGNED ) END ) - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT + 10 + - + ( - CASE CASE + + CAST ( NULL AS INTEGER ) WHEN NULLIF ( - NULLIF ( - 96, - 77 + - 87 + - 56 ), - CAST ( NULL AS INTEGER ) ) THEN + 11 WHEN - 9 - 81 * + + CAST ( NULL AS REAL ) THEN 25 WHEN + COUNT ( + + 4 ) THEN NULL END WHEN + 17 * MAX ( ALL - 51 * + 47 ) THEN NULL ELSE - 52 * - CAST ( NULL AS INTEGER ) END ) - 46
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 23, + 78 ) * - 7
----
-161

query I rowsort
SELECT - - 68
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1109
SELECT - - SUM( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT - - SUM ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT 99 + + + COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1110
SELECT 99 + + + COUNT ( * ) AS col0
----
100

query I rowsort
SELECT ALL 57
----
57

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

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

query I rowsort
SELECT + 76 * + + 6
----
456

query I rowsort
SELECT 45 + + + 91 col2
----
136

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

skipif mysql # not compatible
query I rowsort label-1115
SELECT ( + - CAST ( + MAX ( DISTINCT - 23 ) AS INTEGER ) )
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT + 3 + + COALESCE ( + 57, 86 + + COALESCE ( - + 15, - 47 ) * COUNT( * ) ) col2
----
60

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + 3 + + COALESCE ( + 57, 86 + + COALESCE ( - + 15, - 47 ) * COUNT ( * ) ) col2
----
60

query I rowsort
SELECT 11
----
11

query I rowsort
SELECT ALL + 85 + - - ( + NULLIF ( ( + 3 ), + + 33 + - 85 + 48 ) ) AS col1
----
88

query II rowsort
SELECT - NULLIF ( + 55, - - ( 84 ) + + - 29 * - 66 ) * - 40 col1, - CASE + 84 WHEN 45 THEN + + 78 + - 11 + + 15 * - 99 / + - 72 WHEN 29 * + 64 THEN 52 END AS col1
----
2200
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1122
SELECT DISTINCT COUNT( * ) col0, - SUM( + 38 ) AS col0
----
1
-38

skipif mysql # not compatible
query II rowsort label-1122
SELECT DISTINCT COUNT ( * ) col0, - SUM ( + 38 ) AS col0
----
1
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-1123
SELECT - 47 AS col1, 35 + - COUNT( * ) AS col1
----
-47
34

skipif mysql # not compatible
query II rowsort label-1123
SELECT - 47 AS col1, 35 + - COUNT ( * ) AS col1
----
-47
34

query I rowsort
SELECT ALL NULLIF ( - 36, - - 67 - + 6 - 3 + - + 70 + + - 28 )
----
-36

query I rowsort
SELECT - 50 AS col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT - 87 DIV 79 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1126
SELECT - 87 / 79 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT - 4 * COALESCE ( + MAX( DISTINCT + 66 ), + + 34 ) AS col0
----
-264

skipif mysql # not compatible
query I rowsort label-1127
SELECT - 4 * COALESCE ( + MAX ( DISTINCT + 66 ), + + 34 ) AS col0
----
-264

query I rowsort
SELECT COALESCE ( + - 80, + 48 + + - 51 * + 90 ) AS col2
----
-80

query I rowsort
SELECT + 61 col0
----
61

query I rowsort
SELECT + ( - 53 ) + - + 39 AS col2
----
-92

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

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

query I rowsort
SELECT NULLIF ( 0, + 33 * 41 + - 13 + + 54 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1133
SELECT + COUNT( * ), + 13 + + 4 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1133
SELECT + COUNT ( * ), + 13 + + 4 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL SUM( ALL + 19 ) * - - 55
----
1045

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL SUM ( ALL + 19 ) * - - 55
----
1045

query I rowsort
SELECT - ( 90 ) + - + 98 + - - 96 AS col2
----
-92

query I rowsort
SELECT 86 * 11 - - 26
----
972

query I rowsort
SELECT DISTINCT + 96 * 80 AS col0
----
7680

query I rowsort
SELECT DISTINCT + 33 * - 87 - - 70 - + ( + 52 )
----
-2853

onlyif mysql # aggregate syntax: 
query II rowsort label-1140
SELECT + 14 * 10 * - - 69 * 51 AS col0, - COUNT( * ) - + COUNT( * ) * + + 24
----
492660
-25

skipif mysql # not compatible
query II rowsort label-1140
SELECT + 14 * 10 * - - 69 * 51 AS col0, - COUNT ( * ) - + COUNT ( * ) * + + 24
----
492660
-25

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1143
SELECT CASE - ( 11 ) WHEN + ( - CASE 13 WHEN + 99 THEN 64 * 64 WHEN - 92 * COALESCE ( CAST( NULL AS DECIMAL ), + 4 * - COUNT( * ) * COALESCE ( + 15, - 78 + 67 ) + + 33, 35 * + 14 - 79 + CAST( NULL AS SIGNED ) * COUNT( * ) ) + - 99 THEN 75 END ) * 6 + + 33 THEN 2 + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT CASE - ( 11 ) WHEN + ( - CASE 13 WHEN + 99 THEN 64 * 64 WHEN - 92 * COALESCE ( CAST ( NULL AS REAL ), + 4 * - COUNT ( * ) * COALESCE ( + 15, - 78 + 67 ) + + 33, 35 * + 14 - 79 + CAST ( NULL AS INTEGER ) * COUNT ( * ) ) + - 99 THEN 75 END ) * 6 + + 33 THEN 2 + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT - 33
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1145
SELECT ( - COUNT( DISTINCT - - 67 ) ) * - - COUNT( * ) + - + 19 * - NULLIF ( - CAST( AVG ( DISTINCT 32 ) AS SIGNED ), CAST( NULL AS SIGNED ) + + 79 + - + 81 + COUNT( * ) * - 16 ) * + - CAST( + 60 AS SIGNED ) DIV + COUNT( * ) col2
----
36479

skipif mysql # not compatible
query I rowsort label-1145
SELECT ( - COUNT ( DISTINCT - - 67 ) ) * - - COUNT ( * ) + - + 19 * - NULLIF ( - CAST ( AVG ( DISTINCT 32 ) AS INTEGER ), CAST ( NULL AS INTEGER ) + + 79 + - + 81 + COUNT ( * ) * - 16 ) * + - CAST ( + 60 AS INTEGER ) / + COUNT ( * ) col2
----
36479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT DISTINCT - - 55 * - 65 - + COUNT( * ) + 94 + - 21 + + - 70 DIV + 87 DIV - 1 col2
----
-3503

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT - - 55 * - 65 - + COUNT ( * ) + 94 + - 21 + + - 70 / + 87 / - 1 col2
----
-3503

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

query I rowsort
SELECT + + 22
----
22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT + - CASE + 32 WHEN - COUNT( ALL + + 67 ) + - 29 * - + 93 THEN NULL WHEN - 48 THEN - 11 * - 54 END AS col1, - 18 * + - 86
----
NULL
1548

skipif mysql # not compatible
query II rowsort label-1150
SELECT + - CASE + 32 WHEN - COUNT ( ALL + + 67 ) + - 29 * - + 93 THEN NULL WHEN - 48 THEN - 11 * - 54 END AS col1, - 18 * + - 86
----
NULL
1548

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT + ( - MIN( ALL + 99 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT + ( - MIN ( ALL + 99 ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT + - ( COUNT( * ) ) * + 40 + + + 59 + - 50 + - 5 + + 81 * + 41 * - 71
----
-235827

skipif mysql # not compatible
query I rowsort label-1152
SELECT + - ( COUNT ( * ) ) * + 40 + + + 59 + - 50 + - 5 + + 81 * + 41 * - 71
----
-235827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1153
SELECT DISTINCT - 91 * - 13 * + CASE MIN( ALL - 96 ) WHEN - 78 THEN - 66 WHEN + ( - AVG ( + CAST( + - 50 AS SIGNED ) ) ) - - + COALESCE ( - 76, - 32 / - 23 * - 15 + - - ( + 57 ) ) * MIN( ALL + + 23 ) * + 85 + + 44 - 4 THEN + 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT - 91 * - 13 * + CASE MIN ( ALL - 96 ) WHEN - 78 THEN - 66 WHEN + ( - AVG ( + CAST ( + - 50 AS INTEGER ) ) ) - - + COALESCE ( - 76, - 32 / - 23 * - 15 + - - ( + 57 ) ) * MIN ( ALL + + 23 ) * + 85 + + 44 - 4 THEN + 53 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 90
----
90

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

query I rowsort
SELECT ALL - 47 + 91 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT DISTINCT - SUM( + 6 ) * + - 19
----
114

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT - SUM ( + 6 ) * + - 19
----
114

query I rowsort
SELECT + 47 + - 59
----
-12

query I rowsort
SELECT - + 68
----
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT DISTINCT + 64 + + - 2 DIV + 87 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT + 64 + + - 2 / + 87 AS col0
----
64

query I rowsort
SELECT ALL - 6 + 94 AS col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1165
SELECT ALL - MIN( ALL - 52 ) AS col0, 13 + + COUNT( * ) + 14 * 26
----
52
378

skipif mysql # not compatible
query II rowsort label-1165
SELECT ALL - MIN ( ALL - 52 ) AS col0, 13 + + COUNT ( * ) + 14 * 26
----
52
378

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

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

query I rowsort
SELECT + 34 - + 90 col1
----
-56

query I rowsort
SELECT ALL NULLIF ( - 34, - + 98 )
----
-34

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

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

query I rowsort
SELECT 1 AS col1
----
1

query I rowsort
SELECT - 45 col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT ALL 93 + + + 59 * CASE + 67 WHEN - 82 + AVG ( - 25 ) THEN NULL WHEN + - COUNT( * ) THEN NULLIF ( - CAST( NULL AS SIGNED ), 17 * - + MAX( + - 83 ) + + 1 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL 93 + + + 59 * CASE + 67 WHEN - 82 + AVG ( - 25 ) THEN NULL WHEN + - COUNT ( * ) THEN NULLIF ( - CAST ( NULL AS INTEGER ), 17 * - + MAX ( + - 83 ) + + 1 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + 99 + + + SUM( ALL - 79 ) + MAX( ALL - 22 ) * - + 99
----
2198

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 99 + + + SUM ( ALL - 79 ) + MAX ( ALL - 22 ) * - + 99
----
2198

query I rowsort
SELECT - 48 AS col0
----
-48

query I rowsort
SELECT - 81 - + 38 + + + 29 * - ( - 25 ) col1
----
606

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT CASE 49 WHEN 46 THEN 1 + - - 16 + + 31 + - 89 + - 78 * - + COALESCE ( CASE - 83 WHEN - 50 THEN ( + - 17 ) END, + 88 ) + - 72 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT CASE 49 WHEN 46 THEN 1 + - - 16 + + 31 + - 89 + - 78 * - + COALESCE ( CASE - 83 WHEN - 50 THEN ( + - 17 ) END, + 88 ) + - 72 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT + COUNT( + - 62 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1177
SELECT + COUNT ( + - 62 ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1178
SELECT - CAST( + + 46 AS SIGNED ), 77 AS col2
----
-46
77

skipif mysql # not compatible
query II rowsort label-1178
SELECT - CAST ( + + 46 AS INTEGER ), 77 AS col2
----
-46
77

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1181
SELECT ALL 52 DIV + - 10 - + - 73 * - 34 * COUNT( ALL - NULLIF ( 20, + 9 ) ) * 92
----
-228349

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL 52 / + - 10 - + - 73 * - 34 * COUNT ( ALL - NULLIF ( 20, + 9 ) ) * 92
----
-228349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT - 45 * CASE 24 WHEN - - CAST( + + 26 AS SIGNED ) THEN NULL WHEN - 3 THEN - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT - 45 * CASE 24 WHEN - - CAST ( + + 26 AS INTEGER ) THEN NULL WHEN - 3 THEN - 37 END
----
NULL

query I rowsort
SELECT ALL 50 * + - 69 AS col2
----
-3450

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1185
SELECT ALL - 18 DIV 61 * + CAST( + 36 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - 18 / 61 * + CAST ( + 36 AS INTEGER )
----
0

query I rowsort
SELECT - 15 * - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL - 10 * - COUNT( * ) * 86 * + + 29 AS col0
----
24940

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - 10 * - COUNT ( * ) * 86 * + + 29 AS col0
----
24940

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT + ( + - 63 ) * - - 26 + + + COUNT( * )
----
-1637

skipif mysql # not compatible
query I rowsort label-1188
SELECT + ( + - 63 ) * - - 26 + + + COUNT ( * )
----
-1637

query I rowsort
SELECT - 91 * + 0 AS col1
----
0

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

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

query I rowsort
SELECT DISTINCT + - 50
----
-50

query I rowsort
SELECT + 89 + - - ( - 29 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1194
SELECT - + 23 * + 41, MIN( ALL - + 52 ) AS col0
----
-943
-52

skipif mysql # not compatible
query II rowsort label-1194
SELECT - + 23 * + 41, MIN ( ALL - + 52 ) AS col0
----
-943
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL + COALESCE ( + + 72, + + 21 + - - MAX( DISTINCT - 6 ) ) * 90
----
6480

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL + COALESCE ( + + 72, + + 21 + - - MAX ( DISTINCT - 6 ) ) * 90
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT - - 6 - 73 * + COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1197
SELECT - - 6 - 73 * + COUNT ( * ) AS col0
----
-67

query I rowsort
SELECT DISTINCT + - 7
----
-7

query I rowsort
SELECT 69 AS col2
----
69

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

query I rowsort
SELECT - 65 * + 58 + - - 82
----
-3688

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT ALL - COUNT( * ) * - 97 + - + 72 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - COUNT ( * ) * - 97 + - + 72 * COUNT ( * )
----
25

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

query I rowsort
SELECT 12 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1205
SELECT + - CAST( - 25 AS SIGNED ) - + + 17
----
8

skipif mysql # not compatible
query I rowsort label-1205
SELECT + - CAST ( - 25 AS INTEGER ) - + + 17
----
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + + 90 - 46 * + - 16 + - 90 + - COUNT( * ) * + 51 * NULLIF ( + 80, - - 19 ) + + - ( - ( - 79 ) ) - + 3 AS col0
----
-3426

skipif mysql # not compatible
query I rowsort label-1207
SELECT + + 90 - 46 * + - 16 + - 90 + - COUNT ( * ) * + 51 * NULLIF ( + 80, - - 19 ) + + - ( - ( - 79 ) ) - + 3 AS col0
----
-3426

query I rowsort
SELECT - + 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL + SUM( + 13 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + SUM ( + 13 ) col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1210
SELECT + - 70 * 33 DIV COUNT( * ) + 88 AS col2
----
-2222

skipif mysql # not compatible
query I rowsort label-1210
SELECT + - 70 * 33 / COUNT ( * ) + 88 AS col2
----
-2222

query I rowsort
SELECT 87
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL + ( 28 ) + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL + ( 28 ) + + COUNT ( * ) AS col0
----
29

query II rowsort
SELECT - ( + 42 ) col1, 37
----
-42
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1215
SELECT ALL COALESCE ( + - 63, + - 9 * - + 64 - 61 + + - CASE 18 WHEN - 15 + + 39 * + 37 * 98 + + + 35 + + + COUNT( * ) DIV 34 THEN 48 WHEN 65 * - + COALESCE ( - 1, COUNT( * ), 53, 20 ) * + - COUNT( * ) * + 62 + 19 DIV 2 - - COUNT( * ) THEN - 9 + 36 WHEN + SUM( ALL 22 ) THEN NULL ELSE + 22 + + 82 DIV ( + 54 + 72 ) END DIV 94, + COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL COALESCE ( + - 63, + - 9 * - + 64 - 61 + + - CASE 18 WHEN - 15 + + 39 * + 37 * 98 + + + 35 + + + COUNT ( * ) / 34 THEN 48 WHEN 65 * - + COALESCE ( - 1, COUNT ( * ), 53, 20 ) * + - COUNT ( * ) * + 62 + 19 / 2 - - COUNT ( * ) THEN - 9 + 36 WHEN + SUM ( ALL 22 ) THEN NULL ELSE + 22 + + 82 / ( + 54 + 72 ) END / 94, + COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT + 81 + + 76 + 2 * COUNT( * )
----
159

skipif mysql # not compatible
query I rowsort label-1216
SELECT + 81 + + 76 + 2 * COUNT ( * )
----
159

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

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

query I rowsort
SELECT 61 + 12
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1219
SELECT ALL COUNT( * ) + + - 7 + - CASE + 88 WHEN + MIN( DISTINCT + 55 ) THEN NULL ELSE - 91 * 1 DIV + ( + COUNT( * ) ) + + COUNT( * ) DIV - 11 * + 96 * - ( - ( + 34 ) ) + - ( - - 14 ) END col1
----
99

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL COUNT ( * ) + + - 7 + - CASE + 88 WHEN + MIN ( DISTINCT + 55 ) THEN NULL ELSE - 91 * 1 / + ( + COUNT ( * ) ) + + COUNT ( * ) / - 11 * + 96 * - ( - ( + 34 ) ) + - ( - - 14 ) END col1
----
99

query I rowsort
SELECT ( - 7 ) + + - 36 + - - 72 * + 81
----
5789

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT ALL 10 * + CAST( 22 AS SIGNED ) AS col1
----
220

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL 10 * + CAST ( 22 AS INTEGER ) AS col1
----
220

query I rowsort
SELECT - 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1225
SELECT COUNT( DISTINCT + 0 ) + 92 AS col1, 5 * - + 69 + + 49 - 32 + - 5 col0
----
93
-333

skipif mysql # not compatible
query II rowsort label-1225
SELECT COUNT ( DISTINCT + 0 ) + 92 AS col1, 5 * - + 69 + + 49 - 32 + - 5 col0
----
93
-333

query I rowsort
SELECT - 48 AS col2
----
-48

query I rowsort
SELECT DISTINCT 50
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT 67 * + NULLIF ( - + 86, - 25 ) * CAST( - CAST( - - 54 AS SIGNED ) AS SIGNED ) col2
----
311148

skipif mysql # not compatible
query I rowsort label-1228
SELECT 67 * + NULLIF ( - + 86, - 25 ) * CAST ( - CAST ( - - 54 AS INTEGER ) AS INTEGER ) col2
----
311148

query I rowsort
SELECT ALL 56
----
56

query II rowsort
SELECT 73 AS col2, - 64
----
73
-64

query I rowsort
SELECT ALL 58
----
58

query I rowsort
SELECT DISTINCT 9
----
9

query I rowsort
SELECT 92 + 71
----
163

query I rowsort
SELECT ALL 67
----
67

query I rowsort
SELECT - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT - CASE + 91 WHEN + - SUM( DISTINCT - 58 ) THEN - 18 WHEN - 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - CASE + 91 WHEN + - SUM ( DISTINCT - 58 ) THEN - 18 WHEN - 68 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 97 * + 46
----
4462

query I rowsort
SELECT 82 * - 22
----
-1804

query I rowsort
SELECT + 78
----
78

query I rowsort
SELECT DISTINCT 32 * + 51 AS col2
----
1632

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT + 13 DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-1242
SELECT + 13 / - 14
----
0

query I rowsort
SELECT + 83 * 10
----
830

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT 90 AS col2, + COUNT( * ) - + 32 + COALESCE ( + + 98, + 4, + 87, + 30 )
----
90
67

skipif mysql # not compatible
query II rowsort label-1244
SELECT 90 AS col2, + COUNT ( * ) - + 32 + COALESCE ( + + 98, + 4, + 87, + 30 )
----
90
67

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1246
SELECT DISTINCT - 13 + ( 47 ) DIV NULLIF ( NULLIF ( - 36, + COUNT( * ) ), + 65 * - 7 ), ( - SUM( ALL - 31 ) ) AS col2
----
-14
31

skipif mysql # not compatible
query II rowsort label-1246
SELECT DISTINCT - 13 + ( 47 ) / NULLIF ( NULLIF ( - 36, + COUNT ( * ) ), + 65 * - 7 ), ( - SUM ( ALL - 31 ) ) AS col2
----
-14
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1247
SELECT 2 * + - CAST( NULL AS SIGNED ) - - COALESCE ( + + 19, 30 * COUNT( * ) + 84, - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT 2 * + - CAST ( NULL AS INTEGER ) - - COALESCE ( + + 19, 30 * COUNT ( * ) + 84, - CAST ( NULL AS INTEGER ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL - - CAST ( NULL AS INTEGER ) / - - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1249
SELECT - ( CAST( - 70 AS SIGNED ) ) DIV - + COALESCE ( 91, + - MIN( + + 77 ) * - 52 + - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT - ( CAST ( - 70 AS INTEGER ) ) / - + COALESCE ( 91, + - MIN ( + + 77 ) * - 52 + - 60 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT ALL 19 + + 82 - 3, 38 + ( + COUNT( * ) ) AS col2
----
98
39

skipif mysql # not compatible
query II rowsort label-1250
SELECT ALL 19 + + 82 - 3, 38 + ( + COUNT ( * ) ) AS col2
----
98
39

query I rowsort
SELECT ALL 23 + + 6 AS col1
----
29

query I rowsort
SELECT DISTINCT + 58 + 19 AS col2
----
77

query I rowsort
SELECT 64 AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT ALL + - 56 DIV - 44
----
1

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL + - 56 / - 44
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1255
SELECT + 16 DIV 1 * - + 72 + + - 62 AS col1, + 89 AS col2
----
-1214
89

skipif mysql # not compatible
query II rowsort label-1255
SELECT + 16 / 1 * - + 72 + + - 62 AS col1, + 89 AS col2
----
-1214
89

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1257
SELECT + MIN( ALL + 54 ) + - + COUNT( * ) AS col1, 10 AS col0
----
53
10

skipif mysql # not compatible
query II rowsort label-1257
SELECT + MIN ( ALL + 54 ) + - + COUNT ( * ) AS col1, 10 AS col0
----
53
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL - + 43 + - COALESCE ( - ( + COUNT( * ) ), ( + 13 ) * + CASE - COUNT( * ) WHEN + 12 THEN + - 12 + - + COUNT( * ) WHEN + 93 / - 79 THEN 49 * + COUNT( DISTINCT + 26 ) END * - 38 + - MAX( + - 21 ) + 20 + 7, + 72 ) + - 25 + - 44
----
-111

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - + 43 + - COALESCE ( - ( + COUNT ( * ) ), ( + 13 ) * + CASE - COUNT ( * ) WHEN + 12 THEN + - 12 + - + COUNT ( * ) WHEN + 93 / - 79 THEN 49 * + COUNT ( DISTINCT + 26 ) END * - 38 + - MAX ( + - 21 ) + 20 + 7, + 72 ) + - 25 + - 44
----
-111

query I rowsort
SELECT + + 38
----
38

query I rowsort
SELECT 83
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1261
SELECT + CAST( NULL AS SIGNED ) AS col1, ( MIN( DISTINCT 71 ) ) DIV COUNT( * )
----
NULL
71

skipif mysql # not compatible
query II rowsort label-1261
SELECT + CAST ( NULL AS INTEGER ) AS col1, ( MIN ( DISTINCT 71 ) ) / COUNT ( * )
----
NULL
71

query II rowsort
SELECT ALL - 43, + 99 + - 91 AS col0
----
-43
8

query I rowsort
SELECT ALL 26
----
26

query I rowsort
SELECT ALL + 4 - 45 + - 90
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT DISTINCT - - 1 * + 7 * + COUNT( * ) * 86 AS col1
----
602

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT - - 1 * + 7 * + COUNT ( * ) * 86 AS col1
----
602

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

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

query I rowsort
SELECT 42 - 2 * + 45 AS col0
----
-48

query I rowsort
SELECT 77 * 1
----
77

query I rowsort
SELECT ALL 36
----
36

query I rowsort
SELECT ALL 88
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1271
SELECT 51 + - + 28 + - 95 DIV - + SUM( - 92 ) + 53 * 47 + 86 + + - 68 * + - 82
----
8175

skipif mysql # not compatible
query I rowsort label-1271
SELECT 51 + - + 28 + - 95 / - + SUM ( - 92 ) + 53 * 47 + 86 + + - 68 * + - 82
----
8175

query I rowsort
SELECT 56 col1
----
56

query I rowsort
SELECT 26 col2
----
26

query I rowsort
SELECT - 43 AS col2
----
-43

query I rowsort
SELECT ALL - 54 - + 40 + - ( - 44 ) AS col1
----
-50

query I rowsort
SELECT 67 * - + ( + - 90 ) AS col0
----
6030

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

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

query I rowsort
SELECT 77 - - 99 - + 67
----
109

query I rowsort
SELECT ALL 3
----
3

query I rowsort
SELECT 86 - + NULLIF ( + 39, + 21 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT MAX( DISTINCT + + 85 ) * 96 AS col0
----
8160

skipif mysql # not compatible
query I rowsort label-1281
SELECT MAX ( DISTINCT + + 85 ) * 96 AS col0
----
8160

query I rowsort
SELECT 96 + + ( - 24 ) - - 25 * - 97
----
-2353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT COALESCE ( - 88, - 27 + + ( CAST( NULL AS SIGNED ) ) + + + 69 ) * 60 * 60
----
-316800

skipif mysql # not compatible
query I rowsort label-1283
SELECT COALESCE ( - 88, - 27 + + ( CAST ( NULL AS INTEGER ) ) + + + 69 ) * 60 * 60
----
-316800

query I rowsort
SELECT - 67
----
-67

query I rowsort
SELECT 86 + - - 10 + - - 33 - - 83 AS col0
----
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1286
SELECT 21 - - + ( + - 48 ) * + CASE - + 78 WHEN - ( + - 92 ) THEN - 99 END * + + 92 + + 35 / - 35 + + COUNT( * ) + CAST( - + 78 AS SIGNED ) + + 37 / - + CASE - - 26 WHEN + + AVG ( - 46 ) * - AVG ( + ( 8 ) ) + 93 THEN SUM( 92 ) ELSE NULL END * - AVG ( + ( NULLIF ( + ( 34 ), 35 * 22 ) ) * 39 + 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT 21 - - + ( + - 48 ) * + CASE - + 78 WHEN - ( + - 92 ) THEN - 99 END * + + 92 + + 35 / - 35 + + COUNT ( * ) + CAST ( - + 78 AS INTEGER ) + + 37 / - + CASE - - 26 WHEN + + AVG ( - 46 ) * - AVG ( + ( 8 ) ) + 93 THEN SUM ( 92 ) ELSE NULL END * - AVG ( + ( NULLIF ( + ( 34 ), 35 * 22 ) ) * 39 + 61 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT 27 * + + MIN( DISTINCT - 30 ) AS col1
----
-810

skipif mysql # not compatible
query I rowsort label-1287
SELECT 27 * + + MIN ( DISTINCT - 30 ) AS col1
----
-810

query I rowsort
SELECT DISTINCT 91 + + 75
----
166

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

query I rowsort
SELECT - 78
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT 92 DIV 3 + 24 * - 48 AS col1
----
-1122

skipif mysql # not compatible
query I rowsort label-1291
SELECT 92 / 3 + 24 * - 48 AS col1
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT + + 5 * - - COUNT( * ) - + 27 + + + 49
----
27

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + + 5 * - - COUNT ( * ) - + 27 + + + 49
----
27

query I rowsort
SELECT + 37 * + 62 * 72 * + ( + 48 ) + COALESCE ( 90, 56 ) AS col2
----
7928154

query II rowsort
SELECT ALL + 63 * - 21 + + 79 + - - 96, 4 AS col1
----
-1148
4

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT CAST( NULL AS SIGNED ) * - - 3 + - - 4 / + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT CAST ( NULL AS INTEGER ) * - - 3 + - - 4 / + 53 AS col2
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT - 7 DIV + 90 + 48 + - 45 * + 25 col2
----
-1077

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 7 / + 90 + 48 + - 45 * + 25 col2
----
-1077

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT 20 DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1301
SELECT 20 / + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT ALL + CASE CASE + MIN( + 21 ) WHEN - CASE 71 WHEN 88 THEN - 29 WHEN + - 16 THEN + 82 ELSE NULL END THEN NULL ELSE - - COUNT( * ) END WHEN + 38 THEN + 40 + + - ( - - 36 ) ELSE + 33 END
----
33

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + CASE CASE + MIN ( + 21 ) WHEN - CASE 71 WHEN 88 THEN - 29 WHEN + - 16 THEN + 82 ELSE NULL END THEN NULL ELSE - - COUNT ( * ) END WHEN + 38 THEN + 40 + + - ( - - 36 ) ELSE + 33 END
----
33

query I rowsort
SELECT + 59
----
59

query I rowsort
SELECT - 70 col0
----
-70

query I rowsort
SELECT + 40 * 85
----
3400

query I rowsort
SELECT ALL + - 80
----
-80

query I rowsort
SELECT ALL - 76 * - - 30 * - + 61 * 41 + - - 22 - - - 8 col0
----
5702294

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT - + COUNT( * ) + + - 63 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1308
SELECT - + COUNT ( * ) + + - 63 AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1309
SELECT ALL - 27 - + 46 AS col1, 5 DIV - ( - 72 ) + + 14 + - 61 + - + COUNT( * ) + 50
----
-73
2

skipif mysql # not compatible
query II rowsort label-1309
SELECT ALL - 27 - + 46 AS col1, 5 / - ( - 72 ) + + 14 + - 61 + - + COUNT ( * ) + 50
----
-73
2

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

query I rowsort
SELECT - - 4 * 2 + 76 * - - 47 * 61
----
217900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT - 86 - CASE + + CAST( - 8 AS SIGNED ) WHEN 97 THEN + NULLIF ( 14, + + 10 * - 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1312
SELECT - 86 - CASE + + CAST ( - 8 AS INTEGER ) WHEN 97 THEN + NULLIF ( 14, + + 10 * - 2 ) END
----
NULL

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

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

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

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

query I rowsort
SELECT 4 AS col2
----
4

query I rowsort
SELECT ALL 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT - COUNT( * ) + - 64 col2
----
-65

skipif mysql # not compatible
query I rowsort label-1318
SELECT - COUNT ( * ) + - 64 col2
----
-65

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

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

query I rowsort
SELECT - 15 * + 31 col2
----
-465

query I rowsort
SELECT - 10 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT ALL + COUNT( * ) + + 20 * 81 AS col0
----
1621

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL + COUNT ( * ) + + 20 * 81 AS col0
----
1621

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

skipif mysql # not compatible
query I rowsort label-1323
SELECT - 68 + + - COUNT ( * ) AS col2
----
-69

query I rowsort
SELECT 22
----
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1326
SELECT ALL - MAX( - + 19 ) + CASE - + ( + ( 46 ) ) WHEN - CAST( NULL AS SIGNED ) THEN - - 65 END AS col1, - 79 * + - NULLIF ( - 35, - - 2 ) AS col1
----
NULL
-2765

skipif mysql # not compatible
query II rowsort label-1326
SELECT ALL - MAX ( - + 19 ) + CASE - + ( + ( 46 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN - - 65 END AS col1, - 79 * + - NULLIF ( - 35, - - 2 ) AS col1
----
NULL
-2765

query I rowsort
SELECT 28
----
28

query I rowsort
SELECT ALL + 33 + + + 38 + + 65 AS col2
----
136

query I rowsort
SELECT 36 AS col1
----
36

query I rowsort
SELECT ALL ( 36 ) * 8 + + 12 AS col2
----
300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * - 23 + - - 1 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * - 23 + - - 1 AS col0
----
-21

query I rowsort
SELECT ALL - 61 + + 59 * - 99 AS col0
----
-5902

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

query I rowsort
SELECT - 42 AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1336
SELECT - MIN( DISTINCT 55 ) DIV + - 39
----
1

skipif mysql # not compatible
query I rowsort label-1336
SELECT - MIN ( DISTINCT 55 ) / + - 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + 93 * CASE 29 WHEN + + 90 / - 11 + 97 + - 58 THEN NULL WHEN + 96 * + - 51 THEN COUNT( + 90 ) * - + 92 + + CASE + 49 WHEN 78 * + 61 THEN 5 WHEN + 25 THEN NULL WHEN 28 THEN NULL END + 48 WHEN 25 THEN + ( + - COUNT( * ) ) + + + 45 + + 18 * 87 END * 21 - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 93 * CASE 29 WHEN + + 90 / - 11 + 97 + - 58 THEN NULL WHEN + 96 * + - 51 THEN COUNT ( + 90 ) * - + 92 + + CASE + 49 WHEN 78 * + 61 THEN 5 WHEN + 25 THEN NULL WHEN 28 THEN NULL END + 48 WHEN 25 THEN + ( + - COUNT ( * ) ) + + + 45 + + 18 * 87 END * 21 - + 20
----
NULL

query I rowsort
SELECT + + 99 col2
----
99

query I rowsort
SELECT + 54 + - 25 * - 25 AS col1
----
679

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1340
SELECT DISTINCT - COUNT( ALL + 29 ) DIV + 13 + - 81 + + 44 AS col0, + 87 * - + SUM( - ( - ( + 33 ) ) ) + - MIN( - 9 ) DIV + 83 AS col1
----
-37
-2871

skipif mysql # not compatible
query II rowsort label-1340
SELECT DISTINCT - COUNT ( ALL + 29 ) / + 13 + - 81 + + 44 AS col0, + 87 * - + SUM ( - ( - ( + 33 ) ) ) + - MIN ( - 9 ) / + 83 AS col1
----
-37
-2871

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

query I rowsort
SELECT + 72 * - 25 col2
----
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT ALL 1 DIV 14 + - - 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL 1 / 14 + - - 30 AS col0
----
30

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT - CAST( - - 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-1348
SELECT - CAST ( - - 2 AS INTEGER )
----
-2

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

query I rowsort
SELECT + 49
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1351
SELECT ALL + + 91 AS col0, - CASE + + CAST( NULL AS SIGNED ) WHEN - 89 THEN + CAST( + 26 AS SIGNED ) ELSE NULL END * 57 - - 6 AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-1351
SELECT ALL + + 91 AS col0, - CASE + + CAST ( NULL AS INTEGER ) WHEN - 89 THEN + CAST ( + 26 AS INTEGER ) ELSE NULL END * 57 - - 6 AS col2
----
91
NULL

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

query II rowsort
SELECT ALL + 4, + 29 AS col1
----
4
29

query I rowsort
SELECT 18
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1355
SELECT ( - 58 ) * - + CAST( NULL AS SIGNED ) - - - 64 + - - COUNT( * ) / - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT ( - 58 ) * - + CAST ( NULL AS INTEGER ) - - - 64 + - - COUNT ( * ) / - 23 col2
----
NULL

query I rowsort
SELECT + - 93
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT ALL CAST( + 14 AS SIGNED ) * + 26 + - - 13 AS col0
----
377

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL CAST ( + 14 AS INTEGER ) * + 26 + - - 13 AS col0
----
377

query I rowsort
SELECT + + 39
----
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT + ( - MIN( DISTINCT 9 ) ) * 63 - + + 38
----
-605

skipif mysql # not compatible
query I rowsort label-1360
SELECT + ( - MIN ( DISTINCT 9 ) ) * 63 - + + 38
----
-605

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

query I rowsort
SELECT ALL 52 * + + 31 col0
----
1612

query II rowsort
SELECT ALL + 22, 20 AS col2
----
22
20

query II rowsort
SELECT ALL 95, + 71 AS col1
----
95
71

onlyif mysql # DIV for integer division: 
query II rowsort label-1365
SELECT ALL + 91 DIV 42, 55 + 44 AS col0
----
2
99

skipif mysql # not compatible
query II rowsort label-1365
SELECT ALL + 91 / 42, 55 + 44 AS col0
----
2
99

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

query I rowsort
SELECT - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT + 62 + - COUNT( * ) + + 37
----
98

skipif mysql # not compatible
query I rowsort label-1368
SELECT + 62 + - COUNT ( * ) + + 37
----
98

query I rowsort
SELECT - 68 * 13
----
-884

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT DISTINCT MIN( NULLIF ( + - 34, - 76 ) ) + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT MIN ( NULLIF ( + - 34, - 76 ) ) + - COUNT ( * )
----
-35

query I rowsort
SELECT ALL + 1 + 37 AS col1
----
38

query I rowsort
SELECT - 8 - + 79 * + 52
----
-4116

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - + 17, 81 * - 16 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT - 85 + - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-1376
SELECT - 85 + - + COUNT ( * )
----
-86

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

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - 29 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1378
SELECT ALL + CAST( NULL AS SIGNED ) + - AVG ( + + 77 ) * COUNT( * ), 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-1378
SELECT ALL + CAST ( NULL AS INTEGER ) + - AVG ( + + 77 ) * COUNT ( * ), 56 AS col0
----
NULL
56

query I rowsort
SELECT - 59 + + ( - - 0 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT CASE 4 WHEN + - COUNT( * ) THEN - - 84 WHEN + 24 * - 98 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT CASE 4 WHEN + - COUNT ( * ) THEN - - 84 WHEN + 24 * - 98 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1381
SELECT - CAST( + - 30 AS SIGNED ) + + 24
----
54

skipif mysql # not compatible
query I rowsort label-1381
SELECT - CAST ( + - 30 AS INTEGER ) + + 24
----
54

query I rowsort
SELECT ALL - 70
----
-70

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

query II rowsort
SELECT - + 57 AS col1, 80 col0
----
-57
80

query I rowsort
SELECT 72 - + 68 + 91 * - 99
----
-9005

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT ALL + - 36 DIV - + 36 + 62
----
63

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + - 36 / - + 36 + 62
----
63

query I rowsort
SELECT DISTINCT - 41 - - 19 + - - 72 col2
----
50

query II rowsort
SELECT ALL - 49 AS col1, 33 * - 58 * 15 AS col1
----
-49
-28710

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT DISTINCT - 11 AS col2, + 96 + 99 + + + COUNT( * )
----
-11
196

skipif mysql # not compatible
query II rowsort label-1389
SELECT DISTINCT - 11 AS col2, + 96 + 99 + + + COUNT ( * )
----
-11
196

query I rowsort
SELECT + 56
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1391
SELECT ALL - - NULLIF ( + 44, 74 + + CAST( NULL AS SIGNED ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - - NULLIF ( + 44, 74 + + CAST ( NULL AS INTEGER ) ) AS col1
----
44

query I rowsort
SELECT - 48 * + 73 + 91
----
-3413

query II rowsort
SELECT 14 AS col1, - 81 AS col1
----
14
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT - 59 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT - 59 / + 77
----
0

query I rowsort
SELECT + 98 + + 55
----
153

query II rowsort
SELECT + + 5 AS col0, 58
----
5
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1397
SELECT 21 + 68 * + 47 + + CASE - 81 WHEN 68 THEN + 29 WHEN 63 + + 80 - 49 THEN - - 40 - - 78 WHEN 52 * + + 20 THEN COUNT( * ) + - COUNT( * ) ELSE - 12 DIV - + 63 * + 94 END AS col1
----
3217

skipif mysql # not compatible
query I rowsort label-1397
SELECT 21 + 68 * + 47 + + CASE - 81 WHEN 68 THEN + 29 WHEN 63 + + 80 - 49 THEN - - 40 - - 78 WHEN 52 * + + 20 THEN COUNT ( * ) + - COUNT ( * ) ELSE - 12 / - + 63 * + 94 END AS col1
----
3217

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1399
SELECT + 25 DIV + NULLIF ( - 6, - - 48 + 79 ) - 47, NULLIF ( + 72, NULLIF ( + 3, - + CASE WHEN NOT NULL < NULL THEN 77 END * + 11 + - + ( + 43 ) - 45 + - ( COUNT( - 66 ) ) ) + + - SUM( - ( 83 ) ) ) col0
----
-51
72

skipif mysql # not compatible
query II rowsort label-1399
SELECT + 25 / + NULLIF ( - 6, - - 48 + 79 ) - 47, NULLIF ( + 72, NULLIF ( + 3, - + CASE WHEN NOT NULL < NULL THEN 77 END * + 11 + - + ( + 43 ) - 45 + - ( COUNT ( - 66 ) ) ) + + - SUM ( - ( 83 ) ) ) col0
----
-51
72

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

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

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

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

query I rowsort
SELECT ALL - 57
----
-57

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1405
SELECT CAST( NULL AS DECIMAL ) * + 13 * + - 92 AS col2, - 28 - - + 10 AS col1
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-1405
SELECT CAST ( NULL AS REAL ) * + 13 * + - 92 AS col2, - 28 - - + 10 AS col1
----
NULL
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1406
SELECT ALL MAX( + 9 ) + - 11 * 17 * - + 64, ( 29 ) AS col0
----
11977
29

skipif mysql # not compatible
query II rowsort label-1406
SELECT ALL MAX ( + 9 ) + - 11 * 17 * - + 64, ( 29 ) AS col0
----
11977
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT + CAST( NULL AS SIGNED ) * 35 + + 11 + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT + CAST ( NULL AS INTEGER ) * 35 + + 11 + + 16
----
NULL

query I rowsort
SELECT 86 + + - 81
----
5

query I rowsort
SELECT - ( - - 61 ) * 40 - ( 32 ) * + - 76 + + 81 AS col2
----
73

query I rowsort
SELECT - 54 AS col2
----
-54

query I rowsort
SELECT DISTINCT 68 * - + 89 * + + ( + 49 ) * + 32 + - 73
----
-9489609

query I rowsort
SELECT ALL NULLIF ( + 49, + - ( + ( 38 ) ) + - - 62 * 55 ) + + - 18
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT NULLIF ( + - 78, - - 17 ) + - + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1413
SELECT NULLIF ( + - 78, - - 17 ) + - + COUNT ( * ) AS col2
----
-79

query I rowsort
SELECT ALL 64
----
64

query I rowsort
SELECT 21 + 42
----
63

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

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

query I rowsort
SELECT 96 AS col1
----
96

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1420
SELECT 11 DIV - - SUM( - + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1420
SELECT 11 / - - SUM ( - + 53 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1421
SELECT 46 + + NULLIF ( + 18, - 83 ) DIV + 73 - - + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-1421
SELECT 46 + + NULLIF ( + 18, - 83 ) / + 73 - - + COUNT ( * )
----
47

query I rowsort
SELECT - - 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT MAX( ALL 29 ) + + - 23 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1423
SELECT MAX ( ALL 29 ) + + - 23 AS col0
----
6

query I rowsort
SELECT ALL + COALESCE ( ( + 98 ), - 14 ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT + 40 + + + 4 + ( + 29 ) DIV + 98 + + - 67 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1425
SELECT + 40 + + + 4 + ( + 29 ) / + 98 + + - 67 AS col1
----
-23

query II rowsort
SELECT ALL - 81 * - + 60 * - + 32 AS col2, + 23 - 90
----
-155520
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL + - 34 * MAX( + ( + CAST( - 80 AS SIGNED ) ) )
----
2720

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + - 34 * MAX ( + ( + CAST ( - 80 AS INTEGER ) ) )
----
2720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT CAST( - 30 AS SIGNED ) * 89 AS col1
----
-2670

skipif mysql # not compatible
query I rowsort label-1428
SELECT CAST ( - 30 AS INTEGER ) * 89 AS col1
----
-2670

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

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

query I rowsort
SELECT - 61 AS col0
----
-61

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

query I rowsort
SELECT 54 * + 27
----
1458

query I rowsort
SELECT - 29 * - 26 AS col0
----
754

query I rowsort
SELECT ALL - 56
----
-56

query I rowsort
SELECT + 62
----
62

query I rowsort
SELECT + COALESCE ( - 3, 68 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1438
SELECT + 96 * - 27 col0, - COUNT( * ) + - 70 col2
----
-2592
-71

skipif mysql # not compatible
query II rowsort label-1438
SELECT + 96 * - 27 col0, - COUNT ( * ) + - 70 col2
----
-2592
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT DISTINCT - - SUM( + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - - SUM ( + 95 ) AS col1
----
95

query I rowsort
SELECT ALL + 4 + + 13 + + 2 + 87 * + - 10
----
-851

query I rowsort
SELECT - 18 AS col0
----
-18

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

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

query II rowsort
SELECT ALL + 64 + - ( - 95 ) AS col0, 24 AS col2
----
159
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1446
SELECT COUNT( * ), 29 DIV 44 * 5 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-1446
SELECT COUNT ( * ), 29 / 44 * 5 AS col2
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1447
SELECT DISTINCT - CASE CAST( - 91 AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN + 31 - + COALESCE ( + CAST( - 3 AS SIGNED ), - + 66 ) THEN - + AVG ( DISTINCT + 72 ) ELSE - COUNT( * ) END * 58 * + + ( COUNT( * ) ) DIV - 61 * + - 33 * + 65 - - 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT - CASE CAST ( - 91 AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN + 31 - + COALESCE ( + CAST ( - 3 AS INTEGER ), - + 66 ) THEN - + AVG ( DISTINCT + 72 ) ELSE - COUNT ( * ) END * 58 * + + ( COUNT ( * ) ) / - 61 * + - 33 * + 65 - - 65 AS col0
----
65

query I rowsort
SELECT 86 * - + 7 col1
----
-602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1449
SELECT + 49 AS col2, 2 + - + 80 / - MAX( - + 23 ) * + + CAST( 40 AS SIGNED ) * + COALESCE ( 3, 35 / + 24, + NULLIF ( 24, - + COUNT( * ) ) ) + - 80 * CAST( NULL AS SIGNED ) * 60 + + 47 + 63 * 17 * - 1 / 21 + + 18
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1449
SELECT + 49 AS col2, 2 + - + 80 / - MAX ( - + 23 ) * + + CAST ( 40 AS INTEGER ) * + COALESCE ( 3, 35 / + 24, + NULLIF ( 24, - + COUNT ( * ) ) ) + - 80 * CAST ( NULL AS INTEGER ) * 60 + + 47 + 63 * 17 * - 1 / 21 + + 18
----
49
NULL

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

skipif mysql # not compatible
query I rowsort label-1450
SELECT COUNT ( * ) / - 60 AS col0
----
0

query I rowsort
SELECT 2 * - - 13 AS col2
----
26

query I rowsort
SELECT DISTINCT + 92 * 81 AS col2
----
7452

query I rowsort
SELECT ALL 27 + - - 44
----
71

query I rowsort
SELECT 11 * - 43 * - + 60 AS col0
----
28380

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

query I rowsort
SELECT ALL - 92
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1457
SELECT ALL 15 col0, - 60 DIV + COUNT( * ) + + 38 + - NULLIF ( - 28, - COUNT( DISTINCT + 26 ) ) col0
----
15
6

skipif mysql # not compatible
query II rowsort label-1457
SELECT ALL 15 col0, - 60 / + COUNT ( * ) + + 38 + - NULLIF ( - 28, - COUNT ( DISTINCT + 26 ) ) col0
----
15
6

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

query I rowsort
SELECT 37 * + 9
----
333

query I rowsort
SELECT 68 AS col2
----
68

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

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

query II rowsort
SELECT ALL 74 AS col2, - 20 + 84
----
74
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT - 49 + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-1463
SELECT - 49 + - COUNT ( * )
----
-50

query I rowsort
SELECT + 55 * 11
----
605

query I rowsort
SELECT + 67 * + 69
----
4623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT + + COUNT( * ) + 45 DIV - 52 * 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1466
SELECT + + COUNT ( * ) + 45 / - 52 * 47 AS col0
----
1

query I rowsort
SELECT ALL 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL COUNT( * ) * 27 * 36 * + - COUNT( * ) AS col2
----
-972

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL COUNT ( * ) * 27 * 36 * + - COUNT ( * ) AS col2
----
-972

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

query I rowsort
SELECT DISTINCT + 24 * + 14 AS col1
----
336

onlyif mysql # aggregate syntax: 
query II rowsort label-1471
SELECT ALL COUNT( * ) AS col2, 34 + - 17 * + - MAX( - 32 )
----
1
-510

skipif mysql # not compatible
query II rowsort label-1471
SELECT ALL COUNT ( * ) AS col2, 34 + - 17 * + - MAX ( - 32 )
----
1
-510

query I rowsort
SELECT DISTINCT - 91
----
-91

query II rowsort
SELECT ALL - 79 AS col0, 67 + + - 0
----
-79
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT + - COUNT( * ) + - ( + 36 )
----
-37

skipif mysql # not compatible
query I rowsort label-1474
SELECT + - COUNT ( * ) + - ( + 36 )
----
-37

query I rowsort
SELECT - - 12
----
12

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

query I rowsort
SELECT + 40 col2
----
40

query I rowsort
SELECT - + 30 - + 88
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT - 50 DIV 2 col1
----
-25

skipif mysql # not compatible
query I rowsort label-1479
SELECT - 50 / 2 col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL 19 + - 62 + - - COUNT( * ) * + 89 * 88 + SUM( + 60 )
----
7849

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL 19 + - 62 + - - COUNT ( * ) * + 89 * 88 + SUM ( + 60 )
----
7849

query I rowsort
SELECT ALL 52
----
52

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT + 65 * - - 47 * + - 9 - - 32 * - 53 + - - COUNT( * )
----
-29190

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + 65 * - - 47 * + - 9 - - 32 * - 53 + - - COUNT ( * )
----
-29190

query I rowsort
SELECT - + 78 * + 94
----
-7332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1486
SELECT ALL + CAST( NULL AS SIGNED ) * + - 61 + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 61 + 66 AS col0
----
NULL

query I rowsort
SELECT ALL - 86 * 24 + 76
----
-1988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1488
SELECT + 99 / + CAST( NULL AS SIGNED ) + - - ( + COUNT( + 53 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT + 99 / + CAST ( NULL AS INTEGER ) + - - ( + COUNT ( + 53 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT COALESCE ( + 24, + - 15 + - MIN( - ( + 26 ) ), + + MAX( ALL + + 30 ) )
----
24

skipif mysql # not compatible
query I rowsort label-1489
SELECT COALESCE ( + 24, + - 15 + - MIN ( - ( + 26 ) ), + + MAX ( ALL + + 30 ) )
----
24

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

query I rowsort
SELECT - 69 * 82 AS col2
----
-5658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1492
SELECT - 28 + + - 7 DIV - ( + 31 ) * + 96 - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-1492
SELECT - 28 + + - 7 / - ( + 31 ) * + 96 - COUNT ( * )
----
-29

query I rowsort
SELECT ALL + 70 * - 34 + + + 8 AS col2
----
-2372

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT - 57 + - COUNT( * ) * + 92 * 86 - COUNT( * )
----
-7970

skipif mysql # not compatible
query I rowsort label-1494
SELECT - 57 + - COUNT ( * ) * + 92 * 86 - COUNT ( * )
----
-7970

query I rowsort
SELECT + 47
----
47

query I rowsort
SELECT ALL + 40
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT NULLIF ( + 61, + 88 * - 75 ) col1, 57 * - COUNT( * ) col1
----
61
-57

skipif mysql # not compatible
query II rowsort label-1497
SELECT NULLIF ( + 61, + 88 * - 75 ) col1, 57 * - COUNT ( * ) col1
----
61
-57

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

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

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

query I rowsort
SELECT - 86 + 4 AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1501
SELECT ALL + ( - + 51 ) DIV - COALESCE ( COUNT( * ), 37 ) AS col0, 25
----
51
25

skipif mysql # not compatible
query II rowsort label-1501
SELECT ALL + ( - + 51 ) / - COALESCE ( COUNT ( * ), 37 ) AS col0, 25
----
51
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT + 97 DIV 64 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1502
SELECT + 97 / 64 / - 75 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1503
SELECT - 3 * - 0 * - CAST( - 39 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1503
SELECT - 3 * - 0 * - CAST ( - 39 AS INTEGER ) AS col2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT + COUNT( * ) * - 5 + + 47 + + 16
----
58

skipif mysql # not compatible
query I rowsort label-1506
SELECT + COUNT ( * ) * - 5 + + 47 + + 16
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT - 67 DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-1507
SELECT - 67 / - 48
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT DISTINCT ( CAST( - 60 AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT ( CAST ( - 60 AS INTEGER ) )
----
-60

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

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

query I rowsort
SELECT - 43 + 10 AS col2
----
-33

query I rowsort
SELECT ALL + - 63 * - 18
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - + 75 + + 24 + COUNT( * ) + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-1512
SELECT - + 75 + + 24 + COUNT ( * ) + COUNT ( * )
----
-49

query I rowsort
SELECT DISTINCT - 12 * - + 0
----
0

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

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

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

query I rowsort
SELECT + 23
----
23

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1519
SELECT + ( - 69 ) + + ( 4 ) * + 59 col1, + COUNT( * ) * - 88 * COUNT( * ) + - 31 AS col2
----
167
-119

skipif mysql # not compatible
query II rowsort label-1519
SELECT + ( - 69 ) + + ( 4 ) * + 59 col1, + COUNT ( * ) * - 88 * COUNT ( * ) + - 31 AS col2
----
167
-119

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT - ( COALESCE ( + 22, COUNT( * ) ) ) * + 22
----
-484

skipif mysql # not compatible
query I rowsort label-1521
SELECT - ( COALESCE ( + 22, COUNT ( * ) ) ) * + 22
----
-484

query I rowsort
SELECT - 13 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT + 25 + - + 54 * - MIN( DISTINCT + + ( - 53 ) )
----
-2837

skipif mysql # not compatible
query I rowsort label-1523
SELECT + 25 + - + 54 * - MIN ( DISTINCT + + ( - 53 ) )
----
-2837

query I rowsort
SELECT - - 14 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1525
SELECT - + MAX( CAST( NULL AS SIGNED ) ) AS col1, + 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-1525
SELECT - + MAX ( CAST ( NULL AS INTEGER ) ) AS col1, + 72 AS col1
----
NULL
72

query I rowsort
SELECT DISTINCT + 38 + - 50 AS col0
----
-12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT ALL + 68 * + + 67 + - + 0 / - NULLIF ( + 39, + - 99 + + + 0 ) / + CAST( NULL AS SIGNED ) * - 87 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL + 68 * + + 67 + - + 0 / - NULLIF ( + 39, + - 99 + + + 0 ) / + CAST ( NULL AS INTEGER ) * - 87 + + 21
----
NULL

query I rowsort
SELECT DISTINCT - 10 + + 35
----
25

query I rowsort
SELECT DISTINCT + 78
----
78

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

query I rowsort
SELECT + + 82 + 64
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1533
SELECT DISTINCT CAST( - ( - 33 ) AS SIGNED ) + + + 58, + 43 AS col1
----
91
43

skipif mysql # not compatible
query II rowsort label-1533
SELECT DISTINCT CAST ( - ( - 33 ) AS INTEGER ) + + + 58, + 43 AS col1
----
91
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1534
SELECT ALL - CAST( NULL AS SIGNED ) + 9 * + - COUNT( * ) + - ( 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - CAST ( NULL AS INTEGER ) + 9 * + - COUNT ( * ) + - ( 55 ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 52 * + 29
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT + 69 + - SUM( ALL - + 97 ) AS col2
----
166

skipif mysql # not compatible
query I rowsort label-1538
SELECT + 69 + - SUM ( ALL - + 97 ) AS col2
----
166

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1540
SELECT 37 * - COUNT( * ) * COUNT( DISTINCT + + 85 ) + + - 98 AS col2, 71 * CAST( NULL AS SIGNED )
----
-135
NULL

skipif mysql # not compatible
query II rowsort label-1540
SELECT 37 * - COUNT ( * ) * COUNT ( DISTINCT + + 85 ) + + - 98 AS col2, 71 * CAST ( NULL AS INTEGER )
----
-135
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT ALL - 43 DIV 94 + - - 11 * - 5 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - 43 / 94 + - - 11 * - 5 AS col0
----
-55

query I rowsort
SELECT + 16 * + 71
----
1136

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

query I rowsort
SELECT 46 * - - 47 - 13
----
2149

query I rowsort
SELECT ALL - 74 * - + 48
----
3552

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

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

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

query I rowsort
SELECT + 6
----
6

query I rowsort
SELECT DISTINCT + 72
----
72

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

query I rowsort
SELECT + 60
----
60

query I rowsort
SELECT 15
----
15

query I rowsort
SELECT ALL - 85
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1554
SELECT ( - 27 ) * + + 75 / + + CASE - 96 WHEN - - CAST( NULL AS SIGNED ) * MAX( - + 38 ) THEN - 25 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT ( - 27 ) * + + 75 / + + CASE - 96 WHEN - - CAST ( NULL AS INTEGER ) * MAX ( - + 38 ) THEN - 25 ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT ALL - 17
----
-17

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT - - CASE + CAST( NULL AS SIGNED ) WHEN 60 THEN + - 99 + + - 58 ELSE 40 * + CAST( NULL AS SIGNED ) * + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT - - CASE + CAST ( NULL AS INTEGER ) WHEN 60 THEN + - 99 + + - 58 ELSE 40 * + CAST ( NULL AS INTEGER ) * + 44 END
----
NULL

query I rowsort
SELECT 59 + 0
----
59

query I rowsort
SELECT - - 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT - 26 + CASE - 90 WHEN + - 77 THEN NULL WHEN ( COUNT( * ) ) THEN NULL ELSE - 11 END
----
-37

skipif mysql # not compatible
query I rowsort label-1562
SELECT - 26 + CASE - 90 WHEN + - 77 THEN NULL WHEN ( COUNT ( * ) ) THEN NULL ELSE - 11 END
----
-37

query I rowsort
SELECT - - 49 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT + 35 DIV - 96 + 44 + - 22
----
22

skipif mysql # not compatible
query I rowsort label-1564
SELECT + 35 / - 96 + 44 + - 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT 52 + - 98 - - - ( - 57 ) + 5 * + - 13 * - COALESCE ( - - COUNT( * ), + 44 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1565
SELECT 52 + - 98 - - - ( - 57 ) + 5 * + - 13 * - COALESCE ( - - COUNT ( * ), + 44 ) AS col1
----
76

query I rowsort
SELECT - - 82
----
82

query I rowsort
SELECT + 18 * - 38 AS col0
----
-684

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL + + 56 + + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + + 56 + + + COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT DISTINCT - - MAX( - 29 ) + - 75
----
-104

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT - - MAX ( - 29 ) + - 75
----
-104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT - 85 * COUNT( DISTINCT + + 4 ) * + COUNT( * ) * + - 30 * 51
----
130050

skipif mysql # not compatible
query I rowsort label-1573
SELECT - 85 * COUNT ( DISTINCT + + 4 ) * + COUNT ( * ) * + - 30 * 51
----
130050

query I rowsort
SELECT DISTINCT 81 col2
----
81

query I rowsort
SELECT + 3 + 96 * + ( 36 ) AS col0
----
3459

query I rowsort
SELECT - 42 + ( - 64 )
----
-106

query I rowsort
SELECT - - 98
----
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT - + MIN( ALL + + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-1579
SELECT - + MIN ( ALL + + 51 )
----
-51

query I rowsort
SELECT DISTINCT 15
----
15

query I rowsort
SELECT 90 + - 18
----
72

query II rowsort
SELECT - 80 AS col1, 74
----
-80
74

query II rowsort
SELECT 73 AS col0, 24 + + + 98
----
73
122

query I rowsort
SELECT DISTINCT ( + 96 ) * - - 69 AS col0
----
6624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1585
SELECT DISTINCT + MIN( - CAST( 2 AS SIGNED ) ) * - COUNT( * ) - - 73 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT + MIN ( - CAST ( 2 AS INTEGER ) ) * - COUNT ( * ) - - 73 AS col1
----
75

query I rowsort
SELECT DISTINCT - 33 - + 58
----
-91

query I rowsort
SELECT 70 * + 68 * - - 46 * - 49 * + 62 + - 91
----
-665200571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1588
SELECT 5 DIV - - MIN( DISTINCT + 54 ) * 87 + + 96
----
96

skipif mysql # not compatible
query I rowsort label-1588
SELECT 5 / - - MIN ( DISTINCT + 54 ) * 87 + + 96
----
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1590
SELECT 6 DIV - - 36 * 45 + + + 74 + - - 46 DIV + 74 * + ( - - 88 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1590
SELECT 6 / - - 36 * 45 + + + 74 + - - 46 / + 74 * + ( - - 88 ) AS col1
----
74

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

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

query I rowsort
SELECT ALL - 91 col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1593
SELECT 30 * 5 AS col1, CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
150
1

skipif mysql # not compatible
query II rowsort label-1593
SELECT 30 * 5 AS col1, CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
150
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT DISTINCT 67 DIV 11 DIV - 3 col2
----
-2

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT 67 / 11 / - 3 col2
----
-2

query I rowsort
SELECT ALL - 81
----
-81

query I rowsort
SELECT ALL - 91
----
-91

query I rowsort
SELECT DISTINCT - 94 col2
----
-94

query I rowsort
SELECT + - 28 col2
----
-28

query II rowsort
SELECT DISTINCT - 62 * + 49 AS col2, + 99
----
-3038
99

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

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

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

query I rowsort
SELECT ALL + 43 + + 98 AS col1
----
141

query I rowsort
SELECT - 8 AS col2
----
-8

query I rowsort
SELECT DISTINCT + 10 + + 41 * + 99
----
4069

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

query I rowsort
SELECT ALL - 46
----
-46

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1608
SELECT DISTINCT CAST( NULL AS SIGNED ), 17 col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-1608
SELECT DISTINCT CAST ( NULL AS INTEGER ), 17 col1
----
NULL
17

query II rowsort
SELECT ALL 54 AS col2, - 68
----
54
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL - 86 * + + 74 / + CASE - 60 WHEN + SUM( ALL - 45 ) * - + 86 + - + ( + 84 ) + 2 * 97 THEN - 37 WHEN 83 * MIN( + 43 ) THEN NULL END + - 9 - - - 9 / - - COUNT( * ) + 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - 86 * + + 74 / + CASE - 60 WHEN + SUM ( ALL - 45 ) * - + 86 + - + ( + 84 ) + 2 * 97 THEN - 37 WHEN 83 * MIN ( + 43 ) THEN NULL END + - 9 - - - 9 / - - COUNT ( * ) + 62 col1
----
NULL

query I rowsort
SELECT 53 + + - 70
----
-17

query I rowsort
SELECT 62
----
62

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

query II rowsort
SELECT 99 AS col0, 80 - 76
----
99
4

query I rowsort
SELECT ALL - 36 * 18
----
-648

query I rowsort
SELECT 46 * - 32
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL 32 * + COALESCE ( - COUNT( * ), 5 ) * - ( COUNT( * ) ) + - 42 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL 32 * + COALESCE ( - COUNT ( * ), 5 ) * - ( COUNT ( * ) ) + - 42 AS col2
----
-10

query I rowsort
SELECT ALL 44
----
44

query I rowsort
SELECT 99 col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1620
SELECT 11 + - 5, - ( 57 ) DIV + + ( + + MAX( + 79 ) ) * + + 32 + + 70 AS col0
----
6
70

skipif mysql # not compatible
query II rowsort label-1620
SELECT 11 + - 5, - ( 57 ) / + + ( + + MAX ( + 79 ) ) * + + 32 + + 70 AS col0
----
6
70

query I rowsort
SELECT DISTINCT + 1 * - 35
----
-35

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1623
SELECT 21 + MAX( + 83 ) + - - CAST( + 53 AS SIGNED ) AS col0, COUNT( * ) * COUNT( * ) AS col1
----
157
1

skipif mysql # not compatible
query II rowsort label-1623
SELECT 21 + MAX ( + 83 ) + - - CAST ( + 53 AS INTEGER ) AS col0, COUNT ( * ) * COUNT ( * ) AS col1
----
157
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1625
SELECT ALL + CASE - 5 WHEN + 12 THEN 90 + - + COUNT( * ) WHEN + NULLIF ( + - SUM( DISTINCT 2 ), - 2 * - 15 * + 73 + + + 17 ) THEN 83 * - 74 + + - 67 / - - ( 82 ) * 29 * + 79 - + 80 END - 21 * + 76 * + CAST( NULL AS SIGNED ) + + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL + CASE - 5 WHEN + 12 THEN 90 + - + COUNT ( * ) WHEN + NULLIF ( + - SUM ( DISTINCT 2 ), - 2 * - 15 * + 73 + + + 17 ) THEN 83 * - 74 + + - 67 / - - ( 82 ) * 29 * + 79 - + 80 END - 21 * + 76 * + CAST ( NULL AS INTEGER ) + + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL SUM( DISTINCT 57 )
----
57

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL SUM ( DISTINCT 57 )
----
57

query I rowsort
SELECT 7 AS col1
----
7

query I rowsort
SELECT 45
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1629
SELECT DISTINCT SUM( + 67 ) AS col0, - 48 AS col1
----
67
-48

skipif mysql # not compatible
query II rowsort label-1629
SELECT DISTINCT SUM ( + 67 ) AS col0, - 48 AS col1
----
67
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT - 48 DIV + 11 + 92 DIV + 31 + + 79 * 6 * + - 65
----
-30812

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 48 / + 11 + 92 / + 31 + + 79 * 6 * + - 65
----
-30812

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT + COALESCE ( 4, - AVG ( ALL + - 85 ) ) * 75 DIV - 33
----
-9

skipif mysql # not compatible
query I rowsort label-1631
SELECT + COALESCE ( 4, - AVG ( ALL + - 85 ) ) * 75 / - 33
----
-9

query I rowsort
SELECT - 50 * - 13 / + 46 * - CASE 36 WHEN + + 65 THEN - 24 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT ALL + CASE + 66 WHEN - CAST( NULL AS SIGNED ) THEN + 72 WHEN - 89 THEN 6 / + - 10 WHEN 29 THEN NULL WHEN 12 + - 9 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + CASE + 66 WHEN - CAST ( NULL AS INTEGER ) THEN + 72 WHEN - 89 THEN 6 / + - 10 WHEN 29 THEN NULL WHEN 12 + - 9 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1634
SELECT COALESCE ( CAST( + + 32 AS SIGNED ), 49 * - 0 + - COUNT( * ), - 9 )
----
32

skipif mysql # not compatible
query I rowsort label-1634
SELECT COALESCE ( CAST ( + + 32 AS INTEGER ), 49 * - 0 + - COUNT ( * ), - 9 )
----
32

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

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

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

query I rowsort
SELECT NULLIF ( - + 73, + - 69 ) AS col0
----
-73

query I rowsort
SELECT ALL 22 * 37 + - 19 AS col1
----
795

query I rowsort
SELECT - 20 * - ( + + 16 ) AS col1
----
320

onlyif mysql # aggregate syntax: 
query II rowsort label-1640
SELECT + MIN( ALL + 44 ) AS col2, 48 + - - 46
----
44
94

skipif mysql # not compatible
query II rowsort label-1640
SELECT + MIN ( ALL + 44 ) AS col2, 48 + - - 46
----
44
94

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

query II rowsort
SELECT - 84 * + 33 AS col0, - 76
----
-2772
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL 65 * + COUNT( ALL - 68 ) + 60
----
125

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL 65 * + COUNT ( ALL - 68 ) + 60
----
125

query I rowsort
SELECT 78
----
78

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1647
SELECT - + 52 DIV - 43 AS col2, 7
----
1
7

skipif mysql # not compatible
query II rowsort label-1647
SELECT - + 52 / - 43 AS col2, 7
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT + + 47 * + + MAX( 33 )
----
1551

skipif mysql # not compatible
query I rowsort label-1648
SELECT + + 47 * + + MAX ( 33 )
----
1551

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT ALL - 14 * + 83 + - + COUNT( * )
----
-1163

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL - 14 * + 83 + - + COUNT ( * )
----
-1163

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT DISTINCT + 28 * - - ( + - 47 ) + + + 64 DIV ( - - 78 ) * - 6 + + 0 + 41
----
-1275

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + 28 * - - ( + - 47 ) + + + 64 / ( - - 78 ) * - 6 + + 0 + 41
----
-1275

query I rowsort
SELECT ALL + ( - ( + + 54 ) ) * + 80 + 54 col1
----
-4266

onlyif mysql # DIV for integer division: 
query II rowsort label-1654
SELECT + 44 DIV + 46 AS col0, - 36 + + - 51
----
0
-87

skipif mysql # not compatible
query II rowsort label-1654
SELECT + 44 / + 46 AS col0, - 36 + + - 51
----
0
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT - COUNT( DISTINCT - 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1656
SELECT - COUNT ( DISTINCT - 91 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 10
----
10

query I rowsort
SELECT ALL - 31 + + 92 * ( - 23 ) AS col1
----
-2147

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT + - 26 + COUNT( * ) + - - 51 - + ( - - 79 )
----
-53

skipif mysql # not compatible
query I rowsort label-1659
SELECT + - 26 + COUNT ( * ) + - - 51 - + ( - - 79 )
----
-53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1661
SELECT + + CAST( NULL AS SIGNED ) - + 46 + + 63 - + - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT + + CAST ( NULL AS INTEGER ) - + 46 + + 63 - + - 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1662
SELECT ALL 63 * 49 + ( - SUM( ALL + 87 ) ) AS col0, COUNT( + 60 ) * - + 69 + NULLIF ( - 17, 39 ) AS col1
----
3000
-86

skipif mysql # not compatible
query II rowsort label-1662
SELECT ALL 63 * 49 + ( - SUM ( ALL + 87 ) ) AS col0, COUNT ( + 60 ) * - + 69 + NULLIF ( - 17, 39 ) AS col1
----
3000
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT + - COUNT( ALL 1 ) + - - 31 * + - 23 * + 52
----
-37077

skipif mysql # not compatible
query I rowsort label-1664
SELECT + - COUNT ( ALL 1 ) + - - 31 * + - 23 * + 52
----
-37077

query I rowsort
SELECT 95
----
95

query I rowsort
SELECT - 72
----
-72

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

query I rowsort
SELECT ALL 21 * + 13 AS col2
----
273

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

query II rowsort
SELECT + 74 + 20, + 58 AS col1
----
94
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT - 69 + - - ( + + 21 ) * + COALESCE ( + NULLIF ( COUNT( * ), + - 66 ), + + 52, COUNT( * ), + 6 )
----
-48

skipif mysql # not compatible
query I rowsort label-1672
SELECT - 69 + - - ( + + 21 ) * + COALESCE ( + NULLIF ( COUNT ( * ), + - 66 ), + + 52, COUNT ( * ), + 6 )
----
-48

query I rowsort
SELECT - 87 * + - 66
----
5742

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

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

query II rowsort
SELECT 79 AS col1, + 39 * - 34 AS col2
----
79
-1326

query I rowsort
SELECT - ( 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - 39 + 22 * - COUNT( * ) * + 50
----
-1139

skipif mysql # not compatible
query I rowsort label-1677
SELECT - 39 + 22 * - COUNT ( * ) * + 50
----
-1139

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL - COUNT( * ) * ( 4 ) * 55 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - COUNT ( * ) * ( 4 ) * 55 AS col2
----
-220

query I rowsort
SELECT - 57 * + 27
----
-1539

query I rowsort
SELECT - ( 97 ) + + 86 AS col0
----
-11

query I rowsort
SELECT ALL + 52 * 96 AS col1
----
4992

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT MAX( + 3 ) + - COUNT( * ) * + 9 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT MAX ( + 3 ) + - COUNT ( * ) * + 9 AS col0
----
-6

query I rowsort
SELECT ALL + 80 + 22
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT DISTINCT - 58 DIV + 64 * + 18 + + - 95 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT - 58 / + 64 * + 18 + + - 95 AS col1
----
-95

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT - CASE 2 WHEN + 22 THEN - + ( - COALESCE ( 98, + - 90 ) ) WHEN CASE + 25 WHEN COUNT( * ) * - + 61 / + - 66 THEN NULL ELSE + 99 END THEN - + 34 ELSE - COALESCE ( CAST( NULL AS SIGNED ), - 43 ) / + + CAST( - + NULLIF ( 37, - - 59 ) AS SIGNED ) - + CAST( NULL AS SIGNED ) + - 18 END - - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT - CASE 2 WHEN + 22 THEN - + ( - COALESCE ( 98, + - 90 ) ) WHEN CASE + 25 WHEN COUNT ( * ) * - + 61 / + - 66 THEN NULL ELSE + 99 END THEN - + 34 ELSE - COALESCE ( CAST ( NULL AS INTEGER ), - 43 ) / + + CAST ( - + NULLIF ( 37, - - 59 ) AS INTEGER ) - + CAST ( NULL AS INTEGER ) + - 18 END - - + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - - CAST( NULL AS SIGNED ) + 90 + + COUNT( * ) ) * - - 0 - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - - CAST ( NULL AS INTEGER ) + 90 + + COUNT ( * ) ) * - - 0 - - 64
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT - COUNT( * ) + 96 + 16 * COUNT( * ) * - + 92 * + + 29 AS col1
----
-42593

skipif mysql # not compatible
query I rowsort label-1691
SELECT - COUNT ( * ) + 96 + 16 * COUNT ( * ) * - + 92 * + + 29 AS col1
----
-42593

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT + CASE - 76 WHEN + - COUNT( + + 4 ) * - - AVG ( - + 12 ) + 73 * COUNT( * ) + + 43 THEN 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT + CASE - 76 WHEN + - COUNT ( + + 4 ) * - - AVG ( - + 12 ) + 73 * COUNT ( * ) + + 43 THEN 66 END AS col1
----
NULL

query I rowsort
SELECT ALL - + 41 * 86
----
-3526

query II rowsort
SELECT ALL + 78 col1, - 39 col2
----
78
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-1695
SELECT ALL + COUNT( * ) AS col1, 76 + + - 71
----
1
5

skipif mysql # not compatible
query II rowsort label-1695
SELECT ALL + COUNT ( * ) AS col1, 76 + + - 71
----
1
5

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1698
SELECT - COUNT( * ) * - COALESCE ( 88, - + CAST( NULL AS SIGNED ), + 42 * - MAX( 30 ) )
----
88

skipif mysql # not compatible
query I rowsort label-1698
SELECT - COUNT ( * ) * - COALESCE ( 88, - + CAST ( NULL AS INTEGER ), + 42 * - MAX ( 30 ) )
----
88

query I rowsort
SELECT - 27 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT - NULLIF ( 11, - - 62 ) * + + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1700
SELECT - NULLIF ( 11, - - 62 ) * + + COUNT ( * ) AS col2
----
-11

query I rowsort
SELECT ALL 55
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-1702
SELECT ALL ( - 19 ) DIV - + 10 AS col0, + 52 AS col2
----
1
52

skipif mysql # not compatible
query II rowsort label-1702
SELECT ALL ( - 19 ) / - + 10 AS col0, + 52 AS col2
----
1
52

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

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

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

query I rowsort
SELECT - - 75 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1706
SELECT ALL + 1 * + + 97 * - CAST( + 6 AS SIGNED ) - + 67 - COUNT( * ) + - + 7 * + - 41 * 10 - + 72
----
2148

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + 1 * + + 97 * - CAST ( + 6 AS INTEGER ) - + 67 - COUNT ( * ) + - + 7 * + - 41 * 10 - + 72
----
2148

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT DISTINCT 32 DIV + 9
----
3

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT 32 / + 9
----
3

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

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

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

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

query I rowsort
SELECT 84
----
84

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

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

query I rowsort
SELECT - 85
----
-85

query I rowsort
SELECT - 86 AS col0
----
-86

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

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

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

query I rowsort
SELECT - 41 AS col0
----
-41

query I rowsort
SELECT 70
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1719
SELECT ALL 39 + COUNT( * ) AS col0, 52 + - - 65 AS col2
----
40
117

skipif mysql # not compatible
query II rowsort label-1719
SELECT ALL 39 + COUNT ( * ) AS col0, 52 + - - 65 AS col2
----
40
117

query I rowsort
SELECT ALL 98 + + 23 AS col0
----
121

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

query II rowsort
SELECT 46 + + 40 + 16 + - 29 AS col1, ( + 9 )
----
73
9

query I rowsort
SELECT DISTINCT - 39 + 27 AS col0
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL NULLIF ( + - 31, - 84 ) + ( - - 70 ) - + 60 + NULLIF ( 44, + + COUNT( * ) ) * 39 * + 98 AS col1
----
168147

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL NULLIF ( + - 31, - 84 ) + ( - - 70 ) - + 60 + NULLIF ( 44, + + COUNT ( * ) ) * 39 * + 98 AS col1
----
168147

query I rowsort
SELECT 65
----
65

query I rowsort
SELECT - 9 col0
----
-9

query I rowsort
SELECT NULLIF ( + 51, 22 ) + + - 86 * 12
----
-981

query I rowsort
SELECT 81 + + ( + + 21 ) AS col0
----
102

query I rowsort
SELECT DISTINCT 73 + - 3 + ( - 22 ) + + 18 * + 2
----
84

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1732
SELECT COUNT( * ) * - - NULLIF ( - + 0, + 84 * - 95 ) + - + COUNT( * ) * - 96 AS col0, - 34 * 33
----
96
-1122

skipif mysql # not compatible
query II rowsort label-1732
SELECT COUNT ( * ) * - - NULLIF ( - + 0, + 84 * - 95 ) + - + COUNT ( * ) * - 96 AS col0, - 34 * 33
----
96
-1122

query II rowsort
SELECT DISTINCT - 4 * 35 AS col2, 60 * + + 97 AS col2
----
-140
5820

query I rowsort
SELECT ALL - 62 col1
----
-62

query I rowsort
SELECT DISTINCT - - 52
----
52

query I rowsort
SELECT DISTINCT 91 * 41 AS col1
----
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ALL - - SUM( DISTINCT - 78 ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL - - SUM ( DISTINCT - 78 ) col1
----
-78

query I rowsort
SELECT + - 41
----
-41

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

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

query I rowsort
SELECT 72 * - 22 + - NULLIF ( 98, ( NULLIF ( - 23, 21 ) ) )
----
-1682

query I rowsort
SELECT DISTINCT - + 18 col1
----
-18

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

query I rowsort
SELECT ALL - 62
----
-62

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

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

query I rowsort
SELECT + 50
----
50

query I rowsort
SELECT 50 AS col0
----
50

query I rowsort
SELECT DISTINCT + 7 * - + 83 * - 40 AS col0
----
23240

query I rowsort
SELECT ALL - + 59
----
-59

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1751
SELECT ALL 82 * + + 60 AS col2, 56 DIV + ( 76 )
----
4920
0

skipif mysql # not compatible
query II rowsort label-1751
SELECT ALL 82 * + + 60 AS col2, 56 / + ( 76 )
----
4920
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT DISTINCT + 46 * + - MIN( - 23 ) + + - 73 AS col1
----
985

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT + 46 * + - MIN ( - 23 ) + + - 73 AS col1
----
985

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1754
SELECT + CAST( NULL AS SIGNED ) * 65 + + - ( + + 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT + CAST ( NULL AS INTEGER ) * 65 + + - ( + + 30 ) AS col2
----
NULL

query I rowsort
SELECT 30 AS col2
----
30

query I rowsort
SELECT - 9 + - + 71
----
-80

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

query I rowsort
SELECT 11 * + + 13 col2
----
143

query I rowsort
SELECT 14 + 20 + 57 * 16
----
946

onlyif mysql # aggregate syntax: 
query II rowsort label-1760
SELECT 50 - 21 * + COUNT( * ) AS col1, 84 + 17 AS col1
----
29
101

skipif mysql # not compatible
query II rowsort label-1760
SELECT 50 - 21 * + COUNT ( * ) AS col1, 84 + 17 AS col1
----
29
101

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

query II rowsort
SELECT DISTINCT 83 AS col0, 89
----
83
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT COUNT( * ) + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1763
SELECT COUNT ( * ) + 18 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT ( - - 38 ) * - 0 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1764
SELECT ( - - 38 ) * - 0 + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 36 col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1766
SELECT ALL 39 + - COALESCE ( - 64, COUNT( * ) DIV COUNT( * ) ) DIV + 72 * + 52 + + ( + - 72 ) DIV - 29
----
41

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL 39 + - COALESCE ( - 64, COUNT ( * ) / COUNT ( * ) ) / + 72 * + 52 + + ( + - 72 ) / - 29
----
41

query I rowsort
SELECT ALL 98 + - 22 + - - 56
----
132

query I rowsort
SELECT 40 + + 21 + - + NULLIF ( - 72, + - 60 ) * - - 36
----
2653

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

query I rowsort
SELECT 61 col0
----
61

query II rowsort
SELECT ALL + 80 + + 54 + - 36 col0, 81 + - 2
----
98
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL + ( 91 ) + - 71 - - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL + ( 91 ) + - 71 - - COUNT ( * ) AS col1
----
21

query I rowsort
SELECT 69 AS col1
----
69

query I rowsort
SELECT DISTINCT 97 * - 36 * - 55
----
192060

query I rowsort
SELECT 47
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ALL 32 * + 39 * + + COALESCE ( + 47, COUNT( * ) - + - 65 )
----
58656

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL 32 * + 39 * + + COALESCE ( + 47, COUNT ( * ) - + - 65 )
----
58656

query I rowsort
SELECT 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT - COUNT( - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-1779
SELECT - COUNT ( - 38 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT + ( - 92 ) * + COALESCE ( + 75, - - 87 * + 15 * 60 + - COUNT( * ) ) * + 91 + 60
----
-627840

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT + ( - 92 ) * + COALESCE ( + 75, - - 87 * + 15 * 60 + - COUNT ( * ) ) * + 91 + 60
----
-627840

query I rowsort
SELECT ALL 20
----
20

query I rowsort
SELECT 71 - 83
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT DISTINCT 37 - COALESCE ( + 71, - COUNT( * ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT 37 - COALESCE ( + 71, - COUNT ( * ) ) AS col1
----
-34

query I rowsort
SELECT DISTINCT 23
----
23

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

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

query II rowsort
SELECT ALL - 7 AS col0, 1 - + - 33 + - + 45
----
-7
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT + COALESCE ( 84, - - ( - + 59 ) + - SUM( - CAST( 95 AS SIGNED ) ) + CAST( + + ( 98 ) AS SIGNED ) * 84 * 28 - + ( - 98 ) ) * + + ( - - 52 ) + - 10 AS col0
----
4358

skipif mysql # not compatible
query I rowsort label-1788
SELECT + COALESCE ( 84, - - ( - + 59 ) + - SUM ( - CAST ( 95 AS INTEGER ) ) + CAST ( + + ( 98 ) AS INTEGER ) * 84 * 28 - + ( - 98 ) ) * + + ( - - 52 ) + - 10 AS col0
----
4358

query I rowsort
SELECT 66 * - 97 AS col0
----
-6402

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT - 24 * 68 * - - 69 + + ( - COUNT( * ) ) AS col2
----
-112609

skipif mysql # not compatible
query I rowsort label-1790
SELECT - 24 * 68 * - - 69 + + ( - COUNT ( * ) ) AS col2
----
-112609

query I rowsort
SELECT + 33 - + 3 + + 1 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1792
SELECT DISTINCT - 2 DIV COUNT( * ) * - 83 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - 2 / COUNT ( * ) * - 83 AS col0
----
166

query I rowsort
SELECT ALL - - 7
----
7

query I rowsort
SELECT + 77 + 65
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT + 52 * + - 45 - SUM( ALL - + 77 ) + - MAX( + - 16 ) * - CAST( 60 AS SIGNED ) * - 20 + + COUNT( * ) * 43 * - - 53
----
19216

skipif mysql # not compatible
query I rowsort label-1795
SELECT + 52 * + - 45 - SUM ( ALL - + 77 ) + - MAX ( + - 16 ) * - CAST ( 60 AS INTEGER ) * - 20 + + COUNT ( * ) * 43 * - - 53
----
19216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT - 51 DIV + + MIN( DISTINCT - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-1796
SELECT - 51 / + + MIN ( DISTINCT - 70 )
----
0

query I rowsort
SELECT ALL + 69 * + - 60 - 89 + - 79 AS col2
----
-4308

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + NULLIF ( 52, - COUNT( * ) * + - 2 * + 57 * + 53 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1798
SELECT + NULLIF ( 52, - COUNT ( * ) * + - 2 * + 57 * + 53 ) AS col0
----
52

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1804
SELECT - NULLIF ( CASE 3 WHEN + 65 THEN 77 WHEN + MAX( - 54 ) THEN NULL ELSE NULL END, - 38 ) + - 13 * CAST( NULL AS SIGNED ) AS col0, + 29 * 44
----
NULL
1276

skipif mysql # not compatible
query II rowsort label-1804
SELECT - NULLIF ( CASE 3 WHEN + 65 THEN 77 WHEN + MAX ( - 54 ) THEN NULL ELSE NULL END, - 38 ) + - 13 * CAST ( NULL AS INTEGER ) AS col0, + 29 * 44
----
NULL
1276

onlyif mysql # aggregate syntax: 
query II rowsort label-1805
SELECT ALL 10 * 3 + + COUNT( * ), - 19 AS col2
----
31
-19

skipif mysql # not compatible
query II rowsort label-1805
SELECT ALL 10 * 3 + + COUNT ( * ), - 19 AS col2
----
31
-19

query I rowsort
SELECT DISTINCT + 17
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL + AVG ( ALL + 52 ) + - SUM( ALL 87 ) / - 67 * + 14 * + + CASE 47 WHEN - 46 + - 58 / 39 * - - 57 THEN - 10 * 32 END / + - 21 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + AVG ( ALL + 52 ) + - SUM ( ALL 87 ) / - 67 * + 14 * + + CASE 47 WHEN - 46 + - 58 / 39 * - - 57 THEN - 10 * 32 END / + - 21 * + 87
----
NULL

query I rowsort
SELECT DISTINCT + ( 33 ) + + - 72 + + 81 col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1810
SELECT ALL - 56 + + - 32 / + MIN( ALL - CAST( NULL AS DECIMAL ) ) AS col2, - 80
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-1810
SELECT ALL - 56 + + - 32 / + MIN ( ALL - CAST ( NULL AS REAL ) ) AS col2, - 80
----
NULL
-80

query I rowsort
SELECT 9
----
9

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

query I rowsort
SELECT ALL + 93 + 80 * 0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT NULLIF ( - 67, - MAX( DISTINCT - - 64 ) / - 86 / + ( + - COUNT( * ) ) ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT NULLIF ( - 67, - MAX ( DISTINCT - - 64 ) / - 86 / + ( + - COUNT ( * ) ) ) col2
----
-67

query I rowsort
SELECT ALL NULLIF ( - + 48, + + 66 ) AS col2
----
-48

query I rowsort
SELECT - 42 col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1817
SELECT DISTINCT - 48 + - - NULLIF ( - - 76, 78 + + AVG ( DISTINCT + - 81 ) - + 24 * - - MIN( ALL - + 90 ) * + CASE 29 WHEN - 46 * + 96 + + COUNT( - - 59 ) + + 1 THEN CAST( - 59 AS SIGNED ) END ) - + + 46 - 96
----
-114

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT - 48 + - - NULLIF ( - - 76, 78 + + AVG ( DISTINCT + - 81 ) - + 24 * - - MIN ( ALL - + 90 ) * + CASE 29 WHEN - 46 * + 96 + + COUNT ( - - 59 ) + + 1 THEN CAST ( - 59 AS INTEGER ) END ) - + + 46 - 96
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL + ( COUNT( * ) ) + 68 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + ( COUNT ( * ) ) + 68 AS col0
----
69

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

skipif mysql # not compatible
query II rowsort label-1819
SELECT 38 AS col0, COUNT ( * ) AS col2
----
38
1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1821
SELECT - 21 DIV - CAST( + ( - 91 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1821
SELECT - 21 / - CAST ( + ( - 91 ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT + 26 * + 20 AS col0
----
520

query I rowsort
SELECT - 7 AS col2
----
-7

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

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

query I rowsort
SELECT ALL + 94 - + 14 * - 84 AS col0
----
1270

query II rowsort
SELECT 33 AS col1, - ( + ( + + 66 ) )
----
33
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL 85 - - + SUM( ALL + 5 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL 85 - - + SUM ( ALL + 5 ) AS col1
----
90

query I rowsort
SELECT ALL 2 * 36 AS col1
----
72

query I rowsort
SELECT - 8 + - - 70 * + 41 AS col0
----
2862

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT - COUNT( ALL 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-1831
SELECT - COUNT ( ALL 52 )
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-1833
SELECT - 39 / - - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT + - 53 * - 2 * + 63 * + CASE 33 WHEN + 52 THEN + - 84 * - COALESCE ( - 57, 69 / - COUNT( * ) ) * - AVG ( 87 ) ELSE NULL END * - 60 * - COUNT( * ) * + ( - + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT + - 53 * - 2 * + 63 * + CASE 33 WHEN + 52 THEN + - 84 * - COALESCE ( - 57, 69 / - COUNT ( * ) ) * - AVG ( 87 ) ELSE NULL END * - 60 * - COUNT ( * ) * + ( - + 53 )
----
NULL

query I rowsort
SELECT + ( - CASE + - 88 WHEN + ( ( 24 ) ) THEN - 79 END )
----
NULL

query I rowsort
SELECT ALL - ( - + 22 ) * - 49 * 39 AS col1
----
-42042

query II rowsort
SELECT + 39 AS col1, + 72 AS col2
----
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - COUNT( * ) * + COUNT( * ) - + 52 + - CASE + 48 WHEN 48 * - - 2 THEN 43 WHEN - 0 THEN 72 + - + ( + 65 ) + 75 WHEN - + 67 THEN NULL ELSE - + 76 * - 42 END + + COALESCE ( 68, 95, - + 27 ) AS col1
----
-3177

skipif mysql # not compatible
query I rowsort label-1838
SELECT - COUNT ( * ) * + COUNT ( * ) - + 52 + - CASE + 48 WHEN 48 * - - 2 THEN 43 WHEN - 0 THEN 72 + - + ( + 65 ) + 75 WHEN - + 67 THEN NULL ELSE - + 76 * - 42 END + + COALESCE ( 68, 95, - + 27 ) AS col1
----
-3177

onlyif mysql # aggregate syntax: 
query II rowsort label-1839
SELECT ALL + - COUNT( * ) AS col2, 21 - + MIN( 45 )
----
-1
-24

skipif mysql # not compatible
query II rowsort label-1839
SELECT ALL + - COUNT ( * ) AS col2, 21 - + MIN ( 45 )
----
-1
-24

query I rowsort
SELECT + 95 col0
----
95

query II rowsort
SELECT DISTINCT + 32 AS col1, 19 * - 22 * - 7 + - + 68
----
32
2858

query I rowsort
SELECT ALL + 12 * 37
----
444

query I rowsort
SELECT ALL + - ( + 77 ) AS col1
----
-77

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

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

query I rowsort
SELECT ALL + + 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT + 24 * - 59 - 91 - - CASE + + SUM( - 14 ) WHEN + 38 + - COUNT( * ) * - - 84 THEN COUNT( * ) - 37 + - 2 * 79 * 14 WHEN - - 31 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT + 24 * - 59 - 91 - - CASE + + SUM ( - 14 ) WHEN + 38 + - COUNT ( * ) * - - 84 THEN COUNT ( * ) - 37 + - 2 * 79 * 14 WHEN - - 31 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1847
SELECT ALL + - 68 * + - ( - 74 ) + + COUNT( * ) DIV 44 AS col1
----
-5032

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + - 68 * + - ( - 74 ) + + COUNT ( * ) / 44 AS col1
----
-5032

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

query I rowsort
SELECT + + 4
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL - ( - - 6 ) * - + 80 * + - CASE - 62 WHEN 60 * - + 55 THEN + - COUNT( * ) + + 11 WHEN COUNT( * ) THEN NULL WHEN + 74 + 33 THEN + 47 * - - 43 * - + NULLIF ( + - 77, - 40 + + - MAX( + + 74 ) ) + 15 * - 67 * + 3 / - 17 * AVG ( - + 48 ) ELSE NULL END + 62 - - + 95 * - - 32 * + - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL - ( - - 6 ) * - + 80 * + - CASE - 62 WHEN 60 * - + 55 THEN + - COUNT ( * ) + + 11 WHEN COUNT ( * ) THEN NULL WHEN + 74 + 33 THEN + 47 * - - 43 * - + NULLIF ( + - 77, - 40 + + - MAX ( + + 74 ) ) + 15 * - 67 * + 3 / - 17 * AVG ( - + 48 ) ELSE NULL END + 62 - - + 95 * - - 32 * + - 60 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT + + 91 * + CAST( NULL AS SIGNED ) + 13 * + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT + + 91 * + CAST ( NULL AS INTEGER ) + 13 * + - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1853
SELECT ALL - 37 * + 66 + - COUNT( * ) + - + CAST( + - 3 AS SIGNED ) + + + 32 DIV - - COUNT( * ) * - COUNT( * ) col2
----
-2472

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - 37 * + 66 + - COUNT ( * ) + - + CAST ( + - 3 AS INTEGER ) + + + 32 / - - COUNT ( * ) * - COUNT ( * ) col2
----
-2472

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

query II rowsort
SELECT ALL + - 83 AS col0, + 9 AS col1
----
-83
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT + 4 - - 33, NULLIF ( 61, + COUNT( * ) * - 16 - - COUNT( * ) ) AS col2
----
37
61

skipif mysql # not compatible
query II rowsort label-1856
SELECT + 4 - - 33, NULLIF ( 61, + COUNT ( * ) * - 16 - - COUNT ( * ) ) AS col2
----
37
61

query I rowsort
SELECT ALL + 11
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT ALL CAST( NULL AS SIGNED ) * + + ( 36 ) + COALESCE ( + 31, - 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL CAST ( NULL AS INTEGER ) * + + ( 36 ) + COALESCE ( + 31, - 90 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT + SUM( - 97 ) - 19 + - 39 - - 62 col1
----
-93

skipif mysql # not compatible
query I rowsort label-1859
SELECT + SUM ( - 97 ) - 19 + - 39 - - 62 col1
----
-93

query I rowsort
SELECT COALESCE ( + 6, + 37 * - 61 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL + COUNT( * ) * - - 6 + + 39
----
45

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + COUNT ( * ) * - - 6 + + 39
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT 25 * - 19 * - 76 + 22 DIV + - 81 AS col0
----
36100

skipif mysql # not compatible
query I rowsort label-1862
SELECT 25 * - 19 * - 76 + 22 / + - 81 AS col0
----
36100

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT - 74 * + + MIN( DISTINCT + 55 ) * - + COUNT( * )
----
4070

skipif mysql # not compatible
query I rowsort label-1863
SELECT - 74 * + + MIN ( DISTINCT + 55 ) * - + COUNT ( * )
----
4070

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + COUNT( * ) + + COUNT( * ) - 44 * - ( + - ( - 41 ) ) col2
----
1806

skipif mysql # not compatible
query I rowsort label-1865
SELECT + COUNT ( * ) + + COUNT ( * ) - 44 * - ( + - ( - 41 ) ) col2
----
1806

query I rowsort
SELECT - 95 AS col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT + 21 + 68 DIV - - 77
----
21

skipif mysql # not compatible
query I rowsort label-1867
SELECT + 21 + 68 / - - 77
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1868
SELECT - COUNT( * ) - - COUNT( * ) + - COUNT( * ) + + - ( - + 80 ) * - CASE 6 WHEN 33 + + + ( COUNT( * ) ) THEN - 56 WHEN - 79 + - + CAST( + + COUNT( * ) AS DECIMAL ) * CAST( NULL AS SIGNED ) / COUNT( * ) THEN + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT - COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) + + - ( - + 80 ) * - CASE 6 WHEN 33 + + + ( COUNT ( * ) ) THEN - 56 WHEN - 79 + - + CAST ( + + COUNT ( * ) AS REAL ) * CAST ( NULL AS INTEGER ) / COUNT ( * ) THEN + 91 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1869
SELECT MIN( ALL + 81 ), CAST( NULL AS SIGNED ) AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1869
SELECT MIN ( ALL + 81 ), CAST ( NULL AS INTEGER ) AS col2
----
81
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT - 15 * + 98 * COUNT( * ) * - - CAST( - 78 AS SIGNED )
----
114660

skipif mysql # not compatible
query I rowsort label-1871
SELECT - 15 * + 98 * COUNT ( * ) * - - CAST ( - 78 AS INTEGER )
----
114660

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT - CASE 61 WHEN 13 - + - MIN( ALL + 10 ) / + 3 THEN NULL ELSE - - 6 END + + 83 + - 69 + + 63 + + 13 + - 81 + - 51 * 94 + 4 + + + 63 AS col2
----
-4724

skipif mysql # not compatible
query I rowsort label-1873
SELECT - CASE 61 WHEN 13 - + - MIN ( ALL + 10 ) / + 3 THEN NULL ELSE - - 6 END + + 83 + - 69 + + 63 + + 13 + - 81 + - 51 * 94 + 4 + + + 63 AS col2
----
-4724

query I rowsort
SELECT - 67 + + - 18 + + 45 * 15 * - 90 - 50 AS col1
----
-60885

query I rowsort
SELECT ALL - 63 * - 35 * 32
----
70560

onlyif mysql # aggregate syntax: 
query II rowsort label-1876
SELECT - 84 * + COUNT( * ) * + 99 AS col2, 29 AS col1
----
-8316
29

skipif mysql # not compatible
query II rowsort label-1876
SELECT - 84 * + COUNT ( * ) * + 99 AS col2, 29 AS col1
----
-8316
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1877
SELECT ALL ( + - COALESCE ( - 77, + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) DIV - 85, + - 32 + MAX( + 46 ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL ( + - COALESCE ( - 77, + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 85, + - 32 + MAX ( + 46 ) ) )
----
77

query II rowsort
SELECT ALL ( - 58 ) col1, 89
----
-58
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT - CASE + 25 WHEN + 41 THEN NULL ELSE COALESCE ( - 14, + + 24 + + 6 * + - 99 * - + 84, - + COUNT( * ) * + 11 ) END + + COUNT( ALL - COALESCE ( - 99, - 47 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1879
SELECT - CASE + 25 WHEN + 41 THEN NULL ELSE COALESCE ( - 14, + + 24 + + 6 * + - 99 * - + 84, - + COUNT ( * ) * + 11 ) END + + COUNT ( ALL - COALESCE ( - 99, - 47 ) ) AS col2
----
15

query I rowsort
SELECT ALL - - 90 * - 23
----
-2070

query I rowsort
SELECT - + 24
----
-24

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

query I rowsort
SELECT ALL - 61 + + 90
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT 96 DIV 9 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1884
SELECT 96 / 9 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT + - ( - 38 ) * - 11 + MIN( ALL + 91 ) AS col2
----
-327

skipif mysql # not compatible
query I rowsort label-1885
SELECT + - ( - 38 ) * - 11 + MIN ( ALL + 91 ) AS col2
----
-327

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

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

query I rowsort
SELECT ALL - + 10 + - 52 * 74
----
-3858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1888
SELECT - ( - - 14 ) DIV - 68 + + 16 * 79 DIV - + 11 + 19 * + NULLIF ( - 97, + 65 ) + - - 53 * + 97 + 48, 45 - + 33 + - CAST( NULL AS SIGNED ) * + - 64 * + COUNT( * ) * 95 * NULLIF ( - 65, + ( + + 45 ) * 72 ) DIV - - 67 DIV + AVG ( DISTINCT 40 ) + + 46 AS col0
----
3232
NULL

skipif mysql # not compatible
query II rowsort label-1888
SELECT - ( - - 14 ) / - 68 + + 16 * 79 / - + 11 + 19 * + NULLIF ( - 97, + 65 ) + - - 53 * + 97 + 48, 45 - + 33 + - CAST ( NULL AS INTEGER ) * + - 64 * + COUNT ( * ) * 95 * NULLIF ( - 65, + ( + + 45 ) * 72 ) / - - 67 / + AVG ( DISTINCT 40 ) + + 46 AS col0
----
3232
NULL

query I rowsort
SELECT + 93 * + 19 * + - 80 - + 81
----
-141441

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL + 26 * 44 + - ( COUNT( * ) )
----
1143

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + 26 * 44 + - ( COUNT ( * ) )
----
1143

query I rowsort
SELECT 75 + 71 AS col2
----
146

query I rowsort
SELECT 18 AS col1
----
18

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

query I rowsort
SELECT + 97 + 43 AS col0
----
140

query I rowsort
SELECT + - 67
----
-67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1899
SELECT COUNT( * ) * - COUNT( * ) + 29 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT COUNT ( * ) * - COUNT ( * ) + 29 / 20
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1900
SELECT ALL - CAST( - 33 AS SIGNED ) + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - CAST ( - 33 AS INTEGER ) + COUNT ( * )
----
34

query I rowsort
SELECT DISTINCT - 88
----
-88

query II rowsort
SELECT 42 AS col2, 83 AS col2
----
42
83

query I rowsort
SELECT 77 AS col1
----
77

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

query II rowsort
SELECT ALL - 4, 94 AS col2
----
-4
94

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

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

query I rowsort
SELECT ALL - 13
----
-13

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

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT 74 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1909
SELECT ALL - 20, COUNT( * ) col1
----
-20
1

skipif mysql # not compatible
query II rowsort label-1909
SELECT ALL - 20, COUNT ( * ) col1
----
-20
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL 9 - - - 76 + 62 + + + COUNT( - ( 76 ) ) * + - 17 + + SUM( ALL + 88 ) + - 4 * + 85 * + 25
----
-8434

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL 9 - - - 76 + 62 + + + COUNT ( - ( 76 ) ) * + - 17 + + SUM ( ALL + 88 ) + - 4 * + 85 * + 25
----
-8434

query I rowsort
SELECT ALL 26 * 81 AS col0
----
2106

query I rowsort
SELECT DISTINCT 38 * 59 AS col1
----
2242

query I rowsort
SELECT ALL 6
----
6

query I rowsort
SELECT 81 + + 71 AS col0
----
152

query I rowsort
SELECT DISTINCT 7
----
7

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

query I rowsort
SELECT DISTINCT 32 * - + 91 col0
----
-2912

query II rowsort
SELECT 96, + 51 AS col1
----
96
51

query I rowsort
SELECT 0 * + 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1922
SELECT CASE + 52 WHEN - COUNT( * ) + - CAST( 16 AS SIGNED ) THEN + CAST( - 39 AS DECIMAL ) * + - ( - CAST( NULL AS DECIMAL ) ) + + 7 * - COALESCE ( + - 97, 9 * + COALESCE ( + 13, 35, COUNT( * ) + - 90 + - 29 * 24 ), - 31 ) END - - NULLIF ( - ( + - 3 ), + 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT CASE + 52 WHEN - COUNT ( * ) + - CAST ( 16 AS INTEGER ) THEN + CAST ( - 39 AS REAL ) * + - ( - CAST ( NULL AS REAL ) ) + + 7 * - COALESCE ( + - 97, 9 * + COALESCE ( + 13, 35, COUNT ( * ) + - 90 + - 29 * 24 ), - 31 ) END - - NULLIF ( - ( + - 3 ), + 92 ) AS col2
----
NULL

query I rowsort
SELECT 9 AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT ( + 92 ) DIV 64 * - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-1924
SELECT ( + 92 ) / 64 * - 79 AS col0
----
-79

query I rowsort
SELECT 15 + - 53 - - 13 + + + 39
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT DISTINCT COUNT( ALL + 5 ) DIV - 72 * - 46 * + + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT COUNT ( ALL + 5 ) / - 72 * - 46 * + + 28 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - ( + 48 ) * 56 * + SUM( ALL - + 77 ) + ( 57 ) + - 67 AS col0
----
206966

skipif mysql # not compatible
query I rowsort label-1928
SELECT - ( + 48 ) * 56 * + SUM ( ALL - + 77 ) + ( 57 ) + - 67 AS col0
----
206966

query I rowsort
SELECT ALL + 45 + - 55 AS col2
----
-10

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1931
SELECT ALL + 65 + - COALESCE ( - 95, + 79, + ( 90 ) ) AS col0, - SUM( - + 72 ) DIV - MIN( ALL 34 ) + + 45 * + COUNT( * ) - 57
----
160
-14

skipif mysql # not compatible
query II rowsort label-1931
SELECT ALL + 65 + - COALESCE ( - 95, + 79, + ( 90 ) ) AS col0, - SUM ( - + 72 ) / - MIN ( ALL 34 ) + + 45 * + COUNT ( * ) - 57
----
160
-14

query I rowsort
SELECT + ( - + 55 ) - - + NULLIF ( 19, - 15 )
----
-36

query I rowsort
SELECT ALL - + 62 + - 38
----
-100

query I rowsort
SELECT + 79 + - - 87 - 55 * + 27 * - - 11 AS col2
----
-16169

query I rowsort
SELECT DISTINCT - 74 + 16 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1936
SELECT DISTINCT CASE CAST( - 63 AS SIGNED ) WHEN + 69 * - 20 + - - CAST( NULL AS SIGNED ) THEN - + 95 / + 58 + + MIN( DISTINCT + 78 ) * - 26 ELSE NULL END * + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT CASE CAST ( - 63 AS INTEGER ) WHEN + 69 * - 20 + - - CAST ( NULL AS INTEGER ) THEN - + 95 / + 58 + + MIN ( DISTINCT + 78 ) * - 26 ELSE NULL END * + - 76
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - COUNT( * ) * ( + + 95 ) * + 69 + + 48 + + 11
----
-6496

skipif mysql # not compatible
query I rowsort label-1939
SELECT - COUNT ( * ) * ( + + 95 ) * + 69 + + 48 + + 11
----
-6496

query I rowsort
SELECT 41 + - 65 - + 98
----
-122

query II rowsort
SELECT 14 AS col1, - 7
----
14
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT - MIN( ALL - 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1942
SELECT - MIN ( ALL - 7 ) AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1943
SELECT + CAST( NULL AS SIGNED ) + 98 / 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT + CAST ( NULL AS INTEGER ) + 98 / 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL - COUNT( * ) + + 29
----
28

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL - COUNT ( * ) + + 29
----
28

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

query I rowsort
SELECT + 31 col2
----
31

query I rowsort
SELECT COALESCE ( 35, - 59, 5 ) * + - 76
----
-2660

query I rowsort
SELECT ( - - 29 )
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-1949
SELECT ALL - + 26 AS col2, 23 DIV + 51
----
-26
0

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL - + 26 AS col2, 23 / + 51
----
-26
0

query II rowsort
SELECT 89, - 98 + + + 77 + - 82 AS col0
----
89
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT CAST( + 67 AS SIGNED ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-1951
SELECT CAST ( + 67 AS INTEGER ) AS col2
----
67

query I rowsort
SELECT ALL + + 78 - 62
----
16

query I rowsort
SELECT ALL 48 * + - 19 * 50
----
-45600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1954
SELECT 62 DIV - NULLIF ( + 35, + 76 ) - 49 AS col0, - 32 + + + MAX( DISTINCT - 44 ) AS col2
----
-50
-76

skipif mysql # not compatible
query II rowsort label-1954
SELECT 62 / - NULLIF ( + 35, + 76 ) - 49 AS col0, - 32 + + + MAX ( DISTINCT - 44 ) AS col2
----
-50
-76

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

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

query I rowsort
SELECT ALL + 34 * ( + CASE 64 WHEN 27 THEN + 71 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT 35 * + 95 * + - CAST( NULL AS SIGNED ) * - + 62 + - 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT 35 * + 95 * + - CAST ( NULL AS INTEGER ) * - + 62 + - 31 col2
----
NULL

query I rowsort
SELECT ALL - 62 - + - 53 * + - 43
----
-2341

query I rowsort
SELECT 55 * - 1 * + 94 * + - 9 col2
----
46530

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

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

query I rowsort
SELECT DISTINCT - 36
----
-36

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT 74 - - + 59 DIV + 51
----
75

skipif mysql # not compatible
query I rowsort label-1965
SELECT 74 - - + 59 / + 51
----
75

query II rowsort
SELECT ALL - 63 * + 1 col0, 51
----
-63
51

query I rowsort
SELECT ALL - 48 col0
----
-48

query I rowsort
SELECT 84 - - 57
----
141

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT COUNT( * ) * + 32 * + COALESCE ( - 95, - - 29, + COUNT( * ) * + 79 * 62 + 73 - - 53 * - + 24 * - 42 + + COUNT( - 14 ) * + 39 * - MAX( DISTINCT - - 68 ) ) AS col1
----
-3040

skipif mysql # not compatible
query I rowsort label-1972
SELECT COUNT ( * ) * + 32 * + COALESCE ( - 95, - - 29, + COUNT ( * ) * + 79 * 62 + 73 - - 53 * - + 24 * - 42 + + COUNT ( - 14 ) * + 39 * - MAX ( DISTINCT - - 68 ) ) AS col1
----
-3040

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

query I rowsort
SELECT ALL 12
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1975
SELECT 74 + COUNT( * ) + 26 + + 32 * CASE - COUNT( * ) WHEN - + 30 THEN MAX( 59 ) END col2, 78 * - 5 * - CASE - 87 WHEN - - 76 THEN - + 77 WHEN - 16 / - + COUNT( * ) THEN - 92 ELSE NULL END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1975
SELECT 74 + COUNT ( * ) + 26 + + 32 * CASE - COUNT ( * ) WHEN - + 30 THEN MAX ( 59 ) END col2, 78 * - 5 * - CASE - 87 WHEN - - 76 THEN - + 77 WHEN - 16 / - + COUNT ( * ) THEN - 92 ELSE NULL END AS col0
----
NULL
NULL

query I rowsort
SELECT 49
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1977
SELECT ( + 8 ) - 55 + - - 89 * MIN( 87 ) DIV + 78 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1977
SELECT ( + 8 ) - 55 + - - 89 * MIN ( 87 ) / + 78 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1978
SELECT ALL COUNT( * ) * - ( - CASE 56 WHEN 80 THEN 98 + + 71 + + 77 ELSE 96 * 7 + - COALESCE ( - - 42, + CAST( 59 AS SIGNED ) * - 1, - 38 ) END )
----
630

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL COUNT ( * ) * - ( - CASE 56 WHEN 80 THEN 98 + + 71 + + 77 ELSE 96 * 7 + - COALESCE ( - - 42, + CAST ( 59 AS INTEGER ) * - 1, - 38 ) END )
----
630

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

query I rowsort
SELECT ALL - 73 + - 83
----
-156

query I rowsort
SELECT - 80
----
-80

query I rowsort
SELECT ALL 80 + + 14 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL - 36 + + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - 36 + + - COUNT ( * )
----
-37

query I rowsort
SELECT ALL - 25 * - 1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1985
SELECT + CASE - + CAST( NULL AS SIGNED ) WHEN + 62 - - 74 * + - ( + MAX( DISTINCT 88 ) ) THEN - 97 WHEN + - ( - 23 ) * 96 THEN NULL END / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT + CASE - + CAST ( NULL AS INTEGER ) WHEN + 62 - - 74 * + - ( + MAX ( DISTINCT 88 ) ) THEN - 97 WHEN + - ( - 23 ) * 96 THEN NULL END / - 86
----
NULL

query I rowsort
SELECT + + 56 + - 55 * 64
----
-3464

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL COUNT( * ) + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL COUNT ( * ) + 81 AS col1
----
82

query I rowsort
SELECT ALL - 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT NULLIF ( - 22, COALESCE ( + COUNT( - 47 ), + 30 * + 47 ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1989
SELECT NULLIF ( - 22, COALESCE ( + COUNT ( - 47 ), + 30 * + 47 ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL 47 + - - SUM( 28 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL 47 + - - SUM ( 28 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + 21 * - + 3 * - 4 + MIN( ALL 23 ) + 15
----
290

skipif mysql # not compatible
query I rowsort label-1991
SELECT + 21 * - + 3 * - 4 + MIN ( ALL 23 ) + 15
----
290

query I rowsort
SELECT - 64 col1
----
-64

query I rowsort
SELECT + + 53 + + 43 AS col2
----
96

query I rowsort
SELECT 29
----
29

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT DISTINCT - 40 + - - 81 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT - 40 + - - 81 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

query I rowsort
SELECT + 80 + 6
----
86

query I rowsort
SELECT ALL ( - 57 ) - - + 75
----
18

query I rowsort
SELECT ALL - 26 - + + NULLIF ( 25, + 68 ) + - 21
----
-72

query I rowsort
SELECT + - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - 7 + ( + 32 ) * 56 - + ( + + COUNT( ALL + COALESCE ( 4, - 1 ) ) ) * ( - MAX( DISTINCT - 48 ) ) - - ( + 0 ) * - - COUNT( ALL - - ( 60 ) ) AS col1
----
1737

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 7 + ( + 32 ) * 56 - + ( + + COUNT ( ALL + COALESCE ( 4, - 1 ) ) ) * ( - MAX ( DISTINCT - 48 ) ) - - ( + 0 ) * - - COUNT ( ALL - - ( 60 ) ) AS col1
----
1737

query I rowsort
SELECT - 42 * + 55 + + 19
----
-2291

query II rowsort
SELECT - - 46 * 72 AS col1, 24
----
3312
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT COUNT( * ) * + 46 * + 53 - NULLIF ( - 53, - + 82 * + + 8 + 54 + 0 )
----
2491

skipif mysql # not compatible
query I rowsort label-2008
SELECT COUNT ( * ) * + 46 * + 53 - NULLIF ( - 53, - + 82 * + + 8 + 54 + 0 )
----
2491

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT + 78 DIV 20 * 28 + 94 * + 74 col1
----
7040

skipif mysql # not compatible
query I rowsort label-2011
SELECT + 78 / 20 * 28 + 94 * + 74 col1
----
7040

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL + NULLIF ( + + COUNT( * ), ( 55 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + NULLIF ( + + COUNT ( * ), ( 55 ) ) AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT - ( + 44 ) * - COALESCE ( + NULLIF ( 24, - COUNT( * ) ), + + 87 ) - - 20 AS col2
----
1076

skipif mysql # not compatible
query I rowsort label-2014
SELECT - ( + 44 ) * - COALESCE ( + NULLIF ( 24, - COUNT ( * ) ), + + 87 ) - - 20 AS col2
----
1076

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT + ( + - 41 ) * - 35 + + COUNT( * ) + + ( 95 ) DIV - ( + + 41 )
----
1434

skipif mysql # not compatible
query I rowsort label-2016
SELECT + ( + - 41 ) * - 35 + + COUNT ( * ) + + ( 95 ) / - ( + + 41 )
----
1434

query I rowsort
SELECT ALL + COALESCE ( + 57, 99 )
----
57

query I rowsort
SELECT + 48 col1
----
48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT ALL - 4 DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - 4 / - 62 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL 45 * - 17 + - CASE + - CAST( NULL AS SIGNED ) WHEN ( + 41 ) THEN NULL WHEN - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + + 64 * - 36 + - - CAST( - - COUNT( * ) AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL 45 * - 17 + - CASE + - CAST ( NULL AS INTEGER ) WHEN ( + 41 ) THEN NULL WHEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + + 64 * - 36 + - - CAST ( - - COUNT ( * ) AS INTEGER ) ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT - 38 + + + 44 - SUM( ALL - 2 ) * + - 33 + 36 * + 30 * 58 * + + 50 * 53 * COUNT( * ) col0
----
165995940

skipif mysql # not compatible
query I rowsort label-2024
SELECT - 38 + + + 44 - SUM ( ALL - 2 ) * + - 33 + 36 * + 30 * 58 * + + 50 * 53 * COUNT ( * ) col0
----
165995940

query I rowsort
SELECT - COALESCE ( + 21, - 74 ) * + - 70
----
1470

query I rowsort
SELECT - 8 * 32
----
-256

query I rowsort
SELECT ALL - 68 * + 23 AS col1
----
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT DISTINCT + COALESCE ( - NULLIF ( - 5, + - 93 - + + 4 ), 6, + + CAST( NULL AS SIGNED ), + 38 ) * + 89 AS col2
----
445

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT + COALESCE ( - NULLIF ( - 5, + - 93 - + + 4 ), 6, + + CAST ( NULL AS INTEGER ), + 38 ) * + 89 AS col2
----
445

query I rowsort
SELECT - ( 85 ) * + + ( - + 83 ) AS col1
----
7055

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

query I rowsort
SELECT DISTINCT + 96 * 70 col1
----
6720

query I rowsort
SELECT + 52 * - 7
----
-364

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

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

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

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

query I rowsort
SELECT ALL + - 78 + + 94 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT ALL - + 16 + + 72 DIV + 32
----
-14

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL - + 16 + + 72 / + 32
----
-14

query I rowsort
SELECT - - 99 - + - 84 + - 66 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT MAX( 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-2038
SELECT MAX ( 63 ) AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT ( + - CASE WHEN NULL BETWEEN NULL AND 93 THEN - CAST( 90 AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT ( + - CASE WHEN NULL BETWEEN NULL AND 93 THEN - CAST ( 90 AS INTEGER ) END ) AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2042
SELECT - COUNT( - ( - - 20 ) ), 95 - - 2 + + 55 + - - 4 * + 59 AS col1
----
-1
388

skipif mysql # not compatible
query II rowsort label-2042
SELECT - COUNT ( - ( - - 20 ) ), 95 - - 2 + + 55 + - - 4 * + 59 AS col1
----
-1
388

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT + 97 + - ( + COALESCE ( 34, + COUNT( * ) ) ) col2
----
63

skipif mysql # not compatible
query I rowsort label-2043
SELECT + 97 + - ( + COALESCE ( 34, + COUNT ( * ) ) ) col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2044
SELECT ALL 32 AS col0, 23 - - 3 * + CASE + - 49 WHEN 88 THEN NULL WHEN + 26 - COUNT( * ) THEN - COUNT( * ) + 2 / - 6 * + - ( - COUNT( * ) ) END col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2044
SELECT ALL 32 AS col0, 23 - - 3 * + CASE + - 49 WHEN 88 THEN NULL WHEN + 26 - COUNT ( * ) THEN - COUNT ( * ) + 2 / - 6 * + - ( - COUNT ( * ) ) END col1
----
32
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2045
SELECT DISTINCT - CAST( + 41 AS SIGNED ) * - 67 * + - CAST( - + 60 AS SIGNED ), 11 AS col0
----
164820
11

skipif mysql # not compatible
query II rowsort label-2045
SELECT DISTINCT - CAST ( + 41 AS INTEGER ) * - 67 * + - CAST ( - + 60 AS INTEGER ), 11 AS col0
----
164820
11

query I rowsort
SELECT ALL 65
----
65

query I rowsort
SELECT DISTINCT 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL 94 * - SUM( ALL 64 )
----
-6016

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL 94 * - SUM ( ALL 64 )
----
-6016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT + 68 - CAST( NULL AS SIGNED ) + - 83 * + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT + 68 - CAST ( NULL AS INTEGER ) + - 83 * + + 89 AS col2
----
NULL

query I rowsort
SELECT ALL - 63
----
-63

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

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

query I rowsort
SELECT - 66 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT + - 0 + - - MIN( - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2053
SELECT + - 0 + - - MIN ( - 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2054
SELECT DISTINCT + 17 col0, - 22 + - COUNT( * ) AS col0
----
17
-23

skipif mysql # not compatible
query II rowsort label-2054
SELECT DISTINCT + 17 col0, - 22 + - COUNT ( * ) AS col0
----
17
-23

query I rowsort
SELECT ALL 39
----
39

query I rowsort
SELECT - 28 + - - 84
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + CASE - 38 WHEN 18 THEN 20 WHEN + - 12 THEN NULL ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT + CASE - 38 WHEN 18 THEN 20 WHEN + - 12 THEN NULL ELSE NULL END * - COUNT ( * )
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2061
SELECT DISTINCT 92 DIV CASE + - 42 WHEN - ( - - COUNT( * ) ) + - 69 THEN NULL WHEN + - COALESCE ( + + 95, - ( - + AVG ( + 2 ) ) ) THEN 5 ELSE 16 END * - + 79 + + 34 + 83 AS col2, - 88 * + 37 * + - 12 * + CAST( 92 AS SIGNED ) - - + COUNT( DISTINCT - ( ( + + 89 ) ) ) DIV + 20 + - 18 + - 41
----
-278
3594565

skipif mysql # not compatible
query II rowsort label-2061
SELECT DISTINCT 92 / CASE + - 42 WHEN - ( - - COUNT ( * ) ) + - 69 THEN NULL WHEN + - COALESCE ( + + 95, - ( - + AVG ( + 2 ) ) ) THEN 5 ELSE 16 END * - + 79 + + 34 + 83 AS col2, - 88 * + 37 * + - 12 * + CAST ( 92 AS INTEGER ) - - + COUNT ( DISTINCT - ( ( + + 89 ) ) ) / + 20 + - 18 + - 41
----
-278
3594565

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT + 43 AS col1, MIN( - 0 ) * + 11 AS col2
----
43
0

skipif mysql # not compatible
query II rowsort label-2064
SELECT + 43 AS col1, MIN ( - 0 ) * + 11 AS col2
----
43
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2065
SELECT ALL COUNT( - 20 ) DIV + 50 + - - 58 + + - ( - + ( + 53 ) ) + + 57
----
168

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL COUNT ( - 20 ) / + 50 + - - 58 + + - ( - + ( + 53 ) ) + + 57
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + MAX( ALL + - 28 ) - - + MIN( + - 80 )
----
-108

skipif mysql # not compatible
query I rowsort label-2066
SELECT + MAX ( ALL + - 28 ) - - + MIN ( + - 80 )
----
-108

onlyif mysql # aggregate syntax: 
query III rowsort label-2067
SELECT + 46, 13 col2, + MAX( + - 44 ) col0
----
46
13
-44

skipif mysql # not compatible
query III rowsort label-2067
SELECT + 46, 13 col2, + MAX ( + - 44 ) col0
----
46
13
-44

query I rowsort
SELECT - 21 * 75 AS col2
----
-1575

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT 37 * 11 - 96 - - 40, 66 * + + 90 * COUNT( * ) * + 39 col2
----
351
231660

skipif mysql # not compatible
query II rowsort label-2071
SELECT 37 * 11 - 96 - - 40, 66 * + + 90 * COUNT ( * ) * + 39 col2
----
351
231660

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT ALL 8 * 59 DIV + 88
----
5

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL 8 * 59 / + 88
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2073
SELECT ALL + 31 * + ( + - CAST( - 95 AS SIGNED ) ) + + ( + + COUNT( * ) ) col0, + 4 AS col2
----
2946
4

skipif mysql # not compatible
query II rowsort label-2073
SELECT ALL + 31 * + ( + - CAST ( - 95 AS INTEGER ) ) + + ( + + COUNT ( * ) ) col0, + 4 AS col2
----
2946
4

query II rowsort
SELECT 17 AS col1, 90
----
17
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT DISTINCT + 28 + - - 41 + - + 15 DIV + 63 * 17 col0
----
69

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT + 28 + - - 41 + - + 15 / + 63 * 17 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT 89 * - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2076
SELECT 89 * - COUNT ( * ) AS col0
----
-89

query II rowsort
SELECT 84, ( + 47 ) AS col1
----
84
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL + - 76 + - COUNT( ALL + 41 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + - 76 + - COUNT ( ALL + 41 ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2079
SELECT + + 3 AS col2, 78 + CAST( - 62 AS SIGNED ) AS col1
----
3
16

skipif mysql # not compatible
query II rowsort label-2079
SELECT + + 3 AS col2, 78 + CAST ( - 62 AS INTEGER ) AS col1
----
3
16

query I rowsort
SELECT 19 + + + 15
----
34

query I rowsort
SELECT 21
----
21

query I rowsort
SELECT 9 - - - ( - + 67 ) + 91 + + 93 + 10 - 39 * 7 + - 48
----
-51

query III rowsort
SELECT - 99 AS col2, 90 AS col1, - - 80 * + 34
----
-99
90
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL - ( - + MAX( DISTINCT 38 ) ) - + 72
----
-34

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - ( - + MAX ( DISTINCT 38 ) ) - + 72
----
-34

query II rowsort
SELECT ALL - 85, 20 AS col2
----
-85
20

query I rowsort
SELECT DISTINCT 27
----
27

query I rowsort
SELECT ALL - 90 * - 99 col2
----
8910

query I rowsort
SELECT - 14 + - 25
----
-39

query I rowsort
SELECT 67 * 29
----
1943

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + 89 * - 38 - COUNT( * ) - + 54
----
-3437

skipif mysql # not compatible
query I rowsort label-2090
SELECT + 89 * - 38 - COUNT ( * ) - + 54
----
-3437

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT 44 + + - CASE MIN( DISTINCT - 62 ) WHEN - 59 THEN + ( - 6 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT 44 + + - CASE MIN ( DISTINCT - 62 ) WHEN - 59 THEN + ( - 6 ) END AS col2
----
NULL

query I rowsort
SELECT - 17 AS col2
----
-17

query I rowsort
SELECT ALL - 3
----
-3

query I rowsort
SELECT 65 + + + 12
----
77

query I rowsort
SELECT - 75 AS col0
----
-75

query II rowsort
SELECT ALL 63 * + 70 AS col2, + 62 col0
----
4410
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT 84 + + + 17 col2, - COUNT( 44 )
----
101
-1

skipif mysql # not compatible
query II rowsort label-2099
SELECT 84 + + + 17 col2, - COUNT ( 44 )
----
101
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT 55 + + 15 * - ( - + COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-2100
SELECT 55 + + 15 * - ( - + COUNT ( * ) )
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT + MIN( ALL + 86 ) * + 60 + COUNT( * ) AS col2
----
5161

skipif mysql # not compatible
query I rowsort label-2102
SELECT + MIN ( ALL + 86 ) * + 60 + COUNT ( * ) AS col2
----
5161

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2104
SELECT 40 DIV + 64 * + 2 + 55 - + MIN( DISTINCT 29 )
----
26

skipif mysql # not compatible
query I rowsort label-2104
SELECT 40 / + 64 * + 2 + 55 - + MIN ( DISTINCT 29 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT 4 * COALESCE ( 3, - - ( + COUNT( * ) ) * + - COUNT( * ) ) + 73
----
85

skipif mysql # not compatible
query I rowsort label-2105
SELECT 4 * COALESCE ( 3, - - ( + COUNT ( * ) ) * + - COUNT ( * ) ) + 73
----
85

query I rowsort
SELECT ALL - 45
----
-45

query I rowsort
SELECT ALL - 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ( + COUNT( * ) ) * + 85 + - 83 - - + ( - 64 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-2108
SELECT ( + COUNT ( * ) ) * + 85 + - 83 - - + ( - 64 ) col2
----
-62

query I rowsort
SELECT DISTINCT + 86 + - + 32
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT + 62 * - 30 + COUNT( * ) * - CASE - + ( - - COUNT( * ) ) WHEN + + 76 THEN NULL WHEN - 46 THEN - 98 * - 27 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 62 * - 30 + COUNT ( * ) * - CASE - + ( - - COUNT ( * ) ) WHEN + + 76 THEN NULL WHEN - 46 THEN - 98 * - 27 ELSE NULL END col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT 41 * + COALESCE ( - 2, + COUNT( * ), - 84 * - - ( - 89 ) + + COUNT( * ) ) + - 43
----
-125

skipif mysql # not compatible
query I rowsort label-2113
SELECT 41 * + COALESCE ( - 2, + COUNT ( * ), - 84 * - - ( - 89 ) + + COUNT ( * ) ) + - 43
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT ALL - CAST( + 4 AS SIGNED ) * - ( + + CAST( - + 84 AS SIGNED ) ) + - - 23 + + - 99 AS col0
----
-412

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - CAST ( + 4 AS INTEGER ) * - ( + + CAST ( - + 84 AS INTEGER ) ) + - - 23 + + - 99 AS col0
----
-412

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL MIN( DISTINCT + 11 ) + + MAX( ALL + 50 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL MIN ( DISTINCT + 11 ) + + MAX ( ALL + 50 ) AS col1
----
61

query I rowsort
SELECT 59 col0
----
59

query I rowsort
SELECT + 67
----
67

query I rowsort
SELECT 97
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT 99 * + 27, - COUNT( 0 ) + - 34 AS col2
----
2673
-35

skipif mysql # not compatible
query II rowsort label-2119
SELECT 99 * + 27, - COUNT ( 0 ) + - 34 AS col2
----
2673
-35

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

query I rowsort
SELECT + 71 col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL - MAX( ALL - 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL - MAX ( ALL - 62 ) AS col1
----
62

query I rowsort
SELECT 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL 70 - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL 70 - - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT DISTINCT - ( + MAX( ALL - + 64 ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT - ( + MAX ( ALL - + 64 ) ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2126
SELECT ALL - - ( + + 86 ) AS col2, + ( + CASE 61 WHEN + + AVG ( ALL - 72 ) + + 68 * + MIN( DISTINCT 29 ) THEN + 56 * + COUNT( * ) ELSE + 29 END ) AS col1
----
86
29

skipif mysql # not compatible
query II rowsort label-2126
SELECT ALL - - ( + + 86 ) AS col2, + ( + CASE 61 WHEN + + AVG ( ALL - 72 ) + + 68 * + MIN ( DISTINCT 29 ) THEN + 56 * + COUNT ( * ) ELSE + 29 END ) AS col1
----
86
29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2128
SELECT ALL - - 36 DIV + 23 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - - 36 / + 23 AS col1
----
1

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

skipif mysql # not compatible
query II rowsort label-2129
SELECT - CAST ( NULL AS INTEGER ) + + - 17 AS col1, - 35 * + + COUNT ( * ) AS col1
----
NULL
-35

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

query I rowsort
SELECT - - 33 AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT ALL + 70 DIV 58 + - 37 + + 8 - - 24 col0
----
-4

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + 70 / 58 + - 37 + + 8 - - 24 col0
----
-4

query I rowsort
SELECT 82 - + + 68 - + 21 + + 10 * + 95
----
943

query I rowsort
SELECT ALL 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT DISTINCT + + 94 * + MIN( ALL - 10 ) * 56 + + 54 col2
----
-52586

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT + + 94 * + MIN ( ALL - 10 ) * 56 + + 54 col2
----
-52586

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL - + MIN( ALL - + 98 ) * + 2 + + + 92
----
288

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - + MIN ( ALL - + 98 ) * + 2 + + + 92
----
288

query I rowsort
SELECT ALL - NULLIF ( + - 77, 80 + - - 85 - + + 19 ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2139
SELECT DISTINCT + + 2 + COUNT( DISTINCT - 13 ) DIV 23 + 33 * - - 66
----
2180

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT + + 2 + COUNT ( DISTINCT - 13 ) / 23 + 33 * - - 66
----
2180

query I rowsort
SELECT 78 - - 74 + + - 90 * ( 57 ) AS col2
----
-4978

query II rowsort
SELECT - 76 AS col0, 50
----
-76
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL + 72 + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + 72 + COUNT ( * )
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-2143
SELECT - 78 AS col0, + 99 + + + 29 DIV 23
----
-78
100

skipif mysql # not compatible
query II rowsort label-2143
SELECT - 78 AS col0, + 99 + + + 29 / 23
----
-78
100

query I rowsort
SELECT 7
----
7

query I rowsort
SELECT 93 * + 19
----
1767

query I rowsort
SELECT - 34
----
-34

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2148
SELECT ALL + 45 + 94 - + 77 DIV - 92 * SUM( DISTINCT + 41 )
----
139

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + 45 + 94 - + 77 / - 92 * SUM ( DISTINCT + 41 )
----
139

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT 56 AS col2, COUNT( * ) + 29 + 67
----
56
97

skipif mysql # not compatible
query II rowsort label-2150
SELECT 56 AS col2, COUNT ( * ) + 29 + 67
----
56
97

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

query I rowsort
SELECT 19 * 17 AS col2
----
323

query I rowsort
SELECT ALL - 73 + + + 27
----
-46

query I rowsort
SELECT - 44 AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2155
SELECT COALESCE ( + - 38, + CASE + + 63 WHEN CAST( + 3 AS SIGNED ) + - ( + CAST( NULL AS SIGNED ) ) THEN - AVG ( ALL - + 4 ) DIV - + COUNT( * ) END ), 65 * + 52 AS col2
----
-38
3380

skipif mysql # not compatible
query II rowsort label-2155
SELECT COALESCE ( + - 38, + CASE + + 63 WHEN CAST ( + 3 AS INTEGER ) + - ( + CAST ( NULL AS INTEGER ) ) THEN - AVG ( ALL - + 4 ) / - + COUNT ( * ) END ), 65 * + 52 AS col2
----
-38
3380

query I rowsort
SELECT DISTINCT + 9 * - ( - 14 ) + - 61 AS col0
----
65

query I rowsort
SELECT COALESCE ( 84, + 77 )
----
84

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

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

query I rowsort
SELECT ALL + 15 * - 70 - + 18 AS col1
----
-1068

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT CASE + COUNT( * ) WHEN - 98 + - 99 THEN NULL WHEN + + SUM( ALL - 47 ) THEN NULL WHEN - + 95 THEN 3 + - + 36 * + + 57 - 0 * + 49 WHEN - 45 - + - 78 THEN NULL ELSE + 28 END AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2160
SELECT CASE + COUNT ( * ) WHEN - 98 + - 99 THEN NULL WHEN + + SUM ( ALL - 47 ) THEN NULL WHEN - + 95 THEN 3 + - + 36 * + + 57 - 0 * + 49 WHEN - 45 - + - 78 THEN NULL ELSE + 28 END AS col2
----
28

query I rowsort
SELECT - ( + 40 ) + 90 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT + 49 * - - COUNT( DISTINCT + 3 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2162
SELECT + 49 * - - COUNT ( DISTINCT + 3 ) AS col1
----
49

query I rowsort
SELECT ALL + 73
----
73

query II rowsort
SELECT 47 * 18 + - 86, - ( - 50 ) col2
----
760
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2165
SELECT ALL - 30 * - 58 DIV - COUNT( * ) - ( - COUNT( * ) ) AS col1
----
-1739

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - 30 * - 58 / - COUNT ( * ) - ( - COUNT ( * ) ) AS col1
----
-1739

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 86
----
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT + COUNT( * ) * - 4 * + ( + + COUNT( * ) ) + 7 * - CASE - 89 WHEN + 81 THEN 42 ELSE NULL END + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT + COUNT ( * ) * - 4 * + ( + + COUNT ( * ) ) + 7 * - CASE - 89 WHEN + 81 THEN 42 ELSE NULL END + - 8
----
NULL

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

query I rowsort
SELECT + 44 * - - 83 - + 5
----
3647

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT + 38 * COALESCE ( - COUNT( * ), + 39 ) + + 81
----
43

skipif mysql # not compatible
query I rowsort label-2175
SELECT + 38 * COALESCE ( - COUNT ( * ), + 39 ) + + 81
----
43

query I rowsort
SELECT + 88 + - 23
----
65

query I rowsort
SELECT + 45
----
45

query II rowsort
SELECT 69 AS col2, - 81 * - 45
----
69
3645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT + NULLIF ( - COALESCE ( ( CASE WHEN NULL IS NOT NULL THEN - 28 END ), + 72 * - - 40 ), - ( 86 ) + 36 ) + - COALESCE ( + 33, CAST( 53 AS SIGNED ) )
----
-2913

skipif mysql # not compatible
query I rowsort label-2179
SELECT + NULLIF ( - COALESCE ( ( CASE WHEN NULL IS NOT NULL THEN - 28 END ), + 72 * - - 40 ), - ( 86 ) + 36 ) + - COALESCE ( + 33, CAST ( 53 AS INTEGER ) )
----
-2913

query I rowsort
SELECT - + ( + 44 ) - - 60 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + - 19 * - COUNT( * ) + 31
----
50

skipif mysql # not compatible
query I rowsort label-2181
SELECT + - 19 * - COUNT ( * ) + 31
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2182
SELECT - - 13 * - 20 * + 32 * - - 36 + + NULLIF ( + - 7, + 47 ) + 60 col0, COUNT( * ) * - 78 AS col0
----
-299467
-78

skipif mysql # not compatible
query II rowsort label-2182
SELECT - - 13 * - 20 * + 32 * - - 36 + + NULLIF ( + - 7, + 47 ) + 60 col0, COUNT ( * ) * - 78 AS col0
----
-299467
-78

query I rowsort
SELECT DISTINCT 49 + 10
----
59

query I rowsort
SELECT - - NULLIF ( 6, 17 - - 96 + - - 88 * ( + - 31 ) ) AS col1
----
6

query I rowsort
SELECT ALL + ( - 83 ) + - - 18
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2186
SELECT ALL + 74 + - CASE + + COUNT( * ) WHEN + 23 THEN NULL ELSE - - MIN( + 52 ) DIV - ( 64 ) END * - + 69 * + + 41 DIV - - 96
----
74

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + 74 + - CASE + + COUNT ( * ) WHEN + 23 THEN NULL ELSE - - MIN ( + 52 ) / - ( 64 ) END * - + 69 * + + 41 / - - 96
----
74

query I rowsort
SELECT - - 74
----
74

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT + 25 + + + 91 + + 84 * + COUNT( * ) col2
----
200

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + 25 + + + 91 + + 84 * + COUNT ( * ) col2
----
200

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

query I rowsort
SELECT + 33 + 92 * - 84
----
-7695

query I rowsort
SELECT - 32
----
-32

query I rowsort
SELECT - 98 * - - 64 AS col2
----
-6272

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2195
SELECT + CAST( NULL AS SIGNED ) + + 80 * - 74 + - - 4 + + 78 AS col0, + 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-2195
SELECT + CAST ( NULL AS INTEGER ) + + 80 * - 74 + - - 4 + + 78 AS col0, + 59
----
NULL
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2196
SELECT ALL + 41 + + CAST( - - 33 AS SIGNED ) DIV - 11
----
38

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL + 41 + + CAST ( - - 33 AS INTEGER ) / - 11
----
38

query I rowsort
SELECT ALL - CASE + 82 WHEN - 7 THEN NULL ELSE 67 END * - 53 col2
----
3551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2198
SELECT ALL + COUNT( * ) - - 59 AS col2, - 85 DIV 3 + + COUNT( * )
----
60
-27

skipif mysql # not compatible
query II rowsort label-2198
SELECT ALL + COUNT ( * ) - - 59 AS col2, - 85 / 3 + + COUNT ( * )
----
60
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT - 55 + - + COUNT( + 23 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2200
SELECT - 55 + - + COUNT ( + 23 ) AS col2
----
-56

query I rowsort
SELECT - 5 AS col0
----
-5

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

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

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

query I rowsort
SELECT - 8 * - - ( + 99 ) AS col1
----
-792

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

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

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

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

query II rowsort
SELECT ( 3 ) AS col2, + 37 + 89 col2
----
3
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT - + 91 * + + COALESCE ( + 16, - 39 * + COUNT( * ) ) * + + 19 AS col1
----
-27664

skipif mysql # not compatible
query I rowsort label-2209
SELECT - + 91 * + + COALESCE ( + 16, - 39 * + COUNT ( * ) ) * + + 19 AS col1
----
-27664

query I rowsort
SELECT ALL + + ( - 40 ) AS col1
----
-40

query II rowsort
SELECT DISTINCT 31 * - + 34, 84 AS col2
----
-1054
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2212
SELECT DISTINCT + - COUNT( * ) DIV - + COALESCE ( + + 86, 22 - - 84 ) + + 27
----
27

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT + - COUNT ( * ) / - + COALESCE ( + + 86, 22 - - 84 ) + + 27
----
27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2214
SELECT CASE + COALESCE ( - - 34, 7, 76 ) WHEN + 52 THEN + + 13 * - 58 + ( + 31 ) WHEN - + COALESCE ( + + 34, 95 ) DIV 51 THEN NULL ELSE + + COUNT( * ) DIV + 6 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2214
SELECT CASE + COALESCE ( - - 34, 7, 76 ) WHEN + 52 THEN + + 13 * - 58 + ( + 31 ) WHEN - + COALESCE ( + + 34, 95 ) / 51 THEN NULL ELSE + + COUNT ( * ) / + 6 END AS col2
----
0

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

query I rowsort
SELECT - ( - 43 )
----
43

query I rowsort
SELECT 22 * - + 58 + ( + - 44 ) + + - 91
----
-1411

query I rowsort
SELECT - - 64 * + 73 * + COALESCE ( - - 45, 94 + + 27 ) * - 60 AS col0
----
-12614400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2219
SELECT - MIN( DISTINCT 0 ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-2219
SELECT - MIN ( DISTINCT 0 ) / - 78
----
0

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

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

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

query I rowsort
SELECT ALL - + 83 * + 40 + - 14 AS col1
----
-3334

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT + COUNT( * ) * + 61 - - 35 col2
----
96

skipif mysql # not compatible
query I rowsort label-2224
SELECT + COUNT ( * ) * + 61 - - 35 col2
----
96

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

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

query I rowsort
SELECT - 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT - COALESCE ( + + 94, + CASE - COALESCE ( CASE - + 93 WHEN - + 50 * + COUNT( * ) + + 91 THEN + 26 - 46 / 74 / - COUNT( * ) END, + 1 ) WHEN - 27 THEN NULL WHEN + 56 + - 32 + + MAX( ALL - 60 ) * - 78 * 68 + + 57 * + 6 THEN COALESCE ( - + COALESCE ( - - ( + COUNT( * ) ), + 92 * + 37 ), - - ( 6 ), - 49 ) END, - 85 ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-2227
SELECT - COALESCE ( + + 94, + CASE - COALESCE ( CASE - + 93 WHEN - + 50 * + COUNT ( * ) + + 91 THEN + 26 - 46 / 74 / - COUNT ( * ) END, + 1 ) WHEN - 27 THEN NULL WHEN + 56 + - 32 + + MAX ( ALL - 60 ) * - 78 * 68 + + 57 * + 6 THEN COALESCE ( - + COALESCE ( - - ( + COUNT ( * ) ), + 92 * + 37 ), - - ( 6 ), - 49 ) END, - 85 ) col1
----
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT + COALESCE ( NULLIF ( + 53, - - 50 ), - - ( + + 49 ) ) - - 89 * - - COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-2230
SELECT + COALESCE ( NULLIF ( + 53, - - 50 ), - - ( + + 49 ) ) - - 89 * - - COUNT ( * )
----
142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT COUNT( * ) * - COALESCE ( + CASE WHEN NOT 54 <> - + 14 * + 23 + - 46 + 21 * - + MAX( ALL + 86 ) THEN NULL ELSE 16 * 54 + + 48 * - + 18 END, ( + COALESCE ( + 74, - - 64 - + 68 ) ) ) + - 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT COUNT ( * ) * - COALESCE ( + CASE WHEN NOT 54 <> - + 14 * + 23 + - 46 + 21 * - + MAX ( ALL + 86 ) THEN NULL ELSE 16 * 54 + + 48 * - + 18 END, ( + COALESCE ( + 74, - - 64 - + 68 ) ) ) + - 87 AS col1
----
-87

query I rowsort
SELECT - ( - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT COUNT( DISTINCT - 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT COUNT ( DISTINCT - 42 ) AS col2
----
1

query I rowsort
SELECT ALL 92 * - 90
----
-8280

query I rowsort
SELECT DISTINCT 50 - + 89 col2
----
-39

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

query I rowsort
SELECT ALL 40 col1
----
40

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT CAST( NULL AS SIGNED ) - + SUM( + + 29 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT CAST ( NULL AS INTEGER ) - + SUM ( + + 29 ) col1
----
NULL

query I rowsort
SELECT ALL 93
----
93

query I rowsort
SELECT - 95
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT ( + 58 ) - - 88 DIV - + 3 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2243
SELECT ( + 58 ) - - 88 / - + 3 AS col2
----
29

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

query I rowsort
SELECT - 53
----
-53

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

query I rowsort
SELECT ALL - 10 - + 29 AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT ALL 78 DIV 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL 78 / 88 col0
----
0

query II rowsort
SELECT DISTINCT - 5, 58 AS col0
----
-5
58

query I rowsort
SELECT ALL + 34 * 47
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL - 23 * + COUNT( * ) + - + COUNT( ALL + 37 )
----
-24

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - 23 * + COUNT ( * ) + - + COUNT ( ALL + 37 )
----
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT - COUNT( * ) + 99 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2253
SELECT - COUNT ( * ) + 99 AS col0
----
98

query I rowsort
SELECT + 74
----
74

query I rowsort
SELECT + - 39
----
-39

query I rowsort
SELECT DISTINCT - - 82
----
82

query I rowsort
SELECT + ( + 71 ) * + 51 + + 88 AS col0
----
3709

query I rowsort
SELECT DISTINCT 48 + - - 35 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2259
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, - 8 - - 62 - - - 35 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-2259
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 8 - - 62 - - - 35 AS col2
----
NULL
19

query I rowsort
SELECT DISTINCT + 91 + + ( + 53 ) AS col0
----
144

query I rowsort
SELECT DISTINCT + 80 + - - 91
----
171

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

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - MIN ( - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2263
SELECT AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) + + MAX( DISTINCT - 18 ) * CASE + CAST( + + COUNT( + 96 ) AS SIGNED ) WHEN - - 45 THEN NULL WHEN 53 + 72 THEN NULL WHEN 46 THEN - 56 END + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT AVG ( DISTINCT + CAST ( NULL AS REAL ) ) + + MAX ( DISTINCT - 18 ) * CASE + CAST ( + + COUNT ( + 96 ) AS INTEGER ) WHEN - - 45 THEN NULL WHEN 53 + 72 THEN NULL WHEN 46 THEN - 56 END + - - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2265
SELECT + 78 * COUNT( * ) DIV 61 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2265
SELECT + 78 * COUNT ( * ) / 61 + + COUNT ( * )
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT + CASE + COUNT( * ) WHEN + ( 2 ) THEN NULL WHEN - COUNT( * ) THEN + - 45 + 81 / + 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT + CASE + COUNT ( * ) WHEN + ( 2 ) THEN NULL WHEN - COUNT ( * ) THEN + - 45 + 81 / + 66 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 78
----
-78

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

query I rowsort
SELECT + 55 * + 0 * - 3
----
0

query I rowsort
SELECT - 37 col1
----
-37

query I rowsort
SELECT COALESCE ( ( + ( + - 64 ) ), 36 * + 71 + + 35, + 60 - 15 ) - + 4 + + - 10 - + 96 col2
----
-174

query I rowsort
SELECT ALL 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2274
SELECT 36 AS col1, - CAST( + 49 AS SIGNED )
----
36
-49

skipif mysql # not compatible
query II rowsort label-2274
SELECT 36 AS col1, - CAST ( + 49 AS INTEGER )
----
36
-49

query I rowsort
SELECT ALL 73
----
73

query I rowsort
SELECT 93 * + 69
----
6417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT ALL 98 DIV NULLIF ( - NULLIF ( - + SUM( ALL + 92 ), + COUNT( * ) ), - ( 19 ) + + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL 98 / NULLIF ( - NULLIF ( - + SUM ( ALL + 92 ), + COUNT ( * ) ), - ( 19 ) + + 89 ) AS col2
----
1

query I rowsort
SELECT - 84
----
-84

query I rowsort
SELECT 12 + + 61
----
73

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

query I rowsort
SELECT 89 + + 22 * - - 19 col1
----
507

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT MAX( + 43 ) * - - 50 - - - CASE COUNT( * ) WHEN - + 91 * - 72 THEN - + 42 END - - 27 + + 13 * - - 78 * 25 AS col1, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-2282
SELECT MAX ( + 43 ) * - - 50 - - - CASE COUNT ( * ) WHEN - + 91 * - 72 THEN - + 42 END - - 27 + + 13 * - - 78 * 25 AS col1, 45
----
NULL
45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2284
SELECT MIN( + - 8 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT MIN ( + - 8 ) + + + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

query I rowsort
SELECT - 59
----
-59

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

query I rowsort
SELECT ALL 62 col2
----
62

query I rowsort
SELECT ALL 60 + 16 * + 94 AS col1
----
1564

onlyif mysql # aggregate syntax: 
query II rowsort label-2291
SELECT 43 + 26 + + 75 * + 51 + + 91 + + COUNT( * ) * + 97 * - 58 + - - NULLIF ( + 74, + 83 ), 76 AS col0
----
-1567
76

skipif mysql # not compatible
query II rowsort label-2291
SELECT 43 + 26 + + 75 * + 51 + + 91 + + COUNT ( * ) * + 97 * - 58 + - - NULLIF ( + 74, + 83 ), 76 AS col0
----
-1567
76

query I rowsort
SELECT DISTINCT 89 + - 14
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT + 63, 86 + + COUNT( ALL - 10 ) col2
----
63
87

skipif mysql # not compatible
query II rowsort label-2293
SELECT + 63, 86 + + COUNT ( ALL - 10 ) col2
----
63
87

query I rowsort
SELECT - 19 * + 70 - + - 41 + + 60 + + - 75
----
-1304

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT - 40 * - + 35 + 61 DIV + + 38
----
1401

skipif mysql # not compatible
query I rowsort label-2295
SELECT - 40 * - + 35 + 61 / + + 38
----
1401

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

query I rowsort
SELECT ALL + 95 * + - 68 + - 13 + + 20 + - 42 AS col0
----
-6495

query I rowsort
SELECT 33 * - 88
----
-2904

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT + 3 DIV - 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2301
SELECT + 3 / - 82 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT DISTINCT + ( - 7 ) * - - CAST( NULL AS SIGNED ) / - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT + ( - 7 ) * - - CAST ( NULL AS INTEGER ) / - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ( + NULLIF ( + 19, + MAX( ALL + ( + 99 ) ) ) ) * + 86 - + - ( 8 ) + - 42 AS col1
----
1600

skipif mysql # not compatible
query I rowsort label-2303
SELECT ( + NULLIF ( + 19, + MAX ( ALL + ( + 99 ) ) ) ) * + 86 - + - ( 8 ) + - 42 AS col1
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - NULLIF ( 44, - MAX( DISTINCT - 2 ) * - 18 * ( + 22 ) + - 59 + 43 )
----
-44

skipif mysql # not compatible
query I rowsort label-2304
SELECT - NULLIF ( 44, - MAX ( DISTINCT - 2 ) * - 18 * ( + 22 ) + - 59 + 43 )
----
-44

query I rowsort
SELECT ALL + 26 + - - 89 * 77 * - - 13 * + ( 48 ) + - 19 * + 31 + 86 * - + 27
----
4273387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT DISTINCT - + 80 - - 38 + + 73 + + CASE + + 26 WHEN + MIN( 1 ) - + 84 THEN - + CAST( + - 9 AS SIGNED ) END * 14 + - - NULLIF ( 77, + 98 ) + COALESCE ( + - CAST( + - 80 AS SIGNED ), + ( - 98 ) + - 81 ) * - 66 * + 22 + - - 46 * - - 62 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT - + 80 - - 38 + + 73 + + CASE + + 26 WHEN + MIN ( 1 ) - + 84 THEN - + CAST ( + - 9 AS INTEGER ) END * 14 + - - NULLIF ( 77, + 98 ) + COALESCE ( + - CAST ( + - 80 AS INTEGER ), + ( - 98 ) + - 81 ) * - 66 * + 22 + - - 46 * - - 62 * - 52
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 53 * COUNT ( ALL + + 83 ) AS col2
----
-53

query I rowsort
SELECT ALL - - 23
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2311
SELECT + 43 AS col0, + 6 * - - 29 + COUNT( * ) AS col2
----
43
175

skipif mysql # not compatible
query II rowsort label-2311
SELECT + 43 AS col0, + 6 * - - 29 + COUNT ( * ) AS col2
----
43
175

query I rowsort
SELECT ALL + 24 * - 83 col2
----
-1992

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2315
SELECT ALL + ( - 54 ), - 66 DIV COUNT( * ) AS col1
----
-54
-66

skipif mysql # not compatible
query II rowsort label-2315
SELECT ALL + ( - 54 ), - 66 / COUNT ( * ) AS col1
----
-54
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL - COUNT( * ) * - COUNT( * ) * - 53 * + - 45
----
2385

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - 53 * + - 45
----
2385

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT - 80 + - + CASE - 13 WHEN - 20 THEN + ( - 24 ) ELSE - - 35 + COUNT( * ) END AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-2318
SELECT - 80 + - + CASE - 13 WHEN - 20 THEN + ( - 24 ) ELSE - - 35 + COUNT ( * ) END AS col0
----
-116

query I rowsort
SELECT - 79
----
-79

query I rowsort
SELECT 0 AS col1
----
0

query I rowsort
SELECT 14
----
14

query I rowsort
SELECT - 3 - 82 AS col2
----
-85

query I rowsort
SELECT 51 AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2324
SELECT ALL COALESCE ( + 67, CASE - - COUNT( * ) WHEN 12 THEN + 14 DIV - ( - COUNT( 9 ) ) + + 57 END, - 93 )
----
67

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL COALESCE ( + 67, CASE - - COUNT ( * ) WHEN 12 THEN + 14 / - ( - COUNT ( 9 ) ) + + 57 END, - 93 )
----
67

query I rowsort
SELECT - 97 * + - 57
----
5529

query I rowsort
SELECT ALL - 19 * - - 9 AS col0
----
-171

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2327
SELECT DISTINCT - MAX( - - 94 ) * - 84 + - - ( - 49 ) / + + 93 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - MAX ( - - 94 ) * - 84 + - - ( - 49 ) / + + 93 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 84 + - 0 + + 23
----
107

query I rowsort
SELECT 43
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2330
SELECT ALL CASE + 90 WHEN NULLIF ( - 52, - 42 + - + COUNT( * ) ) THEN 73 * + 94 * + 38 - NULLIF ( - 20, + 54 + - + COALESCE ( 63, + + 35 * - 49 ) - - ( - 41 ) - + AVG ( 93 ) ) + + 32 + + 11 * - CASE + - 72 WHEN + + 54 THEN - 76 * CAST( + 47 AS SIGNED ) - - + 65 + 10 ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL CASE + 90 WHEN NULLIF ( - 52, - 42 + - + COUNT ( * ) ) THEN 73 * + 94 * + 38 - NULLIF ( - 20, + 54 + - + COALESCE ( 63, + + 35 * - 49 ) - - ( - 41 ) - + AVG ( 93 ) ) + + 32 + + 11 * - CASE + - 72 WHEN + + 54 THEN - 76 * CAST ( + 47 AS INTEGER ) - - + 65 + 10 ELSE NULL END END AS col2
----
NULL

query I rowsort
SELECT + 66 * + 46
----
3036

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2332
SELECT DISTINCT 78 * CAST( + 98 AS SIGNED ) DIV + 43
----
177

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT 78 * CAST ( + 98 AS INTEGER ) / + 43
----
177

query I rowsort
SELECT - 37 * + + 73 AS col2
----
-2701

query I rowsort
SELECT + 43 * - - 3 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL - NULLIF ( - - COUNT( * ), COUNT( * ) ) + 97 * - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL - NULLIF ( - - COUNT ( * ), COUNT ( * ) ) + 97 * - + 23
----
NULL

query I rowsort
SELECT 67 AS col2
----
67

query I rowsort
SELECT 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - CASE - 25 WHEN + + 18 THEN NULL WHEN 39 THEN NULL WHEN 27 + - 21 / + + CASE - 42 WHEN + 25 + + 77 - + COUNT( ALL + - 78 ) THEN 82 / - COUNT( * ) END THEN - 32 * + 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT - CASE - 25 WHEN + + 18 THEN NULL WHEN 39 THEN NULL WHEN 27 + - 21 / + + CASE - 42 WHEN + 25 + + 77 - + COUNT ( ALL + - 78 ) THEN 82 / - COUNT ( * ) END THEN - 32 * + 19 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT SUM( ALL 17 )
----
17

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT SUM ( ALL 17 )
----
17

query I rowsort
SELECT - 38 * + + 30
----
-1140

onlyif mysql # aggregate syntax: 
query II rowsort label-2341
SELECT + - 46 * - 33 + - - 49 col1, 71 + 71 + - CASE - - 58 WHEN + 61 * - - 85 THEN + ( - 50 ) WHEN - 0 * + + COUNT( * ) * + 94 + - 40 * 88 * 77 + 42 + - 55 THEN 29 END + 32 + + 96 - - 36 + - 41 / + - 50
----
1567
NULL

skipif mysql # not compatible
query II rowsort label-2341
SELECT + - 46 * - 33 + - - 49 col1, 71 + 71 + - CASE - - 58 WHEN + 61 * - - 85 THEN + ( - 50 ) WHEN - 0 * + + COUNT ( * ) * + 94 + - 40 * 88 * 77 + 42 + - 55 THEN 29 END + 32 + + 96 - - 36 + - 41 / + - 50
----
1567
NULL

query I rowsort
SELECT ALL - 28 col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT DISTINCT - - 16 + - MIN( + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT - - 16 + - MIN ( + 17 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT ALL 83 DIV + 90 * 68 + - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL 83 / + 90 * 68 + - 45 AS col2
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL COALESCE ( + 6, - + COUNT( * ) ) * + 91
----
546

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL COALESCE ( + 6, - + COUNT ( * ) ) * + 91
----
546

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT DISTINCT - 33 * 92 + + + 46, - COUNT( * ) AS col1
----
-2990
-1

skipif mysql # not compatible
query II rowsort label-2347
SELECT DISTINCT - 33 * 92 + + + 46, - COUNT ( * ) AS col1
----
-2990
-1

query I rowsort
SELECT + + 81
----
81

query I rowsort
SELECT + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL + 47 * + 19 - - 75 - - NULLIF ( 89, 75 + SUM( - 4 ) ) - SUM( ALL + 10 ) AS col2
----
1047

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + 47 * + 19 - - 75 - - NULLIF ( 89, 75 + SUM ( - 4 ) ) - SUM ( ALL + 10 ) AS col2
----
1047

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2351
SELECT + NULLIF ( + 44, + 49 * ( + - 94 ) ) * ( + CAST( NULL AS SIGNED ) ) + - 55 AS col2, 55 col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2351
SELECT + NULLIF ( + 44, + 49 * ( + - 94 ) ) * ( + CAST ( NULL AS INTEGER ) ) + - 55 AS col2, 55 col1
----
NULL
55

query I rowsort
SELECT - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT + 54 + ( - 88 ) * + 37 * + COALESCE ( 24, + + 51 * - COALESCE ( - 76, 7, + - 83 ) + 12 - - - COUNT( * ) + + - 23, + 30 + 3 * - - 77 ) AS col2, - 81 * + 4
----
-78090
-324

skipif mysql # not compatible
query II rowsort label-2353
SELECT + 54 + ( - 88 ) * + 37 * + COALESCE ( 24, + + 51 * - COALESCE ( - 76, 7, + - 83 ) + 12 - - - COUNT ( * ) + + - 23, + 30 + 3 * - - 77 ) AS col2, - 81 * + 4
----
-78090
-324

query I rowsort
SELECT + 27
----
27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2356
SELECT + COALESCE ( + MIN( 6 ), - 93 * - 20 DIV - + COALESCE ( + 20, - CASE - - 8 WHEN + 29 THEN 73 * - 15 - 52 ELSE NULL END * - 20 + - 64 - + 71 * + - 95 ) DIV 88 - - 81 ) * - MAX( - 42 ) + - 27 - 81 + - 53 * - + 53 * + 95 * + 56 AS col2
----
14944024

skipif mysql # not compatible
query I rowsort label-2356
SELECT + COALESCE ( + MIN ( 6 ), - 93 * - 20 / - + COALESCE ( + 20, - CASE - - 8 WHEN + 29 THEN 73 * - 15 - 52 ELSE NULL END * - 20 + - 64 - + 71 * + - 95 ) / 88 - - 81 ) * - MAX ( - 42 ) + - 27 - 81 + - 53 * - + 53 * + 95 * + 56 AS col2
----
14944024

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT - + 70 DIV - - 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2357
SELECT - + 70 / - - 52 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2358
SELECT NULLIF ( 0, COUNT( * ) ) DIV + 16 + + 21 * 30 + - 24 AS col0
----
606

skipif mysql # not compatible
query I rowsort label-2358
SELECT NULLIF ( 0, COUNT ( * ) ) / + 16 + + 21 * 30 + - 24 AS col0
----
606

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT DISTINCT 49 * + + 81 * CAST( NULL AS SIGNED ) - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT 49 * + + 81 * CAST ( NULL AS INTEGER ) - 99 AS col2
----
NULL

query I rowsort
SELECT ALL + + 15 * ( - + 0 ) AS col1
----
0

query II rowsort
SELECT ALL 69 * 86 * - 7 AS col1, 45
----
-41538
45

query I rowsort
SELECT + 39 + + 51
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT NULLIF ( + 27, CAST( + - 57 AS SIGNED ) * + + 54 * 86 - - 82 * + 52 + + - 30 + - 31 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-2364
SELECT NULLIF ( + 27, CAST ( + - 57 AS INTEGER ) * + + 54 * 86 - - 82 * + 52 + + - 30 + - 31 ) col1
----
27

query I rowsort
SELECT ALL 62 * + + 62 AS col2
----
3844

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

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

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

query I rowsort
SELECT + 80
----
80

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

query I rowsort
SELECT CASE + + 1 WHEN - - 43 / - 40 THEN + 94 END AS col1
----
NULL

query I rowsort
SELECT + 35
----
35

query I rowsort
SELECT + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT - COUNT( ALL + 79 ) + + + MAX( 67 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2373
SELECT - COUNT ( ALL + 79 ) + + + MAX ( 67 ) AS col1
----
66

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

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

query II rowsort
SELECT ALL - 79 * 98 * - 86 + + 37 - + ( 54 ) + + ( 99 ) AS col2, - 49 AS col0
----
665894
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT SUM( + 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT SUM ( + 11 ) AS col2
----
11

query I rowsort
SELECT - 91 - - 65
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2378
SELECT DISTINCT + 6 + + - 99 + - + 49 * - 4 * + 85 * + - COALESCE ( - - MIN( ALL + + 51 ), + 8 * - 91 * - 51 * - ( + + 44 ) + 9 + + - 56 ) * - COUNT( * ) AS col2, + 6
----
849567
6

skipif mysql # not compatible
query II rowsort label-2378
SELECT DISTINCT + 6 + + - 99 + - + 49 * - 4 * + 85 * + - COALESCE ( - - MIN ( ALL + + 51 ), + 8 * - 91 * - 51 * - ( + + 44 ) + 9 + + - 56 ) * - COUNT ( * ) AS col2, + 6
----
849567
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT - CAST( + + 77 AS SIGNED ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-2379
SELECT - CAST ( + + 77 AS INTEGER ) AS col0
----
-77

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

skipif mysql # not compatible
query I rowsort label-2380
SELECT - COUNT ( * ) / 36
----
0

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

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

query I rowsort
SELECT - 31 + - 10 * - - 37 AS col0
----
-401

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT ALL + 61 * + CAST( 9 AS SIGNED ) * + 72 AS col1
----
39528

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + 61 * + CAST ( 9 AS INTEGER ) * + 72 AS col1
----
39528

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT + + MAX( ALL + ( COALESCE ( + 57, - + 35 ) ) ) - - 56
----
113

skipif mysql # not compatible
query I rowsort label-2386
SELECT + + MAX ( ALL + ( COALESCE ( + 57, - + 35 ) ) ) - - 56
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL - CASE - 60 WHEN 14 THEN NULL WHEN - 50 / 25 THEN + CASE WHEN NOT COUNT( * ) NOT BETWEEN 54 + CASE ( - 74 ) WHEN 13 * 54 * + COUNT( * ) THEN NULL ELSE - 89 + + + 14 END AND 37 THEN COUNT( * ) WHEN NOT + 16 IS NULL THEN NULL ELSE NULL END + - + COUNT( * ) * - 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - CASE - 60 WHEN 14 THEN NULL WHEN - 50 / 25 THEN + CASE WHEN NOT COUNT ( * ) NOT BETWEEN 54 + CASE ( - 74 ) WHEN 13 * 54 * + COUNT ( * ) THEN NULL ELSE - 89 + + + 14 END AND 37 THEN COUNT ( * ) WHEN NOT + 16 IS NULL THEN NULL ELSE NULL END + - + COUNT ( * ) * - 90 ELSE NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( - 13, - COALESCE ( + + 49, + 50, - 67 ) - - 88 )
----
-13

query I rowsort
SELECT ALL - 95 + - + 29 AS col0
----
-124

query I rowsort
SELECT DISTINCT - - 14 * - 46 + ( - - 68 ) + + 49 + - - 67 * + 35 * - 93 AS col0
----
-218612

query II rowsort
SELECT - 58 + + - 36 - + 5 AS col1, 54
----
-99
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT DISTINCT 98 DIV 12 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT 98 / 12 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT SUM( ALL 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2393
SELECT SUM ( ALL 28 ) AS col1
----
28

query II rowsort
SELECT + 86 + + 99 * + 46 AS col0, - 90
----
4640
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL + MIN( DISTINCT - 3 ) / - CAST( NULL AS SIGNED ) * - + 28 / - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL + MIN ( DISTINCT - 3 ) / - CAST ( NULL AS INTEGER ) * - + 28 / - 59 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT - - 54 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT - - 54 / + 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2397
SELECT - COUNT( * ), - 23 + - CAST( + + 19 AS SIGNED ) AS col2
----
-1
-42

skipif mysql # not compatible
query II rowsort label-2397
SELECT - COUNT ( * ), - 23 + - CAST ( + + 19 AS INTEGER ) AS col2
----
-1
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT - COUNT( * ) col2, 85
----
-1
85

skipif mysql # not compatible
query II rowsort label-2398
SELECT - COUNT ( * ) col2, 85
----
-1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + COALESCE ( 33, - 71, COUNT( * ) - 36 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2399
SELECT + COALESCE ( 33, - 71, COUNT ( * ) - 36 ) AS col1
----
33

query I rowsort
SELECT DISTINCT + + 26
----
26

query I rowsort
SELECT + 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL 5 * + MIN( ALL 66 ) * + 74 * + COUNT( ALL CAST( NULL AS SIGNED ) ) * 38 + + COUNT( DISTINCT + - 95 ) + + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL 5 * + MIN ( ALL 66 ) * + 74 * + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 38 + + COUNT ( DISTINCT + - 95 ) + + - 87
----
-86

query I rowsort
SELECT ALL + 8 * 84
----
672

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

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

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

query I rowsort
SELECT DISTINCT - + 67
----
-67

query I rowsort
SELECT 83 * + + 79 AS col1
----
6557

query I rowsort
SELECT 82
----
82

query I rowsort
SELECT 90 AS col0
----
90

query I rowsort
SELECT ALL - 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT NULLIF ( + + COUNT( 93 ), + 6 ) * - 54 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2411
SELECT NULLIF ( + + COUNT ( 93 ), + 6 ) * - 54 AS col2
----
-54

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

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

query I rowsort
SELECT DISTINCT - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT COUNT( * ) + 98
----
99

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT COUNT ( * ) + 98
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT ALL CAST( + 33 AS SIGNED ) + + 81 * + + 23 + - - 2 AS col2
----
1898

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL CAST ( + 33 AS INTEGER ) + + 81 * + + 23 + - - 2 AS col2
----
1898

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

query I rowsort
SELECT ALL - 92 * + 69
----
-6348

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT COUNT( * ) + - 69 * + - 44
----
3037

skipif mysql # not compatible
query I rowsort label-2418
SELECT COUNT ( * ) + - 69 * + - 44
----
3037

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT MAX( DISTINCT 84 ) + + - 93 * + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT MAX ( DISTINCT 84 ) + + - 93 * + COUNT ( * ) AS col2
----
-9

query I rowsort
SELECT - 1 AS col1
----
-1

query I rowsort
SELECT ALL NULLIF ( ( - 23 ), + 74 ) + 62 + + 15 AS col2
----
54

query I rowsort
SELECT 71 AS col1
----
71

query I rowsort
SELECT 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT NULLIF ( + 90, - MAX( ALL - - 44 ) ) * + - 19 * 40 + - SUM( ALL 2 )
----
-68402

skipif mysql # not compatible
query I rowsort label-2424
SELECT NULLIF ( + 90, - MAX ( ALL - - 44 ) ) * + - 19 * 40 + - SUM ( ALL 2 )
----
-68402

query I rowsort
SELECT ALL 11
----
11

query I rowsort
SELECT - 12
----
-12

query I rowsort
SELECT 78 + - 45 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL CASE - 29 WHEN + 25 THEN 26 * NULLIF ( + 35, - - 7 ) + + - 49 WHEN + 82 + - - 9 + - 6 * + 45 * - + 88 / 6 * - + 28 / - NULLIF ( - SUM( ( 51 ) ), - 54 / 29 / 1 + - - 59 ) * 4 THEN 29 WHEN 28 THEN NULL END + + + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL CASE - 29 WHEN + 25 THEN 26 * NULLIF ( + 35, - - 7 ) + + - 49 WHEN + 82 + - - 9 + - 6 * + 45 * - + 88 / 6 * - + 28 / - NULLIF ( - SUM ( ( 51 ) ), - 54 / 29 / 1 + - - 59 ) * 4 THEN 29 WHEN 28 THEN NULL END + + + 0 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL + + 91 + + + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL + + 91 + + + COUNT ( * ) AS col1
----
92

query II rowsort
SELECT 39 * + 61, 58 AS col1
----
2379
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2432
SELECT DISTINCT COALESCE ( 79, + 17 * - 49 * 17, - 94 * 70 ) AS col0, NULLIF ( + + COUNT( * ), - 23 )
----
79
1

skipif mysql # not compatible
query II rowsort label-2432
SELECT DISTINCT COALESCE ( 79, + 17 * - 49 * 17, - 94 * 70 ) AS col0, NULLIF ( + + COUNT ( * ), - 23 )
----
79
1

query I rowsort
SELECT ALL - 98
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT + COUNT( + 72 ) AS col1, 47 + - + 56 + + NULLIF ( - ( - NULLIF ( - + 20, - + 55 + - + 70 ) ), - - COUNT( * ) + - 79 ) col1
----
1
-29

skipif mysql # not compatible
query II rowsort label-2434
SELECT + COUNT ( + 72 ) AS col1, 47 + - + 56 + + NULLIF ( - ( - NULLIF ( - + 20, - + 55 + - + 70 ) ), - - COUNT ( * ) + - 79 ) col1
----
1
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2435
SELECT 1 * + 8, 53 + + - ( + COUNT( * ) ) + + + 48 AS col1
----
8
100

skipif mysql # not compatible
query II rowsort label-2435
SELECT 1 * + 8, 53 + + - ( + COUNT ( * ) ) + + + 48 AS col1
----
8
100

query I rowsort
SELECT ALL + + ( 43 ) * 83
----
3569

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL - 63 - - NULLIF ( 20, 25 + - COUNT( * ) ) * - 75 + - 48 + 89 AS col2
----
-1522

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - 63 - - NULLIF ( 20, 25 + - COUNT ( * ) ) * - 75 + - 48 + 89 AS col2
----
-1522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2438
SELECT 19 * + 99 - - 80 + 89 + + 9 * - 67 * 84 DIV - ( + - COUNT( * ) ) AS col1
----
-48602

skipif mysql # not compatible
query I rowsort label-2438
SELECT 19 * + 99 - - 80 + 89 + + 9 * - 67 * 84 / - ( + - COUNT ( * ) ) AS col1
----
-48602

query I rowsort
SELECT - 55 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT CASE 71 WHEN - - 41 * + 38 THEN + + 45 - - - 95 / - 94 * 58 * + COUNT( * ) END * - 96 + + SUM( + 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT CASE 71 WHEN - - 41 * + 38 THEN + + 45 - - - 95 / - 94 * 58 * + COUNT ( * ) END * - 96 + + SUM ( + 28 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT + 23 - + + MAX( - + 66 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2442
SELECT + 23 - + + MAX ( - + 66 ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT - 92 / + CAST( NULL AS SIGNED ) * + COALESCE ( + + CASE 7 WHEN - 46 * + - 45 THEN 47 ELSE NULL END, 93 * + - 93 + - 99 + + CAST( NULL AS SIGNED ) ) * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT - 92 / + CAST ( NULL AS INTEGER ) * + COALESCE ( + + CASE 7 WHEN - 46 * + - 45 THEN 47 ELSE NULL END, 93 * + - 93 + - 99 + + CAST ( NULL AS INTEGER ) ) * 35
----
NULL

query I rowsort
SELECT 75 col1
----
75

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

query I rowsort
SELECT - - 57
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2447
SELECT DISTINCT - 70 * + 63 col2, 91 * + ( 66 ) / 57 * 51 * - 1 + - + 50 + 66 + - 33 + - + 8 * ( CAST( NULL AS SIGNED ) ) * - + 16 AS col0
----
-4410
NULL

skipif mysql # not compatible
query II rowsort label-2447
SELECT DISTINCT - 70 * + 63 col2, 91 * + ( 66 ) / 57 * 51 * - 1 + - + 50 + 66 + - 33 + - + 8 * ( CAST ( NULL AS INTEGER ) ) * - + 16 AS col0
----
-4410
NULL

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

query I rowsort
SELECT - 59 - + 76
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL + + 44 * + MAX( ( - + 56 ) ) + + 1 AS col2
----
-2463

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + + 44 * + MAX ( ( - + 56 ) ) + + 1 AS col2
----
-2463

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT + 72 - + ( - MAX( + - 20 ) )
----
52

skipif mysql # not compatible
query I rowsort label-2451
SELECT + 72 - + ( - MAX ( + - 20 ) )
----
52

query I rowsort
SELECT ALL - 67
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2453
SELECT ALL COUNT( * ) DIV - 56 * 35
----
0

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL COUNT ( * ) / - 56 * 35
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2455
SELECT ALL - + CASE 35 WHEN + 25 + - 7 THEN + + 35 * - 51 + + 73 * COALESCE ( + + 30, CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 12 END ) + CAST( NULL AS DECIMAL ) + + + 26 WHEN + 69 - - 13 THEN NULL WHEN - 74 * + + 67 * - 76 THEN NULL END AS col0, COUNT( * ) * - COUNT( * ) + + 74 - ( + - 20 )
----
NULL
93

skipif mysql # not compatible
query II rowsort label-2455
SELECT ALL - + CASE 35 WHEN + 25 + - 7 THEN + + 35 * - 51 + + 73 * COALESCE ( + + 30, CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 12 END ) + CAST ( NULL AS REAL ) + + + 26 WHEN + 69 - - 13 THEN NULL WHEN - 74 * + + 67 * - 76 THEN NULL END AS col0, COUNT ( * ) * - COUNT ( * ) + + 74 - ( + - 20 )
----
NULL
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + COALESCE ( 64, + ( + COUNT( * ) ) )
----
64

skipif mysql # not compatible
query I rowsort label-2457
SELECT + COALESCE ( 64, + ( + COUNT ( * ) ) )
----
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2458
SELECT + 39 + - CAST( NULL AS SIGNED ) + CAST( + 90 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT + 39 + - CAST ( NULL AS INTEGER ) + CAST ( + 90 AS REAL ) AS col1
----
NULL

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

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

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

query I rowsort
SELECT 2 + + 53 AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT 96 DIV 33 - - + 29 * + 87 + - 68
----
2457

skipif mysql # not compatible
query I rowsort label-2462
SELECT 96 / 33 - - + 29 * + 87 + - 68
----
2457

query I rowsort
SELECT 30
----
30

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2465
SELECT DISTINCT - 50, + 91 + + COUNT( * ) * + 70 col1
----
-50
161

skipif mysql # not compatible
query II rowsort label-2465
SELECT DISTINCT - 50, + 91 + + COUNT ( * ) * + 70 col1
----
-50
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2466
SELECT ALL + 24 + - COALESCE ( + - 11, - 90 ) * - ( + COUNT( * ) ) DIV - 32 + - 76 + + + 7
----
-45

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + 24 + - COALESCE ( + - 11, - 90 ) * - ( + COUNT ( * ) ) / - 32 + - 76 + + + 7
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL MAX( 8 ) + + - 71 - + MAX( 59 ) * 48
----
-2895

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL MAX ( 8 ) + + - 71 - + MAX ( 59 ) * 48
----
-2895

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

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

query I rowsort
SELECT ALL + 6 + + 27
----
33

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

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

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL - 34 + + - ( - SUM( + 21 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL - 34 + + - ( - SUM ( + 21 ) ) AS col0
----
-13

query I rowsort
SELECT 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT COUNT( * ) * - 30 * 65
----
-1950

skipif mysql # not compatible
query I rowsort label-2475
SELECT COUNT ( * ) * - 30 * 65
----
-1950

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

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

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

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

query I rowsort
SELECT 48 AS col2
----
48

query I rowsort
SELECT 54 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT DISTINCT COUNT( 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT COUNT ( 83 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-2481
SELECT - SUM ( ALL - 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2482
SELECT ALL 66 col1, - CAST( NULL AS SIGNED ) + ( - - 59 ) + AVG ( ALL + + 37 ) AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-2482
SELECT ALL 66 col1, - CAST ( NULL AS INTEGER ) + ( - - 59 ) + AVG ( ALL + + 37 ) AS col0
----
66
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT DISTINCT 25 DIV 1 DIV 12
----
2

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT 25 / 1 / 12
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2484
SELECT 72 DIV COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2484
SELECT 72 / COUNT ( * ) AS col2
----
72

query I rowsort
SELECT ALL 48 * + 71
----
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL 60 * ( - COUNT( * ) * - 63 )
----
3780

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL 60 * ( - COUNT ( * ) * - 63 )
----
3780

query I rowsort
SELECT ALL 75
----
75

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

query I rowsort
SELECT 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT CASE - 96 WHEN - 62 THEN 20 WHEN - COALESCE ( + SUM( + 89 ), - 1 ) * - 26 + ( + 21 ) THEN NULL END + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT CASE - 96 WHEN - 62 THEN 20 WHEN - COALESCE ( + SUM ( + 89 ), - 1 ) * - 26 + ( + 21 ) THEN NULL END + 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT 62 / ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT 62 / ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

query I rowsort
SELECT 3 - 77
----
-74

query I rowsort
SELECT 7 * + 39 AS col0
----
273

query I rowsort
SELECT + ( NULLIF ( - 42, - 50 ) ) + + 3 AS col2
----
-39

query I rowsort
SELECT DISTINCT 40
----
40

query I rowsort
SELECT DISTINCT 17 * + 99
----
1683

query I rowsort
SELECT ALL 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT + MAX( ALL + 87 ) + 53 col0
----
140

skipif mysql # not compatible
query I rowsort label-2499
SELECT + MAX ( ALL + 87 ) + 53 col0
----
140

query I rowsort
SELECT ALL 97
----
97

query I rowsort
SELECT DISTINCT 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL SUM( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL SUM ( 96 )
----
96

query I rowsort
SELECT - 40 + ( 20 ) AS col2
----
-20

query I rowsort
SELECT DISTINCT 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + 10 * + COALESCE ( 56, + ( + 88 ), - MIN( DISTINCT - 46 ) ) AS col0
----
560

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 10 * + COALESCE ( 56, + ( + 88 ), - MIN ( DISTINCT - 46 ) ) AS col0
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT - 16 + - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-2506
SELECT - 16 + - COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - COALESCE ( SUM( - 60 ), ( COUNT( + 26 ) ) * - COUNT( * ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2507
SELECT - COALESCE ( SUM ( - 60 ), ( COUNT ( + 26 ) ) * - COUNT ( * ) ) AS col0
----
60

query I rowsort
SELECT DISTINCT - 91 * 62
----
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL + 30 * NULLIF ( + 62, 98 * - ( + MIN( + 88 ) ) ) + 32
----
1892

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + 30 * NULLIF ( + 62, 98 * - ( + MIN ( + 88 ) ) ) + 32
----
1892

query I rowsort
SELECT + ( - 83 )
----
-83

query I rowsort
SELECT - 80 * 20 AS col2
----
-1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2512
SELECT ALL + COUNT( * ) * ( - 39 DIV 7 ) + 84 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL + COUNT ( * ) * ( - 39 / 7 ) + 84 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL 4 * + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL 4 * + COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL + 53 * 25 + COUNT( * )
----
1326

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + 53 * 25 + COUNT ( * )
----
1326

query I rowsort
SELECT ALL - 87 * 24 + 49
----
-2039

query I rowsort
SELECT COALESCE ( - 75, 7 ) AS col1
----
-75

query I rowsort
SELECT + 89 AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT - 3 DIV + 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2518
SELECT - 3 / + 13 AS col1
----
0

query I rowsort
SELECT 2 * 53 - - 31 AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT - 20 * - COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2520
SELECT - 20 * - COUNT ( * ) AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT ALL - 29 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - 29 / 92
----
0

query I rowsort
SELECT - 32 + - 84 * 67 AS col0
----
-5660

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - COUNT( * ) * + COALESCE ( 81 * - 46, + 64 ) - 28 AS col2
----
3698

skipif mysql # not compatible
query I rowsort label-2523
SELECT - COUNT ( * ) * + COALESCE ( 81 * - 46, + 64 ) - 28 AS col2
----
3698

query I rowsort
SELECT + ( 3 ) * 84
----
252

query I rowsort
SELECT + 99
----
99

query I rowsort
SELECT COALESCE ( 53, - 2 * + 63 + 23 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL + COALESCE ( - COUNT( * ), + 21 * - 52 - + 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + COALESCE ( - COUNT ( * ), + 21 * - 52 - + 56 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL + COUNT( 77 )
----
1

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL + COUNT ( 77 )
----
1

query I rowsort
SELECT ALL + 91
----
91

query I rowsort
SELECT - 60 * 92
----
-5520

query I rowsort
SELECT ALL 72 * CASE - 14 WHEN 0 THEN 25 - + 59 WHEN 23 - - 5 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 78 + - 15
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2533
SELECT DISTINCT COALESCE ( CAST( - 72 AS SIGNED ), + 92, 17 + + 37 * COALESCE ( ( + 32 ) * ( NULLIF ( + 1, - ( + MIN( + 87 ) ) + AVG ( ALL CAST( NULL AS SIGNED ) ) ) * - 2 ), COALESCE ( 44, COUNT( * ), - 36 DIV + 71 ) ) ) * - 1 - - 5
----
77

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT COALESCE ( CAST ( - 72 AS INTEGER ), + 92, 17 + + 37 * COALESCE ( ( + 32 ) * ( NULLIF ( + 1, - ( + MIN ( + 87 ) ) + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) * - 2 ), COALESCE ( 44, COUNT ( * ), - 36 / + 71 ) ) ) * - 1 - - 5
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT + CASE + 45 WHEN ( 85 ) THEN - 86 * COUNT( * ) - + 29 / 91 WHEN - 57 THEN NULL END + SUM( DISTINCT 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT + CASE + 45 WHEN ( 85 ) THEN - 86 * COUNT ( * ) - + 29 / 91 WHEN - 57 THEN NULL END + SUM ( DISTINCT 15 )
----
NULL

query I rowsort
SELECT - ( + 95 )
----
-95

query I rowsort
SELECT ALL - 63 * - ( 61 ) AS col2
----
3843

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + 38 * - NULLIF ( - NULLIF ( 65, - 19 ), COALESCE ( COUNT( * ), - 67 * - 65, + 95 * ( 73 ) ) ) col0
----
2470

skipif mysql # not compatible
query I rowsort label-2537
SELECT + 38 * - NULLIF ( - NULLIF ( 65, - 19 ), COALESCE ( COUNT ( * ), - 67 * - 65, + 95 * ( 73 ) ) ) col0
----
2470

query I rowsort
SELECT - 17 AS col1
----
-17

query I rowsort
SELECT ALL 28
----
28

query I rowsort
SELECT DISTINCT - 20
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2541
SELECT + 73 * CASE 9 * 52 WHEN COALESCE ( 31, - CASE - CASE - 18 WHEN + 88 / + 27 THEN - NULLIF ( 47, - 26 ) - 89 END WHEN + CASE - ( - COUNT( * ) ) WHEN + 61 + + CAST( NULL AS SIGNED ) THEN 96 WHEN + CAST( - 52 AS SIGNED ) * + 94 THEN NULL WHEN 57 THEN NULL ELSE + MIN( ALL + 29 ) END * + 97 THEN + 71 WHEN - ( COUNT( - 65 ) ) * 53 THEN 63 + + 34 END * - 38 + 35, - NULLIF ( + ( 61 ), 66 * 78 ) - + 92 ) THEN ( - 48 ) / - 1 END + - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT + 73 * CASE 9 * 52 WHEN COALESCE ( 31, - CASE - CASE - 18 WHEN + 88 / + 27 THEN - NULLIF ( 47, - 26 ) - 89 END WHEN + CASE - ( - COUNT ( * ) ) WHEN + 61 + + CAST ( NULL AS INTEGER ) THEN 96 WHEN + CAST ( - 52 AS INTEGER ) * + 94 THEN NULL WHEN 57 THEN NULL ELSE + MIN ( ALL + 29 ) END * + 97 THEN + 71 WHEN - ( COUNT ( - 65 ) ) * 53 THEN 63 + + 34 END * - 38 + 35, - NULLIF ( + ( 61 ), 66 * 78 ) - + 92 ) THEN ( - 48 ) / - 1 END + - 61 AS col1
----
NULL

query I rowsort
SELECT - + 92 * 66 AS col0
----
-6072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2543
SELECT ALL - MAX( + ( 73 ) ) DIV 64 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - MAX ( + ( 73 ) ) / 64 AS col0
----
-1

query I rowsort
SELECT DISTINCT 34 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL + COUNT( - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + COUNT ( - 33 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 68 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT + + 42 DIV - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-2547
SELECT + + 42 / - COUNT ( * )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT ALL - COALESCE ( + 43, 89 * + 78 ) + - 91 DIV + 99
----
-43

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - COALESCE ( + 43, 89 * + 78 ) + - 91 / + 99
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT + 41 * COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2549
SELECT + 41 * COUNT ( * ) AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT ALL 11 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL 11 / 96
----
0

query I rowsort
SELECT - 74 AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT - CASE 10 WHEN - MIN( DISTINCT + 70 ) THEN CAST( NULL AS SIGNED ) + - 92 WHEN COUNT( * ) - + 3 THEN + 61 + - 74 * 22 END - + ( COUNT( * ) + - 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT - CASE 10 WHEN - MIN ( DISTINCT + 70 ) THEN CAST ( NULL AS INTEGER ) + - 92 WHEN COUNT ( * ) - + 3 THEN + 61 + - 74 * 22 END - + ( COUNT ( * ) + - 22 ) AS col2
----
NULL

query I rowsort
SELECT - 13 col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT + 68 DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2554
SELECT + 68 / + 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT + COUNT( * ) - 70 * 46 AS col0
----
-3219

skipif mysql # not compatible
query I rowsort label-2555
SELECT + COUNT ( * ) - 70 * 46 AS col0
----
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL + COALESCE ( + 99, MAX( DISTINCT - 29 ) ) + 6 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + COALESCE ( + 99, MAX ( DISTINCT - 29 ) ) + 6 AS col0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL 63 + + COUNT( ALL + 27 )
----
64

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL 63 + + COUNT ( ALL + 27 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT COUNT( * ) + 30
----
31

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT COUNT ( * ) + 30
----
31

query I rowsort
SELECT DISTINCT COALESCE ( - + 81, 55, 18, - 51 + 99 )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT ALL 90 DIV + + 16 + + 35
----
40

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL 90 / + + 16 + + 35
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT + 50 - - - CAST( NULL AS SIGNED ) + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT + 50 - - - CAST ( NULL AS INTEGER ) + 85 AS col0
----
NULL

query I rowsort
SELECT ALL + 73 AS col2
----
73

query I rowsort
SELECT DISTINCT + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT 6 * - CASE - 71 WHEN + 79 + + 50 THEN 10 WHEN 27 THEN NULL END * + COUNT( * ) - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT 6 * - CASE - 71 WHEN + 79 + + 50 THEN 10 WHEN 27 THEN NULL END * + COUNT ( * ) - 90
----
NULL

query I rowsort
SELECT + 38 * + 74
----
2812

query I rowsort
SELECT DISTINCT + 89 AS col2
----
89

query I rowsort
SELECT + 15 + - 68 + + 77 AS col1
----
24

query I rowsort
SELECT + 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL - 43 * COUNT( * ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - 43 * COUNT ( * ) col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT COUNT( * ) * 82 + ( 16 ) DIV 77
----
82

skipif mysql # not compatible
query I rowsort label-2572
SELECT COUNT ( * ) * 82 + ( 16 ) / 77
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - SUM( DISTINCT - 34 ) - 7
----
27

skipif mysql # not compatible
query I rowsort label-2573
SELECT - SUM ( DISTINCT - 34 ) - 7
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT CAST( + CAST( 71 AS SIGNED ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-2574
SELECT CAST ( + CAST ( 71 AS INTEGER ) AS INTEGER )
----
71

query I rowsort
SELECT ALL + ( - 19 )
----
-19

query I rowsort
SELECT + 98 AS col2
----
98

query I rowsort
SELECT ALL NULLIF ( - ( + 65 ), 99 ) * - 22
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT ALL + COALESCE ( CAST( - 24 AS SIGNED ), + 35 * + 82, 26 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL + COALESCE ( CAST ( - 24 AS INTEGER ), + 35 * + 82, 26 ) AS col1
----
-24

query I rowsort
SELECT ALL + 36
----
36

query I rowsort
SELECT - 37 + 42
----
5

query I rowsort
SELECT ALL + 7
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT + 8 * + 98 + - MAX( DISTINCT + 62 )
----
722

skipif mysql # not compatible
query I rowsort label-2583
SELECT + 8 * + 98 + - MAX ( DISTINCT + 62 )
----
722

query I rowsort
SELECT - NULLIF ( 50, 75 ) * + 23
----
-1150

query I rowsort
SELECT - 62 AS col0
----
-62

query I rowsort
SELECT - + 7 * + 76 AS col2
----
-532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2587
SELECT - CAST( - 74 AS SIGNED ) * + 70 + 18
----
5198

skipif mysql # not compatible
query I rowsort label-2587
SELECT - CAST ( - 74 AS INTEGER ) * + 70 + 18
----
5198

query I rowsort
SELECT + 12
----
12

query I rowsort
SELECT 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT - - SUM( DISTINCT 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT - - SUM ( DISTINCT 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL - + 29 * + - 90 * MAX( DISTINCT 35 )
----
91350

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL - + 29 * + - 90 * MAX ( DISTINCT 35 )
----
91350

query I rowsort
SELECT + 3 * 43
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL - COUNT( * ) + - MIN( - 77 ) + 55
----
131

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - COUNT ( * ) + - MIN ( - 77 ) + 55
----
131

query I rowsort
SELECT DISTINCT - 83 AS col2
----
-83

query I rowsort
SELECT 86 + ( 31 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL + - COALESCE ( 35, 32 * 12 ) + + 5 * + MAX( 24 + 19 ) AS col1
----
180

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL + - COALESCE ( 35, 32 * 12 ) + + 5 * + MAX ( 24 + 19 ) AS col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL - CASE - COUNT( * ) WHEN COUNT( * ) + + 76 THEN 81 END * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - CASE - COUNT ( * ) WHEN COUNT ( * ) + + 76 THEN 81 END * 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT - 69 * - 61 * ( SUM( 4 ) ) AS col2
----
16836

skipif mysql # not compatible
query I rowsort label-2598
SELECT - 69 * - 61 * ( SUM ( 4 ) ) AS col2
----
16836

query I rowsort
SELECT 32 + + 43
----
75

query I rowsort
SELECT + 78 + - 96 + - 45
----
-63

query I rowsort
SELECT DISTINCT - - 87 * + 86 AS col0
----
7482

query I rowsort
SELECT ALL + - 25 + + 75
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT 65 + + ( 6 ) + + 26 DIV 47 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2603
SELECT 65 + + ( 6 ) + + 26 / 47 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT COUNT( * ) + - 62 col2
----
-61

skipif mysql # not compatible
query I rowsort label-2604
SELECT COUNT ( * ) + - 62 col2
----
-61

query I rowsort
SELECT CASE + ( - 7 ) WHEN 29 * 33 THEN + 93 END - - 88 AS col2
----
NULL

query I rowsort
SELECT ALL 75 AS col0
----
75

query I rowsort
SELECT - - NULLIF ( + 23, 4 * 2 ) col2
----
23

query I rowsort
SELECT ALL + ( 32 ) AS col1
----
32

query I rowsort
SELECT DISTINCT - + 83 + - NULLIF ( - 86, + 78 )
----
3

query II rowsort
SELECT ALL 17, 80 * 40 AS col2
----
17
3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT 37 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2611
SELECT 37 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL - COUNT( * ) + + 2 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - COUNT ( * ) + + 2 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT ALL + 47 DIV + 95 col0
----
0

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + 47 / + 95 col0
----
0

query I rowsort
SELECT 35 AS col0
----
35

query I rowsort
SELECT NULLIF ( + 40, + + 25 + - 48 ) + 47 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ( + COUNT( DISTINCT - - NULLIF ( + ( - 55 ), - 91 ) ) ) * - 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2616
SELECT ( + COUNT ( DISTINCT - - NULLIF ( + ( - 55 ), - 91 ) ) ) * - 26 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2617
SELECT DISTINCT ( + NULLIF ( + 74, + COUNT( * ) * CAST( 5 AS SIGNED ) ) ) * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT ( + NULLIF ( + 74, + COUNT ( * ) * CAST ( 5 AS INTEGER ) ) ) * COUNT ( * )
----
74

query I rowsort
SELECT ALL 28 AS col1
----
28

query II rowsort
SELECT + 84, + CASE WHEN NOT 14 IS NULL THEN 65 END AS col2
----
84
65

query I rowsort
SELECT ALL - 8
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT - CAST( 30 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT - CAST ( 30 AS INTEGER )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ALL - ( + 42 ) * 97 DIV + 7 + + 70 AS col2
----
-512

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - ( + 42 ) * 97 / + 7 + + 70 AS col2
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT COUNT( 79 ) * - + COUNT( * ) + + 47 * + 38 AS col2
----
1785

skipif mysql # not compatible
query I rowsort label-2623
SELECT COUNT ( 79 ) * - + COUNT ( * ) + + 47 * + 38 AS col2
----
1785

query II rowsort
SELECT DISTINCT - 24 AS col0, NULLIF ( - 85, - 79 ) AS col2
----
-24
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT DISTINCT COALESCE ( 52, 75 / 72 + 79 ) * + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT COALESCE ( 52, 75 / 72 + 79 ) * + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 98 AS col1
----
-98

query I rowsort
SELECT ALL - 36
----
-36

query II rowsort
SELECT + 50 AS col0, - 5 + + 29 AS col2
----
50
24

query I rowsort
SELECT ALL - 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT COUNT( * ) * NULLIF ( + + ( - 88 ), 61 * 47 )
----
-88

skipif mysql # not compatible
query I rowsort label-2630
SELECT COUNT ( * ) * NULLIF ( + + ( - 88 ), 61 * 47 )
----
-88

query I rowsort
SELECT DISTINCT - 14 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-2632
SELECT + 8 AS col2, + ( - ( + 6 ) ) + COUNT( * ) * 61
----
8
55

skipif mysql # not compatible
query II rowsort label-2632
SELECT + 8 AS col2, + ( - ( + 6 ) ) + COUNT ( * ) * 61
----
8
55

query II rowsort
SELECT ALL - 23, - 11 AS col0
----
-23
-11

query I rowsort
SELECT ALL - 26 AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT 97 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-2635
SELECT 97 / 73
----
1

query I rowsort
SELECT CASE + 25 WHEN 8 THEN + 87 WHEN 58 THEN 84 + 90 ELSE NULL END * 81 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2637
SELECT COALESCE ( 19, - + 90 * + 84 ) DIV + 64 - - 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2637
SELECT COALESCE ( 19, - + 90 * + 84 ) / + 64 - - 83 AS col1
----
83

query I rowsort
SELECT + - 32 AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT ALL 43 + + COUNT( * ) + + 56 * + NULLIF ( + 86 - - COUNT( * ), 25 + + 8 * - CAST( NULL AS SIGNED ) )
----
4916

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL 43 + + COUNT ( * ) + + 56 * + NULLIF ( + 86 - - COUNT ( * ), 25 + + 8 * - CAST ( NULL AS INTEGER ) )
----
4916

query II rowsort
SELECT + 52 col2, 63 * 81 * 41 + 46
----
52
209269

query I rowsort
SELECT ALL + + 64 + + 24
----
88

query I rowsort
SELECT + 9 + CASE + 58 WHEN 17 THEN - 9 WHEN ( 91 ) * 53 THEN NULL END * 41 AS col0
----
NULL

query II rowsort
SELECT ALL - - 84, 81 AS col1
----
84
81

query I rowsort
SELECT - 75 AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT ALL - 29 + - 78 + 51 + + 13 DIV + 88 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - 29 + - 78 + 51 + + 13 / + 88 AS col0
----
-56

query I rowsort
SELECT - ( 73 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2647
SELECT CAST( - NULLIF ( - 47, + COUNT( * ) ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-2647
SELECT CAST ( - NULLIF ( - 47, + COUNT ( * ) ) AS INTEGER )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2648
SELECT 80 DIV - CAST( COUNT( * ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-2648
SELECT 80 / - CAST ( COUNT ( * ) AS INTEGER )
----
-80

query I rowsort
SELECT - 59 + 24 + 51 * - CASE - 76 - 35 WHEN + 41 - 28 THEN - 52 * - 73 WHEN + ( 90 ) THEN NULL WHEN 68 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 37 + 87
----
124

query I rowsort
SELECT - - 26
----
26

query I rowsort
SELECT DISTINCT + ( - 76 ) + 83 - + 43 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL - COUNT( ALL + 9 ) + + - 26 * + 10 AS col1
----
-261

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL - COUNT ( ALL + 9 ) + + - 26 * + 10 AS col1
----
-261

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT DISTINCT - COUNT( * ) col2, 23 - + + 75
----
-1
-52

skipif mysql # not compatible
query II rowsort label-2654
SELECT DISTINCT - COUNT ( * ) col2, 23 - + + 75
----
-1
-52

query I rowsort
SELECT ALL 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT NULLIF ( - 99, ( - COUNT( * ) ) ) * - 76 AS col0
----
7524

skipif mysql # not compatible
query I rowsort label-2656
SELECT NULLIF ( - 99, ( - COUNT ( * ) ) ) * - 76 AS col0
----
7524

query I rowsort
SELECT ALL 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT 18 - + 1 - + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-2658
SELECT 18 - + 1 - + COUNT ( * )
----
16

query I rowsort
SELECT - 71 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2660
SELECT ALL + 43 * - + COUNT( * ), + CAST( NULL AS SIGNED ) + - 14 AS col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-2660
SELECT ALL + 43 * - + COUNT ( * ), + CAST ( NULL AS INTEGER ) + - 14 AS col2
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT 27 - - MIN( DISTINCT + 83 )
----
110

skipif mysql # not compatible
query I rowsort label-2661
SELECT 27 - - MIN ( DISTINCT + 83 )
----
110

query I rowsort
SELECT 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT 37 + - ( COUNT( * ) ) * + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2663
SELECT 37 + - ( COUNT ( * ) ) * + COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL COUNT( ALL 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL COUNT ( ALL 73 ) AS col1
----
1

query I rowsort
SELECT ALL 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT 62 - - MAX( ALL ( + ( + 18 ) ) ) + 12 * - 78 AS col1
----
-856

skipif mysql # not compatible
query I rowsort label-2666
SELECT 62 - - MAX ( ALL ( + ( + 18 ) ) ) + 12 * - 78 AS col1
----
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2668
SELECT CASE + CAST( NULL AS SIGNED ) WHEN 41 + - 21 THEN 48 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN 41 + - 21 THEN 48 END - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2669
SELECT 43 DIV 90, 37 AS col1
----
0
37

skipif mysql # not compatible
query II rowsort label-2669
SELECT 43 / 90, 37 AS col1
----
0
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT DISTINCT + 98 DIV 23
----
4

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + 98 / 23
----
4

query I rowsort
SELECT + 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT MAX( ALL 78 ) * - + NULLIF ( 72, 0 * - 68 ) * 71 + - 47 * ( + 47 + - MIN( - 60 ) ) AS col0
----
-403765

skipif mysql # not compatible
query I rowsort label-2672
SELECT MAX ( ALL 78 ) * - + NULLIF ( 72, 0 * - 68 ) * 71 + - 47 * ( + 47 + - MIN ( - 60 ) ) AS col0
----
-403765

query I rowsort
SELECT ALL 96 * + 57 * - 22
----
-120384

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2674
SELECT 62 + + - CASE + - COUNT( * ) WHEN - 8 THEN - 78 WHEN - 49 * MIN( DISTINCT COALESCE ( - ( CAST( NULL AS DECIMAL ) ), - 18, ( 20 ) ) / + 54 ) THEN NULL ELSE - 28 / CASE 82 WHEN 6 THEN CASE WHEN NOT 53 <> ( 95 * + 77 + + 57 ) THEN NULL ELSE COUNT( * ) END - 4 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT 62 + + - CASE + - COUNT ( * ) WHEN - 8 THEN - 78 WHEN - 49 * MIN ( DISTINCT COALESCE ( - ( CAST ( NULL AS REAL ) ), - 18, ( 20 ) ) / + 54 ) THEN NULL ELSE - 28 / CASE 82 WHEN 6 THEN CASE WHEN NOT 53 <> ( 95 * + 77 + + 57 ) THEN NULL ELSE COUNT ( * ) END - 4 END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT - 19 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT - 19 / - 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT + ( + 10 ) * + - COALESCE ( + - 30, 47 + - 74 ) + + 72 DIV + ( - ( - 27 ) * 35 ) AS col2
----
300

skipif mysql # not compatible
query I rowsort label-2676
SELECT + ( + 10 ) * + - COALESCE ( + - 30, 47 + - 74 ) + + 72 / + ( - ( - 27 ) * 35 ) AS col2
----
300

query I rowsort
SELECT + 84 - 68
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL 89 * - COUNT( * ) * - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL 89 * - COUNT ( * ) * - COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT + CASE - - 39 WHEN + COUNT( * ) / 4 + + 27 THEN NULL ELSE 92 END * 27 AS col1
----
2484

skipif mysql # not compatible
query I rowsort label-2679
SELECT + CASE - - 39 WHEN + COUNT ( * ) / 4 + + 27 THEN NULL ELSE 92 END * 27 AS col1
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT + 57 * + - MIN( DISTINCT - 22 ) + + 51
----
1305

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + 57 * + - MIN ( DISTINCT - 22 ) + + 51
----
1305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT ALL + 75 * - + 26 + COUNT( ALL 50 ) * CAST( 35 AS SIGNED ) + 7 AS col0
----
-1908

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + 75 * - + 26 + COUNT ( ALL 50 ) * CAST ( 35 AS INTEGER ) + 7 AS col0
----
-1908

query I rowsort
SELECT ALL - 39 * + 95 + - 34 AS col2
----
-3739

query I rowsort
SELECT + 58 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL + 24 * COUNT( ALL - 16 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + 24 * COUNT ( ALL - 16 ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT DISTINCT + CASE + + 54 WHEN - CAST( NULL AS SIGNED ) + + 93 * - 72 THEN - CAST( NULL AS SIGNED ) / 43 + - 90 ELSE NULL END * + SUM( + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT + CASE + + 54 WHEN - CAST ( NULL AS INTEGER ) + + 93 * - 72 THEN - CAST ( NULL AS INTEGER ) / 43 + - 90 ELSE NULL END * + SUM ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL - + 99 * - 82 * 65 + - COUNT( * ) + + 75 * COUNT( * ) * + 33 AS col2
----
530144

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - + 99 * - 82 * 65 + - COUNT ( * ) + + 75 * COUNT ( * ) * + 33 AS col2
----
530144

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + SUM( DISTINCT 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2688
SELECT + SUM ( DISTINCT 29 ) AS col2
----
29

query I rowsort
SELECT 98 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2690
SELECT + COUNT( * ) * + - CASE COALESCE ( - 65, 54, + 58 ) WHEN ( AVG ( + 25 ) ) THEN - 24 END + - CAST( 15 AS DECIMAL ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT + COUNT ( * ) * + - CASE COALESCE ( - 65, 54, + 58 ) WHEN ( AVG ( + 25 ) ) THEN - 24 END + - CAST ( 15 AS REAL ) * 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + SUM( - ( - ( + 61 ) ) ) + 79
----
140

skipif mysql # not compatible
query I rowsort label-2693
SELECT + SUM ( - ( - ( + 61 ) ) ) + 79
----
140

query I rowsort
SELECT + 76 AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT ALL 17 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL 17 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2696
SELECT + 87 + + 10 + 98 + - COUNT( * ) - + 34 DIV - 38
----
194

skipif mysql # not compatible
query I rowsort label-2696
SELECT + 87 + + 10 + 98 + - COUNT ( * ) - + 34 / - 38
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-2697
SELECT ALL 57 DIV + 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL 57 / + 18 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2698
SELECT ALL 61 - 55 * - MIN( - + CAST( 12 AS SIGNED ) ) * 76 AS col0
----
-50099

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL 61 - 55 * - MIN ( - + CAST ( 12 AS INTEGER ) ) * 76 AS col0
----
-50099

query I rowsort
SELECT DISTINCT - 15 AS col0
----
-15

query I rowsort
SELECT ALL - 48 * + 16 AS col1
----
-768

query I rowsort
SELECT DISTINCT + 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT - MAX( DISTINCT + + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2702
SELECT - MAX ( DISTINCT + + 98 )
----
-98

query I rowsort
SELECT ALL 10
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT - + 87 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT - + 87 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT + 15 + + - 21 - 95 / + + CAST( NULL AS SIGNED ) * - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT + 15 + + - 21 - 95 / + + CAST ( NULL AS INTEGER ) * - 24 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT - 21 - - 66 + - CAST( - + 25 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-2706
SELECT - 21 - - 66 + - CAST ( - + 25 AS INTEGER ) AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2707
SELECT DISTINCT - 2 DIV - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - 2 / - COUNT ( * )
----
2

query I rowsort
SELECT + 92 + 67 AS col0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT ALL - 84 DIV 54
----
-1

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - 84 / 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT - 68 * COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-2710
SELECT - 68 * COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT ALL 74 DIV ( - + ( COUNT( * ) ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL 74 / ( - + ( COUNT ( * ) ) ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT DISTINCT COUNT( - - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT COUNT ( - - 76 ) AS col1
----
1

query I rowsort
SELECT ALL + 12 * - + 70 * 48 AS col2
----
-40320

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL COUNT( ALL - 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL COUNT ( ALL - 50 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2715
SELECT + COUNT( * ) * + + 33 DIV + COUNT( * ) col1, - 73 AS col0
----
33
-73

skipif mysql # not compatible
query II rowsort label-2715
SELECT + COUNT ( * ) * + + 33 / + COUNT ( * ) col1, - 73 AS col0
----
33
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2716
SELECT - CAST( NULL AS SIGNED ) + CAST( CAST( 8 AS SIGNED ) AS DECIMAL ) + COUNT( * ) * 61 * ( - ( - 25 ) + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT - CAST ( NULL AS INTEGER ) + CAST ( CAST ( 8 AS INTEGER ) AS REAL ) + COUNT ( * ) * 61 * ( - ( - 25 ) + 65 )
----
NULL

query I rowsort
SELECT ALL + 12 * + 28
----
336

query I rowsort
SELECT 3 AS col2
----
3

query I rowsort
SELECT 38 AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT 40, COUNT( * ) AS col2
----
40
1

skipif mysql # not compatible
query II rowsort label-2720
SELECT 40, COUNT ( * ) AS col2
----
40
1

query I rowsort
SELECT DISTINCT + 94 * - 8
----
-752

query I rowsort
SELECT ALL ( + 62 )
----
62

query I rowsort
SELECT - 78 * 61 AS col1
----
-4758

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2724
SELECT ALL 39 DIV + - 26 + + 11 + ( + 75 ) + - 91 * NULLIF ( 71 DIV 44, - ( - CASE + 69 WHEN CAST( ( CAST( + 49 AS SIGNED ) ) AS DECIMAL ) THEN 32 * 14 + - 71 END ) + ( + AVG ( - 71 ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL 39 / + - 26 + + 11 + ( + 75 ) + - 91 * NULLIF ( 71 / 44, - ( - CASE + 69 WHEN CAST ( ( CAST ( + 49 AS INTEGER ) ) AS REAL ) THEN 32 * 14 + - 71 END ) + ( + AVG ( - 71 ) ) )
----
-6

query I rowsort
SELECT + 6 AS col1
----
6

query I rowsort
SELECT DISTINCT + 19
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2727
SELECT ALL - COUNT( * ) DIV 19 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL - COUNT ( * ) / 19 + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL + + 39 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2729
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + + 26 + + - 31 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + + 26 + + - 31 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2730
SELECT DISTINCT 81 DIV + + COUNT( * ) + - + ( + MIN( DISTINCT + + COALESCE ( 58, - 10, + 22 ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT 81 / + + COUNT ( * ) + - + ( + MIN ( DISTINCT + + COALESCE ( 58, - 10, + 22 ) ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT - ( + + COUNT( * ) ) * - - 61 + - + 5 + + 42 + 5
----
-19

skipif mysql # not compatible
query I rowsort label-2731
SELECT - ( + + COUNT ( * ) ) * - - 61 + - + 5 + + 42 + 5
----
-19

query I rowsort
SELECT DISTINCT + ( ( ( - 10 ) ) ) * + - 84 + + 81
----
921

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT - 35 * - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2733
SELECT - 35 * - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT 26
----
26

query I rowsort
SELECT ALL 88 * + 2 * + CASE + 39 WHEN - ( + 39 ) + 56 * + 10 THEN + 50 / - 60 + - 13 END AS col2
----
NULL

query I rowsort
SELECT + 21
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT - 62 - - 12 + + 38 DIV + - 57
----
-50

skipif mysql # not compatible
query I rowsort label-2737
SELECT - 62 - - 12 + + 38 / + - 57
----
-50

query II rowsort
SELECT ALL - 27 * + 83 - 46, 98 AS col2
----
-2287
98

query I rowsort
SELECT DISTINCT + 98 * + + 53 - + - 16 AS col1
----
5210

query I rowsort
SELECT DISTINCT - 10 * + 33
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2741
SELECT ALL + MAX( 54 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + MAX ( 54 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + 94 + + ( + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 94 + + ( + COUNT ( * ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT + MIN( DISTINCT 95 )
----
95

skipif mysql # not compatible
query I rowsort label-2743
SELECT + MIN ( DISTINCT 95 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT ALL + CAST( 67 AS SIGNED ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + CAST ( 67 AS INTEGER ) AS col0
----
67

query I rowsort
SELECT DISTINCT + + 73
----
73

query I rowsort
SELECT ALL + 30 AS col2
----
30

query I rowsort
SELECT ALL + 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL + - 74 * + ( + COUNT( * ) ) - - ( + 47 )
----
-27

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + - 74 * + ( + COUNT ( * ) ) - - ( + 47 )
----
-27

query I rowsort
SELECT - 5 AS col1
----
-5

query I rowsort
SELECT + 21 * - 10 + - - 74 - - 10
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL NULLIF ( - - COUNT( * ), ( - ( - 52 ) ) * + ( 4 * - 53 ) ) * + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL NULLIF ( - - COUNT ( * ), ( - ( - 52 ) ) * + ( 4 * - 53 ) ) * + 35 AS col2
----
35

query I rowsort
SELECT ALL 67 col1
----
67

query I rowsort
SELECT - ( - 51 ) AS col1
----
51

query I rowsort
SELECT DISTINCT 73 col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL 50 * 58 * + ( - COUNT( * ) ) AS col2
----
-2900

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL 50 * 58 * + ( - COUNT ( * ) ) AS col2
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT MAX( DISTINCT - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-2756
SELECT MAX ( DISTINCT - 54 )
----
-54

query I rowsort
SELECT DISTINCT 85 + - 50 * 29 AS col2
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2758
SELECT - ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT + 8 DIV - - 58
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT + 8 / - - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT - COUNT( * ) * ( - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2760
SELECT - COUNT ( * ) * ( - - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2761
SELECT ALL 20 + CAST( NULL AS SIGNED ) AS col2, + 32 DIV - + 81
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2761
SELECT ALL 20 + CAST ( NULL AS INTEGER ) AS col2, + 32 / - + 81
----
NULL
0

query I rowsort
SELECT + 26 - + 11 AS col0
----
15

query II rowsort
SELECT - 38 AS col1, - 74 AS col0
----
-38
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2764
SELECT CAST( - MAX( + 76 ) AS SIGNED ) + - - 29
----
-47

skipif mysql # not compatible
query I rowsort label-2764
SELECT CAST ( - MAX ( + 76 ) AS INTEGER ) + - - 29
----
-47

query I rowsort
SELECT - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL - 53 + - 2 + + + 35 + + COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - 53 + - 2 + + + 35 + + COUNT ( * ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT SUM( + 93 ) + + - 57 + + 19
----
55

skipif mysql # not compatible
query I rowsort label-2767
SELECT SUM ( + 93 ) + + - 57 + + 19
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT ALL 84 + - 65 * 35 DIV + + 34 col2
----
18

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL 84 + - 65 * 35 / + + 34 col2
----
18

query I rowsort
SELECT DISTINCT 99
----
99

query I rowsort
SELECT 81 + + + 68
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL - COUNT( + 57 ) + - 6 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - COUNT ( + 57 ) + - 6 AS col2
----
-7

query I rowsort
SELECT - 4 AS col2
----
-4

query I rowsort
SELECT ALL 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT 97 - - 40 + - 0 - - MIN( ALL + 48 ) * + 9 * + 61 * 22 AS col1
----
579881

skipif mysql # not compatible
query I rowsort label-2774
SELECT 97 - - 40 + - 0 - - MIN ( ALL + 48 ) * + 9 * + 61 * 22 AS col1
----
579881

query I rowsort
SELECT ALL 60 AS col0
----
60

query I rowsort
SELECT DISTINCT + 36 + 25
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL - 82 + COUNT( + 32 )
----
-81

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - 82 + COUNT ( + 32 )
----
-81

query I rowsort
SELECT + 42 AS col2
----
42

query II rowsort
SELECT 47 AS col2, + 23 + - 85 AS col2
----
47
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT - MIN( DISTINCT 99 ) * ( 39 ) + - 5 + - - 71 + 10
----
-3785

skipif mysql # not compatible
query I rowsort label-2780
SELECT - MIN ( DISTINCT 99 ) * ( 39 ) + - 5 + - - 71 + 10
----
-3785

query II rowsort
SELECT ALL + + 91 + 91 AS col0, + 28
----
182
28

query I rowsort
SELECT + 4 AS col2
----
4

query I rowsort
SELECT ALL - 96 AS col0
----
-96

query I rowsort
SELECT 55 + - 41 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT ALL - COALESCE ( + NULLIF ( - COUNT( * ), - - 81 DIV - - 9 ), - - COUNT( * ) * - 99 + 88, + 62 DIV COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - COALESCE ( + NULLIF ( - COUNT ( * ), - - 81 / - - 9 ), - - COUNT ( * ) * - 99 + 88, + 62 / COUNT ( * ) ) AS col2
----
1

query II rowsort
SELECT 84 AS col1, 40 - - 48 AS col0
----
84
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT ALL - 72 - - 20 DIV - 90 + + + 58 * - COUNT( * ) AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - 72 - - 20 / - 90 + + + 58 * - COUNT ( * ) AS col0
----
-130

query I rowsort
SELECT DISTINCT - 14 * - 44 AS col0
----
616

query I rowsort
SELECT DISTINCT - - 95 AS col2
----
95

query I rowsort
SELECT DISTINCT - + 43
----
-43

query I rowsort
SELECT 2
----
2

query I rowsort
SELECT ALL - 11
----
-11

query I rowsort
SELECT + - 55 col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2794
SELECT ALL - - 11 DIV + - 87 + - 20 DIV 37 DIV + + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - - 11 / + - 87 + - 20 / 37 / + + 26 AS col0
----
0

query I rowsort
SELECT - 36 * 8 * + 8
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT 1 * + COUNT( * ) * - ( - - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2796
SELECT 1 * + COUNT ( * ) * - ( - - 12 ) AS col0
----
-12

query I rowsort
SELECT ALL - - 79 AS col2
----
79

query I rowsort
SELECT + - 4
----
-4

query I rowsort
SELECT + CASE 35 WHEN + 52 * - 97 THEN NULL WHEN 87 THEN + 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT - 90 * - 6 * - 43 * + - 94 * 6 + - 67 + + COUNT( * ) + 93 * - 57 AS col1
----
13090713

skipif mysql # not compatible
query I rowsort label-2800
SELECT - 90 * - 6 * - 43 * + - 94 * 6 + - 67 + + COUNT ( * ) + 93 * - 57 AS col1
----
13090713

onlyif mysql # aggregate syntax: 
query II rowsort label-2801
SELECT COUNT( * ), 88 * - 6 AS col0
----
1
-528

skipif mysql # not compatible
query II rowsort label-2801
SELECT COUNT ( * ), 88 * - 6 AS col0
----
1
-528

query I rowsort
SELECT ALL + 65 * - 91 + + 62 AS col2
----
-5853

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT DISTINCT COUNT( * ) * 66
----
66

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT COUNT ( * ) * 66
----
66

query I rowsort
SELECT DISTINCT + + 69 * - 83 AS col0
----
-5727

query I rowsort
SELECT ALL - 17 AS col0
----
-17

query I rowsort
SELECT ALL - 21
----
-21

query I rowsort
SELECT 58
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2808
SELECT ALL 33 + 64 AS col1, + ( - 4 ) * COUNT( * ) * - ( AVG ( 0 ) ) / + CAST( NULL AS DECIMAL ) col0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-2808
SELECT ALL 33 + 64 AS col1, + ( - 4 ) * COUNT ( * ) * - ( AVG ( 0 ) ) / + CAST ( NULL AS REAL ) col0
----
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT 48 * 88 + + + CAST( NULL AS SIGNED ) * + ( + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT 48 * 88 + + + CAST ( NULL AS INTEGER ) * + ( + 15 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 12 + + - 94 AS col2
----
-106

query I rowsort
SELECT ALL 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT CASE 50 WHEN - 78 THEN + 16 * + - MIN( ALL 51 ) END + + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT CASE 50 WHEN - 78 THEN + 16 * + - MIN ( ALL 51 ) END + + 58 AS col2
----
NULL

query I rowsort
SELECT - 33 AS col1
----
-33

query I rowsort
SELECT 91 + - 64 col0
----
27

query I rowsort
SELECT 62 + - 24 AS col2
----
38

query I rowsort
SELECT ALL + 49 + 23 + 57 AS col0
----
129

query I rowsort
SELECT DISTINCT 94
----
94

query I rowsort
SELECT ALL 66 + - + 70 + - 91
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT SUM( + 52 ) * - 96 * - + 1 * - 68
----
-339456

skipif mysql # not compatible
query I rowsort label-2819
SELECT SUM ( + 52 ) * - 96 * - + 1 * - 68
----
-339456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT DISTINCT 78 DIV - - 11 DIV - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT 78 / - - 11 / - + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT 96 + + 68 + - COUNT( * ) * 52
----
112

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT 96 + + 68 + - COUNT ( * ) * 52
----
112

query I rowsort
SELECT ALL 4 AS col1
----
4

query I rowsort
SELECT ALL 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT NULLIF ( + CASE + + 31 WHEN + 96 * ( + - COUNT( * ) ) THEN + - 87 * 41 + - 92 * - 62 ELSE NULL END, 66 ) + + ( 89 ) * MAX( + 62 * + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT NULLIF ( + CASE + + 31 WHEN + 96 * ( + - COUNT ( * ) ) THEN + - 87 * 41 + - 92 * - 62 ELSE NULL END, 66 ) + + ( 89 ) * MAX ( + 62 * + 65 ) AS col0
----
NULL

query I rowsort
SELECT ALL 31 + + - ( 64 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT 16 + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-2826
SELECT 16 + - COUNT ( * )
----
15

query I rowsort
SELECT DISTINCT 63 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2828
SELECT ALL CAST( 90 AS SIGNED ), - COUNT( * ) col0
----
90
-1

skipif mysql # not compatible
query II rowsort label-2828
SELECT ALL CAST ( 90 AS INTEGER ), - COUNT ( * ) col0
----
90
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2829
SELECT + 17 DIV + 78 * - COALESCE ( - 84, 1, - CAST( NULL AS SIGNED ) ) * - ( 23 ) + 6
----
6

skipif mysql # not compatible
query I rowsort label-2829
SELECT + 17 / + 78 * - COALESCE ( - 84, 1, - CAST ( NULL AS INTEGER ) ) * - ( 23 ) + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT + 87 * - - COUNT( + 46 )
----
87

skipif mysql # not compatible
query I rowsort label-2830
SELECT + 87 * - - COUNT ( + 46 )
----
87

query I rowsort
SELECT - 26 + + 57 AS col1
----
31

query I rowsort
SELECT 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL + - COUNT( * ) * 12 * - 8 * 19 - - + 39
----
1863

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL + - COUNT ( * ) * 12 * - 8 * 19 - - + 39
----
1863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2835
SELECT ALL COUNT( * ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL COUNT ( * ) / + 93
----
0

query I rowsort
SELECT ALL - - 28 AS col1
----
28

query I rowsort
SELECT DISTINCT - ( + ( 24 ) ) AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2838
SELECT ALL - 30 * + - ( - + 56 ) * - - SUM( DISTINCT - 61 ) * + 70 - - 87 + COUNT( * ) DIV NULLIF ( - COUNT( * ), 21 )
----
7173686

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - 30 * + - ( - + 56 ) * - - SUM ( DISTINCT - 61 ) * + 70 - - 87 + COUNT ( * ) / NULLIF ( - COUNT ( * ), 21 )
----
7173686

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT 24 * 12 + 97 + + 77 DIV - + ( + 36 )
----
383

skipif mysql # not compatible
query I rowsort label-2839
SELECT 24 * 12 + 97 + + 77 / - + ( + 36 )
----
383

query I rowsort
SELECT DISTINCT - 67
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL - - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 61 AS col1
----
61

query I rowsort
SELECT - + 11 * - - 75 + + 67 AS col2
----
-758

query I rowsort
SELECT + 84 col2
----
84

query I rowsort
SELECT + 33 * + - 80
----
-2640

query I rowsort
SELECT + 3 * + - NULLIF ( - 9, - 60 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT - 88 * - 23 - - COALESCE ( - - 90, - COUNT( * ) ) AS col0
----
2114

skipif mysql # not compatible
query I rowsort label-2847
SELECT - 88 * - 23 - - COALESCE ( - - 90, - COUNT ( * ) ) AS col0
----
2114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT + CAST( - + 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-2848
SELECT + CAST ( - + 49 AS INTEGER )
----
-49

query I rowsort
SELECT + - 49 col2
----
-49

query I rowsort
SELECT + 60 - + 6
----
54

query I rowsort
SELECT ALL - 25 * + ( + 23 ) * + - 50
----
28750

query I rowsort
SELECT ALL - - 0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2853
SELECT ALL 39 + ( + 48 ) AS col2, - 30 + - COUNT( * ), + 77 AS col1
----
87
-31
77

skipif mysql # not compatible
query III rowsort label-2853
SELECT ALL 39 + ( + 48 ) AS col2, - 30 + - COUNT ( * ), + 77 AS col1
----
87
-31
77

query I rowsort
SELECT DISTINCT - + 18 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2855
SELECT DISTINCT + 75 + 56 AS col2, + COUNT( * ) AS col2
----
131
1

skipif mysql # not compatible
query II rowsort label-2855
SELECT DISTINCT + 75 + 56 AS col2, + COUNT ( * ) AS col2
----
131
1

query I rowsort
SELECT DISTINCT - 98 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT 72 * MIN( DISTINCT + 20 ) AS col2
----
1440

skipif mysql # not compatible
query I rowsort label-2857
SELECT 72 * MIN ( DISTINCT + 20 ) AS col2
----
1440

query I rowsort
SELECT DISTINCT + 71 + + 55
----
126

query II rowsort
SELECT 13 AS col0, 99
----
13
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2860
SELECT 48 col2, + COUNT( * ) * CAST( NULL AS SIGNED )
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2860
SELECT 48 col2, + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
48
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT ALL + 53 + + - ( + + 38 ) DIV + 41 - - - 27 - - - NULLIF ( - 99, 61 * - 99 + 18 DIV + 83 ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL + 53 + + - ( + + 38 ) / + 41 - - - 27 - - - NULLIF ( - 99, 61 * - 99 + 18 / + 83 ) AS col0
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) * - AVG ( DISTINCT + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - AVG ( DISTINCT + 66 )
----
NULL

query I rowsort
SELECT 56
----
56

query I rowsort
SELECT - 79 * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - MAX( ALL 20 ) + - + ( - + COUNT( - - 46 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - MAX ( ALL 20 ) + - + ( - + COUNT ( - - 46 ) )
----
-19

query II rowsort
SELECT - 88 col0, + 64 AS col0
----
-88
64

query I rowsort
SELECT ALL + 54 + 75 AS col2
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2868
SELECT - CAST( + 19 AS SIGNED ) - + - COUNT( * ) * + 38
----
19

skipif mysql # not compatible
query I rowsort label-2868
SELECT - CAST ( + 19 AS INTEGER ) - + - COUNT ( * ) * + 38
----
19

query I rowsort
SELECT DISTINCT 93 AS col2
----
93

query I rowsort
SELECT ALL - 81 * + + 73 * - 72
----
425736

query I rowsort
SELECT - ( + 84 ) + 49 * - + 1 AS col1
----
-133

query I rowsort
SELECT ALL - 18 - + - 33 * + 30 AS col2
----
972

query I rowsort
SELECT - 2 AS col2
----
-2

query I rowsort
SELECT - NULLIF ( 3, + 38 ) + - - ( 31 ) col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + 19 * - - 20 * MAX( DISTINCT + - 58 ) col1
----
-22040

skipif mysql # not compatible
query I rowsort label-2875
SELECT + 19 * - - 20 * MAX ( DISTINCT + - 58 ) col1
----
-22040

query I rowsort
SELECT DISTINCT 58 AS col0
----
58

query I rowsort
SELECT ALL 10 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT - 89 + + + ( SUM( ALL - + 49 ) ) AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-2878
SELECT - 89 + + + ( SUM ( ALL - + 49 ) ) AS col2
----
-138

query I rowsort
SELECT + 15 + - 91 + - 8
----
-84

query I rowsort
SELECT ALL 54 * 86
----
4644

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + 24 * - 75 * 65 * + NULLIF ( - 6, COUNT( * ) + 52 ) * - - 45 AS col0
----
31590000

skipif mysql # not compatible
query I rowsort label-2881
SELECT + 24 * - 75 * 65 * + NULLIF ( - 6, COUNT ( * ) + 52 ) * - - 45 AS col0
----
31590000

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT DISTINCT - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - - NULLIF ( + 40, AVG ( DISTINCT - 31 ) )
----
40

query I rowsort
SELECT DISTINCT - 3 AS col0
----
-3

query I rowsort
SELECT DISTINCT + 90
----
90

query I rowsort
SELECT ALL + 64 * 6 AS col2
----
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT - + ( + CASE + 88 WHEN - 97 THEN 41 ELSE + 71 END ) + - CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2887
SELECT - + ( + CASE + 88 WHEN - 97 THEN 41 ELSE + 71 END ) + - CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT + + 95 + + - 77 col0
----
18

query I rowsort
SELECT ALL + + 34 AS col1
----
34

query I rowsort
SELECT + 12 AS col0
----
12

query I rowsort
SELECT DISTINCT + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT CASE + AVG ( + 23 ) WHEN + 61 + - + 77 + + 71 * - + COUNT( + + ( + 19 ) ) / - 18 * - 82 THEN NULL ELSE 43 + 21 END AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2892
SELECT CASE + AVG ( + 23 ) WHEN + 61 + - + 77 + + 71 * - + COUNT ( + + ( + 19 ) ) / - 18 * - 82 THEN NULL ELSE 43 + 21 END AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT + ( + ( - 40 ) ) / - + 24 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT + ( + ( - 40 ) ) / - + 24 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 57 AS col0
----
-57

query I rowsort
SELECT ALL + 43 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + 31 + - + COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-2896
SELECT + 31 + - + COUNT ( * ) col0
----
30

query I rowsort
SELECT + + 31
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2898
SELECT ALL + 63 * - COUNT( + 29 ) + + 8 + + CAST( NULL AS SIGNED ) / + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + 63 * - COUNT ( + 29 ) + + 8 + + CAST ( NULL AS INTEGER ) / + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT ALL - NULLIF ( - 84, - 57 * 96 ) * + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - NULLIF ( - 84, - 57 * 96 ) * + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 26 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2900
SELECT + COUNT( * ), COALESCE ( + - 96, - + 80 + + 44 + - - CAST( NULL AS SIGNED ) ) col1
----
1
-96

skipif mysql # not compatible
query II rowsort label-2900
SELECT + COUNT ( * ), COALESCE ( + - 96, - + 80 + + 44 + - - CAST ( NULL AS INTEGER ) ) col1
----
1
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL - 99 * + COUNT( * ) + - 13 * 69 col2
----
-996

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - 99 * + COUNT ( * ) + - 13 * 69 col2
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT DISTINCT + 84 * - - 98 + COUNT( * ) * + 3 AS col0
----
8235

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT + 84 * - - 98 + COUNT ( * ) * + 3 AS col0
----
8235

query I rowsort
SELECT ALL + + 50 AS col2
----
50

query I rowsort
SELECT + - 82 + 69 * + 29 AS col0
----
1919

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2905
SELECT - CAST( NULL AS DECIMAL ) AS col2, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2905
SELECT - CAST ( NULL AS REAL ) AS col2, 41
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT - CASE - + 42 WHEN 49 / - + COALESCE ( - 70, + NULLIF ( MIN( ALL 4 ), + - 70 ), - NULLIF ( 8, 97 ) ) THEN COUNT( * ) / - 1 WHEN + 52 THEN NULL ELSE NULL END + NULLIF ( - 73, 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT - CASE - + 42 WHEN 49 / - + COALESCE ( - 70, + NULLIF ( MIN ( ALL 4 ), + - 70 ), - NULLIF ( 8, 97 ) ) THEN COUNT ( * ) / - 1 WHEN + 52 THEN NULL ELSE NULL END + NULLIF ( - 73, 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT + CASE 21 WHEN 27 / - + 75 THEN COUNT( + + ( 89 ) ) ELSE - - COUNT( * ) + - 5 END AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2907
SELECT + CASE 21 WHEN 27 / - + 75 THEN COUNT ( + + ( 89 ) ) ELSE - - COUNT ( * ) + - 5 END AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT COALESCE ( - 49, + + 10 * 58 * + 42 * + 75 * + COUNT( DISTINCT 57 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-2908
SELECT COALESCE ( - 49, + + 10 * 58 * + 42 * + 75 * + COUNT ( DISTINCT 57 ) )
----
-49

onlyif mysql # aggregate syntax: 
query III rowsort label-2909
SELECT + 24 * COUNT( * ) + - - MIN( DISTINCT - 59 ), 46 AS col1, + 39 AS col2
----
-35
46
39

skipif mysql # not compatible
query III rowsort label-2909
SELECT + 24 * COUNT ( * ) + - - MIN ( DISTINCT - 59 ), 46 AS col1, + 39 AS col2
----
-35
46
39

query I rowsort
SELECT + 21 col0
----
21

query I rowsort
SELECT ALL + 26 AS col1
----
26

query I rowsort
SELECT 85 * 88 + 79 AS col0
----
7559

query I rowsort
SELECT NULLIF ( 73, - 63 / - AVG ( DISTINCT - + 15 ) + 96 / - + 19 + + - 49 )
----
73

query I rowsort
SELECT DISTINCT + 33
----
33

query I rowsort
SELECT DISTINCT + 4
----
4

query I rowsort
SELECT ALL + 46 AS col1
----
46

query I rowsort
SELECT - 55 + + + ( + - 53 ) + + + 12
----
-96

query I rowsort
SELECT ALL + 16 AS col1
----
16

query I rowsort
SELECT + 86 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2920
SELECT ALL ( - 31 ) AS col2, - 22 + - + ( + 44 ) + + 72 - + + 84 * + - CAST( NULL AS SIGNED ) AS col1
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-2920
SELECT ALL ( - 31 ) AS col2, - 22 + - + ( + 44 ) + + 72 - + + 84 * + - CAST ( NULL AS INTEGER ) AS col1
----
-31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL 98 * - NULLIF ( + MAX( + 65 ), + COUNT( * ) ) - - ( - + 46 ) AS col0
----
-6416

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL 98 * - NULLIF ( + MAX ( + 65 ), + COUNT ( * ) ) - - ( - + 46 ) AS col0
----
-6416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT ALL NULLIF ( - + 78, - CAST( - MAX( DISTINCT - 91 ) AS SIGNED ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL NULLIF ( - + 78, - CAST ( - MAX ( DISTINCT - 91 ) AS INTEGER ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT MIN( ALL + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-2923
SELECT MIN ( ALL + - 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT + CAST( - 79 AS SIGNED ) * - - 4
----
-316

skipif mysql # not compatible
query I rowsort label-2924
SELECT + CAST ( - 79 AS INTEGER ) * - - 4
----
-316

query I rowsort
SELECT - 2 + 1 * + 99 - - 48 AS col1
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT ALL + 23 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL + 23 / - 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT - 13 DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT - 13 / - + 82
----
0

query I rowsort
SELECT - 19 * - - 12
----
-228

query I rowsort
SELECT - 78 + + 89 col1
----
11

query II rowsort
SELECT ALL ( 37 ) AS col2, CASE 57 WHEN 45 THEN + 18 * - + AVG ( 64 ) WHEN 60 THEN NULL END + + 33 * - 94 AS col2
----
37
NULL

query I rowsort
SELECT - 54 AS col0
----
-54

query I rowsort
SELECT DISTINCT CASE + 90 WHEN + - 73 THEN + - ( 60 ) + - 66 WHEN + 30 THEN + ( 55 ) * + 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL - ( + COUNT( * ) ) - - 87 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL - ( + COUNT ( * ) ) - - 87 AS col1
----
86

query I rowsort
SELECT DISTINCT - ( - + 87 ) * 92 AS col0
----
8004

query I rowsort
SELECT DISTINCT + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT DISTINCT - 26 * ( - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - 26 * ( - COUNT ( * ) )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT - ( - - ( - + 11 ) ) DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-2937
SELECT - ( - - ( - + 11 ) ) / - 90
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2938
SELECT - + 99 + COUNT( * ) DIV - 87
----
-99

skipif mysql # not compatible
query I rowsort label-2938
SELECT - + 99 + COUNT ( * ) / - 87
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT ALL CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + - COUNT( * ) + + 53
----
52

skipif mysql # not compatible
query I rowsort label-2940
SELECT + - COUNT ( * ) + + 53
----
52

query I rowsort
SELECT 15 col0
----
15

query I rowsort
SELECT + 58 * - 56
----
-3248

query I rowsort
SELECT DISTINCT 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + SUM( + 38 ) * - 1 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2944
SELECT + SUM ( + 38 ) * - 1 AS col2
----
-38

query I rowsort
SELECT ALL 46 + + 9
----
55

query I rowsort
SELECT - + 56
----
-56

query I rowsort
SELECT ALL + COALESCE ( - + 7, 37 + + + 91 + + 3 )
----
-7

query I rowsort
SELECT - - 47 * + NULLIF ( 43, - 6 + + 31 )
----
2021

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT DISTINCT + COUNT( * ) + - 82 + + - 71 + + 77
----
-75

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + COUNT ( * ) + - 82 + + - 71 + + 77
----
-75

query I rowsort
SELECT ALL + 89 AS col0
----
89

query I rowsort
SELECT ( + 10 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2952
SELECT ALL + ( + COUNT( * ) ) DIV - COUNT( * ) + + - 47 - 0
----
-48

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + ( + COUNT ( * ) ) / - COUNT ( * ) + + - 47 - 0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2953
SELECT DISTINCT CASE + 64 WHEN + + 31 * 54 THEN 41 WHEN 73 - + 31 + 17 THEN NULL ELSE NULL END / + CASE - ( 98 ) WHEN CAST( 58 AS SIGNED ) THEN - COUNT( ALL CAST( NULL AS DECIMAL ) ) END + 86 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT CASE + 64 WHEN + + 31 * 54 THEN 41 WHEN 73 - + 31 + 17 THEN NULL ELSE NULL END / + CASE - ( 98 ) WHEN CAST ( 58 AS INTEGER ) THEN - COUNT ( ALL CAST ( NULL AS REAL ) ) END + 86 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT ALL + CAST( NULL AS SIGNED ) / - 74 * - - 73 + 35 * + - ( - + 15 ) * - 0 * - MIN( ALL + 51 ) + SUM( DISTINCT - 24 + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + CAST ( NULL AS INTEGER ) / - 74 * - - 73 + 35 * + - ( - + 15 ) * - 0 * - MIN ( ALL + 51 ) + SUM ( DISTINCT - 24 + 23 )
----
NULL

query I rowsort
SELECT ALL + ( - 27 ) AS col2
----
-27

query I rowsort
SELECT DISTINCT - 30 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL 57 + + 99 - + COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL 57 + + 99 - + COUNT ( * )
----
155

query I rowsort
SELECT ALL 80 + + + 88 + 76 AS col1
----
244

query I rowsort
SELECT + 63 col0
----
63

query I rowsort
SELECT 87 col0
----
87

query I rowsort
SELECT DISTINCT 56 + - 25
----
31

query I rowsort
SELECT 1 * + - NULLIF ( + 48, 36 ) AS col2
----
-48

query I rowsort
SELECT ALL - 36 AS col1
----
-36

query I rowsort
SELECT + 21 col1
----
21

query I rowsort
SELECT ALL 85 + 45 * + 22 + 73
----
1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2967
SELECT DISTINCT 9 DIV NULLIF ( - COUNT( * ), 28 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT 9 / NULLIF ( - COUNT ( * ), 28 ) AS col0
----
-9

query I rowsort
SELECT DISTINCT - 23 AS col1
----
-23

query I rowsort
SELECT ALL - 90 * 12
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT DISTINCT + 36 - + NULLIF ( + - 95, 7 ) - + 70 DIV - - 37 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT + 36 - + NULLIF ( + - 95, 7 ) - + 70 / - - 37 AS col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2971
SELECT CAST( NULL AS SIGNED ) * - ( + 59 ) col1, - 92
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-2971
SELECT CAST ( NULL AS INTEGER ) * - ( + 59 ) col1, - 92
----
NULL
-92

query II rowsort
SELECT ALL - 36, - ( + + 66 ) col1
----
-36
-66

query I rowsort
SELECT + 86 AS col0
----
86

query I rowsort
SELECT ALL - 51
----
-51

query I rowsort
SELECT 73
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT CAST( + + 92 AS SIGNED ) * 87 AS col0
----
8004

skipif mysql # not compatible
query I rowsort label-2976
SELECT CAST ( + + 92 AS INTEGER ) * 87 AS col0
----
8004

query I rowsort
SELECT 25 * + + 91 AS col1
----
2275

query I rowsort
SELECT 81 col2
----
81

query II rowsort
SELECT 16 AS col1, + 17 AS col1
----
16
17

query I rowsort
SELECT DISTINCT - 18 * + 17 AS col2
----
-306

query I rowsort
SELECT DISTINCT 13 * 82 col0
----
1066

query I rowsort
SELECT ALL 6 AS col1
----
6

query I rowsort
SELECT 15 * - 28
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL 48 * 58 * + CASE + + 2 WHEN 39 * + 72 * + 28 + 91 THEN + NULLIF ( - - 97, 48 / COUNT( * ) ) END * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL 48 * 58 * + CASE + + 2 WHEN 39 * + 72 * + 28 + 91 THEN + NULLIF ( - - 97, 48 / COUNT ( * ) ) END * + 22
----
NULL

query I rowsort
SELECT ALL 9 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT 55 * COUNT( * ) - + 45 + + 60
----
70

skipif mysql # not compatible
query I rowsort label-2986
SELECT 55 * COUNT ( * ) - + 45 + + 60
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT DISTINCT 65 * + 0 DIV - - 73
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT 65 * + 0 / - - 73
----
0

query I rowsort
SELECT ALL 40 AS col1
----
40

query I rowsort
SELECT ALL 79 col2
----
79

query I rowsort
SELECT 45 * 42
----
1890

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT 76 DIV 25 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2991
SELECT 76 / 25 AS col1
----
3

query I rowsort
SELECT DISTINCT - 31 + - 16 AS col0
----
-47

query I rowsort
SELECT - ( - - 87 ) + + ( 1 ) col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - MAX( DISTINCT - - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-2994
SELECT - MAX ( DISTINCT - - 4 )
----
-4

query I rowsort
SELECT 24 + + 15 - + + 79
----
-40

query I rowsort
SELECT + 69 - - - 42 * + + 97 AS col2
----
-4005

query I rowsort
SELECT ALL - 81 * + 92 AS col1
----
-7452

query I rowsort
SELECT DISTINCT ( - + 18 ) + + 47
----
29

query I rowsort
SELECT - + 1
----
-1

query I rowsort
SELECT 17 + + + 94 - + 67 * 53 AS col2
----
-3440

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - 36 * MIN( ALL - - 81 ) * + 13 - - - COUNT( DISTINCT 31 ) AS col1
----
-37909

skipif mysql # not compatible
query I rowsort label-3001
SELECT - 36 * MIN ( ALL - - 81 ) * + 13 - - - COUNT ( DISTINCT 31 ) AS col1
----
-37909

query II rowsort
SELECT ALL - + 60 * ( 34 ) AS col2, 54
----
-2040
54

query I rowsort
SELECT 93 + + 63
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3004
SELECT ALL + 46 * - + 14 DIV 14 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL + 46 * - + 14 / 14 AS col0
----
-46

query II rowsort
SELECT 35, - NULLIF ( + 77, 3 * + - 69 * + 2 ) AS col1
----
35
-77

query I rowsort
SELECT - 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT - + 47 + + COUNT( * ) + - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT - + 47 + + COUNT ( * ) + - COUNT ( * ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT + MAX( 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3008
SELECT + MAX ( 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - SUM( DISTINCT + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-3009
SELECT - SUM ( DISTINCT + 68 )
----
-68

query I rowsort
SELECT ALL - 14
----
-14

query II rowsort
SELECT ALL - 96 + + ( - - 67 ) + - + 16 * - 4 col1, + ( + 61 ) + + - ( 73 ) * - 79 * ( + 92 ) AS col1
----
35
530625

query I rowsort
SELECT + + 16 col0
----
16

query I rowsort
SELECT + 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + 1 * - + SUM( DISTINCT + 39 ) + 99 + - 80
----
-20

skipif mysql # not compatible
query I rowsort label-3014
SELECT + 1 * - + SUM ( DISTINCT + 39 ) + 99 + - 80
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT ALL - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - ( COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT 35 col1
----
35

query I rowsort
SELECT ALL - COALESCE ( + 93, 23, + 82, - 20 )
----
-93

query I rowsort
SELECT ALL - 67 - 82
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL COUNT( * ) - + 24 * - 48 - 72 + + 31 * 74
----
3375

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL COUNT ( * ) - + 24 * - 48 - 72 + + 31 * 74
----
3375

query I rowsort
SELECT + 73 AS col0
----
73

query II rowsort
SELECT ALL - ( - 58 ) AS col1, 84 + + 41 + - 79
----
58
46

query II rowsort
SELECT 0 + 88 + 80 + - + 78 AS col2, 63 AS col0
----
90
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL - 31 * - NULLIF ( + COUNT( * ), + COUNT( * ) / + COUNT( * ) ) * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - 31 * - NULLIF ( + COUNT ( * ), + COUNT ( * ) / + COUNT ( * ) ) * + 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3024
SELECT 71 * + CAST( 70 AS SIGNED ) DIV 2 AS col1
----
2485

skipif mysql # not compatible
query I rowsort label-3024
SELECT 71 * + CAST ( 70 AS INTEGER ) / 2 AS col1
----
2485

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL - 22 * - NULLIF ( - MAX( 92 ), ( - 31 ) ) * + COALESCE ( + 34, 41 )
----
-68816

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - 22 * - NULLIF ( - MAX ( 92 ), ( - 31 ) ) * + COALESCE ( + 34, 41 )
----
-68816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3026
SELECT 72 AS col2, 59 * + COUNT( * ) DIV + MIN( ALL - 89 )
----
72
0

skipif mysql # not compatible
query II rowsort label-3026
SELECT 72 AS col2, 59 * + COUNT ( * ) / + MIN ( ALL - 89 )
----
72
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3027
SELECT ALL - 51, SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) + + 12 AS col0
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-3027
SELECT ALL - 51, SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + + 12 AS col0
----
-51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT COUNT( * ) * - 70 col0
----
-70

skipif mysql # not compatible
query I rowsort label-3028
SELECT COUNT ( * ) * - 70 col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT COUNT( * ) * - + CAST( COUNT( * ) AS SIGNED ) / + MAX( 13 ) - 33 * - 7 * NULLIF ( CAST( NULL AS SIGNED ), + 99 * 91 ) + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT COUNT ( * ) * - + CAST ( COUNT ( * ) AS INTEGER ) / + MAX ( 13 ) - 33 * - 7 * NULLIF ( CAST ( NULL AS INTEGER ), + 99 * 91 ) + 10
----
NULL

query I rowsort
SELECT ALL - 70 AS col1
----
-70

query I rowsort
SELECT COALESCE ( 11, + - 50 ) + - 41
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL - NULLIF ( - 6, - 93 * 94 * + COALESCE ( ( - 68 ), COUNT( * ) + 7 ) )
----
6

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - NULLIF ( - 6, - 93 * 94 * + COALESCE ( ( - 68 ), COUNT ( * ) + 7 ) )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT COUNT( * ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT COUNT ( * ) / - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL CASE - 78 WHEN 7 * - - 0 THEN NULL WHEN ( 68 ) THEN - ( SUM( ALL + 42 ) ) ELSE NULL END / - + 45 - ( COUNT( * ) ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL CASE - 78 WHEN 7 * - - 0 THEN NULL WHEN ( 68 ) THEN - ( SUM ( ALL + 42 ) ) ELSE NULL END / - + 45 - ( COUNT ( * ) ) + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT COUNT( * ) + + 8
----
9

skipif mysql # not compatible
query I rowsort label-3035
SELECT COUNT ( * ) + + 8
----
9

query II rowsort
SELECT DISTINCT - 57 AS col2, 16 AS col2
----
-57
16

query II rowsort
SELECT ALL 6 AS col0, 68 * - + 14
----
6
-952

query I rowsort
SELECT 60 * 18 + - + 26 * + - 62 * + 76 AS col2
----
123592

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT 70 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-3039
SELECT 70 / - 39
----
-1

query I rowsort
SELECT - 18 + - + 22 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL + CASE + - COUNT( * ) WHEN + 59 THEN NULL ELSE - - 41 * - + 95 END + + 21 AS col1
----
-3874

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + CASE + - COUNT ( * ) WHEN + 59 THEN NULL ELSE - - 41 * - + 95 END + + 21 AS col1
----
-3874

query I rowsort
SELECT 70 AS col2
----
70

query I rowsort
SELECT - 61 * 99
----
-6039

query I rowsort
SELECT 60 + + 87
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT - NULLIF ( - MAX( ALL + 91 ), - - 57 * - + 49 + - CASE + 68 WHEN 57 THEN 46 * 24 * + ( 99 ) END ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3045
SELECT - NULLIF ( - MAX ( ALL + 91 ), - - 57 * - + 49 + - CASE + 68 WHEN 57 THEN 46 * 24 * + ( 99 ) END ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT - 41 AS col0, 47 * + - 6 + + 30 + ( - MIN( DISTINCT + - 24 ) ) + 48 + 59
----
-41
-121

skipif mysql # not compatible
query II rowsort label-3046
SELECT - 41 AS col0, 47 * + - 6 + + 30 + ( - MIN ( DISTINCT + - 24 ) ) + 48 + 59
----
-41
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3047
SELECT DISTINCT 10 * - 51 / + CAST( NULL AS SIGNED ) * - - ( - 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT 10 * - 51 / + CAST ( NULL AS INTEGER ) * - - ( - 56 ) AS col2
----
NULL

query I rowsort
SELECT - + ( 64 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT ALL - 52 * + CASE 70 WHEN + 11 * 15 * 99 - + 29 THEN 11 WHEN - 85 THEN + CAST( 72 AS SIGNED ) + - 29 ELSE NULL END * - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL - 52 * + CASE 70 WHEN + 11 * 15 * 99 - + 29 THEN 11 WHEN - 85 THEN + CAST ( 72 AS INTEGER ) + - 29 ELSE NULL END * - 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3050
SELECT 39 * - + NULLIF ( + 49, - CAST( COUNT( * ) AS SIGNED ) / + 87 * 66 * - 79 * + COUNT( * ) ) AS col2, + 49 * + + 45 * 43
----
-1911
94815

skipif mysql # not compatible
query II rowsort label-3050
SELECT 39 * - + NULLIF ( + 49, - CAST ( COUNT ( * ) AS INTEGER ) / + 87 * 66 * - 79 * + COUNT ( * ) ) AS col2, + 49 * + + 45 * 43
----
-1911
94815

query I rowsort
SELECT - ( 86 )
----
-86

query I rowsort
SELECT DISTINCT - 88 AS col2
----
-88

query I rowsort
SELECT ( + - 65 ) AS col0
----
-65

query I rowsort
SELECT + 15
----
15

query I rowsort
SELECT ALL - 0 + - 9 * 39
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + MIN( ALL - - ( + 56 ) )
----
56

skipif mysql # not compatible
query I rowsort label-3056
SELECT + MIN ( ALL - - ( + 56 ) )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT + + 20 - - 64 - + 76 DIV - 75
----
85

skipif mysql # not compatible
query I rowsort label-3057
SELECT + + 20 - - 64 - + 76 / - 75
----
85

query I rowsort
SELECT - + ( 30 ) * - 86 AS col1
----
2580

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT ALL + 9 DIV + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL + 9 / + 31 AS col1
----
0

query I rowsort
SELECT ALL + 75 AS col2
----
75

query I rowsort
SELECT - - 18
----
18

query I rowsort
SELECT - ( 34 ) col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3063
SELECT ALL + CAST( + 24 AS SIGNED ) - ( + 15 ) AS col1, + COUNT( ALL CAST( 94 AS SIGNED ) )
----
9
1

skipif mysql # not compatible
query II rowsort label-3063
SELECT ALL + CAST ( + 24 AS INTEGER ) - ( + 15 ) AS col1, + COUNT ( ALL CAST ( 94 AS INTEGER ) )
----
9
1

query I rowsort
SELECT DISTINCT + 13
----
13

query I rowsort
SELECT ALL - 61 * + - 82 - 54 + + 93 * + 13 * - 20 col2
----
-19232

query I rowsort
SELECT NULLIF ( 38, - - 6 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT + COUNT( * ) * - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT + COUNT ( * ) * - 57 AS col0
----
-57

query I rowsort
SELECT DISTINCT + NULLIF ( - + 98, - - 24 ) AS col1
----
-98

query I rowsort
SELECT ALL + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT - 97 * ( + COUNT( DISTINCT + 29 ) ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-3070
SELECT - 97 * ( + COUNT ( DISTINCT + 29 ) ) col2
----
-97

query I rowsort
SELECT + 82 AS col2
----
82

query I rowsort
SELECT + 96 + - + ( 33 )
----
63

query I rowsort
SELECT - 66 * - - ( + - 95 )
----
6270

onlyif mysql # aggregate syntax: 
query II rowsort label-3074
SELECT ALL + SUM( ALL + 31 ) AS col0, 63 AS col1
----
31
63

skipif mysql # not compatible
query II rowsort label-3074
SELECT ALL + SUM ( ALL + 31 ) AS col0, 63 AS col1
----
31
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT COALESCE ( + - 28, + - 38 + 60 + - + 71 + - ( + CAST( - 91 AS SIGNED ) ), + 55 )
----
-28

skipif mysql # not compatible
query I rowsort label-3075
SELECT COALESCE ( + - 28, + - 38 + 60 + - + 71 + - ( + CAST ( - 91 AS INTEGER ) ), + 55 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3076
SELECT ALL + 1 * - NULLIF ( COUNT( * ), 85 ) * + - 92 * + 71 + - 42 col1, - 60 col2
----
6490
-60

skipif mysql # not compatible
query II rowsort label-3076
SELECT ALL + 1 * - NULLIF ( COUNT ( * ), 85 ) * + - 92 * + 71 + - 42 col1, - 60 col2
----
6490
-60

query I rowsort
SELECT + 97
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT DISTINCT + CAST( - 26 AS SIGNED ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT + CAST ( - 26 AS INTEGER ) AS col2
----
-26

query I rowsort
SELECT DISTINCT + 93 AS col1
----
93

query I rowsort
SELECT + 5
----
5

query I rowsort
SELECT ALL - 24 * - 12 * 9 + - 22 AS col0
----
2570

query I rowsort
SELECT 92 * - - 11 - - 59 - - - 57 * 25 * + 89 AS col1
----
-125754

query I rowsort
SELECT - 55 - - 17 col2
----
-38

query I rowsort
SELECT + 97 AS col2
----
97

query I rowsort
SELECT DISTINCT + - 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL + + COUNT( * ) * + 26 * + + 68 + + - 57 - - 52 * - 39 AS col0
----
-317

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL + + COUNT ( * ) * + 26 * + + 68 + + - 57 - - 52 * - 39 AS col0
----
-317

query I rowsort
SELECT NULLIF ( + 83, - 39 / - 95 * - 29 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT ALL + COUNT( * ) * 84 + - 92 col0
----
-8

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL + COUNT ( * ) * 84 + - 92 col0
----
-8

query II rowsort
SELECT ALL 21 + - + 70 * 25, - 72 AS col0
----
-1729
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + - SUM( + 96 ) * - NULLIF ( + 49, + 59 )
----
4704

skipif mysql # not compatible
query I rowsort label-3090
SELECT + - SUM ( + 96 ) * - NULLIF ( + 49, + 59 )
----
4704

query I rowsort
SELECT DISTINCT + 82 AS col1
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-3092
SELECT ALL + ( - 24 ) AS col1, ( + 63 ) DIV + + 57 - 56
----
-24
-55

skipif mysql # not compatible
query II rowsort label-3092
SELECT ALL + ( - 24 ) AS col1, ( + 63 ) / + + 57 - 56
----
-24
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3093
SELECT DISTINCT + CAST( - CAST( + 35 AS SIGNED ) AS SIGNED ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT + CAST ( - CAST ( + 35 AS INTEGER ) AS INTEGER ) AS col2
----
-35

query I rowsort
SELECT DISTINCT 83 + + ( 40 ) * - 10 + 23 * - 25 * + 85 * + 0
----
-317

query I rowsort
SELECT ALL + 29 - - + 53
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - SUM( ALL + 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3096
SELECT - SUM ( ALL + 27 ) AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT CASE + + 25 WHEN + + 67 / CAST( NULL AS SIGNED ) THEN + - CAST( + + NULLIF ( + + CAST( NULL AS SIGNED ), - + 13 - 95 ) AS SIGNED ) WHEN 59 * - 82 + - 76 - COALESCE ( - 6, + 17 + + 71 * + COALESCE ( - 67 * + 53, 35 * - 65 + - 82 * 18 ), + 10 / - ( - 35 ) - - COUNT( DISTINCT 91 + 39 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT CASE + + 25 WHEN + + 67 / CAST ( NULL AS INTEGER ) THEN + - CAST ( + + NULLIF ( + + CAST ( NULL AS INTEGER ), - + 13 - 95 ) AS INTEGER ) WHEN 59 * - 82 + - 76 - COALESCE ( - 6, + 17 + + 71 * + COALESCE ( - 67 * + 53, 35 * - 65 + - 82 * 18 ), + 10 / - ( - 35 ) - - COUNT ( DISTINCT 91 + 39 ) ) THEN NULL END
----
NULL

query I rowsort
SELECT - - 23
----
23

query I rowsort
SELECT - - 54 AS col0
----
54

query I rowsort
SELECT ALL + 97
----
97

query I rowsort
SELECT ALL + 80 * 63
----
5040

query I rowsort
SELECT ALL 67 - + - 56 + + 12
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT + COALESCE ( 77, - 62 DIV + 83 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3103
SELECT + COALESCE ( 77, - 62 / + 83 ) AS col0
----
77

query I rowsort
SELECT + 11 + - 3
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT ALL ( ( + 27 ) ) - - ( 62 ), CASE - CASE - - ( - - 61 ) WHEN - ( + - 22 ) THEN NULL WHEN 12 THEN + 87 / 8 WHEN ( 69 ) THEN NULL ELSE NULL END WHEN - 95 THEN + ( COUNT( * ) ) WHEN 53 + + 1 THEN NULL END AS col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-3105
SELECT ALL ( ( + 27 ) ) - - ( 62 ), CASE - CASE - - ( - - 61 ) WHEN - ( + - 22 ) THEN NULL WHEN 12 THEN + 87 / 8 WHEN ( 69 ) THEN NULL ELSE NULL END WHEN - 95 THEN + ( COUNT ( * ) ) WHEN 53 + + 1 THEN NULL END AS col0
----
89
NULL

query I rowsort
SELECT ALL 17
----
17

query I rowsort
SELECT + COALESCE ( 1, - 67 * - + 89 * + - ( - 78 ) + - 16 ) * + 57 * 73
----
4161

query I rowsort
SELECT ALL 39 * 34 AS col2
----
1326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT ALL CASE - 38 WHEN + + CASE + 34 WHEN + - COUNT( * ) THEN NULL ELSE - 93 * + + 75 / - 75 - - 27 * - 77 - + 49 + + CAST( NULL AS SIGNED ) END THEN + 76 * + 98 + + 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL CASE - 38 WHEN + + CASE + 34 WHEN + - COUNT ( * ) THEN NULL ELSE - 93 * + + 75 / - 75 - - 27 * - 77 - + 49 + + CAST ( NULL AS INTEGER ) END THEN + 76 * + 98 + + 40 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 65
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT - COALESCE ( - + 20, + 63 DIV + 18 )
----
20

skipif mysql # not compatible
query I rowsort label-3111
SELECT - COALESCE ( - + 20, + 63 / + 18 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL MIN( ALL 84 ) col0
----
84

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL MIN ( ALL 84 ) col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3113
SELECT + ( + NULLIF ( 3, - 10 ) ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-3113
SELECT + ( + NULLIF ( 3, - 10 ) ) / 96
----
0

query I rowsort
SELECT - 3 * 14
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT CAST( 38 AS SIGNED ) col1
----
38

skipif mysql # not compatible
query I rowsort label-3115
SELECT CAST ( 38 AS INTEGER ) col1
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-3116
SELECT ALL + 61 AS col0, 28 DIV 93 AS col2
----
61
0

skipif mysql # not compatible
query II rowsort label-3116
SELECT ALL + 61 AS col0, 28 / 93 AS col2
----
61
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT CAST( + 52 AS SIGNED ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3117
SELECT CAST ( + 52 AS INTEGER ) AS col0
----
52

query II rowsort
SELECT ALL + 35 AS col1, - ( - + 21 )
----
35
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT + 67 * - CASE + 1 WHEN + - NULLIF ( + + COUNT( * ), + 48 ) THEN NULL WHEN + MIN( - 23 ) * - 61 + - MIN( - 92 ) THEN - + COUNT( - 60 ) WHEN 14 - - 80 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT + 67 * - CASE + 1 WHEN + - NULLIF ( + + COUNT ( * ), + 48 ) THEN NULL WHEN + MIN ( - 23 ) * - 61 + - MIN ( - 92 ) THEN - + COUNT ( - 60 ) WHEN 14 - - 80 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 80
----
80

query I rowsort
SELECT + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL - 8 / - 98 + - + CASE + - ( + + 74 ) WHEN + 98 / - 74 THEN NULL WHEN 9 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL - 8 / - 98 + - + CASE + - ( + + 74 ) WHEN + 98 / - 74 THEN NULL WHEN 9 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3123
SELECT DISTINCT - 30 DIV - 20 + 68 AS col0, CAST( NULL AS DECIMAL ) * 82
----
69
NULL

skipif mysql # not compatible
query II rowsort label-3123
SELECT DISTINCT - 30 / - 20 + 68 AS col0, CAST ( NULL AS REAL ) * 82
----
69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 13 * + NULLIF ( - 86, 79 ) * - 46 AS col0
----
-51428

query I rowsort
SELECT ALL + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT DISTINCT + MAX( DISTINCT + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + MAX ( DISTINCT + 39 )
----
39

query I rowsort
SELECT 97 * 18 + + 19 + - 48
----
1717

query I rowsort
SELECT ( + 0 )
----
0

query I rowsort
SELECT - 52 + 17 * + - 46 AS col0
----
-834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3131
SELECT ALL - NULLIF ( 9, + 53 * 69 + + CAST( ( + 62 ) AS SIGNED ) ) * + 99 * COUNT( * ) - 80 + COUNT( * ) AS col0
----
-970

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - NULLIF ( 9, + 53 * 69 + + CAST ( ( + 62 ) AS INTEGER ) ) * + 99 * COUNT ( * ) - 80 + COUNT ( * ) AS col0
----
-970

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3132
SELECT ALL + + 49, CAST( - 67 AS SIGNED ) AS col2
----
49
-67

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL + + 49, CAST ( - 67 AS INTEGER ) AS col2
----
49
-67

query I rowsort
SELECT - - NULLIF ( ( - 86 ), - 48 ) + 2 * + 9 AS col0
----
-68

query I rowsort
SELECT + 43 col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT ALL CASE 76 WHEN MAX( ALL - 84 ) THEN NULL WHEN 67 + + + 27 THEN NULL WHEN + 69 THEN - + COUNT( * ) / - - 75 + + - 6 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL CASE 76 WHEN MAX ( ALL - 84 ) THEN NULL WHEN 67 + + + 27 THEN NULL WHEN + 69 THEN - + COUNT ( * ) / - - 75 + + - 6 END col1
----
NULL

query I rowsort
SELECT ALL - - 53 - ( + 35 ) + - CASE + 1 WHEN - 27 THEN ( - 28 ) * + 55 * + 59 + 41 + 10 ELSE + ( 93 ) END + + 29 AS col2
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3137
SELECT - - 2, + CAST( NULL AS DECIMAL ) * + 79 + + 90 * - + 94 * + 63 AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3137
SELECT - - 2, + CAST ( NULL AS REAL ) * + 79 + + 90 * - + 94 * + 63 AS col2
----
2
NULL

query I rowsort
SELECT + 16 + 14 * + + 62
----
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3139
SELECT ALL + CAST( ( + ( - + 36 ) ) AS SIGNED ) - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + CAST ( ( + ( - + 36 ) ) AS INTEGER ) - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT - 55 * + MAX( DISTINCT + 89 ) * - - 3 + 71 AS col0
----
-14614

skipif mysql # not compatible
query I rowsort label-3140
SELECT - 55 * + MAX ( DISTINCT + 89 ) * - - 3 + 71 AS col0
----
-14614

query I rowsort
SELECT - - ( + 63 ) AS col0
----
63

query I rowsort
SELECT DISTINCT 77 AS col0
----
77

query I rowsort
SELECT ALL - 58
----
-58

query I rowsort
SELECT 17 * - 49 AS col1
----
-833

query I rowsort
SELECT ALL 61 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - MIN( + 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3146
SELECT - MIN ( + 3 ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT ALL 58 / - 77 * - + 9 + CASE + 10 WHEN 3 * - 1 + - + CASE 30 WHEN + + 48 + + + CAST( + - 14 AS SIGNED ) THEN + 28 - + NULLIF ( 24 + - 65 * + 43, 60 ) ELSE COUNT( * ) END / 6 THEN + 34 + - COUNT( * ) WHEN + 72 - - 19 THEN 99 END * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL 58 / - 77 * - + 9 + CASE + 10 WHEN 3 * - 1 + - + CASE 30 WHEN + + 48 + + + CAST ( + - 14 AS INTEGER ) THEN + 28 - + NULLIF ( 24 + - 65 * + 43, 60 ) ELSE COUNT ( * ) END / 6 THEN + 34 + - COUNT ( * ) WHEN + 72 - - 19 THEN 99 END * - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT - 23 AS col0, - 36 * + ( + COUNT( 23 ) )
----
-23
-36

skipif mysql # not compatible
query II rowsort label-3148
SELECT - 23 AS col0, - 36 * + ( + COUNT ( 23 ) )
----
-23
-36

query I rowsort
SELECT - ( + 58 )
----
-58

query I rowsort
SELECT ALL 45
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3151
SELECT 71 * + 58 * + COUNT( + + 11 ) AS col2, 39
----
4118
39

skipif mysql # not compatible
query II rowsort label-3151
SELECT 71 * + 58 * + COUNT ( + + 11 ) AS col2, 39
----
4118
39

query I rowsort
SELECT 10 * - - ( - + 22 ) AS col1
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT ALL 91 DIV - - COUNT( * ) col0
----
91

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL 91 / - - COUNT ( * ) col0
----
91

query I rowsort
SELECT DISTINCT 66
----
66

query II rowsort
SELECT ALL 9 * - + 3 AS col2, + 40 + 67 + + + 35 * + - 52 * 26 * - - 65
----
-27
-3075693

query I rowsort
SELECT 88 AS col1
----
88

query I rowsort
SELECT ALL CASE - + 72 WHEN - - 17 * 83 THEN NULLIF ( + 79, - 25 ) ELSE NULL END * - + 7 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 77
----
77

query I rowsort
SELECT NULLIF ( - ( 26 ), + + 24 ) * - + 5 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL - MAX( DISTINCT 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL - MAX ( DISTINCT 3 )
----
-3

query I rowsort
SELECT 75 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL COUNT( * ) + 19
----
20

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL COUNT ( * ) + 19
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT ALL 8 + - 61, COUNT( * ) AS col1
----
-53
1

skipif mysql # not compatible
query II rowsort label-3163
SELECT ALL 8 + - 61, COUNT ( * ) AS col1
----
-53
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL - COUNT( * ) + MIN( DISTINCT 43 ) + + - 51 + + 94 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - COUNT ( * ) + MIN ( DISTINCT 43 ) + + - 51 + + 94 * COUNT ( * )
----
85

query I rowsort
SELECT DISTINCT 43 + - - ( + + 99 )
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - 27 * CASE + 65 WHEN COUNT( * ) THEN - COUNT( * ) + + 42 ELSE NULL END + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT - 27 * CASE + 65 WHEN COUNT ( * ) THEN - COUNT ( * ) + + 42 ELSE NULL END + - 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT DISTINCT - MAX( DISTINCT - 74 ) AS col0, COUNT( * ) + - - 94 AS col2
----
74
95

skipif mysql # not compatible
query II rowsort label-3167
SELECT DISTINCT - MAX ( DISTINCT - 74 ) AS col0, COUNT ( * ) + - - 94 AS col2
----
74
95

query I rowsort
SELECT 74 AS col1
----
74

query I rowsort
SELECT 25 * - 1 AS col2
----
-25

query I rowsort
SELECT 12
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT ALL 71 DIV 51 * + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL 71 / 51 * + 98 AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT - 33 DIV - 73 + + 15 - + COUNT( * ) + - 61 + - SUM( ALL - 9 ) * + 6 + + 85 * + 44 * + - CASE 28 WHEN 62 THEN COUNT( * ) + 43 * 93 ELSE 10 END
----
-37393

skipif mysql # not compatible
query I rowsort label-3172
SELECT - 33 / - 73 + + 15 - + COUNT ( * ) + - 61 + - SUM ( ALL - 9 ) * + 6 + + 85 * + 44 * + - CASE 28 WHEN 62 THEN COUNT ( * ) + 43 * 93 ELSE 10 END
----
-37393

query I rowsort
SELECT DISTINCT - 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT ALL + COUNT( * ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + COUNT ( * ) - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3175
SELECT ALL - CASE - 92 WHEN + 41 THEN NULL WHEN - ( + 94 ) * - COUNT( * ) THEN + 93 END * - COUNT( ALL 51 ) * - + 84 AS col0, + 24 * - - 63 - + - 84
----
NULL
1596

skipif mysql # not compatible
query II rowsort label-3175
SELECT ALL - CASE - 92 WHEN + 41 THEN NULL WHEN - ( + 94 ) * - COUNT ( * ) THEN + 93 END * - COUNT ( ALL 51 ) * - + 84 AS col0, + 24 * - - 63 - + - 84
----
NULL
1596

query I rowsort
SELECT - ( + 35 ) AS col0
----
-35

query I rowsort
SELECT DISTINCT - - 12
----
12

query I rowsort
SELECT - 32 col0
----
-32

query I rowsort
SELECT ALL 56 - ( - 96 ) AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL - - 51 * + + COUNT( * ) + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - - 51 * + + COUNT ( * ) + - COUNT ( * )
----
50

query I rowsort
SELECT + 83
----
83

query I rowsort
SELECT 19
----
19

query I rowsort
SELECT + + 60
----
60

query I rowsort
SELECT ALL - 4 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT COUNT( * ) - - 47
----
48

skipif mysql # not compatible
query I rowsort label-3185
SELECT COUNT ( * ) - - 47
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT + ( + 10 ) * + MAX( - 37 ), 1 + - 99 AS col1
----
-370
-98

skipif mysql # not compatible
query II rowsort label-3186
SELECT + ( + 10 ) * + MAX ( - 37 ), 1 + - 99 AS col1
----
-370
-98

query I rowsort
SELECT - - 93 AS col1
----
93

query I rowsort
SELECT ALL + 81
----
81

query I rowsort
SELECT DISTINCT + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - ( - - 76 ) * COUNT( * ) + - - 34 col0
----
-42

skipif mysql # not compatible
query I rowsort label-3190
SELECT - ( - - 76 ) * COUNT ( * ) + - - 34 col0
----
-42

query I rowsort
SELECT - 6 col2
----
-6

query I rowsort
SELECT DISTINCT - 45 AS col1
----
-45

query I rowsort
SELECT DISTINCT 62
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3194
SELECT 62 - + CASE - 13 WHEN - - 19 THEN + + 42 * 82 * COUNT( * ) + - + 44 - 18 / 42 ELSE NULL END - - 14 - - 29 * CASE + ( + 78 ) WHEN 35 - + CAST( 95 - 90 * + 53 AS SIGNED ) * + 13 THEN 95 ELSE NULL END * - CASE CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) WHEN 58 + + COUNT( * ) THEN + ( + NULLIF ( - 54, ( 87 ) / 42 ) ) + NULLIF ( 98, 7 * 3 ) WHEN - 70 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT 62 - + CASE - 13 WHEN - - 19 THEN + + 42 * 82 * COUNT ( * ) + - + 44 - 18 / 42 ELSE NULL END - - 14 - - 29 * CASE + ( + 78 ) WHEN 35 - + CAST ( 95 - 90 * + 53 AS INTEGER ) * + 13 THEN 95 ELSE NULL END * - CASE CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) WHEN 58 + + COUNT ( * ) THEN + ( + NULLIF ( - 54, ( 87 ) / 42 ) ) + NULLIF ( 98, 7 * 3 ) WHEN - 70 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 86 * + ( - 62 ) - - - 98 * 44
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - 55 * - CASE + COUNT( * ) WHEN + SUM( ( - 34 ) ) THEN NULL ELSE - - 42 END AS col0
----
2310

skipif mysql # not compatible
query I rowsort label-3196
SELECT - 55 * - CASE + COUNT ( * ) WHEN + SUM ( ( - 34 ) ) THEN NULL ELSE - - 42 END AS col0
----
2310

query I rowsort
SELECT 65 + - 8 AS col2
----
57

query I rowsort
SELECT - + 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - - SUM( - + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-3199
SELECT - - SUM ( - + 53 )
----
-53

query I rowsort
SELECT DISTINCT + 31 + - - 53 * 87 - + - 3
----
4645

query I rowsort
SELECT 90 + - 97 + - - 21 + 62
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3202
SELECT ALL + COUNT( * ) + + NULLIF ( - - CASE + + 10 WHEN 43 * 74 / - - 11 * - 39 + + - SUM( ALL CASE - CAST( - 86 AS SIGNED ) WHEN - + 8 * - + 37 THEN - 15 ELSE 52 END ) + - 88 * - COUNT( * ) THEN NULL WHEN ( + 70 ) THEN + 57 * + 96 ELSE NULL END, 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + COUNT ( * ) + + NULLIF ( - - CASE + + 10 WHEN 43 * 74 / - - 11 * - 39 + + - SUM ( ALL CASE - CAST ( - 86 AS INTEGER ) WHEN - + 8 * - + 37 THEN - 15 ELSE 52 END ) + - 88 * - COUNT ( * ) THEN NULL WHEN ( + 70 ) THEN + 57 * + 96 ELSE NULL END, 32 )
----
NULL

query I rowsort
SELECT 0 + + + 56 + + + 77 * + + 55 AS col2
----
4291

query II rowsort
SELECT ALL 70 AS col2, + 66
----
70
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3205
SELECT 36 AS col2, ( + + CAST( - - COUNT( * ) AS SIGNED ) ) AS col1
----
36
1

skipif mysql # not compatible
query II rowsort label-3205
SELECT 36 AS col2, ( + + CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col1
----
36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT DISTINCT + COUNT( * ) + + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT + COUNT ( * ) + + - 66
----
-65

query I rowsort
SELECT - 25
----
-25

query I rowsort
SELECT DISTINCT 55 + + 13 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT - MIN( ALL - 96 ) + + CASE - 76 WHEN - + AVG ( - + ( 88 ) ) THEN + 26 ELSE + - 96 END * - + MIN( - - 50 )
----
4896

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - MIN ( ALL - 96 ) + + CASE - 76 WHEN - + AVG ( - + ( 88 ) ) THEN + 26 ELSE + - 96 END * - + MIN ( - - 50 )
----
4896

query I rowsort
SELECT ALL 82 AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT 35 + - 78 DIV 83
----
35

skipif mysql # not compatible
query I rowsort label-3211
SELECT 35 + - 78 / 83
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3212
SELECT ALL - 42 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - 42 / + 80
----
0

query I rowsort
SELECT - 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ( 70 ) + + CASE - 12 WHEN + - 24 * + 2 * - ( + 45 ) THEN NULL WHEN - COUNT( * ) * + 6 THEN COUNT( 41 ) END * - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT ( 70 ) + + CASE - 12 WHEN + - 24 * + 2 * - ( + 45 ) THEN NULL WHEN - COUNT ( * ) * + 6 THEN COUNT ( 41 ) END * - - 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3215
SELECT DISTINCT COUNT( * ) DIV - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT COUNT ( * ) / - 6 AS col2
----
0

query I rowsort
SELECT ALL - 86 col1
----
-86

query I rowsort
SELECT ALL + 59 * - 88 + + ( 29 )
----
-5163

query I rowsort
SELECT 25 * + + 76 AS col2
----
1900

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT + COUNT( * ) AS col2, 14 AS col2
----
1
14

skipif mysql # not compatible
query II rowsort label-3219
SELECT + COUNT ( * ) AS col2, 14 AS col2
----
1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT NULLIF ( - - 84, + + COUNT( * ) ) * + 59 * + - 23 * COUNT( * ) * - NULLIF ( + 17, + - 86 * + CASE + - 20 WHEN - COUNT( * ) * + 37 THEN - 39 WHEN - 54 THEN + 22 END / + 97 ) * 6 AS col0
----
11626776

skipif mysql # not compatible
query I rowsort label-3220
SELECT NULLIF ( - - 84, + + COUNT ( * ) ) * + 59 * + - 23 * COUNT ( * ) * - NULLIF ( + 17, + - 86 * + CASE + - 20 WHEN - COUNT ( * ) * + 37 THEN - 39 WHEN - 54 THEN + 22 END / + 97 ) * 6 AS col0
----
11626776

query I rowsort
SELECT ALL 48 * - 77 * 40
----
-147840

query I rowsort
SELECT ALL - 76 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT + MIN( + ( - + 39 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3223
SELECT + MIN ( + ( - + 39 ) ) AS col0
----
-39

query I rowsort
SELECT DISTINCT - + 27 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT - ( - - 30 ) DIV + - 36 + - + 27 + + + 74
----
47

skipif mysql # not compatible
query I rowsort label-3225
SELECT - ( - - 30 ) / + - 36 + - + 27 + + + 74
----
47

query II rowsort
SELECT + 5 AS col0, 0 AS col0
----
5
0

query I rowsort
SELECT ALL + - 45
----
-45

query I rowsort
SELECT - - 5 * 60 + + 39 * + 15 AS col2
----
885

onlyif mysql # aggregate syntax: 
query III rowsort label-3229
SELECT + ( NULLIF ( 46, + 63 ) ) * - COUNT( * ) AS col2, 15 AS col1, + 59 AS col1
----
-46
15
59

skipif mysql # not compatible
query III rowsort label-3229
SELECT + ( NULLIF ( 46, + 63 ) ) * - COUNT ( * ) AS col2, 15 AS col1, + 59 AS col1
----
-46
15
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + + COUNT( * ) * + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3230
SELECT + + COUNT ( * ) * + 80 AS col0
----
80

query I rowsort
SELECT + + 75
----
75

query I rowsort
SELECT ALL + 49 AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3233
SELECT + - 87 + NULLIF ( - + 88, + 22 * 61 ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
-175
NULL

skipif mysql # not compatible
query II rowsort label-3233
SELECT + - 87 + NULLIF ( - + 88, + 22 * 61 ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-175
NULL

query I rowsort
SELECT ALL + 52
----
52

query II rowsort
SELECT + 45, 86 AS col0
----
45
86

query I rowsort
SELECT + 62 AS col0
----
62

query I rowsort
SELECT ALL + - 11 * - 5 + 36 col2
----
91

query I rowsort
SELECT ALL + 29 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + COUNT( * ) * 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3239
SELECT + COUNT ( * ) * 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT 21 * + 99 * + 64 + - COALESCE ( + 89, MAX( ALL - 37 ), - - 0 ) AS col0
----
132967

skipif mysql # not compatible
query I rowsort label-3240
SELECT 21 * + 99 * + 64 + - COALESCE ( + 89, MAX ( ALL - 37 ), - - 0 ) AS col0
----
132967

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL ( SUM( CASE 48 WHEN - 84 THEN + 78 ELSE NULL END ) ) * + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL ( SUM ( CASE 48 WHEN - 84 THEN + 78 ELSE NULL END ) ) * + 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT + COUNT( * ) * - - 99
----
99

skipif mysql # not compatible
query I rowsort label-3242
SELECT + COUNT ( * ) * - - 99
----
99

query I rowsort
SELECT - - 80 AS col1
----
80

query I rowsort
SELECT - - 71 + 94
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL + + ( + NULLIF ( 41, COUNT( * ) + - COALESCE ( - + 15, + 15, - - 9 ) ) ) + - 46 - - - COALESCE ( + 34, + 57 * - 89 )
----
-39

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL + + ( + NULLIF ( 41, COUNT ( * ) + - COALESCE ( - + 15, + 15, - - 9 ) ) ) + - 46 - - - COALESCE ( + 34, + 57 * - 89 )
----
-39

query I rowsort
SELECT ( 96 ) AS col2
----
96

query I rowsort
SELECT ALL 39 * + 63
----
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL COUNT( * ) + - + 71
----
-70

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL COUNT ( * ) + - + 71
----
-70

query I rowsort
SELECT 13 AS col2
----
13

query I rowsort
SELECT - 20
----
-20

query I rowsort
SELECT ALL - 46 + - 6 AS col2
----
-52

query I rowsort
SELECT - 23
----
-23

query I rowsort
SELECT - ( + 69 ) AS col1
----
-69

query II rowsort
SELECT 94 col2, 81 AS col1
----
94
81

query I rowsort
SELECT 0 AS col2
----
0

query I rowsort
SELECT - 81
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT DISTINCT CASE - ( ( 61 ) ) WHEN - 55 THEN NULL WHEN - 65 THEN - 19 + - CAST( + + 76 AS SIGNED ) + AVG ( ALL - + 58 ) + + - 20 * + 34 / 30 * - 37 ELSE + - 4 END AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT CASE - ( ( 61 ) ) WHEN - 55 THEN NULL WHEN - 65 THEN - 19 + - CAST ( + + 76 AS INTEGER ) + AVG ( ALL - + 58 ) + + - 20 * + 34 / 30 * - 37 ELSE + - 4 END AS col1
----
-4

query I rowsort
SELECT - 84 * 86 * - 87
----
628488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT - 60 - + - 64 * + ( - - 44 ) * CAST( + 78 AS SIGNED ) * 36 - + + 3 AS col2
----
7907265

skipif mysql # not compatible
query I rowsort label-3259
SELECT - 60 - + - 64 * + ( - - 44 ) * CAST ( + 78 AS INTEGER ) * 36 - + + 3 AS col2
----
7907265

query I rowsort
SELECT DISTINCT - 56 * + 96 AS col0
----
-5376

query I rowsort
SELECT ALL ( - 80 )
----
-80

query I rowsort
SELECT ALL + 83 - 32
----
51

query I rowsort
SELECT DISTINCT + 18 col1
----
18

query I rowsort
SELECT ALL + 21
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3265
SELECT ALL 24 DIV - 85 - - ( ( + - 79 ) ) * - 49 * - MIN( 99 )
----
-383229

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL 24 / - 85 - - ( ( + - 79 ) ) * - 49 * - MIN ( 99 )
----
-383229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT - COUNT( * ) DIV 17 * - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT - COUNT ( * ) / 17 * - 51 AS col2
----
0

query I rowsort
SELECT - 18 * + - 77 AS col0
----
1386

query I rowsort
SELECT + 74 * + 87 + 11 AS col2
----
6449

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3269
SELECT - MAX( 53 ) / + - MIN( DISTINCT - + 40 ) - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT - MAX ( 53 ) / + - MIN ( DISTINCT - + 40 ) - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 68 AS col1
----
68

query I rowsort
SELECT ALL + 95
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3272
SELECT + - CAST( + 2 AS SIGNED ) * - + ( + 88 ) DIV 75 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3272
SELECT + - CAST ( + 2 AS INTEGER ) * - + ( + 88 ) / 75 AS col2
----
2

query II rowsort
SELECT + 67 AS col1, 27 - 11
----
67
16

query I rowsort
SELECT - 88 * - 6 + 62 AS col2
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT + + COUNT( * ) * + + 25 - 54 + - + 27
----
-56

skipif mysql # not compatible
query I rowsort label-3275
SELECT + + COUNT ( * ) * + + 25 - 54 + - + 27
----
-56

query I rowsort
SELECT DISTINCT 74 * - - 58 * + - 64
----
-274688

onlyif mysql # aggregate syntax: 
query II rowsort label-3277
SELECT ALL + 33 AS col2, 7 * + SUM( DISTINCT + 51 ) * + 97
----
33
34629

skipif mysql # not compatible
query II rowsort label-3277
SELECT ALL + 33 AS col2, 7 * + SUM ( DISTINCT + 51 ) * + 97
----
33
34629

query I rowsort
SELECT + 68 AS col2
----
68

query II rowsort
SELECT ALL + - 18, 64 + + + 80 * - + 22 AS col2
----
-18
-1696

query I rowsort
SELECT + 62 * + 70 AS col0
----
4340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3281
SELECT ALL - 8 * - MAX( + 81 ) + + 30 DIV 96 - - 32 + 72 + COUNT( * ) * + 41
----
793

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL - 8 * - MAX ( + 81 ) + + 30 / 96 - - 32 + 72 + COUNT ( * ) * + 41
----
793

query I rowsort
SELECT - 51 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT + COUNT( * ) * + 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + COUNT ( * ) * + 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT ALL + COUNT( * ), ( + 49 ) AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL + COUNT ( * ), ( + 49 ) AS col1
----
1
49

query I rowsort
SELECT + 91 AS col2
----
91

query I rowsort
SELECT - - 81 * + + ( - 47 )
----
-3807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL + CASE + COUNT( - + 12 ) WHEN + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 24 THEN + COUNT( - 52 ) WHEN CAST( COUNT( * ) AS SIGNED ) * 17 THEN - + COUNT( * ) * + - 66 + + 20 + - COUNT( * ) ELSE - 77 * + 41 + NULLIF ( - 47 + 0 * 60, - 43 ) END * 81 + - 87
----
-259611

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + CASE + COUNT ( - + 12 ) WHEN + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 24 THEN + COUNT ( - 52 ) WHEN CAST ( COUNT ( * ) AS INTEGER ) * 17 THEN - + COUNT ( * ) * + - 66 + + 20 + - COUNT ( * ) ELSE - 77 * + 41 + NULLIF ( - 47 + 0 * 60, - 43 ) END * 81 + - 87
----
-259611

query I rowsort
SELECT - 71 * + 16 - + 80 AS col0
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT + ( + + COUNT( 61 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3289
SELECT + ( + + COUNT ( 61 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 66 col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT - SUM( - 34 ) * + - 47 * - COUNT( * ) + + 34 + 32 - 19
----
1645

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - SUM ( - 34 ) * + - 47 * - COUNT ( * ) + + 34 + 32 - 19
----
1645

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL 4 * 96 - - 12 + - - 74 * + COUNT( * )
----
470

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL 4 * 96 - - 12 + - - 74 * + COUNT ( * )
----
470

query II rowsort
SELECT 53, - 38 * - 49 AS col2
----
53
1862

query I rowsort
SELECT - ( - ( + + 81 ) ) AS col1
----
81

query I rowsort
SELECT ALL 35 * 0 + + 93
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT SUM( + + 56 ) AS col2, 23
----
56
23

skipif mysql # not compatible
query II rowsort label-3296
SELECT SUM ( + + 56 ) AS col2, 23
----
56
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT + 20 - - 87 + + 33 * - 81 * + 75 + - - 25 + 52 + 10 - 65 * + ( + + 94 ) * - + ( + CAST( NULL AS SIGNED ) ) * + 41 + - - NULLIF ( - 81, - COALESCE ( + 3, + 44 / 78, - 29 * 16 + + 85 * + 84 ) + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT + 20 - - 87 + + 33 * - 81 * + 75 + - - 25 + 52 + 10 - 65 * + ( + + 94 ) * - + ( + CAST ( NULL AS INTEGER ) ) * + 41 + - - NULLIF ( - 81, - COALESCE ( + 3, + 44 / 78, - 29 * 16 + + 85 * + 84 ) + 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ALL COUNT( * ) * + COUNT( + 10 ) * COUNT( * ) + 61 * - ( 20 ) + 21 + 26
----
-1172

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL COUNT ( * ) * + COUNT ( + 10 ) * COUNT ( * ) + 61 * - ( 20 ) + 21 + 26
----
-1172

query I rowsort
SELECT + 91 + - 23
----
68

query I rowsort
SELECT - ( + - 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT ALL ( + COUNT( * ) ) - + 92 DIV 39 + + 78
----
77

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL ( + COUNT ( * ) ) - + 92 / 39 + + 78
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT + 84 * - - ( + - SUM( DISTINCT - - 47 ) ) * + 36 AS col0
----
-142128

skipif mysql # not compatible
query I rowsort label-3302
SELECT + 84 * - - ( + - SUM ( DISTINCT - - 47 ) ) * + 36 AS col0
----
-142128

query I rowsort
SELECT - 33 col0
----
-33

query I rowsort
SELECT DISTINCT 84 * + 32 * 80
----
215040

query I rowsort
SELECT ALL ( - 83 ) AS col0
----
-83

query I rowsort
SELECT DISTINCT ( - + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT COUNT( DISTINCT + - 98 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT COUNT ( DISTINCT + - 98 ) AS col2
----
1

query I rowsort
SELECT ALL 46
----
46

query I rowsort
SELECT ALL 98
----
98

query I rowsort
SELECT 15 AS col0
----
15

query I rowsort
SELECT DISTINCT 51 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3312
SELECT 76 * + 8 AS col1, 38 DIV COUNT( * ) * 77 + - 52
----
608
2874

skipif mysql # not compatible
query II rowsort label-3312
SELECT 76 * + 8 AS col1, 38 / COUNT ( * ) * 77 + - 52
----
608
2874

query I rowsort
SELECT ALL + 7 * NULLIF ( - 43, 38 ) AS col0
----
-301

query I rowsort
SELECT ALL + ( 73 )
----
73

query I rowsort
SELECT - - 22 AS col1
----
22

query I rowsort
SELECT + + 66 AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3317
SELECT 95 DIV 81 * - 86 - - + 0 DIV - COUNT( * ) + 73 + + COALESCE ( - + 9, + - ( - COUNT( * ) ), - + CASE - - 62 WHEN - - 56 THEN - - 93 WHEN 63 + - - 13 THEN NULL ELSE + 61 DIV 39 + - 17 END )
----
-22

skipif mysql # not compatible
query I rowsort label-3317
SELECT 95 / 81 * - 86 - - + 0 / - COUNT ( * ) + 73 + + COALESCE ( - + 9, + - ( - COUNT ( * ) ), - + CASE - - 62 WHEN - - 56 THEN - - 93 WHEN 63 + - - 13 THEN NULL ELSE + 61 / 39 + - 17 END )
----
-22

query I rowsort
SELECT - 40 AS col1
----
-40

query I rowsort
SELECT ALL - 2 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL - 34 + - - CASE 24 WHEN - 60 * - 31 + COUNT( ALL + 43 ) * + COALESCE ( - COUNT( * ), - - 65 ) + 48 / + 66 + - COUNT( * ) + + + 99 + + - 78 THEN NULL ELSE + 95 END AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL - 34 + - - CASE 24 WHEN - 60 * - 31 + COUNT ( ALL + 43 ) * + COALESCE ( - COUNT ( * ), - - 65 ) + 48 / + 66 + - COUNT ( * ) + + + 99 + + - 78 THEN NULL ELSE + 95 END AS col1
----
61

query I rowsort
SELECT + 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL + ( 58 ) + + 30 + - + COUNT( * ) + + + 98
----
185

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL + ( 58 ) + + 30 + - + COUNT ( * ) + + + 98
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + COUNT( * ) * + + 62 - 84 col1
----
-22

skipif mysql # not compatible
query I rowsort label-3323
SELECT + COUNT ( * ) * + + 62 - 84 col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3325
SELECT + ( - 15 ) * + 74 AS col0, + ( + - 33 ) - + CASE + ( - ( - 42 ) ) WHEN - 91 THEN NULL WHEN 57 - + 75 THEN + - CAST( NULL AS SIGNED ) ELSE + 38 END + + 76 * - 84 * + + 29 + MAX( DISTINCT 11 + 39 * 47 ) AS col1
----
-1110
-183363

skipif mysql # not compatible
query II rowsort label-3325
SELECT + ( - 15 ) * + 74 AS col0, + ( + - 33 ) - + CASE + ( - ( - 42 ) ) WHEN - 91 THEN NULL WHEN 57 - + 75 THEN + - CAST ( NULL AS INTEGER ) ELSE + 38 END + + 76 * - 84 * + + 29 + MAX ( DISTINCT 11 + 39 * 47 ) AS col1
----
-1110
-183363

query I rowsort
SELECT - 82 + + - 75
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL + MAX( - - 68 ) + - 59
----
9

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + MAX ( - - 68 ) + - 59
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + 31 * - COUNT( DISTINCT - - 48 ) + + - 43
----
-74

skipif mysql # not compatible
query I rowsort label-3328
SELECT + 31 * - COUNT ( DISTINCT - - 48 ) + + - 43
----
-74

query I rowsort
SELECT + + 17
----
17

query I rowsort
SELECT + - 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3331
SELECT - 43 * - COUNT( * ) + + COUNT( * ) + + 10 - + - SUM( DISTINCT - - 83 ) * + - 85 + + - 15 AS col2, 25 AS col1
----
-7016
25

skipif mysql # not compatible
query II rowsort label-3331
SELECT - 43 * - COUNT ( * ) + + COUNT ( * ) + + 10 - + - SUM ( DISTINCT - - 83 ) * + - 85 + + - 15 AS col2, 25 AS col1
----
-7016
25

query I rowsort
SELECT DISTINCT - + 75
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3333
SELECT - COUNT( * ) + - 30 + - 13 + + 80 * + - 97 col2, 92 AS col2
----
-7804
92

skipif mysql # not compatible
query II rowsort label-3333
SELECT - COUNT ( * ) + - 30 + - 13 + + 80 * + - 97 col2, 92 AS col2
----
-7804
92

query I rowsort
SELECT 50 AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3335
SELECT ALL - 58 + - NULLIF ( + 8, + 2 + COUNT( * ) ) AS col1, SUM( 5 ) col0
----
-66
5

skipif mysql # not compatible
query II rowsort label-3335
SELECT ALL - 58 + - NULLIF ( + 8, + 2 + COUNT ( * ) ) AS col1, SUM ( 5 ) col0
----
-66
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3336
SELECT DISTINCT + 47 * CAST( + COUNT( * ) AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT + 47 * CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT ALL 15 + - 49 + 92 DIV - 22
----
-38

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL 15 + - 49 + 92 / - 22
----
-38

query I rowsort
SELECT 33 col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3339
SELECT - CAST( - - 91 AS SIGNED ) * + - 62 * - 54 * - 80 + - 14 * 16 * + - COALESCE ( 98, - + 24 * CAST( NULL AS SIGNED ), + 0 + - ( - 4 ), CASE + COUNT( * ) WHEN + COUNT( * ) THEN NULLIF ( ( 71 ), + 28 * 42 ) + 89 WHEN ( - 25 ) * 21 THEN NULL WHEN + CAST( - COUNT( * ) AS SIGNED ) + 1 THEN NULLIF ( + 66, + 16 ) + 19 END ) + 53 AS col0
----
24395445

skipif mysql # not compatible
query I rowsort label-3339
SELECT - CAST ( - - 91 AS INTEGER ) * + - 62 * - 54 * - 80 + - 14 * 16 * + - COALESCE ( 98, - + 24 * CAST ( NULL AS INTEGER ), + 0 + - ( - 4 ), CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN NULLIF ( ( 71 ), + 28 * 42 ) + 89 WHEN ( - 25 ) * 21 THEN NULL WHEN + CAST ( - COUNT ( * ) AS INTEGER ) + 1 THEN NULLIF ( + 66, + 16 ) + 19 END ) + 53 AS col0
----
24395445

query I rowsort
SELECT 6 * COALESCE ( - 39, - 46 ) AS col1
----
-234

query II rowsort
SELECT - 18, 77 AS col2
----
-18
77

query I rowsort
SELECT 44 + + 7 AS col0
----
51

query I rowsort
SELECT ALL 79 - + 79
----
0

query II rowsort
SELECT - 21, + 97 * - 48 * - 29 + - ( + 55 ) AS col2
----
-21
134969

query I rowsort
SELECT - 74 AS col0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3346
SELECT COUNT( * ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3346
SELECT COUNT ( * ) / + 92
----
0

query I rowsort
SELECT ALL 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT ALL 29 AS col0, + 53 - - - 74 * + + COUNT( ALL - ( - - 15 ) )
----
29
-21

skipif mysql # not compatible
query II rowsort label-3348
SELECT ALL 29 AS col0, + 53 - - - 74 * + + COUNT ( ALL - ( - - 15 ) )
----
29
-21

query I rowsort
SELECT 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL 25 * + - MAX( + + 12 ) AS col1
----
-300

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL 25 * + - MAX ( + + 12 ) AS col1
----
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT ( - 72 ) DIV - + ( - 68 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3351
SELECT ( - 72 ) / - + ( - 68 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3352
SELECT ALL CAST( NULL AS SIGNED ) / - 81 * + + 48 AS col1, 19 * - - 27 + 37
----
NULL
550

skipif mysql # not compatible
query II rowsort label-3352
SELECT ALL CAST ( NULL AS INTEGER ) / - 81 * + + 48 AS col1, 19 * - - 27 + 37
----
NULL
550

query I rowsort
SELECT ALL 41
----
41

query I rowsort
SELECT - 44
----
-44

query II rowsort
SELECT - 97 AS col2, - 10 AS col2
----
-97
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3356
SELECT ( 45 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT ( 45 ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 76 + + 73
----
149

query I rowsort
SELECT ALL 65 * 54
----
3510

query II rowsort
SELECT - 53 col0, 85
----
-53
85

query II rowsort
SELECT 85 * - NULLIF ( + - 71, 50 * + - ( + 97 ) ) col2, 71 AS col0
----
6035
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3361
SELECT 68 DIV + 93 + + - SUM( ALL ( + 15 ) ) + - - CAST( + 93 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-3361
SELECT 68 / + 93 + + - SUM ( ALL ( + 15 ) ) + - - CAST ( + 93 AS INTEGER )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3362
SELECT DISTINCT - 44 + 2 * + + MIN( DISTINCT - - 56 ) * - 14 + + + NULLIF ( + + 19, - + 72 ), - 57 AS col2
----
-1593
-57

skipif mysql # not compatible
query II rowsort label-3362
SELECT DISTINCT - 44 + 2 * + + MIN ( DISTINCT - - 56 ) * - 14 + + + NULLIF ( + + 19, - + 72 ), - 57 AS col2
----
-1593
-57

query I rowsort
SELECT ALL + 85 * 13
----
1105

query I rowsort
SELECT ( - 19 ) * - 90 AS col0
----
1710

query I rowsort
SELECT ALL + 63 + - - 97
----
160

query I rowsort
SELECT ALL 19
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3367
SELECT - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT ALL 0 * - + ( + 0 ) * 83 * CAST( + 63 AS SIGNED ) * - 42 + + 9 + - 6 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL 0 * - + ( + 0 ) * 83 * CAST ( + 63 AS INTEGER ) * - 42 + + 9 + - 6 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3369
SELECT + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 93 * - 46 AS col1
----
-4278

query II rowsort
SELECT + 53, - 32 AS col0
----
53
-32

query II rowsort
SELECT + - 83 AS col0, 11
----
-83
11

query I rowsort
SELECT + - 86
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) )
----
NULL

query I rowsort
SELECT 16 * 52
----
832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3376
SELECT + MIN( ALL + - 33 ) + + + 97 DIV 46 * - SUM( ALL + 54 ) + + - COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-3376
SELECT + MIN ( ALL + - 33 ) + + + 97 / 46 * - SUM ( ALL + 54 ) + + - COUNT ( * )
----
-142

query I rowsort
SELECT ALL - + 63 AS col2
----
-63

query I rowsort
SELECT + + ( - - 57 )
----
57

query I rowsort
SELECT ALL + 67 + - ( + + 57 ) - 26 + - + 15 AS col2
----
-31

query I rowsort
SELECT ALL - 9 * 99
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT DISTINCT - - MIN( ALL + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT - - MIN ( ALL + 61 )
----
61

query I rowsort
SELECT - 56 * - 90 AS col2
----
5040

query I rowsort
SELECT DISTINCT - + 95 * - - 70 AS col2
----
-6650

query I rowsort
SELECT 10 AS col0
----
10

query I rowsort
SELECT + 66 col2
----
66

query I rowsort
SELECT DISTINCT - ( + 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT 25 - + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3387
SELECT 25 - + - COUNT ( * )
----
26

query I rowsort
SELECT ALL - ( 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL SUM( - - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL SUM ( - - 78 ) AS col1
----
78

query I rowsort
SELECT - 28
----
-28

query I rowsort
SELECT ALL 30
----
30

query I rowsort
SELECT - 31 AS col0
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-3393
SELECT + COALESCE ( - CASE + - 92 WHEN - 78 THEN + + ( + + 35 ) WHEN 0 THEN NULL END, 90 DIV + 45 + + 12, - 0 ) - + ( + ( + 29 ) ) AS col1, + 93 AS col1
----
-15
93

skipif mysql # not compatible
query II rowsort label-3393
SELECT + COALESCE ( - CASE + - 92 WHEN - 78 THEN + + ( + + 35 ) WHEN 0 THEN NULL END, 90 / + 45 + + 12, - 0 ) - + ( + ( + 29 ) ) AS col1, + 93 AS col1
----
-15
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT - 19 * - NULLIF ( + 4, + + ( + COUNT( * ) ) * + 12 - + - 94 - + 75 * ( + 58 ) / - 90 )
----
76

skipif mysql # not compatible
query I rowsort label-3394
SELECT - 19 * - NULLIF ( + 4, + + ( + COUNT ( * ) ) * + 12 - + - 94 - + 75 * ( + 58 ) / - 90 )
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-3395
SELECT + 84 - + 47 AS col2, + 8 DIV - 7
----
37
-1

skipif mysql # not compatible
query II rowsort label-3395
SELECT + 84 - + 47 AS col2, + 8 / - 7
----
37
-1

query I rowsort
SELECT ALL NULLIF ( + 58, 40 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - SUM( + 73 ) * + - 30
----
2190

skipif mysql # not compatible
query I rowsort label-3397
SELECT - SUM ( + 73 ) * + - 30
----
2190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT + CAST( + + 58 AS SIGNED ) + CASE - 61 WHEN 15 * COUNT( * ) THEN + - 70 + - 72 WHEN + 82 THEN NULL END / CASE - 37 WHEN 0 THEN NULL WHEN + 80 * + + 40 THEN NULL ELSE + - 1 END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT + CAST ( + + 58 AS INTEGER ) + CASE - 61 WHEN 15 * COUNT ( * ) THEN + - 70 + - 72 WHEN + 82 THEN NULL END / CASE - 37 WHEN 0 THEN NULL WHEN + 80 * + + 40 THEN NULL ELSE + - 1 END / COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 99
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3400
SELECT - COUNT( * ) + + COUNT( * ) * 74 DIV + 55 AS col0, + 74, - 66 AS col2
----
0
74
-66

skipif mysql # not compatible
query III rowsort label-3400
SELECT - COUNT ( * ) + + COUNT ( * ) * 74 / + 55 AS col0, + 74, - 66 AS col2
----
0
74
-66

query I rowsort
SELECT 53 AS col2
----
53

query I rowsort
SELECT + 24 + + 62 + + 64 AS col0
----
150

query II rowsort
SELECT ALL - 89 + + 91 AS col2, 4 + + - 16 + - 87
----
2
-99

query I rowsort
SELECT DISTINCT - 11 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT COUNT( * ) + - 24 * - + 43 AS col1
----
1033

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT COUNT ( * ) + - 24 * - + 43 AS col1
----
1033

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL + COUNT( * ) + - 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL + COUNT ( * ) + - 2 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 76 * + 38 + + 52
----
2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + 41 - - 98 + - MAX( - + 43 )
----
181

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + 41 - - 98 + - MAX ( - + 43 )
----
181

query I rowsort
SELECT - 59 * + 27 AS col2
----
-1593

query I rowsort
SELECT + 28 + + 81 * - 94 AS col2
----
-7586

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT + + 37 DIV + 13 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3411
SELECT + + 37 / + 13 AS col2
----
2

query I rowsort
SELECT - + 8 col0
----
-8

query I rowsort
SELECT ALL + ( - - 88 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3414
SELECT + 64 DIV + - 64 + 51 DIV + 94 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3414
SELECT + 64 / + - 64 + 51 / + 94 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT + - 2 + + + 62 + COUNT( * ) + - 48 * 55 col0, - 18
----
-2579
-18

skipif mysql # not compatible
query II rowsort label-3415
SELECT + - 2 + + + 62 + COUNT ( * ) + - 48 * 55 col0, - 18
----
-2579
-18

query I rowsort
SELECT DISTINCT + ( + ( + 65 ) ) AS col2
----
65

query I rowsort
SELECT 16 AS col2
----
16

query I rowsort
SELECT + 16 col2
----
16

query I rowsort
SELECT ALL + + 37 col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT 83 * - - CAST( NULL AS SIGNED ) * - 94 + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT 83 * - - CAST ( NULL AS INTEGER ) * - 94 + - + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT CASE - COUNT( * ) WHEN 85 THEN + 59 * COUNT( * ) + + 51 WHEN - 75 THEN + - ( + + ( 91 ) ) WHEN + - 39 THEN NULL WHEN 47 THEN NULL ELSE - + 68 + + NULLIF ( - 31, ( - 92 ) + + + AVG ( ALL + 29 ) * - 41 ) END col0
----
-99

skipif mysql # not compatible
query I rowsort label-3421
SELECT CASE - COUNT ( * ) WHEN 85 THEN + 59 * COUNT ( * ) + + 51 WHEN - 75 THEN + - ( + + ( 91 ) ) WHEN + - 39 THEN NULL WHEN 47 THEN NULL ELSE - + 68 + + NULLIF ( - 31, ( - 92 ) + + + AVG ( ALL + 29 ) * - 41 ) END col0
----
-99

query I rowsort
SELECT + 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL + MIN( DISTINCT - + 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + MIN ( DISTINCT - + 30 ) AS col2
----
-30

query I rowsort
SELECT ALL + 60 AS col1
----
60

query I rowsort
SELECT ALL - 83 * - 78 col0
----
6474

query I rowsort
SELECT DISTINCT 61 * ( + ( + 46 ) ) AS col0
----
2806

query I rowsort
SELECT ALL + ( - 39 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT COALESCE ( CAST( NULL AS SIGNED ), - - 97 * + CAST( NULL AS SIGNED ) + + AVG ( 45 ) * - 88 / + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - - 97 * + CAST ( NULL AS INTEGER ) + + AVG ( 45 ) * - 88 / + 8 )
----
NULL

query I rowsort
SELECT - 90 * - 80 col1
----
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT + 19 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3430
SELECT + 19 / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT COUNT( 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3431
SELECT COUNT ( 88 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT DISTINCT NULLIF ( - - 18, - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT NULLIF ( - - 18, - COUNT ( * ) )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT - 54 DIV - 2 * - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-3433
SELECT - 54 / - 2 * - COUNT ( * )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT - ( - + 29 ) + - + COUNT( * ), - 11 AS col2
----
28
-11

skipif mysql # not compatible
query II rowsort label-3435
SELECT - ( - + 29 ) + - + COUNT ( * ), - 11 AS col2
----
28
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3436
SELECT DISTINCT - MIN( DISTINCT - ( + + ( - - 14 ) ) ) + + - 43 + + 69 DIV - 15 + - 54 * + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - MIN ( DISTINCT - ( + + ( - - 14 ) ) ) + + - 43 + + 69 / - 15 + - 54 * + + COUNT ( * )
----
-87

query I rowsort
SELECT ALL + 21 * CASE NULLIF ( - 66, 93 ) WHEN + 64 / 96 THEN NULL WHEN - - 29 THEN + 38 + 43 + + 9 / 61 END
----
NULL

query I rowsort
SELECT ALL + 48 + + 38
----
86

query I rowsort
SELECT ALL 12 + + 62 AS col0
----
74

query I rowsort
SELECT - 42 col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL + COUNT( * ) * - 64 * + - 45 + - + CASE - 11 WHEN + 86 + + 5 THEN - COUNT( * ) * + - CAST( - - NULLIF ( + COUNT( * ), + - 24 ) AS SIGNED ) / - COUNT( * ) + NULLIF ( - + 4, - 66 ) * + + 49 WHEN + 17 * 82 THEN NULL ELSE + AVG ( ALL + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + COUNT ( * ) * - 64 * + - 45 + - + CASE - 11 WHEN + 86 + + 5 THEN - COUNT ( * ) * + - CAST ( - - NULLIF ( + COUNT ( * ), + - 24 ) AS INTEGER ) / - COUNT ( * ) + NULLIF ( - + 4, - 66 ) * + + 49 WHEN + 17 * 82 THEN NULL ELSE + AVG ( ALL + CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT - ( - - 14 )
----
-14

query I rowsort
SELECT + - 66 + - 71
----
-137

query I rowsort
SELECT ALL - - 45 + 99 + - + 96 * 60 col0
----
-5616

query I rowsort
SELECT + 64 col1
----
64

query I rowsort
SELECT + + 92 + 87 AS col2
----
179

query II rowsort
SELECT 57 AS col1, 13 AS col1
----
57
13

query I rowsort
SELECT - + 23 AS col2
----
-23

query I rowsort
SELECT 94
----
94

query I rowsort
SELECT + 48 AS col0
----
48

query I rowsort
SELECT DISTINCT + + 16 - 22 * + + 58
----
-1260

query I rowsort
SELECT - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT - - 73 - + MIN( ALL - + 46 ) * + COUNT( * ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-3453
SELECT - - 73 - + MIN ( ALL - + 46 ) * + COUNT ( * ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT - COUNT( + 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - COUNT ( + 78 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL COUNT( DISTINCT + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL COUNT ( DISTINCT + 97 )
----
1

query I rowsort
SELECT 75
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3457
SELECT DISTINCT - 47 DIV + + 16 - + MIN( 7 ) DIV - 55 * COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT - 47 / + + 16 - + MIN ( 7 ) / - 55 * COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3458
SELECT + - COALESCE ( - MAX( 40 ), - 97 + + + COUNT( * ) + + 93 DIV + 11, 43 )
----
40

skipif mysql # not compatible
query I rowsort label-3458
SELECT + - COALESCE ( - MAX ( 40 ), - 97 + + + COUNT ( * ) + + 93 / + 11, 43 )
----
40

query I rowsort
SELECT + + ( - 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT + - COALESCE ( + - COUNT( * ), COUNT( * ) ) - + 1 * 82
----
-81

skipif mysql # not compatible
query I rowsort label-3460
SELECT + - COALESCE ( + - COUNT ( * ), COUNT ( * ) ) - + 1 * 82
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT - - ( - COUNT( * ) ) * - COALESCE ( 90, + ( COUNT( * ) ), + 28 * + 19 * 28 - 94 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3461
SELECT - - ( - COUNT ( * ) ) * - COALESCE ( 90, + ( COUNT ( * ) ), + 28 * + 19 * 28 - 94 ) AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT + - 15 * + - 82 DIV 42 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT + - 15 * + - 82 / 42 / - 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3463
SELECT + + 46 * - + 61 + + 45 * + 20 + - ( + 3 ) + - + 23 DIV + - 94 * - + MIN( ( - 86 ) ) * + - MAX( - 27 ) * + + ( + 22 ) + + 79
----
-1830

skipif mysql # not compatible
query I rowsort label-3463
SELECT + + 46 * - + 61 + + 45 * + 20 + - ( + 3 ) + - + 23 / + - 94 * - + MIN ( ( - 86 ) ) * + - MAX ( - 27 ) * + + ( + 22 ) + + 79
----
-1830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT + CASE - - ( + NULLIF ( ( + 20 ), - 31 * 26 ) ) WHEN + COALESCE ( ( + ( - SUM( DISTINCT + 97 ) ) ), + COUNT( * ), + ( - - 13 ) ) + - - 83 THEN NULL WHEN + + 84 THEN + - 18 * - CAST( + - 73 AS SIGNED ) ELSE + 42 END
----
42

skipif mysql # not compatible
query I rowsort label-3464
SELECT + CASE - - ( + NULLIF ( ( + 20 ), - 31 * 26 ) ) WHEN + COALESCE ( ( + ( - SUM ( DISTINCT + 97 ) ) ), + COUNT ( * ), + ( - - 13 ) ) + - - 83 THEN NULL WHEN + + 84 THEN + - 18 * - CAST ( + - 73 AS INTEGER ) ELSE + 42 END
----
42

query I rowsort
SELECT ALL + 5
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT CAST( + 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-3466
SELECT CAST ( + 41 AS INTEGER )
----
41

query II rowsort
SELECT ALL + 60 AS col0, COALESCE ( - 30, + - 79 * 89 + - + 16 )
----
60
-30

query I rowsort
SELECT DISTINCT - 76 col0
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3469
SELECT + 19 AS col2, CAST( NULL AS DECIMAL ) * + 45 + - 31 AS col1
----
19
NULL

skipif mysql # not compatible
query II rowsort label-3469
SELECT + 19 AS col2, CAST ( NULL AS REAL ) * + 45 + - 31 AS col1
----
19
NULL

query I rowsort
SELECT 86 AS col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT ALL - 95, COUNT( * ) AS col0
----
-95
1

skipif mysql # not compatible
query II rowsort label-3471
SELECT ALL - 95, COUNT ( * ) AS col0
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT 61 * - COUNT( * ) + - 31 col1
----
-92

skipif mysql # not compatible
query I rowsort label-3472
SELECT 61 * - COUNT ( * ) + - 31 col1
----
-92

query II rowsort
SELECT 73 AS col2, 26 AS col1
----
73
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ( - 9 ) - + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3474
SELECT ( - 9 ) - + COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT + 85 AS col0
----
85

query I rowsort
SELECT 88 * 52
----
4576

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3477
SELECT ALL - 62 + + - CAST( + 67 AS SIGNED ) + - CAST( + ( 5 ) AS SIGNED ) col2, 93 * 66 AS col0
----
-134
6138

skipif mysql # not compatible
query II rowsort label-3477
SELECT ALL - 62 + + - CAST ( + 67 AS INTEGER ) + - CAST ( + ( 5 ) AS INTEGER ) col2, 93 * 66 AS col0
----
-134
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT MIN( - - 82 ) + 58
----
140

skipif mysql # not compatible
query I rowsort label-3478
SELECT MIN ( - - 82 ) + 58
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL COUNT( - 67 ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL COUNT ( - 67 ) + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT + 23 * 70 + + + ( + + 7 ) + + 45 AS col2
----
1662

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL + 89 + - 24 + + CASE 38 WHEN 98 - + - ( + COUNT( * ) ) THEN COUNT( * ) + - 74 * COUNT( * ) / + + 95 / 81 ELSE NULL END + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL + 89 + - 24 + + CASE 38 WHEN 98 - + - ( + COUNT ( * ) ) THEN COUNT ( * ) + - 74 * COUNT ( * ) / + + 95 / 81 ELSE NULL END + + 79
----
NULL

query I rowsort
SELECT - 96 AS col1
----
-96

query I rowsort
SELECT DISTINCT 97
----
97

query I rowsort
SELECT 85 * + 46 * - 25
----
-97750

query I rowsort
SELECT DISTINCT 52 AS col2
----
52

query I rowsort
SELECT 59 + - - 46 * + + 66 - + 94 col0
----
3001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3487
SELECT ALL CAST( + 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL CAST ( + 91 AS INTEGER ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + 22 * + + 51 + - 56 + COUNT( * )
----
1067

skipif mysql # not compatible
query I rowsort label-3488
SELECT + 22 * + + 51 + - 56 + COUNT ( * )
----
1067

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT + ( + 21 ) + + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-3489
SELECT + ( + 21 ) + + + COUNT ( * )
----
22

query I rowsort
SELECT - 50 * + 37 * - - 5 col0
----
-9250

query I rowsort
SELECT NULLIF ( - 12, + 90 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3492
SELECT DISTINCT - 32 AS col0, COUNT( * ) AS col2
----
-32
1

skipif mysql # not compatible
query II rowsort label-3492
SELECT DISTINCT - 32 AS col0, COUNT ( * ) AS col2
----
-32
1

query I rowsort
SELECT 91 + 8
----
99

query I rowsort
SELECT - + 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - 77 + - 11 + + + CASE ( + 97 ) WHEN - + 14 * + ( + + 87 ) THEN 23 - - 2 + + + 43 + + SUM( - 80 ) / + 96 WHEN COUNT( * ) * + + 5 + + ( + + 96 ) * - + 11 THEN ( - - 2 ) WHEN 1 + 40 THEN NULL ELSE NULL END * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT - 77 + - 11 + + + CASE ( + 97 ) WHEN - + 14 * + ( + + 87 ) THEN 23 - - 2 + + + 43 + + SUM ( - 80 ) / + 96 WHEN COUNT ( * ) * + + 5 + + ( + + 96 ) * - + 11 THEN ( - - 2 ) WHEN 1 + 40 THEN NULL ELSE NULL END * + 32
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3496
SELECT ALL 32 AS col0, 88 - 13 + + 93 DIV 46
----
32
77

skipif mysql # not compatible
query II rowsort label-3496
SELECT ALL 32 AS col0, 88 - 13 + + 93 / 46
----
32
77

query I rowsort
SELECT 84 + 73 col2
----
157

query I rowsort
SELECT ALL - + 18 * - 55 AS col1
----
990

query I rowsort
SELECT - NULLIF ( - - 94, + 45 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT ALL + NULLIF ( ( + COUNT( * ) ), - - 73 + + 26 + COUNT( * ) ) DIV 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL + NULLIF ( ( + COUNT ( * ) ), - - 73 + + 26 + COUNT ( * ) ) / 83 col1
----
0

query I rowsort
SELECT - 55 AS col0
----
-55

query I rowsort
SELECT - 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL - NULLIF ( 95, 38 ) * ( - - ( + + MAX( DISTINCT + 90 ) ) ) + + 72 + + 11 * + 1 AS col2
----
-8467

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL - NULLIF ( 95, 38 ) * ( - - ( + + MAX ( DISTINCT + 90 ) ) ) + + 72 + + 11 * + 1 AS col2
----
-8467

query I rowsort
SELECT + 66 * - 29 col0
----
-1914

query I rowsort
SELECT NULLIF ( 60, + 58 ) AS col0
----
60

query I rowsort
SELECT - - 40 AS col2
----
40

query I rowsort
SELECT ( + 4 )
----
4

query I rowsort
SELECT ALL + 27
----
27

query I rowsort
SELECT 71 + - 62
----
9

query I rowsort
SELECT - 93 * - 94 AS col2
----
8742

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT 30 * + - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3512
SELECT 30 * + - COUNT ( * ) AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT - 17 DIV + 96 + NULLIF ( + 28, - 20 )
----
28

skipif mysql # not compatible
query I rowsort label-3513
SELECT - 17 / + 96 + NULLIF ( + 28, - 20 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL - - ( - - COUNT( - 13 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - - ( - - COUNT ( - 13 ) ) AS col2
----
1

query II rowsort
SELECT DISTINCT - 91 AS col2, 73 + - - 97 AS col1
----
-91
170

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT ALL 9 DIV - + ( + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL 9 / - + ( + 60 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT COUNT( * ) * 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3517
SELECT COUNT ( * ) * 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL + 92 + 38 * ( + + COUNT( * ) ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL + 92 + 38 * ( + + COUNT ( * ) ) AS col2
----
130

query I rowsort
SELECT + 14 col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3520
SELECT 56 DIV 39 + CAST( + COUNT( * ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-3520
SELECT 56 / 39 + CAST ( + COUNT ( * ) AS INTEGER )
----
2

query I rowsort
SELECT ALL - 95
----
-95

query I rowsort
SELECT + 25
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3523
SELECT ALL 66 + - 9, 57 DIV - 99 AS col1
----
57
0

skipif mysql # not compatible
query II rowsort label-3523
SELECT ALL 66 + - 9, 57 / - 99 AS col1
----
57
0

query I rowsort
SELECT + 80 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT + NULLIF ( - 79, 16 ) DIV + + 69 + - 81 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-3525
SELECT + NULLIF ( - 79, 16 ) / + + 69 + - 81 AS col2
----
-82

query I rowsort
SELECT ALL - 30 AS col1
----
-30

query I rowsort
SELECT + 91 AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3528
SELECT ALL 7 + 76 AS col0, + 88 DIV 6 + + - CAST( + - 54 AS SIGNED )
----
83
68

skipif mysql # not compatible
query II rowsort label-3528
SELECT ALL 7 + 76 AS col0, + 88 / 6 + + - CAST ( + - 54 AS INTEGER )
----
83
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT 59 * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-3529
SELECT 59 * - COUNT ( * )
----
-59

query I rowsort
SELECT ALL - 33 AS col0
----
-33

query I rowsort
SELECT 4 + + 7 AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT DISTINCT + COALESCE ( - 47, 84, + - 41 DIV - 56 + 55 ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT + COALESCE ( - 47, 84, + - 41 / - 56 + 55 ) col0
----
-47

query I rowsort
SELECT ALL - 16 col0
----
-16

query II rowsort
SELECT - 47 * + - 96 + 67, - 32 * - - 88 + + 72 AS col0
----
4579
-2744

query I rowsort
SELECT - 17 * + 57
----
-969

query I rowsort
SELECT - 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL COUNT( + 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL COUNT ( + 74 ) AS col2
----
1

query I rowsort
SELECT - - 37 col2
----
37

query I rowsort
SELECT DISTINCT + 81
----
81

query I rowsort
SELECT DISTINCT 83 AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT DISTINCT 62 - 7 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT 62 - 7 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 19 col0
----
19

query II rowsort
SELECT - CASE 93 WHEN 66 THEN 16 WHEN + 0 THEN NULL END * + - 96 * + ( + 46 ), - 97 AS col2
----
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT COUNT( * ) + + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3544
SELECT COUNT ( * ) + + + 96 AS col0
----
97

query I rowsort
SELECT ( - 66 ) AS col0
----
-66

query I rowsort
SELECT - 84 AS col0
----
-84

query I rowsort
SELECT DISTINCT 12
----
12

query I rowsort
SELECT - 91 - - 58
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3550
SELECT - - 38 DIV - COUNT( + + 31 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-3550
SELECT - - 38 / - COUNT ( + + 31 ) col1
----
-38

query I rowsort
SELECT ALL - 24 + + 30
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT - MAX( DISTINCT + 45 ) * - ( - 81 ) AS col1
----
-3645

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - MAX ( DISTINCT + 45 ) * - ( - 81 ) AS col1
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT COALESCE ( - 65, - - MAX( DISTINCT + 21 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3553
SELECT COALESCE ( - 65, - - MAX ( DISTINCT + 21 ) )
----
-65

query I rowsort
SELECT + 12 AS col2
----
12

query I rowsort
SELECT ALL + 99 AS col0
----
99

query I rowsort
SELECT + 15 col1
----
15

query I rowsort
SELECT COALESCE ( + 53, 30 * + - 85 * 70 + - 69 ) AS col1
----
53

query I rowsort
SELECT + 69 col1
----
69

query I rowsort
SELECT + 23 AS col1
----
23

query I rowsort
SELECT DISTINCT + 70 * 14 + - 14 * 77 * + 9 AS col2
----
-8722

query II rowsort
SELECT DISTINCT + 30 col2, - 20
----
30
-20

query II rowsort
SELECT DISTINCT + 1 AS col0, + 78 AS col1
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL 90 * - COUNT( * ) + + 34
----
-56

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL 90 * - COUNT ( * ) + + 34
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT NULLIF ( - - MAX( - 25 ), + - ( + + 96 ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3564
SELECT NULLIF ( - - MAX ( - 25 ), + - ( + + 96 ) ) AS col1
----
-25

query I rowsort
SELECT NULLIF ( 71, - - 28 ) col0
----
71

query I rowsort
SELECT - ( 39 ) * 47 AS col2
----
-1833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3567
SELECT + COUNT( * ), + ( - - 88 ) - + 33 * + CASE - COUNT( * ) WHEN + + 68 THEN - 18 WHEN - 13 THEN NULL WHEN - 86 THEN 18 * + + 86 + AVG ( - 17 ) + COUNT( * ) WHEN - - 25 * + + 37 + COUNT( * ) * + - 77 - 53 THEN + + CAST( - 19 AS DECIMAL ) ELSE NULL END * + 61 * 59 + CAST( + 24 AS SIGNED ) * 50 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3567
SELECT + COUNT ( * ), + ( - - 88 ) - + 33 * + CASE - COUNT ( * ) WHEN + + 68 THEN - 18 WHEN - 13 THEN NULL WHEN - 86 THEN 18 * + + 86 + AVG ( - 17 ) + COUNT ( * ) WHEN - - 25 * + + 37 + COUNT ( * ) * + - 77 - 53 THEN + + CAST ( - 19 AS REAL ) ELSE NULL END * + 61 * 59 + CAST ( + 24 AS INTEGER ) * 50 AS col2
----
1
NULL

query I rowsort
SELECT + 48 AS col1
----
48

query I rowsort
SELECT + NULLIF ( - - 33, - 77 * 86 )
----
33

query I rowsort
SELECT ALL 53 * + 53
----
2809

query I rowsort
SELECT - 59 + 88 * + + 46
----
3989

query I rowsort
SELECT + 65 * 98 AS col1
----
6370

query I rowsort
SELECT ALL + - 6
----
-6

query I rowsort
SELECT DISTINCT - 88 * + 58 + 96 AS col2
----
-5008

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL - + 47 * + 40
----
-1880

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT + 68 DIV 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3577
SELECT + 68 / 48 AS col0
----
1

query I rowsort
SELECT ALL 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT - COUNT( + 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-3579
SELECT - COUNT ( + 13 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - 25 + + SUM( 5 )
----
-20

skipif mysql # not compatible
query I rowsort label-3580
SELECT - 25 + + SUM ( 5 )
----
-20

query II rowsort
SELECT + 95 + - 50 * + + 24, + 90 * - + 34 AS col0
----
-1105
-3060

query I rowsort
SELECT - - 31
----
31

query I rowsort
SELECT + - 3 * - 87
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT + 22 + COUNT( * ) * + 84 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 22 + COUNT ( * ) * + 84 AS col0
----
106

query I rowsort
SELECT ALL 29 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT ALL + MAX( - COALESCE ( 87, CAST( - 60 AS SIGNED ) ) ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL + MAX ( - COALESCE ( 87, CAST ( - 60 AS INTEGER ) ) ) AS col2
----
-87

query I rowsort
SELECT DISTINCT COALESCE ( + 23, + - 83 + - + 85 ) + + 7 col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COUNT( * ) + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + 47
----
NULL

query I rowsort
SELECT ALL 54 + + 34 AS col2
----
88

query I rowsort
SELECT ALL - - 46 + 51 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL - 98 + 17 * + NULLIF ( + - 36, + 12 / - - COUNT( * ) ) * + + 27
----
-16622

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - 98 + 17 * + NULLIF ( + - 36, + 12 / - - COUNT ( * ) ) * + + 27
----
-16622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT ALL 81 * + CAST( - 22 AS SIGNED ) * COUNT( * ) * + + ( + 2 ) * + - 9
----
32076

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL 81 * + CAST ( - 22 AS INTEGER ) * COUNT ( * ) * + + ( + 2 ) * + - 9
----
32076

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT + COUNT( DISTINCT 15 ) + - + 25 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3593
SELECT + COUNT ( DISTINCT 15 ) + - + 25 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT - + 76 * - COUNT( * ) - MAX( DISTINCT - 98 ) + 71 AS col2
----
245

skipif mysql # not compatible
query I rowsort label-3594
SELECT - + 76 * - COUNT ( * ) - MAX ( DISTINCT - 98 ) + 71 AS col2
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT - MAX( - 97 ) + + 32
----
129

skipif mysql # not compatible
query I rowsort label-3595
SELECT - MAX ( - 97 ) + + 32
----
129

query I rowsort
SELECT 8 col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT - ( - COUNT( * ) ), + 57 AS col2
----
1
57

skipif mysql # not compatible
query II rowsort label-3597
SELECT - ( - COUNT ( * ) ), + 57 AS col2
----
1
57

query I rowsort
SELECT 89 AS col1
----
89

query I rowsort
SELECT ALL 67 AS col2
----
67

query I rowsort
SELECT DISTINCT + 92 AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT ALL - 3 DIV + - 26 * - + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - 3 / + - 26 * - + 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT 66 * + COUNT( * ) + + + 85 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-3602
SELECT 66 * + COUNT ( * ) + + + 85 AS col1
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT ALL 17 DIV - - 10 + 0 DIV 31 col0
----
1

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL 17 / - - 10 + 0 / 31 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3604
SELECT DISTINCT ( - 57 ) / - COUNT( * ) + 13 - + + COUNT( * ) + CAST( NULL AS SIGNED ) - MAX( + 70 ) / + 3 + + - COALESCE ( - + CAST( NULL AS DECIMAL ), + 43, + 44 ) * 37 - - - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT ( - 57 ) / - COUNT ( * ) + 13 - + + COUNT ( * ) + CAST ( NULL AS INTEGER ) - MAX ( + 70 ) / + 3 + + - COALESCE ( - + CAST ( NULL AS REAL ), + 43, + 44 ) * 37 - - - 79 AS col1
----
NULL

query I rowsort
SELECT + 78 AS col0
----
78

query I rowsort
SELECT ALL + 30 * + ( - 45 ) * 4 AS col1
----
-5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT + 48 * + 84 * CAST( NULL AS SIGNED ) + + + AVG ( DISTINCT NULLIF ( NULLIF ( + - 48, - 30 ), - 61 ) ) * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT + 48 * + 84 * CAST ( NULL AS INTEGER ) + + + AVG ( DISTINCT NULLIF ( NULLIF ( + - 48, - 30 ), - 61 ) ) * - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - 71 + - - CASE - 10 WHEN - 56 THEN NULL WHEN - 79 * + 18 * + - 85 THEN 39 + + 87 - - 62 + - 18 * 77 + - 10 * AVG ( DISTINCT + 33 ) * - 55 * COUNT( * ) ELSE NULL END - + + 9 * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 71 + - - CASE - 10 WHEN - 56 THEN NULL WHEN - 79 * + 18 * + - 85 THEN 39 + + 87 - - 62 + - 18 * 77 + - 10 * AVG ( DISTINCT + 33 ) * - 55 * COUNT ( * ) ELSE NULL END - + + 9 * 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3609
SELECT ALL + COUNT( * ) * + 17 AS col0, + 67 AS col2
----
17
67

skipif mysql # not compatible
query II rowsort label-3609
SELECT ALL + COUNT ( * ) * + 17 AS col0, + 67 AS col2
----
17
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT - ( - ( 72 ) ) * MIN( + COALESCE ( - 52, + 6 ) )
----
-3744

skipif mysql # not compatible
query I rowsort label-3610
SELECT - ( - ( 72 ) ) * MIN ( + COALESCE ( - 52, + 6 ) )
----
-3744

query I rowsort
SELECT + 44 AS col1
----
44

query I rowsort
SELECT + 47 AS col2
----
47

query I rowsort
SELECT ( + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT DISTINCT + SUM( ALL + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT + SUM ( ALL + 95 ) AS col0
----
95

query I rowsort
SELECT DISTINCT + 26 AS col2
----
26

query I rowsort
SELECT ALL + 46 AS col2
----
46

query I rowsort
SELECT DISTINCT + + 78
----
78

query I rowsort
SELECT DISTINCT + ( + 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3619
SELECT DISTINCT + + COALESCE ( 94, + 1 + + 95 * + 94 * COUNT( * ), - 22 DIV 39 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + + COALESCE ( 94, + 1 + + 95 * + 94 * COUNT ( * ), - 22 / 39 ) col0
----
94

query I rowsort
SELECT + 23 col0
----
23

query I rowsort
SELECT ALL + + 35 AS col2
----
35

query I rowsort
SELECT ALL + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - 15 * - 11 + + 21 * + 71 * + 32 + 52 * - 89 * 39 * 42 + SUM( DISTINCT + 79 ) AS col2
----
-7532708

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 15 * - 11 + + 21 * + 71 * + 32 + 52 * - 89 * 39 * 42 + SUM ( DISTINCT + 79 ) AS col2
----
-7532708

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT ALL - 43 * 71 DIV - ( - + 99 ) - - COALESCE ( - - 41, - - 60 )
----
11

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - 43 * 71 / - ( - + 99 ) - - COALESCE ( - - 41, - - 60 )
----
11

query I rowsort
SELECT 65 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT - ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 85 * - 16 * 88
----
-119680

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT - SUM( DISTINCT + ( - + 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3628
SELECT - SUM ( DISTINCT + ( - + 2 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT COUNT ( * ) col0
----
1

query I rowsort
SELECT DISTINCT - 49 * - 13
----
637

query I rowsort
SELECT ALL 26 + + 64
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT 64 + + NULLIF ( 75, + 21 / + 28 + - 22 + + COALESCE ( + 79, + COUNT( * ) * 1, COUNT( * ) + + 93 * + + 48 * - 35 + + 27 ) + + 27 * + 51 * + 43 * - ( + COUNT( * ) ) ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-3632
SELECT 64 + + NULLIF ( 75, + 21 / + 28 + - 22 + + COALESCE ( + 79, + COUNT ( * ) * 1, COUNT ( * ) + + 93 * + + 48 * - 35 + + 27 ) + + 27 * + 51 * + 43 * - ( + COUNT ( * ) ) ) AS col0
----
139

query I rowsort
SELECT - - 7
----
7

query I rowsort
SELECT + 18 + - - 55 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL ( COUNT( * ) ) + - - MIN( ALL 83 ) + + + 88 + - CASE + - 60 WHEN 22 * + 7 / COALESCE ( + 40, - 33 - COALESCE ( + - 20, - 89 * - - COALESCE ( + SUM( - 54 ), + 42 * 4 / - + AVG ( - ( + 74 ) ) ) * - 82 - 0 ) * MAX( 6 ), - COALESCE ( 30, - 52, - 47 ) ) + + COUNT( * ) + ( + 28 ) THEN CASE + 55 WHEN - 73 THEN + COUNT( * ) * CASE - 13 * + COALESCE ( COUNT( * ) * + MAX( DISTINCT + 24 ), COALESCE ( + 25, 82 / - 68, COALESCE ( - 61, 59 ), - 77 + + COUNT( * ) * + 26 ) ) WHEN - 79 * CAST( NULL AS SIGNED ) THEN NULL WHEN + 80 THEN NULL ELSE 98 * + CASE 98 WHEN ( + 73 ) + 40 * + COUNT( * ) THEN + 44 - 86 WHEN 3 THEN + 99 END + 65 * - 16 END WHEN + 81 * 12 THEN COUNT( * ) * COUNT( * ) WHEN MIN( DISTINCT - 93 ) + 28 THEN + 41 + - COUNT( * ) * - 18 ELSE NULL END - MIN( 28 ) * 31 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL ( COUNT ( * ) ) + - - MIN ( ALL 83 ) + + + 88 + - CASE + - 60 WHEN 22 * + 7 / COALESCE ( + 40, - 33 - COALESCE ( + - 20, - 89 * - - COALESCE ( + SUM ( - 54 ), + 42 * 4 / - + AVG ( - ( + 74 ) ) ) * - 82 - 0 ) * MAX ( 6 ), - COALESCE ( 30, - 52, - 47 ) ) + + COUNT ( * ) + ( + 28 ) THEN CASE + 55 WHEN - 73 THEN + COUNT ( * ) * CASE - 13 * + COALESCE ( COUNT ( * ) * + MAX ( DISTINCT + 24 ), COALESCE ( + 25, 82 / - 68, COALESCE ( - 61, 59 ), - 77 + + COUNT ( * ) * + 26 ) ) WHEN - 79 * CAST ( NULL AS INTEGER ) THEN NULL WHEN + 80 THEN NULL ELSE 98 * + CASE 98 WHEN ( + 73 ) + 40 * + COUNT ( * ) THEN + 44 - 86 WHEN 3 THEN + 99 END + 65 * - 16 END WHEN + 81 * 12 THEN COUNT ( * ) * COUNT ( * ) WHEN MIN ( DISTINCT - 93 ) + 28 THEN + 41 + - COUNT ( * ) * - 18 ELSE NULL END - MIN ( 28 ) * 31 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 85 AS col1
----
85

query I rowsort
SELECT ALL 44 * - 54
----
-2376

query I rowsort
SELECT - 13 AS col0
----
-13

query I rowsort
SELECT ALL 65 AS col0
----
65

query I rowsort
SELECT - 67 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT ALL 37 - + 57 * 71 + - 45 + 39 + + COUNT( * ) * - 79 * + + CAST( NULL AS SIGNED ) * + - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL 37 - + 57 * 71 + - 45 + 39 + + COUNT ( * ) * - 79 * + + CAST ( NULL AS INTEGER ) * + - 58 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 71
----
71

query I rowsort
SELECT 85 * 35 AS col2
----
2975

query I rowsort
SELECT - 76 AS col1
----
-76

query I rowsort
SELECT + 78 AS col2
----
78

query II rowsort
SELECT 93 col2, 45
----
93
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3647
SELECT COALESCE ( - + COUNT( * ), + - 14, - - 5 ) DIV - - 67 * + 50 - + ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3647
SELECT COALESCE ( - + COUNT ( * ), + - 14, - - 5 ) / - - 67 * + 50 - + ( - - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3648
SELECT 69 * + + MIN( + - 28 ) DIV COUNT( * ) * - - 79 + 76 + - - 14 col0
----
-152538

skipif mysql # not compatible
query I rowsort label-3648
SELECT 69 * + + MIN ( + - 28 ) / COUNT ( * ) * - - 79 + 76 + - - 14 col0
----
-152538

query I rowsort
SELECT + 34
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3650
SELECT ( COUNT( * ) ) DIV 87 * + 80 - 12 AS col1, COUNT( * )
----
-12
1

skipif mysql # not compatible
query II rowsort label-3650
SELECT ( COUNT ( * ) ) / 87 * + 80 - 12 AS col1, COUNT ( * )
----
-12
1

query II rowsort
SELECT 9 AS col2, 95 + - 7
----
9
88

query I rowsort
SELECT 79 col2
----
79

query I rowsort
SELECT + 45 AS col0
----
45

query I rowsort
SELECT ALL - 74
----
-74

query I rowsort
SELECT DISTINCT - 45
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT ALL 11 DIV 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL 11 / 74 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT ( 63 ) - - ( 65 ) + + COUNT( * ) DIV 5 * - 55 * + 19 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-3657
SELECT ( 63 ) - - ( 65 ) + + COUNT ( * ) / 5 * - 55 * + 19 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT MIN( ALL ( - 40 ) ) * + ( + 94 )
----
-3760

skipif mysql # not compatible
query I rowsort label-3658
SELECT MIN ( ALL ( - 40 ) ) * + ( + 94 )
----
-3760

onlyif mysql # aggregate syntax: 
query II rowsort label-3659
SELECT ALL - 94, ( + ( COUNT( * ) ) ) + + COUNT( * ) * - - 33 + - - 3 AS col0
----
-94
37

skipif mysql # not compatible
query II rowsort label-3659
SELECT ALL - 94, ( + ( COUNT ( * ) ) ) + + COUNT ( * ) * - - 33 + - - 3 AS col0
----
-94
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT MAX( DISTINCT - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-3660
SELECT MAX ( DISTINCT - 65 )
----
-65

query I rowsort
SELECT + + 68
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - 14
----
-14

query I rowsort
SELECT + + 58 AS col0
----
58

query I rowsort
SELECT 73 * - 3 AS col0
----
-219

query I rowsort
SELECT 61 + + + 81
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT ALL - - COUNT( DISTINCT NULLIF ( + - 34, + 41 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL - - COUNT ( DISTINCT NULLIF ( + - 34, + 41 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL + + 4 + - + NULLIF ( 54, - 46 + 5 + + + COUNT( * ) + - + COUNT( * ) + + 44 + + 67 * - - 96 * - 96 + SUM( + + 72 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL + + 4 + - + NULLIF ( 54, - 46 + 5 + + + COUNT ( * ) + - + COUNT ( * ) + + 44 + + 67 * - - 96 * - 96 + SUM ( + + 72 ) ) AS col1
----
-50

query I rowsort
SELECT - 43 + - 64
----
-107

query I rowsort
SELECT ALL 13 + 30
----
43

query I rowsort
SELECT DISTINCT 18 * - + 24 AS col0
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT + 8 * - + COUNT( * ) + - ( + - 23 )
----
15

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 8 * - + COUNT ( * ) + - ( + - 23 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3673
SELECT - 86 AS col2, CAST( NULL AS SIGNED ) + + COUNT( * ) * + 62 AS col0
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-3673
SELECT - 86 AS col2, CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 62 AS col0
----
-86
NULL

query I rowsort
SELECT ALL + 62 + - + 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT - MIN( ALL 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - MIN ( ALL 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3676
SELECT NULLIF ( + + 14, + CASE + COUNT( * ) WHEN 30 * ( - - 53 ) * + 96 + - + 89 - + 21 THEN - 85 + - - CAST( NULL AS SIGNED ) / + ( - 50 ) WHEN - 98 THEN + - CAST( NULL AS SIGNED ) + - 15 + + 7 * 80 + + + CASE + 33 WHEN + 16 + + + NULLIF ( - NULLIF ( 22, - 17 ), 82 ) THEN NULL WHEN 54 * - 73 THEN 43 + 89 END ELSE NULL END ) * + 54 AS col2
----
756

skipif mysql # not compatible
query I rowsort label-3676
SELECT NULLIF ( + + 14, + CASE + COUNT ( * ) WHEN 30 * ( - - 53 ) * + 96 + - + 89 - + 21 THEN - 85 + - - CAST ( NULL AS INTEGER ) / + ( - 50 ) WHEN - 98 THEN + - CAST ( NULL AS INTEGER ) + - 15 + + 7 * 80 + + + CASE + 33 WHEN + 16 + + + NULLIF ( - NULLIF ( 22, - 17 ), 82 ) THEN NULL WHEN 54 * - 73 THEN 43 + 89 END ELSE NULL END ) * + 54 AS col2
----
756

query I rowsort
SELECT + ( - 65 ) + - 18 + 47
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3678
SELECT COUNT( * ) + 50 + + - 12 col1, 11 AS col2
----
39
11

skipif mysql # not compatible
query II rowsort label-3678
SELECT COUNT ( * ) + 50 + + - 12 col1, 11 AS col2
----
39
11

query I rowsort
SELECT - - 9
----
9

query I rowsort
SELECT DISTINCT - ( + ( 88 ) ) - - - 85 AS col2
----
-173

query I rowsort
SELECT ALL + 2 * - 7 AS col1
----
-14

query I rowsort
SELECT 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT + COALESCE ( - COALESCE ( + COALESCE ( + COALESCE ( + - MAX( ALL + 14 ), - + 47 ), - + 52, + + 62 ), - 74 + 57, - - 82 ), - 59 + - 91 + COUNT( * ) * - 76 ) * - 23 AS col2
----
-322

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT + COALESCE ( - COALESCE ( + COALESCE ( + COALESCE ( + - MAX ( ALL + 14 ), - + 47 ), - + 52, + + 62 ), - 74 + 57, - - 82 ), - 59 + - 91 + COUNT ( * ) * - 76 ) * - 23 AS col2
----
-322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3684
SELECT ALL - 75 - COALESCE ( + 44, + 24 DIV - + CAST( + MAX( - + 32 ) AS SIGNED ), - COUNT( * ) - - - 53 )
----
-119

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - 75 - COALESCE ( + 44, + 24 / - + CAST ( + MAX ( - + 32 ) AS INTEGER ), - COUNT ( * ) - - - 53 )
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT DISTINCT + 21 * + NULLIF ( + + 0, 96 + - - 88 / - 94 + CAST( - 42 AS SIGNED ) / - 14 ) * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT + 21 * + NULLIF ( + + 0, 96 + - - 88 / - 94 + CAST ( - 42 AS INTEGER ) / - 14 ) * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT 13
----
13

query II rowsort
SELECT ALL 64, 77 AS col0
----
64
77

query I rowsort
SELECT ALL + 3 * + - 79
----
-237

query I rowsort
SELECT DISTINCT - 48 * + 4 * 35 col1
----
-6720

query I rowsort
SELECT 53 * - - 43 AS col1
----
2279

query I rowsort
SELECT 88 * + - 11 AS col2
----
-968

query I rowsort
SELECT 59 + - 53
----
6

query I rowsort
SELECT - 23 col0
----
-23

query I rowsort
SELECT 69 * - 38 * - - 45
----
-117990

query I rowsort
SELECT 70 AS col0
----
70

query I rowsort
SELECT 78 * - 10 AS col2
----
-780

query I rowsort
SELECT 14 * 59 AS col1
----
826

query I rowsort
SELECT 51 AS col0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3699
SELECT ALL 87 AS col1, + 93 DIV - + ( - 29 ) AS col2
----
87
3

skipif mysql # not compatible
query II rowsort label-3699
SELECT ALL 87 AS col1, + 93 / - + ( - 29 ) AS col2
----
87
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT CASE + SUM( + 22 ) WHEN + 64 THEN - + 29 + 40 WHEN + 2 THEN - 88 / - + COUNT( * ) WHEN + 78 THEN NULL END + + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT CASE + SUM ( + 22 ) WHEN + 64 THEN - + 29 + 40 WHEN + 2 THEN - 88 / - + COUNT ( * ) WHEN + 78 THEN NULL END + + + 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL COUNT( * ) * + 98
----
98

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL COUNT ( * ) * + 98
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT ALL - COUNT( + CAST( + 48 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - COUNT ( + CAST ( + 48 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - 47
----
-46

query I rowsort
SELECT ( - ( + ( - 49 ) ) ) * - ( - + 90 ) + 67 AS col1
----
4477

query I rowsort
SELECT + + 52 AS col2
----
52

query I rowsort
SELECT 96 + 30 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT - 60 * 42 + 61 + + COUNT( * ) + + COUNT( * ) + + 55 + + - CAST( + ( + + 10 ) AS SIGNED ) * + + COUNT( * ) + + 36 + + + 64 AS col0
----
-2312

skipif mysql # not compatible
query I rowsort label-3708
SELECT - 60 * 42 + 61 + + COUNT ( * ) + + COUNT ( * ) + + 55 + + - CAST ( + ( + + 10 ) AS INTEGER ) * + + COUNT ( * ) + + 36 + + + 64 AS col0
----
-2312

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3709
SELECT 29 * NULLIF ( 74, - CAST( - ( 82 ) AS DECIMAL ) ) AS col2, - ( - - 2 ) AS col2
----
2146
-2

skipif mysql # not compatible
query II rowsort label-3709
SELECT 29 * NULLIF ( 74, - CAST ( - ( 82 ) AS REAL ) ) AS col2, - ( - - 2 ) AS col2
----
2146
-2

query I rowsort
SELECT ALL - ( 27 ) * + 15 * - + 91
----
36855

query I rowsort
SELECT 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT DISTINCT + - COUNT( * ) AS col1, 89 * 14 + + + 62 + + + 64 * + + COALESCE ( + ( 0 ), - + COUNT( - 96 ) ) AS col0
----
-1
1308

skipif mysql # not compatible
query II rowsort label-3712
SELECT DISTINCT + - COUNT ( * ) AS col1, 89 * 14 + + + 62 + + + 64 * + + COALESCE ( + ( 0 ), - + COUNT ( - 96 ) ) AS col0
----
-1
1308

query I rowsort
SELECT DISTINCT + - 6
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3714
SELECT ALL CASE - + 69 WHEN - 91 * + 59 * 31 + - 98 * + 49 * + 27 * 87 + + 53 THEN NULL ELSE CASE + AVG ( ALL - + 24 ) WHEN - 50 * + + 80 * - 82 * - 51 - + CASE 0 WHEN - - COUNT( * ) THEN NULL WHEN + - 71 THEN - + 81 / - - 20 * - NULLIF ( - 79, - - 37 ) ELSE - 62 END + - 82 THEN - ( CAST( NULL AS SIGNED ) ) + - 98 WHEN - CAST( NULL AS SIGNED ) * 60 THEN - 48 WHEN 27 THEN 51 ELSE NULL END * COUNT( * ) END * 13 + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL CASE - + 69 WHEN - 91 * + 59 * 31 + - 98 * + 49 * + 27 * 87 + + 53 THEN NULL ELSE CASE + AVG ( ALL - + 24 ) WHEN - 50 * + + 80 * - 82 * - 51 - + CASE 0 WHEN - - COUNT ( * ) THEN NULL WHEN + - 71 THEN - + 81 / - - 20 * - NULLIF ( - 79, - - 37 ) ELSE - 62 END + - 82 THEN - ( CAST ( NULL AS INTEGER ) ) + - 98 WHEN - CAST ( NULL AS INTEGER ) * 60 THEN - 48 WHEN 27 THEN 51 ELSE NULL END * COUNT ( * ) END * 13 + + 9
----
NULL

query I rowsort
SELECT + - 55 * + 60
----
-3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT ALL NULLIF ( - - 29, 69 * - 29 * COUNT( * ) * + 53 ) DIV + 7 + + - 43 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL NULLIF ( - - 29, 69 * - 29 * COUNT ( * ) * + 53 ) / + 7 + + - 43 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL + 91 + - MAX( ALL + + 92 ) + - 61 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + 91 + - MAX ( ALL + + 92 ) + - 61 AS col0
----
-62

query I rowsort
SELECT + - 98 AS col0
----
-98

query I rowsort
SELECT + 15 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT CASE + - CAST( - - 38 AS SIGNED ) WHEN + 56 THEN CAST( - - CAST( - 77 AS SIGNED ) AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT CASE + - CAST ( - - 38 AS INTEGER ) WHEN + 56 THEN CAST ( - - CAST ( - 77 AS INTEGER ) AS INTEGER ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT - 77 DIV 22
----
-3

skipif mysql # not compatible
query I rowsort label-3721
SELECT - 77 / 22
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + - COUNT( ALL + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-3722
SELECT + - COUNT ( ALL + 48 )
----
-1

query I rowsort
SELECT - 93 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL - NULLIF ( - 7, COUNT( * ) + - 14 ) * - - 48 AS col2
----
336

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL - NULLIF ( - 7, COUNT ( * ) + - 14 ) * - - 48 AS col2
----
336

query I rowsort
SELECT DISTINCT + 97 - 95
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - + COUNT( * ) + + 50
----
49

skipif mysql # not compatible
query I rowsort label-3726
SELECT - + COUNT ( * ) + + 50
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3727
SELECT - COUNT( * ) AS col2, 69
----
-1
69

skipif mysql # not compatible
query II rowsort label-3727
SELECT - COUNT ( * ) AS col2, 69
----
-1
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL NULLIF ( - 50, - - 50 * - + 84 - COUNT( * ) + + CASE - + 59 WHEN - + ( - 35 ) * 29 THEN - + 52 ELSE + + COALESCE ( - 53, - + ( 38 ), ( + + 10 ) * 40 * + NULLIF ( - + COUNT( DISTINCT + 44 ), + 97 ) - + NULLIF ( + 71, + 8 ) * - COUNT( * ) * - + ( - 90 ) ) END + + 44 ) - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL NULLIF ( - 50, - - 50 * - + 84 - COUNT ( * ) + + CASE - + 59 WHEN - + ( - 35 ) * 29 THEN - + 52 ELSE + + COALESCE ( - 53, - + ( 38 ), ( + + 10 ) * 40 * + NULLIF ( - + COUNT ( DISTINCT + 44 ), + 97 ) - + NULLIF ( + 71, + 8 ) * - COUNT ( * ) * - + ( - 90 ) ) END + + 44 ) - + COUNT ( * )
----
-51

query I rowsort
SELECT DISTINCT 4
----
4

query I rowsort
SELECT ALL 32 * 39
----
1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT DISTINCT CASE - 64 WHEN + CAST( + 89 AS SIGNED ) THEN NULL ELSE + 66 END
----
66

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT CASE - 64 WHEN + CAST ( + 89 AS INTEGER ) THEN NULL ELSE + 66 END
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3732
SELECT + COUNT( ALL - 13 ) + COUNT( ( + 69 ) ), 27 * - 63 * - 56 AS col2
----
2
95256

skipif mysql # not compatible
query II rowsort label-3732
SELECT + COUNT ( ALL - 13 ) + COUNT ( ( + 69 ) ), 27 * - 63 * - 56 AS col2
----
2
95256

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT - CASE + 40 WHEN + 32 + + MIN( + 22 ) THEN 54 END * + NULLIF ( ( + - CASE + 89 WHEN COALESCE ( + COUNT( * ), - - 98 + - - 12 ) + - 72 * + 86 THEN NULL WHEN + 28 * 15 THEN + + 46 ELSE NULL END ), - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT - CASE + 40 WHEN + 32 + + MIN ( + 22 ) THEN 54 END * + NULLIF ( ( + - CASE + 89 WHEN COALESCE ( + COUNT ( * ), - - 98 + - - 12 ) + - 72 * + 86 THEN NULL WHEN + 28 * 15 THEN + + 46 ELSE NULL END ), - 99 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3734
SELECT + SUM( - + 83 ) * - - 0 + CAST( + - 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-3734
SELECT + SUM ( - + 83 ) * - - 0 + CAST ( + - 54 AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL NULLIF ( - + 38, - COUNT( * ) * - 21 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL NULLIF ( - + 38, - COUNT ( * ) * - 21 ) AS col2
----
-38

query II rowsort
SELECT - 72 + 59 AS col2, 98
----
-13
98

query I rowsort
SELECT 42 AS col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-3738
SELECT - ( - 13 ) DIV 23 - 33 * + - 15 AS col0, 20
----
495
20

skipif mysql # not compatible
query II rowsort label-3738
SELECT - ( - 13 ) / 23 - 33 * + - 15 AS col0, 20
----
495
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT ALL + 72 * + 74, NULLIF ( - + COUNT( * ), - - 85 ) AS col1
----
5328
-1

skipif mysql # not compatible
query II rowsort label-3739
SELECT ALL + 72 * + 74, NULLIF ( - + COUNT ( * ), - - 85 ) AS col1
----
5328
-1

query I rowsort
SELECT 18 col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT DISTINCT + 99 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT + 99 / - 34
----
-2

query I rowsort
SELECT - 32 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT - CAST( - 3 AS SIGNED ) + - - 51
----
54

skipif mysql # not compatible
query I rowsort label-3743
SELECT - CAST ( - 3 AS INTEGER ) + - - 51
----
54

query I rowsort
SELECT ALL + 81 * + - 45 AS col2
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT NULLIF ( - ( SUM( ALL - + 25 ) ), 60 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT NULLIF ( - ( SUM ( ALL - + 25 ) ), 60 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL + 72 + 30 + - CASE WHEN + 61 < NULL THEN - COUNT( * ) END + - 74 * - 95 + - + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + 72 + 30 + - CASE WHEN + 61 < NULL THEN - COUNT ( * ) END + - 74 * - 95 + - + 60 AS col2
----
NULL

query I rowsort
SELECT ALL 40 col2
----
40

query II rowsort
SELECT ALL - NULLIF ( COALESCE ( + - 9, + 52 - 31, - ( - 93 ) * 56 + + 17 ), + ( + 96 ) ) + + 52 AS col1, - 65
----
61
-65

query I rowsort
SELECT - 43 AS col0
----
-43

query I rowsort
SELECT 48
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT DISTINCT - 0 * - 11 DIV - + 37
----
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - 0 * - 11 / - + 37
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT + SUM( + + 64 ) * - 17, + 83 AS col2
----
-1088
83

skipif mysql # not compatible
query II rowsort label-3752
SELECT + SUM ( + + 64 ) * - 17, + 83 AS col2
----
-1088
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3753
SELECT ALL + CASE 24 WHEN 35 THEN NULL WHEN - ( - CAST( 46 AS DECIMAL ) ) * - COUNT( * ) * + + COUNT( * ) * - 56 * COUNT( * ) - - - 38 THEN MIN( DISTINCT + + 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + CASE 24 WHEN 35 THEN NULL WHEN - ( - CAST ( 46 AS REAL ) ) * - COUNT ( * ) * + + COUNT ( * ) * - 56 * COUNT ( * ) - - - 38 THEN MIN ( DISTINCT + + 1 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ( COUNT( - 84 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3754
SELECT ( COUNT ( - 84 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + + 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL + - 41 * + 47 + - - 27 + + NULLIF ( + NULLIF ( + - 73, 36 ), - 41 * + 98 * + 83 ) + + + 81 * 3 + - COUNT( * ) * - + 83
----
-1647

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL + - 41 * + 47 + - - 27 + + NULLIF ( + NULLIF ( + - 73, 36 ), - 41 * + 98 * + 83 ) + + + 81 * 3 + - COUNT ( * ) * - + 83
----
-1647

query I rowsort
SELECT ALL 51 * - ( - - 94 )
----
-4794

query I rowsort
SELECT DISTINCT + - 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL - + 43 * + - 68 + - - COUNT( * ) * 63 AS col0
----
2987

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - + 43 * + - 68 + - - COUNT ( * ) * 63 AS col0
----
2987

query I rowsort
SELECT + 98
----
98

query I rowsort
SELECT ( 27 )
----
27

query I rowsort
SELECT ALL 9 * - ( + 61 )
----
-549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT - 24 * ( - 19 ) + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT - 24 * ( - 19 ) + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + COUNT( * ) - - 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3764
SELECT + COUNT ( * ) - - 55 AS col1
----
56

query I rowsort
SELECT ALL 18 * 45
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT ALL + 2 * COUNT( * ) - - 80 + CAST( NULL AS SIGNED ) / 6 * + 3 + - - CAST( - + 17 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + 2 * COUNT ( * ) - - 80 + CAST ( NULL AS INTEGER ) / 6 * + 3 + - - CAST ( - + 17 AS INTEGER )
----
NULL

query I rowsort
SELECT + - 0
----
0

query II rowsort
SELECT + 5 + - 35, 35 + + 27 AS col2
----
-30
62

query I rowsort
SELECT + 49 AS col1
----
49

query I rowsort
SELECT + + 48 + + NULLIF ( + 56, - + 57 + + + 48 )
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT + + CAST( NULL AS SIGNED ) * - ( - + ( - + 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT + + CAST ( NULL AS INTEGER ) * - ( - + ( - + 1 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 98 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT + COUNT( * ) * 12 + + 78 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT + COUNT ( * ) * 12 + + 78 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 50 * - - 91 + + 87 AS col0
----
4637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT - CAST( + CAST( - 96 AS SIGNED ) AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3776
SELECT - CAST ( + CAST ( - 96 AS INTEGER ) AS INTEGER ) AS col1
----
96

query I rowsort
SELECT + 91 * 53
----
4823

query I rowsort
SELECT - ( + 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT - ( + + 50 ) + + COALESCE ( - NULLIF ( 49, + - MAX( - 68 ) + + 23 * + 0 ), - 43 * - COALESCE ( + COUNT( * ), + 98 + + 76 ) + COUNT( * ) * - 70 + - 77 )
----
-99

skipif mysql # not compatible
query I rowsort label-3779
SELECT - ( + + 50 ) + + COALESCE ( - NULLIF ( 49, + - MAX ( - 68 ) + + 23 * + 0 ), - 43 * - COALESCE ( + COUNT ( * ), + 98 + + 76 ) + COUNT ( * ) * - 70 + - 77 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT COUNT( * ) AS col1, - 35
----
1
-35

skipif mysql # not compatible
query II rowsort label-3780
SELECT COUNT ( * ) AS col1, - 35
----
1
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT 78 * 79 * + + ( 60 ) * + MAX( + - 80 )
----
-29577600

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT 78 * 79 * + + ( 60 ) * + MAX ( + - 80 )
----
-29577600

query II rowsort
SELECT - 19, - 43 col0
----
-19
-43

query I rowsort
SELECT + 60 + + 44
----
104

query II rowsort
SELECT DISTINCT 22, - 45 AS col2
----
22
-45

query I rowsort
SELECT ALL 25 * + 82
----
2050

onlyif mysql # aggregate syntax: 
query II rowsort label-3786
SELECT DISTINCT 25, - 41 * + + COUNT( * ) AS col1
----
25
-41

skipif mysql # not compatible
query II rowsort label-3786
SELECT DISTINCT 25, - 41 * + + COUNT ( * ) AS col1
----
25
-41

query I rowsort
SELECT ALL ( - 49 ) AS col2
----
-49

query I rowsort
SELECT - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT ALL 19 + - CAST( + ( + - 90 ) AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL 19 + - CAST ( + ( + - 90 ) AS INTEGER )
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3791
SELECT + CAST( NULL AS SIGNED ) + - + 84 * - 2 AS col2, - ( + - 20 ) AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-3791
SELECT + CAST ( NULL AS INTEGER ) + - + 84 * - 2 AS col2, - ( + - 20 ) AS col0
----
NULL
20

query I rowsort
SELECT - 7 - 40
----
-47

query I rowsort
SELECT DISTINCT + 68 + - 45 * 43
----
-1867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL COALESCE ( + + 72, COUNT( * ) + CAST( NULL AS SIGNED ) * + 14 )
----
72

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL COALESCE ( + + 72, COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 14 )
----
72

query I rowsort
SELECT - 83 + + - 88 AS col1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT - COUNT( * ) * - - 21
----
-21

skipif mysql # not compatible
query I rowsort label-3796
SELECT - COUNT ( * ) * - - 21
----
-21

query I rowsort
SELECT ALL ( 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3798
SELECT ALL + COALESCE ( + 19, ( + 83 ) DIV + + 91 + - + 79 * - 7 DIV - 2 + - - 68, + 35 ) + - COUNT( * ) * + CAST( + - 69 AS SIGNED ) * + 44 col0, COUNT( * ) * + - 71 * - 48 + + CASE 48 WHEN 51 THEN - CASE - 92 WHEN - 38 * + 82 THEN - - 32 WHEN - ( + - 4 ) + + + 93 * ( 66 ) THEN NULL ELSE NULL END - + CASE - ( + CASE + 34 WHEN - AVG ( ALL + 74 ) THEN + CASE WHEN ( - 46 ) NOT IN ( - ( + ( + 95 ) ) + AVG ( ALL 61 ) ) THEN - 89 ELSE - ( 35 ) * + 99 END WHEN 17 THEN NULL ELSE 35 END ) WHEN + NULLIF ( 89, 26 + - ( MAX( 98 ) ) ) THEN 47 + ( + COUNT( * ) ) * 93 WHEN + 65 - - 59 THEN COALESCE ( - CASE 38 WHEN + 40 * 3 THEN CAST( NULL AS SIGNED ) ELSE 4 END, - 70 - - MAX( ALL 55 + ( + 79 ) ) ) END END col2
----
3055
NULL

skipif mysql # not compatible
query II rowsort label-3798
SELECT ALL + COALESCE ( + 19, ( + 83 ) / + + 91 + - + 79 * - 7 / - 2 + - - 68, + 35 ) + - COUNT ( * ) * + CAST ( + - 69 AS INTEGER ) * + 44 col0, COUNT ( * ) * + - 71 * - 48 + + CASE 48 WHEN 51 THEN - CASE - 92 WHEN - 38 * + 82 THEN - - 32 WHEN - ( + - 4 ) + + + 93 * ( 66 ) THEN NULL ELSE NULL END - + CASE - ( + CASE + 34 WHEN - AVG ( ALL + 74 ) THEN + CASE WHEN ( - 46 ) NOT IN ( - ( + ( + 95 ) ) + AVG ( ALL 61 ) ) THEN - 89 ELSE - ( 35 ) * + 99 END WHEN 17 THEN NULL ELSE 35 END ) WHEN + NULLIF ( 89, 26 + - ( MAX ( 98 ) ) ) THEN 47 + ( + COUNT ( * ) ) * 93 WHEN + 65 - - 59 THEN COALESCE ( - CASE 38 WHEN + 40 * 3 THEN CAST ( NULL AS INTEGER ) ELSE 4 END, - 70 - - MAX ( ALL 55 + ( + 79 ) ) ) END END col2
----
3055
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3799
SELECT - 71 + - - NULLIF ( + - CAST( 35 AS SIGNED ), CAST( NULL AS SIGNED ) + - MIN( 9 ) ) + 94 + - ( + + 72 )
----
-84

skipif mysql # not compatible
query I rowsort label-3799
SELECT - 71 + - - NULLIF ( + - CAST ( 35 AS INTEGER ), CAST ( NULL AS INTEGER ) + - MIN ( 9 ) ) + 94 + - ( + + 72 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3800
SELECT ALL + 85 + + 42 + + COUNT( * ) / ( ( COUNT( * ) ) ) * CASE 10 WHEN - - 39 THEN NULL WHEN - - 13 * - + COUNT( * ) + + 70 + + ( - 17 ) THEN + - 27 END + 99 * - 86 * + COUNT( * ) - + - NULLIF ( - - 53, - 78 * + - COUNT( * ) ) + + COUNT( * ), 89 AS col2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-3800
SELECT ALL + 85 + + 42 + + COUNT ( * ) / ( ( COUNT ( * ) ) ) * CASE 10 WHEN - - 39 THEN NULL WHEN - - 13 * - + COUNT ( * ) + + 70 + + ( - 17 ) THEN + - 27 END + 99 * - 86 * + COUNT ( * ) - + - NULLIF ( - - 53, - 78 * + - COUNT ( * ) ) + + COUNT ( * ), 89 AS col2
----
NULL
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT ALL - 15 DIV - - 43 + + 57 * + 56 + 54 col0
----
3246

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL - 15 / - - 43 + + 57 * + 56 + 54 col0
----
3246

query I rowsort
SELECT - 96 + + + COALESCE ( NULLIF ( 19, - 47 ), - 60 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL - - COUNT( ALL ( + 13 ) ) + 63 * + 68
----
4285

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL - - COUNT ( ALL ( + 13 ) ) + 63 * + 68
----
4285

query I rowsort
SELECT - - 92 * + + 46 + + ( 13 ) AS col1
----
4245

query I rowsort
SELECT ALL - - 79
----
79

query I rowsort
SELECT - 23 * - 35 + + - 10 + + COALESCE ( - 85, + - 76 * 30 ) col1
----
710

query I rowsort
SELECT ALL - 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + COALESCE ( - 84, - + 1, + 50 ) + + - SUM( DISTINCT - 13 ) + 64 * - - 22 AS col1
----
1337

skipif mysql # not compatible
query I rowsort label-3809
SELECT + COALESCE ( - 84, - + 1, + 50 ) + + - SUM ( DISTINCT - 13 ) + 64 * - - 22 AS col1
----
1337

query II rowsort
SELECT 86 col1, 99 + - 53
----
86
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3811
SELECT + CAST( + 87 AS SIGNED ) * 56 DIV + ( + + 45 ) + 3 + 75
----
186

skipif mysql # not compatible
query I rowsort label-3811
SELECT + CAST ( + 87 AS INTEGER ) * 56 / + ( + + 45 ) + 3 + 75
----
186

query I rowsort
SELECT 28 + + 79 - + 96 * + - 81 * + 3
----
23435

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT ALL - 83 DIV - - 40 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - 83 / - - 40 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT 15 DIV + 42 - - 71 + 52 + - 66 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3814
SELECT 15 / + 42 - - 71 + 52 + - 66 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT 58 DIV + - ( + + COUNT( ALL 86 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-3815
SELECT 58 / + - ( + + COUNT ( ALL 86 ) )
----
-58

query I rowsort
SELECT ALL - ( + 91 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT + CAST( 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-3817
SELECT + CAST ( 8 AS INTEGER )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT ALL + - CAST( - 81 AS SIGNED ) - 85 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + - CAST ( - 81 AS INTEGER ) - 85 AS col2
----
-4

query I rowsort
SELECT ALL - + 86
----
-86

query I rowsort
SELECT DISTINCT - 35 col1
----
-35

query I rowsort
SELECT ALL - 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + 59 * 88 * SUM( DISTINCT + + 13 )
----
67496

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + 59 * 88 * SUM ( DISTINCT + + 13 )
----
67496

query I rowsort
SELECT + + 53
----
53

query I rowsort
SELECT DISTINCT - + 13 AS col1
----
-13

query I rowsort
SELECT + 51 col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT + + COUNT( * ) AS col2, 76 * - 11 col0
----
1
-836

skipif mysql # not compatible
query II rowsort label-3826
SELECT + + COUNT ( * ) AS col2, 76 * - 11 col0
----
1
-836

query I rowsort
SELECT + 53 AS col2
----
53

query I rowsort
SELECT 62 * + - 83
----
-5146

query I rowsort
SELECT + 62 AS col2
----
62

query I rowsort
SELECT 86 AS col1
----
86

query I rowsort
SELECT ALL - 81 * ( - 23 )
----
1863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3832
SELECT 94 DIV SUM( - 82 ) * 22 * - + 93
----
2046

skipif mysql # not compatible
query I rowsort label-3832
SELECT 94 / SUM ( - 82 ) * 22 * - + 93
----
2046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT DISTINCT 43 + - 86 * + 75 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT 43 + - 86 * + 75 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 73 AS col0
----
73

query I rowsort
SELECT DISTINCT 66 + + 2 AS col2
----
68

query I rowsort
SELECT 81
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT 84 DIV 38 * - 54 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-3837
SELECT 84 / 38 * - 54 AS col1
----
-108

query I rowsort
SELECT ALL 83 col1
----
83

query I rowsort
SELECT - 84 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT CAST( NULL AS SIGNED ) + - + 67 * - CAST( - 64 AS SIGNED ) / + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT CAST ( NULL AS INTEGER ) + - + 67 * - CAST ( - 64 AS INTEGER ) / + + 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT COUNT( * ) * - 11 * + 92 * CAST( - 52 AS SIGNED )
----
52624

skipif mysql # not compatible
query I rowsort label-3841
SELECT COUNT ( * ) * - 11 * + 92 * CAST ( - 52 AS INTEGER )
----
52624

query I rowsort
SELECT DISTINCT 89 AS col1
----
89

query I rowsort
SELECT 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT COUNT( * ) + + - 69 + - + 3 * + 9
----
-95

skipif mysql # not compatible
query I rowsort label-3844
SELECT COUNT ( * ) + + - 69 + - + 3 * + 9
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3845
SELECT DISTINCT 70 * + - CASE + - ( + + 56 ) WHEN - 34 + - + 7 + - 64 THEN - MIN( ALL + - CAST( + 85 AS DECIMAL ) ) END * - + 10 * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT 70 * + - CASE + - ( + + 56 ) WHEN - 34 + - + 7 + - 64 THEN - MIN ( ALL + - CAST ( + 85 AS REAL ) ) END * - + 10 * 81
----
NULL

query I rowsort
SELECT ALL - 84
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT DISTINCT + CAST( + 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + CAST ( + 26 AS INTEGER )
----
26

query I rowsort
SELECT DISTINCT - 37 * - 63
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT MIN( ALL - + 91 ) + 41 - 29 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-3849
SELECT MIN ( ALL - + 91 ) + 41 - 29 AS col2
----
-79

query I rowsort
SELECT DISTINCT + ( - - 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL - CASE + COUNT( * ) WHEN COUNT( * ) - 75 THEN - + 53 ELSE + COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - CASE + COUNT ( * ) WHEN COUNT ( * ) - 75 THEN - + 53 ELSE + COUNT ( * ) END AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3852
SELECT - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + - 50
----
-50

query I rowsort
SELECT DISTINCT - 25
----
-25

query I rowsort
SELECT ALL - 40
----
-40

query II rowsort
SELECT 84 - 45, + 94 AS col1
----
39
94

query I rowsort
SELECT + 87 * + 88 - + 66
----
7590

query I rowsort
SELECT ALL - 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT COUNT( * ) * - + 43 - + 38 * - 77 * - + 52
----
-152195

skipif mysql # not compatible
query I rowsort label-3859
SELECT COUNT ( * ) * - + 43 - + 38 * - 77 * - + 52
----
-152195

query I rowsort
SELECT ALL - - 40 * + 78 * 94
----
293280

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT DISTINCT + 10 DIV - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT + 10 / - 30 AS col0
----
0

query I rowsort
SELECT DISTINCT - 81 AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3863
SELECT + + CAST( - 85 AS SIGNED ) * - 92 * - 4 + - - 21
----
-31259

skipif mysql # not compatible
query I rowsort label-3863
SELECT + + CAST ( - 85 AS INTEGER ) * - 92 * - 4 + - - 21
----
-31259

query I rowsort
SELECT 99 - 46 * - 20 AS col1
----
1019

query I rowsort
SELECT ALL + 85 * + 29 * - 72
----
-177480

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - COUNT( ALL + 69 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3866
SELECT - COUNT ( ALL + 69 ) * COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT - 90 * - - 1 DIV + + 96 + + - 99
----
-99

skipif mysql # not compatible
query I rowsort label-3867
SELECT - 90 * - - 1 / + + 96 + + - 99
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT 4 DIV + + 96 * + 93
----
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT 4 / + + 96 * + 93
----
0

query I rowsort
SELECT ALL - 85 + 48 AS col1
----
-37

query I rowsort
SELECT 78 + - 85
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3871
SELECT ALL + 58 + - 77 DIV + + COALESCE ( - ( - + 11 ), + 23 * + + 69 * - - 84 DIV COUNT( * ) + - + 40 * + + SUM( DISTINCT + - ( + - 88 ) ) )
----
51

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + 58 + - 77 / + + COALESCE ( - ( - + 11 ), + 23 * + + 69 * - - 84 / COUNT ( * ) + - + 40 * + + SUM ( DISTINCT + - ( + - 88 ) ) )
----
51

query I rowsort
SELECT 88 + + 70
----
158

query I rowsort
SELECT ALL - ( - 48 ) AS col1
----
48

query I rowsort
SELECT 34 AS col2
----
34

query I rowsort
SELECT DISTINCT + 40 + - 70
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL - 86 + - CASE - 7 WHEN 18 THEN + - COUNT( * ) * - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - 86 + - CASE - 7 WHEN 18 THEN + - COUNT ( * ) * - 47 END
----
NULL

query II rowsort
SELECT DISTINCT - 71 AS col2, 60 AS col2
----
-71
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT COUNT( * ) + COUNT( * ) * + - 98 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-3878
SELECT COUNT ( * ) + COUNT ( * ) * + - 98 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL + COUNT( * ) + - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL + COUNT ( * ) + - 36 AS col0
----
-35

query I rowsort
SELECT 84 + - + 9 col1
----
75

query I rowsort
SELECT 87 * - 83
----
-7221

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT 23 + + - 99 * 82 + COUNT( * ) + + 22
----
-8072

skipif mysql # not compatible
query I rowsort label-3882
SELECT 23 + + - 99 * 82 + COUNT ( * ) + + 22
----
-8072

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL - COUNT( ALL - 18 ) * - 5
----
5

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL - COUNT ( ALL - 18 ) * - 5
----
5

query I rowsort
SELECT - 80 AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT NULLIF ( 58, + 7 ) + - MIN( + CAST( + 22 AS SIGNED ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3885
SELECT NULLIF ( 58, + 7 ) + - MIN ( + CAST ( + 22 AS INTEGER ) ) AS col2
----
36

query I rowsort
SELECT - 83
----
-83

query I rowsort
SELECT 72 AS col0
----
72

query I rowsort
SELECT ALL 85 col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - 30 * - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3889
SELECT - 30 * - COUNT ( * )
----
30

query I rowsort
SELECT ALL - 50 * 95 AS col2
----
-4750

query I rowsort
SELECT 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL CASE + 73 WHEN - + ( + ( + 54 ) ) * - 21 THEN + 57 WHEN - 59 * NULLIF ( + + COUNT( * ), - + 41 * - 74 ) + + + 49 THEN 3 ELSE 78 * + 99 END AS col1
----
7722

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL CASE + 73 WHEN - + ( + ( + 54 ) ) * - 21 THEN + 57 WHEN - 59 * NULLIF ( + + COUNT ( * ), - + 41 * - 74 ) + + + 49 THEN 3 ELSE 78 * + 99 END AS col1
----
7722

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3893
SELECT ALL - ( - - 80 ) - + CAST( NULL AS DECIMAL ) + COUNT( * ) + + 13 + - 46 * + + 52 * - - 4 * + ( + + MIN( DISTINCT 20 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - ( - - 80 ) - + CAST ( NULL AS REAL ) + COUNT ( * ) + + 13 + - 46 * + + 52 * - - 4 * + ( + + MIN ( DISTINCT 20 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT + 0 * + 73 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT + 0 * + 73 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 77 AS col2
----
77

query I rowsort
SELECT - - 2 + + 32 + + 31
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT ALL - 33 DIV - 28 col0
----
1

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - 33 / - 28 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT + COUNT( * ) * 29
----
29

skipif mysql # not compatible
query I rowsort label-3898
SELECT + COUNT ( * ) * 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + 14 + + + COUNT( DISTINCT + 67 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3899
SELECT + 14 + + + COUNT ( DISTINCT + 67 ) AS col1
----
15

query I rowsort
SELECT - 5
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3901
SELECT - 17 AS col0, - CAST( 34 AS SIGNED )
----
-17
-34

skipif mysql # not compatible
query II rowsort label-3901
SELECT - 17 AS col0, - CAST ( 34 AS INTEGER )
----
-17
-34

query I rowsort
SELECT ALL - 9 AS col0
----
-9

query I rowsort
SELECT + 67 + + + 10
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT + SUM( - - 10 ) DIV + 18 * - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3904
SELECT + SUM ( - - 10 ) / + 18 * - 68 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL 25 * - COUNT( * ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 25 * - COUNT ( * ) col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT + - MAX( DISTINCT + 66 ) + + + 80, - 16 AS col2
----
14
-16

skipif mysql # not compatible
query II rowsort label-3907
SELECT + - MAX ( DISTINCT + 66 ) + + + 80, - 16 AS col2
----
14
-16

query I rowsort
SELECT DISTINCT + - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3909
SELECT + + ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT 82 * + 32 * + 3 + + 24 col0
----
7896

query I rowsort
SELECT DISTINCT + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT + + 25 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3912
SELECT + + 25 * COUNT ( * )
----
25

query I rowsort
SELECT + 13 AS col1
----
13

query I rowsort
SELECT - 44 + - 64
----
-108

query I rowsort
SELECT ALL - 10 * + 17 * - 32 + - - 72 + 56 + + 49 * - 24 * + 22
----
-20304

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + 88 * + - MAX( + 25 ) * + - 60 * + ( + 55 ) + + + COUNT( * ) AS col1
----
7260001

skipif mysql # not compatible
query I rowsort label-3916
SELECT + 88 * + - MAX ( + 25 ) * + - 60 * + ( + 55 ) + + + COUNT ( * ) AS col1
----
7260001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT ALL 46 * - 31 + - 2 * + 87 + + + CAST( + 43 AS SIGNED ) AS col0
----
-1557

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL 46 * - 31 + - 2 * + 87 + + + CAST ( + 43 AS INTEGER ) AS col0
----
-1557

query II rowsort
SELECT + 96, + 64 * - 44 AS col2
----
96
-2816

query I rowsort
SELECT ALL + + 66 AS col0
----
66

query I rowsort
SELECT DISTINCT + 44 * - 35 AS col2
----
-1540

query I rowsort
SELECT ALL 70 * - 57 + + 85 AS col2
----
-3905

query II rowsort
SELECT DISTINCT + 36 AS col0, 73
----
36
73

query I rowsort
SELECT NULLIF ( + 22, 41 + + - ( - 90 ) + - 54 * - 99 )
----
22

query I rowsort
SELECT + ( - + 28 ) - - 94
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT - 66 * - - ( - COALESCE ( - 10, + COUNT( * ) * + 62 + 89 ) )
----
-660

skipif mysql # not compatible
query I rowsort label-3925
SELECT - 66 * - - ( - COALESCE ( - 10, + COUNT ( * ) * + 62 + 89 ) )
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT - 42 * - + 71 * COUNT( * ) AS col1
----
2982

skipif mysql # not compatible
query I rowsort label-3926
SELECT - 42 * - + 71 * COUNT ( * ) AS col1
----
2982

onlyif mysql # aggregate syntax: 
query II rowsort label-3927
SELECT + COUNT( * ), + ( + 75 ) AS col0
----
1
75

skipif mysql # not compatible
query II rowsort label-3927
SELECT + COUNT ( * ), + ( + 75 ) AS col0
----
1
75

query I rowsort
SELECT - 30 * - - 37 AS col1
----
-1110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3929
SELECT ALL + SUM( ALL - 43 ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL + SUM ( ALL - 43 ) / 94 AS col2
----
0

query I rowsort
SELECT - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL + ( ( ( + 48 ) ) ) - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + ( ( ( + 48 ) ) ) - - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT DISTINCT COALESCE ( - 56, ( + COUNT( * ) ) + - COALESCE ( - 89, + + 62 ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT COALESCE ( - 56, ( + COUNT ( * ) ) + - COALESCE ( - 89, + + 62 ) ) AS col0
----
-56

query II rowsort
SELECT - 76 * - - 83, 6 AS col2
----
-6308
6

query I rowsort
SELECT ALL ( + 29 )
----
29

query I rowsort
SELECT - + 57 col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT DISTINCT + 3 * 35 DIV 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + 3 * 35 / 65 AS col0
----
1

query I rowsort
SELECT ALL - 31 AS col2
----
-31

query I rowsort
SELECT ALL + - ( - 73 ) * + + 91 AS col0
----
6643

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT + 12 * + 70 AS col0, 33 * + - MAX( DISTINCT + 15 )
----
840
-495

skipif mysql # not compatible
query II rowsort label-3939
SELECT + 12 * + 70 AS col0, 33 * + - MAX ( DISTINCT + 15 )
----
840
-495

query I rowsort
SELECT ALL 0 AS col0
----
0

query II rowsort
SELECT DISTINCT + 8 AS col0, 62 + 7 * + 86
----
8
664

query II rowsort
SELECT ALL 34, + 6 * + 35 AS col0
----
34
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT - ( CAST( - COALESCE ( 53, + COALESCE ( - ( - 68 ), 97 * - - COUNT( * ), + - 27 + + - SUM( 78 ) + 32 / 46 ), - - 77 + - - ( 6 ) * + 75 ) AS SIGNED ) )
----
53

skipif mysql # not compatible
query I rowsort label-3943
SELECT - ( CAST ( - COALESCE ( 53, + COALESCE ( - ( - 68 ), 97 * - - COUNT ( * ), + - 27 + + - SUM ( 78 ) + 32 / 46 ), - - 77 + - - ( 6 ) * + 75 ) AS INTEGER ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL SUM( 93 )
----
93

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL SUM ( 93 )
----
93

query I rowsort
SELECT ALL 18
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3946
SELECT DISTINCT 40 col1, - COUNT( DISTINCT 34 )
----
40
-1

skipif mysql # not compatible
query II rowsort label-3946
SELECT DISTINCT 40 col1, - COUNT ( DISTINCT 34 )
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL COUNT( * ) + + 49 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL COUNT ( * ) + + 49 AS col0
----
50

query I rowsort
SELECT - 79 AS col2
----
-79

query I rowsort
SELECT ALL 75 + + 83 + - 77
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT - 45 + + 91 * CAST( 2 AS SIGNED ) * + + COUNT( * ) + 20
----
157

skipif mysql # not compatible
query I rowsort label-3950
SELECT - 45 + + 91 * CAST ( 2 AS INTEGER ) * + + COUNT ( * ) + 20
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + 15 * COUNT( * ) * MIN( DISTINCT 34 ) AS col1
----
510

skipif mysql # not compatible
query I rowsort label-3951
SELECT + 15 * COUNT ( * ) * MIN ( DISTINCT 34 ) AS col1
----
510

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT - 46 AS col0, COUNT( 49 )
----
-46
1

skipif mysql # not compatible
query II rowsort label-3952
SELECT - 46 AS col0, COUNT ( 49 )
----
-46
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3953
SELECT - - MAX( ALL + + 21 ) AS col2, CAST( NULL AS SIGNED )
----
21
NULL

skipif mysql # not compatible
query II rowsort label-3953
SELECT - - MAX ( ALL + + 21 ) AS col2, CAST ( NULL AS INTEGER )
----
21
NULL

query I rowsort
SELECT + - 69 col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT + 42 DIV - + COUNT( DISTINCT 71 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3955
SELECT + 42 / - + COUNT ( DISTINCT 71 ) AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT + + 88 - + + 24 DIV - - 50
----
88

skipif mysql # not compatible
query I rowsort label-3956
SELECT + + 88 - + + 24 / - - 50
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL + + ( + + MIN( DISTINCT + 46 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + + ( + + MIN ( DISTINCT + 46 ) ) AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3958
SELECT ALL 2 DIV + 85 + 64 * + 7 - - 6 + - ( + COUNT( * ) ) + - ( - COUNT( * ) )
----
454

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL 2 / + 85 + 64 * + 7 - - 6 + - ( + COUNT ( * ) ) + - ( - COUNT ( * ) )
----
454

query I rowsort
SELECT ALL + 62 col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3960
SELECT ALL 97 DIV + ( CAST( - 14 AS SIGNED ) ) + - COUNT( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0
----
-7
43

skipif mysql # not compatible
query II rowsort label-3960
SELECT ALL 97 / + ( CAST ( - 14 AS INTEGER ) ) + - COUNT ( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0
----
-7
43

query I rowsort
SELECT DISTINCT + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL MIN( 2 ) * 43
----
86

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL MIN ( 2 ) * 43
----
86

query I rowsort
SELECT ALL + 52 AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT + COUNT( * ) DIV 52 + - 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3964
SELECT + COUNT ( * ) / 52 + - 88 AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3965
SELECT ALL - 48 DIV 19 - - 34 DIV + CAST( SUM( ALL + 16 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - 48 / 19 - - 34 / + CAST ( SUM ( ALL + 16 ) AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT COALESCE ( - 97, 96 * - 47 + - - 67, + 23 ) * + - COUNT( * ) + - + 69 + 16 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3966
SELECT COALESCE ( - 97, 96 * - 47 + - - 67, + 23 ) * + - COUNT ( * ) + - + 69 + 16 AS col2
----
44

query I rowsort
SELECT 10 AS col1
----
10

query I rowsort
SELECT + 22
----
22

query I rowsort
SELECT DISTINCT - 51 AS col1
----
-51

query I rowsort
SELECT ALL + 96 * - 83
----
-7968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT CAST( NULL AS SIGNED ) + 43 * + 68 + - COUNT( * ) * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT CAST ( NULL AS INTEGER ) + 43 * + 68 + - COUNT ( * ) * + 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT CAST( NULL AS SIGNED ) * CASE + 51 WHEN 49 THEN - 7 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT CAST ( NULL AS INTEGER ) * CASE + 51 WHEN 49 THEN - 7 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 67 col0
----
-67

query I rowsort
SELECT ALL - 3 AS col1
----
-3

query I rowsort
SELECT 78 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT 48 / - + CAST( NULL AS SIGNED ) * - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT 48 / - + CAST ( NULL AS INTEGER ) * - 13 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT ALL CAST( - ( - 6 ) AS SIGNED ) * + - 81 AS col1
----
-486

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL CAST ( - ( - 6 ) AS INTEGER ) * + - 81 AS col1
----
-486

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3978
SELECT CAST( NULL AS SIGNED ) + - 59 AS col1, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3978
SELECT CAST ( NULL AS INTEGER ) + - 59 AS col1, 21
----
NULL
21

query II rowsort
SELECT DISTINCT + 78 * - 94, - 97 * + - 21 AS col0
----
-7332
2037

query I rowsort
SELECT DISTINCT 49 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT 59 DIV 8
----
7

skipif mysql # not compatible
query I rowsort label-3981
SELECT 59 / 8
----
7

query I rowsort
SELECT + 96 * - 96 + 86 AS col0
----
-9130

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT DISTINCT - + ( ( 63 ) ) DIV 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - + ( ( 63 ) ) / 16 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3984
SELECT ALL CAST( 63 AS SIGNED ) AS col1, 6
----
63
6

skipif mysql # not compatible
query II rowsort label-3984
SELECT ALL CAST ( 63 AS INTEGER ) AS col1, 6
----
63
6

query I rowsort
SELECT DISTINCT 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - MIN( DISTINCT - 1 ) + 70 * + ( + - 35 ) * + + 3 + - 74 col0
----
-7423

skipif mysql # not compatible
query I rowsort label-3986
SELECT - MIN ( DISTINCT - 1 ) + 70 * + ( + - 35 ) * + + 3 + - 74 col0
----
-7423

query I rowsort
SELECT ALL + 84
----
84

query I rowsort
SELECT 28 * + + 85
----
2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3989
SELECT ALL + MIN( ALL + CASE - 98 WHEN + 39 * - + 33 + + - 63 THEN - 61 END ) + + + CAST( + COUNT( * ) AS SIGNED ) * + 91 * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + MIN ( ALL + CASE - 98 WHEN + 39 * - + 33 + + - 63 THEN - 61 END ) + + + CAST ( + COUNT ( * ) AS INTEGER ) * + 91 * 7 AS col1
----
NULL

query I rowsort
SELECT - 20 - - - 48 AS col0
----
-68

query I rowsort
SELECT - + 74 col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT + COALESCE ( - 60, + - COUNT( ALL + 98 ) * - - 35, + 96 ) + 81
----
21

skipif mysql # not compatible
query I rowsort label-3992
SELECT + COALESCE ( - 60, + - COUNT ( ALL + 98 ) * - - 35, + 96 ) + 81
----
21

query I rowsort
SELECT DISTINCT - - NULLIF ( 24, + 11 ) + - - 67 AS col1
----
91

query I rowsort
SELECT 7 * + 26 AS col0
----
182

query I rowsort
SELECT 75 AS col0
----
75

query I rowsort
SELECT - 65 + 36 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3997
SELECT - ( 29 ), + 39 - - - COUNT( - 71 ) col2
----
-29
38

skipif mysql # not compatible
query II rowsort label-3997
SELECT - ( 29 ), + 39 - - - COUNT ( - 71 ) col2
----
-29
38

query I rowsort
SELECT ALL 47 AS col2
----
47

query I rowsort
SELECT - 79 + 16 AS col0
----
-63

query I rowsort
SELECT 76 + - + 90 * - + 57 col2
----
5206

query I rowsort
SELECT ALL 32 + 59 + + + 26 * + 82 * - 67 AS col2
----
-142753

query I rowsort
SELECT 50
----
50

query II rowsort
SELECT ALL - 42 AS col2, + 78 + + + 58 AS col0
----
-42
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4004
SELECT 54 * + 49 * 56 DIV + + 28 + - MIN( + 48 )
----
5244

skipif mysql # not compatible
query I rowsort label-4004
SELECT 54 * + 49 * 56 / + + 28 + - MIN ( + 48 )
----
5244

query I rowsort
SELECT + 54
----
54

query I rowsort
SELECT 31 col0
----
31

query II rowsort
SELECT ALL - 58 AS col1, + 74 col2
----
-58
74

query II rowsort
SELECT 36 col0, - 3 + 27 + + - 46
----
36
-22

query I rowsort
SELECT 32 + + 73
----
105

query I rowsort
SELECT 3 * + 20 AS col0
----
60

query I rowsort
SELECT 39 * - - 23 * - 38
----
-34086

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4012
SELECT DISTINCT - COUNT( * ) DIV - 64 * - - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - COUNT ( * ) / - 64 * - - 83 AS col1
----
0

query I rowsort
SELECT ALL ( + 89 ) * + 76 * - 58 AS col2
----
-392312

query I rowsort
SELECT ALL 1 * + 99 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT DISTINCT - CAST( - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT - CAST ( - 11 AS INTEGER )
----
11

query I rowsort
SELECT DISTINCT - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT ALL - COUNT( * ) AS col2, + 83
----
-1
83

skipif mysql # not compatible
query II rowsort label-4017
SELECT ALL - COUNT ( * ) AS col2, + 83
----
-1
83

query I rowsort
SELECT ( + ( + 24 ) ) * 26 * + 73
----
45552

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL ( 87 ) * - 25 * 40 * - COUNT( * ) AS col1
----
87000

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL ( 87 ) * - 25 * 40 * - COUNT ( * ) AS col1
----
87000

query I rowsort
SELECT ALL - 77 AS col0
----
-77

query I rowsort
SELECT 28 * 9 - - 64 + + 13 AS col2
----
329

query II rowsort
SELECT + 34, ( - 7 ) AS col1
----
34
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( - 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( - 48 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT NULLIF ( 29, - 63 ) - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4024
SELECT NULLIF ( 29, - 63 ) - COUNT ( * ) AS col2
----
28

query I rowsort
SELECT ALL - 93 col0
----
-93

query I rowsort
SELECT ALL - 2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4027
SELECT DISTINCT - COUNT( * ) AS col2, - 76 AS col1
----
-1
-76

skipif mysql # not compatible
query II rowsort label-4027
SELECT DISTINCT - COUNT ( * ) AS col2, - 76 AS col1
----
-1
-76

query I rowsort
SELECT ALL 53 + - + 94
----
-41

query I rowsort
SELECT DISTINCT - 2 AS col1
----
-2

query I rowsort
SELECT ALL 64 * - + 50 AS col0
----
-3200

query II rowsort
SELECT - 7 AS col0, + 70
----
-7
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT 66 - SUM( - 10 ) + 74
----
150

skipif mysql # not compatible
query I rowsort label-4032
SELECT 66 - SUM ( - 10 ) + 74
----
150

query II rowsort
SELECT ALL - NULLIF ( - 21, 69 + 20 * + - 86 + + 10 ) * 65 * - - 67 AS col2, 96 AS col0
----
91455
96

query I rowsort
SELECT ALL + 93 + 34 AS col2
----
127

query I rowsort
SELECT ALL NULLIF ( - 95, - 80 * - ( - ( - 46 ) ) ) + 97
----
2

query I rowsort
SELECT - - 42 AS col2
----
42

query I rowsort
SELECT - + 30
----
-30

query I rowsort
SELECT DISTINCT 53 + - + 67 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4039
SELECT ALL + 44 * CASE COALESCE ( + + SUM( DISTINCT + 58 ), + - SUM( DISTINCT - 5 ) ) WHEN - 32 THEN 0 * CAST( NULL AS DECIMAL ) WHEN + - 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + 44 * CASE COALESCE ( + + SUM ( DISTINCT + 58 ), + - SUM ( DISTINCT - 5 ) ) WHEN - 32 THEN 0 * CAST ( NULL AS REAL ) WHEN + - 65 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT + 97 DIV 8
----
12

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 97 / 8
----
12

query I rowsort
SELECT ALL COALESCE ( - 10, 21 ) AS col0
----
-10

query I rowsort
SELECT DISTINCT - 94 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4043
SELECT ALL + - COUNT( * ) + MAX( DISTINCT + 19 ) AS col0, - 88 * MAX( ALL 48 )
----
18
-4224

skipif mysql # not compatible
query II rowsort label-4043
SELECT ALL + - COUNT ( * ) + MAX ( DISTINCT + 19 ) AS col0, - 88 * MAX ( ALL 48 )
----
18
-4224

query II rowsort
SELECT - 64 AS col0, 43 AS col2
----
-64
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4045
SELECT ALL 33 + - 38 + + 87 AS col1, 42 * COUNT( * )
----
82
42

skipif mysql # not compatible
query II rowsort label-4045
SELECT ALL 33 + - 38 + + 87 AS col1, 42 * COUNT ( * )
----
82
42

query I rowsort
SELECT DISTINCT 59 AS col2
----
59

query I rowsort
SELECT DISTINCT 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + COUNT( * ) + - 40 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4048
SELECT + COUNT ( * ) + - 40 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT 87 + - COUNT( * ) * 20
----
67

skipif mysql # not compatible
query I rowsort label-4049
SELECT 87 + - COUNT ( * ) * 20
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL - NULLIF ( COUNT( ALL - - 64 ), 46 * - - 87 ) - - - 3
----
-4

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - NULLIF ( COUNT ( ALL - - 64 ), 46 * - - 87 ) - - - 3
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4051
SELECT ALL SUM( + 85 ) AS col2, COUNT( * )
----
85
1

skipif mysql # not compatible
query II rowsort label-4051
SELECT ALL SUM ( + 85 ) AS col2, COUNT ( * )
----
85
1

query I rowsort
SELECT - 55
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT DISTINCT - 5 * + + 0 DIV - + 9 * + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT - 5 * + + 0 / - + 9 * + 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL - 96 * - SUM( DISTINCT 3 )
----
288

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - 96 * - SUM ( DISTINCT 3 )
----
288

query I rowsort
SELECT - 31 - 58 + - 85 * - + ( + - 53 ) AS col2
----
-4594

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL - 23 * COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - 23 * COUNT ( * )
----
-23

query I rowsort
SELECT ALL + ( - + 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - 32 * + COUNT( * ) + + 65 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 32 * + COUNT ( * ) + + 65 AS col0
----
33

query I rowsort
SELECT ALL + 3 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4060
SELECT - 1 DIV COUNT( * ) col2, 52 AS col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-4060
SELECT - 1 / COUNT ( * ) col2, 52 AS col0
----
-1
52

query I rowsort
SELECT DISTINCT + 74
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4062
SELECT 33 * - - ( + 98 ) * 81 + - CAST( NULL AS SIGNED ) * + 94 * + - 67 * + 23 / COUNT( - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT 33 * - - ( + 98 ) * 81 + - CAST ( NULL AS INTEGER ) * + 94 * + - 67 * + 23 / COUNT ( - 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL - CASE COUNT( * ) WHEN 64 + - COUNT( * ) + + 30 - + 85 * + + 77 THEN 54 END / - ( - + COUNT( * ) ) + + - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL - CASE COUNT ( * ) WHEN 64 + - COUNT ( * ) + + 30 - + 85 * + + 77 THEN 54 END / - ( - + COUNT ( * ) ) + + - 94 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4064
SELECT + 94 * - 71 / + 71 * - CASE - 80 WHEN + - 57 THEN - + NULLIF ( + 49, + + MAX( - + 73 ) ) WHEN COUNT( * ) THEN 16 * - 65 / - 64 * - 28 / 95 / + 33 WHEN 3 THEN + 55 END + MAX( 2 ) * + SUM( ALL - 42 ) + - COALESCE ( + ( - CAST( + - 74 AS DECIMAL ) ), - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT + 94 * - 71 / + 71 * - CASE - 80 WHEN + - 57 THEN - + NULLIF ( + 49, + + MAX ( - + 73 ) ) WHEN COUNT ( * ) THEN 16 * - 65 / - 64 * - 28 / 95 / + 33 WHEN 3 THEN + 55 END + MAX ( 2 ) * + SUM ( ALL - 42 ) + - COALESCE ( + ( - CAST ( + - 74 AS REAL ) ), - COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - 18 + - - ( + + COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-4065
SELECT - 18 + - - ( + + COUNT ( * ) )
----
-17

query I rowsort
SELECT ALL ( 91 ) * ( - 92 ) + 57 AS col0
----
-8315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4067
SELECT + COUNT( * ) * 55 + - 75 + - - 42 * 4 DIV + 14
----
-8

skipif mysql # not compatible
query I rowsort label-4067
SELECT + COUNT ( * ) * 55 + - 75 + - - 42 * 4 / + 14
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + + 3 * - - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4068
SELECT + + 3 * - - COUNT ( * ) AS col2
----
3

query I rowsort
SELECT ALL + + 75
----
75

query I rowsort
SELECT + + 65
----
65

query I rowsort
SELECT ALL + 9
----
9

query I rowsort
SELECT 68 col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT + CAST( - 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-4073
SELECT + CAST ( - 73 AS INTEGER )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT + MAX( DISTINCT - 19 ) * + 90 + - 71 + - + 85, COUNT( * ) + SUM( ALL 32 ) AS col1
----
-1866
33

skipif mysql # not compatible
query II rowsort label-4074
SELECT + MAX ( DISTINCT - 19 ) * + 90 + - 71 + - + 85, COUNT ( * ) + SUM ( ALL 32 ) AS col1
----
-1866
33

query I rowsort
SELECT DISTINCT 37 + - 7
----
30

query I rowsort
SELECT - + 44
----
-44

query I rowsort
SELECT + 48 col2
----
48

query I rowsort
SELECT - 87 AS col0
----
-87

query I rowsort
SELECT ALL 9 col2
----
9

query I rowsort
SELECT + - 76 + + 71 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + + COUNT( * ) + ( + 59 )
----
60

skipif mysql # not compatible
query I rowsort label-4081
SELECT + + COUNT ( * ) + ( + 59 )
----
60

query I rowsort
SELECT ALL - ( + 56 ) * - 89
----
4984

query I rowsort
SELECT ALL 32 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 34 AS col2
----
34

query I rowsort
SELECT + 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - 97 + - COUNT( * ) - - 54 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 97 + - COUNT ( * ) - - 54 AS col2
----
-44

query I rowsort
SELECT - ( - - 65 )
----
-65

query I rowsort
SELECT + 14 * + 79 * 45 AS col1
----
49770

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT - 20 + - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-4090
SELECT - 20 + - + COUNT ( * )
----
-21

query I rowsort
SELECT ALL CASE + 54 WHEN + + 9 THEN + + ( + - 20 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 31 + - + 72 + + COALESCE ( - 22, + + 38 + - 93 ) * 42
----
-965

query I rowsort
SELECT ALL 37 * + 87
----
3219

query I rowsort
SELECT ALL 96 * 89 AS col2
----
8544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT ALL COALESCE ( - 65, - - 61, - 82 + + MAX( 20 ) * 22 DIV + 7 - 68 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL COALESCE ( - 65, - - 61, - 82 + + MAX ( 20 ) * 22 / + 7 - 68 ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL + CAST( NULL AS SIGNED ) / - - 79 * + - 21 / + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 79 * + - 21 / + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT - 84 * - ( + COALESCE ( + 36, - 65, CAST( NULL AS SIGNED ) ) )
----
3024

skipif mysql # not compatible
query I rowsort label-4097
SELECT - 84 * - ( + COALESCE ( + 36, - 65, CAST ( NULL AS INTEGER ) ) )
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL SUM( DISTINCT - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL SUM ( DISTINCT - 37 )
----
-37

query I rowsort
SELECT ALL + 6 AS col0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4100
SELECT ALL + 77 AS col1, - 70 DIV 47 AS col0
----
77
-1

skipif mysql # not compatible
query II rowsort label-4100
SELECT ALL + 77 AS col1, - 70 / 47 AS col0
----
77
-1

query I rowsort
SELECT + ( - 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT COUNT( * ) * 33 + - 91 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4102
SELECT COUNT ( * ) * 33 + - 91 AS col0
----
-58

query I rowsort
SELECT ALL + 83 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT CAST( - 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-4104
SELECT CAST ( - 92 AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4105
SELECT + COUNT( * ) DIV - 92 + + 72 + - 75 - + + 86 + - + 9 + + + 54 * - + ( - 23 )
----
1144

skipif mysql # not compatible
query I rowsort label-4105
SELECT + COUNT ( * ) / - 92 + + 72 + - 75 - + + 86 + - + 9 + + + 54 * - + ( - 23 )
----
1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT CAST( - ( ( 27 ) ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-4106
SELECT CAST ( - ( ( 27 ) ) AS INTEGER )
----
-27

query I rowsort
SELECT - 24 * 50 AS col0
----
-1200

query I rowsort
SELECT - 30 + + 45 AS col1
----
15

query I rowsort
SELECT ( + 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT DISTINCT AVG ( ALL + 23 ) / + + ( + 14 ) * + 95 * + 51 + + + 3 * - + 58 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT AVG ( ALL + 23 ) / + + ( + 14 ) * + 95 * + 51 + + + 3 * - + 58 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT ALL 40 DIV 30 + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL 40 / 30 + - 87
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4112
SELECT DISTINCT COUNT( * ) DIV 4 * - 70 * + 47 + + 27
----
27

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT COUNT ( * ) / 4 * - 70 * + 47 + + 27
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-4113
SELECT DISTINCT + 63 DIV + NULLIF ( - - COALESCE ( - 74, - 30, - 1, + 71 ), + - COALESCE ( - ( - NULLIF ( - 94, - - NULLIF ( - 26, 82 ) ) ), + + 35, + + 67 * - - 29 ) ) + - 54, 53 * + ( + + 37 ) AS col1
----
-54
1961

skipif mysql # not compatible
query II rowsort label-4113
SELECT DISTINCT + 63 / + NULLIF ( - - COALESCE ( - 74, - 30, - 1, + 71 ), + - COALESCE ( - ( - NULLIF ( - 94, - - NULLIF ( - 26, 82 ) ) ), + + 35, + + 67 * - - 29 ) ) + - 54, 53 * + ( + + 37 ) AS col1
----
-54
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - 94 * COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4114
SELECT - 94 * COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT + 44 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT DISTINCT - 30 * + COUNT( + 22 ) + + MAX( ALL - 8 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT - 30 * + COUNT ( + 22 ) + + MAX ( ALL - 8 ) col0
----
-38

query I rowsort
SELECT + 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL - ( - + ( - COUNT( * ) ) ) * - - 25 * COUNT( * ) * + COALESCE ( - 31, + + ( 62 ) ) * + ( - + 2 ) + + + MAX( 72 )
----
-1478

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - ( - + ( - COUNT ( * ) ) ) * - - 25 * COUNT ( * ) * + COALESCE ( - 31, + + ( 62 ) ) * + ( - + 2 ) + + + MAX ( 72 )
----
-1478

query I rowsort
SELECT ALL + 23
----
23

query I rowsort
SELECT + + 67 AS col1
----
67

query I rowsort
SELECT + 70
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT + 92, + MAX( ALL - ( - + 51 ) ) AS col1
----
92
51

skipif mysql # not compatible
query II rowsort label-4122
SELECT + 92, + MAX ( ALL - ( - + 51 ) ) AS col1
----
92
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT MIN( DISTINCT + + 51 ) * - - 47 + + - 62 AS col0
----
2335

skipif mysql # not compatible
query I rowsort label-4123
SELECT MIN ( DISTINCT + + 51 ) * - - 47 + + - 62 AS col0
----
2335

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT COUNT( * ) * - 25 + + 70 - - + 97
----
142

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT COUNT ( * ) * - 25 + + 70 - - + 97
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - 9 * SUM( + - 91 )
----
819

skipif mysql # not compatible
query I rowsort label-4125
SELECT - 9 * SUM ( + - 91 )
----
819

onlyif mysql # aggregate syntax: 
query II rowsort label-4126
SELECT 57 AS col0, + 12 * - - COUNT( * ) + - 13
----
57
-1

skipif mysql # not compatible
query II rowsort label-4126
SELECT 57 AS col0, + 12 * - - COUNT ( * ) + - 13
----
57
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT ALL + 10 * CAST( NULL AS SIGNED ) / + - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL + 10 * CAST ( NULL AS INTEGER ) / + - 81 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4128
SELECT DISTINCT + ( 29 ) DIV 95 DIV 86 * - + ( + - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + ( 29 ) / 95 / 86 * - + ( + - 30 )
----
0

query I rowsort
SELECT - - 72 - - 47
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT + + SUM( ALL + + 72 ) * - + 81
----
-5832

skipif mysql # not compatible
query I rowsort label-4130
SELECT + + SUM ( ALL + + 72 ) * - + 81
----
-5832

query I rowsort
SELECT ALL + - 55 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL 93 * + - ( - COALESCE ( + 6, - MAX( DISTINCT - 76 ) ) ) - - - 50
----
508

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL 93 * + - ( - COALESCE ( + 6, - MAX ( DISTINCT - 76 ) ) ) - - - 50
----
508

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT - + 15 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT + 97 * 19 * + + 72 + + - COUNT( * ) + + - CAST( + 69 AS SIGNED ) + + - 58 AS col1
----
132568

skipif mysql # not compatible
query I rowsort label-4135
SELECT + 97 * 19 * + + 72 + + - COUNT ( * ) + + - CAST ( + 69 AS INTEGER ) + + - 58 AS col1
----
132568

query I rowsort
SELECT - - 74 AS col1
----
74

query I rowsort
SELECT ( + 19 ) AS col2
----
19

query I rowsort
SELECT 20 - 29
----
-9

query I rowsort
SELECT ALL 39 AS col2
----
39

query I rowsort
SELECT - 25 * 81 col1
----
-2025

query I rowsort
SELECT - 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL + CASE COUNT( * ) WHEN + 22 THEN + 28 * MIN( - 22 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + CASE COUNT ( * ) WHEN + 22 THEN + 28 * MIN ( - 22 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 98 AS col2
----
98

query II rowsort
SELECT ALL 51 AS col1, 25
----
51
25

query II rowsort
SELECT DISTINCT 3 AS col0, 11 AS col1
----
3
11

query I rowsort
SELECT ALL 7 AS col2
----
7

query I rowsort
SELECT DISTINCT 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4148
SELECT COUNT ( * ) + - COUNT ( * )
----
0

query I rowsort
SELECT 90 AS col2
----
90

query I rowsort
SELECT ALL CASE - - 75 WHEN + ( - 78 ) / + 12 + 38 THEN + 61 + 45 * + - ( + + 18 ) ELSE + 86 END * - + NULLIF ( + - 3, - + 56 )
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT ALL 42 + + CASE - 55 WHEN + - 85 THEN - ( 78 ) - 67 + + + ( - ( - CAST( NULL AS SIGNED ) ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL 42 + + CASE - 55 WHEN + - 85 THEN - ( 78 ) - 67 + + + ( - ( - CAST ( NULL AS INTEGER ) ) ) END col0
----
NULL

query II rowsort
SELECT 98, - 20 AS col2
----
98
-20

query I rowsort
SELECT 67 * 37 AS col1
----
2479

query I rowsort
SELECT ALL 36 + - 11 - - 51 * - 42 col1
----
-2117

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ( COUNT( * ) ) - 17 + 39
----
23

skipif mysql # not compatible
query I rowsort label-4155
SELECT ( COUNT ( * ) ) - 17 + 39
----
23

query II rowsort
SELECT + 77 AS col2, 2 * 48 * 77 + - 58
----
77
7334

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL 12 + - 71 * - + COALESCE ( - ( + - COUNT( * ) ), + 86, MIN( + 50 ) ) * - - 22 + MAX( + + 34 ) AS col1
----
1608

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL 12 + - 71 * - + COALESCE ( - ( + - COUNT ( * ) ), + 86, MIN ( + 50 ) ) * - - 22 + MAX ( + + 34 ) AS col1
----
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT 47 + + + 95 + + CASE + MIN( - + 16 ) WHEN - 55 THEN 28 WHEN - 16 THEN NULL ELSE + 80 * + COUNT( * ) + - - 90 END * 38 + + + 80 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT 47 + + + 95 + + CASE + MIN ( - + 16 ) WHEN - 55 THEN 28 WHEN - 16 THEN NULL ELSE + 80 * + COUNT ( * ) + - - 90 END * 38 + + + 80 + 21
----
NULL

query I rowsort
SELECT ALL - 18
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT DISTINCT COUNT( * ) + + 4 col2, + COUNT( * ) AS col0
----
5
1

skipif mysql # not compatible
query II rowsort label-4160
SELECT DISTINCT COUNT ( * ) + + 4 col2, + COUNT ( * ) AS col0
----
5
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL + 97 DIV 97 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + 97 / 97 AS col0
----
1

query II rowsort
SELECT + 88 AS col0, - 72 + + - 36
----
88
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT COALESCE ( - 99, + 64 ) DIV 49 + - + ( - 89 ) DIV 42 + 53 + - ( + 98 )
----
-45

skipif mysql # not compatible
query I rowsort label-4163
SELECT COALESCE ( - 99, + 64 ) / 49 + - + ( - 89 ) / 42 + 53 + - ( + 98 )
----
-45

query I rowsort
SELECT ALL 76 + 52
----
128

query I rowsort
SELECT + 42 col0
----
42

query II rowsort
SELECT 9 AS col1, + 8 * + 71
----
9
568

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT - COUNT( * ) * - 60 + + - 59 + + 0
----
1

skipif mysql # not compatible
query I rowsort label-4167
SELECT - COUNT ( * ) * - 60 + + - 59 + + 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT 48 - - CASE 66 WHEN - 17 THEN NULL WHEN + 56 THEN + 22 WHEN + 35 THEN - COUNT( * ) - + 81 + - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT 48 - - CASE 66 WHEN - 17 THEN NULL WHEN + 56 THEN + 22 WHEN + 35 THEN - COUNT ( * ) - + 81 + - 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + MAX( ALL + - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4169
SELECT + MAX ( ALL + - 21 ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4170
SELECT + - 14 * - CASE + 0 WHEN - MAX( DISTINCT + 99 ) / + - CAST( NULL AS SIGNED ) THEN + - 81 WHEN - 34 * 3 + - 97 + 44 + + 41 * + 97 * 43 + 81 + - NULLIF ( + + 99, 31 * + - 64 ) THEN NULL ELSE NULL END + - + NULLIF ( + - 98, - ( - 2 ) + - 65 ) - 21 - + + 58 / - 49 * - - MIN( DISTINCT + 45 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT + - 14 * - CASE + 0 WHEN - MAX ( DISTINCT + 99 ) / + - CAST ( NULL AS INTEGER ) THEN + - 81 WHEN - 34 * 3 + - 97 + 44 + + 41 * + 97 * 43 + 81 + - NULLIF ( + + 99, 31 * + - 64 ) THEN NULL ELSE NULL END + - + NULLIF ( + - 98, - ( - 2 ) + - 65 ) - 21 - + + 58 / - 49 * - - MIN ( DISTINCT + 45 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + + COUNT( + 59 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4171
SELECT + + COUNT ( + 59 ) col2
----
1

query II rowsort
SELECT - 98, 14 col0
----
-98
14

query I rowsort
SELECT ALL - + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL + 81 * + COALESCE ( + 95, 28 ) * - COUNT( * ) AS col2
----
-7695

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + 81 * + COALESCE ( + 95, 28 ) * - COUNT ( * ) AS col2
----
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL + + COUNT( * ) * + - 64 + + 66 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL + + COUNT ( * ) * + - 64 + + 66 AS col0
----
2

query II rowsort
SELECT ALL - 7 AS col1, - NULLIF ( ( - 56 ), - 3 ) - + - 14 * + - 7 + + 50 col2
----
-7
8

query I rowsort
SELECT + 33 AS col0
----
33

query I rowsort
SELECT DISTINCT - + 8 col0
----
-8

query I rowsort
SELECT + 82 + - 45 col1
----
37

query II rowsort
SELECT - 22 AS col1, + 55 AS col0
----
-22
55

query I rowsort
SELECT ALL - 87
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT 76 * - COUNT( * ) AS col2, COUNT( * ) AS col0
----
-76
1

skipif mysql # not compatible
query II rowsort label-4182
SELECT 76 * - COUNT ( * ) AS col2, COUNT ( * ) AS col0
----
-76
1

query I rowsort
SELECT ALL 45 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT + 32 * - MAX( DISTINCT - 63 ) + + 19 + - CASE + + 32 WHEN + + 98 THEN + ( MAX( DISTINCT - 61 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT + 32 * - MAX ( DISTINCT - 63 ) + + 19 + - CASE + + 32 WHEN + + 98 THEN + ( MAX ( DISTINCT - 61 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 76 * + 98 AS col1
----
7448

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT ALL + 64 DIV 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + 64 / 48 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT 32 + COUNT( DISTINCT - 18 ) + COALESCE ( - + COALESCE ( + - 94, + 68, - + 90, + + 20 ), - + 8 + + 80 ) + - 10 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-4187
SELECT 32 + COUNT ( DISTINCT - 18 ) + COALESCE ( - + COALESCE ( + - 94, + 68, - + 90, + + 20 ), - + 8 + + 80 ) + - 10 AS col2
----
117

query I rowsort
SELECT ALL 96 + + 93
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4189
SELECT DISTINCT + 92 * - COUNT( - CAST( NULL AS SIGNED ) ) AS col0, - 26 AS col0
----
0
-26

skipif mysql # not compatible
query II rowsort label-4189
SELECT DISTINCT + 92 * - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, - 26 AS col0
----
0
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT 12 * - MAX( ALL + + 94 )
----
-1128

skipif mysql # not compatible
query I rowsort label-4190
SELECT 12 * - MAX ( ALL + + 94 )
----
-1128

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT 22 * COUNT( * ) AS col2, - 27 * - COUNT( * ) * 16
----
22
432

skipif mysql # not compatible
query II rowsort label-4191
SELECT 22 * COUNT ( * ) AS col2, - 27 * - COUNT ( * ) * 16
----
22
432

query I rowsort
SELECT DISTINCT ( - 82 ) + - 63 + - 83 - - + 87 * - 2 + 24 + - + 72
----
-450

query I rowsort
SELECT DISTINCT 70
----
70

query I rowsort
SELECT - 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT COUNT( * ) + + 41
----
42

skipif mysql # not compatible
query I rowsort label-4195
SELECT COUNT ( * ) + + 41
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4196
SELECT DISTINCT + MIN( ALL + 81 ) + SUM( ALL - + COALESCE ( + 97, + 89, - 15 ) ), COUNT( * ) AS col1
----
-16
1

skipif mysql # not compatible
query II rowsort label-4196
SELECT DISTINCT + MIN ( ALL + 81 ) + SUM ( ALL - + COALESCE ( + 97, + 89, - 15 ) ), COUNT ( * ) AS col1
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - 2 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - 2 + - COUNT ( * )
----
-3

query II rowsort
SELECT ALL 65 * 77 AS col2, 75 AS col1
----
5005
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT DISTINCT 24 + + COALESCE ( + 60, 94 ) * 0 * + 57 DIV + 31 * - 92 - - 97 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT 24 + + COALESCE ( + 60, 94 ) * 0 * + 57 / + 31 * - 92 - - 97 AS col1
----
121

query I rowsort
SELECT ( + 33 ) * 61 * + 96 AS col0
----
193248

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT DISTINCT 94 DIV 23
----
4

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT 94 / 23
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4202
SELECT COALESCE ( - 72, + 15, - 15 ) * - + 91 * 10 + + ( - - 73 ) * - + ( CAST( NULL AS DECIMAL ) ) * + ( + 73 ) + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT COALESCE ( - 72, + 15, - 15 ) * - + 91 * 10 + + ( - - 73 ) * - + ( CAST ( NULL AS REAL ) ) * + ( + 73 ) + - 88
----
NULL

query I rowsort
SELECT ALL - 18 col1
----
-18

query I rowsort
SELECT ALL 29 * + 15 * - + 19 * 60
----
-495900

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT COUNT( ALL + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-4205
SELECT COUNT ( ALL + 86 )
----
1

query I rowsort
SELECT + 64 * + 41
----
2624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4207
SELECT ALL - CAST( - + COUNT( DISTINCT + + 61 ) AS SIGNED ) * - 79 * - - CASE WHEN - 51 IS NULL THEN 96 + - 43 ELSE NULL END - + - 85 AS col0, + 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-4207
SELECT ALL - CAST ( - + COUNT ( DISTINCT + + 61 ) AS INTEGER ) * - 79 * - - CASE WHEN - 51 IS NULL THEN 96 + - 43 ELSE NULL END - + - 85 AS col0, + 55
----
NULL
55

query I rowsort
SELECT + 54 col2
----
54

query I rowsort
SELECT ALL - - 47 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL + COUNT( * ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL + COUNT ( * ) * 69
----
69

query I rowsort
SELECT ALL - - 30 AS col2
----
30

query I rowsort
SELECT DISTINCT - + 53
----
-53

query I rowsort
SELECT ALL + - 97 * 36 - + - ( - 33 ) - - 35
----
-3490

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4214
SELECT 65 DIV 26 + - CAST( - 96 AS SIGNED ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4214
SELECT 65 / 26 + - CAST ( - 96 AS INTEGER ) AS col2
----
98

query I rowsort
SELECT ALL + 55
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT + - CAST( + 90 AS SIGNED ) * + - 99 AS col0
----
8910

skipif mysql # not compatible
query I rowsort label-4216
SELECT + - CAST ( + 90 AS INTEGER ) * + - 99 AS col0
----
8910

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - 84 * + COUNT( * ) * - - 79 + + 82 + - - ( - 64 )
----
-6618

skipif mysql # not compatible
query I rowsort label-4217
SELECT - 84 * + COUNT ( * ) * - - 79 + + 82 + - - ( - 64 )
----
-6618

query I rowsort
SELECT + COALESCE ( + 83, + 6 ) AS col1
----
83

query I rowsort
SELECT ALL + 32
----
32

query I rowsort
SELECT ALL + 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT - COUNT( * ) + - + 57 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT - COUNT ( * ) + - + 57 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4222
SELECT - 30 * - 74 + CAST( + 1 AS SIGNED ) + + CASE - + COUNT( * ) WHEN ( + CAST( 30 AS DECIMAL ) ) THEN - + 53 WHEN SUM( DISTINCT 26 ) THEN 64 WHEN - - 4 * + - 68 + COUNT( * ) * + 16 THEN - + CASE 13 WHEN + 78 THEN - + 77 WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE NULL END * COUNT( * ) - - 18 - + 62 + + 26 ELSE NULL END + COALESCE ( - - 87, - 25 + + COUNT( * ) ) * + + 36 - - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT - 30 * - 74 + CAST ( + 1 AS INTEGER ) + + CASE - + COUNT ( * ) WHEN ( + CAST ( 30 AS REAL ) ) THEN - + 53 WHEN SUM ( DISTINCT 26 ) THEN 64 WHEN - - 4 * + - 68 + COUNT ( * ) * + 16 THEN - + CASE 13 WHEN + 78 THEN - + 77 WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END * COUNT ( * ) - - 18 - + 62 + + 26 ELSE NULL END + COALESCE ( - - 87, - 25 + + COUNT ( * ) ) * + + 36 - - 50 AS col2
----
NULL

query I rowsort
SELECT ALL + 24 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT ALL - 7 + - + 9 DIV 14 + - + 38
----
-45

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - 7 + - + 9 / 14 + - + 38
----
-45

query I rowsort
SELECT - 43 * ( + - 43 )
----
1849

query I rowsort
SELECT 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL + COALESCE ( - 16, 39, 67 * COUNT( * ) - + ( + + 5 ) + - 44, - 74 * 81 * + COUNT( * ) * - 63 * 2 + - 84 ) + + 61 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL + COALESCE ( - 16, 39, 67 * COUNT ( * ) - + ( + + 5 ) + - 44, - 74 * 81 * + COUNT ( * ) * - 63 * 2 + - 84 ) + + 61 AS col0
----
45

query I rowsort
SELECT 29 AS col0
----
29

query I rowsort
SELECT - 4 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT - 49 DIV - 5 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4230
SELECT - 49 / - 5 AS col0
----
9

query I rowsort
SELECT - 55 * + 1 * - 0 * + - 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL - NULLIF ( + + COUNT( ALL + + 57 ), + 37 ) + - 50 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL - NULLIF ( + + COUNT ( ALL + + 57 ), + 37 ) + - 50 AS col1
----
-51

query I rowsort
SELECT ALL + 69 + 26 + 38 + - 38 AS col2
----
95

query I rowsort
SELECT - 43 - + - 91 AS col0
----
48

query I rowsort
SELECT - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT - 97 * - + COALESCE ( + 79, - 33, 10, + + CASE - + 18 WHEN + 59 THEN NULL WHEN 54 / + + 32 + + COUNT( * ) * + 34 - 76 - - - COUNT( * ) * - + 3 THEN 74 END )
----
7663

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - 97 * - + COALESCE ( + 79, - 33, 10, + + CASE - + 18 WHEN + 59 THEN NULL WHEN 54 / + + 32 + + COUNT ( * ) * + 34 - 76 - - - COUNT ( * ) * - + 3 THEN 74 END )
----
7663

query II rowsort
SELECT 39, - 14 * 10 AS col1
----
39
-140

query I rowsort
SELECT - 89 * 56
----
-4984

query I rowsort
SELECT DISTINCT - 98 * - - 14 AS col0
----
-1372

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL + 43 * + - COUNT( * ) * - 7 * + 0 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL + 43 * + - COUNT ( * ) * - 7 * + 0 * + 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 35 + - 99 * + 8
----
-827

query I rowsort
SELECT - CASE 83 WHEN + - 87 THEN 99 - + 68 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT - ( - COUNT( * ) ) + + - 84 + - 49 * ( + 89 )
----
-4444

skipif mysql # not compatible
query I rowsort label-4244
SELECT - ( - COUNT ( * ) ) + + - 84 + - 49 * ( + 89 )
----
-4444

onlyif mysql # DIV for integer division: 
query II rowsort label-4245
SELECT + - 80 AS col1, 80 DIV 11 AS col2
----
-80
7

skipif mysql # not compatible
query II rowsort label-4245
SELECT + - 80 AS col1, 80 / 11 AS col2
----
-80
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT + - COUNT( * ) * + CASE 42 WHEN + 46 THEN 33 + 53 END * + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + - COUNT ( * ) * + CASE 42 WHEN + 46 THEN 33 + 53 END * + + 15
----
NULL

query I rowsort
SELECT ALL + - 19 AS col1
----
-19

query I rowsort
SELECT ALL + 1 AS col0
----
1

query I rowsort
SELECT DISTINCT + - 63 col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT + 2 + + COALESCE ( 8, + ( 50 ), - - ( - 98 ) * - + ( - COUNT( * ) ) ) DIV + 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4250
SELECT + 2 + + COALESCE ( 8, + ( 50 ), - - ( - 98 ) * - + ( - COUNT ( * ) ) ) / + 37 AS col1
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4251
SELECT ALL + ( - ( - 87 ) ) AS col2, 52 + CASE + 3 WHEN - CAST( + 43 AS DECIMAL ) THEN + 75 + - + 3 - - - 60 WHEN - 77 THEN 47 END AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-4251
SELECT ALL + ( - ( - 87 ) ) AS col2, 52 + CASE + 3 WHEN - CAST ( + 43 AS REAL ) THEN + 75 + - + 3 - - - 60 WHEN - 77 THEN 47 END AS col2
----
87
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT ALL + 78 AS col1, 16 * + - 19 * + - MIN( - - 97 )
----
78
29488

skipif mysql # not compatible
query II rowsort label-4253
SELECT ALL + 78 AS col1, 16 * + - 19 * + - MIN ( - - 97 )
----
78
29488

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4254
SELECT ALL - CAST( NULL AS DECIMAL ) / 6 + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - CAST ( NULL AS REAL ) / 6 + 82
----
NULL

query I rowsort
SELECT 99 * - - 43 + - 52 AS col1
----
4205

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - CASE 75 WHEN - - SUM( ALL - NULLIF ( - 95, 47 ) ) * - - 52 THEN - - COUNT( * ) + + 1 END * - 33 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT - CASE 75 WHEN - - SUM ( ALL - NULLIF ( - 95, 47 ) ) * - - 52 THEN - - COUNT ( * ) + + 1 END * - 33 * - 0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT + + 33 DIV - 83 + - - 9 + - 43
----
-34

skipif mysql # not compatible
query I rowsort label-4257
SELECT + + 33 / - 83 + - - 9 + - 43
----
-34

query I rowsort
SELECT ALL + 70
----
70

query I rowsort
SELECT + 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL 22 * MAX( DISTINCT - 74 )
----
-1628

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL 22 * MAX ( DISTINCT - 74 )
----
-1628

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT 25 col0, + 88 + - COUNT( * ) + - 66 + 99
----
25
120

skipif mysql # not compatible
query II rowsort label-4261
SELECT 25 col0, + 88 + - COUNT ( * ) + - 66 + 99
----
25
120

query I rowsort
SELECT ALL - 40 * + + 30 + + + 45
----
-1155

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT 44 * 88 DIV 43 + + - 81 * + 52
----
-4122

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT 44 * 88 / 43 + + - 81 * + 52
----
-4122

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL + + COUNT ( * )
----
1

query II rowsort
SELECT 69 AS col1, + 25 AS col0
----
69
25

query I rowsort
SELECT DISTINCT + - 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + - NULLIF ( + CASE 44 WHEN - 91 THEN CASE 2 WHEN + 83 THEN NULL WHEN 43 THEN NULL ELSE 90 * + 39 END ELSE NULL END, COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT + - NULLIF ( + CASE 44 WHEN - 91 THEN CASE 2 WHEN + 83 THEN NULL WHEN 43 THEN NULL ELSE 90 * + 39 END ELSE NULL END, COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4268
SELECT ALL + + COALESCE ( + 8, - - COUNT( * ) DIV + COALESCE ( 51, - - NULLIF ( - 62, + - NULLIF ( - - 86, - - 21 * + + 80 ) + - 49 + 11 * 75 * 56 ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + + COALESCE ( + 8, - - COUNT ( * ) / + COALESCE ( 51, - - NULLIF ( - 62, + - NULLIF ( - - 86, - - 21 * + + 80 ) + - 49 + 11 * 75 * 56 ) ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + 80 + + 15 * - - COUNT( * ) col0
----
95

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 80 + + 15 * - - COUNT ( * ) col0
----
95

query I rowsort
SELECT + 32 * + 81 AS col0
----
2592

onlyif mysql # DIV for integer division: 
query II rowsort label-4271
SELECT + 49 + + 75 + 77 + 79 * + 59 * 96 DIV - 8, - 12 AS col2
----
-55731
-12

skipif mysql # not compatible
query II rowsort label-4271
SELECT + 49 + + 75 + 77 + 79 * + 59 * 96 / - 8, - 12 AS col2
----
-55731
-12

query I rowsort
SELECT DISTINCT + 47 * 5 + + 42 - 13
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT ALL CAST( NULL AS SIGNED ) * + 71 + ( + 89 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL CAST ( NULL AS INTEGER ) * + 71 + ( + 89 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4274
SELECT DISTINCT - 70 * - CAST( NULL AS SIGNED ) / MIN( DISTINCT 7 ) + + - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - 70 * - CAST ( NULL AS INTEGER ) / MIN ( DISTINCT 7 ) + + - 31 AS col2
----
NULL

query II rowsort
SELECT ALL - 11 * + 77 AS col1, 96 AS col1
----
-847
96

query I rowsort
SELECT - 95 + - 21 + - 48 * + 31 + 90 AS col1
----
-1514

query I rowsort
SELECT DISTINCT 19 * 67 AS col1
----
1273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4278
SELECT + 42 * + 37, CAST( NULL AS SIGNED ) AS col2
----
1554
NULL

skipif mysql # not compatible
query II rowsort label-4278
SELECT + 42 * + 37, CAST ( NULL AS INTEGER ) AS col2
----
1554
NULL

query I rowsort
SELECT 25 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT - CAST( NULL AS SIGNED ) + - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT - CAST ( NULL AS INTEGER ) + - - 66
----
NULL

query I rowsort
SELECT 0 AS col0
----
0

query I rowsort
SELECT - 12 * - 47
----
564

query I rowsort
SELECT - 18 + 39 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4284
SELECT - 29 DIV 61 col0, 50 + COUNT( * ) AS col2
----
0
51

skipif mysql # not compatible
query II rowsort label-4284
SELECT - 29 / 61 col0, 50 + COUNT ( * ) AS col2
----
0
51

query I rowsort
SELECT 11 col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT ALL CAST( + 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL CAST ( + 20 AS INTEGER )
----
20

query I rowsort
SELECT ALL + - 13 * ( + - 43 ) * - 97 * + 28 + 35
----
-1518209

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT - + MAX( - 67 ), + 35 AS col1
----
67
35

skipif mysql # not compatible
query II rowsort label-4288
SELECT - + MAX ( - 67 ), + 35 AS col1
----
67
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL + + 46 * MAX( ALL - 45 ) * - 81 AS col0
----
167670

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + + 46 * MAX ( ALL - 45 ) * - 81 AS col0
----
167670

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT 5 * - SUM( 48 ) * - - 60 * + 51
----
-734400

skipif mysql # not compatible
query I rowsort label-4290
SELECT 5 * - SUM ( 48 ) * - - 60 * + 51
----
-734400

query I rowsort
SELECT + + 49
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT 36 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT 36 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 22 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - - COUNT( * ) * - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - - COUNT ( * ) * - + 31
----
-31

query I rowsort
SELECT DISTINCT - 54 col0
----
-54

query I rowsort
SELECT + + 97 AS col2
----
97

query I rowsort
SELECT DISTINCT - - 11
----
11

query I rowsort
SELECT ALL 20 + ( - 34 ) * - 59 * 90
----
180560

query I rowsort
SELECT ALL - + 59 AS col0
----
-59

query I rowsort
SELECT 70 * 9 + + 98 AS col2
----
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4301
SELECT MAX( NULLIF ( - 15, 32 ) ) AS col1, - CAST( - 34 AS SIGNED )
----
-15
34

skipif mysql # not compatible
query II rowsort label-4301
SELECT MAX ( NULLIF ( - 15, 32 ) ) AS col1, - CAST ( - 34 AS INTEGER )
----
-15
34

query I rowsort
SELECT ALL - + 42
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT ALL + + CAST( NULL AS SIGNED ) + - - 7 * + SUM( + - 0 ) / + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + + CAST ( NULL AS INTEGER ) + - - 7 * + SUM ( + - 0 ) / + - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT + 58 * + 17 + - 36 + - 15 + - + 8
----
927

query I rowsort
SELECT NULLIF ( - - 25, + - 13 - + - ( + 24 ) )
----
25

query I rowsort
SELECT + 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT + - 28 * - 62 + - COUNT( * ) AS col2
----
1735

skipif mysql # not compatible
query I rowsort label-4307
SELECT + - 28 * - 62 + - COUNT ( * ) AS col2
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL NULLIF ( - + 52, + 49 ) * COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL NULLIF ( - + 52, + 49 ) * COUNT ( * )
----
-52

query I rowsort
SELECT DISTINCT - 99 AS col1
----
-99

query I rowsort
SELECT DISTINCT 55 * - 3 AS col0
----
-165

query I rowsort
SELECT ALL - 12
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4312
SELECT ALL 72 - COALESCE ( - - 87, + 63 ) * - CAST( NULL AS SIGNED ), 51 AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-4312
SELECT ALL 72 - COALESCE ( - - 87, + 63 ) * - CAST ( NULL AS INTEGER ), 51 AS col2
----
NULL
51

query I rowsort
SELECT + 59 AS col2
----
59

query I rowsort
SELECT ALL 13
----
13

query I rowsort
SELECT ALL 15
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4316
SELECT COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4316
SELECT COUNT ( * ) / + COUNT ( * )
----
1

query I rowsort
SELECT ( + + 6 ) * + + 73 * 85 AS col2
----
37230

query I rowsort
SELECT - 70
----
-70

query I rowsort
SELECT DISTINCT 71 - + NULLIF ( - 35, - 2 ) * - ( - 11 )
----
456

query I rowsort
SELECT - 25 AS col1
----
-25

query I rowsort
SELECT - 26 AS col1
----
-26

query I rowsort
SELECT DISTINCT 32
----
32

query I rowsort
SELECT 76 * + 17
----
1292

query I rowsort
SELECT DISTINCT 87 AS col1
----
87

query I rowsort
SELECT - 91 col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL + CASE + COUNT( * ) WHEN - - 68 + + + 96 THEN NULL WHEN - - 84 * + + 57 / - + ( - 78 ) THEN + COUNT( * ) ELSE + MIN( + + 53 ) END AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + CASE + COUNT ( * ) WHEN - - 68 + + + 96 THEN NULL WHEN - - 84 * + + 57 / - + ( - 78 ) THEN + COUNT ( * ) ELSE + MIN ( + + 53 ) END AS col2
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4327
SELECT 41 * - - 61 * + ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT 41 * - - 61 * + ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT ALL CAST( NULL AS SIGNED ) * + + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL CAST ( NULL AS INTEGER ) * + + 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT 28 + - 39 + - MIN( ALL + 44 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-4329
SELECT 28 + - 39 + - MIN ( ALL + 44 ) col0
----
-55

query I rowsort
SELECT - - 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT - COUNT( * ) + + 9 - - 91 * 91 AS col0
----
8289

skipif mysql # not compatible
query I rowsort label-4331
SELECT - COUNT ( * ) + + 9 - - 91 * 91 AS col0
----
8289

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT COUNT( * ) + ( + 7 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4332
SELECT COUNT ( * ) + ( + 7 ) AS col1
----
8

query I rowsort
SELECT - 7 * - ( - 19 ) + - - 38 * 83 + + 26 * 77 * + 95
----
193211

query I rowsort
SELECT - 29 AS col2
----
-29

query I rowsort
SELECT - 57
----
-57

query I rowsort
SELECT DISTINCT - - 99 AS col0
----
99

query I rowsort
SELECT ALL + 22 + + 79
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT - 10 * 66 / - COUNT( * ) + - + 30 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT - 10 * 66 / - COUNT ( * ) + - + 30 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL - MIN( ( + CASE + 18 WHEN - - 84 + 12 THEN NULL ELSE + 5 END ) )
----
-5

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL - MIN ( ( + CASE + 18 WHEN - - 84 + 12 THEN NULL ELSE + 5 END ) )
----
-5

query I rowsort
SELECT DISTINCT - + 48 AS col1
----
-48

query I rowsort
SELECT ALL - 76
----
-76

query I rowsort
SELECT + - 20 AS col1
----
-20

query I rowsort
SELECT DISTINCT - - 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + CASE COUNT( * ) WHEN - 8 THEN NULL ELSE + - 64 END + + - 25
----
-89

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + CASE COUNT ( * ) WHEN - 8 THEN NULL ELSE + - 64 END + + - 25
----
-89

query I rowsort
SELECT - 40 * - + COALESCE ( + 24, + 0 )
----
960

query I rowsort
SELECT 68 * + - 69 AS col0
----
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT - 23 + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-4347
SELECT - 23 + COUNT ( * )
----
-22

query I rowsort
SELECT + - 99 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4349
SELECT + - 38 * - 97 * - 76 + - - NULLIF ( 68, - + 67 - + + 69 + + 49 * - 79 * - 90 ) - - + 13 + - + CAST( NULL AS DECIMAL ) + + 31 * + - 0 + + CASE - - 17 WHEN 7 THEN - 34 * + 28 + 91 END * 44 / - + 33 - - + CASE + - 45 WHEN 23 * + ( 55 ) * + COUNT( * ) + + COUNT( * ) THEN NULL WHEN ( 47 ) * - + 15 - 36 + + + ( + - 61 ) * - 2 * NULLIF ( + - 76, + 14 * - - 43 * 14 ) * 55 THEN + 75 END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT + - 38 * - 97 * - 76 + - - NULLIF ( 68, - + 67 - + + 69 + + 49 * - 79 * - 90 ) - - + 13 + - + CAST ( NULL AS REAL ) + + 31 * + - 0 + + CASE - - 17 WHEN 7 THEN - 34 * + 28 + 91 END * 44 / - + 33 - - + CASE + - 45 WHEN 23 * + ( 55 ) * + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN ( 47 ) * - + 15 - 36 + + + ( + - 61 ) * - 2 * NULLIF ( + - 76, + 14 * - - 43 * 14 ) * 55 THEN + 75 END * 38
----
NULL

query II rowsort
SELECT ALL - + 15 AS col1, + 72
----
-15
72

query I rowsort
SELECT 51 + + CASE ( + 36 ) WHEN - 77 THEN NULL WHEN + - 81 * + AVG ( 5 ) + - 18 THEN + 96 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT ALL - 86 col2, + 16 + + NULLIF ( - SUM( ALL - - 90 ), 56 )
----
-86
-74

skipif mysql # not compatible
query II rowsort label-4352
SELECT ALL - 86 col2, + 16 + + NULLIF ( - SUM ( ALL - - 90 ), 56 )
----
-86
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT - MIN( - 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - MIN ( - 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + MAX( ALL - 71 ) * - 70 + + 65 * 0
----
4970

skipif mysql # not compatible
query I rowsort label-4354
SELECT + MAX ( ALL - 71 ) * - 70 + + 65 * 0
----
4970

query I rowsort
SELECT 67 * - 57 AS col0
----
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - ( 45 ) * COUNT( * ) + - 97
----
-142

skipif mysql # not compatible
query I rowsort label-4356
SELECT - ( 45 ) * COUNT ( * ) + - 97
----
-142

query I rowsort
SELECT 20
----
20

query I rowsort
SELECT + 12 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT 47 + - - 12 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT 47 + - - 12 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 18 AS col2
----
-18

query I rowsort
SELECT ALL + 84 * + 15 * 18 AS col2
----
22680

query I rowsort
SELECT 57 + + 76 - - 1 col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT 95 + - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4363
SELECT 95 + - COUNT ( * ) AS col1
----
94

query I rowsort
SELECT - 23 AS col2
----
-23

query I rowsort
SELECT ALL 25
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4366
SELECT 72 + 81 + 63 + + COUNT( * ) + + CAST( + MAX( ALL - 35 ) AS SIGNED ) * + 14 AS col2
----
-273

skipif mysql # not compatible
query I rowsort label-4366
SELECT 72 + 81 + 63 + + COUNT ( * ) + + CAST ( + MAX ( ALL - 35 ) AS INTEGER ) * + 14 AS col2
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4367
SELECT COUNT( + ( + + 80 ) ) DIV + 31 col1
----
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT COUNT ( + ( + + 80 ) ) / + 31 col1
----
0

query II rowsort
SELECT 58, + 60 AS col1
----
58
60

query I rowsort
SELECT DISTINCT + 67 * + + ( + - 87 ) AS col0
----
-5829

query I rowsort
SELECT ALL 37 col1
----
37

query I rowsort
SELECT ALL 88 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ( 39 ) + + - ( + + 16 ) - + 35 * MIN( DISTINCT - 45 )
----
1598

skipif mysql # not compatible
query I rowsort label-4372
SELECT ( 39 ) + + - ( + + 16 ) - + 35 * MIN ( DISTINCT - 45 )
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT ALL MIN( 41 ) + + - 26 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL MIN ( 41 ) + + - 26 AS col0
----
15

query I rowsort
SELECT - ( + - 31 ) * + ( - - 11 )
----
341

query I rowsort
SELECT + - ( - 28 ) + 41 + - + ( 61 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT ALL + 30, 10 + - COUNT( * ) AS col0
----
30
9

skipif mysql # not compatible
query II rowsort label-4376
SELECT ALL + 30, 10 + - COUNT ( * ) AS col0
----
30
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT ALL - 17 DIV - - 46
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - 17 / - - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT + + COUNT( * ) + - SUM( ALL - - 56 ) + + 16
----
-39

skipif mysql # not compatible
query I rowsort label-4378
SELECT + + COUNT ( * ) + - SUM ( ALL - - 56 ) + + 16
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-4379
SELECT - 85, - COALESCE ( - + 24, + ( + - 75 ) DIV - 43 + - - 65 ) + 71 AS col0
----
-85
95

skipif mysql # not compatible
query II rowsort label-4379
SELECT - 85, - COALESCE ( - + 24, + ( + - 75 ) / - 43 + - - 65 ) + 71 AS col0
----
-85
95

query I rowsort
SELECT ALL - 25 + + 47 * - 69
----
-3268

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4381
SELECT - 36 AS col1, 24 DIV 41 - + 94 + + COUNT( * ) AS col1
----
-36
-93

skipif mysql # not compatible
query II rowsort label-4381
SELECT - 36 AS col1, 24 / 41 - + 94 + + COUNT ( * ) AS col1
----
-36
-93

query I rowsort
SELECT ALL 47
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4383
SELECT ALL COUNT( * ) AS col1, + 43 + - - 82 + - + 36 + + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4383
SELECT ALL COUNT ( * ) AS col1, + 43 + - - 82 + - + 36 + + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT DISTINCT - COUNT( * ) + CAST( + COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT - COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER )
----
0

query I rowsort
SELECT ALL + - 66 * - - 90 AS col0
----
-5940

query I rowsort
SELECT ( - COALESCE ( + 27, ( + 10 ) ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL CASE WHEN ( NOT - COUNT( * ) >= - 80 ) THEN 65 END + - - 49 + - + CASE + + 79 WHEN + + COUNT( * ) * - + ( + 3 ) THEN + 39 + - COUNT( * ) * - - 72 ELSE 73 END * - 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL CASE WHEN ( NOT - COUNT ( * ) >= - 80 ) THEN 65 END + - - 49 + - + CASE + + 79 WHEN + + COUNT ( * ) * - + ( + 3 ) THEN + 39 + - COUNT ( * ) * - - 72 ELSE 73 END * - 41 col0
----
NULL

query I rowsort
SELECT + - 84 - + + 40 * + - 27 AS col0
----
996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4389
SELECT + + 10 * - CAST( + 83 AS SIGNED ) col1
----
-830

skipif mysql # not compatible
query I rowsort label-4389
SELECT + + 10 * - CAST ( + 83 AS INTEGER ) col1
----
-830

query I rowsort
SELECT - + 4 * + - 55 AS col0
----
220

query I rowsort
SELECT ALL + ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT COUNT( ALL - ( - 79 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4392
SELECT COUNT ( ALL - ( - 79 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4393
SELECT 63, + MIN( + + 86 ) AS col2
----
63
86

skipif mysql # not compatible
query II rowsort label-4393
SELECT 63, + MIN ( + + 86 ) AS col2
----
63
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - ( - - MIN( - - 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4394
SELECT - ( - - MIN ( - - 2 ) )
----
-2

query I rowsort
SELECT + 54 AS col2
----
54

query I rowsort
SELECT DISTINCT + 1
----
1

query II rowsort
SELECT ALL 99 * - 5 - - 79 - + + 31 AS col2, ( - - 8 )
----
-447
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT ALL + 4, - COUNT( * ) AS col1
----
4
-1

skipif mysql # not compatible
query II rowsort label-4398
SELECT ALL + 4, - COUNT ( * ) AS col1
----
4
-1

query I rowsort
SELECT + 44 col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT + MIN( DISTINCT - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT + MIN ( DISTINCT - 85 ) AS col1
----
-85

query I rowsort
SELECT DISTINCT + 93
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT ALL - 52 * + 8 * CAST( + 23 AS SIGNED ) AS col2
----
-9568

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - 52 * + 8 * CAST ( + 23 AS INTEGER ) AS col2
----
-9568

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - 72 * + ( + COUNT( * ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4403
SELECT - 72 * + ( + COUNT ( * ) ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - COUNT( * ) * + + 83 + COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4404
SELECT - COUNT ( * ) * + + 83 + COUNT ( * ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT - COALESCE ( - 56, - COALESCE ( COALESCE ( 94, 48 * + 20, - - 77 ), + COUNT( * ) * - COALESCE ( COUNT( * ), + - 40, 28 ) ) * + + 72 ) * + + COUNT( * ) * - 61 * + 46
----
-157136

skipif mysql # not compatible
query I rowsort label-4405
SELECT - COALESCE ( - 56, - COALESCE ( COALESCE ( 94, 48 * + 20, - - 77 ), + COUNT ( * ) * - COALESCE ( COUNT ( * ), + - 40, 28 ) ) * + + 72 ) * + + COUNT ( * ) * - 61 * + 46
----
-157136

query II rowsort
SELECT + ( + 77 ) AS col0, ( 48 )
----
77
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT + 19 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT + 19 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 89 * - + 29 - 6
----
-2587

query I rowsort
SELECT ALL - 52 * - 64
----
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - 36 * CASE 72 WHEN 49 * - 54 * - ( + 64 ) * - COUNT( * ) + - COUNT( * ) * + - ( - + 13 ) THEN NULL WHEN + - 39 THEN - 10 * + COUNT( * ) + 84 * + 7 END * + 15 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT - 36 * CASE 72 WHEN 49 * - 54 * - ( + 64 ) * - COUNT ( * ) + - COUNT ( * ) * + - ( - + 13 ) THEN NULL WHEN + - 39 THEN - 10 * + COUNT ( * ) + 84 * + 7 END * + 15 col2
----
NULL

query I rowsort
SELECT - 18 * 51 AS col2
----
-918

query I rowsort
SELECT ALL + 40 AS col1
----
40

query I rowsort
SELECT ALL + 11 AS col1
----
11

query II rowsort
SELECT DISTINCT + ( - 2 ) AS col0, 3
----
-2
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4415
SELECT + 11 * + COALESCE ( 18, - AVG ( DISTINCT - + 79 ) * + 58 DIV + 48 + + 21 ) * + COUNT( * ) + + 81 * + ( - 38 ) + 54
----
-2826

skipif mysql # not compatible
query I rowsort label-4415
SELECT + 11 * + COALESCE ( 18, - AVG ( DISTINCT - + 79 ) * + 58 / + 48 + + 21 ) * + COUNT ( * ) + + 81 * + ( - 38 ) + 54
----
-2826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT ALL + CAST( + CAST( - 48 AS SIGNED ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + CAST ( + CAST ( - 48 AS INTEGER ) AS INTEGER )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-4417
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * 84
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + + 86 * + + ( - - 32 ) + 16 - 91 * + + 24
----
-4920

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + + 86 * + + ( - - 32 ) + 16 - 91 * + + 24
----
-4920

query I rowsort
SELECT ALL 32 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT - 70 - + - SUM( 20 ) * COALESCE ( - 93, + 81 ) * + 68 + 81 + - 85 + - 80 + COUNT( * ) * COUNT( + CAST( NULL AS SIGNED ) ) * 4 - + - 65
----
-126569

skipif mysql # not compatible
query I rowsort label-4420
SELECT - 70 - + - SUM ( 20 ) * COALESCE ( - 93, + 81 ) * + 68 + 81 + - 85 + - 80 + COUNT ( * ) * COUNT ( + CAST ( NULL AS INTEGER ) ) * 4 - + - 65
----
-126569

query I rowsort
SELECT - 86 AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT - CAST( NULL AS SIGNED ) * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT - CAST ( NULL AS INTEGER ) * - 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT - COALESCE ( 20, COUNT( * ) * + 38 + - 61 ) AS col1, - ( - MAX( + - 52 ) ) * - ( - ( + 65 ) ) * + + 41 AS col0
----
-20
-138580

skipif mysql # not compatible
query II rowsort label-4424
SELECT - COALESCE ( 20, COUNT ( * ) * + 38 + - 61 ) AS col1, - ( - MAX ( + - 52 ) ) * - ( - ( + 65 ) ) * + + 41 AS col0
----
-20
-138580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL CAST( - 83 AS SIGNED ) + + 91
----
8

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL CAST ( - 83 AS INTEGER ) + + 91
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - COUNT( * ) - + 19 + + - 44 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4426
SELECT - COUNT ( * ) - + 19 + + - 44 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4427
SELECT ALL - CAST( NULL AS SIGNED ) * - - COALESCE ( 67, + - MAX( ALL - - 19 ) ), 27 AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4427
SELECT ALL - CAST ( NULL AS INTEGER ) * - - COALESCE ( 67, + - MAX ( ALL - - 19 ) ), 27 AS col1
----
NULL
27

query I rowsort
SELECT - - 80
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT ALL SUM( DISTINCT - 13 ), 24 AS col2
----
-13
24

skipif mysql # not compatible
query II rowsort label-4429
SELECT ALL SUM ( DISTINCT - 13 ), 24 AS col2
----
-13
24

query I rowsort
SELECT DISTINCT ( - 27 )
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-4431
SELECT - + 14 + + 31 AS col2, 94 DIV - - 43
----
17
2

skipif mysql # not compatible
query II rowsort label-4431
SELECT - + 14 + + 31 AS col2, 94 / - - 43
----
17
2

query I rowsort
SELECT CASE + 4 WHEN - 83 THEN 46 ELSE + 11 - - - NULLIF ( + 60, 45 * 63 * - 7 ) END AS col2
----
-49

query I rowsort
SELECT ALL - 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - - 39 + - COUNT( * ) * + + 72 col0
----
-33

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - 39 + - COUNT ( * ) * + + 72 col0
----
-33

query I rowsort
SELECT + - NULLIF ( + 45, - 43 ) - - + 88
----
43

query I rowsort
SELECT - 31 * 6 AS col0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + + 64 + + MAX( 97 ) * + - 83 AS col2
----
-7987

skipif mysql # not compatible
query I rowsort label-4437
SELECT + + 64 + + MAX ( 97 ) * + - 83 AS col2
----
-7987

query I rowsort
SELECT - 77 AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4439
SELECT + CAST( NULL AS SIGNED ) * NULLIF ( + 16, 96 * - - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT + CAST ( NULL AS INTEGER ) * NULLIF ( + 16, 96 * - - 57 )
----
NULL

query I rowsort
SELECT - 10
----
-10

query I rowsort
SELECT ALL + 85 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4442
SELECT + 58 + - 82 * CAST( - 73 AS SIGNED ) * 45 DIV 16
----
16893

skipif mysql # not compatible
query I rowsort label-4442
SELECT + 58 + - 82 * CAST ( - 73 AS INTEGER ) * 45 / 16
----
16893

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL SUM( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL SUM ( 90 )
----
90

query I rowsort
SELECT ALL + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + + ( + + MAX( - + 77 ) ) * 42 + CASE + - 11 WHEN 8 THEN + 40 * - - 55 END + + + 13 * 25 * - + 78 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT + + ( + + MAX ( - + 77 ) ) * 42 + CASE + - 11 WHEN 8 THEN + 40 * - - 55 END + + + 13 * 25 * - + 78 * - 48
----
NULL

query I rowsort
SELECT ALL - 87 * + 57 AS col1
----
-4959

query I rowsort
SELECT ALL + 77
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + ( - 6 ) + 80 * + 91 AS col2
----
7274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT CAST( - 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-4450
SELECT CAST ( - 79 AS INTEGER )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT + CAST( NULL AS SIGNED ) * 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT + CAST ( NULL AS INTEGER ) * 39 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL 55 * - + CAST( 72 AS SIGNED )
----
-3960

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL 55 * - + CAST ( 72 AS INTEGER )
----
-3960

query I rowsort
SELECT + ( - NULLIF ( + 14, - 2 ) ) col2
----
-14

query I rowsort
SELECT - COALESCE ( - - 11, - + 40 ) + 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + ( + NULLIF ( - 42, + + ( - COUNT( * ) ) + - 45 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-4455
SELECT + ( + NULLIF ( - 42, + + ( - COUNT ( * ) ) + - 45 ) )
----
-42

query I rowsort
SELECT + 95 * + 59 col2
----
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT + 13 / + CASE + - COALESCE ( + 60, 39 ) WHEN COUNT( * ) / - 12 + + - 98 + + - 63 THEN NULL WHEN - 43 THEN - 56 - COUNT( - 65 ) END * + - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT + 13 / + CASE + - COALESCE ( + 60, 39 ) WHEN COUNT ( * ) / - 12 + + - 98 + + - 63 THEN NULL WHEN - 43 THEN - 56 - COUNT ( - 65 ) END * + - 50 AS col0
----
NULL

query II rowsort
SELECT ALL + 11 AS col0, 55 AS col1
----
11
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4459
SELECT DISTINCT COUNT( * ) DIV - 89 + + - 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT COUNT ( * ) / - 89 + + - 86 AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4460
SELECT - 83 DIV + + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4460
SELECT - 83 / + + COUNT ( * ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT ALL CASE - CASE + 82 WHEN - - 79 * + AVG ( DISTINCT + - 79 ) + + MAX( - CASE 4 WHEN - - 37 * + + CAST( + CAST( 5 AS SIGNED ) AS SIGNED ) * 43 THEN - 61 ELSE NULL END ) THEN - + 7 * + - 62 - + 18 WHEN - 32 THEN + - 23 END WHEN + COUNT( * ) THEN + ( + 20 ) ELSE NULL END * + 3 + + AVG ( - - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL CASE - CASE + 82 WHEN - - 79 * + AVG ( DISTINCT + - 79 ) + + MAX ( - CASE 4 WHEN - - 37 * + + CAST ( + CAST ( 5 AS INTEGER ) AS INTEGER ) * 43 THEN - 61 ELSE NULL END ) THEN - + 7 * + - 62 - + 18 WHEN - 32 THEN + - 23 END WHEN + COUNT ( * ) THEN + ( + 20 ) ELSE NULL END * + 3 + + AVG ( - - 10 )
----
NULL

query I rowsort
SELECT + 76
----
76

query I rowsort
SELECT 75 - + ( - - 3 ) + + - 32 * - ( - + ( - 14 ) ) col2
----
520

query I rowsort
SELECT ALL - 22 * - 31 AS col1
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT 49 * - 91 - - + 54 * - - NULLIF ( + COUNT( * ), - 27 ) AS col2
----
-4405

skipif mysql # not compatible
query I rowsort label-4465
SELECT 49 * - 91 - - + 54 * - - NULLIF ( + COUNT ( * ), - 27 ) AS col2
----
-4405

query I rowsort
SELECT + 87 AS col0
----
87

query I rowsort
SELECT ALL + 49 + + + 72 * + - 3
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT 78 * + 81 + COUNT( * )
----
6319

skipif mysql # not compatible
query I rowsort label-4468
SELECT 78 * + 81 + COUNT ( * )
----
6319

query I rowsort
SELECT DISTINCT ( + - 46 ) AS col1
----
-46

query I rowsort
SELECT ALL + 51 AS col0
----
51

query I rowsort
SELECT ALL + - 95 - - + 30
----
-65

query I rowsort
SELECT DISTINCT 76 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - 93 * - ( - 82 ) + + COUNT( * ) AS col0
----
-7625

skipif mysql # not compatible
query I rowsort label-4473
SELECT - 93 * - ( - 82 ) + + COUNT ( * ) AS col0
----
-7625

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT - 62 + 78 + - + 84 + - SUM( - 72 ) * + 50 AS col0, 36
----
3532
36

skipif mysql # not compatible
query II rowsort label-4474
SELECT - 62 + 78 + - + 84 + - SUM ( - 72 ) * + 50 AS col0, 36
----
3532
36

query I rowsort
SELECT DISTINCT - 15
----
-15

query I rowsort
SELECT ALL ( + - 15 )
----
-15

query I rowsort
SELECT 11 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT - 76 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT - 76 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT 64 + - + 5 DIV 80
----
64

skipif mysql # not compatible
query I rowsort label-4479
SELECT 64 + - + 5 / 80
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4480
SELECT ALL - 82 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - 82 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + COUNT( * ) * + COUNT( * ) * + 40 + - 90 + - 12 + + - 28 * - COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4481
SELECT + COUNT ( * ) * + COUNT ( * ) * + 40 + - 90 + - 12 + + - 28 * - COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT DISTINCT 66 col2
----
66

query I rowsort
SELECT DISTINCT 27 col2
----
27

query I rowsort
SELECT DISTINCT 50 AS col2
----
50

query I rowsort
SELECT ALL + ( - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT DISTINCT - 88 * - + 52 + + MAX( 82 ) * - + 35
----
1706

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - 88 * - + 52 + + MAX ( 82 ) * - + 35
----
1706

query I rowsort
SELECT + 83 * - - 74 * - ( + ( 33 ) ) AS col0
----
-202686

query I rowsort
SELECT 23 - - 9 col0
----
32

query I rowsort
SELECT ALL - COALESCE ( - - 67, + ( - 27 ) ) AS col1
----
-67

query I rowsort
SELECT ALL - 15
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4491
SELECT MAX( ALL - 16 ) * + NULLIF ( COUNT( ALL CAST( NULL AS DECIMAL ) ), 41 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT MAX ( ALL - 16 ) * + NULLIF ( COUNT ( ALL CAST ( NULL AS REAL ) ), 41 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4492
SELECT ALL 7 DIV COUNT( * ) AS col2, - 36
----
7
-36

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL 7 / COUNT ( * ) AS col2, - 36
----
7
-36

query I rowsort
SELECT ALL - NULLIF ( - - 86, - 86 )
----
-86

query I rowsort
SELECT ( 65 ) * - - 18 + - - 2 - + 79 AS col2
----
1093

query I rowsort
SELECT ALL 1 + - 14 * - 57 * + - ( + - 12 ) + 19 AS col1
----
9596

query I rowsort
SELECT 16 * + + 42 + 75 + - 85 * 1
----
662

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4497
SELECT DISTINCT 36 + - CAST( NULL AS SIGNED ), + 12 AS col1
----
NULL
12

skipif mysql # not compatible
query II rowsort label-4497
SELECT DISTINCT 36 + - CAST ( NULL AS INTEGER ), + 12 AS col1
----
NULL
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT 95 * - 16 * COUNT( * )
----
-1520

skipif mysql # not compatible
query I rowsort label-4498
SELECT 95 * - 16 * COUNT ( * )
----
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL 48 + + 9 * - CASE - CAST( 55 AS SIGNED ) WHEN COUNT( * ) / + 89 THEN NULL ELSE + + COALESCE ( - - 45, - COALESCE ( 60, + ( - CAST( + + 13 AS SIGNED ) ) * 97, - - 51 ) * + + 3 ) + ( - ( 6 ) ) + + 46 + + 76 END AS col1
----
-1401

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL 48 + + 9 * - CASE - CAST ( 55 AS INTEGER ) WHEN COUNT ( * ) / + 89 THEN NULL ELSE + + COALESCE ( - - 45, - COALESCE ( 60, + ( - CAST ( + + 13 AS INTEGER ) ) * 97, - - 51 ) * + + 3 ) + ( - ( 6 ) ) + + 46 + + 76 END AS col1
----
-1401

query I rowsort
SELECT DISTINCT - 33
----
-33

query I rowsort
SELECT 72 * - 56 AS col2
----
-4032

query I rowsort
SELECT 85 + + 36 + + 19 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL 35 + - MIN( ALL + 58 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL 35 + - MIN ( ALL + 58 ) AS col0
----
-23

query I rowsort
SELECT 74 AS col0
----
74

query I rowsort
SELECT 79 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4506
SELECT ALL - CAST( + + 72 AS SIGNED ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL - CAST ( + + 72 AS INTEGER ) / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL MAX( 72 ) - + ( - 67 ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL MAX ( 72 ) - + ( - 67 ) AS col0
----
139

query I rowsort
SELECT + + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + COUNT( DISTINCT 17 ) * - - 81 col2
----
81

skipif mysql # not compatible
query I rowsort label-4509
SELECT + COUNT ( DISTINCT 17 ) * - - 81 col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT 10 * - COUNT( * ) + + 47 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4510
SELECT 10 * - COUNT ( * ) + + 47 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4511
SELECT COUNT( * ) DIV + 1 + - COUNT( * ) * + + 58 AS col2, 55 * + - COUNT( * )
----
-57
-55

skipif mysql # not compatible
query II rowsort label-4511
SELECT COUNT ( * ) / + 1 + - COUNT ( * ) * + + 58 AS col2, 55 * + - COUNT ( * )
----
-57
-55

query I rowsort
SELECT - 5 AS col2
----
-5

query I rowsort
SELECT ALL 16 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT DISTINCT - 44 * 18 DIV + + ( + NULLIF ( + + SUM( DISTINCT + - 76 ), MIN( DISTINCT - 34 ) ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT - 44 * 18 / + + ( + NULLIF ( + + SUM ( DISTINCT + - 76 ), MIN ( DISTINCT - 34 ) ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - CASE - 41 WHEN 7 / - 15 * COUNT( * ) + 41 - 16 + - ( + - 46 ) THEN 7 WHEN + + 80 + + 55 THEN COUNT( * ) * - COUNT( * ) - + 43 + + - 54 * + 52 * 76 + - 52 + - 13 - - + 64 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT - CASE - 41 WHEN 7 / - 15 * COUNT ( * ) + 41 - 16 + - ( + - 46 ) THEN 7 WHEN + + 80 + + 55 THEN COUNT ( * ) * - COUNT ( * ) - + 43 + + - 54 * + 52 * 76 + - 52 + - 13 - - + 64 * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT ALL + COUNT( * ) * + 33 * + COUNT( * ) - 48 * + + ( + COUNT( * ) ) * - COUNT( * ) * - - 32 + COUNT( * ) + - + 92
----
1478

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + COUNT ( * ) * + 33 * + COUNT ( * ) - 48 * + + ( + COUNT ( * ) ) * - COUNT ( * ) * - - 32 + COUNT ( * ) + - + 92
----
1478

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT - 59 * COUNT( * ) * - 52 + + 28 - + 86 AS col0
----
3010

skipif mysql # not compatible
query I rowsort label-4517
SELECT - 59 * COUNT ( * ) * - 52 + + 28 - + 86 AS col0
----
3010

query I rowsort
SELECT ALL - 79 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + COUNT( * ) - 90 + - 15 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-4519
SELECT + COUNT ( * ) - 90 + - 15 AS col2
----
-104

query I rowsort
SELECT ALL - 68 col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + 40 - + + 52 * - + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-4521
SELECT + 40 - + + 52 * - + COUNT ( * )
----
92

query I rowsort
SELECT ALL + 56
----
56

query I rowsort
SELECT - - 58 col2
----
58

query I rowsort
SELECT ALL + 45 col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT - 76 - - CAST( NULL AS SIGNED ) / 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT - 76 - - CAST ( NULL AS INTEGER ) / 11 AS col1
----
NULL

query I rowsort
SELECT ALL - + 13 + + 90
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT COUNT( * ) + ( + 24 ) + - 70 AS col0, 28 * - SUM( ALL - - 1 )
----
-45
-28

skipif mysql # not compatible
query II rowsort label-4527
SELECT COUNT ( * ) + ( + 24 ) + - 70 AS col0, 28 * - SUM ( ALL - - 1 )
----
-45
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4528
SELECT + CAST( ( COUNT( ALL - + 92 ) ) AS SIGNED ) - - CAST( NULL AS DECIMAL ) + - 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT + CAST ( ( COUNT ( ALL - + 92 ) ) AS INTEGER ) - - CAST ( NULL AS REAL ) + - 2 col0
----
NULL

query I rowsort
SELECT - 95 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL + 93 + COUNT( * ) * - COALESCE ( 1, CAST( - ( - 95 ) AS SIGNED ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + 93 + COUNT ( * ) * - COALESCE ( 1, CAST ( - ( - 95 ) AS INTEGER ) ) col1
----
92

query I rowsort
SELECT - 97 AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL + 66 + - + COUNT( + - 64 ) + + 54 * - - CAST( NULL AS SIGNED ) * 99 * COALESCE ( COUNT( * ), - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + 66 + - + COUNT ( + - 64 ) + + 54 * - - CAST ( NULL AS INTEGER ) * 99 * COALESCE ( COUNT ( * ), - 52 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT 76 + + 80 DIV - 36 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4533
SELECT 76 + + 80 / - 36 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL + 21 * NULLIF ( - COUNT( * ), - 23 ) * - + 87
----
1827

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL + 21 * NULLIF ( - COUNT ( * ), - 23 ) * - + 87
----
1827

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4535
SELECT COALESCE ( - + 19, - + 33 * 0 + - 63 ) * CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT COALESCE ( - + 19, - + 33 * 0 + - 63 ) * CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) + 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT ALL ( - 39 ) * + 71 * + 40 - 7 DIV 58 + - - 27 + + + 14 AS col1
----
-110719

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL ( - 39 ) * + 71 * + 40 - 7 / 58 + - - 27 + + + 14 AS col1
----
-110719

query II rowsort
SELECT NULLIF ( - 38, 70 + + 69 * - 74 ), + 22 AS col1
----
-38
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT - COUNT( + 52 ) * - 73 + + COALESCE ( - 8, - 92 + - + 15 + - - 22, + 80, COUNT( * ) - - 14 + + 41 * + - 72 ) + + 55 * ( + 91 ) + - 9
----
5061

skipif mysql # not compatible
query I rowsort label-4538
SELECT - COUNT ( + 52 ) * - 73 + + COALESCE ( - 8, - 92 + - + 15 + - - 22, + 80, COUNT ( * ) - - 14 + + 41 * + - 72 ) + + 55 * ( + 91 ) + - 9
----
5061

query I rowsort
SELECT + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - 47 + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4540
SELECT - 47 + + COUNT ( * )
----
-46

query I rowsort
SELECT - 48 * + 55 + - + 36
----
-2676

query I rowsort
SELECT + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT 67 * - - 8 + - 7 * - COALESCE ( + 82, - 82, + 86 * + 95 * + COUNT( * ) ) * - - 41
----
24070

skipif mysql # not compatible
query I rowsort label-4543
SELECT 67 * - - 8 + - 7 * - COALESCE ( + 82, - 82, + 86 * + 95 * + COUNT ( * ) ) * - - 41
----
24070

query I rowsort
SELECT ALL + 15 * - 96 + - 7 + 95 * - 29 AS col2
----
-4202

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT CASE - 97 WHEN - 39 THEN - - 51 WHEN 74 / + 84 THEN NULL WHEN - - ( - + SUM( 25 ) ) THEN NULL END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT CASE - 97 WHEN - 39 THEN - - 51 WHEN 74 / + 84 THEN NULL WHEN - - ( - + SUM ( 25 ) ) THEN NULL END / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 10 ) AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT + 76 DIV ( - - 78 ) * 13 col0
----
0

skipif mysql # not compatible
query I rowsort label-4547
SELECT + 76 / ( - - 78 ) * 13 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + 94 + + 78 - - + COUNT( * ) + - 42
----
131

skipif mysql # not compatible
query I rowsort label-4548
SELECT + 94 + + 78 - - + COUNT ( * ) + - 42
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + MIN( ( - 21 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + MIN ( ( - 21 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT MIN( + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4550
SELECT MIN ( + 38 )
----
38

query I rowsort
SELECT DISTINCT + 76 * 58 AS col2
----
4408

query I rowsort
SELECT 23 AS col0
----
23

query I rowsort
SELECT ALL + - 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - - COUNT( * ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-4554
SELECT - - COUNT ( * ) + 28
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4555
SELECT - MIN( ALL 84 ) - 15 + + 93 * 99, MAX( - 67 ) col1
----
9108
-67

skipif mysql # not compatible
query II rowsort label-4555
SELECT - MIN ( ALL 84 ) - 15 + + 93 * 99, MAX ( - 67 ) col1
----
9108
-67

query I rowsort
SELECT + 35 * CASE + 99 WHEN - - 93 * + AVG ( ALL 62 ) * - 38 * + + 96 * 2 THEN - - 12 END * - + 19 * + 85 * + 84 * - ( 3 ) AS col1
----
NULL

query I rowsort
SELECT + + 26 + 10
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4558
SELECT + - 75 * + ( + + ( + + COUNT( * ) ) ) + + 10 + 45 DIV 86
----
-65

skipif mysql # not compatible
query I rowsort label-4558
SELECT + - 75 * + ( + + ( + + COUNT ( * ) ) ) + + 10 + 45 / 86
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT DISTINCT - 15 * + 54 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - 15 * + 54 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT + - 46 + - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4561
SELECT + - 46 + - COUNT ( * ) AS col2
----
-47

query I rowsort
SELECT + + 77 * - 5 AS col1
----
-385

query I rowsort
SELECT DISTINCT - 63 AS col0
----
-63

query I rowsort
SELECT ALL + 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT + COALESCE ( + COUNT( * ), 76 * - 50 ) + MIN( - + 27 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4565
SELECT + COALESCE ( + COUNT ( * ), 76 * - 50 ) + MIN ( - + 27 ) AS col1
----
-26

query I rowsort
SELECT + 38 + 53 AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4567
SELECT - - 14 AS col0, COALESCE ( - + 95, 84 + 17 + + + 26 * 94 + + 95 / + + COUNT( * ) * 90 ) * - - COALESCE ( - + 47, - 60 ) + + - CASE - COUNT( * ) WHEN 72 THEN - COALESCE ( - - 75, 93 + - + 61 * + 36 * + CASE COUNT( * ) WHEN + 11 THEN - 89 WHEN 65 THEN + ( - 16 ) WHEN - - 89 / - 24 THEN 60 + - + ( - - 6 ) END, - + 96 * + 81 / 99 ) WHEN 68 THEN NULL ELSE NULL END
----
14
NULL

skipif mysql # not compatible
query II rowsort label-4567
SELECT - - 14 AS col0, COALESCE ( - + 95, 84 + 17 + + + 26 * 94 + + 95 / + + COUNT ( * ) * 90 ) * - - COALESCE ( - + 47, - 60 ) + + - CASE - COUNT ( * ) WHEN 72 THEN - COALESCE ( - - 75, 93 + - + 61 * + 36 * + CASE COUNT ( * ) WHEN + 11 THEN - 89 WHEN 65 THEN + ( - 16 ) WHEN - - 89 / - 24 THEN 60 + - + ( - - 6 ) END, - + 96 * + 81 / 99 ) WHEN 68 THEN NULL ELSE NULL END
----
14
NULL

query I rowsort
SELECT + ( + + 8 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT DISTINCT + 88 DIV 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT + 88 / 81 AS col2
----
1

query I rowsort
SELECT ALL 21 + + 64
----
85

query I rowsort
SELECT - - 19 + + 14
----
33

query I rowsort
SELECT + - 50 * - 63 - + CASE 59 WHEN - 24 THEN - ( + + 58 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL + COUNT( * ) * 1 + 94 + - 23
----
72

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL + COUNT ( * ) * 1 + 94 + - 23
----
72

query I rowsort
SELECT - 74
----
-74

query I rowsort
SELECT + + 75 * + 26 * + + 94 - + 52 * + 28
----
181844

query I rowsort
SELECT - 24 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4577
SELECT - ( + COUNT( * ) ) AS col1, 14 DIV - + 99, 85 AS col2
----
-1
0
85

skipif mysql # not compatible
query III rowsort label-4577
SELECT - ( + COUNT ( * ) ) AS col1, 14 / - + 99, 85 AS col2
----
-1
0
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT ALL 78 + - + COUNT( * ), COUNT( * ) AS col0
----
77
1

skipif mysql # not compatible
query II rowsort label-4578
SELECT ALL 78 + - + COUNT ( * ), COUNT ( * ) AS col0
----
77
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4579
SELECT DISTINCT 37 + + 19 * + 86 * - COUNT( * ), + 94 * + + 84 + 65 * 96 col1
----
-1597
14136

skipif mysql # not compatible
query II rowsort label-4579
SELECT DISTINCT 37 + + 19 * + 86 * - COUNT ( * ), + 94 * + + 84 + 65 * 96 col1
----
-1597
14136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL - COUNT( * ) + - CAST( - ( 56 ) AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL - COUNT ( * ) + - CAST ( - ( 56 ) AS INTEGER ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL 72 + - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL 72 + - COUNT ( * ) AS col0
----
71

query II rowsort
SELECT 12, - 97 AS col2
----
12
-97

query I rowsort
SELECT + 54 - - 53
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4584
SELECT + COALESCE ( + - 70, - ( CAST( - 40 AS SIGNED ) ), - AVG ( - - 96 ) * 6 * + - 83 * - 88 ) - - 90 + - 56 * CASE - - 3 WHEN + - COUNT( + 39 ) * + MAX( - + 70 ) + + + 56 THEN + 3 WHEN - 28 / - - ( + SUM( DISTINCT 15 ) ) * - 58 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT + COALESCE ( + - 70, - ( CAST ( - 40 AS INTEGER ) ), - AVG ( - - 96 ) * 6 * + - 83 * - 88 ) - - 90 + - 56 * CASE - - 3 WHEN + - COUNT ( + 39 ) * + MAX ( - + 70 ) + + + 56 THEN + 3 WHEN - 28 / - - ( + SUM ( DISTINCT 15 ) ) * - 58 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - 36 * + 6 * - MAX( DISTINCT - 20 ) AS col2
----
-4320

skipif mysql # not compatible
query I rowsort label-4585
SELECT - 36 * + 6 * - MAX ( DISTINCT - 20 ) AS col2
----
-4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT CAST( - 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4586
SELECT CAST ( - 58 AS INTEGER ) AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT 90 DIV - 48 + + + 79
----
78

skipif mysql # not compatible
query I rowsort label-4587
SELECT 90 / - 48 + + + 79
----
78

query I rowsort
SELECT - 89 * - 22
----
1958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT DISTINCT 57 DIV + 14 - COUNT( - - 40 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT 57 / + 14 - COUNT ( - - 40 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + COUNT( * ) * 32
----
32

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + COUNT ( * ) * 32
----
32

query I rowsort
SELECT DISTINCT + 58
----
58

query I rowsort
SELECT ( 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ( + + MAX( ALL - 47 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-4593
SELECT ( + + MAX ( ALL - 47 ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL + MIN( - + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + MIN ( - + 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 72 + - - 64 col0
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT + - 66 DIV 76 - - 95 * - + 85 + + NULLIF ( - - 6, + 57 * ( 71 ) )
----
-8069

skipif mysql # not compatible
query I rowsort label-4597
SELECT + - 66 / 76 - - 95 * - + 85 + + NULLIF ( - - 6, + 57 * ( 71 ) )
----
-8069

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT + - MIN( DISTINCT 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT + - MIN ( DISTINCT 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT 99 AS col2
----
99

query I rowsort
SELECT + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4602
SELECT ALL COUNT( * ) DIV - MIN( ALL - 64 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL COUNT ( * ) / - MIN ( ALL - 64 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT DISTINCT + + COUNT( ALL + + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT + + COUNT ( ALL + + 56 )
----
1

query II rowsort
SELECT ALL + 62 AS col2, + 7
----
62
7

query I rowsort
SELECT + - 49
----
-49

query I rowsort
SELECT DISTINCT - 3 * + + 19 AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4607
SELECT - + NULLIF ( + 46, - COUNT( * ) ) - + ( - 37 ) + + - COUNT( * ) + - + COALESCE ( 44, + 57 + + COUNT( ALL + 81 ) + - - 27 + COALESCE ( 40, COUNT( * ) * - 98 ) / + 99 ) - + 15 * + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) / 93 AS col2, 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-4607
SELECT - + NULLIF ( + 46, - COUNT ( * ) ) - + ( - 37 ) + + - COUNT ( * ) + - + COALESCE ( 44, + 57 + + COUNT ( ALL + 81 ) + - - 27 + COALESCE ( 40, COUNT ( * ) * - 98 ) / + 99 ) - + 15 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 93 AS col2, 33 AS col2
----
NULL
33

query I rowsort
SELECT - 13 AS col1
----
-13

query I rowsort
SELECT + - 65 * + 25
----
-1625

query I rowsort
SELECT ALL - 12 * + 43 + 5 + 86 col0
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + ( + COALESCE ( NULLIF ( 40, - 47 ), - 16 * + 82 + - COUNT( * ) - 34, - 16 + + - 1 ) ) * - - 98 + + 18 AS col1
----
3938

skipif mysql # not compatible
query I rowsort label-4611
SELECT + ( + COALESCE ( NULLIF ( 40, - 47 ), - 16 * + 82 + - COUNT ( * ) - 34, - 16 + + - 1 ) ) * - - 98 + + 18 AS col1
----
3938

query II rowsort
SELECT ALL - 10 * + 15 AS col2, + 56
----
-150
56

query I rowsort
SELECT + - 4 * + 44
----
-176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4614
SELECT DISTINCT + - COUNT( * ) * + ( - 97 ) + + + COALESCE ( + 9, - 44, - MAX( DISTINCT + - 57 ) DIV + + 4 ) + - + 7 * + 47 AS col0
----
-223

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT + - COUNT ( * ) * + ( - 97 ) + + + COALESCE ( + 9, - 44, - MAX ( DISTINCT + - 57 ) / + + 4 ) + - + 7 * + 47 AS col0
----
-223

query I rowsort
SELECT + 97 AS col1
----
97

query I rowsort
SELECT ALL 55 + 83
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + COUNT( * ) - + 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4617
SELECT + COUNT ( * ) - + 87 AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4618
SELECT ALL + 41 AS col0, + CAST( NULL AS SIGNED ) + + 44 AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-4618
SELECT ALL + 41 AS col0, + CAST ( NULL AS INTEGER ) + + 44 AS col0
----
41
NULL

query I rowsort
SELECT ALL 92
----
92

query I rowsort
SELECT DISTINCT 98
----
98

query I rowsort
SELECT 66 + + 79 - 70
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT ALL 25 DIV + ( + 63 )
----
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL 25 / + ( + 63 )
----
0

query I rowsort
SELECT 11 - - + 91 + + + 94 AS col0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT AVG ( - 92 ) + + CASE - + 88 WHEN + 59 * - - ( 58 ) THEN MIN( ALL - 10 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT AVG ( - 92 ) + + CASE - + 88 WHEN + 59 * - - ( 58 ) THEN MIN ( ALL - 10 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT 20 - MIN( DISTINCT ( 51 ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4625
SELECT 20 - MIN ( DISTINCT ( 51 ) ) AS col0
----
-31

query I rowsort
SELECT ALL 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT 94 + - 2 * - 61 + - 85 + MAX( + 43 )
----
174

skipif mysql # not compatible
query I rowsort label-4627
SELECT 94 + - 2 * - 61 + - 85 + MAX ( + 43 )
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4628
SELECT ALL 89 DIV COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL 89 / COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT 18 AS col1
----
18

query I rowsort
SELECT ALL 70 AS col0
----
70

query I rowsort
SELECT DISTINCT 41 * - - 4
----
164

query I rowsort
SELECT ALL - 91 AS col1
----
-91

query I rowsort
SELECT + 28
----
28

query I rowsort
SELECT ALL - 62 col2
----
-62

query I rowsort
SELECT ( + 13 ) + - 53 AS col1
----
-40

query I rowsort
SELECT 96 * + 88 * 16 + 1 AS col0
----
135169

query I rowsort
SELECT 24
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT + 82 * 49 + + ( - CAST( NULLIF ( + - 97, 85 + - 82 ) AS SIGNED ) )
----
4115

skipif mysql # not compatible
query I rowsort label-4638
SELECT + 82 * 49 + + ( - CAST ( NULLIF ( + - 97, 85 + - 82 ) AS INTEGER ) )
----
4115

query I rowsort
SELECT ALL - - 87
----
87

query I rowsort
SELECT ALL - 54
----
-54

query I rowsort
SELECT DISTINCT - + ( + 35 )
----
-35

query I rowsort
SELECT ALL + 24 + 5 * + 19 AS col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT - + 37 DIV - 97 + - 27 + + 50 + - + 44 + - - 32 + + 65 col0
----
76

skipif mysql # not compatible
query I rowsort label-4643
SELECT - + 37 / - 97 + - 27 + + 50 + - + 44 + - - 32 + + 65 col0
----
76

query I rowsort
SELECT 39
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT ALL + 55 DIV - + 84 + 33 DIV - ( + 27 ) + + 86 col1
----
85

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + 55 / - + 84 + 33 / - ( + 27 ) + + 86 col1
----
85

query I rowsort
SELECT + 96
----
96

query I rowsort
SELECT ALL - + 37 col1
----
-37

query I rowsort
SELECT 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - 59 + 71 + + CASE + ( - ( + + 77 ) ) WHEN - 45 THEN - 2 + - COUNT( * ) ELSE NULL END + 15 * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT - 59 + 71 + + CASE + ( - ( + + 77 ) ) WHEN - 45 THEN - 2 + - COUNT ( * ) ELSE NULL END + 15 * 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT 77 * - 83 DIV + + COUNT( * ) - 79
----
-6470

skipif mysql # not compatible
query I rowsort label-4650
SELECT 77 * - 83 / + + COUNT ( * ) - 79
----
-6470

query I rowsort
SELECT DISTINCT - 84 AS col2
----
-84

query I rowsort
SELECT + + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT + MAX( DISTINCT + 95 ) + - MIN( DISTINCT + - 31 ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT + MAX ( DISTINCT + 95 ) + - MIN ( DISTINCT + - 31 ) AS col2
----
126

query I rowsort
SELECT + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL + 47 + + COUNT( * ) * - - 90 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + 47 + + COUNT ( * ) * - - 90 AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL + - MIN( ALL + 2 ) + - - 55 + 20 + - 58 * + 82 col1
----
-4683

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + - MIN ( ALL + 2 ) + - - 55 + 20 + - 58 * + 82 col1
----
-4683

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT ALL - 78 DIV 36
----
-2

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL - 78 / 36
----
-2

query I rowsort
SELECT DISTINCT 31
----
31

query I rowsort
SELECT ALL 62 * + 75 - - 62
----
4712

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL NULLIF ( + COUNT( * ), SUM( + - 31 ) * 6 ) * - + 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL NULLIF ( + COUNT ( * ), SUM ( + - 31 ) * 6 ) * - + 38 AS col0
----
-38

query II rowsort
SELECT - 92 AS col2, + 56 AS col1
----
-92
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4662
SELECT ALL + 35 - - + SUM( DISTINCT - + 12 ) DIV - 87 * + 17 * + + 66 * 67 * + 98 AS col0, + 85 * 79 + 2
----
35
6717

skipif mysql # not compatible
query II rowsort label-4662
SELECT ALL + 35 - - + SUM ( DISTINCT - + 12 ) / - 87 * + 17 * + + 66 * 67 * + 98 AS col0, + 85 * 79 + 2
----
35
6717

query I rowsort
SELECT - 46
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT DISTINCT + COUNT( * ) - + - CAST( - 94 AS SIGNED ) * 90 AS col1
----
-8459

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + COUNT ( * ) - + - CAST ( - 94 AS INTEGER ) * 90 AS col1
----
-8459

query I rowsort
SELECT 20 + 75
----
95

query I rowsort
SELECT 91 * 92
----
8372

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT - 57 AS col0, - COUNT( * ) AS col0
----
-57
-1

skipif mysql # not compatible
query II rowsort label-4667
SELECT - 57 AS col0, - COUNT ( * ) AS col0
----
-57
-1

query I rowsort
SELECT ALL 13 col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT DISTINCT MIN( - ( + 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT MIN ( - ( + 83 ) )
----
-83

query I rowsort
SELECT ALL 71 AS col2
----
71

query I rowsort
SELECT 72 AS col1
----
72

query I rowsort
SELECT 29 * - 53
----
-1537

query I rowsort
SELECT 0 - 60
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4674
SELECT 36 / 28 * COUNT( * ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT 36 / 28 * COUNT ( * ) / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT NULLIF ( - 61, + - COUNT( * ) * + - NULLIF ( - 66, - - 1 ) + 34 ) - + ( - + 6 )
----
-55

skipif mysql # not compatible
query I rowsort label-4675
SELECT NULLIF ( - 61, + - COUNT ( * ) * + - NULLIF ( - 66, - - 1 ) + 34 ) - + ( - + 6 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - MIN( 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4676
SELECT - MIN ( 31 ) AS col0
----
-31

query I rowsort
SELECT 10 * - 70 + 45 + 46 * - 41 * - 9 * - 23 * + 26 * + 12 + - 46 + + - 3
----
-121806128

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT MAX( DISTINCT - - NULLIF ( 55, + + 44 ) )
----
55

skipif mysql # not compatible
query I rowsort label-4678
SELECT MAX ( DISTINCT - - NULLIF ( 55, + + 44 ) )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT 26 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-4679
SELECT 26 / 62
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4680
SELECT DISTINCT 20 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT 20 / + 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4681
SELECT MIN( + 48 ) DIV + - 10 - 74 + - 27 - 72 * - 6 - 23 col1
----
304

skipif mysql # not compatible
query I rowsort label-4681
SELECT MIN ( + 48 ) / + - 10 - 74 + - 27 - 72 * - 6 - 23 col1
----
304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT ALL - CAST( + 6 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - CAST ( + 6 AS INTEGER ) AS col1
----
-6

query I rowsort
SELECT 33 * + 27 * 23 * - - 45
----
922185

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL + + 61 * - + MIN( ALL - 75 ) * + + 43 + 95 * 74 + + - COUNT( * )
----
203754

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + + 61 * - + MIN ( ALL - 75 ) * + + 43 + 95 * 74 + + - COUNT ( * )
----
203754

query I rowsort
SELECT + 24
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4686
SELECT - 36 AS col1, 16 * CASE - + CAST( NULL AS SIGNED ) WHEN - CAST( - 4 AS DECIMAL ) THEN 3 * + 13 DIV + - 10 * + 6 * 32 WHEN + CAST( NULL AS SIGNED ) * + + NULLIF ( - COUNT( * ), + 12 * 11 ) + 22 + + 27 + - 86 DIV - 8 THEN + CAST( NULL AS SIGNED ) * + COUNT( * ) * - 28 ELSE + COUNT( * ) END col2
----
-36
16

skipif mysql # not compatible
query II rowsort label-4686
SELECT - 36 AS col1, 16 * CASE - + CAST ( NULL AS INTEGER ) WHEN - CAST ( - 4 AS REAL ) THEN 3 * + 13 / + - 10 * + 6 * 32 WHEN + CAST ( NULL AS INTEGER ) * + + NULLIF ( - COUNT ( * ), + 12 * 11 ) + 22 + + 27 + - 86 / - 8 THEN + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 28 ELSE + COUNT ( * ) END col2
----
-36
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT 81 + - COUNT( DISTINCT 85 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4687
SELECT 81 + - COUNT ( DISTINCT 85 ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT ALL - COUNT( - CAST( - 22 AS SIGNED ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - COUNT ( - CAST ( - 22 AS INTEGER ) ) col0
----
-1

query I rowsort
SELECT + 8
----
8

query I rowsort
SELECT 32 * - 23 + - 94 + + - 62 * - - 48 + + 66 AS col2
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT 71 - - SUM( ALL + - 51 ) - 78
----
-58

skipif mysql # not compatible
query I rowsort label-4691
SELECT 71 - - SUM ( ALL + - 51 ) - 78
----
-58

query I rowsort
SELECT DISTINCT - 30
----
-30

query I rowsort
SELECT ALL + - 41 + + + 19 AS col2
----
-22

query I rowsort
SELECT DISTINCT - - 49
----
49

query I rowsort
SELECT ALL - 48 col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4696
SELECT + 93 * - - CASE - COUNT( + + 78 ) WHEN + 80 THEN NULL WHEN - - ( + COUNT( * ) ) + 34 * 58 * - + COUNT( * ) THEN - - 70 WHEN 82 THEN - CAST( NULL AS DECIMAL ) END * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT + 93 * - - CASE - COUNT ( + + 78 ) WHEN + 80 THEN NULL WHEN - - ( + COUNT ( * ) ) + 34 * 58 * - + COUNT ( * ) THEN - - 70 WHEN 82 THEN - CAST ( NULL AS REAL ) END * 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-4697
SELECT ALL + + ( - MIN( DISTINCT + - 41 ) ) AS col1, MIN( DISTINCT + ( - 8 ) ) AS col1, - - CASE + CAST( NULL AS DECIMAL ) WHEN 86 THEN - COUNT( * ) END + + CAST( NULL AS DECIMAL ) AS col1
----
41
-8
NULL

skipif mysql # not compatible
query III rowsort label-4697
SELECT ALL + + ( - MIN ( DISTINCT + - 41 ) ) AS col1, MIN ( DISTINCT + ( - 8 ) ) AS col1, - - CASE + CAST ( NULL AS REAL ) WHEN 86 THEN - COUNT ( * ) END + + CAST ( NULL AS REAL ) AS col1
----
41
-8
NULL

query I rowsort
SELECT ALL 76 - 14 * - - 96 * ( ( - 69 ) )
----
92812

query I rowsort
SELECT - 43
----
-43

query I rowsort
SELECT ALL - + 62 * - - 20 col0
----
-1240

query I rowsort
SELECT + 60 + 14 col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT - NULLIF ( + 99, - + 98 * - CAST( NULL AS SIGNED ) ) * - 20 + + + 70
----
2050

skipif mysql # not compatible
query I rowsort label-4702
SELECT - NULLIF ( + 99, - + 98 * - CAST ( NULL AS INTEGER ) ) * - 20 + + + 70
----
2050

query I rowsort
SELECT 28 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL MIN( - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL MIN ( - 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT CASE COUNT( - 44 ) WHEN 37 * 63 * - 48 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT CASE COUNT ( - 44 ) WHEN 37 * 63 * - 48 THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4706
SELECT - 1 - 25 + + - 95 + + + 48 + - 45 * + - ( 66 ) + CAST( NULL AS DECIMAL ) * - - ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT - 1 - 25 + + - 95 + + + 48 + - 45 * + - ( 66 ) + CAST ( NULL AS REAL ) * - - ( COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT - 60 * 6 col0, 82
----
-360
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4708
SELECT ALL + CAST( NULL AS SIGNED ) * - 9 AS col1, - CAST( COUNT( * ) AS SIGNED ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4708
SELECT ALL + CAST ( NULL AS INTEGER ) * - 9 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4709
SELECT DISTINCT + 59 DIV COUNT( ALL + 35 )
----
59

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT + 59 / COUNT ( ALL + 35 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - 71 * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4710
SELECT - 71 * COUNT ( * )
----
-71

query II rowsort
SELECT - 30 + 30 AS col2, 33
----
0
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4712
SELECT ALL CASE + CAST( + + 48 AS SIGNED ) WHEN + ( - + 76 ) * + 65 + + + CASE + + CASE ( - 47 ) WHEN - ( - 35 ) THEN - + COALESCE ( - COUNT( * ), + + 58 + 38 + + 5 ) * + + 48 END WHEN 90 - - 38 + + 20 * 86 - - 23 THEN NULL WHEN - 4 - - - 80 THEN - 87 END THEN NULL ELSE 18 END
----
18

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL CASE + CAST ( + + 48 AS INTEGER ) WHEN + ( - + 76 ) * + 65 + + + CASE + + CASE ( - 47 ) WHEN - ( - 35 ) THEN - + COALESCE ( - COUNT ( * ), + + 58 + 38 + + 5 ) * + + 48 END WHEN 90 - - 38 + + 20 * 86 - - 23 THEN NULL WHEN - 4 - - - 80 THEN - 87 END THEN NULL ELSE 18 END
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT - 41 + + MIN( ( 48 ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4713
SELECT - 41 + + MIN ( ( 48 ) ) AS col2
----
7

query I rowsort
SELECT + 6 * 15 * 81 * + 24
----
174960

query I rowsort
SELECT - 18 + + - 32 AS col2
----
-50

query I rowsort
SELECT ALL - 68 * + - 13 * + 4 col1
----
3536

query I rowsort
SELECT - 35 * 23
----
-805

query I rowsort
SELECT - 94 + NULLIF ( - 65, + 2 ) * - 38 col0
----
2376

query I rowsort
SELECT + NULLIF ( + COALESCE ( + - 66, 86 ), 64 ) - - 78
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4720
SELECT - 70 * 57 AS col2, CAST( NULL AS SIGNED ) col0
----
-3990
NULL

skipif mysql # not compatible
query II rowsort label-4720
SELECT - 70 * 57 AS col2, CAST ( NULL AS INTEGER ) col0
----
-3990
NULL

query I rowsort
SELECT ALL 82 + - 33 - 65 * - 11
----
764

query I rowsort
SELECT ALL - ( + 30 ) * - 22 AS col1
----
660

query I rowsort
SELECT ALL + 12 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4724
SELECT DISTINCT + CAST( - 1 AS SIGNED ) DIV - 90 + + 30 * - 97 + - + 45 DIV - 56
----
-2910

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + CAST ( - 1 AS INTEGER ) / - 90 + + 30 * - 97 + - + 45 / - 56
----
-2910

query I rowsort
SELECT ALL - 29 * ( - + 97 ) + - - 91
----
2904

query I rowsort
SELECT + + 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL - 22 * COUNT( * ) * + + 85 + 66 AS col0
----
-1804

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - 22 * COUNT ( * ) * + + 85 + 66 AS col0
----
-1804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT DISTINCT + CAST( 2 AS SIGNED ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + CAST ( 2 AS INTEGER ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT - - 41 + - 95 - - CAST( NULL AS SIGNED ) * - 29 * - + 16 + + - COUNT( * ) / - 82 * - ( - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT - - 41 + - 95 - - CAST ( NULL AS INTEGER ) * - 29 * - + 16 + + - COUNT ( * ) / - 82 * - ( - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT + COUNT( * ) * - + 87 * 81
----
-7047

skipif mysql # not compatible
query I rowsort label-4730
SELECT + COUNT ( * ) * - + 87 * 81
----
-7047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4731
SELECT + - 85 * - 1 + + CASE 47 WHEN COALESCE ( - - 11, - + COUNT( * ) ) THEN - 43 * - 26 + - 7 * CAST( - - NULLIF ( + + CASE + 63 WHEN + + 94 + - NULLIF ( 62, + - 8 ) THEN + - 24 ELSE + - 58 + - COUNT( * ) END, - - 99 + 26 * - ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) WHEN ( + ( + 15 ) ) * COUNT( * ) THEN - + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT + - 85 * - 1 + + CASE 47 WHEN COALESCE ( - - 11, - + COUNT ( * ) ) THEN - 43 * - 26 + - 7 * CAST ( - - NULLIF ( + + CASE + 63 WHEN + + 94 + - NULLIF ( 62, + - 8 ) THEN + - 24 ELSE + - 58 + - COUNT ( * ) END, - - 99 + 26 * - ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) WHEN ( + ( + 15 ) ) * COUNT ( * ) THEN - + 5 END
----
NULL

query I rowsort
SELECT + - 27 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL CAST( NULL AS SIGNED ) * + 34 + + 8 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL CAST ( NULL AS INTEGER ) * + 34 + + 8 * - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL 39 * + MIN( ALL + 92 ) + - 96 + - - 92 AS col2
----
3584

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL 39 * + MIN ( ALL + 92 ) + - 96 + - - 92 AS col2
----
3584

query I rowsort
SELECT ALL + 11 * + 28
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT + - 17 col0
----
-17

query I rowsort
SELECT ALL + 6
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4739
SELECT + 91 + - - CASE - + CAST( NULL AS SIGNED ) WHEN + 90 + - 41 + - 29 + - 86 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 3 * + + MAX( DISTINCT - ( + 2 ) ) + - 78 * - 4 * 79 + + + 22 + ( - CAST( - - 38 AS SIGNED ) ) * 24 END AS col0
----
23843

skipif mysql # not compatible
query I rowsort label-4739
SELECT + 91 + - - CASE - + CAST ( NULL AS INTEGER ) WHEN + 90 + - 41 + - 29 + - 86 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 3 * + + MAX ( DISTINCT - ( + 2 ) ) + - 78 * - 4 * 79 + + + 22 + ( - CAST ( - - 38 AS INTEGER ) ) * 24 END AS col0
----
23843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT ALL 65 * - + CAST( - 86 AS SIGNED ) - + 62 * + NULLIF ( - 26, NULLIF ( - - 53, - 64 ) * 85 ) * - 17 * - 86
----
2362334

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL 65 * - + CAST ( - 86 AS INTEGER ) - + 62 * + NULLIF ( - 26, NULLIF ( - - 53, - 64 ) * 85 ) * - 17 * - 86
----
2362334

query I rowsort
SELECT + - 85 * 58 + 63 AS col1
----
-4867

query I rowsort
SELECT - CASE - 85 WHEN - 18 THEN + - 86 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT - 14 + 80 * - 44 + + 50 + 87 AS col0, - COUNT( * ) col1
----
-3397
-1

skipif mysql # not compatible
query II rowsort label-4743
SELECT - 14 + 80 * - 44 + + 50 + 87 AS col0, - COUNT ( * ) col1
----
-3397
-1

query I rowsort
SELECT ALL + 65 AS col2
----
65

query I rowsort
SELECT DISTINCT 48
----
48

query I rowsort
SELECT DISTINCT 51
----
51

query I rowsort
SELECT DISTINCT ( + - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL + COUNT( * ) * - 5
----
-5

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + COUNT ( * ) * - 5
----
-5

query I rowsort
SELECT - 54 + + 28
----
-26

query I rowsort
SELECT - ( 90 ) AS col2
----
-90

query I rowsort
SELECT + 18 * + 21 AS col0
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT - COUNT( * ) + + - 16 + CASE - 50 WHEN - - SUM( - 98 ) / 59 + + 91 / + + COUNT( * ) THEN NULL WHEN + + 16 / - 33 THEN 42 + - 42 + + 55 * + ( COUNT( * ) ) ELSE NULL END + + 57 / 54 * - ( + 34 ) * - 79 * - COUNT( + 61 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT - COUNT ( * ) + + - 16 + CASE - 50 WHEN - - SUM ( - 98 ) / 59 + + 91 / + + COUNT ( * ) THEN NULL WHEN + + 16 / - 33 THEN 42 + - 42 + + 55 * + ( COUNT ( * ) ) ELSE NULL END + + 57 / 54 * - ( + 34 ) * - 79 * - COUNT ( + 61 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT + COUNT( * ) + 37
----
38

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT + COUNT ( * ) + 37
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT DISTINCT 17 * - ( + CASE - ( ( + 11 ) ) WHEN - + 47 THEN COUNT( * ) ELSE - - 70 END ) * + 68
----
-80920

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT 17 * - ( + CASE - ( ( + 11 ) ) WHEN - + 47 THEN COUNT ( * ) ELSE - - 70 END ) * + 68
----
-80920

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL + 10 + + COUNT( + - 33 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + 10 + + COUNT ( + - 33 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - COUNT( ALL + 39 ) + + + ( - 33 )
----
-34

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - COUNT ( ALL + 39 ) + + + ( - 33 )
----
-34

query I rowsort
SELECT DISTINCT + 28 + 44 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4758
SELECT - NULLIF ( - - 17, 46 DIV + 19 ) DIV + + 99, + 95 * + + COUNT( * ) AS col2
----
0
95

skipif mysql # not compatible
query II rowsort label-4758
SELECT - NULLIF ( - - 17, 46 / + 19 ) / + + 99, + 95 * + + COUNT ( * ) AS col2
----
0
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL + COUNT( * ) + - CASE - NULLIF ( + 30, - CAST( 1 AS SIGNED ) + CASE ( - 54 ) WHEN - 69 THEN 99 + 43 END * 42 ) WHEN - 18 / 87 THEN NULL WHEN 29 THEN - 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + COUNT ( * ) + - CASE - NULLIF ( + 30, - CAST ( 1 AS INTEGER ) + CASE ( - 54 ) WHEN - 69 THEN 99 + 43 END * 42 ) WHEN - 18 / 87 THEN NULL WHEN 29 THEN - 17 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + 12 )
----
12

query I rowsort
SELECT - 16 * - 64 AS col1
----
1024

query I rowsort
SELECT - 28 - 87 AS col2
----
-115

query I rowsort
SELECT - NULLIF ( - 28, + 32 ) - - 19 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - COALESCE ( - COUNT( * ), 60, - 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4764
SELECT - COALESCE ( - COUNT ( * ), 60, - 29 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 20 * - 43
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT + CASE 43 WHEN 70 THEN NULL ELSE ( 16 ) END * COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4766
SELECT + CASE 43 WHEN 70 THEN NULL ELSE ( 16 ) END * COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + 38 * COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + 38 * COUNT ( * )
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4768
SELECT ALL COUNT( * ) / CAST( - 61 AS DECIMAL ) - - CASE + COUNT( * ) + 84 WHEN ( + 6 ) - 68 THEN + 71 WHEN + 71 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL COUNT ( * ) / CAST ( - 61 AS REAL ) - - CASE + COUNT ( * ) + 84 WHEN ( + 6 ) - 68 THEN + 71 WHEN + 71 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 5 AS col0
----
5

query I rowsort
SELECT DISTINCT + 21 * - 82
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT - 66 - CASE NULLIF ( - 95, + ( - 56 ) ) WHEN COALESCE ( 42, + COUNT( ALL + 80 ) ) THEN 50 ELSE NULL END * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - 66 - CASE NULLIF ( - 95, + ( - 56 ) ) WHEN COALESCE ( 42, + COUNT ( ALL + 80 ) ) THEN 50 ELSE NULL END * - 65
----
NULL

query I rowsort
SELECT ALL - 50 AS col2
----
-50

query I rowsort
SELECT + 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL - ( - MIN( DISTINCT + 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL - ( - MIN ( DISTINCT + 89 ) )
----
89

query I rowsort
SELECT ALL - 48 - - 45 col1
----
-3

query I rowsort
SELECT + 22 AS col1
----
22

query I rowsort
SELECT 69 * 94 AS col0
----
6486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT NULLIF ( 70, - 89 * + 65 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT NULLIF ( 70, - 89 * + 65 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 79 AS col2
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4780
SELECT CAST( NULL AS DECIMAL ) - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT CAST ( NULL AS REAL ) - 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT ALL + 76 DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + 76 / 38
----
2

query I rowsort
SELECT 59 AS col0
----
59

query I rowsort
SELECT 4 * - 36 AS col2
----
-144

query I rowsort
SELECT DISTINCT + 58 * - COALESCE ( + 6, 52 )
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL - MIN( 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - MIN ( 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT 20 * + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4786
SELECT 20 * + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL COUNT( * ) * - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL COUNT ( * ) * - ( COUNT ( * ) )
----
-1

query I rowsort
SELECT 94 * 1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT NULLIF ( 21, NULLIF ( 27, COUNT( * ) ) * - 18 ) * + COALESCE ( - 65 + + 70 * + SUM( ALL 23 * - 77 ), + 97 )
----
-2604735

skipif mysql # not compatible
query I rowsort label-4789
SELECT NULLIF ( 21, NULLIF ( 27, COUNT ( * ) ) * - 18 ) * + COALESCE ( - 65 + + 70 * + SUM ( ALL 23 * - 77 ), + 97 )
----
-2604735

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT COUNT( * ) + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-4790
SELECT COUNT ( * ) + - 92
----
-91

query I rowsort
SELECT 88 AS col0
----
88

query I rowsort
SELECT ALL 12 + - 27
----
-15

query I rowsort
SELECT 96
----
96

query I rowsort
SELECT - 63
----
-63

query I rowsort
SELECT COALESCE ( 2, ( 9 ) ) + + 15 AS col2
----
17

query I rowsort
SELECT 55 * 46 AS col0
----
2530

query I rowsort
SELECT DISTINCT 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL 76 + - NULLIF ( - MIN( DISTINCT 17 ) + 11, 55 * NULLIF ( + 42, + 77 ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL 76 + - NULLIF ( - MIN ( DISTINCT 17 ) + 11, 55 * NULLIF ( + 42, + 77 ) ) AS col1
----
82

query I rowsort
SELECT 35 - 19 * + 44 col1
----
-801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT DISTINCT 11 + - COALESCE ( - 33, 40 + - 56, - 54 * - 2 + + ( + 97 ) * + 0 ) DIV + NULLIF ( - 53, ( + COUNT( * ) ) * + COUNT( * ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT 11 + - COALESCE ( - 33, 40 + - 56, - 54 * - 2 + + ( + 97 ) * + 0 ) / + NULLIF ( - 53, ( + COUNT ( * ) ) * + COUNT ( * ) ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT MIN( ( 72 ) ) + + 30 * - 46 AS col0
----
-1308

skipif mysql # not compatible
query I rowsort label-4801
SELECT MIN ( ( 72 ) ) + + 30 * - 46 AS col0
----
-1308

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ALL COUNT( * ) + COUNT( * ) * + 2
----
3

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL COUNT ( * ) + COUNT ( * ) * + 2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT DISTINCT CAST( NULL AS SIGNED ) * 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 38 col2
----
NULL

query I rowsort
SELECT DISTINCT 35 AS col0
----
35

query I rowsort
SELECT ( 39 ) + - 1 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT 85 * - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4806
SELECT 85 * - COUNT ( * )
----
-85

query I rowsort
SELECT ALL 27 * 30 AS col1
----
810

query I rowsort
SELECT ALL + 44
----
44

query I rowsort
SELECT - 71 - - 56 col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT + COUNT( * ) + - 21 * 5
----
-104

skipif mysql # not compatible
query I rowsort label-4810
SELECT + COUNT ( * ) + - 21 * 5
----
-104

query I rowsort
SELECT 77 + 8 * 43 AS col1
----
421

query I rowsort
SELECT ALL + 55 - ( 51 ) AS col0
----
4

query I rowsort
SELECT 64 * 70
----
4480

query I rowsort
SELECT ALL 93 * 11
----
1023

query I rowsort
SELECT ALL + 23 col2
----
23

query I rowsort
SELECT ALL - ( 63 ) AS col1
----
-63

query I rowsort
SELECT DISTINCT - 84
----
-84

query I rowsort
SELECT ALL + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL + - 68 - CASE - 58 WHEN CASE - 68 WHEN + 40 THEN NULL WHEN - ( 46 ) THEN - 13 - - 70 * - 56 ELSE 47 * 70 END + - 42 THEN NULL WHEN - COUNT( * ) THEN 33 * 94 + COUNT( 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + - 68 - CASE - 58 WHEN CASE - 68 WHEN + 40 THEN NULL WHEN - ( 46 ) THEN - 13 - - 70 * - 56 ELSE 47 * 70 END + - 42 THEN NULL WHEN - COUNT ( * ) THEN 33 * 94 + COUNT ( 18 ) END
----
NULL

query I rowsort
SELECT ALL - 77
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4821
SELECT COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT + CASE - 11 WHEN + 8 + - CAST( NULL AS SIGNED ) THEN + 44 WHEN 88 THEN NULL WHEN 84 * + 77 THEN NULL ELSE NULL END / 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT + CASE - 11 WHEN + 8 + - CAST ( NULL AS INTEGER ) THEN + 44 WHEN 88 THEN NULL WHEN 84 * + 77 THEN NULL ELSE NULL END / 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - - 55 * MAX( + ( 26 ) ) AS col1
----
1430

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - - 55 * MAX ( + ( 26 ) ) AS col1
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT 66 + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4824
SELECT 66 + COUNT ( * ) AS col1
----
67

query I rowsort
SELECT + + 82
----
82

query I rowsort
SELECT + 59 * 70 + ( + 57 ) * + 75 AS col2
----
8405

query I rowsort
SELECT 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 15 col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL - NULLIF ( - 81, COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - NULLIF ( - 81, COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL ( - 84 ) + COUNT( * ) * - 8 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL ( - 84 ) + COUNT ( * ) * - 8 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT COUNT( * ) + + - 82 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4833
SELECT COUNT ( * ) + + - 82 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT DISTINCT + COUNT( DISTINCT + 53 ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT + COUNT ( DISTINCT + 53 ) * 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT 20 + - 53 - - NULLIF ( + 57, COUNT( * ) ) * + 90 col2
----
5097

skipif mysql # not compatible
query I rowsort label-4835
SELECT 20 + - 53 - - NULLIF ( + 57, COUNT ( * ) ) * + 90 col2
----
5097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL - CAST( - 80 AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL - CAST ( - 80 AS INTEGER ) AS col2
----
80

query I rowsort
SELECT 17 AS col0
----
17

query I rowsort
SELECT ALL + 45 + + 88 col1
----
133

query I rowsort
SELECT 0 * 32
----
0

query I rowsort
SELECT 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL + 82 + 13 + 38 * COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + 82 + 13 + 38 * COUNT ( * )
----
133

query I rowsort
SELECT 30 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT 20 DIV + + 82
----
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT 20 / + + 82
----
0

query I rowsort
SELECT 55 + + 62 AS col2
----
117

query I rowsort
SELECT ALL 6 + 92 AS col0
----
98

query I rowsort
SELECT ALL - 94 AS col0
----
-94

query I rowsort
SELECT DISTINCT - 28 + 97
----
69

query I rowsort
SELECT DISTINCT 0 * + 23 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL 59 + ( 96 ) * ( COUNT( * ) ) AS col1
----
155

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL 59 + ( 96 ) * ( COUNT ( * ) ) AS col1
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4850
SELECT 45 DIV - COUNT( ALL 9 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4850
SELECT 45 / - COUNT ( ALL 9 ) AS col2
----
-45

query I rowsort
SELECT ALL - ( 15 ) + + 21 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL CASE COUNT( * ) WHEN + 90 - - COUNT( * ) THEN NULL WHEN 59 - + SUM( DISTINCT + 54 ) * + 57 THEN 80 / CASE - 78 WHEN 30 THEN NULL ELSE 91 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL CASE COUNT ( * ) WHEN + 90 - - COUNT ( * ) THEN NULL WHEN 59 - + SUM ( DISTINCT + 54 ) * + 57 THEN 80 / CASE - 78 WHEN 30 THEN NULL ELSE 91 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4853
SELECT CASE - COUNT( * ) WHEN - 42 THEN 91 + + CAST( 87 AS SIGNED ) WHEN 11 THEN NULL ELSE + 54 DIV + 26 - + COUNT( * ) END * 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4853
SELECT CASE - COUNT ( * ) WHEN - 42 THEN 91 + + CAST ( 87 AS INTEGER ) WHEN 11 THEN NULL ELSE + 54 / + 26 - + COUNT ( * ) END * 6 AS col0
----
6

query I rowsort
SELECT DISTINCT 5 * + 4 * + 0 AS col2
----
0

query I rowsort
SELECT 29 * + 7
----
203

query I rowsort
SELECT ALL 31 AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT 35 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT 35 / - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT 70 * COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4858
SELECT 70 * COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT - SUM( DISTINCT + 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4859
SELECT - SUM ( DISTINCT + 67 ) AS col1
----
-67

query I rowsort
SELECT ALL 85
----
85

query I rowsort
SELECT DISTINCT 58 - + 81 * + 39
----
-3101

query I rowsort
SELECT - - 2 AS col2
----
2

query I rowsort
SELECT - 68 + 34 col2
----
-34

query I rowsort
SELECT ALL - 92 AS col0
----
-92

query I rowsort
SELECT DISTINCT 86 - - 30 * 67
----
2096

query I rowsort
SELECT DISTINCT - 53
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL - CAST( + 79 AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - CAST ( + 79 AS INTEGER ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT DISTINCT COALESCE ( COUNT( * ), 28 + + 13 * - 1, - 58 - - 85 DIV 78, - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT COALESCE ( COUNT ( * ), 28 + + 13 * - 1, - 58 - - 85 / 78, - 33 )
----
1

query I rowsort
SELECT DISTINCT - 43 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT + MIN( + + 89 ) * 61
----
5429

skipif mysql # not compatible
query I rowsort label-4870
SELECT + MIN ( + + 89 ) * 61
----
5429

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT + 57 * COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4871
SELECT + 57 * COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL COUNT( * ) * + 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL COUNT ( * ) * + 28 AS col2
----
28

query I rowsort
SELECT ALL 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL 45 * + + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 45 * + + COUNT ( * ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + COUNT( * ) + + - 81 * 40
----
-3239

skipif mysql # not compatible
query I rowsort label-4875
SELECT + COUNT ( * ) + + - 81 * 40
----
-3239

query I rowsort
SELECT - + 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL COUNT( + 33 ) * + 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL COUNT ( + 33 ) * + 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + + 77 * - COUNT( * ) - 70 * - 14 AS col2
----
903

skipif mysql # not compatible
query I rowsort label-4878
SELECT + + 77 * - COUNT ( * ) - 70 * - 14 AS col2
----
903

query I rowsort
SELECT ALL + - 68
----
-68

query I rowsort
SELECT DISTINCT + 99 AS col0
----
99

query I rowsort
SELECT ALL - 93 * 30 + 79 + + 80 AS col0
----
-2631

query I rowsort
SELECT + + ( - - 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4883
SELECT ALL + - 76 * COUNT( - 8 ) - 12 DIV - 87 + + COALESCE ( 5 + - NULLIF ( 69, + COUNT( + 43 ) + ( ( - 15 ) ) ), + 38, 80 + SUM( DISTINCT + 91 ) ) AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + - 76 * COUNT ( - 8 ) - 12 / - 87 + + COALESCE ( 5 + - NULLIF ( 69, + COUNT ( + 43 ) + ( ( - 15 ) ) ), + 38, 80 + SUM ( DISTINCT + 91 ) ) AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT - 60 * MAX( ALL + 15 )
----
-900

skipif mysql # not compatible
query I rowsort label-4884
SELECT - 60 * MAX ( ALL + 15 )
----
-900

query I rowsort
SELECT DISTINCT 11 * + + 2 * - 34 + 40 + + 27 AS col2
----
-681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT DISTINCT - CAST( - 71 AS SIGNED ) * NULLIF ( COUNT( * ), + ( ( 78 ) ) ) + ( - 51 ) * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - CAST ( - 71 AS INTEGER ) * NULLIF ( COUNT ( * ), + ( ( 78 ) ) ) + ( - 51 ) * COUNT ( * )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4887
SELECT + COALESCE ( + 62, + 24 DIV ( 55 DIV COALESCE ( 85, - 80, COUNT( ALL ( + COALESCE ( 26, 4 DIV 63 ) ) ) + 43 * + 55 ) ) )
----
62

skipif mysql # not compatible
query I rowsort label-4887
SELECT + COALESCE ( + 62, + 24 / ( 55 / COALESCE ( 85, - 80, COUNT ( ALL ( + COALESCE ( 26, 4 / 63 ) ) ) + 43 * + 55 ) ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), + CAST( + 80 AS SIGNED ) * + 60 + - ( 86 ) * 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-4888
SELECT NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), + CAST ( + 80 AS INTEGER ) * + 60 + - ( 86 ) * 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL - 35 * + 52 + + 4 + - COUNT( * ) col2
----
-1817

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL - 35 * + 52 + + 4 + - COUNT ( * ) col2
----
-1817

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + 43 * - MIN( ALL + - 6 ) AS col0
----
258

skipif mysql # not compatible
query I rowsort label-4890
SELECT + 43 * - MIN ( ALL + - 6 ) AS col0
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT - 10 DIV + + 4 + COALESCE ( + 96, 52 + 44 ) + 14
----
108

skipif mysql # not compatible
query I rowsort label-4891
SELECT - 10 / + + 4 + COALESCE ( + 96, 52 + 44 ) + 14
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT - 19 * - MAX( - 8 )
----
-152

skipif mysql # not compatible
query I rowsort label-4892
SELECT - 19 * - MAX ( - 8 )
----
-152

query I rowsort
SELECT - COALESCE ( 34, 23 ) * 93 AS col0
----
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL + COUNT( ALL 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + COUNT ( ALL 39 )
----
1

query I rowsort
SELECT ALL - ( - ( + 44 ) ) * - 71 AS col2
----
-3124

query I rowsort
SELECT NULLIF ( 48, - 78 )
----
48

query I rowsort
SELECT ALL + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT - COUNT( * ) * - 26 * - - 1 + 9
----
35

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - COUNT ( * ) * - 26 * - - 1 + 9
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT - ( COUNT( * ) ) * + COUNT( * ) * 95 + ( + 63 )
----
-32

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT - ( COUNT ( * ) ) * + COUNT ( * ) * 95 + ( + 63 )
----
-32

query I rowsort
SELECT ALL + ( - 33 )
----
-33

query I rowsort
SELECT ALL - 24 * - 46 * + - 67 col2
----
-73968

query I rowsort
SELECT - 53 + - - 90 AS col2
----
37

query I rowsort
SELECT DISTINCT + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + ( COUNT ( * ) )
----
1

query I rowsort
SELECT - 29 + 65 + - 28 + + 57 AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT + COALESCE ( + 64, - + 6 DIV NULLIF ( - 46 DIV 72, - 38 * - 6 ), 36 ) - 54 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4906
SELECT + COALESCE ( + 64, - + 6 / NULLIF ( - 46 / 72, - 38 * - 6 ), 36 ) - 54 AS col2
----
10

query I rowsort
SELECT + 93 * COALESCE ( + 23, - ( - 73 ), + 7 * + 26, + 21 ) col2
----
2139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4908
SELECT + 11 DIV + CAST( 39 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4908
SELECT + 11 / + CAST ( 39 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL ( - + MAX( 34 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL ( - + MAX ( 34 ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * )
----
1

query I rowsort
SELECT - + 50 + + 80 AS col1
----
30

query I rowsort
SELECT DISTINCT 83 col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT ALL - ( + - 52 ) DIV + - 68 * 32
----
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL - ( + - 52 ) / + - 68 * 32
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT + COUNT( * ) + 57 * - 17 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT + COUNT ( * ) + 57 * - 17 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - 37 AS col2, 34
----
-37
34

query II rowsort
SELECT - 11, 78 + - 86 AS col1
----
-11
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT + 42 DIV + - 12 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4918
SELECT + 42 / + - 12 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT DISTINCT - 62 * - - CAST( NULL AS SIGNED ) * + + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - 62 * - - CAST ( NULL AS INTEGER ) * + + 11 AS col0
----
NULL

query I rowsort
SELECT ALL 16 * 74 AS col0
----
1184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4921
SELECT 51 AS col2, CAST( NULL AS SIGNED )
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4921
SELECT 51 AS col2, CAST ( NULL AS INTEGER )
----
51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT - 99 + - CAST( - - MAX( 70 ) AS SIGNED ) + - 19 AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-4922
SELECT - 99 + - CAST ( - - MAX ( 70 ) AS INTEGER ) + - 19 AS col1
----
-188

query I rowsort
SELECT + - COALESCE ( + - 9, + + 1 ) + 38 AS col2
----
47

query I rowsort
SELECT - ( - 34 ) col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT 95 col0, COUNT( ALL - 36 ) * 87 + - 98 AS col1
----
95
-11

skipif mysql # not compatible
query II rowsort label-4925
SELECT 95 col0, COUNT ( ALL - 36 ) * 87 + - 98 AS col1
----
95
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL - - COUNT( * ) + + 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - - COUNT ( * ) + + 70 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT - - CAST( - 86 AS SIGNED ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-4927
SELECT - - CAST ( - 86 AS INTEGER ) col0
----
-86

query I rowsort
SELECT ALL 61 + - CASE - 94 WHEN - 74 + - 93 THEN - 12 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT DISTINCT COUNT( * ) + - NULLIF ( + ( + 41 ), 87 * + COUNT( * ) + - NULLIF ( + COALESCE ( ( - COUNT( * ) ), + 24 * + 9 + 95, - ( COUNT( * ) ) * 65, + ( 69 ) ), + COUNT( * ) * 81 ) * + ( COUNT( * ) ) ) + + COALESCE ( - 78 - + 25 * ( COUNT( * ) * MAX( 49 * CAST( NULL AS SIGNED ) ) + COUNT( * ) ), + 11 * 77 )
----
807

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT COUNT ( * ) + - NULLIF ( + ( + 41 ), 87 * + COUNT ( * ) + - NULLIF ( + COALESCE ( ( - COUNT ( * ) ), + 24 * + 9 + 95, - ( COUNT ( * ) ) * 65, + ( 69 ) ), + COUNT ( * ) * 81 ) * + ( COUNT ( * ) ) ) + + COALESCE ( - 78 - + 25 * ( COUNT ( * ) * MAX ( 49 * CAST ( NULL AS INTEGER ) ) + COUNT ( * ) ), + 11 * 77 )
----
807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4930
SELECT ALL - 86, 81 DIV + CASE ( + 73 ) WHEN 55 DIV - COALESCE ( CASE + CASE + 97 WHEN - 28 THEN + 43 * 73 - 14 * 58 END WHEN 75 + - ( 44 ) THEN NULL WHEN - 54 + - 79 THEN CAST( 10 AS SIGNED ) ELSE NULL END, + 69 + + CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN COUNT( * ) * 79 END, - 57 * + 22 - 13 ) - 48 THEN - 6 WHEN - 86 - - 55 THEN NULL ELSE + COALESCE ( - 69, SUM( 15 ) ) END AS col2
----
-86
-1

skipif mysql # not compatible
query II rowsort label-4930
SELECT ALL - 86, 81 / + CASE ( + 73 ) WHEN 55 / - COALESCE ( CASE + CASE + 97 WHEN - 28 THEN + 43 * 73 - 14 * 58 END WHEN 75 + - ( 44 ) THEN NULL WHEN - 54 + - 79 THEN CAST ( 10 AS INTEGER ) ELSE NULL END, + 69 + + CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN COUNT ( * ) * 79 END, - 57 * + 22 - 13 ) - 48 THEN - 6 WHEN - 86 - - 55 THEN NULL ELSE + COALESCE ( - 69, SUM ( 15 ) ) END AS col2
----
-86
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4931
SELECT COUNT( * ) AS col1, + 98 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-4931
SELECT COUNT ( * ) AS col1, + 98 AS col0
----
1
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT DISTINCT CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4933
SELECT + 80 col0, + 61 + - 84 + 44 DIV - 31 * - COUNT( * )
----
80
-22

skipif mysql # not compatible
query II rowsort label-4933
SELECT + 80 col0, + 61 + - 84 + 44 / - 31 * - COUNT ( * )
----
80
-22

query II rowsort
SELECT + 43 + 42 col1, - 63 AS col2
----
85
-63

query I rowsort
SELECT + 2 * - 32
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT CAST( 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-4936
SELECT CAST ( 67 AS INTEGER )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT + 19 + 51 * - CAST( + 62 AS SIGNED ) * 69 + + 87 * 17 AS col2
----
-216680

skipif mysql # not compatible
query I rowsort label-4937
SELECT + 19 + 51 * - CAST ( + 62 AS INTEGER ) * 69 + + 87 * 17 AS col2
----
-216680

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - 25 * + 47 * CASE WHEN NULL NOT BETWEEN + MAX( DISTINCT + 8 ) AND ( + 90 ) THEN + 19 ELSE + 19 + + 99 END
----
-138650

skipif mysql # not compatible
query I rowsort label-4938
SELECT - 25 * + 47 * CASE WHEN NULL NOT BETWEEN + MAX ( DISTINCT + 8 ) AND ( + 90 ) THEN + 19 ELSE + 19 + + 99 END
----
-138650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT - 75 / + + COUNT( * ) + CAST( NULL AS SIGNED ) - - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT - 75 / + + COUNT ( * ) + CAST ( NULL AS INTEGER ) - - + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + COUNT( DISTINCT + - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + COUNT ( DISTINCT + - 28 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT ALL + 31 DIV - 78 + + - 2
----
-2

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + 31 / - 78 + + - 2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT + CAST( + COALESCE ( + ( + 8 ), + 38 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-4942
SELECT + CAST ( + COALESCE ( + ( + 8 ), + 38 ) AS INTEGER )
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4943
SELECT DISTINCT - CASE + 78 WHEN - + AVG ( + 41 ) THEN 97 WHEN AVG ( ( CAST( 58 AS DECIMAL ) ) ) THEN + 86 END / - 48 + - MIN( DISTINCT 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT - CASE + 78 WHEN - + AVG ( + 41 ) THEN 97 WHEN AVG ( ( CAST ( 58 AS REAL ) ) ) THEN + 86 END / - 48 + - MIN ( DISTINCT 8 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT ALL 80 DIV + + 14 + - 33 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL 80 / + + 14 + - 33 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4945
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL + 74 AS col0
----
74

query I rowsort
SELECT DISTINCT + 87 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT + 53 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT + 53 / - 87
----
0

query I rowsort
SELECT + 17 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 47 * + 34 + + - NULLIF ( - - 7, - 26 / - 71 ) + + 18 AS col2
----
1609

query I rowsort
SELECT DISTINCT + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL 98 * + 65 - + COUNT( * )
----
6369

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL 98 * + 65 - + COUNT ( * )
----
6369

query I rowsort
SELECT ALL - 93 * - 44
----
4092

query I rowsort
SELECT + 28 AS col2
----
28

query I rowsort
SELECT ALL + 89 AS col2
----
89

query I rowsort
SELECT + 82 col2
----
82

query I rowsort
SELECT ALL - ( - 74 )
----
74

query I rowsort
SELECT + 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL - COALESCE ( - + COUNT( + 73 ), + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL - COALESCE ( - + COUNT ( + 73 ), + 28 )
----
1

query I rowsort
SELECT ALL - + ( 95 ) * + 14 * + + 75 AS col1
----
-99750

query I rowsort
SELECT DISTINCT 0
----
0

query I rowsort
SELECT ALL - 49
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT DISTINCT - AVG ( ALL 1 ) * 19 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - AVG ( ALL 1 ) * 19 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 56 AS col1
----
56

query I rowsort
SELECT + ( + 27 ) - + - 0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT - MAX( 35 ), 57 AS col2
----
-35
57

skipif mysql # not compatible
query II rowsort label-4967
SELECT - MAX ( 35 ), 57 AS col2
----
-35
57

query I rowsort
SELECT DISTINCT - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL NULLIF ( - 30, - + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL NULLIF ( - 30, - + COUNT ( * ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + COUNT( DISTINCT + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-4970
SELECT + COUNT ( DISTINCT + 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - - ( - ( - - MIN( - 77 ) ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4971
SELECT - - ( - ( - - MIN ( - 77 ) ) ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4972
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ), - 41 AS col1
----
1
-41

skipif mysql # not compatible
query II rowsort label-4972
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ), - 41 AS col1
----
1
-41

query I rowsort
SELECT + 97 * + - 31 + + 92
----
-2915

query I rowsort
SELECT DISTINCT 46 AS col0
----
46

query I rowsort
SELECT - - 11
----
11

query I rowsort
SELECT ALL + 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - COUNT( * ) * 15 * - 26 * 70 + 33
----
27333

skipif mysql # not compatible
query I rowsort label-4977
SELECT - COUNT ( * ) * 15 * - 26 * 70 + 33
----
27333

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL CASE - - 8 WHEN + - 37 * - COUNT( * ) THEN - ( - 87 ) WHEN - 12 - - 67 THEN NULL ELSE + 85 + 0 END AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL CASE - - 8 WHEN + - 37 * - COUNT ( * ) THEN - ( - 87 ) WHEN - 12 - - 67 THEN NULL ELSE + 85 + 0 END AS col0
----
85

query II rowsort
SELECT DISTINCT + - 44 + + 19 AS col2, + 89
----
-25
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL - 31 + + MAX( DISTINCT - 67 ) - + + CAST( NULL AS SIGNED ) / ( - 91 + - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - 31 + + MAX ( DISTINCT - 67 ) - + + CAST ( NULL AS INTEGER ) / ( - 91 + - 27 )
----
NULL

query I rowsort
SELECT - 25 AS col2
----
-25

query I rowsort
SELECT 71
----
71

query I rowsort
SELECT ALL + + 94 + + 9 + 54 * COALESCE ( + 98, 59 * 92 ) AS col1
----
5395

query I rowsort
SELECT ( - 99 ) * - 32
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4985
SELECT ALL CAST( + 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL CAST ( + 56 AS INTEGER )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT 13 + - 4 - 98 + + 41 DIV ( + NULLIF ( - 65, 33 * 58 + + 60 ) ) + 13 * - COUNT( * )
----
-102

skipif mysql # not compatible
query I rowsort label-4986
SELECT 13 + - 4 - 98 + + 41 / ( + NULLIF ( - 65, 33 * 58 + + 60 ) ) + 13 * - COUNT ( * )
----
-102

query II rowsort
SELECT DISTINCT 90 AS col1, + 69
----
90
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT COUNT( * ) + - + 11
----
-10

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT COUNT ( * ) + - + 11
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT - 41 * - NULLIF ( 24, COUNT( DISTINCT - - 60 ) )
----
984

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - 41 * - NULLIF ( 24, COUNT ( DISTINCT - - 60 ) )
----
984

query I rowsort
SELECT ALL - 0 AS col0
----
0

query II rowsort
SELECT ALL 42 - - 66 + + 37, 97 - 52 AS col1
----
145
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT COUNT( * ) * 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4992
SELECT COUNT ( * ) * 40 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4993
SELECT ALL - CASE + - 40 WHEN - NULLIF ( + + 47, + - 16 / - 67 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 90 WHEN SUM( 81 ) * 20 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL - CASE + - 40 WHEN - NULLIF ( + + 47, + - 16 / - 67 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 90 WHEN SUM ( 81 ) * 20 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT 48 - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4995
SELECT 48 - COUNT ( * ) AS col1
----
47

query I rowsort
SELECT DISTINCT - 87 AS col1
----
-87

query I rowsort
SELECT ALL - 90
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT ALL COALESCE ( 7, + 2, - 5 ) - + 18 + + 44 DIV 51 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL COALESCE ( 7, + 2, - 5 ) - + 18 + + 44 / 51 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT CASE + + 75 WHEN - 8 * - + NULLIF ( MIN( + 39 ), 47 ) THEN + 41 END * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4999
SELECT CASE + + 75 WHEN - 8 * - + NULLIF ( MIN ( + 39 ), 47 ) THEN + 41 END * 23 AS col1
----
NULL

query I rowsort
SELECT + 15 col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT 83 DIV + - 42
----
-1

skipif mysql # not compatible
query I rowsort label-5001
SELECT 83 / + - 42
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT CASE 46 WHEN - - 25 THEN NULL WHEN 81 / + 38 THEN CAST( NULL AS SIGNED ) + - 36 END * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT CASE 46 WHEN - - 25 THEN NULL WHEN 81 / + 38 THEN CAST ( NULL AS INTEGER ) + - 36 END * 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL ( 2 ) * + 28 * - SUM( + 66 ) AS col2
----
-3696

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL ( 2 ) * + 28 * - SUM ( + 66 ) AS col2
----
-3696

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT ALL - COUNT( * ) AS col1, 82
----
-1
82

skipif mysql # not compatible
query II rowsort label-5004
SELECT ALL - COUNT ( * ) AS col1, 82
----
-1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT CASE + 66 WHEN - 77 + 74 * 53 THEN - COUNT( * ) + + 93 * - 94 WHEN 45 THEN NULL ELSE NULL END - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT CASE + 66 WHEN - 77 + 74 * 53 THEN - COUNT ( * ) + + 93 * - 94 WHEN 45 THEN NULL ELSE NULL END - 45 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5006
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - COUNT( * ) / + - 61 * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / + - 61 * + 11
----
NULL

query I rowsort
SELECT ALL - 35 AS col2
----
-35

query I rowsort
SELECT ALL - 5 AS col0
----
-5

query I rowsort
SELECT DISTINCT - 41 col0
----
-41

query I rowsort
SELECT DISTINCT - 12 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT ALL + COUNT( * ) DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL + COUNT ( * ) / + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - + COUNT ( * )
----
-1

query I rowsort
SELECT + 1 AS col0
----
1

query I rowsort
SELECT ALL - + 71
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT + 40 + + CASE 59 WHEN - - ( COUNT( * ) ) THEN 97 + + 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT + 40 + + CASE 59 WHEN - - ( COUNT ( * ) ) THEN 97 + + 12 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT + COUNT( * ) DIV - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5016
SELECT + COUNT ( * ) / - 12 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT + 15 / - - CAST( NULL AS SIGNED ) / + + ( - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT + 15 / - - CAST ( NULL AS INTEGER ) / + + ( - 57 )
----
NULL

query I rowsort
SELECT + 54 + 46 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT - COALESCE ( - 18, 9, COALESCE ( - 43, 70 * + 54 ) + - 8 ) - + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-5019
SELECT - COALESCE ( - 18, 9, COALESCE ( - 43, 70 * + 54 ) + - 8 ) - + COUNT ( * )
----
17

query I rowsort
SELECT - 57 col0
----
-57

query I rowsort
SELECT - 81 + + 31 AS col0
----
-50

query I rowsort
SELECT ALL - + 21 + 37 * 45 + 46
----
1690

query I rowsort
SELECT ALL - 77 AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5024
SELECT ALL + 21 + + + 0 + - COALESCE ( - SUM( 53 ), + ( + 76 ) + - NULLIF ( ( + 84 ) + + 83, NULLIF ( 61, - 56 + 49 * 12 ) * + COUNT( * ) ) ) - CASE ( - CAST( NULL AS DECIMAL ) ) + 28 WHEN - 4 + - 52 THEN NULL WHEN - 85 + 60 * 54 THEN 55 WHEN + 43 + + 2 THEN - 5 * 80 ELSE NULL END * + ( COUNT( * ) ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL + 21 + + + 0 + - COALESCE ( - SUM ( 53 ), + ( + 76 ) + - NULLIF ( ( + 84 ) + + 83, NULLIF ( 61, - 56 + 49 * 12 ) * + COUNT ( * ) ) ) - CASE ( - CAST ( NULL AS REAL ) ) + 28 WHEN - 4 + - 52 THEN NULL WHEN - 85 + 60 * 54 THEN 55 WHEN + 43 + + 2 THEN - 5 * 80 ELSE NULL END * + ( COUNT ( * ) ) * 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - NULLIF ( + 12, 69 ) + + + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5025
SELECT - NULLIF ( + 12, 69 ) + + + COUNT ( * ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL + 10 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + 10 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + + 8 * 57 + 33 AS col1, + 15
----
489
15

query I rowsort
SELECT ALL + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT - - MAX( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-5029
SELECT - - MAX ( 32 )
----
32

query I rowsort
SELECT ALL + - 42 + + 8
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT + CASE - 59 WHEN ( - + 92 ) * - + ( - 23 ) THEN - 1 + + 85 * CASE - 77 + + 41 WHEN + MIN( ALL + NULLIF ( + ( - 37 ), 23 / + 58 ) ) + 49 THEN 90 ELSE NULL END WHEN + 1 THEN NULL ELSE NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT + CASE - 59 WHEN ( - + 92 ) * - + ( - 23 ) THEN - 1 + + 85 * CASE - 77 + + 41 WHEN + MIN ( ALL + NULLIF ( + ( - 37 ), 23 / + 58 ) ) + 49 THEN 90 ELSE NULL END WHEN + 1 THEN NULL ELSE NULL END * 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT - CASE + - 63 WHEN + ( AVG ( ALL 99 ) ) * 32 THEN NULL WHEN - 45 / ( - AVG ( ( + CAST( NULL AS SIGNED ) ) ) ) + 31 THEN 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT - CASE + - 63 WHEN + ( AVG ( ALL 99 ) ) * 32 THEN NULL WHEN - 45 / ( - AVG ( ( + CAST ( NULL AS INTEGER ) ) ) ) + 31 THEN 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT 18 + + 62 * + + ( - 85 ) * + 64 * COUNT( * ) + + 70
----
-337192

skipif mysql # not compatible
query I rowsort label-5033
SELECT 18 + + 62 * + + ( - 85 ) * + 64 * COUNT ( * ) + + 70
----
-337192

query I rowsort
SELECT ALL 53 AS col0
----
53

query I rowsort
SELECT 29 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT 94 + + COALESCE ( 59, 21 ) DIV - + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-5036
SELECT 94 + + COALESCE ( 59, 21 ) / - + COUNT ( * )
----
35

query I rowsort
SELECT - + 82
----
-82

query I rowsort
SELECT ALL + 64 - 9
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT COUNT( * ) * 86
----
86

skipif mysql # not compatible
query I rowsort label-5039
SELECT COUNT ( * ) * 86
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT ALL + SUM( + 23 ) DIV - - SUM( 77 )
----
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + SUM ( + 23 ) / - - SUM ( 77 )
----
0

query II rowsort
SELECT 37 AS col0, 85
----
37
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT DISTINCT + ( - 28 ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT + ( - 28 ) / - 51
----
0

query II rowsort
SELECT ALL 49, + 63 AS col1
----
49
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5044
SELECT - 50 AS col2, COUNT( ALL - 62 ) AS col1
----
-50
1

skipif mysql # not compatible
query II rowsort label-5044
SELECT - 50 AS col2, COUNT ( ALL - 62 ) AS col1
----
-50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL COUNT( + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL COUNT ( + 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL - 65 * - + 92 * - COUNT( * )
----
-5980

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL - 65 * - + 92 * - COUNT ( * )
----
-5980

query I rowsort
SELECT 35 + - 56 + + 92 + + 88 * - 11
----
-897

onlyif mysql # aggregate syntax: 
query II rowsort label-5048
SELECT + 58, + MIN( ALL 66 ) AS col0
----
58
66

skipif mysql # not compatible
query II rowsort label-5048
SELECT + 58, + MIN ( ALL 66 ) AS col0
----
58
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT COUNT( + 32 ) * + + 39
----
39

skipif mysql # not compatible
query I rowsort label-5049
SELECT COUNT ( + 32 ) * + + 39
----
39

query I rowsort
SELECT ALL + 92 * + 69 * + 82
----
520536

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ( - NULLIF ( + + 34, - - MIN( 46 ) + - CASE - 12 WHEN + 1 + + 57 THEN - 46 * - ( 18 ) - 35 END ) ) * - 33 + 12
----
1134

skipif mysql # not compatible
query I rowsort label-5051
SELECT ( - NULLIF ( + + 34, - - MIN ( 46 ) + - CASE - 12 WHEN + 1 + + 57 THEN - 46 * - ( 18 ) - 35 END ) ) * - 33 + 12
----
1134

query II rowsort
SELECT ALL + 25 AS col2, 13
----
25
13

query II rowsort
SELECT ALL + 28 AS col0, - 22
----
28
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT - CASE + + 83 WHEN 71 THEN + - 50 ELSE NULL END * NULLIF ( CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT - CASE + + 83 WHEN 71 THEN + - 50 ELSE NULL END * NULLIF ( CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL + ( + COUNT( + - 44 ) ) * + 32 * - - ( - COUNT( * ) ) * 92
----
-2944

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL + ( + COUNT ( + - 44 ) ) * + 32 * - - ( - COUNT ( * ) ) * 92
----
-2944

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT MAX( ALL + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-5056
SELECT MAX ( ALL + 41 )
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5057
SELECT ALL + 44, CAST( NULL AS DECIMAL ) col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-5057
SELECT ALL + 44, CAST ( NULL AS REAL ) col0
----
44
NULL

query I rowsort
SELECT + 52 + - 18 + - - 42 * 81 * - 87 * + 60
----
-17758406

query I rowsort
SELECT ALL + 15 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT ALL 2 * + 82 + - 92 * + + CAST( + 52 AS SIGNED )
----
-4620

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL 2 * + 82 + - 92 * + + CAST ( + 52 AS INTEGER )
----
-4620

query II rowsort
SELECT + 83 AS col0, 81 * + 38 * - - 83 + + 77 + + 73 * - 28 AS col1
----
83
253507

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT 80 * + + 86 + COALESCE ( + - 91, + 97, - 5 DIV + 5 - 86, - 85 DIV COALESCE ( 70 * - 82, + 37 * 6 ) ) * 80 AS col2
----
-400

skipif mysql # not compatible
query I rowsort label-5062
SELECT 80 * + + 86 + COALESCE ( + - 91, + 97, - 5 / + 5 - 86, - 85 / COALESCE ( 70 * - 82, + 37 * 6 ) ) * 80 AS col2
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT + - SUM( ALL - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT + - SUM ( ALL - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT ALL + 5 * CASE - ( + 6 ) WHEN + COUNT( * ) THEN - 98 ELSE NULL END + + ( 22 ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL + 5 * CASE - ( + 6 ) WHEN + COUNT ( * ) THEN - 98 ELSE NULL END + + ( 22 ) * 40
----
NULL

query I rowsort
SELECT + 52 * - 84 + - ( - 17 ) * + + 3 AS col1
----
-4317

query I rowsort
SELECT + - 71 AS col1
----
-71

query I rowsort
SELECT ALL + 27 * + + 57 + + 35 AS col0
----
1574

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + - COALESCE ( - CASE + - COUNT( ALL - + 6 ) WHEN + 36 THEN - 45 WHEN - 12 THEN NULL WHEN - 81 * - 27 THEN NULL ELSE 85 * 11 END, + 69 ) col2
----
935

skipif mysql # not compatible
query I rowsort label-5068
SELECT + - COALESCE ( - CASE + - COUNT ( ALL - + 6 ) WHEN + 36 THEN - 45 WHEN - 12 THEN NULL WHEN - 81 * - 27 THEN NULL ELSE 85 * 11 END, + 69 ) col2
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5070
SELECT + - COUNT( * ) * + 77 DIV - + 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5070
SELECT + - COUNT ( * ) * + 77 / - + 72 AS col1
----
1

query I rowsort
SELECT DISTINCT + 35
----
35

query I rowsort
SELECT DISTINCT 67 + + 85 + 36 * + 75 AS col2
----
2852

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT ALL + 64 + + 84 DIV + 64
----
65

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + 64 + + 84 / + 64
----
65

query I rowsort
SELECT - COALESCE ( - + 64, + 58 * 1, + + 8 ) AS col2
----
64

query I rowsort
SELECT ALL 85 + + + 48 - - 79 col1
----
212

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT + 54 - - - 40 DIV 37
----
53

skipif mysql # not compatible
query I rowsort label-5076
SELECT + 54 - - - 40 / 37
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + COUNT( * ) * + 25 + - 52
----
-27

skipif mysql # not compatible
query I rowsort label-5077
SELECT + COUNT ( * ) * + 25 + - 52
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT DISTINCT 94 DIV + 10 DIV COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT 94 / + 10 / COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT + ( - - 3 ) * - + 90 + - + COUNT( 37 ) AS col1
----
-271

skipif mysql # not compatible
query I rowsort label-5079
SELECT + ( - - 3 ) * - + 90 + - + COUNT ( 37 ) AS col1
----
-271

query I rowsort
SELECT 25
----
25

onlyif mysql # aggregate syntax: 
query III rowsort label-5081
SELECT - + 66 AS col0, - 6 AS col0, + + NULLIF ( + + 79, - COUNT( * ) )
----
-66
-6
79

skipif mysql # not compatible
query III rowsort label-5081
SELECT - + 66 AS col0, - 6 AS col0, + + NULLIF ( + + 79, - COUNT ( * ) )
----
-66
-6
79

query I rowsort
SELECT ALL + 48 - - + 20
----
68

query I rowsort
SELECT + - 43 * 43 * - 30
----
55470

query I rowsort
SELECT ALL - 40 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT - 49 - + 6 DIV + 91 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5085
SELECT - 49 - + 6 / + 91 AS col2
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5086
SELECT ALL CAST( NULL AS DECIMAL ) - + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL CAST ( NULL AS REAL ) - + 90 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 62, - 40 ) * - 51
----
-3162

query I rowsort
SELECT - ( 75 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT + 89 + NULLIF ( 45, - 69 * - COUNT( - CAST( NULL AS SIGNED ) ) - AVG ( ALL 83 ) ) - 53 * SUM( 14 ) AS col0
----
-608

skipif mysql # not compatible
query I rowsort label-5089
SELECT + 89 + NULLIF ( 45, - 69 * - COUNT ( - CAST ( NULL AS INTEGER ) ) - AVG ( ALL 83 ) ) - 53 * SUM ( 14 ) AS col0
----
-608

query II rowsort
SELECT - 6 * 89, 49 AS col2
----
-534
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT - 12 + - + 43 * + CAST( 87 AS SIGNED ) + + + ( + - SUM( 10 ) ) AS col2
----
-3763

skipif mysql # not compatible
query I rowsort label-5091
SELECT - 12 + - + 43 * + CAST ( 87 AS INTEGER ) + + + ( + - SUM ( 10 ) ) AS col2
----
-3763

query I rowsort
SELECT DISTINCT NULLIF ( - 56, + 10 ) AS col1
----
-56

query I rowsort
SELECT 9 AS col1
----
9

query I rowsort
SELECT ALL ( - + 91 )
----
-91

query I rowsort
SELECT ALL + 99 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT DISTINCT 49 DIV 56 + - 73
----
-73

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT 49 / 56 + - 73
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5097
SELECT DISTINCT - COUNT( * ) * - 81 AS col2, - 37 AS col2
----
81
-37

skipif mysql # not compatible
query II rowsort label-5097
SELECT DISTINCT - COUNT ( * ) * - 81 AS col2, - 37 AS col2
----
81
-37

query I rowsort
SELECT + 70 AS col0
----
70

query I rowsort
SELECT ALL - 34 * + 31 AS col2
----
-1054

query I rowsort
SELECT ( ( + - 98 ) ) AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT - 29 DIV - 48 col0
----
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT - 29 / - 48 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT - 40 - + CAST( + 26 AS SIGNED ) * 32
----
-872

skipif mysql # not compatible
query I rowsort label-5102
SELECT - 40 - + CAST ( + 26 AS INTEGER ) * 32
----
-872

query I rowsort
SELECT DISTINCT - 16 * + - 87
----
1392

query I rowsort
SELECT ALL 36 * - - 11 + + 67 + 34
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + 48 * - COUNT( * ) - + 25 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5105
SELECT + 48 * - COUNT ( * ) - + 25 AS col1
----
-73

query I rowsort
SELECT ( + 67 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT + NULLIF ( + + 74, + COALESCE ( CAST( NULL AS SIGNED ), 49 + 1 ) * NULLIF ( - 13, 70 * 59 ) * + 46 )
----
74

skipif mysql # not compatible
query I rowsort label-5107
SELECT + NULLIF ( + + 74, + COALESCE ( CAST ( NULL AS INTEGER ), 49 + 1 ) * NULLIF ( - 13, 70 * 59 ) * + 46 )
----
74

query I rowsort
SELECT ALL + - 66
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT - - COUNT( * ) DIV 80 * - + 82 + + 4 col1
----
4

skipif mysql # not compatible
query I rowsort label-5109
SELECT - - COUNT ( * ) / 80 * - + 82 + + 4 col1
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-5110
SELECT + - 34 DIV - 38, + ( 22 ) AS col0
----
0
22

skipif mysql # not compatible
query II rowsort label-5110
SELECT + - 34 / - 38, + ( 22 ) AS col0
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - - 20 * - CASE + 15 WHEN + 80 THEN NULL WHEN + 38 THEN NULL ELSE COUNT( ALL + 38 ) * - 18 END - - 12 * 50 + - 83
----
877

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - - 20 * - CASE + 15 WHEN + 80 THEN NULL WHEN + 38 THEN NULL ELSE COUNT ( ALL + 38 ) * - 18 END - - 12 * 50 + - 83
----
877

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5112
SELECT DISTINCT - + 13 * + COUNT( * ) DIV 93 * + + 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT - + 13 * + COUNT ( * ) / 93 * + + 17 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL + + COUNT( * ) * - 15 * - - ( + 67 ) * - 9 * + 34 + 20 + 81 * + COUNT( * ) AS col2
----
307631

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + + COUNT ( * ) * - 15 * - - ( + 67 ) * - 9 * + 34 + 20 + 81 * + COUNT ( * ) AS col2
----
307631

onlyif mysql # aggregate syntax: 
query II rowsort label-5114
SELECT - - COUNT( * ) - + 1 - + 53 AS col2, 71
----
-53
71

skipif mysql # not compatible
query II rowsort label-5114
SELECT - - COUNT ( * ) - + 1 - + 53 AS col2, 71
----
-53
71

query I rowsort
SELECT DISTINCT + 43 * 42 + - - 56 AS col0
----
1862

query I rowsort
SELECT DISTINCT + 58 AS col0
----
58

query I rowsort
SELECT DISTINCT 0 * + 97 + + + 82 + - + 80 + + + ( - - 67 ) * - + 25 AS col0
----
-1673

query I rowsort
SELECT + CASE - - 3 WHEN + 98 + - 91 + - + 9 THEN + 21 END col1
----
NULL

query I rowsort
SELECT ALL + + 16
----
16

query I rowsort
SELECT + 86 * + + 38
----
3268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT ALL CASE NULLIF ( - - 28, 1 * 48 * 72 + - 69 ) WHEN + 31 THEN + 42 DIV + 65 ELSE 94 END * + 41 + COUNT( * ) AS col2
----
3855

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL CASE NULLIF ( - - 28, 1 * 48 * 72 + - 69 ) WHEN + 31 THEN + 42 / + 65 ELSE 94 END * + 41 + COUNT ( * ) AS col2
----
3855

query I rowsort
SELECT ALL + + 60
----
60

query I rowsort
SELECT - 59 AS col2
----
-59

query I rowsort
SELECT 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5125
SELECT ALL MIN( ALL + 86 ) * 40 AS col2, + 6 * + 1 AS col1
----
3440
6

skipif mysql # not compatible
query II rowsort label-5125
SELECT ALL MIN ( ALL + 86 ) * 40 AS col2, + 6 * + 1 AS col1
----
3440
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5126
SELECT - 52 + + + 39 + 15 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT - 52 + + + 39 + 15 - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + + 32 - - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5127
SELECT + + 32 - - COUNT ( * ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - COUNT ( * ) col0
----
-1

query II rowsort
SELECT + - 58 - - 8 AS col2, 9 * + ( + COALESCE ( + 71, - 52 * COALESCE ( - 82, 39 ) ) ) AS col0
----
-50
639

query I rowsort
SELECT - + 19 AS col2
----
-19

query I rowsort
SELECT DISTINCT 38 AS col1
----
38

query I rowsort
SELECT + + ( + - 29 ) * 43
----
-1247

query I rowsort
SELECT DISTINCT + 52
----
52

query I rowsort
SELECT ALL + 98
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5135
SELECT + NULLIF ( - 42, + - 92 ) + - + 89 DIV - - COUNT( * ) AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-5135
SELECT + NULLIF ( - 42, + - 92 ) + - + 89 / - - COUNT ( * ) AS col0
----
-131

query I rowsort
SELECT ALL 35 AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5137
SELECT - 37 DIV COUNT( * ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-5137
SELECT - 37 / COUNT ( * ) col0
----
-37

query I rowsort
SELECT + 43 * - + 20 col1
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + NULLIF ( ( + 57 ), - 8 ) + - COUNT( * ) * + 84 * - 80
----
6777

skipif mysql # not compatible
query I rowsort label-5139
SELECT + NULLIF ( ( + 57 ), - 8 ) + - COUNT ( * ) * + 84 * - 80
----
6777

query II rowsort
SELECT DISTINCT 41 AS col2, 94
----
41
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5141
SELECT ALL 83 DIV - NULLIF ( - + 77, 65 - 93 * - CAST( - COALESCE ( - SUM( ALL + NULLIF ( + 32, - ( 18 ) ) ), 87 ) AS SIGNED ) DIV 92 )
----
1

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL 83 / - NULLIF ( - + 77, 65 - 93 * - CAST ( - COALESCE ( - SUM ( ALL + NULLIF ( + 32, - ( 18 ) ) ), 87 ) AS INTEGER ) / 92 )
----
1

query I rowsort
SELECT - ( 61 ) col0
----
-61

query II rowsort
SELECT 0, + 91 AS col0
----
0
91

query II rowsort
SELECT + 7 * + 76 * + 40 AS col1, + 20 AS col2
----
21280
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT - CAST( + 49 AS SIGNED ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5145
SELECT - CAST ( + 49 AS INTEGER ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT 83 + + - ( COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-5146
SELECT 83 + + - ( COUNT ( * ) )
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-5147
SELECT ALL 1, 71 DIV 32 AS col0
----
1
2

skipif mysql # not compatible
query II rowsort label-5147
SELECT ALL 1, 71 / 32 AS col0
----
1
2

query I rowsort
SELECT 54 * - + 13
----
-702

query I rowsort
SELECT ALL + 2 * - 91 AS col0
----
-182

query I rowsort
SELECT ALL + 93 + + 57 + + + 40 * 88 * + + 3 AS col1
----
10710

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT 82 + - COUNT( - 59 ) - + - ( + 70 ) AS col2
----
151

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT 82 + - COUNT ( - 59 ) - + - ( + 70 ) AS col2
----
151

query I rowsort
SELECT ALL - 29 + + + 94
----
65

query I rowsort
SELECT 80 * + ( 18 ) AS col1
----
1440

query II rowsort
SELECT DISTINCT 59 + ( 81 ), 55 * - - 53 * - 80 AS col1
----
140
-233200

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT - COUNT( * ) + - ( 58 ) - + 97
----
-156

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT - COUNT ( * ) + - ( 58 ) - + 97
----
-156

query I rowsort
SELECT - 68 AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5157
SELECT - 69 AS col1, 35 DIV 65 DIV - + 12 * CASE - - 7 WHEN 88 * COUNT( * ) + 54 THEN NULL WHEN + 40 - - 49 THEN NULL ELSE 74 END - 0 * 27 col1
----
-69
0

skipif mysql # not compatible
query II rowsort label-5157
SELECT - 69 AS col1, 35 / 65 / - + 12 * CASE - - 7 WHEN 88 * COUNT ( * ) + 54 THEN NULL WHEN + 40 - - 49 THEN NULL ELSE 74 END - 0 * 27 col1
----
-69
0

query II rowsort
SELECT 81, + 52 * + 77 col0
----
81
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL - 30 + - + MIN( DISTINCT + 13 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - 30 + - + MIN ( DISTINCT + 13 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT 70 + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5160
SELECT 70 + - COUNT ( * )
----
69

query II rowsort
SELECT 24 AS col0, + 43 * - + 0 * + + 81 col1
----
24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT + 58 + + MIN( 34 ) + + 9
----
101

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT + 58 + + MIN ( 34 ) + + 9
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT ALL - 53 AS col0, - 11 - + COUNT( * ) * + 39
----
-53
-50

skipif mysql # not compatible
query II rowsort label-5163
SELECT ALL - 53 AS col0, - 11 - + COUNT ( * ) * + 39
----
-53
-50

query I rowsort
SELECT ALL - 52
----
-52

query I rowsort
SELECT ALL - ( - - 72 )
----
-72

query I rowsort
SELECT - 92 AS col0
----
-92

query I rowsort
SELECT DISTINCT - 55 + - + 51
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-5168
SELECT ALL + 97 + + 93 DIV + 71 + - 59
----
39

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + 97 + + 93 / + 71 + - 59
----
39

query I rowsort
SELECT ALL - + 27 * + 72 col0
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT COUNT( * ) + - 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5170
SELECT COUNT ( * ) + - 29 AS col1
----
-28

query I rowsort
SELECT ALL - + 10 - + 39 + + ( + 75 ) * 48 AS col0
----
3551

query I rowsort
SELECT + 9 * 48 AS col1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT DISTINCT + 6 * - + 76 * - 56 * - 54 + - + 66 + + 56 - + COUNT( * ) AS col0
----
-1378955

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT + 6 * - + 76 * - 56 * - 54 + - + 66 + + 56 - + COUNT ( * ) AS col0
----
-1378955

query I rowsort
SELECT + ( 68 )
----
68

query I rowsort
SELECT 80 AS col1
----
80

query I rowsort
SELECT DISTINCT - ( + 86 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5177
SELECT ALL + + COALESCE ( + 27, + SUM( - 85 ) + - + COUNT( * ) * ( - CAST( NULL AS SIGNED ) ), + COUNT( * ) + + 1 ) * NULLIF ( COUNT( * ), + COALESCE ( + 41, - NULLIF ( 55, - 59 ) ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL + + COALESCE ( + 27, + SUM ( - 85 ) + - + COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) + + 1 ) * NULLIF ( COUNT ( * ), + COALESCE ( + 41, - NULLIF ( 55, - 59 ) ) ) AS col0
----
27

query I rowsort
SELECT 74 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5179
SELECT ALL - - CAST( NULL AS DECIMAL ) - - 37 + - + SUM( - + 19 ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL - - CAST ( NULL AS REAL ) - - 37 + - + SUM ( - + 19 ) * - 43
----
NULL

query I rowsort
SELECT ALL + 12 * + 38
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-5181
SELECT - 72 DIV + 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5181
SELECT - 72 / + 65 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT COALESCE ( - CASE - 16 WHEN + 9 THEN - 38 WHEN - + COUNT( + 28 ) / CAST( - COUNT( * ) AS SIGNED ) + SUM( ALL 24 ) / - 39 THEN NULL ELSE NULL END, 48 ) * 91
----
4368

skipif mysql # not compatible
query I rowsort label-5182
SELECT COALESCE ( - CASE - 16 WHEN + 9 THEN - 38 WHEN - + COUNT ( + 28 ) / CAST ( - COUNT ( * ) AS INTEGER ) + SUM ( ALL 24 ) / - 39 THEN NULL ELSE NULL END, 48 ) * 91
----
4368

query II rowsort
SELECT ALL - - 16, 12 AS col0
----
16
12

query I rowsort
SELECT + 83 AS col1
----
83

query I rowsort
SELECT ALL - - 56
----
56

query II rowsort
SELECT ALL 22 AS col1, 47
----
22
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT DISTINCT + MAX( DISTINCT - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT + MAX ( DISTINCT - 4 ) AS col0
----
-4

query I rowsort
SELECT - ( - 48 ) col1
----
48

query I rowsort
SELECT - 84 AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT 33 * - + COALESCE ( + - ( + 60 ), + 61 DIV + + 58 ) - + 94 AS col2
----
1886

skipif mysql # not compatible
query I rowsort label-5190
SELECT 33 * - + COALESCE ( + - ( + 60 ), + 61 / + + 58 ) - + 94 AS col2
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT COUNT( * ) - + 32 + + 84 * + 17 AS col0
----
1397

skipif mysql # not compatible
query I rowsort label-5191
SELECT COUNT ( * ) - + 32 + + 84 * + 17 AS col0
----
1397

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT 48 * - + COUNT( * ) * - NULLIF ( + 69, - 98 + - 76 + - - 20 ) * + 26 AS col2
----
86112

skipif mysql # not compatible
query I rowsort label-5192
SELECT 48 * - + COUNT ( * ) * - NULLIF ( + 69, - 98 + - 76 + - - 20 ) * + 26 AS col2
----
86112

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL 77 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL 77 * COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT 96
----
96

query I rowsort
SELECT ALL 71 + - 85 col2
----
-14

query I rowsort
SELECT ALL 30 + - 35 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT MAX( ALL - 17 ) - + CASE - + 26 WHEN AVG ( 73 ) THEN NULL WHEN + - 50 THEN + ( 20 ) + 13 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT MAX ( ALL - 17 ) - + CASE - + 26 WHEN AVG ( 73 ) THEN NULL WHEN + - 50 THEN + ( 20 ) + 13 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT COUNT( DISTINCT - 77 ) + 47 + + + ( - + 50 ) * - - 95 AS col2
----
-4702

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT COUNT ( DISTINCT - 77 ) + 47 + + + ( - + 50 ) * - - 95 AS col2
----
-4702

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL 35 + - ( - NULLIF ( 97, - 72 * + COUNT( * ) * 57 ) ) * 98
----
9541

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL 35 + - ( - NULLIF ( 97, - 72 * + COUNT ( * ) * 57 ) ) * 98
----
9541

query I rowsort
SELECT ALL 68
----
68

query I rowsort
SELECT 73 + - - 95 AS col0
----
168

query I rowsort
SELECT 15 + + - 21 + 6 + 79 * + COALESCE ( - 85, 74 ) * - 22 * 70
----
10341100

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT DISTINCT 5 + - + COALESCE ( + 24, 33 ) + + 18 * - - 23 + + 41 + - - SUM( ALL ( - 46 ) ) AS col1
----
390

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT 5 + - + COALESCE ( + 24, 33 ) + + 18 * - - 23 + + 41 + - - SUM ( ALL ( - 46 ) ) AS col1
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL SUM( - 87 ) * + 2 * + + 19 * + + 94 AS col0
----
-310764

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL SUM ( - 87 ) * + 2 * + + 19 * + + 94 AS col0
----
-310764

query I rowsort
SELECT 72 col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT ALL 75 DIV - - 18
----
4

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL 75 / - - 18
----
4

query I rowsort
SELECT ALL - - 75 * + + 23
----
1725

query I rowsort
SELECT + NULLIF ( 37, + 9 ) * 45 * - - 33 + + 87 * 82 - 9 + - ( 26 )
----
62044

query I rowsort
SELECT ALL - - 15 AS col2
----
15

query I rowsort
SELECT + ( + + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL + COUNT( NULLIF ( 9, 37 + + + 12 ) ) * + + COALESCE ( 3, 55 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL + COUNT ( NULLIF ( 9, 37 + + + 12 ) ) * + + COALESCE ( 3, 55 ) AS col1
----
3

query I rowsort
SELECT + - 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT ( - MIN( DISTINCT + 6 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5213
SELECT ( - MIN ( DISTINCT + 6 ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + 87 * - COUNT( * ) + + 80 + - + 88 + ( 99 ) + 72
----
76

skipif mysql # not compatible
query I rowsort label-5214
SELECT + 87 * - COUNT ( * ) + + 80 + - + 88 + ( 99 ) + 72
----
76

query I rowsort
SELECT 14 AS col2
----
14

query I rowsort
SELECT DISTINCT - 66 col1
----
-66

query I rowsort
SELECT + - 69
----
-69

query I rowsort
SELECT ALL - - 73
----
73

query I rowsort
SELECT ALL - 28 AS col0
----
-28

query I rowsort
SELECT DISTINCT - + 83 AS col2
----
-83

query I rowsort
SELECT DISTINCT - + 22 AS col1
----
-22

query II rowsort
SELECT 18 * + 6, COALESCE ( + 41, - 91 * + + 17 ) AS col1
----
108
41

query I rowsort
SELECT ALL + 61 * + 46 * + + 45
----
126270

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT + ( - COUNT( * ) ) * + 55 + - + 90 col0
----
-145

skipif mysql # not compatible
query I rowsort label-5224
SELECT + ( - COUNT ( * ) ) * + 55 + - + 90 col0
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5225
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT 97 DIV + 74
----
1

skipif mysql # not compatible
query I rowsort label-5226
SELECT 97 / + 74
----
1

query I rowsort
SELECT + 97 * - 44
----
-4268

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL + + 15 * - SUM( DISTINCT - 2 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + + 15 * - SUM ( DISTINCT - 2 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ( + + 85 ) + CASE - 63 WHEN 64 / - + 13 * - 31 THEN NULL WHEN - + 18 THEN - 27 END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT ( + + 85 ) + CASE - 63 WHEN 64 / - + 13 * - 31 THEN NULL WHEN - + 18 THEN - 27 END / COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 73 AS col2
----
73

query I rowsort
SELECT + 90 AS col1
----
90

query I rowsort
SELECT ALL - 25 + - 79 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT COUNT( * ) * - 68 + + + 52 + - + 20 - - - 12 * - ( + 15 ) * + COUNT( * ) * - COALESCE ( + 42, 3, 12 )
----
-7596

skipif mysql # not compatible
query I rowsort label-5233
SELECT COUNT ( * ) * - 68 + + + 52 + - + 20 - - - 12 * - ( + 15 ) * + COUNT ( * ) * - COALESCE ( + 42, 3, 12 )
----
-7596

query I rowsort
SELECT 74 - ( + + 75 ) col1
----
-1

query I rowsort
SELECT ALL - 65 * 98
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT - COALESCE ( + 43, ( + 80 ) ) * + 28 * - COUNT( * ) * - - 17 * - 95 + NULLIF ( + 56, 29 - - COUNT( * ) ) + 66 * 81
----
-1939058

skipif mysql # not compatible
query I rowsort label-5236
SELECT - COALESCE ( + 43, ( + 80 ) ) * + 28 * - COUNT ( * ) * - - 17 * - 95 + NULLIF ( + 56, 29 - - COUNT ( * ) ) + 66 * 81
----
-1939058

query I rowsort
SELECT - 89 col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - 42 + - NULLIF ( - CASE - 10 WHEN + - 5 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + + 4 END, - COUNT( * ) + - - COUNT( * ) ) + + COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5238
SELECT - 42 + - NULLIF ( - CASE - 10 WHEN + - 5 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + + 4 END, - COUNT ( * ) + - - COUNT ( * ) ) + + COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT DISTINCT + 20 + 38 * + - 22 col1
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT - 29 + + 19 * - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT - 29 + + 19 * - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT ALL + 75 + - SUM( 58 ) - - 75 * - 26 AS col1, MIN( - - 88 ) * - - 70 * COUNT( * )
----
-1933
6160

skipif mysql # not compatible
query II rowsort label-5241
SELECT ALL + 75 + - SUM ( 58 ) - - 75 * - 26 AS col1, MIN ( - - 88 ) * - - 70 * COUNT ( * )
----
-1933
6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5242
SELECT - CAST( NULL AS SIGNED ) + 65 * + COUNT( ALL - + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT - CAST ( NULL AS INTEGER ) + 65 * + COUNT ( ALL - + 88 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT 11 AS col0, COUNT( * ) AS col0
----
11
1

skipif mysql # not compatible
query II rowsort label-5243
SELECT 11 AS col0, COUNT ( * ) AS col0
----
11
1

query I rowsort
SELECT - 56 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT ALL CASE - - 93 WHEN - + 26 + 47 THEN - ( CAST( + 62 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL CASE - - 93 WHEN - + 26 + 47 THEN - ( CAST ( + 62 AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL - 75 + + + 4
----
-71

query I rowsort
SELECT - 17 + + 47 AS col0
----
30

query I rowsort
SELECT + 82 * 31 AS col0
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL + COUNT( * ) * 58 col1
----
58

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL + COUNT ( * ) * 58 col1
----
58

query I rowsort
SELECT - 67 col1
----
-67

query I rowsort
SELECT 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT DISTINCT COUNT( * ) * + + 42 * + 9 AS col0
----
378

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT COUNT ( * ) * + + 42 * + 9 AS col0
----
378

query I rowsort
SELECT ALL 23 AS col2
----
23

query I rowsort
SELECT ALL 78 AS col2
----
78

query I rowsort
SELECT DISTINCT 81 AS col0
----
81

query I rowsort
SELECT - - 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - - ( - 8 ) * - MAX( ALL 80 )
----
640

skipif mysql # not compatible
query I rowsort label-5257
SELECT - - ( - 8 ) * - MAX ( ALL 80 )
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT + - 11 * - + 32 + MIN( + 51 )
----
403

skipif mysql # not compatible
query I rowsort label-5258
SELECT + - 11 * - + 32 + MIN ( + 51 )
----
403

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5259
SELECT ALL 49 AS col1, CAST( NULL AS DECIMAL )
----
49
NULL

skipif mysql # not compatible
query II rowsort label-5259
SELECT ALL 49 AS col1, CAST ( NULL AS REAL )
----
49
NULL

query I rowsort
SELECT + ( + 8 ) AS col2
----
8

query I rowsort
SELECT + - 61 AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5262
SELECT ( - 40 ) DIV SUM( - 46 ) + + + 64 - 35 + - 71 * + 65
----
-4586

skipif mysql # not compatible
query I rowsort label-5262
SELECT ( - 40 ) / SUM ( - 46 ) + + + 64 - 35 + - 71 * + 65
----
-4586

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT DISTINCT - 95 * COUNT( * ) - + COUNT( * ) + + 6 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT - 95 * COUNT ( * ) - + COUNT ( * ) + + 6 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT + ( + 22 ) * 64 * - 45 + + 7 DIV 52 AS col0
----
-63360

skipif mysql # not compatible
query I rowsort label-5264
SELECT + ( + 22 ) * 64 * - 45 + + 7 / 52 AS col0
----
-63360

query I rowsort
SELECT + 88 + + 31
----
119

query I rowsort
SELECT ALL + - 62 AS col2
----
-62

query I rowsort
SELECT ALL + + 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT - - 23 * + 51 * + - 84 + + - 72 + + NULLIF ( + 7, + - COUNT( * ) )
----
-98597

skipif mysql # not compatible
query I rowsort label-5268
SELECT - - 23 * + 51 * + - 84 + + - 72 + + NULLIF ( + 7, + - COUNT ( * ) )
----
-98597

query I rowsort
SELECT DISTINCT + + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL + ( - + 30 ) * + - COUNT( * ) + - - 15
----
45

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + ( - + 30 ) * + - COUNT ( * ) + - - 15
----
45

query I rowsort
SELECT + + 84 + 66
----
150

query I rowsort
SELECT DISTINCT + - 94 AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5273
SELECT DISTINCT + 87 * + + 54 + + MAX( ALL + 30 ) DIV - 78 + - + 96 col1, 10
----
4602
10

skipif mysql # not compatible
query II rowsort label-5273
SELECT DISTINCT + 87 * + + 54 + + MAX ( ALL + 30 ) / - 78 + - + 96 col1, 10
----
4602
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT CAST( - COALESCE ( - - 75, + - 58 ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-5274
SELECT CAST ( - COALESCE ( - - 75, + - 58 ) AS INTEGER )
----
-75

query I rowsort
SELECT + 18 AS col2
----
18

query I rowsort
SELECT - 95 * + - 1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5277
SELECT + COUNT( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT( * ) DIV + 0 + - + 45, + COUNT( * ) DIV 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT( * ) - 85 END + - COUNT( * ) DIV CAST( 76 * COUNT( * ) - 10 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-5277
SELECT + COUNT ( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT ( * ) / + 0 + - + 45, + COUNT ( * ) / 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT ( * ) - 85 END + - COUNT ( * ) / CAST ( 76 * COUNT ( * ) - 10 AS INTEGER )
----
-86

query I rowsort
SELECT ALL + COALESCE ( + + 62, + - 13 + - - 15 + - NULLIF ( + 34, - + 82 - - CASE - COALESCE ( + - 59, ( 38 ) * 93, 67 + + 96 ) WHEN ( 9 ) THEN - ( - 56 ) ELSE NULL END ) * + 8 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT CASE + 98 WHEN - 76 THEN + 76 * + 47 WHEN + ( + SUM( DISTINCT - CASE - 29 WHEN - 72 * NULLIF ( + NULLIF ( 8, - 21 * 31 ), - 30 - 18 ) + - 79 THEN NULL ELSE + 74 * 29 - - 45 * ( + 82 ) END ) ) * - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT CASE + 98 WHEN - 76 THEN + 76 * + 47 WHEN + ( + SUM ( DISTINCT - CASE - 29 WHEN - 72 * NULLIF ( + NULLIF ( 8, - 21 * 31 ), - 30 - 18 ) + - 79 THEN NULL ELSE + 74 * 29 - - 45 * ( + 82 ) END ) ) * - 68 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5280
SELECT + COALESCE ( - NULLIF ( + 51, + 80 * + 30 ), - 78, - COUNT( * ) ) DIV + 9 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5280
SELECT + COALESCE ( - NULLIF ( + 51, + 80 * + 30 ), - 78, - COUNT ( * ) ) / + 9 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT DISTINCT COUNT( * ) * + - 69 * + 98 + + CAST( NULL AS SIGNED ) + + 21 + 88 / + - COUNT( * ) + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT COUNT ( * ) * + - 69 * + 98 + + CAST ( NULL AS INTEGER ) + + 21 + 88 / + - COUNT ( * ) + - 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5282
SELECT + COALESCE ( + - 40, - + 54, + + 66 ) * + - COUNT( + 38 ), 48 * ( + SUM( + + 81 ) ) AS col2
----
40
3888

skipif mysql # not compatible
query II rowsort label-5282
SELECT + COALESCE ( + - 40, - + 54, + + 66 ) * + - COUNT ( + 38 ), 48 * ( + SUM ( + + 81 ) ) AS col2
----
40
3888

query I rowsort
SELECT DISTINCT - 98 * + 83 col1
----
-8134

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL COUNT( * ) * - - SUM( DISTINCT + + 51 ) + + 6 + + CASE + + 16 WHEN 51 * - ( + COUNT( * ) ) + - - 97 THEN - 36 * 69 WHEN + 59 THEN NULL END * 4 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL COUNT ( * ) * - - SUM ( DISTINCT + + 51 ) + + 6 + + CASE + + 16 WHEN 51 * - ( + COUNT ( * ) ) + - - 97 THEN - 36 * 69 WHEN + 59 THEN NULL END * 4 * 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5285
SELECT - 54 AS col0, 36 - + - CAST( - AVG ( + - 72 ) AS DECIMAL ) + + CAST( NULL AS SIGNED ) col1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-5285
SELECT - 54 AS col0, 36 - + - CAST ( - AVG ( + - 72 ) AS REAL ) + + CAST ( NULL AS INTEGER ) col1
----
-54
NULL

query I rowsort
SELECT + 76 - 94
----
-18

query III rowsort
SELECT - 62 AS col0, + 62 AS col1, 87 AS col0
----
-62
62
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT ALL 58 - - COUNT( * ) + + 11 / + ( + NULLIF ( - - ( + - 25 ), + 68 / - 17 ) ) * + - CAST( NULL AS SIGNED ) * COUNT( ALL 21 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL 58 - - COUNT ( * ) + + 11 / + ( + NULLIF ( - - ( + - 25 ), + 68 / - 17 ) ) * + - CAST ( NULL AS INTEGER ) * COUNT ( ALL 21 ) AS col1
----
NULL

query I rowsort
SELECT 10 col2
----
10

query I rowsort
SELECT DISTINCT ( - 56 ) AS col0
----
-56

query I rowsort
SELECT ALL - 44 - 7 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT - 46 DIV 35
----
-1

skipif mysql # not compatible
query I rowsort label-5292
SELECT - 46 / 35
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL CAST( - 63 AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL CAST ( - 63 AS INTEGER ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT ( + + COUNT( ALL + 80 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT ( + + COUNT ( ALL + 80 ) )
----
1

query II rowsort
SELECT - 30 AS col0, - 1 AS col1
----
-30
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT - SUM( + 31 ) + + 75 + + 48 - + 82 * 68 * - 3 * + COUNT( * ) * NULLIF ( + 73, 43 * 34 ) * + 61 AS col0
----
74489876

skipif mysql # not compatible
query I rowsort label-5296
SELECT - SUM ( + 31 ) + + 75 + + 48 - + 82 * 68 * - 3 * + COUNT ( * ) * NULLIF ( + 73, 43 * 34 ) * + 61 AS col0
----
74489876

query I rowsort
SELECT - 50 * - + 64
----
3200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5298
SELECT ( 21 ), 67 * - - 43 * - - 17 + - + 96 - - - CAST( NULL AS SIGNED ) AS col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-5298
SELECT ( 21 ), 67 * - - 43 * - - 17 + - + 96 - - - CAST ( NULL AS INTEGER ) AS col0
----
21
NULL

query I rowsort
SELECT ALL - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT + COUNT( * ) AS col1, - 75 AS col1
----
1
-75

skipif mysql # not compatible
query II rowsort label-5300
SELECT + COUNT ( * ) AS col1, - 75 AS col1
----
1
-75

query III rowsort
SELECT ALL + 98 AS col2, 67, - - 0 col2
----
98
67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT + SUM( DISTINCT - 1 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT + SUM ( DISTINCT - 1 ) col1
----
-1

query I rowsort
SELECT + + 55 + + - 9
----
46

query I rowsort
SELECT ALL + 88 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + 52 * + 84 * - + COUNT( * )
----
-4368

skipif mysql # not compatible
query I rowsort label-5305
SELECT + 52 * + 84 * - + COUNT ( * )
----
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5306
SELECT ALL - 97 DIV - COUNT( * ) + - + 53 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - 97 / - COUNT ( * ) + - + 53 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - 92 - - CASE + - 89 WHEN - COUNT( * ) THEN - + 40 * - 68 * + COUNT( * ) * - + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT - 92 - - CASE + - 89 WHEN - COUNT ( * ) THEN - + 40 * - 68 * + COUNT ( * ) * - + 2 END
----
NULL

query I rowsort
SELECT + - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5309
SELECT - 51 AS col1, COALESCE ( 30, + + COUNT( * ), + 79 ) AS col1
----
-51
30

skipif mysql # not compatible
query II rowsort label-5309
SELECT - 51 AS col1, COALESCE ( 30, + + COUNT ( * ), + 79 ) AS col1
----
-51
30

query I rowsort
SELECT - - 33 * - 99 - + + 51 AS col2
----
-3318

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT + + NULLIF ( 45, + COUNT( * ) ) col0
----
45

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT + + NULLIF ( 45, + COUNT ( * ) ) col0
----
45

query I rowsort
SELECT 78 * - 50 + - 41 AS col1
----
-3941

query I rowsort
SELECT 55 * + + COALESCE ( - ( - - 46 ), - 54, + - 98 ) AS col1
----
-2530

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT ALL - ( + - 48 ) DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL - ( + - 48 ) / + 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT ALL - COUNT( * ) AS col2, 97 AS col2
----
-1
97

skipif mysql # not compatible
query II rowsort label-5315
SELECT ALL - COUNT ( * ) AS col2, 97 AS col2
----
-1
97

query II rowsort
SELECT ALL + - 44 + - + 81 AS col2, ( - 76 )
----
-125
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-5317
SELECT DISTINCT - 75 AS col0, - 39 DIV - 50
----
-75
0

skipif mysql # not compatible
query II rowsort label-5317
SELECT DISTINCT - 75 AS col0, - 39 / - 50
----
-75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL - CAST( NULL AS SIGNED ) + + - 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 61 col2
----
NULL

query I rowsort
SELECT 34 - + 99
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT ALL - ( 40 ) DIV - - MIN( ALL 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - ( 40 ) / - - MIN ( ALL 59 ) AS col1
----
0

query I rowsort
SELECT + 10 * 68 - - - 87
----
593

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL COUNT( * ) * 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL COUNT ( * ) * 85 AS col1
----
85

query I rowsort
SELECT DISTINCT - 15 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT ALL 18 + + - CAST( - NULLIF ( - - 83, - 10 * - 15 + + 28 ) AS SIGNED )
----
101

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL 18 + + - CAST ( - NULLIF ( - - 83, - 10 * - 15 + + 28 ) AS INTEGER )
----
101

query I rowsort
SELECT + 43 AS col1
----
43

query I rowsort
SELECT 88 col1
----
88

query I rowsort
SELECT CASE - 98 WHEN + - 14 THEN + 90 END + + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL COUNT( * ) * + 52 * 93
----
4836

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL COUNT ( * ) * + 52 * 93
----
4836

query I rowsort
SELECT 8 - - 43 * + 95 AS col2
----
4093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT 82 + - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT 82 + - + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 59 * 78 col0
----
4602

query I rowsort
SELECT DISTINCT 58
----
58

query I rowsort
SELECT 82 AS col2
----
82

query I rowsort
SELECT ALL 62 AS col2
----
62

query I rowsort
SELECT 88 AS col2
----
88

query I rowsort
SELECT 8 + + 88 + 50 AS col0
----
146

query I rowsort
SELECT ALL - 40 * + 90 AS col1
----
-3600

query I rowsort
SELECT 14 * 30
----
420

query I rowsort
SELECT DISTINCT 21 AS col1
----
21

query I rowsort
SELECT 27 + - 37 * + - NULLIF ( - 54, - 16 + - 12 )
----
-1971

query I rowsort
SELECT DISTINCT 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT ALL - ( + + MIN( DISTINCT - 98 ) ) * - 85
----
-8330

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL - ( + + MIN ( DISTINCT - 98 ) ) * - 85
----
-8330

query I rowsort
SELECT - + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT COUNT( * ) + - - 46
----
47

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( * ) + - - 46
----
47

query I rowsort
SELECT ALL + + 88 * - 31 col1
----
-2728

query I rowsort
SELECT ( + 23 ) + - 55 + + COALESCE ( + 37, + 15 * - - 33 * + - 72 ) + 78 * + + 91 col2
----
7103

query I rowsort
SELECT DISTINCT + 18
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5348
SELECT + 0 DIV - 99 - + 5
----
-5

skipif mysql # not compatible
query I rowsort label-5348
SELECT + 0 / - 99 - + 5
----
-5

query I rowsort
SELECT ALL - 23 + + - 45 * - 46
----
2047

query I rowsort
SELECT 2 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT DISTINCT - CAST( - 8 AS SIGNED ) + 40 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - CAST ( - 8 AS INTEGER ) + 40 AS col0
----
48

query I rowsort
SELECT - 24 AS col0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT 0 + - - 61 + - - 28 * + 56 + 2 + + 91 DIV 30 + + + 32 AS col1
----
1666

skipif mysql # not compatible
query I rowsort label-5353
SELECT 0 + - - 61 + - - 28 * + 56 + 2 + + 91 / 30 + + + 32 AS col1
----
1666

query I rowsort
SELECT ALL + - 84 + + 69
----
-15

query I rowsort
SELECT ALL - + 21 + 5
----
-16

query I rowsort
SELECT 39 AS col2
----
39

query I rowsort
SELECT DISTINCT - 21
----
-21

query I rowsort
SELECT ALL - + 33
----
-33

query I rowsort
SELECT ( + - 51 ) + 88
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL - COUNT( * ) * 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL - COUNT ( * ) * 19 AS col0
----
-19

query I rowsort
SELECT + + 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5363
SELECT + 0 DIV - + ( - 29 ) + 29 DIV - MIN( + - 68 ) + + - 5 + + 89 * - 56
----
-4989

skipif mysql # not compatible
query I rowsort label-5363
SELECT + 0 / - + ( - 29 ) + 29 / - MIN ( + - 68 ) + + - 5 + + 89 * - 56
----
-4989

query I rowsort
SELECT DISTINCT - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT + + 66 + + 61 + - COALESCE ( + - 61, 10 ) * - - 72 * - 81 - - COUNT( * ) + - - 33 * - 82 * + NULLIF ( + - 13, - 17 ) col2
----
-320446

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT + + 66 + + 61 + - COALESCE ( + - 61, 10 ) * - - 72 * - 81 - - COUNT ( * ) + - - 33 * - 82 * + NULLIF ( + - 13, - 17 ) col2
----
-320446

query II rowsort
SELECT DISTINCT - 44, 82 + - 86 AS col2
----
-44
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL + 43 - ( - COUNT( * ) ) col1
----
44

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + 43 - ( - COUNT ( * ) ) col1
----
44

query I rowsort
SELECT 57 * + 42 col2
----
2394

query I rowsort
SELECT + 38 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT 63 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-5370
SELECT 63 / 48
----
1

query I rowsort
SELECT 65 AS col1
----
65

query I rowsort
SELECT ALL - 38 AS col0
----
-38

query I rowsort
SELECT 36 col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5374
SELECT - MIN( + 22 ) * - + 81 + + CASE - 74 WHEN 43 - + - 81 THEN NULL WHEN + CASE - 29 WHEN - 25 + - - 96 + - + 90 * + + 95 + CAST( 63 AS SIGNED ) THEN NULL WHEN CAST( 28 AS SIGNED ) THEN COUNT( * ) + CAST( NULL AS SIGNED ) ELSE COUNT( * ) * ( 5 ) END + - SUM( ALL + 78 ) THEN NULL WHEN 30 + + 76 * 21 THEN - 49 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT - MIN ( + 22 ) * - + 81 + + CASE - 74 WHEN 43 - + - 81 THEN NULL WHEN + CASE - 29 WHEN - 25 + - - 96 + - + 90 * + + 95 + CAST ( 63 AS INTEGER ) THEN NULL WHEN CAST ( 28 AS INTEGER ) THEN COUNT ( * ) + CAST ( NULL AS INTEGER ) ELSE COUNT ( * ) * ( 5 ) END + - SUM ( ALL + 78 ) THEN NULL WHEN 30 + + 76 * 21 THEN - 49 END col2
----
NULL

query I rowsort
SELECT + 49 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT 89 DIV - 79 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5376
SELECT 89 / - 79 AS col0
----
-1

query I rowsort
SELECT DISTINCT - COALESCE ( + 97, - 58 )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT 98 * CASE 21 WHEN + 54 THEN - 86 ELSE - + 70 END DIV - + 55 + + 48
----
172

skipif mysql # not compatible
query I rowsort label-5378
SELECT 98 * CASE 21 WHEN + 54 THEN - 86 ELSE - + 70 END / - + 55 + + 48
----
172

query I rowsort
SELECT DISTINCT - 69 AS col2
----
-69

query II rowsort
SELECT DISTINCT - 40 col0, 34
----
-40
34

query I rowsort
SELECT - 14 col0
----
-14

query I rowsort
SELECT ALL 16 AS col1
----
16

query II rowsort
SELECT - 17 AS col2, - 63
----
-17
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT - MAX( DISTINCT - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5384
SELECT - MAX ( DISTINCT - 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - MAX( ALL + 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5385
SELECT - MAX ( ALL + 47 ) AS col2
----
-47

query I rowsort
SELECT ALL 74 AS col2
----
74

query I rowsort
SELECT ALL 58 * + + 36 * + 75 AS col0
----
156600

query I rowsort
SELECT 7 - + 97 + + 47 - + - 0 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5389
SELECT - COUNT( * ), + ( - 92 ) AS col2
----
-1
-92

skipif mysql # not compatible
query II rowsort label-5389
SELECT - COUNT ( * ), + ( - 92 ) AS col2
----
-1
-92

query I rowsort
SELECT 14 * - 30
----
-420

query I rowsort
SELECT NULLIF ( + + 79, + 19 + - 50 ) + 9 * + 53
----
556

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5392
SELECT ALL + 2, 80 + + + 92 + - 58 DIV - SUM( 56 ) AS col2, - 12 AS col2
----
2
173
-12

skipif mysql # not compatible
query III rowsort label-5392
SELECT ALL + 2, 80 + + + 92 + - 58 / - SUM ( 56 ) AS col2, - 12 AS col2
----
2
173
-12

query I rowsort
SELECT 23 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5394
SELECT ALL - MIN( ALL CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - MIN ( ALL CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT ALL 29 + + 67 DIV - 76
----
29

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL 29 + + 67 / - 76
----
29

query I rowsort
SELECT - 29 col1
----
-29

query I rowsort
SELECT + 7 * - 2
----
-14

query I rowsort
SELECT - 25 - 82 * - 28 + + 66 AS col1
----
2337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5399
SELECT ALL - 33 + - - MAX( - 96 ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - 33 + - - MAX ( - 96 ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 74 * + 7 * + ( - + 44 )
----
22792

query II rowsort
SELECT - + 61, + 60 AS col2
----
-61
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5402
SELECT - - 48 AS col0, + CAST( 43 AS SIGNED ) AS col0
----
48
43

skipif mysql # not compatible
query II rowsort label-5402
SELECT - - 48 AS col0, + CAST ( 43 AS INTEGER ) AS col0
----
48
43

query I rowsort
SELECT - + 73 * - 56
----
4088

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL + MIN( DISTINCT ( + + 59 ) ) + - COUNT( * ) * NULLIF ( - 57, + 17 * 56 + - + 14 + - - 70 * - + ( 2 ) ) + - 19 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + MIN ( DISTINCT ( + + 59 ) ) + - COUNT ( * ) * NULLIF ( - 57, + 17 * 56 + - + 14 + - - 70 * - + ( 2 ) ) + - 19 AS col1
----
97

query II rowsort
SELECT ALL 25 AS col2, 79 * 3 + COALESCE ( - 94, + - 70 ) + + 80 + 14
----
25
237

query I rowsort
SELECT ALL 48 col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT + CASE + NULLIF ( - 5, - 67 ) WHEN + - 11 + + - 91 THEN + 94 + + + 61 * - + CASE - 98 WHEN 25 * + 84 * - - ( - 78 ) + ( 16 ) THEN 40 * COALESCE ( + 45, - COUNT( * ) + + 87 ) ELSE + 98 END * + 33 + - 89 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT + CASE + NULLIF ( - 5, - 67 ) WHEN + - 11 + + - 91 THEN + 94 + + + 61 * - + CASE - 98 WHEN 25 * + 84 * - - ( - 78 ) + ( 16 ) THEN 40 * COALESCE ( + 45, - COUNT ( * ) + + 87 ) ELSE + 98 END * + 33 + - 89 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5408
SELECT - CAST( NULL AS SIGNED ) * + - SUM( ALL + CAST( + - 69 AS DECIMAL ) ) + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT - CAST ( NULL AS INTEGER ) * + - SUM ( ALL + CAST ( + - 69 AS REAL ) ) + - 97 AS col2
----
NULL

query I rowsort
SELECT ALL + 74 AS col2
----
74

query II rowsort
SELECT 59 AS col0, - 42
----
59
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT + SUM( ALL + 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5411
SELECT + SUM ( ALL + 58 ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT COALESCE ( + 13, + - 18 + + COALESCE ( 87, + 86, - CASE + CAST( NULL AS SIGNED ) WHEN + 87 THEN + + 26 + 37 END * + + CAST( + + 14 AS SIGNED ) + + - 69 ) + 11 )
----
13

skipif mysql # not compatible
query I rowsort label-5412
SELECT COALESCE ( + 13, + - 18 + + COALESCE ( 87, + 86, - CASE + CAST ( NULL AS INTEGER ) WHEN + 87 THEN + + 26 + 37 END * + + CAST ( + + 14 AS INTEGER ) + + - 69 ) + 11 )
----
13

query I rowsort
SELECT + 2 * - 57 + + 7
----
-107

query I rowsort
SELECT ALL + 38 col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5415
SELECT ( + 72 ) DIV - - 30 + + + ( COALESCE ( - + ( 44 ), COUNT( * ) * - ( SUM( 49 ) ) + 16 + ( + - COUNT( * ) ), - 16, 6 * 4 ) ) + + 27 * 38 AS col2
----
984

skipif mysql # not compatible
query I rowsort label-5415
SELECT ( + 72 ) / - - 30 + + + ( COALESCE ( - + ( 44 ), COUNT ( * ) * - ( SUM ( 49 ) ) + 16 + ( + - COUNT ( * ) ), - 16, 6 * 4 ) ) + + 27 * 38 AS col2
----
984

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5416
SELECT NULLIF ( + 70, - 99 - - - CAST( NULL AS DECIMAL ) + - 29 )
----
70

skipif mysql # not compatible
query I rowsort label-5416
SELECT NULLIF ( + 70, - 99 - - - CAST ( NULL AS REAL ) + - 29 )
----
70

query I rowsort
SELECT + 91
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT COALESCE ( 63, - COUNT( * ) * COUNT( * ) ) AS col0, + 91
----
63
91

skipif mysql # not compatible
query II rowsort label-5418
SELECT COALESCE ( 63, - COUNT ( * ) * COUNT ( * ) ) AS col0, + 91
----
63
91

query II rowsort
SELECT DISTINCT + COALESCE ( + - 58, + 11, + 46 ) AS col0, + 51 AS col0
----
-58
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5420
SELECT DISTINCT + COUNT( * ) * + + 62 * - 94 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT + COUNT ( * ) * + + 62 * - 94 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT - 70 * - COALESCE ( 27, - - 6 + - 42, + + MIN( DISTINCT + + 39 ) + 60 + - + 42 - 18 * - 35 ) + + 9 + - 71
----
1828

skipif mysql # not compatible
query I rowsort label-5422
SELECT - 70 * - COALESCE ( 27, - - 6 + - 42, + + MIN ( DISTINCT + + 39 ) + 60 + - + 42 - 18 * - 35 ) + + 9 + - 71
----
1828

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT + CASE + 87 WHEN 14 * - + MAX( ALL - 91 ) - - - 50 THEN - COUNT( DISTINCT - + 94 ) + + 20 WHEN 97 + - 19 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + CASE + 87 WHEN 14 * - + MAX ( ALL - 91 ) - - - 50 THEN - COUNT ( DISTINCT - + 94 ) + + 20 WHEN 97 + - 19 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT - 87 + + COUNT( + 62 )
----
-86

skipif mysql # not compatible
query I rowsort label-5424
SELECT - 87 + + COUNT ( + 62 )
----
-86

query I rowsort
SELECT ALL + 40 * + 0 + - - 85 + - + 10 * - + 85 * 0 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT + MIN( 19 ) - - COUNT( * ) col1
----
20

skipif mysql # not compatible
query I rowsort label-5426
SELECT + MIN ( 19 ) - - COUNT ( * ) col1
----
20

query I rowsort
SELECT DISTINCT + 46
----
46

query I rowsort
SELECT - 40 + 36 + - + 20
----
-24

query II rowsort
SELECT + - 43 + - 47 + ( - - 54 ), 71 AS col0
----
-36
71

query I rowsort
SELECT - 58 AS col0
----
-58

query I rowsort
SELECT + + 68 + - 17 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT - - 57 * MIN( ALL - + 47 ) AS col0
----
-2679

skipif mysql # not compatible
query I rowsort label-5432
SELECT - - 57 * MIN ( ALL - + 47 ) AS col0
----
-2679

query I rowsort
SELECT - 19 AS col0
----
-19

query I rowsort
SELECT ( - 37 ) AS col1
----
-37

query I rowsort
SELECT - - 32 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT + 46 + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5436
SELECT + 46 + - COUNT ( * )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT DISTINCT + 80 - + NULLIF ( + 75, + 58 * COALESCE ( + CAST( 96 AS SIGNED ), + 18 ) * - 0 / + 2 - - 64 )
----
5

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT + 80 - + NULLIF ( + 75, + 58 * COALESCE ( + CAST ( 96 AS INTEGER ), + 18 ) * - 0 / + 2 - - 64 )
----
5

query I rowsort
SELECT DISTINCT - 81
----
-81

query I rowsort
SELECT DISTINCT 20 AS col2
----
20

query I rowsort
SELECT - COALESCE ( - + 24, 74, 97 ) col1
----
24

query I rowsort
SELECT + + 25 + + 98 AS col0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-5442
SELECT DISTINCT 91 - + COUNT( * ) col2, 33 AS col1
----
90
33

skipif mysql # not compatible
query II rowsort label-5442
SELECT DISTINCT 91 - + COUNT ( * ) col2, 33 AS col1
----
90
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5443
SELECT + - ( - MAX( DISTINCT + - 1 ) ) * + + NULLIF ( - COUNT( * ), + - 13 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT + - ( - MAX ( DISTINCT + - 1 ) ) * + + NULLIF ( - COUNT ( * ), + - 13 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT + CAST( - + 55 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5444
SELECT + CAST ( - + 55 AS INTEGER ) AS col1
----
-55

query I rowsort
SELECT + ( - 63 ) + - 56
----
-119

query I rowsort
SELECT ALL - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT + ( COALESCE ( + 68, 42, + 61 * + - 95 + + NULLIF ( + 8, NULLIF ( - - ( MAX( ALL - 11 ) ), + 71 ) - + 67 ) ) ) + - 62 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5447
SELECT + ( COALESCE ( + 68, 42, + 61 * + - 95 + + NULLIF ( + 8, NULLIF ( - - ( MAX ( ALL - 11 ) ), + 71 ) - + 67 ) ) ) + - 62 AS col0
----
6

query I rowsort
SELECT - 57 + - 48 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT - 62 * - ( + 37 ) + + COUNT( * ) + 47 + 44 col0
----
2386

skipif mysql # not compatible
query I rowsort label-5449
SELECT - 62 * - ( + 37 ) + + COUNT ( * ) + 47 + 44 col0
----
2386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT CAST( 55 AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5450
SELECT CAST ( 55 AS INTEGER ) AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT DISTINCT 1 DIV + ( + 27 ) * - - 36
----
0

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT 1 / + ( + 27 ) * - - 36
----
0

query I rowsort
SELECT ALL + 53 col0
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5453
SELECT + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT + CAST( NULL AS SIGNED ) * - - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT + CAST ( NULL AS INTEGER ) * - - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL 36 * + COALESCE ( COUNT( * ), + 97 ) * + 62 * 0 + - 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL 36 * + COALESCE ( COUNT ( * ), + 97 ) * + 62 * 0 + - 86 AS col0
----
-86

query I rowsort
SELECT DISTINCT + 31 AS col2
----
31

query I rowsort
SELECT + 6 * + 27
----
162

query I rowsort
SELECT ALL 30 * - + 31 AS col0
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT - 0 * + COUNT( * ) * + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT - 0 * + COUNT ( * ) * + 53 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ( + MAX( + ( + 72 ) ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5461
SELECT ( + MAX ( + ( + 72 ) ) ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT DISTINCT - 8 DIV 3
----
-2

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT - 8 / 3
----
-2

query I rowsort
SELECT ( - 32 ) col0
----
-32

query I rowsort
SELECT ( 41 ) AS col0
----
41

query I rowsort
SELECT ( - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT COUNT( * ) * - COUNT( * ) + - COALESCE ( - 6, + NULLIF ( - - COUNT( * ), + ( 57 ) * - 73 / - 63 * + 93 + ( + 98 ) ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5466
SELECT COUNT ( * ) * - COUNT ( * ) + - COALESCE ( - 6, + NULLIF ( - - COUNT ( * ), + ( 57 ) * - 73 / - 63 * + 93 + ( + 98 ) ) ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT 84 * + 57 * + - 98 * 89 + + COUNT( * ) AS col0
----
-41760935

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT 84 * + 57 * + - 98 * 89 + + COUNT ( * ) AS col0
----
-41760935

query I rowsort
SELECT DISTINCT + 91
----
91

query I rowsort
SELECT DISTINCT + 13 * + NULLIF ( 62, + 59 ) + 66
----
872

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT + 36 * - - 90 + - 14 + + ( COUNT( * ) ) * CASE - + COUNT( * ) WHEN - - 83 THEN - 93 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + 36 * - - 90 + - 14 + + ( COUNT ( * ) ) * CASE - + COUNT ( * ) WHEN - - 83 THEN - 93 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL + 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - + ( + - 90 ) * NULLIF ( + 51, + 20 * + 66 - - ( + ( - COUNT( * ) ) ) + + 48 )
----
4590

skipif mysql # not compatible
query I rowsort label-5472
SELECT - + ( + - 90 ) * NULLIF ( + 51, + 20 * + 66 - - ( + ( - COUNT ( * ) ) ) + + 48 )
----
4590

query I rowsort
SELECT DISTINCT + + 54
----
54

query I rowsort
SELECT + - 78
----
-78

query II rowsort
SELECT - - 9, 22 AS col2
----
9
22

query I rowsort
SELECT ALL 86 col2
----
86

query II rowsort
SELECT ALL + 17 + + 2 + + 24, 89 * 72 col2
----
43
6408

query I rowsort
SELECT - 47 - + + 71
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT 98 * - ( - COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-5479
SELECT 98 * - ( - COUNT ( * ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT - - MIN( DISTINCT + NULLIF ( - 3, 94 * - 97 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5480
SELECT - - MIN ( DISTINCT + NULLIF ( - 3, 94 * - 97 ) ) AS col2
----
-3

query I rowsort
SELECT - 60 + + 87 col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5482
SELECT CASE COUNT( * ) WHEN + 74 + + 22 + + 27 THEN NULL ELSE - 76 DIV + + SUM( DISTINCT - + 60 ) END AS col1, 18 * + 87
----
1
1566

skipif mysql # not compatible
query II rowsort label-5482
SELECT CASE COUNT ( * ) WHEN + 74 + + 22 + + 27 THEN NULL ELSE - 76 / + + SUM ( DISTINCT - + 60 ) END AS col1, 18 * + 87
----
1
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT COUNT( 97 ) * + - ( - COUNT( - 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5483
SELECT COUNT ( 97 ) * + - ( - COUNT ( - 10 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT ALL NULLIF ( + 4, - 86 ) DIV + - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL NULLIF ( + 4, - 86 ) / + - 55 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5485
SELECT DISTINCT - 1 * + 11 DIV - 49, MIN( - 85 ) AS col2
----
0
-85

skipif mysql # not compatible
query II rowsort label-5485
SELECT DISTINCT - 1 * + 11 / - 49, MIN ( - 85 ) AS col2
----
0
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT + COUNT( * ) - - + SUM( 77 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5486
SELECT + COUNT ( * ) - - + SUM ( 77 ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT ALL - - CAST( NULL AS SIGNED ) / + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - - CAST ( NULL AS INTEGER ) / + 86
----
NULL

query I rowsort
SELECT 57 * + 42
----
2394

query I rowsort
SELECT - 19 * - NULLIF ( - + 53, + 66 )
----
-1007

query I rowsort
SELECT - 63 * + 97 AS col2
----
-6111

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL COUNT( * ) * - - 2 + + COUNT( 39 ) * - - ( - + 13 ) + + - 86 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL COUNT ( * ) * - - 2 + + COUNT ( 39 ) * - - ( - + 13 ) + + - 86 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT - MAX( + - 48 ) + - + 11 + 60 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5492
SELECT - MAX ( + - 48 ) + - + 11 + 60 AS col2
----
97

query II rowsort
SELECT - + 80 AS col2, + 67 AS col1
----
-80
67

query I rowsort
SELECT - - 24 AS col0
----
24

query I rowsort
SELECT DISTINCT 50 col2
----
50

query I rowsort
SELECT - 34 AS col2
----
-34

query I rowsort
SELECT ALL 36 AS col0
----
36

query I rowsort
SELECT DISTINCT 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL ( + + NULLIF ( + - 69, + COUNT( * ) ) ) + 29
----
-40

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL ( + + NULLIF ( + - 69, + COUNT ( * ) ) ) + 29
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ( 74 ) * + ( - COUNT( * ) ) * 18 - + 66
----
-1398

skipif mysql # not compatible
query I rowsort label-5500
SELECT ( 74 ) * + ( - COUNT ( * ) ) * 18 - + 66
----
-1398

query I rowsort
SELECT ALL - 47 col0
----
-47

query II rowsort
SELECT + 0 col0, 84 AS col0
----
0
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL 82 + COUNT( ALL - 86 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL 82 + COUNT ( ALL - 86 ) AS col0
----
83

query II rowsort
SELECT 95, 18 col2
----
95
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5505
SELECT - 61 DIV + 33 + + 31 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5505
SELECT - 61 / + 33 + + 31 AS col0
----
30

query II rowsort
SELECT + 58, - 33 AS col0
----
58
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT ALL 35 * + ( - 49 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL 35 * + ( - 49 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 17 + - 93 AS col0
----
-76

query I rowsort
SELECT ALL 46 + 24 + + 58 AS col1
----
128

query I rowsort
SELECT 23 * + - ( - + 48 ) AS col2
----
1104

query I rowsort
SELECT + 66
----
66

query I rowsort
SELECT ALL - 59 + 91
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5513
SELECT 23 * + 53 + - COUNT( * ) DIV - - 39, - 53 DIV + + 50 AS col2
----
1219
-1

skipif mysql # not compatible
query II rowsort label-5513
SELECT 23 * + 53 + - COUNT ( * ) / - - 39, - 53 / + + 50 AS col2
----
1219
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT 13 * COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5514
SELECT 13 * COUNT ( * ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5515
SELECT DISTINCT - 84, + 96 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 67 AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-5515
SELECT DISTINCT - 84, + 96 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 67 AS col1
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT - 92 + - - MAX( 20 ) + + + 25 * 0 * - - COUNT( * ) * - 89 * - 73 - - 4 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5516
SELECT - 92 + - - MAX ( 20 ) + + + 25 * 0 * - - COUNT ( * ) * - 89 * - 73 - - 4 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT COUNT( * ) + - - 40
----
41

skipif mysql # not compatible
query I rowsort label-5517
SELECT COUNT ( * ) + - - 40
----
41

query I rowsort
SELECT + ( + - 63 )
----
-63

query I rowsort
SELECT ALL - + 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT + + COALESCE ( + + COUNT( * ), - COUNT( - 10 ) * - + NULLIF ( - 43, + - 79 ), - 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5520
SELECT + + COALESCE ( + + COUNT ( * ), - COUNT ( - 10 ) * - + NULLIF ( - 43, + - 79 ), - 29 ) AS col2
----
1

query I rowsort
SELECT ALL - 44
----
-44

query I rowsort
SELECT ALL - 5 * + 39 + 64
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT 93 + - 96 DIV + 62 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5523
SELECT 93 + - 96 / + 62 AS col0
----
92

query I rowsort
SELECT - 94 + 29
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) * - 40 / + + 48 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) * - 40 / + + 48 * - 5
----
NULL

query I rowsort
SELECT + 3 * 10 + - 46
----
-16

query I rowsort
SELECT 3 + - 55
----
-52

query I rowsort
SELECT DISTINCT 33 AS col1
----
33

query II rowsort
SELECT 3 AS col1, + 28
----
3
28

query I rowsort
SELECT + 83 * + + 16 AS col0
----
1328

query II rowsort
SELECT ALL + 39 col1, + 22
----
39
22

query I rowsort
SELECT ALL + 53 + - 72 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT 99 + + 33 - - 20 / + - 43 * - + 12 + - + 93 * + - 84 * CASE + - MIN( + 76 ) WHEN 11 THEN + - COUNT( * ) + - 62 WHEN + 86 THEN NULL ELSE NULL END + - CAST( NULL AS SIGNED ) + - MIN( DISTINCT - 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT 99 + + 33 - - 20 / + - 43 * - + 12 + - + 93 * + - 84 * CASE + - MIN ( + 76 ) WHEN 11 THEN + - COUNT ( * ) + - 62 WHEN + 86 THEN NULL ELSE NULL END + - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - 65 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 82
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT 8 + - ( - - CAST( 77 AS SIGNED ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5535
SELECT 8 + - ( - - CAST ( 77 AS INTEGER ) ) AS col0
----
-69

query I rowsort
SELECT - 89 AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT 98 * + 13 / + CAST( NULL AS SIGNED ) * - 73 * - - 15 * + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT 98 * + 13 / + CAST ( NULL AS INTEGER ) * - 73 * - - 15 * + - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT COUNT( * ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5538
SELECT COUNT ( * ) + + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT DISTINCT COALESCE ( + 63, - 80, + - 0, - + 64 + - 4 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT 8 * + + COUNT( * ) * + + MAX( 14 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-5540
SELECT 8 * + + COUNT ( * ) * + + MAX ( 14 ) AS col1
----
112

query I rowsort
SELECT ALL - 82
----
-82

query I rowsort
SELECT DISTINCT + 75 * - - 97 + - 71 AS col1
----
7204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT DISTINCT - 97 * COUNT( * ) * + 23 + + 50 * CAST( - 69 AS SIGNED ) AS col0
----
-5681

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT - 97 * COUNT ( * ) * + 23 + + 50 * CAST ( - 69 AS INTEGER ) AS col0
----
-5681

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL - 42 * 42 + + - NULLIF ( 29, - + COUNT( * ) ) + - 26 col1
----
-1819

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL - 42 * 42 + + - NULLIF ( 29, - + COUNT ( * ) ) + - 26 col1
----
-1819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT 33 * 43 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT 33 * 43 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5546
SELECT ALL - 18 * + COUNT( * ) / + 42 * - CASE 65 WHEN + 7 + + - AVG ( DISTINCT - - ( - 91 ) ) THEN - ( + - 11 ) ELSE NULL END * COUNT( * ) AS col2, 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-5546
SELECT ALL - 18 * + COUNT ( * ) / + 42 * - CASE 65 WHEN + 7 + + - AVG ( DISTINCT - - ( - 91 ) ) THEN - ( + - 11 ) ELSE NULL END * COUNT ( * ) AS col2, 2
----
NULL
2

query I rowsort
SELECT ALL - ( 94 )
----
-94

query I rowsort
SELECT DISTINCT + 84
----
84

query I rowsort
SELECT - 98 * + 85 AS col1
----
-8330

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5550
SELECT + 4 * NULLIF ( + + 22, 82 DIV - - 22 + 33 + - 34 * + - 38 - + - 47 ) * + 67 * 4 * + - 82 AS col0, 46 DIV - - COUNT( * ) AS col0
----
-1933888
46

skipif mysql # not compatible
query II rowsort label-5550
SELECT + 4 * NULLIF ( + + 22, 82 / - - 22 + 33 + - 34 * + - 38 - + - 47 ) * + 67 * 4 * + - 82 AS col0, 46 / - - COUNT ( * ) AS col0
----
-1933888
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5551
SELECT + SUM( DISTINCT 18 ) AS col1, + NULLIF ( 49, - 63 ) + + 65 DIV - MAX( - 90 ) * - - 13 col1
----
18
49

skipif mysql # not compatible
query II rowsort label-5551
SELECT + SUM ( DISTINCT 18 ) AS col1, + NULLIF ( 49, - 63 ) + + 65 / - MAX ( - 90 ) * - - 13 col1
----
18
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5552
SELECT SUM( + 96 ) AS col1, + 20 * + ( + - MIN( CAST( + 83 AS SIGNED ) ) ) AS col2
----
96
-1660

skipif mysql # not compatible
query II rowsort label-5552
SELECT SUM ( + 96 ) AS col1, + 20 * + ( + - MIN ( CAST ( + 83 AS INTEGER ) ) ) AS col2
----
96
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5553
SELECT + + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL + 79 AS col1
----
79

query I rowsort
SELECT 87 AS col2
----
87

query I rowsort
SELECT + 38 * - - 5 * + + 50 - + - 41
----
9541

query I rowsort
SELECT + ( - 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5558
SELECT DISTINCT + CASE + COALESCE ( - ( 33 ), - - ( 80 ) * - ( + 0 ) - + 88 ) WHEN + 95 * - 44 * 77 + 61 + - 90 - - + AVG ( 74 ) + + 81 * - 89 THEN CAST( SUM( CAST( NULL AS SIGNED ) ) AS SIGNED ) END * COUNT( * ) - + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT + CASE + COALESCE ( - ( 33 ), - - ( 80 ) * - ( + 0 ) - + 88 ) WHEN + 95 * - 44 * 77 + 61 + - 90 - - + AVG ( 74 ) + + 81 * - 89 THEN CAST ( SUM ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) END * COUNT ( * ) - + 30 AS col2
----
NULL

query I rowsort
SELECT ALL + 18 AS col1
----
18

query I rowsort
SELECT DISTINCT + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT 39 * + - ( + 74 ) - COUNT( * )
----
-2887

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT 39 * + - ( + 74 ) - COUNT ( * )
----
-2887

query I rowsort
SELECT + 61
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5563
SELECT + + 43 * 76 AS col1, 22 * + MIN( + 58 ) * - 97 * 87
----
3268
-10768164

skipif mysql # not compatible
query II rowsort label-5563
SELECT + + 43 * 76 AS col1, 22 * + MIN ( + 58 ) * - 97 * 87
----
3268
-10768164

query I rowsort
SELECT - 94
----
-94

query I rowsort
SELECT DISTINCT + + 57
----
57

query I rowsort
SELECT ALL - 97 AS col0
----
-97

query I rowsort
SELECT - + 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + + MIN( - 30 ) - - 55 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5568
SELECT + + MIN ( - 30 ) - - 55 AS col1
----
25

query I rowsort
SELECT DISTINCT + 61
----
61

query I rowsort
SELECT DISTINCT - 38
----
-38

query I rowsort
SELECT ALL + - 80 + + 98 AS col1
----
18

query I rowsort
SELECT - 68 AS col2
----
-68

query I rowsort
SELECT - 83 - 67
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5574
SELECT 85, 32 + + + CAST( + 48 AS SIGNED ) * + 69 AS col1
----
85
3344

skipif mysql # not compatible
query II rowsort label-5574
SELECT 85, 32 + + + CAST ( + 48 AS INTEGER ) * + 69 AS col1
----
85
3344

query I rowsort
SELECT - 1 * + + ( 38 ) col1
----
-38

query I rowsort
SELECT ALL - 22 + + 99 * - 80 AS col0
----
-7942

query I rowsort
SELECT - ( - 84 ) AS col2
----
84

query I rowsort
SELECT - ( 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT - 47 + - - 27 * - - 50 - - + COALESCE ( COUNT( * ), + - 64 * - COUNT( * ) + + - CASE - + 37 WHEN - 15 - + 21 + - 4 * - + 70 + + 71 THEN 95 ELSE + + 76 END + - COUNT( DISTINCT 89 ) * 48 ) + + 70 * + COUNT( * ) AS col2
----
1374

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 47 + - - 27 * - - 50 - - + COALESCE ( COUNT ( * ), + - 64 * - COUNT ( * ) + + - CASE - + 37 WHEN - 15 - + 21 + - 4 * - + 70 + + 71 THEN 95 ELSE + + 76 END + - COUNT ( DISTINCT 89 ) * 48 ) + + 70 * + COUNT ( * ) AS col2
----
1374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5580
SELECT ALL COALESCE ( 55, 41, 86 DIV + ( - + 89 ) * - - ( COUNT( * ) ) * + 46 + + 64 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL COALESCE ( 55, 41, 86 / + ( - + 89 ) * - - ( COUNT ( * ) ) * + 46 + + 64 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT - 65 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT - 65 / - - 88
----
0

query I rowsort
SELECT DISTINCT ( - 41 )
----
-41

query I rowsort
SELECT ALL - NULLIF ( 93, + - 90 ) + + + 69 * - 89
----
-6234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT - 35 DIV COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-5584
SELECT - 35 / COUNT ( * )
----
-35

query II rowsort
SELECT - 8, 44 AS col0
----
-8
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5586
SELECT ALL + 72 AS col1, 5 + - NULLIF ( + 93, + COUNT( * ) ) AS col2
----
72
-88

skipif mysql # not compatible
query II rowsort label-5586
SELECT ALL + 72 AS col1, 5 + - NULLIF ( + 93, + COUNT ( * ) ) AS col2
----
72
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT + CASE 32 WHEN - 11 * - - COUNT( * ) + - ( + - 83 ) / + + 11 - + + CAST( + 39 AS SIGNED ) + - ( + 8 ) - - COALESCE ( + 86, COUNT( * ) ) THEN NULL WHEN + + 88 + + MIN( ALL 63 ) THEN - + ( - 34 ) END / 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + CASE 32 WHEN - 11 * - - COUNT ( * ) + - ( + - 83 ) / + + 11 - + + CAST ( + 39 AS INTEGER ) + - ( + 8 ) - - COALESCE ( + 86, COUNT ( * ) ) THEN NULL WHEN + + 88 + + MIN ( ALL 63 ) THEN - + ( - 34 ) END / 8
----
NULL

query I rowsort
SELECT ( - 19 ) AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT ALL + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 7 AS col2
----
NULL

query I rowsort
SELECT - 99 + 79 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT - COUNT( * ) * - 52 * - 48 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-5591
SELECT - COUNT ( * ) * - 52 * - 48 AS col0
----
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT 60 * - 65 + + MIN( DISTINCT - + CAST( + - 44 AS SIGNED ) )
----
-3856

skipif mysql # not compatible
query I rowsort label-5592
SELECT 60 * - 65 + + MIN ( DISTINCT - + CAST ( + - 44 AS INTEGER ) )
----
-3856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT + 81 - - - NULLIF ( 87, - 33 + - CAST( - - 52 AS SIGNED ) ) + + 81 + + + 65 + COALESCE ( - + 4, 85 + + CAST( - - 72 AS SIGNED ) ) + 47 / + COUNT( ALL - + 93 ) * + 29 * CASE - COUNT( * ) WHEN SUM( - 69 ) + MIN( DISTINCT 87 ) THEN ( 50 ) + 46 / 87 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT + 81 - - - NULLIF ( 87, - 33 + - CAST ( - - 52 AS INTEGER ) ) + + 81 + + + 65 + COALESCE ( - + 4, 85 + + CAST ( - - 72 AS INTEGER ) ) + 47 / + COUNT ( ALL - + 93 ) * + 29 * CASE - COUNT ( * ) WHEN SUM ( - 69 ) + MIN ( DISTINCT 87 ) THEN ( 50 ) + 46 / 87 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5594
SELECT - NULLIF ( ( - 86 ), - COUNT( * ) * + + 52 ) DIV - 9 + SUM( ALL 13 ) * + 75 + - 6 col1
----
960

skipif mysql # not compatible
query I rowsort label-5594
SELECT - NULLIF ( ( - 86 ), - COUNT ( * ) * + + 52 ) / - 9 + SUM ( ALL 13 ) * + 75 + - 6 col1
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL + CASE + COUNT( * ) WHEN + - 96 THEN + 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + CASE + COUNT ( * ) WHEN + - 96 THEN + 0 END AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + 98, - + 35 * + - 63 ) + - 88
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT - - COUNT( * ) * - 58 - 0
----
-58

skipif mysql # not compatible
query I rowsort label-5597
SELECT - - COUNT ( * ) * - 58 - 0
----
-58

query I rowsort
SELECT + + 58 + + - 70 AS col1
----
-12

query I rowsort
SELECT ALL + + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT CASE + CASE + 48 WHEN + COUNT( DISTINCT - 39 ) * + + CASE - + 23 WHEN + - 47 + + CASE - + 49 WHEN + - MAX( ALL - 29 ) THEN NULL WHEN - MAX( - - 32 ) + 1 THEN + 51 END THEN NULL WHEN - 65 THEN 89 END + + 97 THEN 42 * + 53 WHEN 45 THEN + COALESCE ( 39, 49 * - 97 ) / COUNT( * ) END WHEN AVG ( DISTINCT + ( - 64 ) ) / - 67 - + 21 THEN 58 * - 3 ELSE 38 END * + 30 + 7
----
1147

skipif mysql # not compatible
query I rowsort label-5600
SELECT CASE + CASE + 48 WHEN + COUNT ( DISTINCT - 39 ) * + + CASE - + 23 WHEN + - 47 + + CASE - + 49 WHEN + - MAX ( ALL - 29 ) THEN NULL WHEN - MAX ( - - 32 ) + 1 THEN + 51 END THEN NULL WHEN - 65 THEN 89 END + + 97 THEN 42 * + 53 WHEN 45 THEN + COALESCE ( 39, 49 * - 97 ) / COUNT ( * ) END WHEN AVG ( DISTINCT + ( - 64 ) ) / - 67 - + 21 THEN 58 * - 3 ELSE 38 END * + 30 + 7
----
1147

query I rowsort
SELECT - - 72 * - - 66 AS col2
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT + 72 * + 51 / - CASE + 70 WHEN 31 * + - 96 + + + 47 - + ( + COUNT( * ) ) + + - 49 / + 21 + 62 + - COUNT( * ) THEN - + 63 ELSE NULL END * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT + 72 * + 51 / - CASE + 70 WHEN 31 * + - 96 + + + 47 - + ( + COUNT ( * ) ) + + - 49 / + 21 + 62 + - COUNT ( * ) THEN - + 63 ELSE NULL END * 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5603
SELECT + + 8 + + AVG ( DISTINCT - - CASE 91 WHEN + 7 THEN + 24 * + 65 + + CAST( NULL AS SIGNED ) END ) - COUNT( * ) + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT + + 8 + + AVG ( DISTINCT - - CASE 91 WHEN + 7 THEN + 24 * + 65 + + CAST ( NULL AS INTEGER ) END ) - COUNT ( * ) + 66 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT ALL + + NULLIF ( - COALESCE ( + + 76, - 72, - 51 + + 63 + - 40 + - 60 - + - 35 + + 79 DIV - - ( + 88 ) * - + 55 * - + 66 * + - 67 ), + 90 )
----
-76

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL + + NULLIF ( - COALESCE ( + + 76, - 72, - 51 + + 63 + - 40 + - 60 - + - 35 + + 79 / - - ( + 88 ) * - + 55 * - + 66 * + - 67 ), + 90 )
----
-76

query II rowsort
SELECT + - ( - + 62 ) + + 30 AS col1, + 45 AS col2
----
92
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT + - 88 * - - COUNT( * ) + ( - 28 ) * - 32
----
808

skipif mysql # not compatible
query I rowsort label-5606
SELECT + - 88 * - - COUNT ( * ) + ( - 28 ) * - 32
----
808

query I rowsort
SELECT ALL 68 * + 1 * 77 AS col2
----
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT + ( 69 ) * - - COUNT( * ) * + - 15
----
-1035

skipif mysql # not compatible
query I rowsort label-5608
SELECT + ( 69 ) * - - COUNT ( * ) * + - 15
----
-1035

query I rowsort
SELECT ALL + - 12
----
-12

query I rowsort
SELECT + - 32 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - SUM( DISTINCT + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-5611
SELECT - SUM ( DISTINCT + 37 )
----
-37

query I rowsort
SELECT ALL + 51 * 10
----
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT + - 81 + - COUNT( * ) + + COUNT( * ) DIV + + 59 * 99
----
-82

skipif mysql # not compatible
query I rowsort label-5613
SELECT + - 81 + - COUNT ( * ) + + COUNT ( * ) / + + 59 * 99
----
-82

query I rowsort
SELECT DISTINCT + ( + + 44 ) * - - ( + - 20 ) + 69 AS col0
----
-811

query I rowsort
SELECT ALL 66 + ( - + 11 ) + - - 0 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT MAX( DISTINCT 57 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-5616
SELECT MAX ( DISTINCT 57 ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT + 48 * COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5617
SELECT + 48 * COUNT ( * ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT ALL ( - 66 ) DIV - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL ( - 66 ) / - 96 AS col2
----
0

query I rowsort
SELECT ALL 30 + - 93
----
-63

query I rowsort
SELECT DISTINCT 92
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5621
SELECT ALL + 36 + 46 col2, MIN( ALL - 25 ) DIV - 78 AS col2
----
82
0

skipif mysql # not compatible
query II rowsort label-5621
SELECT ALL + 36 + 46 col2, MIN ( ALL - 25 ) / - 78 AS col2
----
82
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5622
SELECT + 35 + 12 DIV - + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5622
SELECT + 35 + 12 / - + COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5623
SELECT - 94 * COUNT( * ), CAST( - COUNT( * ) AS SIGNED ) * - 71 + - 71 + - + COUNT( * ) col2
----
-94
-1

skipif mysql # not compatible
query II rowsort label-5623
SELECT - 94 * COUNT ( * ), CAST ( - COUNT ( * ) AS INTEGER ) * - 71 + - 71 + - + COUNT ( * ) col2
----
-94
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5624
SELECT - ( + COUNT ( * ) )
----
-1

query I rowsort
SELECT - 11 + + 1 AS col2
----
-10

query I rowsort
SELECT 52 + - 61 * + 44 + 3 * + 83 AS col0
----
-2383

query I rowsort
SELECT 91 AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT 68 + + 18 DIV 15
----
69

skipif mysql # not compatible
query I rowsort label-5628
SELECT 68 + + 18 / 15
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT DISTINCT ( + - ( + - CAST( NULL AS SIGNED ) ) ) * - + 45 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT ( + - ( + - CAST ( NULL AS INTEGER ) ) ) * - + 45 * - 83
----
NULL

query I rowsort
SELECT DISTINCT - 84 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 77 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT DISTINCT - + CAST( + 33 AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT - + CAST ( + 33 AS INTEGER ) AS col2
----
-33

query I rowsort
SELECT ALL - 11 col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT - - SUM( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - - SUM ( - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + COUNT( * ) * 3 + + 41
----
44

skipif mysql # not compatible
query I rowsort label-5636
SELECT + COUNT ( * ) * 3 + + 41
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT ALL + + 63 DIV - 16 col1
----
-3

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + + 63 / - 16 col1
----
-3

query I rowsort
SELECT + 95
----
95

query I rowsort
SELECT + - 47 AS col0
----
-47

query I rowsort
SELECT + - 91 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT 26 DIV - 42 - - + 51
----
51

skipif mysql # not compatible
query I rowsort label-5641
SELECT 26 / - 42 - - + 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT + MAX( ALL + + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-5642
SELECT + MAX ( ALL + + 12 )
----
12

query I rowsort
SELECT - 13 * + 3
----
-39

query I rowsort
SELECT + - 68 AS col2
----
-68

query I rowsort
SELECT - 46 AS col2
----
-46

query I rowsort
SELECT ALL + - ( - + 63 ) + + 22
----
85

query I rowsort
SELECT DISTINCT - 29
----
-29

query I rowsort
SELECT ALL + - 59 + - + 14 * + 10 AS col1
----
-199

query I rowsort
SELECT ALL - 91 + - 59 AS col0
----
-150

query I rowsort
SELECT DISTINCT - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5651
SELECT + ( 51 ) AS col1, + MAX( 19 )
----
51
19

skipif mysql # not compatible
query II rowsort label-5651
SELECT + ( 51 ) AS col1, + MAX ( 19 )
----
51
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT DISTINCT + MIN( - 85 ) + + + ( + NULLIF ( + + ( + 80 ), ( + 21 ) / - 29 - + + 81 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + MIN ( - 85 ) + + + ( + NULLIF ( + + ( + 80 ), ( + 21 ) / - 29 - + + 81 ) )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT ALL - COUNT( * ) + - NULLIF ( + COUNT( - 43 ), - AVG ( 17 ) ) DIV + + 82 * 73 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - COUNT ( * ) + - NULLIF ( + COUNT ( - 43 ), - AVG ( 17 ) ) / + + 82 * 73 AS col2
----
-1

query I rowsort
SELECT + - 26
----
-26

query I rowsort
SELECT 34 col0
----
34

query I rowsort
SELECT 85 * + ( 83 )
----
7055

query I rowsort
SELECT + - 11 * + 57 - - 96 + + 62 * + 69 - - 97 + 1
----
3845

query I rowsort
SELECT ALL + 60 AS col2
----
60

query I rowsort
SELECT - 77 col1
----
-77

query I rowsort
SELECT 1 + 66 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL + 4 - COUNT( DISTINCT 82 )
----
3

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + 4 - COUNT ( DISTINCT 82 )
----
3

query I rowsort
SELECT DISTINCT 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL COUNT( * ) - + 49
----
-48

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL COUNT ( * ) - + 49
----
-48

query I rowsort
SELECT - 41
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT ( + - 27 ) - 47 - - 37 DIV 63 + + 87 * 28 * 35
----
85186

skipif mysql # not compatible
query I rowsort label-5665
SELECT ( + - 27 ) - 47 - - 37 / 63 + + 87 * 28 * 35
----
85186

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT COUNT( * ) * 15 * - + 6
----
-90

skipif mysql # not compatible
query I rowsort label-5666
SELECT COUNT ( * ) * 15 * - + 6
----
-90

query II rowsort
SELECT - 52, - 55 AS col0
----
-52
-55

query I rowsort
SELECT 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT COUNT( * ) - + COUNT( * ) * 25 * - 55 AS col1
----
1376

skipif mysql # not compatible
query I rowsort label-5669
SELECT COUNT ( * ) - + COUNT ( * ) * 25 * - 55 AS col1
----
1376

query I rowsort
SELECT 62 * + - 89 AS col0
----
-5518

query I rowsort
SELECT ALL 8 AS col1
----
8

query II rowsort
SELECT 96, + ( - 28 ) AS col2
----
96
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ( - + CASE 77 WHEN + 24 THEN - + 52 WHEN + 39 + - COUNT( * ) THEN + 94 ELSE NULL END ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT ( - + CASE 77 WHEN + 24 THEN - + 52 WHEN + 39 + - COUNT ( * ) THEN + 94 ELSE NULL END ) * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT DISTINCT 5 DIV 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT 5 / 19 AS col0
----
0

query I rowsort
SELECT DISTINCT 67 col0
----
67

query I rowsort
SELECT ALL 19 AS col2
----
19

query I rowsort
SELECT 58 - 34
----
24

query II rowsort
SELECT ( - 44 ) * + 36, - 4 col0
----
-1584
-4

query I rowsort
SELECT ALL 73 AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5680
SELECT ( - ( COUNT( * ) ) ) - - 85 + + MIN( + + 20 ) DIV - COUNT( * ) - - + 59 + NULLIF ( 63, - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 71 * + 91 + - 67 - 29 * - ( + COUNT( * ) ) + - MAX( ALL - - 62 ) + - 46 DIV + 56 ) AS col0
----
186

skipif mysql # not compatible
query I rowsort label-5680
SELECT ( - ( COUNT ( * ) ) ) - - 85 + + MIN ( + + 20 ) / - COUNT ( * ) - - + 59 + NULLIF ( 63, - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 71 * + 91 + - 67 - 29 * - ( + COUNT ( * ) ) + - MAX ( ALL - - 62 ) + - 46 / + 56 ) AS col0
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-5681
SELECT - COUNT( * ) AS col2, 7 + - 93
----
-1
-86

skipif mysql # not compatible
query II rowsort label-5681
SELECT - COUNT ( * ) AS col2, 7 + - 93
----
-1
-86

query I rowsort
SELECT + - 13
----
-13

query I rowsort
SELECT ALL - - 1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5684
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5685
SELECT + COALESCE ( + - 88, + - 96 * - 50, - 7, - - 31 ) * - 91 / + 4 - - CAST( NULL AS SIGNED ) * + 57 * COUNT( * ) / - 36 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT + COALESCE ( + - 88, + - 96 * - 50, - 7, - - 31 ) * - 91 / + 4 - - CAST ( NULL AS INTEGER ) * + 57 * COUNT ( * ) / - 36 + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT - 44 * - COUNT( ALL - 38 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT - 44 * - COUNT ( ALL - 38 ) AS col1
----
44

query I rowsort
SELECT ALL - 86 + 16
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT + 67 - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5688
SELECT + 67 - COUNT ( * ) AS col0
----
66

query I rowsort
SELECT + 11 + - + ( - 3 ) - + 4 * - - 42
----
-154

query I rowsort
SELECT + + 69
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5691
SELECT DISTINCT 90 * - 20 DIV COUNT( * ) + 79 AS col0
----
-1721

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT 90 * - 20 / COUNT ( * ) + 79 AS col0
----
-1721

query I rowsort
SELECT ALL + 25 + - 36 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT DISTINCT - + CAST( 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT - + CAST ( 53 AS INTEGER )
----
-53

query I rowsort
SELECT DISTINCT - 3 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5695
SELECT DISTINCT - 92 + + CASE + NULLIF ( + + 5, 71 ) WHEN - AVG ( - 64 ) * 38 + + 10 * 64 THEN + CAST( NULL AS SIGNED ) WHEN CAST( ( + COALESCE ( + + 99, - 12 + + - NULLIF ( - 63, 65 ) ) ) AS DECIMAL ) THEN NULL ELSE 97 END
----
5

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT - 92 + + CASE + NULLIF ( + + 5, 71 ) WHEN - AVG ( - 64 ) * 38 + + 10 * 64 THEN + CAST ( NULL AS INTEGER ) WHEN CAST ( ( + COALESCE ( + + 99, - 12 + + - NULLIF ( - 63, 65 ) ) ) AS REAL ) THEN NULL ELSE 97 END
----
5

query I rowsort
SELECT + 75 col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT - SUM( ALL 93 ) * + + COALESCE ( 28, - + ( + + 48 ), - - CAST( 4 AS SIGNED ) * 92 ) + 5 * + 66 + 84 + - 66
----
-2256

skipif mysql # not compatible
query I rowsort label-5697
SELECT - SUM ( ALL 93 ) * + + COALESCE ( 28, - + ( + + 48 ), - - CAST ( 4 AS INTEGER ) * 92 ) + 5 * + 66 + 84 + - 66
----
-2256

query I rowsort
SELECT ALL + + 56 + + + 38
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-5699
SELECT 54 + - 69 DIV - 93 AS col2, - 73 AS col0
----
54
-73

skipif mysql # not compatible
query II rowsort label-5699
SELECT 54 + - 69 / - 93 AS col2, - 73 AS col0
----
54
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT COUNT( * ) * - 83 * + 45 + 74
----
-3661

skipif mysql # not compatible
query I rowsort label-5700
SELECT COUNT ( * ) * - 83 * + 45 + 74
----
-3661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT + ( + 84 ) * - 67 + AVG ( DISTINCT + + CASE - 34 WHEN + 82 + - + 92 THEN - CAST( 70 AS SIGNED ) + + 84 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5701
SELECT + ( + 84 ) * - 67 + AVG ( DISTINCT + + CASE - 34 WHEN + 82 + - + 92 THEN - CAST ( 70 AS INTEGER ) + + 84 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL - COALESCE ( 55, - 84, - - CASE 85 WHEN COUNT( * ) THEN NULL WHEN - 29 THEN 97 ELSE NULL END ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL - COALESCE ( 55, - 84, - - CASE 85 WHEN COUNT ( * ) THEN NULL WHEN - 29 THEN 97 ELSE NULL END ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5703
SELECT 31 + - COUNT( * ) + 96 * - ( CAST( 38 AS SIGNED ) ) + - 26 + - - 75 * + + CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT 31 + - COUNT ( * ) + 96 * - ( CAST ( 38 AS INTEGER ) ) + - 26 + - - 75 * + + CAST ( NULL AS REAL ) / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT DISTINCT 1 DIV + SUM( - COALESCE ( + ( - 94 ), + 95 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT 1 / + SUM ( - COALESCE ( + ( - 94 ), + 95 ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT + ( - 11 ) - - ( - - 14 ) * - + 34
----
-487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT 17 * + 45 * + CAST( - 93 AS SIGNED ) AS col1
----
-71145

skipif mysql # not compatible
query I rowsort label-5706
SELECT 17 * + 45 * + CAST ( - 93 AS INTEGER ) AS col1
----
-71145

query I rowsort
SELECT ALL - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL + 9 * - COUNT( * ) * - + 50 AS col1
----
450

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + 9 * - COUNT ( * ) * - + 50 AS col1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT 27 * - COALESCE ( - + MAX( DISTINCT - - 66 ), - 10, 68 * + 67 - + 54 - + - 55 + - CASE - + COUNT( * ) WHEN - MIN( ALL 43 ) THEN NULL WHEN - - 80 THEN 46 + + + 51 WHEN 17 * - + 73 THEN + 83 END + + 76 * + + 21 + - 62 * COUNT( * ), COUNT( 50 ) )
----
1782

skipif mysql # not compatible
query I rowsort label-5709
SELECT 27 * - COALESCE ( - + MAX ( DISTINCT - - 66 ), - 10, 68 * + 67 - + 54 - + - 55 + - CASE - + COUNT ( * ) WHEN - MIN ( ALL 43 ) THEN NULL WHEN - - 80 THEN 46 + + + 51 WHEN 17 * - + 73 THEN + 83 END + + 76 * + + 21 + - 62 * COUNT ( * ), COUNT ( 50 ) )
----
1782

query I rowsort
SELECT - 82 * + 97 AS col2
----
-7954

query I rowsort
SELECT 60 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT - 76 + + - ( - 75 ) + + 60 + 85 * - SUM( DISTINCT 51 ) * + 41
----
-177676

skipif mysql # not compatible
query I rowsort label-5712
SELECT - 76 + + - ( - 75 ) + + 60 + 85 * - SUM ( DISTINCT 51 ) * + 41
----
-177676

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT + 40 DIV + + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5713
SELECT + 40 / + + 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT DISTINCT SUM( ALL 52 ) AS col2, 23 * + COUNT( * ) * 49 * - 91 AS col1
----
52
-102557

skipif mysql # not compatible
query II rowsort label-5714
SELECT DISTINCT SUM ( ALL 52 ) AS col2, 23 * + COUNT ( * ) * 49 * - 91 AS col1
----
52
-102557

query I rowsort
SELECT DISTINCT COALESCE ( - 85, 11 ) AS col1
----
-85

query I rowsort
SELECT 54
----
54

query I rowsort
SELECT + 22 + + 72 col0
----
94

query I rowsort
SELECT + ( 66 ) + - + 33 AS col2
----
33

query I rowsort
SELECT DISTINCT 29 AS col1
----
29

query I rowsort
SELECT - + 84 * - - 54 AS col2
----
-4536

query I rowsort
SELECT - - ( - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT ALL + 15 + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + 15 + + COUNT ( * )
----
16

query I rowsort
SELECT + 7 AS col0
----
7

query I rowsort
SELECT + 52 + - 22 AS col1
----
30

query II rowsort
SELECT ALL 35, - 49 AS col2
----
35
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5726
SELECT ALL - 4 * MAX( - - CAST( NULL AS SIGNED ) ) + - + COUNT( * ) AS col2, - MAX( 42 )
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL - 4 * MAX ( - - CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) AS col2, - MAX ( 42 )
----
NULL
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5727
SELECT DISTINCT + - 74, - COUNT( - 33 ) * + - 3 * + 68 AS col2
----
-74
204

skipif mysql # not compatible
query II rowsort label-5727
SELECT DISTINCT + - 74, - COUNT ( - 33 ) * + - 3 * + 68 AS col2
----
-74
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT ALL + 54 * + 71 + + + 18 + + 48 DIV - 3 + 29 DIV MAX( 17 )
----
3837

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL + 54 * + 71 + + + 18 + + 48 / - 3 + 29 / MAX ( 17 )
----
3837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5729
SELECT DISTINCT CAST( MIN( + CAST( 15 AS SIGNED ) ) AS SIGNED ) * - 89 * - 37 - 22 + 55 + - + ( + 26 )
----
49402

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT CAST ( MIN ( + CAST ( 15 AS INTEGER ) ) AS INTEGER ) * - 89 * - 37 - 22 + 55 + - + ( + 26 )
----
49402

query I rowsort
SELECT ALL - + 29 * 34 + + 22
----
-964

query I rowsort
SELECT 45 AS col2
----
45

query I rowsort
SELECT + + 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + - MAX( + 81 ) * + - 94 col0
----
7614

skipif mysql # not compatible
query I rowsort label-5733
SELECT + - MAX ( + 81 ) * + - 94 col0
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT + + CASE + - 9 WHEN - - ( + COUNT( * ) ) + + + 18 THEN NULL ELSE 90 + + 95 END * 51 AS col2
----
9435

skipif mysql # not compatible
query I rowsort label-5734
SELECT + + CASE + - 9 WHEN - - ( + COUNT ( * ) ) + + + 18 THEN NULL ELSE 90 + + 95 END * 51 AS col2
----
9435

query I rowsort
SELECT + 81 AS col1
----
81

query I rowsort
SELECT + + COALESCE ( - 46, - 35 )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT + + 53 AS col1, ( + 83 ) * COUNT( * ) + 2
----
53
85

skipif mysql # not compatible
query II rowsort label-5737
SELECT + + 53 AS col1, ( + 83 ) * COUNT ( * ) + 2
----
53
85

query I rowsort
SELECT ALL + 39 * 32
----
1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT + + 33 * CAST( + ( + 15 ) AS SIGNED )
----
495

skipif mysql # not compatible
query I rowsort label-5739
SELECT + + 33 * CAST ( + ( + 15 ) AS INTEGER )
----
495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5740
SELECT - CAST( - CAST( - 3 AS SIGNED ) AS SIGNED ) * - + 33
----
99

skipif mysql # not compatible
query I rowsort label-5740
SELECT - CAST ( - CAST ( - 3 AS INTEGER ) AS INTEGER ) * - + 33
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5741
SELECT ALL - - 79 * - COUNT( * ) DIV COUNT( * ) * 72 * - - CAST( - 41 AS SIGNED ) - - + 71
----
233279

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL - - 79 * - COUNT ( * ) / COUNT ( * ) * 72 * - - CAST ( - 41 AS INTEGER ) - - + 71
----
233279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5742
SELECT DISTINCT + COALESCE ( - NULLIF ( 69, - + 62 ), + 81 * - COALESCE ( + COALESCE ( - COUNT( * ), 83 ), 37 * - 26 - - 34 + 83 ) + + 34, - NULLIF ( + COUNT( * ), + 34 + + 56 ) DIV - 44 + - + 83 * + 8 * - 78 )
----
-69

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + COALESCE ( - NULLIF ( 69, - + 62 ), + 81 * - COALESCE ( + COALESCE ( - COUNT ( * ), 83 ), 37 * - 26 - - 34 + 83 ) + + 34, - NULLIF ( + COUNT ( * ), + 34 + + 56 ) / - 44 + - + 83 * + 8 * - 78 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL ( + 72 ) * - 98 - + - MAX( + 13 ) + - 42
----
-7085

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL ( + 72 ) * - 98 - + - MAX ( + 13 ) + - 42
----
-7085

query II rowsort
SELECT ALL + ( + + 18 ), + ( - 51 ) AS col0
----
18
-51

query I rowsort
SELECT + 85
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5746
SELECT + 83 DIV SUM( DISTINCT 54 )
----
1

skipif mysql # not compatible
query I rowsort label-5746
SELECT + 83 / SUM ( DISTINCT 54 )
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-5747
SELECT - 88 * + 43 AS col2, 90 - 13 * + - CASE 66 WHEN + 66 THEN + 17 * 34 * - 74 END AS col1, - + 71 + - COUNT( * ) - - 41 + 7 + - 47
----
-3784
-555946
-71

skipif mysql # not compatible
query III rowsort label-5747
SELECT - 88 * + 43 AS col2, 90 - 13 * + - CASE 66 WHEN + 66 THEN + 17 * 34 * - 74 END AS col1, - + 71 + - COUNT ( * ) - - 41 + 7 + - 47
----
-3784
-555946
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT ALL - CAST( NULL AS SIGNED ) / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - CAST ( NULL AS INTEGER ) / 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT - 81 * - 11 * + - 2 * + - COUNT( * ) + - NULLIF ( - 49, MIN( + 74 ) ) AS col1
----
1831

skipif mysql # not compatible
query I rowsort label-5749
SELECT - 81 * - 11 * + - 2 * + - COUNT ( * ) + - NULLIF ( - 49, MIN ( + 74 ) ) AS col1
----
1831

query I rowsort
SELECT - ( - - 73 ) * + 21 - COALESCE ( - 83, + 12 )
----
-1450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5751
SELECT - CAST( 15 AS SIGNED ), + 84 AS col0
----
-15
84

skipif mysql # not compatible
query II rowsort label-5751
SELECT - CAST ( 15 AS INTEGER ), + 84 AS col0
----
-15
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5752
SELECT ALL COUNT( * ) DIV + 50 AS col2, 87
----
0
87

skipif mysql # not compatible
query II rowsort label-5752
SELECT ALL COUNT ( * ) / + 50 AS col2, 87
----
0
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT ALL MAX( + 19 ) DIV + + 20 * - 25
----
0

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL MAX ( + 19 ) / + + 20 * - 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT ALL - 42 * 20 DIV + 73 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - 42 * 20 / + 73 AS col1
----
-11

query I rowsort
SELECT - 29 * + 89 AS col0
----
-2581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5757
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 29 - + - 62 + - 5 / - COUNT( * ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 29 - + - 62 + - 5 / - COUNT ( * ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL + 69 + - + 67 * - - SUM( ALL + 81 )
----
-5358

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + 69 + - + 67 * - - SUM ( ALL + 81 )
----
-5358

query I rowsort
SELECT DISTINCT - 15 + - 85
----
-100

query I rowsort
SELECT ALL - 42 * - 97
----
4074

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT - 93 * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5761
SELECT - 93 * COUNT ( * )
----
-93

query I rowsort
SELECT - 70 AS col2
----
-70

query I rowsort
SELECT 45 col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL + 70 + + ( + COUNT( + 84 ) )
----
71

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL + 70 + + ( + COUNT ( + 84 ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - 66 * ( 76 ) + COUNT( * ) col1
----
-5015

skipif mysql # not compatible
query I rowsort label-5765
SELECT - 66 * ( 76 ) + COUNT ( * ) col1
----
-5015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT ALL CAST( - 27 AS SIGNED ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL CAST ( - 27 AS INTEGER ) AS col2
----
-27

query I rowsort
SELECT DISTINCT - 4
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5768
SELECT ALL + 58 + - - COUNT( * ), 48 AS col0
----
59
48

skipif mysql # not compatible
query II rowsort label-5768
SELECT ALL + 58 + - - COUNT ( * ), 48 AS col0
----
59
48

query I rowsort
SELECT - 64
----
-64

query I rowsort
SELECT ALL 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL - + COUNT( * ) * + 87
----
-87

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL - + COUNT ( * ) * + 87
----
-87

query I rowsort
SELECT - + 28 + + + 80 + + 17 * - ( 5 ) + - + 23 + - 63 * 63 * + 29
----
-115157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 69 + - - 2 - - 49 AS col1
----
-18

query I rowsort
SELECT + + 48 AS col0
----
48

query I rowsort
SELECT 22 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5777
SELECT + + 73 * - 44 * COUNT( * ) * + COUNT( * ) * + + MIN( DISTINCT ( - + 19 ) ) AS col1, + 19 + - + CASE - 68 WHEN + 55 THEN + NULLIF ( 7, + 13 * 80 ) * + 81 * 90 - - 37 END - + - AVG ( - 3 ) + CAST( - 0 AS SIGNED ) * 71 * + COUNT( * ) col0
----
61028
NULL

skipif mysql # not compatible
query II rowsort label-5777
SELECT + + 73 * - 44 * COUNT ( * ) * + COUNT ( * ) * + + MIN ( DISTINCT ( - + 19 ) ) AS col1, + 19 + - + CASE - 68 WHEN + 55 THEN + NULLIF ( 7, + 13 * 80 ) * + 81 * 90 - - 37 END - + - AVG ( - 3 ) + CAST ( - 0 AS INTEGER ) * 71 * + COUNT ( * ) col0
----
61028
NULL

query I rowsort
SELECT ALL + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT + + ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT + + ( + COUNT ( * ) ) col1
----
1

query I rowsort
SELECT + - 71 * + 92
----
-6532

onlyif mysql # aggregate syntax: 
query II rowsort label-5781
SELECT DISTINCT + - MIN( + - 51 ), - 31 AS col0
----
51
-31

skipif mysql # not compatible
query II rowsort label-5781
SELECT DISTINCT + - MIN ( + - 51 ), - 31 AS col0
----
51
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL + CASE - - 35 WHEN - 91 THEN - 84 WHEN + SUM( - + 13 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL + CASE - - 35 WHEN - 91 THEN - 84 WHEN + SUM ( - + 13 ) THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5783
SELECT ALL + COUNT( * ) * CAST( 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL + COUNT ( * ) * CAST ( 40 AS INTEGER ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-5784
SELECT ALL - 72, 25 DIV + 76 AS col2
----
-72
0

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL - 72, 25 / + 76 AS col2
----
-72
0

query I rowsort
SELECT 43 * - ( - + ( 26 ) ) AS col0
----
1118

query I rowsort
SELECT DISTINCT - 78
----
-78

query I rowsort
SELECT 55 AS col2
----
55

query II rowsort
SELECT + 83 AS col0, 26 * 23 + + 98
----
83
696

query I rowsort
SELECT ALL - 88 AS col0
----
-88

query I rowsort
SELECT 33 + - 17
----
16

query I rowsort
SELECT DISTINCT 88 * 77 * + 39 AS col2
----
264264

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT DISTINCT COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL COUNT( * ) * 65
----
65

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL COUNT ( * ) * 65
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5794
SELECT + 49 AS col1, - COUNT( * )
----
49
-1

skipif mysql # not compatible
query II rowsort label-5794
SELECT + 49 AS col1, - COUNT ( * )
----
49
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT ALL + 1 + + 42 DIV - - 98 * ( + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + 1 + + 42 / - - 98 * ( + 12 )
----
1

query I rowsort
SELECT ALL 59
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT 77 DIV - 13 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5797
SELECT 77 / - 13 AS col2
----
-5

query I rowsort
SELECT - 15 col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5799
SELECT 58 + - CAST( + - COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT 58 + - CAST ( + - COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ( - MIN( ALL + 73 ) ) * - + COALESCE ( + + 90, + COUNT( * ) * - 23 ) col0
----
6570

skipif mysql # not compatible
query I rowsort label-5800
SELECT ( - MIN ( ALL + 73 ) ) * - + COALESCE ( + + 90, + COUNT ( * ) * - 23 ) col0
----
6570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT ( + MAX( COALESCE ( + - 13, - + 35 + + 43 ) ) ) + - NULLIF ( - 80, + COUNT( * ) * CASE - 37 WHEN + 97 THEN NULL WHEN + COUNT( * ) * - 43 THEN NULL ELSE + - 38 * - 51 END ) DIV - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5801
SELECT ( + MAX ( COALESCE ( + - 13, - + 35 + + 43 ) ) ) + - NULLIF ( - 80, + COUNT ( * ) * CASE - 37 WHEN + 97 THEN NULL WHEN + COUNT ( * ) * - 43 THEN NULL ELSE + - 38 * - 51 END ) / - COUNT ( * )
----
-93

query I rowsort
SELECT 3 - - + 37
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5803
SELECT DISTINCT + 46 DIV + 97 + - CAST( 42 AS SIGNED ) - + - COUNT( - 31 ) + CAST( 94 AS SIGNED ) + 40 * - SUM( + 93 ) + + COUNT( * ) col1
----
-3666

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT + 46 / + 97 + - CAST ( 42 AS INTEGER ) - + - COUNT ( - 31 ) + CAST ( 94 AS INTEGER ) + 40 * - SUM ( + 93 ) + + COUNT ( * ) col1
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL + MAX( DISTINCT + 59 ) + - ( + ( - + 35 ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL + MAX ( DISTINCT + 59 ) + - ( + ( - + 35 ) ) AS col2
----
94

query I rowsort
SELECT ALL 38 + + COALESCE ( + 89, - - 22 * 15 ) AS col0
----
127

query I rowsort
SELECT DISTINCT - 65 * - 13
----
845

query I rowsort
SELECT ALL + 7 + + 96 AS col2
----
103

query I rowsort
SELECT COALESCE ( 78, - ( 17 ), + 24 * + 1 * + 83, ( 64 ) - + - 71 * + 5 ) + 6
----
84

query I rowsort
SELECT 67 + + 16
----
83

query I rowsort
SELECT - 14 + 96 AS col1
----
82

query I rowsort
SELECT ALL - 57 AS col1
----
-57

query I rowsort
SELECT - - 1 AS col0
----
1

query I rowsort
SELECT + CASE - - 23 WHEN + 21 THEN NULL ELSE + 13 * 89 + - 44 + + - 55 / + 53 * + 6 * - 85 * 80 + + 41 + + 75 * CASE + - 43 WHEN + 63 THEN NULL WHEN - 46 THEN + + 92 WHEN + 64 THEN NULL ELSE NULL END - - 68 END
----
NULL

query I rowsort
SELECT 90 + 48 AS col1
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-5815
SELECT COUNT( * ) col2, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-5815
SELECT COUNT ( * ) col2, 93
----
1
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT ALL - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 67 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT - + COUNT( DISTINCT 4 ) - + 53
----
-54

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT - + COUNT ( DISTINCT 4 ) - + 53
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-5819
SELECT + 77 AS col2, - 14 DIV + ( - - NULLIF ( ( + 80 ), + 59 ) ) + 17 AS col1
----
77
17

skipif mysql # not compatible
query II rowsort label-5819
SELECT + 77 AS col2, - 14 / + ( - - NULLIF ( ( + 80 ), + 59 ) ) + 17 AS col1
----
77
17

query I rowsort
SELECT ALL - 60 AS col1
----
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-5821
SELECT ALL + ( + 48 ) DIV + 45 col1, + 18 * - - 67 AS col0
----
1
1206

skipif mysql # not compatible
query II rowsort label-5821
SELECT ALL + ( + 48 ) / + 45 col1, + 18 * - - 67 AS col0
----
1
1206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT CAST( - - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-5822
SELECT CAST ( - - 83 AS INTEGER )
----
83

query I rowsort
SELECT + + 65 col1
----
65

query I rowsort
SELECT ALL - 81 AS col0
----
-81

query I rowsort
SELECT + 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT 36 - + COUNT( * ) col2
----
35

skipif mysql # not compatible
query I rowsort label-5826
SELECT 36 - + COUNT ( * ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT 42 * - + COALESCE ( - NULLIF ( + - 22, 17 ), - CASE + - 50 WHEN - - 3 THEN NULL ELSE 13 END - COALESCE ( + COUNT( + - 2 ), - + 84, + 43 * 4 * 23 + - 82 * - 44 * - ( - COALESCE ( + ( - - 15 ), 83 - + NULLIF ( ( + 34 ), + 5 + + SUM( 89 ) ), + 22 + 61, + MIN( DISTINCT - 23 ) ) ) + + 89 * 9 ), 99 ) AS col0
----
-924

skipif mysql # not compatible
query I rowsort label-5827
SELECT 42 * - + COALESCE ( - NULLIF ( + - 22, 17 ), - CASE + - 50 WHEN - - 3 THEN NULL ELSE 13 END - COALESCE ( + COUNT ( + - 2 ), - + 84, + 43 * 4 * 23 + - 82 * - 44 * - ( - COALESCE ( + ( - - 15 ), 83 - + NULLIF ( ( + 34 ), + 5 + + SUM ( 89 ) ), + 22 + 61, + MIN ( DISTINCT - 23 ) ) ) + + 89 * 9 ), 99 ) AS col0
----
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT 35 + 15 - + 33 * - + 37 + 47 * + 21 * - - 13 * CAST( + 83 AS SIGNED ) col1
----
1066244

skipif mysql # not compatible
query I rowsort label-5828
SELECT 35 + 15 - + 33 * - + 37 + 47 * + 21 * - - 13 * CAST ( + 83 AS INTEGER ) col1
----
1066244

query I rowsort
SELECT 71 - - - 40 + - 9 - - - 15
----
7

query I rowsort
SELECT DISTINCT - 9
----
-9

query I rowsort
SELECT DISTINCT 5 + - 34
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT ALL 64 + - + 1 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL 64 + - + 1 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 58 col0
----
58

query I rowsort
SELECT 84 col1
----
84

query I rowsort
SELECT - 15 AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT DISTINCT - 70 + + 75 DIV 17 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT - 70 + + 75 / 17 AS col1
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5837
SELECT ALL 45 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL 45 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT + COUNT( 27 ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-5839
SELECT + COUNT ( 27 ) + + 2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT DISTINCT NULLIF ( - 24, + MAX( DISTINCT 87 ) * + COALESCE ( + CASE + - 2 WHEN ( + 23 ) / - 92 THEN NULL WHEN - - CASE + + 96 WHEN - 26 THEN + COUNT( * ) / + 66 WHEN + COALESCE ( + - COUNT( + - 98 ), + 66 ) THEN 93 * 20 END / + COUNT( * ) THEN + ( - + 18 ) * 81 + + 74 END, - 52, 10 ) + + 63 )
----
-24

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT NULLIF ( - 24, + MAX ( DISTINCT 87 ) * + COALESCE ( + CASE + - 2 WHEN ( + 23 ) / - 92 THEN NULL WHEN - - CASE + + 96 WHEN - 26 THEN + COUNT ( * ) / + 66 WHEN + COALESCE ( + - COUNT ( + - 98 ), + 66 ) THEN 93 * 20 END / + COUNT ( * ) THEN + ( - + 18 ) * 81 + + 74 END, - 52, 10 ) + + 63 )
----
-24

query I rowsort
SELECT ALL - 26 col0
----
-26

query I rowsort
SELECT 85 * + 30
----
2550

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT + COALESCE ( + 59, - AVG ( - 39 ) ) DIV - 51 - - + 43 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5843
SELECT + COALESCE ( + 59, - AVG ( - 39 ) ) / - 51 - - + 43 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5844
SELECT DISTINCT - 84 DIV - + 98 + 27 + 89
----
116

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT - 84 / - + 98 + 27 + 89
----
116

query I rowsort
SELECT 62 + + 7 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL - + 35 * + + MIN( + ( 16 ) ) - - + 43 AS col1
----
-517

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL - + 35 * + + MIN ( + ( 16 ) ) - - + 43 AS col1
----
-517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5847
SELECT + 78 * - 46 * NULLIF ( CAST( NULL AS SIGNED ), COALESCE ( 22, - 26, ( - + COUNT( * ) ) + - 57, - 89 ) * - ( - 23 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT + 78 * - 46 * NULLIF ( CAST ( NULL AS INTEGER ), COALESCE ( 22, - 26, ( - + COUNT ( * ) ) + - 57, - 89 ) * - ( - 23 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT ALL + 40 DIV 31 + + 87 * + + 7 * - 11 * + + 93
----
-623006

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + 40 / 31 + + 87 * + + 7 * - 11 * + + 93
----
-623006

query I rowsort
SELECT DISTINCT + 67 AS col1
----
67

query I rowsort
SELECT DISTINCT 56 * - 86 - - 41 + ( + 12 ) * - - 7 AS col1
----
-4691

query I rowsort
SELECT ALL + - 22 * 54 * - 40 AS col2
----
47520

query I rowsort
SELECT - ( + + 4 ) - 3 AS col0
----
-7

query I rowsort
SELECT DISTINCT - COALESCE ( + 67, 86, 90 + + COALESCE ( - 22, + + 48 ) * + 32 * - + ( 49 ) * - 83 + 30 * 32 + 10 ) * 3 + - - 82 AS col1
----
-119

query I rowsort
SELECT + 58 * + 64 + - 95
----
3617

query I rowsort
SELECT + + 77
----
77

query I rowsort
SELECT + + 8
----
8

query I rowsort
SELECT ALL + 97 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT DISTINCT + 85 * + 20 * - - 97 * COUNT( * ) + - 79
----
164821

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT + 85 * + 20 * - - 97 * COUNT ( * ) + - 79
----
164821

query I rowsort
SELECT ALL 62 * - 80 * + 81 + 81
----
-401679

query I rowsort
SELECT - 12 + - 27
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5861
SELECT ALL - CAST( 52 AS SIGNED ) * + - 14 + 40 + 90 AS col1, - COUNT( ALL 62 ) AS col1
----
858
-1

skipif mysql # not compatible
query II rowsort label-5861
SELECT ALL - CAST ( 52 AS INTEGER ) * + - 14 + 40 + 90 AS col1, - COUNT ( ALL 62 ) AS col1
----
858
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT + CASE - - 79 WHEN + - ( + 99 ) - - 22 + + + 89 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT + CASE - - 79 WHEN + - ( + 99 ) - - 22 + + + 89 THEN + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL 6 * - 13 * - 94 + + SUM( DISTINCT - - 28 ) + - 6
----
7354

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL 6 * - 13 * - 94 + + SUM ( DISTINCT - - 28 ) + - 6
----
7354

query I rowsort
SELECT NULLIF ( + - 73, + 58 ) AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT + 30 DIV COUNT( * ) + - + NULLIF ( 9, + 90 )
----
21

skipif mysql # not compatible
query I rowsort label-5866
SELECT + 30 / COUNT ( * ) + - + NULLIF ( 9, + 90 )
----
21

query I rowsort
SELECT - 70 * + ( 17 ) * + 14
----
-16660

query I rowsort
SELECT DISTINCT + 29 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - SUM( ALL ( + + 43 ) ) + + + 6 * 96 AS col1
----
533

skipif mysql # not compatible
query I rowsort label-5869
SELECT - SUM ( ALL ( + + 43 ) ) + + + 6 * 96 AS col1
----
533

query II rowsort
SELECT + 13 AS col0, ( 13 ) AS col2
----
13
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5871
SELECT DISTINCT 51 DIV - 96 * - MIN( - + 63 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT 51 / - 96 * - MIN ( - + 63 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 19 AS col0
----
19

query I rowsort
SELECT ALL + ( - + 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL + 71 * + COALESCE ( - 29, + 74 ) * 61 - ( + COUNT( * ) ) + - COUNT( * )
----
-125601

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + 71 * + COALESCE ( - 29, + 74 ) * 61 - ( + COUNT ( * ) ) + - COUNT ( * )
----
-125601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5875
SELECT + 92 DIV - + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-5875
SELECT + 92 / - + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5876
SELECT ALL - COUNT( * ) DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL - COUNT ( * ) / - 45
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT + - 85 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT + - 85 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT + 73 * + 8 - + 26 + 45 * + 59 - + CASE AVG ( + 98 ) WHEN + 17 * - 0 + + 74 THEN - 50 ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT + 73 * + 8 - + 26 + 45 * + 59 - + CASE AVG ( + 98 ) WHEN + 17 * - 0 + + 74 THEN - 50 ELSE NULL END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT + + COUNT( * ) + + 26 - ( + 82 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5879
SELECT + + COUNT ( * ) + + 26 - ( + 82 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL + CASE - - 87 WHEN + 73 THEN 18 + + 39 * - - MIN( ALL 52 ) / - + 57 * 68 / 47 WHEN - - 15 + + 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + CASE - - 87 WHEN + 73 THEN 18 + + 39 * - - MIN ( ALL 52 ) / - + 57 * 68 / 47 WHEN - - 15 + + 50 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 56 - - 75 * + 86
----
6506

query I rowsort
SELECT - - 97 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT - - COUNT( * ) + 8 * - 98 * 18
----
-14111

skipif mysql # not compatible
query I rowsort label-5883
SELECT - - COUNT ( * ) + 8 * - 98 * 18
----
-14111

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT + + 61 * + 47 * + COUNT( * ), + 97 AS col2
----
2867
97

skipif mysql # not compatible
query II rowsort label-5884
SELECT + + 61 * + 47 * + COUNT ( * ), + 97 AS col2
----
2867
97

query I rowsort
SELECT ALL + ( + 46 ) * - 86 AS col1
----
-3956

query I rowsort
SELECT ALL + 74
----
74

query I rowsort
SELECT ALL 17 AS col0
----
17

query II rowsort
SELECT - 39 AS col2, + 98 * + + 61
----
-39
5978

query I rowsort
SELECT DISTINCT + 11 * + 1 AS col2
----
11

query I rowsort
SELECT DISTINCT 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5891
SELECT ALL 45 * + + MIN( + 55 ) AS col0, + 22 * 83 + - + 89 + 73 AS col2
----
2475
1810

skipif mysql # not compatible
query II rowsort label-5891
SELECT ALL 45 * + + MIN ( + 55 ) AS col0, + 22 * 83 + - + 89 + 73 AS col2
----
2475
1810

query I rowsort
SELECT ALL + 12 AS col0
----
12

query II rowsort
SELECT DISTINCT 51, - 96 AS col2
----
51
-96

query I rowsort
SELECT DISTINCT - 20 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-5895
SELECT - 34 + - - 7 * + 19 AS col0, 90 DIV - 42
----
99
-2

skipif mysql # not compatible
query II rowsort label-5895
SELECT - 34 + - - 7 * + 19 AS col0, 90 / - 42
----
99
-2

query I rowsort
SELECT DISTINCT - 66
----
-66

query I rowsort
SELECT ALL - 79 + - 87 + 32
----
-134

query II rowsort
SELECT DISTINCT 75 AS col2, 49 * 43
----
75
2107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5899
SELECT + COUNT( * ) * - 30 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT + COUNT ( * ) * - 30 / + 70 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT + CAST( 32 AS SIGNED ) col1
----
32

skipif mysql # not compatible
query I rowsort label-5900
SELECT + CAST ( 32 AS INTEGER ) col1
----
32

query I rowsort
SELECT DISTINCT + 87
----
87

query I rowsort
SELECT - 6 * 13
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5903
SELECT + COUNT( 26 ) * COUNT( * ) * - + COUNT( * ) DIV + CASE + COALESCE ( COALESCE ( + + 65, - 55 * - COUNT( * ) + - ( + + ( + CASE - - 31 WHEN - + 94 THEN NULL WHEN + 13 THEN - 64 END ) ) * - - 67 + + - ( - 37 ) ), COUNT( * ), 93 * 10 * + SUM( ALL + + 69 ) + - - 70 ) WHEN + 64 - 77 THEN NULL WHEN 14 THEN NULL WHEN + 39 + CAST( NULL AS SIGNED ) * + COUNT( * ) THEN NULL ELSE + 72 END
----
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT + COUNT ( 26 ) * COUNT ( * ) * - + COUNT ( * ) / + CASE + COALESCE ( COALESCE ( + + 65, - 55 * - COUNT ( * ) + - ( + + ( + CASE - - 31 WHEN - + 94 THEN NULL WHEN + 13 THEN - 64 END ) ) * - - 67 + + - ( - 37 ) ), COUNT ( * ), 93 * 10 * + SUM ( ALL + + 69 ) + - - 70 ) WHEN + 64 - 77 THEN NULL WHEN 14 THEN NULL WHEN + 39 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN NULL ELSE + 72 END
----
0

query I rowsort
SELECT - ( 1 ) * + ( - - 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5905
SELECT CAST( + - COUNT( * ) AS SIGNED ), + 72 AS col1
----
-1
72

skipif mysql # not compatible
query II rowsort label-5905
SELECT CAST ( + - COUNT ( * ) AS INTEGER ), + 72 AS col1
----
-1
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5906
SELECT - CAST( NULL AS SIGNED ) + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT - CAST ( NULL AS INTEGER ) + 84
----
NULL

query II rowsort
SELECT + 43 col1, ( - 9 ) AS col0
----
43
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5908
SELECT ALL COUNT( ALL + 1 ) DIV - + COUNT( * ) + + 12 col0
----
11

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL COUNT ( ALL + 1 ) / - + COUNT ( * ) + + 12 col0
----
11

query I rowsort
SELECT ALL + 22 AS col0
----
22

query II rowsort
SELECT + ( + - 64 ) - - + 7 * + 90, + 80 AS col1
----
566
80

query I rowsort
SELECT ALL + 32 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT DISTINCT 70 * + 45 * 28 DIV - 6
----
-14700

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT 70 * + 45 * 28 / - 6
----
-14700

onlyif mysql # aggregate syntax: 
query II rowsort label-5913
SELECT + 8 AS col0, 35 * 29 * - + CASE - - COUNT( * ) WHEN ( + 27 ) * + 63 THEN NULL WHEN - - MAX( DISTINCT 61 ) THEN NULL ELSE COUNT( * ) + 67 * - 47 + + 26 END * - 88
----
8
-278857040

skipif mysql # not compatible
query II rowsort label-5913
SELECT + 8 AS col0, 35 * 29 * - + CASE - - COUNT ( * ) WHEN ( + 27 ) * + 63 THEN NULL WHEN - - MAX ( DISTINCT 61 ) THEN NULL ELSE COUNT ( * ) + 67 * - 47 + + 26 END * - 88
----
8
-278857040

query I rowsort
SELECT - 16 * 64 AS col0
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 66 AS col1
----
66

query I rowsort
SELECT ( + 66 )
----
66

query II rowsort
SELECT DISTINCT + NULLIF ( 75, + AVG ( - 18 ) ) AS col2, - 69 AS col1
----
75
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL - SUM( ALL - 15 ) * - + MAX( - + 30 )
----
450

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL - SUM ( ALL - 15 ) * - + MAX ( - + 30 )
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-5920
SELECT - 80 * 51 DIV + 23
----
-177

skipif mysql # not compatible
query I rowsort label-5920
SELECT - 80 * 51 / + 23
----
-177

query I rowsort
SELECT - 86 * + 73 AS col0
----
-6278

query I rowsort
SELECT - - 81 - + 4 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ALL + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + + NULLIF ( 10, + + MAX( DISTINCT + 12 ) - + + 9 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-5924
SELECT + + NULLIF ( 10, + + MAX ( DISTINCT + 12 ) - + + 9 ) col1
----
10

query I rowsort
SELECT 94 col1
----
94

onlyif mysql # aggregate syntax: 
query III rowsort label-5926
SELECT ALL + - 50 AS col0, 41 * MAX( 63 ) AS col1, - CASE - 81 WHEN - 53 * - 44 THEN NULL WHEN - 6 THEN - - 56 END
----
-50
2583
NULL

skipif mysql # not compatible
query III rowsort label-5926
SELECT ALL + - 50 AS col0, 41 * MAX ( 63 ) AS col1, - CASE - 81 WHEN - 53 * - 44 THEN NULL WHEN - 6 THEN - - 56 END
----
-50
2583
NULL

query I rowsort
SELECT + - 53
----
-53

query I rowsort
SELECT ALL 33 col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5929
SELECT - COALESCE ( - - COALESCE ( + 14, - 23 ), + 20 DIV - 57, + 57, - 3 * + 24 + - - 61 ) * + + COUNT( * ) * - 3 * - 61 AS col2
----
-2562

skipif mysql # not compatible
query I rowsort label-5929
SELECT - COALESCE ( - - COALESCE ( + 14, - 23 ), + 20 / - 57, + 57, - 3 * + 24 + - - 61 ) * + + COUNT ( * ) * - 3 * - 61 AS col2
----
-2562

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT - SUM( ALL 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT - SUM ( ALL 99 ) AS col0
----
-99

query I rowsort
SELECT DISTINCT - + 1 * + 54 * 66 AS col0
----
-3564

query I rowsort
SELECT DISTINCT + + 88 + - - 81
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5933
SELECT - + COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT - + 68 AS col0, 40 col1
----
-68
40

query I rowsort
SELECT ALL - 32 + + 43
----
11

query I rowsort
SELECT 1 - - 57 AS col2
----
58

query I rowsort
SELECT - COALESCE ( + 81, 57 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT - 49 + + 98 * - - COALESCE ( 28, - MAX( ALL + 8 ) ) AS col0
----
2695

skipif mysql # not compatible
query I rowsort label-5938
SELECT - 49 + + 98 * - - COALESCE ( 28, - MAX ( ALL + 8 ) ) AS col0
----
2695

query I rowsort
SELECT + 63 AS col1
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-5940
SELECT ALL 91 AS col2, 61 * + 29 - + 0 + 83 * - ( 82 ) * + 39 + - - 54 DIV + 56
----
91
-263665

skipif mysql # not compatible
query II rowsort label-5940
SELECT ALL 91 AS col2, 61 * + 29 - + 0 + 83 * - ( 82 ) * + 39 + - - 54 / + 56
----
91
-263665

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT 94 + + - 84 + + - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5941
SELECT 94 + + - 84 + + - COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL + 97 + - 76 AS col2
----
21

query I rowsort
SELECT ALL 2 + 33 * 64
----
2114

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT DISTINCT + MIN( ALL 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT + MIN ( ALL 26 )
----
26

query I rowsort
SELECT 52 * - 49 * + CASE + + 49 WHEN 41 THEN NULL ELSE + + 83 END AS col1
----
-211484

query I rowsort
SELECT ALL 76 col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT 53 + + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT 53 + + COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT 36 + 39 * + 56 - COALESCE ( NULLIF ( 86, - 44 ), + 41 * + - ( + + 95 ) * + - COUNT( * ) * + ( - 11 ) * COUNT( * ) ) - 8
----
2126

skipif mysql # not compatible
query I rowsort label-5948
SELECT 36 + 39 * + 56 - COALESCE ( NULLIF ( 86, - 44 ), + 41 * + - ( + + 95 ) * + - COUNT ( * ) * + ( - 11 ) * COUNT ( * ) ) - 8
----
2126

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT 71 + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5949
SELECT 71 + + COUNT ( * )
----
72

query I rowsort
SELECT 42 * - + 24 AS col1
----
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5951
SELECT CAST( - SUM( 56 ) AS SIGNED ) + - - 3
----
-53

skipif mysql # not compatible
query I rowsort label-5951
SELECT CAST ( - SUM ( 56 ) AS INTEGER ) + - - 3
----
-53

query I rowsort
SELECT + 90 AS col0
----
90

query I rowsort
SELECT DISTINCT - 22 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT COUNT( * ) * + 50 + + + 58 + 17 * - + 34 + - COUNT( * )
----
-471

skipif mysql # not compatible
query I rowsort label-5954
SELECT COUNT ( * ) * + 50 + + + 58 + 17 * - + 34 + - COUNT ( * )
----
-471

query I rowsort
SELECT 96 * + 80 * + ( + 85 )
----
652800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5956
SELECT + 22 DIV + 99 + - + NULLIF ( - 35, 60 DIV + - 34 * + CAST( NULL AS SIGNED ) - + + 32 + + COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-5956
SELECT + 22 / + 99 + - + NULLIF ( - 35, 60 / + - 34 * + CAST ( NULL AS INTEGER ) - + + 32 + + COUNT ( * ) )
----
35

query II rowsort
SELECT ALL 29 - - 99 col2, - 30 + + 37 AS col2
----
128
7

query I rowsort
SELECT ALL - 41
----
-41

query I rowsort
SELECT + 1 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT COUNT( ALL - 58 ) + + 12 col1
----
13

skipif mysql # not compatible
query I rowsort label-5960
SELECT COUNT ( ALL - 58 ) + + 12 col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT ALL + 20 - + COUNT( * ) col0, + 56
----
19
56

skipif mysql # not compatible
query II rowsort label-5961
SELECT ALL + 20 - + COUNT ( * ) col0, + 56
----
19
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT ALL 22 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL 22 / 75
----
0

query I rowsort
SELECT ALL - 25 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT 40 * - 55 * ( COUNT( * ) )
----
-2200

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT 40 * - 55 * ( COUNT ( * ) )
----
-2200

query I rowsort
SELECT + 11 AS col2
----
11

query II rowsort
SELECT ALL 75 * - 16, 27 * 26 AS col2
----
-1200
702

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL - - NULLIF ( - 9, + 48 * - MIN( ALL 5 ) * - 56 + ( 63 ) + + - 73 )
----
-9

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - - NULLIF ( - 9, + 48 * - MIN ( ALL 5 ) * - 56 + ( 63 ) + + - 73 )
----
-9

query I rowsort
SELECT 27 col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5969
SELECT 67 + + NULLIF ( + + 4, - 94 * + CAST( ( + 88 ) AS SIGNED ) * COALESCE ( + 41, 6 ) - + + COALESCE ( + 87, 94 ) + - 28 * + 78 * - + 69 * - - 45 * COUNT( * ) + + 96 ) + 76 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-5969
SELECT 67 + + NULLIF ( + + 4, - 94 * + CAST ( ( + 88 ) AS INTEGER ) * COALESCE ( + 41, 6 ) - + + COALESCE ( + 87, 94 ) + - 28 * + 78 * - + 69 * - - 45 * COUNT ( * ) + + 96 ) + 76 AS col1
----
147

query I rowsort
SELECT + 17 AS col0
----
17

query I rowsort
SELECT ALL - - 91
----
91

query I rowsort
SELECT ALL - 70 AS col0
----
-70

query I rowsort
SELECT + 31 * 61 * - + 94 AS col1
----
-177754

query I rowsort
SELECT ALL - + 74 AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5975
SELECT DISTINCT + 36 + + + 23 - - 25 DIV + COALESCE ( - + 75, + 93 * + 5 * CAST( - 54 AS SIGNED ) - + - ( + + COUNT( * ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT + 36 + + + 23 - - 25 / + COALESCE ( - + 75, + 93 * + 5 * CAST ( - 54 AS INTEGER ) - + - ( + + COUNT ( * ) ) )
----
59

query I rowsort
SELECT + ( ( + - 98 ) ) * + - 91 col2
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT - + 98 + + COALESCE ( - + 80, - - 5 * 64 + + 17 + + + CASE 75 WHEN - + COUNT( * ) THEN + 94 + + 66 WHEN COUNT( * ) THEN NULL END + - 77 + - ( 80 ) * + - NULLIF ( - 13, - 72 ) )
----
-178

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT - + 98 + + COALESCE ( - + 80, - - 5 * 64 + + 17 + + + CASE 75 WHEN - + COUNT ( * ) THEN + 94 + + 66 WHEN COUNT ( * ) THEN NULL END + - 77 + - ( 80 ) * + - NULLIF ( - 13, - 72 ) )
----
-178

query I rowsort
SELECT ALL + 96
----
96

query I rowsort
SELECT - - 39
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5980
SELECT - COUNT( - 58 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT - COUNT ( - 58 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 7 AS col0
----
7

query I rowsort
SELECT ALL + + 23 + - - 95 AS col0
----
118

query I rowsort
SELECT - 33 + 47 + 65 AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5984
SELECT 60 + + NULLIF ( + 43, - COUNT( * ) ) - 51 AS col1, 70 DIV 10 AS col0
----
52
7

skipif mysql # not compatible
query II rowsort label-5984
SELECT 60 + + NULLIF ( + 43, - COUNT ( * ) ) - 51 AS col1, 70 / 10 AS col0
----
52
7

query I rowsort
SELECT ALL 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT MIN( ALL + + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5986
SELECT MIN ( ALL + + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL - - 11 + - - COUNT( * ) + + - 22
----
-10

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - - 11 + - - COUNT ( * ) + + - 22
----
-10

query I rowsort
SELECT ALL 97 col1
----
97

query I rowsort
SELECT ALL + 51 + - 16
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + MIN( DISTINCT + + ( + ( - 36 ) ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5990
SELECT + MIN ( DISTINCT + + ( + ( - 36 ) ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT + - 81 + ( - MAX( - + 67 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT + - 81 + ( - MAX ( - + 67 ) )
----
-14

query I rowsort
SELECT ALL + 51 - + 90 AS col2
----
-39

query I rowsort
SELECT 42 * - - 3 AS col0
----
126

query I rowsort
SELECT 51 * + 38
----
1938

query I rowsort
SELECT 87 * - - 74 col0
----
6438

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT DISTINCT COUNT( * ), 47 + + 72 col1
----
1
119

skipif mysql # not compatible
query II rowsort label-5996
SELECT DISTINCT COUNT ( * ), 47 + + 72 col1
----
1
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL MAX( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL MAX ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5998
SELECT DISTINCT 0 - + COUNT( * ) - - MIN( ALL - 70 ), + 37 + + - 48 AS col0
----
-71
-11

skipif mysql # not compatible
query II rowsort label-5998
SELECT DISTINCT 0 - + COUNT ( * ) - - MIN ( ALL - 70 ), + 37 + + - 48 AS col0
----
-71
-11

query I rowsort
SELECT ALL 35 * + 49 AS col1
----
1715

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT - 79 * + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT - 79 * + + COUNT ( * )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6001
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, MIN( - 21 ) + + 29 AS col2
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6001
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, MIN ( - 21 ) + + 29 AS col2
----
NULL
8

query II rowsort
SELECT + 99 AS col2, 32
----
99
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL + 61 * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL + 61 * - COUNT ( * )
----
-61

query I rowsort
SELECT DISTINCT - 28
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6005
SELECT 67 * 59 * 89 AS col0, CAST( NULL AS SIGNED ) * + 89 + + NULLIF ( - - 43, + + 11 ) * + 35
----
351817
NULL

skipif mysql # not compatible
query II rowsort label-6005
SELECT 67 * 59 * 89 AS col0, CAST ( NULL AS INTEGER ) * + 89 + + NULLIF ( - - 43, + + 11 ) * + 35
----
351817
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT CASE WHEN - COALESCE ( + 1, 76 ) NOT BETWEEN + + 67 + 79 AND NULL THEN NULL ELSE - CAST( - 11 AS SIGNED ) - - + 90 END * + 76 + ( + 26 ) + - 61 + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT CASE WHEN - COALESCE ( + 1, 76 ) NOT BETWEEN + + 67 + 79 AND NULL THEN NULL ELSE - CAST ( - 11 AS INTEGER ) - - + 90 END * + 76 + ( + 26 ) + - 61 + 21 AS col2
----
NULL

query II rowsort
SELECT ALL - 41 AS col0, - 95 AS col1
----
-41
-95

query I rowsort
SELECT + 10 AS col0
----
10

query I rowsort
SELECT DISTINCT - 47 AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6010
SELECT COALESCE ( 85, - - 40 * - 11, + COUNT( - + ( - + 37 ) ) * 91 ) DIV COUNT( * ) AS col2, - COUNT( * )
----
85
-1

skipif mysql # not compatible
query II rowsort label-6010
SELECT COALESCE ( 85, - - 40 * - 11, + COUNT ( - + ( - + 37 ) ) * 91 ) / COUNT ( * ) AS col2, - COUNT ( * )
----
85
-1

query I rowsort
SELECT ALL - 57 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT 95 - + ( - CAST( - + 50 AS SIGNED ) )
----
45

skipif mysql # not compatible
query I rowsort label-6012
SELECT 95 - + ( - CAST ( - + 50 AS INTEGER ) )
----
45

query I rowsort
SELECT DISTINCT - ( + 4 )
----
-4

query I rowsort
SELECT ALL + 68 * + 24
----
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6015
SELECT + CAST( + 77 AS SIGNED ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6015
SELECT + CAST ( + 77 AS INTEGER ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6016
SELECT ALL - + NULLIF ( - COALESCE ( 26, - COALESCE ( COUNT( * ), - 72 + - + MIN( 58 ) DIV - + 58 ) * + CAST( 52 AS SIGNED ) * - 37 DIV - 90 ), - + 48 + COALESCE ( 97, - 27 ) + + + COALESCE ( - 96, + 77 * 0 ) ) * COALESCE ( - CASE CAST( NULL AS SIGNED ) WHEN + 12 THEN NULL ELSE - 25 END, - + 29 ) + MAX( ALL 64 ) * 7 + + 46
----
1144

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL - + NULLIF ( - COALESCE ( 26, - COALESCE ( COUNT ( * ), - 72 + - + MIN ( 58 ) / - + 58 ) * + CAST ( 52 AS INTEGER ) * - 37 / - 90 ), - + 48 + COALESCE ( 97, - 27 ) + + + COALESCE ( - 96, + 77 * 0 ) ) * COALESCE ( - CASE CAST ( NULL AS INTEGER ) WHEN + 12 THEN NULL ELSE - 25 END, - + 29 ) + MAX ( ALL 64 ) * 7 + + 46
----
1144

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - 85 ) * 58 * - NULLIF ( ( + 39 ), + 39 ) + + - 81 AS col2
----
NULL

query I rowsort
SELECT ALL 12 * - 32
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT NULLIF ( COUNT( * ), 23 * - 42 + + 72 + - COUNT( * ) + 21 * - SUM( + 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6019
SELECT NULLIF ( COUNT ( * ), 23 * - 42 + + 72 + - COUNT ( * ) + 21 * - SUM ( + 11 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6020
SELECT ALL NULLIF ( + COUNT( + 55 ), + 69 + + CAST( NULL AS SIGNED ) ) * - 94 col1, - 85 * + 41
----
-94
-3485

skipif mysql # not compatible
query II rowsort label-6020
SELECT ALL NULLIF ( + COUNT ( + 55 ), + 69 + + CAST ( NULL AS INTEGER ) ) * - 94 col1, - 85 * + 41
----
-94
-3485

query I rowsort
SELECT + + 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL - COUNT( * ) + + - COUNT( * ) * 41 + 91 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) * 41 + 91 AS col1
----
49

query I rowsort
SELECT + 30 AS col0
----
30

query I rowsort
SELECT - COALESCE ( - + 40, - - 33 * 72 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT ALL + + 48, - 78 * 98 * COUNT( * ) col2
----
48
-7644

skipif mysql # not compatible
query II rowsort label-6025
SELECT ALL + + 48, - 78 * 98 * COUNT ( * ) col2
----
48
-7644

query I rowsort
SELECT + 22 + - 70
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6027
SELECT DISTINCT + 59 AS col1, - CAST( NULL AS SIGNED ) AS col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-6027
SELECT DISTINCT + 59 AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
59
NULL

query II rowsort
SELECT DISTINCT + 50 + + 71 * - 37 AS col0, 95 - + - 66
----
-2577
161

query I rowsort
SELECT 84 AS col2
----
84

query I rowsort
SELECT ALL CASE - + 16 WHEN + 28 THEN - ( + 3 ) * + - 23 + - + 17 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 22 - 20 AS col1
----
2

query I rowsort
SELECT - - 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - 67 * + - NULLIF ( - 99, - 60 + - COUNT( * ) )
----
-6633

skipif mysql # not compatible
query I rowsort label-6033
SELECT - 67 * + - NULLIF ( - 99, - 60 + - COUNT ( * ) )
----
-6633

query II rowsort
SELECT + NULLIF ( 62, + + 42 ) + 3 + - 9 + - 28 AS col1, 8
----
28
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6035
SELECT - + COUNT( * ) AS col2, 54 AS col0
----
-1
54

skipif mysql # not compatible
query II rowsort label-6035
SELECT - + COUNT ( * ) AS col2, 54 AS col0
----
-1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL + MAX( - COALESCE ( + 24, + 88 ) ) * 96
----
-2304

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL + MAX ( - COALESCE ( + 24, + 88 ) ) * 96
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT + MAX( 81 ) * 19
----
1539

skipif mysql # not compatible
query I rowsort label-6037
SELECT + MAX ( 81 ) * 19
----
1539

query II rowsort
SELECT ALL + 56 * + 15 AS col1, 18
----
840
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6039
SELECT + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) + - - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + - - 12 col2
----
NULL

query I rowsort
SELECT - ( - + 81 )
----
81

query I rowsort
SELECT ALL NULLIF ( + 73, + - 57 ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT - 47 + - MIN( - 11 ) * + CAST( - - 13 AS SIGNED ) col2
----
96

skipif mysql # not compatible
query I rowsort label-6042
SELECT - 47 + - MIN ( - 11 ) * + CAST ( - - 13 AS INTEGER ) col2
----
96

query I rowsort
SELECT 38
----
38

query I rowsort
SELECT ALL CASE - 76 WHEN 27 THEN - 74 WHEN + 21 * - 68 + 53 THEN NULL ELSE + 99 END AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT - COUNT( * ) + - 17 + 36
----
18

skipif mysql # not compatible
query I rowsort label-6045
SELECT - COUNT ( * ) + - 17 + 36
----
18

query I rowsort
SELECT ALL - 93 * - + 57 AS col1
----
5301

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL + CASE 81 WHEN - 47 + + - 18 THEN 5 WHEN + 92 THEN COUNT( * ) WHEN - 43 THEN + 15 + - 28 / - - 64 END / + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + CASE 81 WHEN - 47 + + - 18 THEN 5 WHEN + 92 THEN COUNT ( * ) WHEN - 43 THEN + 15 + - 28 / - - 64 END / + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6048
SELECT ALL CASE 74 WHEN + 24 THEN - + 89 ELSE 83 - - + 51 + 39 * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL CASE 74 WHEN + 24 THEN - + 89 ELSE 83 - - + 51 + 39 * - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 69 + + 64
----
-5

query I rowsort
SELECT 11 col0
----
11

query I rowsort
SELECT - 46 + - 16
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + SUM( DISTINCT + - 93 ) * ( 80 ) + + + 47 * + + 7
----
-7111

skipif mysql # not compatible
query I rowsort label-6052
SELECT + SUM ( DISTINCT + - 93 ) * ( 80 ) + + + 47 * + + 7
----
-7111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6053
SELECT ALL + COUNT( * ) * - CAST( - - 66 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL + COUNT ( * ) * - CAST ( - - 66 AS INTEGER ) AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT - 51 * - + ( - - 0 ) * 69 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6054
SELECT - 51 * - + ( - - 0 ) * 69 / 68 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6055
SELECT DISTINCT 19 DIV 13 + - - 12 * + 44 + + MAX( DISTINCT + 82 ) AS col0
----
611

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT 19 / 13 + - - 12 * + 44 + + MAX ( DISTINCT + 82 ) AS col0
----
611

query I rowsort
SELECT ALL + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT ALL + - COUNT( * ) * ( - + 39 ) - + - 67 * + 67 * + 5 * - - 88 * 4 + - 17 + 80 AS col2
----
7900742

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL + - COUNT ( * ) * ( - + 39 ) - + - 67 * + 67 * + 5 * - - 88 * 4 + - 17 + 80 AS col2
----
7900742

query I rowsort
SELECT DISTINCT + + 39 * + 21 + + 89 AS col0
----
908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6059
SELECT - - COALESCE ( COALESCE ( 41, - COALESCE ( + COUNT( * ), + + 49 + - + 6 * 8 ) * - 76 * - COALESCE ( - + 53, + + ( + 35 ) ) DIV - COALESCE ( + + CASE - 76 WHEN + 1 THEN 72 ELSE ( - - 9 ) END, + - COUNT( * ) + - COUNT( DISTINCT CAST( + 13 AS SIGNED ) ) - - - 80 + 73 * 41 * + CAST( NULL AS SIGNED ) * - + 6 * + 97 + 30 ), MAX( DISTINCT 69 ) ), SUM( 62 ), - 60, - NULLIF ( 4, ( - 5 ) * 96 ) ) * - NULLIF ( 6, + 17 * 23 ) + 78
----
-168

skipif mysql # not compatible
query I rowsort label-6059
SELECT - - COALESCE ( COALESCE ( 41, - COALESCE ( + COUNT ( * ), + + 49 + - + 6 * 8 ) * - 76 * - COALESCE ( - + 53, + + ( + 35 ) ) / - COALESCE ( + + CASE - 76 WHEN + 1 THEN 72 ELSE ( - - 9 ) END, + - COUNT ( * ) + - COUNT ( DISTINCT CAST ( + 13 AS INTEGER ) ) - - - 80 + 73 * 41 * + CAST ( NULL AS INTEGER ) * - + 6 * + 97 + 30 ), MAX ( DISTINCT 69 ) ), SUM ( 62 ), - 60, - NULLIF ( 4, ( - 5 ) * 96 ) ) * - NULLIF ( 6, + 17 * 23 ) + 78
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT MAX( DISTINCT + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6060
SELECT MAX ( DISTINCT + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6061
SELECT + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 5 * 82 * + 71 + - 25 + - 13
----
29072

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL - ( - 49 ) * + COALESCE ( - 74, - 12 + - COUNT( * ) ) + - 12
----
-3638

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL - ( - 49 ) * + COALESCE ( - 74, - 12 + - COUNT ( * ) ) + - 12
----
-3638

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT COUNT( 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6064
SELECT COUNT ( 44 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6065
SELECT - - 65 + - 15 AS col2, COUNT( * ) AS col1
----
50
1

skipif mysql # not compatible
query II rowsort label-6065
SELECT - - 65 + - 15 AS col2, COUNT ( * ) AS col1
----
50
1

query I rowsort
SELECT + - 6 * - 51 * + 3 AS col1
----
918

query I rowsort
SELECT ALL + + 76
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6068
SELECT ALL + 95 DIV + - SUM( ALL + 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL + 95 / + - SUM ( ALL + 64 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL + - COUNT( + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + - COUNT ( + 42 )
----
-1

query I rowsort
SELECT ALL + + 59
----
59

query I rowsort
SELECT DISTINCT - 62 * 5 * + 96 + - 32 * - 87 AS col1
----
-26976

query I rowsort
SELECT ALL + COALESCE ( - 7, - 47 ) * + 98 - - 72 - - + 51
----
-563

query I rowsort
SELECT + - 24 + 80
----
56

query I rowsort
SELECT - + 25 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6075
SELECT + + COALESCE ( + COUNT( * ), - 81 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT + + COALESCE ( + COUNT ( * ), - 81 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 74 + 45
----
-29

query I rowsort
SELECT - + 2
----
-2

query I rowsort
SELECT + - 5 * + 52
----
-260

query I rowsort
SELECT - 72 AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6080
SELECT SUM( ALL + - COALESCE ( - + 0, - 7 DIV + + 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6080
SELECT SUM ( ALL + - COALESCE ( - + 0, - 7 / + + 99 ) )
----
0

query I rowsort
SELECT + 6 - - 42 * + 19 AS col1
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT DISTINCT 71 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT 71 * - COUNT ( * )
----
-71

query I rowsort
SELECT ALL 29
----
29

query I rowsort
SELECT + ( - + ( + 19 ) ) * - 50
----
950

query I rowsort
SELECT ALL 84
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6086
SELECT ALL CASE + 89 WHEN - 17 THEN + + 82 * + ( - - 7 ) + COUNT( * ) - 99 WHEN 41 / + 36 THEN NULL END AS col0, MIN( 0 ) + + 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6086
SELECT ALL CASE + 89 WHEN - 17 THEN + + 82 * + ( - - 7 ) + COUNT ( * ) - 99 WHEN 41 / + 36 THEN NULL END AS col0, MIN ( 0 ) + + 0 AS col1
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6087
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87
----
87

query I rowsort
SELECT ALL ( + - 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6090
SELECT ALL COUNT( * ), - COALESCE ( 41, - NULLIF ( + MIN( + 47 ), - COALESCE ( + 22, - COUNT( * ) / 50, - + 34 ) ), 22 ) AS col0
----
1
-41

skipif mysql # not compatible
query II rowsort label-6090
SELECT ALL COUNT ( * ), - COALESCE ( 41, - NULLIF ( + MIN ( + 47 ), - COALESCE ( + 22, - COUNT ( * ) / 50, - + 34 ) ), 22 ) AS col0
----
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ALL MAX( ALL + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL MAX ( ALL + 91 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT + ( 47 ) * 39 DIV 68 * + + 40 AS col2
----
1040

skipif mysql # not compatible
query I rowsort label-6092
SELECT + ( 47 ) * 39 / 68 * + + 40 AS col2
----
1040

query II rowsort
SELECT - 70 + + + 72 * 94 AS col0, 8 * 10 AS col2
----
6698
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT - CAST( - 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-6094
SELECT - CAST ( - 30 AS INTEGER )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT DISTINCT + NULLIF ( - - 63, 93 - - NULLIF ( + + 15, COUNT( * ) * - - 39 ) ) + + 63 + - 90
----
36

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + NULLIF ( - - 63, 93 - - NULLIF ( + + 15, COUNT ( * ) * - - 39 ) ) + + 63 + - 90
----
36

query I rowsort
SELECT ALL + 62 + + 73 * + - ( - - ( - 28 ) ) AS col1
----
2106

query II rowsort
SELECT - 52, - 1 * - 7 AS col2
----
-52
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT - 22 DIV 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6098
SELECT - 22 / 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT + 34 * + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-6099
SELECT + 34 * + COUNT ( * ) col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT ALL + 35 + 72 DIV 73 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + 35 + 72 / 73 AS col2
----
35

query I rowsort
SELECT DISTINCT 14 col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT 15 DIV - - 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6102
SELECT 15 / - - 34 AS col1
----
0

query I rowsort
SELECT 21 * 37 * 1
----
777

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT ALL - 56, + COUNT( * ) * 16 AS col1
----
-56
16

skipif mysql # not compatible
query II rowsort label-6104
SELECT ALL - 56, + COUNT ( * ) * 16 AS col1
----
-56
16

query I rowsort
SELECT ALL + ( - 58 ) + + + 28
----
-30

query I rowsort
SELECT ALL - 55 AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6107
SELECT CAST( + 92 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6107
SELECT CAST ( + 92 AS INTEGER ) AS col2
----
92

query I rowsort
SELECT ( - 64 ) AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT - 74 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - 74 / + 93
----
0

query I rowsort
SELECT ALL + 16 + - + 70
----
-54

query I rowsort
SELECT + - 35
----
-35

query I rowsort
SELECT ALL - 24
----
-24

query I rowsort
SELECT DISTINCT - - 69
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT DISTINCT - CAST( 41 AS SIGNED ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT - CAST ( 41 AS INTEGER ) col0
----
-41

query I rowsort
SELECT DISTINCT + 33 * 34
----
1122

onlyif mysql # DIV for integer division: 
query I rowsort label-6116
SELECT ALL - + 37 * 42 DIV + 58 + + 55
----
29

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - + 37 * 42 / + 58 + + 55
----
29

query I rowsort
SELECT + + 37
----
37

query I rowsort
SELECT DISTINCT - 73 * + 41 AS col0
----
-2993

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6119
SELECT + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + 61 AS col0
----
61

query II rowsort
SELECT ALL - - 32 AS col0, ( + - 42 ) AS col1
----
32
-42

query I rowsort
SELECT ALL - ( + 45 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT 86 DIV 8
----
10

skipif mysql # not compatible
query I rowsort label-6123
SELECT 86 / 8
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT NULLIF ( 28, - ( + + COUNT( * ) ) + 64 + - - 70 ) + + 86 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT NULLIF ( 28, - ( + + COUNT ( * ) ) + 64 + - - 70 ) + + 86 * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 50 AS col0, 66 AS col0
----
50
66

query II rowsort
SELECT ALL 25, 18 * - + 29 AS col0
----
25
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT 80 * COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-6127
SELECT 80 * COUNT ( * )
----
80

query I rowsort
SELECT ALL 12 * + + 62 * - 29
----
-21576

query I rowsort
SELECT ALL 80 AS col0
----
80

query I rowsort
SELECT - 84 col2
----
-84

query II rowsort
SELECT 74, - 52 AS col1
----
74
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL 58 * NULLIF ( - COALESCE ( - + 56, + - COUNT( * ) ), + 90 ) AS col2
----
3248

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL 58 * NULLIF ( - COALESCE ( - + 56, + - COUNT ( * ) ), + 90 ) AS col2
----
3248

query I rowsort
SELECT 70 + - - 1 * - 45
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT COUNT( * ) * - SUM( 18 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-6134
SELECT COUNT ( * ) * - SUM ( 18 ) col2
----
-18

query I rowsort
SELECT ALL 76 + + + 21 + 98
----
195

query I rowsort
SELECT 76 + + 94 * - + 1 - + 24 AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT CAST( NULL AS SIGNED ) * - NULLIF ( - ( - 55 ), - 37 * AVG ( - 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT CAST ( NULL AS INTEGER ) * - NULLIF ( - ( - 55 ), - 37 * AVG ( - 13 ) )
----
NULL

query I rowsort
SELECT 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT MAX( - 59 ) + - 85 * - 60 + - - 75
----
5116

skipif mysql # not compatible
query I rowsort label-6139
SELECT MAX ( - 59 ) + - 85 * - 60 + - - 75
----
5116

query I rowsort
SELECT ALL 3 AS col0
----
3

query I rowsort
SELECT 5 + - 59
----
-54

query I rowsort
SELECT ALL 16 + - + 78 AS col0
----
-62

query II rowsort
SELECT DISTINCT 56, ( - 27 ) AS col1
----
56
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6144
SELECT ALL + CAST( NULL AS SIGNED ) + + - ( + 50 ) + COUNT( * ) * + + MAX( ALL 82 ) + 93 + - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL + CAST ( NULL AS INTEGER ) + + - ( + 50 ) + COUNT ( * ) * + + MAX ( ALL 82 ) + 93 + - 27 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + + 7, 19 ) + - 48 col0
----
-41

query II rowsort
SELECT ALL 14 AS col1, ( 1 ) + + - 87 AS col1
----
14
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT 95 + COALESCE ( + COUNT( * ), + 66 ) * - 90 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6147
SELECT 95 + COALESCE ( + COUNT ( * ), + 66 ) * - 90 AS col2
----
5

query I rowsort
SELECT 30 + + 49 - + + 37
----
42

query II rowsort
SELECT - 18, + 96 * ( - 39 ) AS col0
----
-18
-3744

query I rowsort
SELECT 40 + 87 * - 72
----
-6224

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL - COALESCE ( - 55, 66, + COUNT( * ) * MAX( DISTINCT - 58 ) ) + - + 47 - 83 * MIN( DISTINCT + + 93 ) + + - 75 + - 55 + - - 16
----
-7825

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL - COALESCE ( - 55, 66, + COUNT ( * ) * MAX ( DISTINCT - 58 ) ) + - + 47 - 83 * MIN ( DISTINCT + + 93 ) + + - 75 + - 55 + - - 16
----
-7825

query I rowsort
SELECT ( - 26 )
----
-26

query I rowsort
SELECT - + 57
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT ( + 99 ) + + 79 * + - MIN( DISTINCT - - 86 )
----
-6695

skipif mysql # not compatible
query I rowsort label-6154
SELECT ( + 99 ) + + 79 * + - MIN ( DISTINCT - - 86 )
----
-6695

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL 91 - - - CASE 55 WHEN + COUNT( * ) THEN - ( - - 60 ) END * + + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL 91 - - - CASE 55 WHEN + COUNT ( * ) THEN - ( - - 60 ) END * + + 28 AS col2
----
NULL

query I rowsort
SELECT + 81 * 7 + 24
----
591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6157
SELECT ALL - 28 * + COUNT( * ) - - 8 + CAST( NULL AS SIGNED ) * 92 * COUNT( * ) + + 5 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - 28 * + COUNT ( * ) - - 8 + CAST ( NULL AS INTEGER ) * 92 * COUNT ( * ) + + 5 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT DISTINCT - 17 DIV 33 + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT - 17 / 33 + 23 AS col0
----
23

query I rowsort
SELECT ALL - - ( 33 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6160
SELECT + MAX( ALL + - 41 ) AS col1, + 42 DIV + 93 AS col0
----
-41
0

skipif mysql # not compatible
query II rowsort label-6160
SELECT + MAX ( ALL + - 41 ) AS col1, + 42 / + 93 AS col0
----
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT COUNT( ALL - + 36 ) + 4
----
5

skipif mysql # not compatible
query I rowsort label-6161
SELECT COUNT ( ALL - + 36 ) + 4
----
5

query I rowsort
SELECT DISTINCT - 11 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL + + 2 - COUNT( * ) * + 80 * + - 61 AS col0
----
4882

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + + 2 - COUNT ( * ) * + 80 * + - 61 AS col0
----
4882

query I rowsort
SELECT DISTINCT - 1
----
-1

query I rowsort
SELECT DISTINCT - 88 AS col0
----
-88

query I rowsort
SELECT + - 31 AS col1
----
-31

query I rowsort
SELECT - 33 * - 33 * - 78
----
-84942

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL - + ( + MIN( 21 ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL - + ( + MIN ( 21 ) ) AS col2
----
-21

query I rowsort
SELECT 8 * - 37
----
-296

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT ALL + 69 DIV + 79 * - + 62
----
0

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + 69 / + 79 * - + 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT + CAST( NULL AS SIGNED ) + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT + CAST ( NULL AS INTEGER ) + 7 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 29 AS col1
----
-29

query I rowsort
SELECT 72 * 32 + + 71
----
2375

query I rowsort
SELECT DISTINCT - - 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL + 61 + + - 41 - + - MAX( + - 37 ) + - 33 + + 33 + + 97 + - - 25
----
105

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL + 61 + + - 41 - + - MAX ( + - 37 ) + - 33 + + 33 + + 97 + - - 25
----
105

query I rowsort
SELECT DISTINCT - 57
----
-57

query II rowsort
SELECT 61 * + 12 AS col0, 68 AS col0
----
732
68

query I rowsort
SELECT DISTINCT - 16 + - 5
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ALL + MAX( - + 73 ) + + MIN( - 90 )
----
-163

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL + MAX ( - + 73 ) + + MIN ( - 90 )
----
-163

query II rowsort
SELECT ALL - 7 * + 58, 19 + 37 AS col0
----
-406
56

query I rowsort
SELECT 15 + 25 + + CASE + ( - NULLIF ( + 31, - + 34 + - - 58 + ( 59 ) ) ) WHEN 60 + 97 THEN NULL WHEN - 11 THEN + 63 END AS col2
----
NULL

query II rowsort
SELECT 86 * + 82 AS col0, - 67 * - + 39 AS col2
----
7052
2613

query I rowsort
SELECT ALL NULLIF ( - 21, + 61 + 89 + ( - 3 ) ) + + + 30 + - ( 91 ) AS col1
----
-82

query I rowsort
SELECT 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL + 62 + - + SUM( DISTINCT - + 59 ) * 52 AS col1
----
3130

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL + 62 + - + SUM ( DISTINCT - + 59 ) * 52 AS col1
----
3130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6186
SELECT ALL COUNT( * ) DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL COUNT ( * ) / - 20
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT ALL 99 + - + 37 DIV - 29
----
100

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL 99 + - + 37 / - 29
----
100

query I rowsort
SELECT DISTINCT 7 AS col0
----
7

query I rowsort
SELECT 29 col1
----
29

query I rowsort
SELECT - 13
----
-13

query II rowsort
SELECT ALL 63 - - 91, 73 AS col1
----
154
73

query I rowsort
SELECT - 27 * 50 * + 58 AS col1
----
-78300

onlyif mysql # DIV for integer division: 
query I rowsort label-6193
SELECT + 45 DIV - ( + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-6193
SELECT + 45 / - ( + 66 )
----
0

query I rowsort
SELECT DISTINCT + - 8 * 14 AS col1
----
-112

query I rowsort
SELECT DISTINCT + 92
----
92

query I rowsort
SELECT ALL 99 col0
----
99

query I rowsort
SELECT ALL + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT + MAX( DISTINCT 84 ) * - - 39 AS col2
----
3276

skipif mysql # not compatible
query I rowsort label-6198
SELECT + MAX ( DISTINCT 84 ) * - - 39 AS col2
----
3276

query I rowsort
SELECT ALL + - 65
----
-65

query I rowsort
SELECT ALL + 85
----
85

query I rowsort
SELECT - 74 * 78 + - - ( + 0 ) + + 43 AS col1
----
-5729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6202
SELECT NULLIF ( + + NULLIF ( - COUNT( ALL - - 60 ), - CAST( + COALESCE ( - + 29, - 52 / - 60 + 68 + - + COUNT( * ), + 94 ) AS SIGNED ) * - 97 + + + CAST( NULL AS SIGNED ) ), - + 36 * - 28 * - + ( - 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6202
SELECT NULLIF ( + + NULLIF ( - COUNT ( ALL - - 60 ), - CAST ( + COALESCE ( - + 29, - 52 / - 60 + 68 + - + COUNT ( * ), + 94 ) AS INTEGER ) * - 97 + + + CAST ( NULL AS INTEGER ) ), - + 36 * - 28 * - + ( - 44 ) )
----
-1

query I rowsort
SELECT DISTINCT + + 87
----
87

query I rowsort
SELECT ALL + 33 col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6205
SELECT 92 DIV - 26 - + 21 * - 72 * MAX( ALL - 71 ) AS col2
----
-107355

skipif mysql # not compatible
query I rowsort label-6205
SELECT 92 / - 26 - + 21 * - 72 * MAX ( ALL - 71 ) AS col2
----
-107355

query I rowsort
SELECT ALL + + 14 AS col1
----
14

query I rowsort
SELECT + 45 col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6208
SELECT DISTINCT + + CASE + 12 WHEN - 35 + 64 THEN - - 23 WHEN + - ( + COUNT( * ) ) THEN NULL END AS col1, + ( - COALESCE ( - CASE + ( + - 90 ) WHEN + AVG ( + 72 ) * ( + + 58 ) - - COUNT( * ) THEN MAX( DISTINCT - 83 ) - - 45 ELSE + 66 + - NULLIF ( 38, 21 * - + 64 ) END, + COUNT( * ) * 32 ) )
----
NULL
28

skipif mysql # not compatible
query II rowsort label-6208
SELECT DISTINCT + + CASE + 12 WHEN - 35 + 64 THEN - - 23 WHEN + - ( + COUNT ( * ) ) THEN NULL END AS col1, + ( - COALESCE ( - CASE + ( + - 90 ) WHEN + AVG ( + 72 ) * ( + + 58 ) - - COUNT ( * ) THEN MAX ( DISTINCT - 83 ) - - 45 ELSE + 66 + - NULLIF ( 38, 21 * - + 64 ) END, + COUNT ( * ) * 32 ) )
----
NULL
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT ALL + 12 DIV + 34 + + + 89 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL + 12 / + 34 + + + 89 / + 78
----
1

query I rowsort
SELECT + + 1 * - + ( + 50 ) AS col2
----
-50

query I rowsort
SELECT ALL + 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ALL 94 * 84 + + + MAX( - 4 )
----
7892

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL 94 * 84 + + + MAX ( - 4 )
----
7892

query I rowsort
SELECT + CASE + 22 WHEN + 39 THEN + 90 + - 53 ELSE NULL END / - 26 + + - 62
----
NULL

query I rowsort
SELECT - ( 25 ) * + - 66 col0
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT CASE + + 47 WHEN + + 58 * - - 7 + + COUNT( * ) + - 37 THEN NULL ELSE + 28 END
----
28

skipif mysql # not compatible
query I rowsort label-6215
SELECT CASE + + 47 WHEN + + 58 * - - 7 + + COUNT ( * ) + - 37 THEN NULL ELSE + 28 END
----
28

query I rowsort
SELECT - 71 * - - 23 AS col1
----
-1633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6217
SELECT ALL 54 * - + MIN( DISTINCT + + 34 ) * - + 87 + - + 52 DIV 36 * + 13 * + 95 + - 66 * + 48
----
155329

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL 54 * - + MIN ( DISTINCT + + 34 ) * - + 87 + - + 52 / 36 * + 13 * + 95 + - 66 * + 48
----
155329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6218
SELECT ALL 23 * - COALESCE ( - 42, 62, + - 11 ) + + - COUNT( * ) + 40 / - ( CAST( NULL AS SIGNED ) ) / - - ( - - 51 ) AS col2, 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-6218
SELECT ALL 23 * - COALESCE ( - 42, 62, + - 11 ) + + - COUNT ( * ) + 40 / - ( CAST ( NULL AS INTEGER ) ) / - - ( - - 51 ) AS col2, 95
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT + ( - NULLIF ( - COUNT( * ), - COUNT( * ) * 87 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6219
SELECT + ( - NULLIF ( - COUNT ( * ), - COUNT ( * ) * 87 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT + CAST( + CASE + + COALESCE ( + 63, - + 88 ) WHEN + 16 THEN - - 2 WHEN + 57 / 96 + - 67 THEN NULL END AS SIGNED ) / + COALESCE ( - 66, - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT + CAST ( + CASE + + COALESCE ( + 63, - + 88 ) WHEN + 16 THEN - - 2 WHEN + 57 / 96 + - 67 THEN NULL END AS INTEGER ) / + COALESCE ( - 66, - 21 )
----
NULL

query I rowsort
SELECT ALL + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT - COUNT( * ) * + - 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6222
SELECT - COUNT ( * ) * + - 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6223
SELECT COUNT( * ) AS col0, - 69
----
1
-69

skipif mysql # not compatible
query II rowsort label-6223
SELECT COUNT ( * ) AS col0, - 69
----
1
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6224
SELECT ALL - 75 * + 85 DIV + ( + COUNT( * ) ) + 73
----
-6302

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL - 75 * + 85 / + ( + COUNT ( * ) ) + 73
----
-6302

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL - ( - + 74 ) * - MAX( DISTINCT - - 11 ) col1
----
-814

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - ( - + 74 ) * - MAX ( DISTINCT - - 11 ) col1
----
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT - 5 - - 3 + + 0 / + + CASE - - 79 WHEN 20 + 77 + + 82 + - 75 THEN + 94 WHEN COUNT( - 33 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT - 5 - - 3 + + 0 / + + CASE - - 79 WHEN 20 + 77 + + 82 + - 75 THEN + 94 WHEN COUNT ( - 33 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL COALESCE ( 55, + COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL COALESCE ( 55, + COUNT ( * ) )
----
55

query I rowsort
SELECT + 75 + + - 50 + + - CASE ( + 92 ) WHEN + 43 THEN - 18 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT ALL - ( + COUNT( + - 20 ) ) - + 43
----
-44

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL - ( + COUNT ( + - 20 ) ) - + 43
----
-44

query I rowsort
SELECT - 51 + + 92 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - MIN( ALL + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-6231
SELECT - MIN ( ALL + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT ALL + CASE - + 62 WHEN ( + - 45 ) * 75 * - 67 THEN + 68 + MAX( + NULLIF ( + + 37, + 20 ) ) * - 4 * - + 41 END - + 44 + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL + CASE - + 62 WHEN ( + - 45 ) * 75 * - 67 THEN + 68 + MAX ( + NULLIF ( + + 37, + 20 ) ) * - 4 * - + 41 END - + 44 + 2 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 95 ) AS col2
----
-95

query I rowsort
SELECT - 45 + 48 * + 67 + - 73
----
3098

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6235
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, 96 * - - 65 AS col1
----
NULL
6240

skipif mysql # not compatible
query II rowsort label-6235
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, 96 * - - 65 AS col1
----
NULL
6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6236
SELECT ALL CAST( + + ( MIN( + - 35 ) ) AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL CAST ( + + ( MIN ( + - 35 ) ) AS INTEGER )
----
-35

query I rowsort
SELECT - 21 + - - 22 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL + 68 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL + 68 * + COUNT ( * )
----
68

query I rowsort
SELECT ALL 33 AS col0
----
33

query I rowsort
SELECT DISTINCT + 79 * + 44 * 36
----
125136

query I rowsort
SELECT - + 73 + - 1
----
-74

query I rowsort
SELECT + ( - COALESCE ( 73, 40 ) ) + + - 19 + 81 AS col0
----
-11

query I rowsort
SELECT ALL + 25 AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT DISTINCT + 35 DIV + + 6
----
5

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT + 35 / + + 6
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT - + AVG ( ALL + - 50 ) * - ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT - + AVG ( ALL + - 50 ) * - ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 37 * 79
----
-2923

query I rowsort
SELECT + NULLIF ( 22, + 81 ) + - 72
----
-50

query I rowsort
SELECT ALL - 2 * 55
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT + - 91 DIV ( - - 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-6249
SELECT + - 91 / ( - - 79 )
----
-1

query I rowsort
SELECT + 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT - ( - SUM( 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-6251
SELECT - ( - SUM ( 46 ) )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6252
SELECT ALL + CAST( NULL AS SIGNED ) * - 36 / - 44 + + 51 * + 91 * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL + CAST ( NULL AS INTEGER ) * - 36 / - 44 + + 51 * + 91 * - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6253
SELECT ALL - COUNT( * ) DIV 81 + + + 90 - + 49 * - 0 + - 29 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL - COUNT ( * ) / 81 + + + 90 - + 49 * - 0 + - 29 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6254
SELECT 47 DIV - ( - 87 ) * - COUNT( * ) + + CASE + - COALESCE ( - ( - 77 ), - - 32 * - ( CAST( + - 57 AS SIGNED ) ) * - 74, - 29 * + - 82 * - 18 * + 41 + 21 * 14 * - COUNT( * ) + + COUNT( * ) + + 0 ) WHEN + + ( - 12 ) THEN + 79 ELSE - 82 END * + 60 * - 59 + 48 AS col1
----
290328

skipif mysql # not compatible
query I rowsort label-6254
SELECT 47 / - ( - 87 ) * - COUNT ( * ) + + CASE + - COALESCE ( - ( - 77 ), - - 32 * - ( CAST ( + - 57 AS INTEGER ) ) * - 74, - 29 * + - 82 * - 18 * + 41 + 21 * 14 * - COUNT ( * ) + + COUNT ( * ) + + 0 ) WHEN + + ( - 12 ) THEN + 79 ELSE - 82 END * + 60 * - 59 + 48 AS col1
----
290328

query I rowsort
SELECT ALL + 71
----
71

query II rowsort
SELECT - 2, + 19 - + ( - 13 ) AS col1
----
-2
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT ALL + ( - + CASE + + 25 WHEN 33 * + COUNT( * ) - 12 THEN COUNT( - 71 ) WHEN + 16 THEN + - 7 END ) / + 72 * - - 91 + 83 AS col2, - 98
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-6257
SELECT ALL + ( - + CASE + + 25 WHEN 33 * + COUNT ( * ) - 12 THEN COUNT ( - 71 ) WHEN + 16 THEN + - 7 END ) / + 72 * - - 91 + 83 AS col2, - 98
----
NULL
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-6258
SELECT + 52 AS col1, - COUNT( * ) * - 73
----
52
73

skipif mysql # not compatible
query II rowsort label-6258
SELECT + 52 AS col1, - COUNT ( * ) * - 73
----
52
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT - COUNT( * ) * + 57 + 14
----
-43

skipif mysql # not compatible
query I rowsort label-6259
SELECT - COUNT ( * ) * + 57 + 14
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6260
SELECT - ( CAST( NULL AS SIGNED ) ) * + 96 AS col1, 20 - - + 0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-6260
SELECT - ( CAST ( NULL AS INTEGER ) ) * + 96 AS col1, 20 - - + 0
----
NULL
20

query I rowsort
SELECT + + 94 AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6262
SELECT 80 / + 9 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6262
SELECT 80 / + 9 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT ALL 50 DIV + + 16 + 58 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL 50 / + + 16 + 58 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6264
SELECT CAST( - - 77 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6264
SELECT CAST ( - - 77 AS INTEGER ) AS col2
----
77

query I rowsort
SELECT ALL + 51 AS col2
----
51

query I rowsort
SELECT ( - + 83 )
----
-83

query I rowsort
SELECT ( 84 ) + - 31 + - 10 * + + 92 AS col2
----
-867

query I rowsort
SELECT + 32 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT COUNT( ALL - - 41 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT COUNT ( ALL - - 41 ) * + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 99 - + + 76
----
-175

query I rowsort
SELECT DISTINCT - 82
----
-82

query I rowsort
SELECT DISTINCT 52 - + - 36 AS col1
----
88

query I rowsort
SELECT + 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT 31 + - + 20 + + COUNT( * ) * 61
----
72

skipif mysql # not compatible
query I rowsort label-6274
SELECT 31 + - + 20 + + COUNT ( * ) * 61
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT 11 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6275
SELECT 11 / + 78 AS col1
----
0

query I rowsort
SELECT 84 AS col1
----
84

query I rowsort
SELECT ALL 56 AS col2
----
56

query I rowsort
SELECT 90 AS col1
----
90

query I rowsort
SELECT DISTINCT 62 AS col1
----
62

query I rowsort
SELECT ALL - 0 * - 66
----
0

query I rowsort
SELECT - 66
----
-66

query I rowsort
SELECT 89 * + 0 * + 68 + - 2
----
-2

query I rowsort
SELECT - - 4 AS col0
----
4

query I rowsort
SELECT DISTINCT COALESCE ( - 15, + 27 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT - MAX( 93 ) * - 45
----
4185

skipif mysql # not compatible
query I rowsort label-6285
SELECT - MAX ( 93 ) * - 45
----
4185

query I rowsort
SELECT - - NULLIF ( + 3, - - 75 + + 21 ) AS col1
----
3

query I rowsort
SELECT - - ( 36 )
----
36

query I rowsort
SELECT + 84 AS col2
----
84

query I rowsort
SELECT DISTINCT + 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL + 56 + - COUNT( * ) + - 66 + - + 30 * 63 * ( - CASE 0 WHEN + MIN( DISTINCT + 10 ) THEN - - COUNT( * ) WHEN - + 28 / - 8 - - + 77 + - + COUNT( ALL + - 82 ) * - 70 * COALESCE ( + - NULLIF ( - 92, + + 34 ), - 86 ) THEN NULL ELSE NULL END ) * + + 70 - + + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + 56 + - COUNT ( * ) + - 66 + - + 30 * 63 * ( - CASE 0 WHEN + MIN ( DISTINCT + 10 ) THEN - - COUNT ( * ) WHEN - + 28 / - 8 - - + 77 + - + COUNT ( ALL + - 82 ) * - 70 * COALESCE ( + - NULLIF ( - 92, + + 34 ), - 86 ) THEN NULL ELSE NULL END ) * + + 70 - + + 67 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL - + CAST( NULL AS SIGNED ) + 52 * + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - + CAST ( NULL AS INTEGER ) + 52 * + 33 AS col0
----
NULL

query I rowsort
SELECT ALL 96 col2
----
96

query I rowsort
SELECT - 7
----
-7

query I rowsort
SELECT ALL 10 + - 54 AS col0
----
-44

query I rowsort
SELECT - 57 col2
----
-57

query I rowsort
SELECT - + 99 AS col2
----
-99

query I rowsort
SELECT ALL + - 23 + + 16 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT - SUM( DISTINCT + + NULLIF ( ( 61 ), + + 8 / + ( + - 9 ) * + 25 ) ) + - NULLIF ( + 40, + 48 ) + + + 97 * - 94 AS col2
----
-9219

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT - SUM ( DISTINCT + + NULLIF ( ( 61 ), + + 8 / + ( + - 9 ) * + 25 ) ) + - NULLIF ( + 40, + 48 ) + + + 97 * - 94 AS col2
----
-9219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT ALL - - 11 / + CASE CAST( NULL AS SIGNED ) WHEN + + 13 * 68 THEN - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - - 11 / + CASE CAST ( NULL AS INTEGER ) WHEN + + 13 * 68 THEN - 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT + SUM( + + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6300
SELECT + SUM ( + + 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT + ( + + MAX( ALL 35 ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6301
SELECT + ( + + MAX ( ALL 35 ) ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6302
SELECT ALL 12 + 54 * COUNT( * ) AS col2, - CAST( + NULLIF ( - 57, + 90 ) AS SIGNED ) * - 71 * - 62 * 66
----
66
16560324

skipif mysql # not compatible
query II rowsort label-6302
SELECT ALL 12 + 54 * COUNT ( * ) AS col2, - CAST ( + NULLIF ( - 57, + 90 ) AS INTEGER ) * - 71 * - 62 * 66
----
66
16560324

query I rowsort
SELECT ALL - 75 * 84 col2
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT COUNT( 56 ) + + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6304
SELECT COUNT ( 56 ) + + 84 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL + 3 * + MIN( 59 ) AS col0
----
177

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + 3 * + MIN ( 59 ) AS col0
----
177

query I rowsort
SELECT ALL - 86 AS col1
----
-86

query II rowsort
SELECT 37 col1, + 54
----
37
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT COUNT( * ) + - + 97 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6308
SELECT COUNT ( * ) + - + 97 AS col1
----
-96

query I rowsort
SELECT ALL - 69
----
-69

query I rowsort
SELECT DISTINCT - 72
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-6311
SELECT NULLIF ( - + ( 28 ), + COUNT( * ) ) * + COUNT( * ) AS col1, + 16 * ( + + 41 ) AS col2
----
-28
656

skipif mysql # not compatible
query II rowsort label-6311
SELECT NULLIF ( - + ( 28 ), + COUNT ( * ) ) * + COUNT ( * ) AS col1, + 16 * ( + + 41 ) AS col2
----
-28
656

query I rowsort
SELECT ALL 40 * - 8 AS col0
----
-320

query I rowsort
SELECT 4 * 52 * - 79 - - 36 col0
----
-16396

query I rowsort
SELECT 62 AS col1
----
62

query I rowsort
SELECT DISTINCT 75 * 48
----
3600

query II rowsort
SELECT ALL 92 * 52 * + 53, + 37 col1
----
253552
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT 40 * + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6317
SELECT 40 * + COUNT ( * ) AS col0
----
40

query I rowsort
SELECT ALL 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT - MIN( ALL + - 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-6319
SELECT - MIN ( ALL + - 81 ) col0
----
81

query I rowsort
SELECT ALL 66
----
66

query I rowsort
SELECT DISTINCT + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT + 92 + - COALESCE ( - COUNT( DISTINCT - 34 ), + - 55, + 86 )
----
93

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 92 + - COALESCE ( - COUNT ( DISTINCT - 34 ), + - 55, + 86 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT COALESCE ( - COUNT( * ), - COUNT( - ( ( + 60 ) ) ) ) * 37 * + 92 * + 23 col2
----
-78292

skipif mysql # not compatible
query I rowsort label-6323
SELECT COALESCE ( - COUNT ( * ), - COUNT ( - ( ( + 60 ) ) ) ) * 37 * + 92 * + 23 col2
----
-78292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6324
SELECT CAST( - 62 AS SIGNED ) + + 22
----
-40

skipif mysql # not compatible
query I rowsort label-6324
SELECT CAST ( - 62 AS INTEGER ) + + 22
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6325
SELECT - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - 49, + 72, - 76 * - 3 + - - 96 * - 8 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT 42 DIV + ( 23 ) + - 26 * - - 94 AS col0
----
-2443

skipif mysql # not compatible
query I rowsort label-6327
SELECT 42 / + ( 23 ) + - 26 * - - 94 AS col0
----
-2443

query I rowsort
SELECT 29 + + 0 col1
----
29

query I rowsort
SELECT ALL 90 col1
----
90

query I rowsort
SELECT ALL 52 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT + 61 * - 36 + COALESCE ( + + 40, - COUNT( * ) ) - - 82 + - - 81
----
-1993

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT + 61 * - 36 + COALESCE ( + + 40, - COUNT ( * ) ) - - 82 + - - 81
----
-1993

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT - 68 + - 34 * - COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-6332
SELECT - 68 + - 34 * - COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT ALL + + 75 + + 51
----
126

query I rowsort
SELECT ALL - ( 42 )
----
-42

query I rowsort
SELECT - + 85
----
-85

query I rowsort
SELECT - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT - 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT - 0 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT - MIN( - 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6338
SELECT - MIN ( - 44 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6339
SELECT ( CAST( NULL AS SIGNED ) ) + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT ( CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( + 91 ) - 40
----
51

query I rowsort
SELECT + 37
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT - 94 DIV 20 * - 12 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 94 / 20 * - 12 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT DISTINCT + ( - ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT + ( - ( - COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT ALL 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL 58 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT - 64 DIV + 9 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-6345
SELECT - 64 / + 9 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6346
SELECT ALL + 60 AS col0, - NULLIF ( + + 76, + - 92 ) + - COUNT( * )
----
60
-77

skipif mysql # not compatible
query II rowsort label-6346
SELECT ALL + 60 AS col0, - NULLIF ( + + 76, + - 92 ) + - COUNT ( * )
----
60
-77

query I rowsort
SELECT - 82 + - 49 AS col1
----
-131

query I rowsort
SELECT DISTINCT - 27 * + 91 AS col1
----
-2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6349
SELECT ALL + CAST( + - 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL + CAST ( + - 62 AS INTEGER )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6350
SELECT - 28 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT - 28 / - 52
----
0

query I rowsort
SELECT + 34 * + 19
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL - COUNT( * ) * + MIN( DISTINCT 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL - COUNT ( * ) * + MIN ( DISTINCT 39 )
----
-39

query I rowsort
SELECT - 46 + + 4 * + + 64 + + 51
----
261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6354
SELECT - 22 * - + 30 - 61 DIV - MAX( 10 )
----
666

skipif mysql # not compatible
query I rowsort label-6354
SELECT - 22 * - + 30 - 61 / - MAX ( 10 )
----
666

query I rowsort
SELECT ALL + ( + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT - NULLIF ( - COUNT( * ), 74 ) * 38
----
38

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT - NULLIF ( - COUNT ( * ), 74 ) * 38
----
38

query I rowsort
SELECT ALL + 4 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT - 98 DIV 27 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6358
SELECT - 98 / 27 AS col2
----
-3

query I rowsort
SELECT ALL + 9 * + - 61
----
-549

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6360
SELECT ALL - CASE - - MIN( ALL + 73 ) WHEN - - NULLIF ( + 73, CAST( AVG ( ALL + 11 ) AS DECIMAL ) ) + COUNT( * ) + - 39 THEN + ( 31 ) * + - COUNT( ALL - + 55 ) ELSE - SUM( + + 19 ) DIV - - 73 + + SUM( DISTINCT + 26 ) END * - 90 + + 33
----
2373

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - CASE - - MIN ( ALL + 73 ) WHEN - - NULLIF ( + 73, CAST ( AVG ( ALL + 11 ) AS REAL ) ) + COUNT ( * ) + - 39 THEN + ( 31 ) * + - COUNT ( ALL - + 55 ) ELSE - SUM ( + + 19 ) / - - 73 + + SUM ( DISTINCT + 26 ) END * - 90 + + 33
----
2373

query I rowsort
SELECT + 74 * + 65 AS col2
----
4810

query I rowsort
SELECT ALL 97 * - 14 + - 8 + + + 68 * 93 * 53 * - 39
----
-13073074

query I rowsort
SELECT DISTINCT + 91 AS col2
----
91

query II rowsort
SELECT + 64, 59 + - 30 AS col1
----
64
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6365
SELECT + COALESCE ( - 4, - 5, + 67, + 91 - + 57 ), COUNT( * ) DIV + 44 - - - 51 + - NULLIF ( - 30, ( 79 ) ) - + COUNT( * ) * 25 * + COUNT( * ) * - 46 * + 0 AS col1
----
-4
-21

skipif mysql # not compatible
query II rowsort label-6365
SELECT + COALESCE ( - 4, - 5, + 67, + 91 - + 57 ), COUNT ( * ) / + 44 - - - 51 + - NULLIF ( - 30, ( 79 ) ) - + COUNT ( * ) * 25 * + COUNT ( * ) * - 46 * + 0 AS col1
----
-4
-21

query I rowsort
SELECT - 89 * - 11
----
979

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL 29 + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL 29 + + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - + COUNT( ALL 84 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6368
SELECT - + COUNT ( ALL 84 ) AS col2
----
-1

query I rowsort
SELECT ALL 42 + + - 51 AS col1
----
-9

query I rowsort
SELECT - 35 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT DISTINCT COUNT( DISTINCT - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT COUNT ( DISTINCT - 65 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6372
SELECT ALL - 46 AS col1, 59 * 3 + + MIN( - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) - - ( 46 )
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-6372
SELECT ALL - 46 AS col1, 59 * 3 + + MIN ( - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) - - ( 46 )
----
-46
NULL

query I rowsort
SELECT - + 90
----
-90

query II rowsort
SELECT + 86, ( 75 ) AS col2
----
86
75

query I rowsort
SELECT ALL - 73 + + 41 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6376
SELECT - 59 AS col1, + COUNT( * ) AS col0
----
-59
1

skipif mysql # not compatible
query II rowsort label-6376
SELECT - 59 AS col1, + COUNT ( * ) AS col0
----
-59
1

query I rowsort
SELECT - 9
----
-9

query II rowsort
SELECT - 20 AS col1, + 72 col0
----
-20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL 58 - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL 58 - COUNT ( * )
----
57

query I rowsort
SELECT + 28 - - 27
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL MIN( ALL + + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL MIN ( ALL + + 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT + + COUNT( * ) - 42 + - - 70 * + + 61 * + - 61 * NULLIF ( + + 45, + 14 )
----
-11721191

skipif mysql # not compatible
query I rowsort label-6382
SELECT + + COUNT ( * ) - 42 + - - 70 * + + 61 * + - 61 * NULLIF ( + + 45, + 14 )
----
-11721191

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6383
SELECT DISTINCT 37 AS col0, + CAST( NULL AS SIGNED ) - + 23 + AVG ( + 48 ) AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-6383
SELECT DISTINCT 37 AS col0, + CAST ( NULL AS INTEGER ) - + 23 + AVG ( + 48 ) AS col2
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT + + NULLIF ( NULLIF ( - 38, - 29 ), + 59 ) * + ( MIN( ALL + ( 7 ) ) ) * + 39
----
-10374

skipif mysql # not compatible
query I rowsort label-6384
SELECT + + NULLIF ( NULLIF ( - 38, - 29 ), + 59 ) * + ( MIN ( ALL + ( 7 ) ) ) * + 39
----
-10374

query I rowsort
SELECT - - ( - ( - 84 ) ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6386
SELECT DISTINCT COUNT( * ) DIV 54 AS col1, - 9 AS col1
----
0
-9

skipif mysql # not compatible
query II rowsort label-6386
SELECT DISTINCT COUNT ( * ) / 54 AS col1, - 9 AS col1
----
0
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT DISTINCT - 40 * NULLIF ( + 67, + + CAST( NULL AS SIGNED ) )
----
-2680

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT - 40 * NULLIF ( + 67, + + CAST ( NULL AS INTEGER ) )
----
-2680

query I rowsort
SELECT + ( 88 ) + 35
----
123

query I rowsort
SELECT + 52 * + 4 * 21 * 84
----
366912

query I rowsort
SELECT - 58 * + 94
----
-5452

query I rowsort
SELECT ALL + 88 AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT - 5 + + - 31 + - ( + 47 ) + - 97 * + + ( + - CAST( 29 AS SIGNED ) )
----
2730

skipif mysql # not compatible
query I rowsort label-6392
SELECT - 5 + + - 31 + - ( + 47 ) + - 97 * + + ( + - CAST ( 29 AS INTEGER ) )
----
2730

query I rowsort
SELECT - 22 * + + 77
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT DISTINCT COUNT( * ) * 38
----
38

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT COUNT ( * ) * 38
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT ALL + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( - + 63 ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT DISTINCT 18 DIV + 64 + + + 98
----
98

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT 18 / + 64 + + + 98
----
98

query I rowsort
SELECT ALL ( - ( - ( 63 ) ) ) * + 97 + + + 76
----
6187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT - MIN( - CAST( NULL AS SIGNED ) ) * - 88 * + 17 * + + 23 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) * - 88 * + 17 * + + 23 * 23
----
NULL

query I rowsort
SELECT + 6 AS col0
----
6

query I rowsort
SELECT ALL + 94 AS col1
----
94

query I rowsort
SELECT ( - 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6403
SELECT + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6404
SELECT - COUNT( * ) + - + 75 AS col0, + 32 AS col2
----
-76
32

skipif mysql # not compatible
query II rowsort label-6404
SELECT - COUNT ( * ) + - + 75 AS col0, + 32 AS col2
----
-76
32

query I rowsort
SELECT ( - 79 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6406
SELECT - NULLIF ( + - 72, COUNT( + 1 ) * - CAST( + + 73 AS SIGNED ) ) DIV - + COUNT( * ) AS col0, SUM( + 24 )
----
-72
24

skipif mysql # not compatible
query II rowsort label-6406
SELECT - NULLIF ( + - 72, COUNT ( + 1 ) * - CAST ( + + 73 AS INTEGER ) ) / - + COUNT ( * ) AS col0, SUM ( + 24 )
----
-72
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL MAX( ALL + 58 ) * + - 66 + 85 AS col1
----
-3743

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL MAX ( ALL + 58 ) * + - 66 + 85 AS col1
----
-3743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6408
SELECT - MIN( ALL + - 39 ) - - CAST( CAST( + + 42 AS SIGNED ) AS SIGNED ) * + 46 AS col1
----
1971

skipif mysql # not compatible
query I rowsort label-6408
SELECT - MIN ( ALL + - 39 ) - - CAST ( CAST ( + + 42 AS INTEGER ) AS INTEGER ) * + 46 AS col1
----
1971

query I rowsort
SELECT - 69 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT + MIN( DISTINCT - 91 ) * + 32 - + 53
----
-2965

skipif mysql # not compatible
query I rowsort label-6410
SELECT + MIN ( DISTINCT - 91 ) * + 32 - + 53
----
-2965

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - 1 * - 52 * + SUM( ALL + - 44 ) * - 10
----
22880

skipif mysql # not compatible
query I rowsort label-6411
SELECT - 1 * - 52 * + SUM ( ALL + - 44 ) * - 10
----
22880

query I rowsort
SELECT ALL + + 40 col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT - - 63 DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-6413
SELECT - - 63 / - 63
----
-1

query I rowsort
SELECT ALL + + 54 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT ALL + - 81 * + COUNT( * ) + - 74 + - CAST( 9 AS SIGNED )
----
-164

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + - 81 * + COUNT ( * ) + - 74 + - CAST ( 9 AS INTEGER )
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT + 46 - - 12 DIV - + ( + 77 )
----
46

skipif mysql # not compatible
query I rowsort label-6416
SELECT + 46 - - 12 / - + ( + 77 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT - + 36 + - - COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6417
SELECT - + 36 + - - COUNT ( * ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT MAX( ALL + 5 ) + + 66 + 56 * + 82 - + CASE + COUNT( * ) WHEN - 77 THEN + 8 - - 16 ELSE NULL END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT MAX ( ALL + 5 ) + + 66 + 56 * + 82 - + CASE + COUNT ( * ) WHEN - 77 THEN + 8 - - 16 ELSE NULL END * 99
----
NULL

query