sqllogictest
Artifact Content
Not logged in

Artifact e00feb2f11d6b2f6f355a6185b24f1e6210dbbd5:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL + ( COUNT( * ) ) + - CASE 64 WHEN - 47 THEN - 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + ( COUNT ( * ) ) + - CASE 64 WHEN - 47 THEN - 5 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 66 + 95 AS col1
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2
SELECT ALL - + 50 + 53 AS col0, ( - CAST( - - COUNT( * ) AS SIGNED ) ) * + 15 AS col2
----
3
-15

skipif mysql # not compatible
query II rowsort label-2
SELECT ALL - + 50 + 53 AS col0, ( - CAST ( - - COUNT ( * ) AS INTEGER ) ) * + 15 AS col2
----
3
-15

query I rowsort
SELECT ALL + + 87 * + 35 AS col0
----
3045

query II rowsort
SELECT 34 AS col2, ( - 88 ) AS col0
----
34
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL + ( 82 ) + CAST( 7 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + ( 82 ) + CAST ( 7 AS INTEGER )
----
89

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

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

query II rowsort
SELECT + 21 AS col0, - 69
----
21
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8
SELECT 62 * 32 * + + SUM( - + 2 ) * - + 29 + + 22, + 75 AS col2
----
115094
75

skipif mysql # not compatible
query II rowsort label-8
SELECT 62 * 32 * + + SUM ( - + 2 ) * - + 29 + + 22, + 75 AS col2
----
115094
75

query I rowsort
SELECT 48 * + + 59
----
2832

query I rowsort
SELECT ALL - 63 - + 7 * + 19 * + + 51 * 80
----
-542703

query I rowsort
SELECT 57 - - 85
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-12
SELECT ALL 98 DIV + + 41 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL 98 / + + 41 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-13
SELECT ALL COUNT( * ) DIV - + 31 col1
----
0

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL COUNT ( * ) / - + 31 col1
----
0

query II rowsort
SELECT 58 AS col1, - 39 AS col2
----
58
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT ALL + 0 DIV 41 col1
----
0

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL + 0 / 41 col1
----
0

query I rowsort
SELECT DISTINCT 97 * + + 51
----
4947

query II rowsort
SELECT - 57 col1, 60 * + + 49 - 72 * - + 53 AS col0
----
-57
6756

query I rowsort
SELECT - 20 + - - 92
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + 26 - + 32 - + - COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-19
SELECT + 26 - + 32 - + - COUNT ( * ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-20
SELECT + 43 / + - CASE - + 82 WHEN + - 33 * 47 THEN - CASE - ( 2 ) WHEN 2 * - NULLIF ( COUNT( * ), - 37 ) THEN NULL ELSE + + 1 * - 24 * - 46 END / + 86 + + - 46 WHEN 43 THEN + 23 + - 9 * 68 * ( - ( - 61 ) ) * + COUNT( * ) + - MIN( + 9 ) * COUNT( ALL - 55 * 86 + 1 / - CASE + NULLIF ( 14, CAST( NULL AS SIGNED ) ) WHEN 56 THEN NULL ELSE 5 + 32 * 74 END ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT + 43 / + - CASE - + 82 WHEN + - 33 * 47 THEN - CASE - ( 2 ) WHEN 2 * - NULLIF ( COUNT ( * ), - 37 ) THEN NULL ELSE + + 1 * - 24 * - 46 END / + 86 + + - 46 WHEN 43 THEN + 23 + - 9 * 68 * ( - ( - 61 ) ) * + COUNT ( * ) + - MIN ( + 9 ) * COUNT ( ALL - 55 * 86 + 1 / - CASE + NULLIF ( 14, CAST ( NULL AS INTEGER ) ) WHEN 56 THEN NULL ELSE 5 + 32 * 74 END ) ELSE NULL END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT - MIN( DISTINCT 70 ) * + - 38 + CASE - 67 WHEN - 98 THEN - 79 WHEN - 47 / + 12 + + + 6 THEN NULL ELSE - 68 END col2
----
2592

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT - MIN ( DISTINCT 70 ) * + - 38 + CASE - 67 WHEN - 98 THEN - 79 WHEN - 47 / + 12 + + + 6 THEN NULL ELSE - 68 END col2
----
2592

query I rowsort
SELECT DISTINCT 40 + + NULLIF ( + + 53, + - COALESCE ( + 56, 21, - - 63 * + 67 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT + 84 * NULLIF ( - - COUNT( * ), + + 12 / - + 45 )
----
84

skipif mysql # not compatible
query I rowsort label-25
SELECT + 84 * NULLIF ( - - COUNT ( * ), + + 12 / - + 45 )
----
84

query I rowsort
SELECT + + 58 + + 39 + 95 + - 37 * 82
----
-2842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-27
SELECT + - CASE 56 WHEN - - 65 THEN 64 END * - 78 * - 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT + - CASE 56 WHEN - - 65 THEN 64 END * - 78 * - 80 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 78 * - 66 AS col2
----
-5148

query I rowsort
SELECT 19 * 78 + + 61 + + - 53 * + 28 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-30
SELECT ALL - 33 * - + 24 + + COUNT( * ) AS col2, 19 AS col0
----
793
19

skipif mysql # not compatible
query II rowsort label-30
SELECT ALL - 33 * - + 24 + + COUNT ( * ) AS col2, 19 AS col0
----
793
19

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL + 97 * + COUNT( * ) + 50
----
147

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL + 97 * + COUNT ( * ) + 50
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-32
SELECT + 87 + + + 5 - - COUNT( * ) * - + CAST( 22 AS SIGNED ) * - + 93 * ( + 18 ) AS col2, COUNT( * ) * + 71 AS col0
----
36920
71

skipif mysql # not compatible
query II rowsort label-32
SELECT + 87 + + + 5 - - COUNT ( * ) * - + CAST ( 22 AS INTEGER ) * - + 93 * ( + 18 ) AS col2, COUNT ( * ) * + 71 AS col0
----
36920
71

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-34
SELECT DISTINCT + CASE - - ( - 98 ) WHEN CASE COUNT( * ) WHEN - - 81 THEN + 51 END THEN + + 82 * - - SUM( + 58 ) * 28 + 75 + + 34 + - 21 + - 73 * 80 * + + CAST( + 14 AS DECIMAL ) END * + + 49 + + 44 * 18 AS col0, 53 * - + 5
----
NULL
-265

skipif mysql # not compatible
query II rowsort label-34
SELECT DISTINCT + CASE - - ( - 98 ) WHEN CASE COUNT ( * ) WHEN - - 81 THEN + 51 END THEN + + 82 * - - SUM ( + 58 ) * 28 + 75 + + 34 + - 21 + - 73 * 80 * + + CAST ( + 14 AS REAL ) END * + + 49 + + 44 * 18 AS col0, 53 * - + 5
----
NULL
-265

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-35
SELECT ALL + 58, 85 * + 73 * - SUM( + 33 ) * 76 DIV + 3 AS col0
----
58
-5187380

skipif mysql # not compatible
query II rowsort label-35
SELECT ALL + 58, 85 * + 73 * - SUM ( + 33 ) * 76 / + 3 AS col0
----
58
-5187380

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT DISTINCT + CASE + 6 WHEN 10 * COUNT( * ) THEN 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT + CASE + 6 WHEN 10 * COUNT ( * ) THEN 75 END
----
NULL

query I rowsort
SELECT ALL + 40 * - 16 * - ( 43 ) + + 38 AS col1
----
27558

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

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

query I rowsort
SELECT + 58 + 15
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT + ( CASE 25 WHEN + COUNT( * ) * + + 56 THEN NULL WHEN - 52 THEN + - 37 END ) * - + 18 - + + NULLIF ( + 36, + - 81 * 51 + 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT + ( CASE 25 WHEN + COUNT ( * ) * + + 56 THEN NULL WHEN - 52 THEN + - 37 END ) * - + 18 - + + NULLIF ( + 36, + - 81 * 51 + 18 ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL + NULLIF ( 92, - - COUNT( * ) )
----
92

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + NULLIF ( 92, - - COUNT ( * ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT + 4 * + COUNT( * ) + - 49
----
-45

skipif mysql # not compatible
query I rowsort label-44
SELECT + 4 * + COUNT ( * ) + - 49
----
-45

query I rowsort
SELECT - 86 * + 43 AS col0
----
-3698

query I rowsort
SELECT - 4 + 61 AS col1
----
57

query II rowsort
SELECT DISTINCT ( 21 ) AS col2, NULLIF ( - ( + 66 ), 19 )
----
21
-66

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

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL + COUNT ( * ) * + 49 * - 45 AS col2
----
-2205

query I rowsort
SELECT - ( 10 ) + + 96 - + 93
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL NULLIF ( 46, - 30 * + NULLIF ( + 46, + 66 ) + COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL NULLIF ( 46, - 30 * + NULLIF ( + 46, + 66 ) + COUNT ( * ) )
----
46

query II rowsort
SELECT DISTINCT + 13 * 21 AS col0, - 28 AS col0
----
273
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL NULLIF ( 29, + 38 * ( + 8 ) - - + 41 - 11 * + + COUNT( * ) * - + 85 * + COUNT( 40 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL NULLIF ( 29, + 38 * ( + 8 ) - - + 41 - 11 * + + COUNT ( * ) * - + 85 * + COUNT ( 40 ) ) AS col2
----
29

query I rowsort
SELECT - 50 + + 54
----
4

query I rowsort
SELECT ALL - 96 * - 3 * + 36 AS col1
----
10368

query I rowsort
SELECT - 62 * + 94 AS col2
----
-5828

query I rowsort
SELECT - 97 * + 99
----
-9603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL + 42 + + 88 * + COALESCE ( 11, + 77 + - MAX( DISTINCT - 3 ), - COUNT( * ) * + 80 + + 95 * + 51 )
----
1010

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL + 42 + + 88 * + COALESCE ( 11, + 77 + - MAX ( DISTINCT - 3 ), - COUNT ( * ) * + 80 + + 95 * + 51 )
----
1010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-60
SELECT ALL COUNT( DISTINCT 72 ), CAST( NULL AS SIGNED ) + + 33 + - COUNT( * ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-60
SELECT ALL COUNT ( DISTINCT 72 ), CAST ( NULL AS INTEGER ) + + 33 + - COUNT ( * ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT - MIN( ALL + 26 ) + + - 18 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-61
SELECT - MIN ( ALL + 26 ) + + - 18 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT DISTINCT + 42 + + MIN( 7 ) * - 85 AS col0
----
-553

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT + 42 + + MIN ( 7 ) * - 85 AS col0
----
-553

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL - 84 + + COUNT( * ) * + COUNT( * ) + 23 + COUNT( - 4 ) * + 71 col0
----
11

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - 84 + + COUNT ( * ) * + COUNT ( * ) + 23 + COUNT ( - 4 ) * + 71 col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-64
SELECT CAST( ( - + 9 ) AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-64
SELECT CAST ( ( - + 9 ) AS INTEGER ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT DISTINCT + 62 + ( - COALESCE ( - + 23, 37 + + CASE - ( + 58 ) WHEN 0 / + CASE + + 8 WHEN 8 * + 18 THEN - + MIN( - 76 ) - - 71 * + COUNT( * ) END THEN NULL ELSE - + 30 * + - 27 + 97 * - SUM( ALL + 20 ) END, - COUNT( DISTINCT - 19 ) * 77 ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT + 62 + ( - COALESCE ( - + 23, 37 + + CASE - ( + 58 ) WHEN 0 / + CASE + + 8 WHEN 8 * + 18 THEN - + MIN ( - 76 ) - - 71 * + COUNT ( * ) END THEN NULL ELSE - + 30 * + - 27 + 97 * - SUM ( ALL + 20 ) END, - COUNT ( DISTINCT - 19 ) * 77 ) ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT ALL ( COUNT( * ) ) + COUNT( * ) + - 95 * - 52 AS col0
----
4942

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL ( COUNT ( * ) ) + COUNT ( * ) + - 95 * - 52 AS col0
----
4942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-67
SELECT - - 29 - + 46, + COALESCE ( - 50, + + MAX( + + 56 ) DIV + 18 * - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + 94 * 93 * - 99 + CAST( - + COUNT( * ) AS SIGNED ) ) col2
----
-17
-50

skipif mysql # not compatible
query II rowsort label-67
SELECT - - 29 - + 46, + COALESCE ( - 50, + + MAX ( + + 56 ) / + 18 * - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 94 * 93 * - 99 + CAST ( - + COUNT ( * ) AS INTEGER ) ) col2
----
-17
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL + 18 * + 60 + - COUNT( + 3 ) AS col2
----
1079

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL + 18 * + 60 + - COUNT ( + 3 ) AS col2
----
1079

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT CASE - 47 WHEN + COALESCE ( COUNT( * ), - COALESCE ( 73, - 75 * - 40 * - 29 + - 13 + + 69, 92 ) - - COUNT( * ), + - 92 + + 49 ) + + - 32 THEN - 56 WHEN 80 * 94 + - 47 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-69
SELECT CASE - 47 WHEN + COALESCE ( COUNT ( * ), - COALESCE ( 73, - 75 * - 40 * - 29 + - 13 + + 69, 92 ) - - COUNT ( * ), + - 92 + + 49 ) + + - 32 THEN - 56 WHEN 80 * 94 + - 47 THEN NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT + 18 + - 72 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-72
SELECT ALL + + 53 DIV + + 74 + - 40 col1
----
-40

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL + + 53 / + + 74 + - 40 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT + SUM( + 98 ) * ( - - 4 ) - + - 68
----
460

skipif mysql # not compatible
query I rowsort label-73
SELECT + SUM ( + 98 ) * ( - - 4 ) - + - 68
----
460

onlyif mysql # aggregate syntax: 
query II rowsort label-74
SELECT ALL - + 91 * 19 AS col1, + 16 * - COUNT( * )
----
-1729
-16

skipif mysql # not compatible
query II rowsort label-74
SELECT ALL - + 91 * 19 AS col1, + 16 * - COUNT ( * )
----
-1729
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-75
SELECT + 75 - - + 29 + + COUNT( * ) DIV - + 39 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-75
SELECT + 75 - - + 29 + + COUNT ( * ) / - + 39 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT - 24 * - - MIN( DISTINCT - + 94 ) + - 12 - COUNT( * ) AS col2
----
2243

skipif mysql # not compatible
query I rowsort label-76
SELECT - 24 * - - MIN ( DISTINCT - + 94 ) + - 12 - COUNT ( * ) AS col2
----
2243

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-77
SELECT ALL - CAST( 67 AS SIGNED ) DIV - ( - - 57 ) - + 51 * - + 17
----
868

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - CAST ( 67 AS INTEGER ) / - ( - - 57 ) - + 51 * - + 17
----
868

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT ALL - 50 DIV 88 - - - 83 * 57
----
-4731

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL - 50 / 88 - - - 83 * 57
----
-4731

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

query I rowsort
SELECT - 87 * - 31 + ( + 57 ) + + + 33
----
2787

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

query I rowsort
SELECT + 99 - - 42
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT + 11 * + - COUNT( * ) * - CAST( - 11 AS SIGNED ) AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-83
SELECT + 11 * + - COUNT ( * ) * - CAST ( - 11 AS INTEGER ) AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT ALL 22 * - MAX( - 95 )
----
2090

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL 22 * - MAX ( - 95 )
----
2090

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

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

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

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

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

query II rowsort
SELECT 2 col1, 31
----
2
31

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT 95 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-89
SELECT 95 / 62 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-90
SELECT COUNT( * ) * - MIN( + 38 ) + + - CAST( - 58 AS SIGNED ) + 15 + + + COUNT( * ) + + 32 * - + COALESCE ( + 79, + + 64 + - 8 * - 96 ) * - 26 + + 68 * + 44 AS col1
----
68756

skipif mysql # not compatible
query I rowsort label-90
SELECT COUNT ( * ) * - MIN ( + 38 ) + + - CAST ( - 58 AS INTEGER ) + 15 + + + COUNT ( * ) + + 32 * - + COALESCE ( + 79, + + 64 + - 8 * - 96 ) * - 26 + + 68 * + 44 AS col1
----
68756

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

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

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

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

query I rowsort
SELECT DISTINCT + 28 * + 88 AS col0
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT DISTINCT 38 + - 54 * MAX( DISTINCT + + 35 ) AS col2
----
-1852

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT 38 + - 54 * MAX ( DISTINCT + + 35 ) AS col2
----
-1852

query I rowsort
SELECT ALL - 64 * - 73
----
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL + NULLIF ( + 64, + - 74 * + 89 * + 38 + + 9 ) + + MAX( DISTINCT - 67 ) * 2 + - 79 * MAX( + 95 )
----
-7575

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + NULLIF ( + 64, + - 74 * + 89 * + 38 + + 9 ) + + MAX ( DISTINCT - 67 ) * 2 + - 79 * MAX ( + 95 )
----
-7575

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT ALL MAX( DISTINCT 34 ) + - - 75 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL MAX ( DISTINCT 34 ) + - - 75 AS col2
----
109

query II rowsort
SELECT - + 44 AS col2, 64 AS col2
----
-44
64

query I rowsort
SELECT 59 * - - 20 AS col1
----
1180

query I rowsort
SELECT ALL - NULLIF ( + 11, 17 ) + - 56
----
-67

query I rowsort
SELECT ALL - - 31 * - ( + ( - 0 ) ) + - + 52 * + 26 AS col1
----
-1352

query I rowsort
SELECT ALL + - 69 + + 41
----
-28

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

skipif mysql # not compatible
query I rowsort label-104
SELECT COUNT ( * ) + - - 67 AS col0
----
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-106
SELECT ALL - COALESCE ( + 32, - SUM( DISTINCT 84 ) * 35 ) / CAST( NULL AS SIGNED ) / MAX( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL - COALESCE ( + 32, - SUM ( DISTINCT 84 ) * 35 ) / CAST ( NULL AS INTEGER ) / MAX ( + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT DISTINCT 18 AS col2, 13
----
18
13

query I rowsort
SELECT 8 + - + 70 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT ALL + 37 - + - 46 * + 79 * - SUM( ALL 53 ) AS col0
----
-192565

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + 37 - + - 46 * + 79 * - SUM ( ALL 53 ) AS col0
----
-192565

query I rowsort
SELECT + - COALESCE ( + 5, + + 94 ) AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-111
SELECT ALL - 56 - - 77 DIV + 86 - - 40 * - CASE + 85 WHEN - 97 THEN 28 DIV - CASE ( - + 34 ) WHEN - MAX( ALL 58 ) THEN NULL WHEN + + 97 * - - 40 + - 72 THEN 16 ELSE - + COUNT( * ) * - CASE + - 93 WHEN + ( + 4 ) * - + CASE - - 52 WHEN COALESCE ( 4, ( - 16 ) + + 74 ) DIV + 21 THEN NULL WHEN 2 THEN NULL ELSE - ( + 5 ) END DIV 60 + 71 + 74 THEN + 78 WHEN + COUNT( * ) THEN 86 + + 44 * 44 ELSE 5 END - 34 * 69 END + 21 ELSE 60 DIV 17 END
----
-176

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL - 56 - - 77 / + 86 - - 40 * - CASE + 85 WHEN - 97 THEN 28 / - CASE ( - + 34 ) WHEN - MAX ( ALL 58 ) THEN NULL WHEN + + 97 * - - 40 + - 72 THEN 16 ELSE - + COUNT ( * ) * - CASE + - 93 WHEN + ( + 4 ) * - + CASE - - 52 WHEN COALESCE ( 4, ( - 16 ) + + 74 ) / + 21 THEN NULL WHEN 2 THEN NULL ELSE - ( + 5 ) END / 60 + 71 + 74 THEN + 78 WHEN + COUNT ( * ) THEN 86 + + 44 * 44 ELSE 5 END - 34 * 69 END + 21 ELSE 60 / 17 END
----
-176

query I rowsort
SELECT 84 * + 90 AS col1
----
7560

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT - - 24 * - 34 * - + MIN( DISTINCT 53 ) * + 3 - + ( + 51 ) + - + MIN( - - 86 ) + - 51
----
129556

skipif mysql # not compatible
query I rowsort label-113
SELECT - - 24 * - 34 * - + MIN ( DISTINCT 53 ) * + 3 - + ( + 51 ) + - + MIN ( - - 86 ) + - 51
----
129556

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT - 84 * 90 + - 97 * COUNT( ALL - 0 )
----
-7657

skipif mysql # not compatible
query I rowsort label-114
SELECT - 84 * 90 + - 97 * COUNT ( ALL - 0 )
----
-7657

query I rowsort
SELECT ALL 93 * + 45
----
4185

query I rowsort
SELECT 64 * + - 63
----
-4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-117
SELECT + 59 DIV + + 89 + COUNT( * ) + 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-117
SELECT + 59 / + + 89 + COUNT ( * ) + 54 AS col1
----
55

query II rowsort
SELECT ALL - 47 AS col2, 34 * - - 33 AS col2
----
-47
1122

query I rowsort
SELECT 86 * - 86
----
-7396

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ( 85 ) * 65 - - 75 - - - MAX( + 46 ) * 29 + 90 - 65 + - ( + 68 ) * - + COUNT( * ) * 77 * COALESCE ( + ( 26 ), + 79 - + + 39, - 33 + - 12 - - 50 + 75 ) * + 23 - + - 53 * 20 * - 94 * 42 AS col1
----
-1049461

skipif mysql # not compatible
query I rowsort label-120
SELECT ( 85 ) * 65 - - 75 - - - MAX ( + 46 ) * 29 + 90 - 65 + - ( + 68 ) * - + COUNT ( * ) * 77 * COALESCE ( + ( 26 ), + 79 - + + 39, - 33 + - 12 - - 50 + 75 ) * + 23 - + - 53 * 20 * - 94 * 42 AS col1
----
-1049461

onlyif mysql # aggregate syntax: 
query II rowsort label-121
SELECT 74 AS col2, ( + + COUNT( - 55 ) )
----
74
1

skipif mysql # not compatible
query II rowsort label-121
SELECT 74 AS col2, ( + + COUNT ( - 55 ) )
----
74
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-122
SELECT MIN( + 96 ) + - 87 + - MAX( DISTINCT 71 ) DIV CAST( - 61 AS SIGNED ) DIV - ( 85 )
----
9

skipif mysql # not compatible
query I rowsort label-122
SELECT MIN ( + 96 ) + - 87 + - MAX ( DISTINCT 71 ) / CAST ( - 61 AS INTEGER ) / - ( 85 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-123
SELECT 76 * + 67 AS col2, COUNT( * ) DIV - 63 - + MAX( 65 ) AS col1
----
5092
-65

skipif mysql # not compatible
query II rowsort label-123
SELECT 76 * + 67 AS col2, COUNT ( * ) / - 63 - + MAX ( 65 ) AS col1
----
5092
-65

query I rowsort
SELECT ALL 33 + - 13
----
20

query II rowsort
SELECT + 43 AS col1, 54
----
43
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-126
SELECT - 33 * 58 + + 10 + + + CAST( - + 10 AS SIGNED )
----
-1914

skipif mysql # not compatible
query I rowsort label-126
SELECT - 33 * 58 + + 10 + + + CAST ( - + 10 AS INTEGER )
----
-1914

onlyif mysql # aggregate syntax: 
query II rowsort label-127
SELECT 69, CASE 80 WHEN - - 54 * NULLIF ( 18, - 70 ) THEN 74 WHEN - 44 THEN - 28 + - ( COUNT( * ) ) END AS col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-127
SELECT 69, CASE 80 WHEN - - 54 * NULLIF ( 18, - 70 ) THEN 74 WHEN - 44 THEN - 28 + - ( COUNT ( * ) ) END AS col1
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ALL MIN( DISTINCT ( + 36 ) ) + - 9 * COUNT( * ) * + + 59 * ( - 33 )
----
17559

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL MIN ( DISTINCT ( + 36 ) ) + - 9 * COUNT ( * ) * + + 59 * ( - 33 )
----
17559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-129
SELECT ALL 97 + - + 87 + + 72 + 22 / + 68 * CAST( NULL AS SIGNED ) * + ( 64 ) * + 40 + + - 24 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL 97 + - + 87 + + 72 + 22 / + 68 * CAST ( NULL AS INTEGER ) * + ( 64 ) * + 40 + + - 24 * - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-130
SELECT ALL 61 + + + 51 * - - MIN( - NULLIF ( - CAST( - - 7 AS SIGNED ), - CAST( NULL AS SIGNED ) ) ) AS col0
----
418

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL 61 + + + 51 * - - MIN ( - NULLIF ( - CAST ( - - 7 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ) AS col0
----
418

query I rowsort
SELECT ALL - ( 82 ) + - 61
----
-143

query I rowsort
SELECT - 51 * - - 65 * + 82 AS col0
----
-271830

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT DISTINCT + 34 + - 20 + + COUNT( * ) + + - 80 * 90 * + 95 + + + 82 * 62 + 81 AS col2
----
-678820

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT + 34 + - 20 + + COUNT ( * ) + + - 80 * 90 * + 95 + + + 82 * 62 + 81 AS col2
----
-678820

query II rowsort
SELECT 44 AS col2, 86
----
44
86

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL 47 + + 79 + CASE + - 42 WHEN - 11 THEN NULL WHEN + 20 THEN - 74 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL 47 + + 79 + CASE + - 42 WHEN - 11 THEN NULL WHEN + 20 THEN - 74 ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - ( - ( - 90 ) ) + + - 48 * - - 60 * - 11 * - COUNT( + - 90 )
----
-31770

skipif mysql # not compatible
query I rowsort label-136
SELECT - ( - ( - 90 ) ) + + - 48 * - - 60 * - 11 * - COUNT ( + - 90 )
----
-31770

query II rowsort
SELECT ALL 7 AS col0, 90
----
7
90

query I rowsort
SELECT ALL + ( 52 ) * - 8 + - 95 + + 67
----
-444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT 30 DIV MIN( 26 ) * - - 24 + COALESCE ( + - COUNT( * ), - 12, + 35 + + 35 DIV - 78 + - - COUNT( * ) ) + - 66 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-139
SELECT 30 / MIN ( 26 ) * - - 24 + COALESCE ( + - COUNT ( * ), - 12, + 35 + + 35 / - 78 + - - COUNT ( * ) ) + - 66 AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT 61 + 78 + - 80 * + SUM( - 1 ) * + + 17 * CAST( NULL AS SIGNED ) * + 78 / - 52 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT 61 + 78 + - 80 * + SUM ( - 1 ) * + + 17 * CAST ( NULL AS INTEGER ) * + 78 / - 52 - - COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-142
SELECT + 19, 82 * - + COUNT( DISTINCT + + 11 ) col2
----
19
-82

skipif mysql # not compatible
query II rowsort label-142
SELECT + 19, 82 * - + COUNT ( DISTINCT + + 11 ) col2
----
19
-82

query I rowsort
SELECT 9 - 74 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT - 69 col0, + 58 + 81 * 69 * - 22 * - COUNT( * )
----
-69
123016

skipif mysql # not compatible
query II rowsort label-144
SELECT - 69 col0, + 58 + 81 * 69 * - 22 * - COUNT ( * )
----
-69
123016

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT - - 61 * + COALESCE ( + - COUNT( * ), + - 23 ) * - 91 + + 80 AS col1
----
5631

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT - - 61 * + COALESCE ( + - COUNT ( * ), + - 23 ) * - 91 + + 80 AS col1
----
5631

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

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

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

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

query I rowsort
SELECT DISTINCT ( 97 ) AS col1
----
97

query I rowsort
SELECT DISTINCT - - 81 col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT 79 DIV - 77 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-150
SELECT 79 / - 77 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-151
SELECT ALL - + CASE - + 43 WHEN - ( - - CASE 8 WHEN - 12 * - 33 + + 93 THEN - COUNT( * ) END ) * + 57 * + 34 + 52 - - - 92 - 77 THEN + MAX( ALL + - 48 ) WHEN + ( - + COUNT( 41 ) ) * - 78 THEN 65 ELSE + CAST( NULL AS DECIMAL ) / + + 95 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - + CASE - + 43 WHEN - ( - - CASE 8 WHEN - 12 * - 33 + + 93 THEN - COUNT ( * ) END ) * + 57 * + 34 + 52 - - - 92 - 77 THEN + MAX ( ALL + - 48 ) WHEN + ( - + COUNT ( 41 ) ) * - 78 THEN 65 ELSE + CAST ( NULL AS REAL ) / + + 95 END AS col1
----
NULL

query I rowsort
SELECT - 64 - + 37 * + - 53
----
1897

query I rowsort
SELECT NULLIF ( + - 10, + - 62 - - + NULLIF ( 5, + + 67 ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL MIN( DISTINCT 96 ) * + 26
----
2496

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL MIN ( DISTINCT 96 ) * + 26
----
2496

query I rowsort
SELECT - ( + 70 ) * - + 15 AS col0
----
1050

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT - ( - 38 ) DIV + + 59
----
0

skipif mysql # not compatible
query I rowsort label-157
SELECT - ( - 38 ) / + + 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-158
SELECT + 27 * + + CAST( + COUNT( * ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-158
SELECT + 27 * + + CAST ( + COUNT ( * ) AS INTEGER )
----
27

query I rowsort
SELECT ALL 67 * CASE 91 WHEN 95 + - 26 THEN 81 END + + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT DISTINCT + 55 * - + 60 + + COUNT( * )
----
-3299

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT + 55 * - + 60 + + COUNT ( * )
----
-3299

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL COUNT( * ) * - 22 + + COALESCE ( + + 43, - + 98 * - 70 )
----
21

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL COUNT ( * ) * - 22 + + COALESCE ( + + 43, - + 98 * - 70 )
----
21

query I rowsort
SELECT + 67 * + 44 AS col2
----
2948

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT ALL + 6 * SUM( - 26 ) + - COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL + 6 * SUM ( - 26 ) + - COUNT ( * )
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT ALL - 10 + - ( ( + + 34 ) ) - + COUNT( * ) - + ( + - ( + COALESCE ( NULLIF ( 23, + COALESCE ( - - COUNT( * ), COUNT( * ) * + ( + 29 ) * - ( 22 ) - + + 69 ) ), ( + + 93 ) * + + COALESCE ( 86, - COUNT( * ) ), + + 0, COUNT( 10 ) ) ) ) + - + NULLIF ( 63, ( - COUNT( * ) ) ) + 85 * 70 * + 72
----
428315

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL - 10 + - ( ( + + 34 ) ) - + COUNT ( * ) - + ( + - ( + COALESCE ( NULLIF ( 23, + COALESCE ( - - COUNT ( * ), COUNT ( * ) * + ( + 29 ) * - ( 22 ) - + + 69 ) ), ( + + 93 ) * + + COALESCE ( 86, - COUNT ( * ) ), + + 0, COUNT ( 10 ) ) ) ) + - + NULLIF ( 63, ( - COUNT ( * ) ) ) + 85 * 70 * + 72
----
428315

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT + MAX( + 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-165
SELECT + MAX ( + 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT - 34 * COUNT( * ) + - - ( - - ( + 2 ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-166
SELECT - 34 * COUNT ( * ) + - - ( - - ( + 2 ) ) AS col2
----
-32

query I rowsort
SELECT + 37 * - + 40 col0
----
-1480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT DISTINCT - ( - 78 ) - 3 + 18 * + COUNT( * ) + - 12 - 79 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - ( - 78 ) - 3 + 18 * + COUNT ( * ) + - 12 - 79 AS col1
----
2

query I rowsort
SELECT ALL 54 * ( 38 ) col2
----
2052

query II rowsort
SELECT ALL - ( + 82 ) AS col1, - 94 AS col0
----
-82
-94

query II rowsort
SELECT + + 75 + 58, + 16 AS col0
----
133
16

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT - 12 * MAX( ALL - 77 ) * 79
----
72996

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - 12 * MAX ( ALL - 77 ) * 79
----
72996

query I rowsort
SELECT + ( 17 ) * + 7 * + - 95
----
-11305

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + 95 + + + COALESCE ( - 43, - MIN( DISTINCT - 24 ) ) + 58 + 78 * + - 20 + 88 AS col2
----
-1362

skipif mysql # not compatible
query I rowsort label-175
SELECT + 95 + + + COALESCE ( - 43, - MIN ( DISTINCT - 24 ) ) + 58 + 78 * + - 20 + 88 AS col2
----
-1362

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL CASE COUNT( ALL 73 ) WHEN + 87 + + 43 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL CASE COUNT ( ALL 73 ) WHEN + 87 + + 43 THEN + COUNT ( * ) END AS col1
----
NULL

query II rowsort
SELECT - + 85 + - - 47, + 52 col0
----
-38
52

query III rowsort
SELECT + 53 * + 62 AS col2, + COALESCE ( + - 51, - 89 ), - + 5 col0
----
3286
-51
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT DISTINCT + 35 DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT + 35 / + 95 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT - 40 + - 54 DIV + + 76 + + + 26 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-180
SELECT - 40 + - 54 / + + 76 + + + 26 AS col1
----
-14

query I rowsort
SELECT DISTINCT + 59 * - 58 col1
----
-3422

onlyif mysql # DIV for integer division: 
query II rowsort label-182
SELECT ALL 13 DIV - - 92 + - - 4 col1, + 77
----
4
77

skipif mysql # not compatible
query II rowsort label-182
SELECT ALL 13 / - - 92 + - - 4 col1, + 77
----
4
77

query I rowsort
SELECT + ( + 63 ) col2
----
63

query I rowsort
SELECT + 63 * - 65 + - 17 + ( + 9 ) + + - ( - 75 ) * - 49 * 95 AS col0
----
-353228

query I rowsort
SELECT - 51 * 0 AS col2
----
0

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

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

skipif mysql # not compatible
query I rowsort label-187
SELECT + MAX ( - - 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-188
SELECT ALL - 28 DIV - - 98 * - COUNT( * ) * 24 + - + 70 - - 21 + + 10
----
-39

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL - 28 / - - 98 * - COUNT ( * ) * 24 + - + 70 - - 21 + + 10
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-189
SELECT DISTINCT 25 DIV + + 29 + 63 + - + 62 * COALESCE ( 50, - - 53 + + 99 * - + 69 ) * - CAST( 11 AS SIGNED ) - - + COUNT( * )
----
34164

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT 25 / + + 29 + 63 + - + 62 * COALESCE ( 50, - - 53 + + 99 * - + 69 ) * - CAST ( 11 AS INTEGER ) - - + COUNT ( * )
----
34164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - 92 + + - COUNT( * ) - + - 29
----
-64

skipif mysql # not compatible
query I rowsort label-191
SELECT - 92 + + - COUNT ( * ) - + - 29
----
-64

query I rowsort
SELECT - 50 * + + 79 AS col2
----
-3950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-193
SELECT ALL + 62 * + 39 + + CAST( COUNT( * ) AS SIGNED ) DIV + 33 AS col0
----
2418

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + 62 * + 39 + + CAST ( COUNT ( * ) AS INTEGER ) / + 33 AS col0
----
2418

query I rowsort
SELECT 15 * ( - 82 ) + + 84 + 87 * - 8 + + 46 AS col0
----
-1796

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT + CASE + + 77 WHEN - MIN( + 32 ) * - COUNT( * ) THEN NULL WHEN + 33 * ( + 50 ) + 42 THEN - - COALESCE ( - 82, + 6, + - 62 + + 23 ) - - ( - 36 ) END + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-195
SELECT + CASE + + 77 WHEN - MIN ( + 32 ) * - COUNT ( * ) THEN NULL WHEN + 33 * ( + 50 ) + 42 THEN - - COALESCE ( - 82, + 6, + - 62 + + 23 ) - - ( - 36 ) END + - 53 AS col2
----
NULL

query I rowsort
SELECT - 20 * - + 40 AS col2
----
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), - 11 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT ALL + CASE - CASE 24 WHEN - + COUNT( * ) * 59 + + + ( + - COALESCE ( 95, + 75 ) ) + CASE - 45 WHEN + 8 * 27 - - - 69 THEN + 48 ELSE NULL END + - + COALESCE ( + + AVG ( + - 17 ), - MAX( 95 ) + 61 ) THEN NULL ELSE - - 25 * + CAST( + - 73 AS SIGNED ) + 53 END WHEN + + 29 * + 17 + 70 + - CAST( + 19 + ( COUNT( ALL - 36 ) ) AS SIGNED ) THEN NULL ELSE + COUNT( * ) END col2
----
1

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + CASE - CASE 24 WHEN - + COUNT ( * ) * 59 + + + ( + - COALESCE ( 95, + 75 ) ) + CASE - 45 WHEN + 8 * 27 - - - 69 THEN + 48 ELSE NULL END + - + COALESCE ( + + AVG ( + - 17 ), - MAX ( 95 ) + 61 ) THEN NULL ELSE - - 25 * + CAST ( + - 73 AS INTEGER ) + 53 END WHEN + + 29 * + 17 + 70 + - CAST ( + 19 + ( COUNT ( ALL - 36 ) ) AS INTEGER ) THEN NULL ELSE + COUNT ( * ) END col2
----
1

query I rowsort
SELECT + 14 + 23 * ( - + 21 )
----
-469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-201
SELECT - + CAST( - - 12 AS SIGNED ) * + 27 * - - ( - COALESCE ( - 39, 49, - 39 - - SUM( - 23 ) * - 38 * + 62 ) )
----
-12636

skipif mysql # not compatible
query I rowsort label-201
SELECT - + CAST ( - - 12 AS INTEGER ) * + 27 * - - ( - COALESCE ( - 39, 49, - 39 - - SUM ( - 23 ) * - 38 * + 62 ) )
----
-12636

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT - CAST( NULL AS SIGNED ) * + - 10 + + 81 * 0 / + + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT - CAST ( NULL AS INTEGER ) * + - 10 + + 81 * 0 / + + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL - CASE 46 WHEN - + 28 THEN - - COALESCE ( - ( + MAX( DISTINCT + - 75 ) ), - ( - 19 ), + 81 ) WHEN - + ( - 80 ) THEN NULL END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL - CASE 46 WHEN - + 28 THEN - - COALESCE ( - ( + MAX ( DISTINCT + - 75 ) ), - ( - 19 ), + 81 ) WHEN - + ( - 80 ) THEN NULL END * 13
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT DISTINCT - COALESCE ( + 97, - MIN( - - 35 ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - COALESCE ( + 97, - MIN ( - - 35 ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT SUM( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-207
SELECT SUM ( 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT + + COALESCE ( - ( + 17 ), - + 66 DIV - - 6 ) + 81 + 61 + COUNT( * ) * + COALESCE ( + CASE + 63 WHEN - - 77 THEN 5 END, - 93 ) + - + 88 + + + 87 * - COUNT( * ) col2
----
-143

skipif mysql # not compatible
query I rowsort label-208
SELECT + + COALESCE ( - ( + 17 ), - + 66 / - - 6 ) + 81 + 61 + COUNT ( * ) * + COALESCE ( + CASE + 63 WHEN - - 77 THEN 5 END, - 93 ) + - + 88 + + + 87 * - COUNT ( * ) col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT + - 63 + - + COUNT( * ) * 11 + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-209
SELECT + - 63 + - + COUNT ( * ) * 11 + - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT DISTINCT + MAX( + + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT + MAX ( + + 25 )
----
25

query I rowsort
SELECT - + 94 * - 16 AS col0
----
1504

query II rowsort
SELECT - 4 AS col1, - 59 + 61 col1
----
-4
2

query I rowsort
SELECT + 85 * + + 41 + 88
----
3573

query I rowsort
SELECT DISTINCT 54 * - + 98 * 46 AS col1
----
-243432

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL - MIN( 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL - MIN ( 60 ) AS col0
----
-60

query I rowsort
SELECT ALL 72 + + 68 + - 71 + + 77 AS col1
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-217
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 52
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-217
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 52
----
NULL
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-218
SELECT 93 * - + COALESCE ( COALESCE ( COUNT( * ), - 12 ), + 3 * MAX( ALL 85 ) * CAST( NULL AS SIGNED ) * + 79 * + - 52, + + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) * - 78 + 52 ) * - 9 * + 47 + 65 + + 45 AS col2, - 6
----
39449
-6

skipif mysql # not compatible
query II rowsort label-218
SELECT 93 * - + COALESCE ( COALESCE ( COUNT ( * ), - 12 ), + 3 * MAX ( ALL 85 ) * CAST ( NULL AS INTEGER ) * + 79 * + - 52, + + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) * - 78 + 52 ) * - 9 * + 47 + 65 + + 45 AS col2, - 6
----
39449
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL 22 + 56 + + - CASE - 19 WHEN - MAX( DISTINCT + 92 ) THEN NULL ELSE - COUNT( * ) END + - + 30
----
49

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL 22 + 56 + + - CASE - 19 WHEN - MAX ( DISTINCT + 92 ) THEN NULL ELSE - COUNT ( * ) END + - + 30
----
49

query I rowsort
SELECT 60 - - COALESCE ( 74, - + 63 + + + 79 )
----
134

query I rowsort
SELECT 15 * + 58 AS col0
----
870

query I rowsort
SELECT DISTINCT 21 + + 75 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-223
SELECT ( CAST( NULL AS SIGNED ) ) * + MIN( 62 ) * - + 38 * 56 * - COUNT( * ) / + ( + - COUNT( * ) ) * MAX( - 65 ) * MIN( DISTINCT + CAST( 57 AS DECIMAL ) ) + - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT ( CAST ( NULL AS INTEGER ) ) * + MIN ( 62 ) * - + 38 * 56 * - COUNT ( * ) / + ( + - COUNT ( * ) ) * MAX ( - 65 ) * MIN ( DISTINCT + CAST ( 57 AS REAL ) ) + - 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-224
SELECT COUNT( * ) - ( + 44 ) + - COUNT( * ) AS col2, - 41 * - CASE 48 WHEN + 21 * - + CASE - + COUNT( * ) WHEN - 3 THEN + - 7 * + + ( + 69 ) END * 30 - 35 THEN + 46 END AS col2
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-224
SELECT COUNT ( * ) - ( + 44 ) + - COUNT ( * ) AS col2, - 41 * - CASE 48 WHEN + 21 * - + CASE - + COUNT ( * ) WHEN - 3 THEN + - 7 * + + ( + 69 ) END * 30 - 35 THEN + 46 END AS col2
----
-44
NULL

query I rowsort
SELECT ALL 74 + + ( - 57 ) AS col1
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT DISTINCT 9 - + + 90 * + ( + 53 ) * COUNT( * )
----
-4761

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT 9 - + + 90 * + ( + 53 ) * COUNT ( * )
----
-4761

query I rowsort
SELECT 39 * + 9
----
351

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

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

query I rowsort
SELECT 17 * + 54 AS col0
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL MIN( - 62 ) * - 52 * + + 77 - - 9 + 46 AS col2
----
248303

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL MIN ( - 62 ) * - 52 * + + 77 - - 9 + 46 AS col2
----
248303

query I rowsort
SELECT ALL - + COALESCE ( 97, - AVG ( + 17 ) ) * + + 79 + + 41 + + CASE + + 69 WHEN - - 9 THEN + + 60 END * - 36 - + 19
----
NULL

query I rowsort
SELECT 28 * - 88 * - + 31
----
76384

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT ALL - 62 DIV + 4
----
-15

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - 62 / + 4
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT + CASE 14 WHEN + + SUM( ALL 1 ) THEN + - SUM( + 17 ) ELSE - + 63 * - + ( + - 50 ) END + - 92 * - COUNT( * ) AS col2
----
-3058

skipif mysql # not compatible
query I rowsort label-235
SELECT + CASE 14 WHEN + + SUM ( ALL 1 ) THEN + - SUM ( + 17 ) ELSE - + 63 * - + ( + - 50 ) END + - 92 * - COUNT ( * ) AS col2
----
-3058

query II rowsort
SELECT ALL - 29 * - 78, - ( - + 43 ) AS col0
----
2262
43

query I rowsort
SELECT 8 + + 7
----
15

query I rowsort
SELECT - 60 * + 50
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT DISTINCT - - COUNT( * ) * + + 8 + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - - COUNT ( * ) * + + 8 + COUNT ( * )
----
9

query I rowsort
SELECT ALL + - 42 + - COALESCE ( + 71, - 73, + ( - 34 ) )
----
-113

query II rowsort
SELECT 84 - 69 AS col0, ( + 35 )
----
15
35

query I rowsort
SELECT DISTINCT + - 92 + + 57
----
-35

query I rowsort
SELECT ALL - COALESCE ( + 35, - ( - 43 ) ) AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT + ( 2 ) DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-244
SELECT + ( 2 ) / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT DISTINCT + 35 + + ( - COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT + 35 + + ( - COUNT ( * ) )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-246
SELECT + 93 + - + COUNT( * ) + - - 76 * + - CASE + - COUNT( * ) WHEN 18 THEN + - SUM( ALL + + 16 ) WHEN + - COALESCE ( - ( + - 96 ), ( 53 ) + + 57 - + - 55 - + + 3 * + - CAST( ( - 36 ) AS SIGNED ) * + 59 - 75 + + - 56 + 27 * CAST( NULL AS SIGNED ) * + NULLIF ( 31, - + 13 ) + + + 52 ) THEN 12 WHEN - 84 THEN NULL END * + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-246
SELECT + 93 + - + COUNT ( * ) + - - 76 * + - CASE + - COUNT ( * ) WHEN 18 THEN + - SUM ( ALL + + 16 ) WHEN + - COALESCE ( - ( + - 96 ), ( 53 ) + + 57 - + - 55 - + + 3 * + - CAST ( ( - 36 ) AS INTEGER ) * + 59 - 75 + + - 56 + 27 * CAST ( NULL AS INTEGER ) * + NULLIF ( 31, - + 13 ) + + + 52 ) THEN 12 WHEN - 84 THEN NULL END * + 67 AS col2
----
NULL

query I rowsort
SELECT 5 - - + 22
----
27

query II rowsort
SELECT - 14 AS col0, 42 * 24
----
-14
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT DISTINCT 34 + + - COUNT( * ) + 22 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT 34 + + - COUNT ( * ) + 22 AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-250
SELECT 95 + - 55 + 45 * + + 85 + 63 DIV - 87 * + + 23 * + 75, + COUNT( * ) + - 76 AS col2
----
3865
-75

skipif mysql # not compatible
query II rowsort label-250
SELECT 95 + - 55 + 45 * + + 85 + 63 / - 87 * + + 23 * + 75, + COUNT ( * ) + - 76 AS col2
----
3865
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT DISTINCT MAX( + - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT MAX ( + - 25 )
----
-25

query I rowsort
SELECT DISTINCT 21 * - + 15
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT 20 * + COALESCE ( - COUNT( * ), + ( + - 18 ) * + 9 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-253
SELECT 20 * + COALESCE ( - COUNT ( * ), + ( + - 18 ) * + 9 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT 91 + - COUNT( * ) + - 52 * - 90 AS col2
----
4770

skipif mysql # not compatible
query I rowsort label-254
SELECT 91 + - COUNT ( * ) + - 52 * - 90 AS col2
----
4770

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

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

query I rowsort
SELECT 10 * 40
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT MIN( + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-257
SELECT MIN ( + 17 ) AS col0
----
17

query I rowsort
SELECT DISTINCT 90 * + 71 AS col1
----
6390

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT ALL - + 25 AS col2, 80 * + + 78 * - COUNT( * ) * - 28 AS col0
----
-25
174720

skipif mysql # not compatible
query II rowsort label-259
SELECT ALL - + 25 AS col2, 80 * + + 78 * - COUNT ( * ) * - 28 AS col0
----
-25
174720

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT DISTINCT - 24 DIV - 21 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT - 24 / - 21 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-261
SELECT + ( + 40 ) DIV - 46 * - - 84
----
0

skipif mysql # not compatible
query I rowsort label-261
SELECT + ( + 40 ) / - 46 * - - 84
----
0

query I rowsort
SELECT + 73 * - + 49 + 0 + - 10 - 84
----
-3671

query I rowsort
SELECT 43 * 45 AS col0
----
1935

query I rowsort
SELECT ALL 91 * 90 col0
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT + NULLIF ( - - COUNT( - 64 ), + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT + NULLIF ( - - COUNT ( - 64 ), + + COUNT ( * ) )
----
NULL

query II rowsort
SELECT 22 * + 79 * + 95, + 31 AS col0
----
165110
31

query II rowsort
SELECT ALL - - 2 + 32 * 14, - 94 AS col0
----
450
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT ALL + COALESCE ( - 3, - + MIN( DISTINCT - 48 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL + COALESCE ( - 3, - + MIN ( DISTINCT - 48 ) ) AS col0
----
-3

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

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

query I rowsort
SELECT - + 12 * 65
----
-780

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

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

query I rowsort
SELECT DISTINCT ( 49 ) col0
----
49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT ALL + + 35 DIV + 17
----
2

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + + 35 / + 17
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT + 91 DIV - 66
----
-1

skipif mysql # not compatible
query I rowsort label-275
SELECT + 91 / - 66
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT - 60 + - ( - MIN( - ( + + 89 ) ) )
----
-149

skipif mysql # not compatible
query I rowsort label-276
SELECT - 60 + - ( - MIN ( - ( + + 89 ) ) )
----
-149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL + MIN( + + 97 ) - + 31
----
66

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL + MIN ( + + 97 ) - + 31
----
66

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

query I rowsort
SELECT - 92 + + + 34 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-281
SELECT DISTINCT + COUNT( * ) * + 86, 61 AS col1
----
86
61

skipif mysql # not compatible
query II rowsort label-281
SELECT DISTINCT + COUNT ( * ) * + 86, 61 AS col1
----
86
61

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

query I rowsort
SELECT DISTINCT ( 1 ) AS col1
----
1

query II rowsort
SELECT - 81 AS col1, - 42
----
-81
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT - COUNT( * ) - + + CAST( - 16 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-285
SELECT - COUNT ( * ) - + + CAST ( - 16 AS INTEGER )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT - 21 * - + 57 * - COUNT( * ) AS col2
----
-1197

skipif mysql # not compatible
query I rowsort label-286
SELECT - 21 * - + 57 * - COUNT ( * ) AS col2
----
-1197

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-287
SELECT ALL COALESCE ( COUNT( * ), + 6, COUNT( * ) DIV MIN( DISTINCT - 14 ) ), - 58 AS col2
----
1
-58

skipif mysql # not compatible
query II rowsort label-287
SELECT ALL COALESCE ( COUNT ( * ), + 6, COUNT ( * ) / MIN ( DISTINCT - 14 ) ), - 58 AS col2
----
1
-58

query I rowsort
SELECT - 91 + + 42 AS col2
----
-49

query III rowsort
SELECT 23 AS col0, 54 AS col2, - - 30 AS col1
----
23
54
30

query I rowsort
SELECT ALL ( - 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-291
SELECT ALL + COUNT( + 71 ), - 37 AS col1
----
1
-37

skipif mysql # not compatible
query II rowsort label-291
SELECT ALL + COUNT ( + 71 ), - 37 AS col1
----
1
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT ALL + 94 AS col2, CASE - 4 WHEN - MAX( 36 ) + 75 THEN NULL WHEN - + 96 + - 90 / ( - COALESCE ( 2, COALESCE ( - 12, - 99 * 47, + 86 ) ) ) THEN + COUNT( * ) * 76 WHEN 85 THEN + 82 END * - 36 * + - 66 * 27
----
94
NULL

skipif mysql # not compatible
query II rowsort label-292
SELECT ALL + 94 AS col2, CASE - 4 WHEN - MAX ( 36 ) + 75 THEN NULL WHEN - + 96 + - 90 / ( - COALESCE ( 2, COALESCE ( - 12, - 99 * 47, + 86 ) ) ) THEN + COUNT ( * ) * 76 WHEN 85 THEN + 82 END * - 36 * + - 66 * 27
----
94
NULL

query II rowsort
SELECT ( + - 49 ), - 19 col2
----
-49
-19

query II rowsort
SELECT ALL + 0 AS col0, 14 * - 18
----
0
-252

query I rowsort
SELECT - 38 - 77 + 52
----
-63

query I rowsort
SELECT DISTINCT + ( - 83 ) * - 80
----
6640

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

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

query I rowsort
SELECT NULLIF ( + + 57, 30 + - 31 * - 64 ) AS col2
----
57

query II rowsort
SELECT - 49 AS col1, + 65 + + 75 + - 35 + - + 87 + - COALESCE ( + NULLIF ( - 39, + + 71 ), - + 97 - 51 * + 78 )
----
-49
57

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT + + CASE + 67 WHEN 36 * + 24 THEN - 52 WHEN + AVG ( 32 ) + + COUNT( * ) + - 63 + + 93 / 99 * - - 67 + + + 93 + + + COUNT( * ) * - 55 / + 29 + + 79 + - ( + 96 ) + + MAX( DISTINCT + 90 ) / ( + COUNT( * ) ) / + + 88 - - - MIN( ALL - 88 ) + + 63 * + - 21 * + 80 * 41 THEN NULL ELSE NULL END - - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-300
SELECT + + CASE + 67 WHEN 36 * + 24 THEN - 52 WHEN + AVG ( 32 ) + + COUNT ( * ) + - 63 + + 93 / 99 * - - 67 + + + 93 + + + COUNT ( * ) * - 55 / + 29 + + 79 + - ( + 96 ) + + MAX ( DISTINCT + 90 ) / ( + COUNT ( * ) ) / + + 88 - - - MIN ( ALL - 88 ) + + 63 * + - 21 * + 80 * 41 THEN NULL ELSE NULL END - - + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL + 92 * - + CASE COUNT( * ) WHEN - MAX( ALL - 19 ) THEN NULL WHEN 94 * - - 70 + + 98 * - 94 + + - 50 THEN - + 83 END + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + 92 * - + CASE COUNT ( * ) WHEN - MAX ( ALL - 19 ) THEN NULL WHEN 94 * - - 70 + + 98 * - 94 + + - 50 THEN - + 83 END + 47
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-302
SELECT + - 90 * + ( + - 50 ) * - 58 + - - 25 + - - COUNT( * ) AS col2, ( + - 11 )
----
-260974
-11

skipif mysql # not compatible
query II rowsort label-302
SELECT + - 90 * + ( + - 50 ) * - 58 + - - 25 + - - COUNT ( * ) AS col2, ( + - 11 )
----
-260974
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT DISTINCT 21 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT 21 / - 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-304
SELECT + - CAST( + 56 AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-304
SELECT + - CAST ( + 56 AS INTEGER ) AS col1
----
-56

query I rowsort
SELECT ALL - 46 * - + ( - - 7 )
----
322

query I rowsort
SELECT ALL + 48 * 72 + + 63 col2
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT - MIN( 25 ) * - 59 + - - 49 + - COUNT( ALL + 70 ) + 97 * - 48 + - MAX( 97 ) + + ( 40 ) AS col1
----
-3190

skipif mysql # not compatible
query I rowsort label-307
SELECT - MIN ( 25 ) * - 59 + - - 49 + - COUNT ( ALL + 70 ) + 97 * - 48 + - MAX ( 97 ) + + ( 40 ) AS col1
----
-3190

query II rowsort
SELECT ALL + - 5 col1, - 94
----
-5
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT - MAX( DISTINCT - NULLIF ( 58, - 56 ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-309
SELECT - MAX ( DISTINCT - NULLIF ( 58, - 56 ) ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-310
SELECT ALL + COUNT( * ) AS col1, 13 - 89 AS col0
----
1
-76

skipif mysql # not compatible
query II rowsort label-310
SELECT ALL + COUNT ( * ) AS col1, 13 - 89 AS col0
----
1
-76

query I rowsort
SELECT + 75 + - 34
----
41

query I rowsort
SELECT ALL COALESCE ( - 96, - ( - + 89 ) * + ( - 19 ), 39 ) AS col0
----
-96

query I rowsort
SELECT ALL CASE 82 WHEN + 83 * - 8 * - + ( 0 ) / 74 THEN NULL WHEN 51 THEN + - ( + 86 ) * - 3 - + - 24 + - + 36 + - NULLIF ( 37, + 87 ) ELSE - 67 END AS col0
----
-67

query I rowsort
SELECT ALL 57 - + 87 AS col2
----
-30

query I rowsort
SELECT - 28 + - 39 col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL - COUNT( * ) - + 18 + + 71 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL - COUNT ( * ) - + 18 + + 71 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-317
SELECT + CAST( NULL AS SIGNED ) + + + COALESCE ( - + 65, + + ( - - 45 ) - - 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT + CAST ( NULL AS INTEGER ) + + + COALESCE ( - + 65, + + ( - - 45 ) - - 22 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-318
SELECT - 21 DIV + 93 * 44 AS col1, COALESCE ( 40, 78 * - + CASE + 67 WHEN + + ( - 17 ) * + MIN( - 70 ) + - + 47 * - - 32 + - 82 + + 53 * - - 13 THEN - 98 DIV - 10 + - - 14 WHEN CAST( NULL AS SIGNED ) * 93 THEN NULL WHEN + NULLIF ( + COUNT( * ), + 18 ) THEN NULL ELSE 58 + + ( 55 ) * - 27 END + 5, - + 0 - + 81 )
----
0
40

skipif mysql # not compatible
query II rowsort label-318
SELECT - 21 / + 93 * 44 AS col1, COALESCE ( 40, 78 * - + CASE + 67 WHEN + + ( - 17 ) * + MIN ( - 70 ) + - + 47 * - - 32 + - 82 + + 53 * - - 13 THEN - 98 / - 10 + - - 14 WHEN CAST ( NULL AS INTEGER ) * 93 THEN NULL WHEN + NULLIF ( + COUNT ( * ), + 18 ) THEN NULL ELSE 58 + + ( 55 ) * - 27 END + 5, - + 0 - + 81 )
----
0
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-319
SELECT + 33 * + - CASE - 23 WHEN + 11 THEN - 0 + + CAST( NULL AS SIGNED ) WHEN - 77 THEN NULL END AS col2, + 61 + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-319
SELECT + 33 * + - CASE - 23 WHEN + 11 THEN - 0 + + CAST ( NULL AS INTEGER ) WHEN - 77 THEN NULL END AS col2, + 61 + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT + 92 + + 35 * + 37 * + 77 + + + ( + + 73 ) AS col1
----
99880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-321
SELECT - COUNT( DISTINCT + + 91 ) + + SUM( + + 35 ) * - 8 - + COUNT( DISTINCT + + CAST( + 24 AS SIGNED ) )
----
-282

skipif mysql # not compatible
query I rowsort label-321
SELECT - COUNT ( DISTINCT + + 91 ) + + SUM ( + + 35 ) * - 8 - + COUNT ( DISTINCT + + CAST ( + 24 AS INTEGER ) )
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-322
SELECT - 85 DIV 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-322
SELECT - 85 / 56 AS col2
----
-1

query I rowsort
SELECT - 3 * - 1 * - 27
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT - 62 + - COUNT( * ) * + 86 * - + 43 AS col0
----
3636

skipif mysql # not compatible
query I rowsort label-324
SELECT - 62 + - COUNT ( * ) * + 86 * - + 43 AS col0
----
3636

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-326
SELECT - COUNT( * ) + + 88 DIV + - 37 AS col2, - 79 + - COUNT( * )
----
-3
-80

skipif mysql # not compatible
query II rowsort label-326
SELECT - COUNT ( * ) + + 88 / + - 37 AS col2, - 79 + - COUNT ( * )
----
-3
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL + AVG ( ALL - 90 ) * - + ( + SUM( ALL - CASE - 77 WHEN - 64 THEN + ( + 81 ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL + AVG ( ALL - 90 ) * - + ( + SUM ( ALL - CASE - 77 WHEN - 64 THEN + ( + 81 ) END ) )
----
NULL

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

query I rowsort
SELECT - 43 + 20 * + 72 AS col1
----
1397

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT 86 * COUNT( * ) + + 87 - - - 46 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-330
SELECT 86 * COUNT ( * ) + + 87 - - - 46 AS col0
----
127

query I rowsort
SELECT + - 5 * 19 + 72
----
-23

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

skipif mysql # not compatible
query I rowsort label-332
SELECT + COALESCE ( 57, COUNT ( * ) ) AS col0
----
57

query I rowsort
SELECT DISTINCT + - 69 + + 41
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL 9 * - - 77 + 69 - + + MAX( DISTINCT - - 72 ) * - 18 * + 59 AS col2
----
77226

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL 9 * - - 77 + 69 - + + MAX ( DISTINCT - - 72 ) * - 18 * + 59 AS col2
----
77226

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT + COUNT( * ) * 34 + - - 95 * + 95 * - ( + COUNT( * ) ) + 95 + - 91 + + NULLIF ( - ( + ( - COUNT( * ) ) ), COUNT( * ) ) + + - SUM( ALL + ( 30 ) ) + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-335
SELECT + COUNT ( * ) * 34 + - - 95 * + 95 * - ( + COUNT ( * ) ) + 95 + - 91 + + NULLIF ( - ( + ( - COUNT ( * ) ) ), COUNT ( * ) ) + + - SUM ( ALL + ( 30 ) ) + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT ALL + COUNT( * ) + - + MIN( DISTINCT - 22 ), + 67 AS col1
----
23
67

skipif mysql # not compatible
query II rowsort label-336
SELECT ALL + COUNT ( * ) + - + MIN ( DISTINCT - 22 ), + 67 AS col1
----
23
67

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL - - CASE + - 29 WHEN - SUM( - 53 ) * + MAX( DISTINCT - 56 ) - + + 43 + + 4 THEN + 52 + - 71 WHEN NULLIF ( + 13, - 16 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL - - CASE + - 29 WHEN - SUM ( - 53 ) * + MAX ( DISTINCT - 56 ) - + + 43 + + 4 THEN + 52 + - 71 WHEN NULLIF ( + 13, - 16 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-338
SELECT + ( 23 ) * 17 + + + 91 * - 13 * COUNT( * ) + 19 - - 52 DIV - + COUNT( * ) AS col1
----
-825

skipif mysql # not compatible
query I rowsort label-338
SELECT + ( 23 ) * 17 + + + 91 * - 13 * COUNT ( * ) + 19 - - 52 / - + COUNT ( * ) AS col1
----
-825

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT ALL + CASE + 39 WHEN COUNT( * ) THEN COALESCE ( - 5, + + CAST( NULL AS SIGNED ) + - 26, COUNT( * ) ) END * - 78 + + + 40 * - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL + CASE + 39 WHEN COUNT ( * ) THEN COALESCE ( - 5, + + CAST ( NULL AS INTEGER ) + - 26, COUNT ( * ) ) END * - 78 + + + 40 * - 19 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-341
SELECT + - 30 * + ( - - NULLIF ( + - MIN( + 99 ), - + 38 + + CAST( NULL AS SIGNED ) ) ) + - 65
----
2905

skipif mysql # not compatible
query I rowsort label-341
SELECT + - 30 * + ( - - NULLIF ( + - MIN ( + 99 ), - + 38 + + CAST ( NULL AS INTEGER ) ) ) + - 65
----
2905

query II rowsort
SELECT + 29 + 58 AS col0, - 77 col1
----
87
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - MIN( - - 28 ) * - + ( - 52 ) * - 79 + + 95 AS col2
----
115119

skipif mysql # not compatible
query I rowsort label-343
SELECT - MIN ( - - 28 ) * - + ( - 52 ) * - 79 + + 95 AS col2
----
115119

onlyif mysql # DIV for integer division: 
query I rowsort label-344
SELECT ALL ( 0 ) DIV 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL ( 0 ) / 17 AS col2
----
0

query I rowsort
SELECT ALL - + CASE + 57 WHEN + - 21 THEN 65 END - + - 36 - + 37
----
NULL

query I rowsort
SELECT 11 * - - 15
----
165

query I rowsort
SELECT DISTINCT 81 * 75 col1
----
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT NULLIF ( - 68, + - 43 ) * + MAX( DISTINCT - 83 )
----
5644

skipif mysql # not compatible
query I rowsort label-348
SELECT NULLIF ( - 68, + - 43 ) * + MAX ( DISTINCT - 83 )
----
5644

query I rowsort
SELECT ALL 10 * - - 32 AS col0
----
320

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

skipif mysql # not compatible
query I rowsort label-350
SELECT 1 * + MIN ( DISTINCT + + 2 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-351
SELECT NULLIF ( SUM( + 40 ), - - ( + CAST( NULL AS SIGNED ) ) ) * + 85, - CAST( NULL AS SIGNED ) + 29 AS col2
----
3400
NULL

skipif mysql # not compatible
query II rowsort label-351
SELECT NULLIF ( SUM ( + 40 ), - - ( + CAST ( NULL AS INTEGER ) ) ) * + 85, - CAST ( NULL AS INTEGER ) + 29 AS col2
----
3400
NULL

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

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

query II rowsort
SELECT - 29, 34 + + 15 AS col2
----
-29
49

query II rowsort
SELECT - 31, + 2 AS col0
----
-31
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-355
SELECT CAST( NULL AS SIGNED ) + ( - CASE - ( + 83 ) WHEN + - 53 * - 46 THEN NULL WHEN - 6 THEN 2 + + 10 / + 7 END ), 42 col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-355
SELECT CAST ( NULL AS INTEGER ) + ( - CASE - ( + 83 ) WHEN + - 53 * - 46 THEN NULL WHEN - 6 THEN 2 + + 10 / + 7 END ), 42 col2
----
NULL
42

onlyif mysql # aggregate syntax: 
query II rowsort label-356
SELECT DISTINCT 93 AS col0, SUM( + 26 )
----
93
26

skipif mysql # not compatible
query II rowsort label-356
SELECT DISTINCT 93 AS col0, SUM ( + 26 )
----
93
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-357
SELECT DISTINCT - 84 + + 8 DIV COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - 84 + + 8 / COUNT ( * )
----
-76

query I rowsort
SELECT 26 * + 29 * + - 12
----
-9048

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT - 52 AS col2, 34 + CASE - + ( + 13 ) WHEN 11 / + 34 - + - MAX( ALL + 51 ) * - 26 + - + CASE - - 24 WHEN 79 THEN - 1 * + 86 * + ( + 83 ) + + CASE - 64 WHEN - 38 THEN 77 WHEN - - CASE COUNT( * ) WHEN MIN( 90 ) + - 52 + + 80 + 38 / + ( - - 80 ) * + + 14 THEN - - CASE - 38 WHEN 76 + - 95 THEN - 29 * 29 WHEN 9 + COUNT( * ) THEN CASE 82 WHEN - 8 THEN NULL ELSE 79 + 0 * - 6 END END * 63 ELSE NULL END THEN + 89 / + 58 ELSE - 69 END END + - 35 THEN 11 / + 75 + ( - SUM( DISTINCT + ( 65 ) ) ) * - 35 END
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-359
SELECT - 52 AS col2, 34 + CASE - + ( + 13 ) WHEN 11 / + 34 - + - MAX ( ALL + 51 ) * - 26 + - + CASE - - 24 WHEN 79 THEN - 1 * + 86 * + ( + 83 ) + + CASE - 64 WHEN - 38 THEN 77 WHEN - - CASE COUNT ( * ) WHEN MIN ( 90 ) + - 52 + + 80 + 38 / + ( - - 80 ) * + + 14 THEN - - CASE - 38 WHEN 76 + - 95 THEN - 29 * 29 WHEN 9 + COUNT ( * ) THEN CASE 82 WHEN - 8 THEN NULL ELSE 79 + 0 * - 6 END END * 63 ELSE NULL END THEN + 89 / + 58 ELSE - 69 END END + - 35 THEN 11 / + 75 + ( - SUM ( DISTINCT + ( 65 ) ) ) * - 35 END
----
-52
NULL

query I rowsort
SELECT 71 + + 44
----
115

query I rowsort
SELECT DISTINCT 31 + 74
----
105

query I rowsort
SELECT - 97 + - + 42
----
-139

query I rowsort
SELECT DISTINCT - 12 * - 70 + + + 1
----
841

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

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

skipif mysql # not compatible
query I rowsort label-365
SELECT + 63 / + + COUNT ( * ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT DISTINCT - 63 + - CAST( NULL AS SIGNED ) + - 39 / - 92 + COUNT( * ) * - 47 * NULLIF ( - 92, + 9 * + - 65 * 88 + + - 38 ) * 85 * 85 + NULLIF ( + ( + MAX( DISTINCT + ( 14 ) ) ), - - 57 + - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT - 63 + - CAST ( NULL AS INTEGER ) + - 39 / - 92 + COUNT ( * ) * - 47 * NULLIF ( - 92, + 9 * + - 65 * 88 + + - 38 ) * 85 * 85 + NULLIF ( + ( + MAX ( DISTINCT + ( 14 ) ) ), - - 57 + - 35 )
----
NULL

query I rowsort
SELECT DISTINCT 42 * + - 36
----
-1512

query I rowsort
SELECT ALL + - 83 + - - 43
----
-40

query I rowsort
SELECT + COALESCE ( + 99, 15 ) col1
----
99

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

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

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

query I rowsort
SELECT - 70 * - - ( + + 12 ) * + - 11 AS col0
----
9240

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

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

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

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

query II rowsort
SELECT 21 * 53, - 52 * + 2 + 20 AS col1
----
1113
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT ALL - CASE - COUNT( * ) WHEN + - ( - 53 ) * - AVG ( ALL + + CAST( NULL AS SIGNED ) ) * - 65 + 79 + - CAST( - 89 AS SIGNED ) THEN NULL ELSE - + 24 END
----
24

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL - CASE - COUNT ( * ) WHEN + - ( - 53 ) * - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) * - 65 + 79 + - CAST ( - 89 AS INTEGER ) THEN NULL ELSE - + 24 END
----
24

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

skipif mysql # not compatible
query II rowsort label-379
SELECT COUNT ( * ) - 1 AS col0, ( - 5 )
----
0
-5

query I rowsort
SELECT 4 + - - 51 AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT 11 DIV - 1
----
-11

skipif mysql # not compatible
query I rowsort label-381
SELECT 11 / - 1
----
-11

query I rowsort
SELECT 46 * - 90
----
-4140

onlyif mysql # DIV for integer division: 
query I rowsort label-383
SELECT 36 DIV + - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-383
SELECT 36 / + - 50 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-384
SELECT DISTINCT COALESCE ( + 15, 15 * - 72 + - - 39 DIV - CASE COUNT( * ) WHEN + COUNT( * ) DIV - - COUNT( * ) * CASE - ( + NULLIF ( - 0, - - 50 * + NULLIF ( AVG ( ALL + 16 ), + 8 + + 83 + 14 + + - 33 ) * - - 29 + + ( - 25 ) ) ) WHEN + - COUNT( * ) THEN NULL WHEN CAST( - 96 AS SIGNED ) THEN + + 14 END THEN 66 * 18 ELSE + 4 * + CASE + - 21 WHEN - ( + MAX( ALL + 13 ) ) THEN - 48 + - ( COUNT( * ) ) END DIV 20 + - 70 END DIV 20, - 89 )
----
15

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT COALESCE ( + 15, 15 * - 72 + - - 39 / - CASE COUNT ( * ) WHEN + COUNT ( * ) / - - COUNT ( * ) * CASE - ( + NULLIF ( - 0, - - 50 * + NULLIF ( AVG ( ALL + 16 ), + 8 + + 83 + 14 + + - 33 ) * - - 29 + + ( - 25 ) ) ) WHEN + - COUNT ( * ) THEN NULL WHEN CAST ( - 96 AS INTEGER ) THEN + + 14 END THEN 66 * 18 ELSE + 4 * + CASE + - 21 WHEN - ( + MAX ( ALL + 13 ) ) THEN - 48 + - ( COUNT ( * ) ) END / 20 + - 70 END / 20, - 89 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-385
SELECT ALL + CASE - ( + 1 ) WHEN - 89 DIV - - 49 THEN NULL ELSE - SUM( - 96 ) DIV - + 17 END + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL + CASE - ( + 1 ) WHEN - 89 / - - 49 THEN NULL ELSE - SUM ( - 96 ) / - + 17 END + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT 20 * - COUNT( - - 52 )
----
-20

skipif mysql # not compatible
query I rowsort label-386
SELECT 20 * - COUNT ( - - 52 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT 26 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-387
SELECT 26 / - 51 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT CAST( - 70 AS SIGNED ) * - 88 + + ( + 96 )
----
6256

skipif mysql # not compatible
query I rowsort label-388
SELECT CAST ( - 70 AS INTEGER ) * - 88 + + ( + 96 )
----
6256

query I rowsort
SELECT DISTINCT 49 * 97
----
4753

query I rowsort
SELECT + + 78 + 43 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT - - MIN( - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-391
SELECT - - MIN ( - 50 ) AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT ALL CAST( COALESCE ( 17, 8 + + 15 / - - COUNT( * ), COUNT( * ) * 21 ) AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL CAST ( COALESCE ( 17, 8 + + 15 / - - COUNT ( * ), COUNT ( * ) * 21 ) AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT - CASE - 95 WHEN 63 THEN - COUNT( - + 78 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT - CASE - 95 WHEN 63 THEN - COUNT ( - + 78 ) END AS col1
----
NULL

query I rowsort
SELECT + 1 + - + 79 + + 88 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-395
SELECT + - 79 * 25 + + - 32 * + + 12 * + + 11 + + CAST( + 53 AS SIGNED ) AS col1
----
-6146

skipif mysql # not compatible
query I rowsort label-395
SELECT + - 79 * 25 + + - 32 * + + 12 * + + 11 + + CAST ( + 53 AS INTEGER ) AS col1
----
-6146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-396
SELECT + CAST( - COUNT( * ) AS SIGNED ) - + 70 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-396
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - + 70 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT 67 * + - 43 + COUNT( * )
----
-2880

skipif mysql # not compatible
query I rowsort label-397
SELECT 67 * + - 43 + COUNT ( * )
----
-2880

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

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT ALL + 96 DIV - - 48 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + 96 / - - 48 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-400
SELECT ALL + MAX( + CAST( NULL AS DECIMAL ) )
----
NULL

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

query I rowsort
SELECT - + 78 * + 73 * - 39 + + 22 + + 33 * + + 61 AS col1
----
224101

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-403
SELECT - + 77 * 11 + + 49 + - + 87 AS col0, ( + COUNT( * ) )
----
-885
1

skipif mysql # not compatible
query II rowsort label-403
SELECT - + 77 * 11 + + 49 + - + 87 AS col0, ( + COUNT ( * ) )
----
-885
1

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - COUNT( * ) + + + 76 * - 73
----
-5549

skipif mysql # not compatible
query I rowsort label-404
SELECT - COUNT ( * ) + + + 76 * - 73
----
-5549

query I rowsort
SELECT + 93 * 28 * - + 23 col1
----
-59892

query I rowsort
SELECT - 98 + - CASE - 1 WHEN - 54 + + - 83 * - 56 * 90 * - 50 THEN + - 18 END
----
NULL

query I rowsort
SELECT - 69 * 57
----
-3933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-408
SELECT DISTINCT - 10 * - COALESCE ( - 89, - - ( - 83 ) * - - 78 ) * COALESCE ( - 62, - 56, - + COUNT( * ) DIV - CASE 83 WHEN + - 56 THEN + 77 WHEN + COUNT( * ) THEN + 77 WHEN + 14 THEN - 64 DIV - 75 ELSE NULL END ) * + + SUM( ALL + 3 ) + - 87
----
165453

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT - 10 * - COALESCE ( - 89, - - ( - 83 ) * - - 78 ) * COALESCE ( - 62, - 56, - + COUNT ( * ) / - CASE 83 WHEN + - 56 THEN + 77 WHEN + COUNT ( * ) THEN + 77 WHEN + 14 THEN - 64 / - 75 ELSE NULL END ) * + + SUM ( ALL + 3 ) + - 87
----
165453

query I rowsort
SELECT - 39 * - 30 AS col1
----
1170

query I rowsort
SELECT ALL - 29 * - 34
----
986

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

query I rowsort
SELECT ALL + 2 + + ( + 21 )
----
23

query I rowsort
SELECT - 3 * - 72
----
216

query II rowsort
SELECT - 9 * - - 64 * + 65, + 50 + + + 18 AS col0
----
-37440
68

query I rowsort
SELECT ALL - 30 * 7 AS col2
----
-210

query I rowsort
SELECT DISTINCT ( + 24 ) AS col0
----
24

query I rowsort
SELECT ALL 43 + + - 48 col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT DISTINCT 2 + + 45 + + - 4 DIV - 75 + 71 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT 2 + + 45 + + - 4 / - 75 + 71 AS col1
----
118

query I rowsort
SELECT ALL 76 * - 1 col1
----
-76

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

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

query I rowsort
SELECT ALL - - 49 - - 23 * + 53 + + 95 * + + 18 + 72
----
3050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-422
SELECT - CAST( + 3 AS SIGNED ) + - ( COUNT( ( 43 ) ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-422
SELECT - CAST ( + 3 AS INTEGER ) + - ( COUNT ( ( 43 ) ) ) AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT + - CASE + NULLIF ( + 40, - 98 * 21 / - 93 ) WHEN + 54 * + AVG ( - 45 ) / - + 97 - + 98 + - 97 THEN + + COUNT( * ) * - CAST( NULL AS SIGNED ) + + 1 - + - 7 + - + COUNT( * ) / 63 * - + 45 - 64 + + - 86 * + + 90 WHEN - + ( + 55 ) THEN + + 27 WHEN - 34 + - CASE 44 WHEN - + 99 THEN NULL WHEN + CASE CAST( NULL AS SIGNED ) WHEN + 72 / 36 * - 53 THEN + 60 ELSE NULL END * - 74 THEN 63 END THEN NULL END + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT + - CASE + NULLIF ( + 40, - 98 * 21 / - 93 ) WHEN + 54 * + AVG ( - 45 ) / - + 97 - + 98 + - 97 THEN + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 1 - + - 7 + - + COUNT ( * ) / 63 * - + 45 - 64 + + - 86 * + + 90 WHEN - + ( + 55 ) THEN + + 27 WHEN - 34 + - CASE 44 WHEN - + 99 THEN NULL WHEN + CASE CAST ( NULL AS INTEGER ) WHEN + 72 / 36 * - 53 THEN + 60 ELSE NULL END * - 74 THEN 63 END THEN NULL END + + 90
----
NULL

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

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

query I rowsort
SELECT + + 91 + 63
----
154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - CASE - 82 WHEN - NULLIF ( + 25, - 84 ) THEN NULL WHEN + - COUNT( * ) THEN 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT - CASE - 82 WHEN - NULLIF ( + 25, - 84 ) THEN NULL WHEN + - COUNT ( * ) THEN 6 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-428
SELECT DISTINCT 64 AS col0, COALESCE ( + 53, 19 * - - 62 + - 79 - + + 54, + 62 ) + 55 + - + 75 + + 39 + - + ( + 20 ) * + 34 * - + 42 + - CAST( NULL AS SIGNED )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-428
SELECT DISTINCT 64 AS col0, COALESCE ( + 53, 19 * - - 62 + - 79 - + + 54, + 62 ) + 55 + - + 75 + + 39 + - + ( + 20 ) * + 34 * - + 42 + - CAST ( NULL AS INTEGER )
----
64
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-429
SELECT DISTINCT + + 83 AS col1, COUNT( ALL NULLIF ( + + 45, - ( 26 ) ) ) AS col0
----
83
1

skipif mysql # not compatible
query II rowsort label-429
SELECT DISTINCT + + 83 AS col1, COUNT ( ALL NULLIF ( + + 45, - ( 26 ) ) ) AS col0
----
83
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-430
SELECT + - 72 + + COUNT( ALL + 90 ) + COUNT( * ) DIV - - 55 - - - ( 22 ) * + + 66 * NULLIF ( + 42, NULLIF ( - 82, - - 37 * - 57 DIV - - SUM( ALL - 63 ) + - 72 * - - 41 ) + - COUNT( * ) ) * + - COUNT( * ) AS col1
----
60913

skipif mysql # not compatible
query I rowsort label-430
SELECT + - 72 + + COUNT ( ALL + 90 ) + COUNT ( * ) / - - 55 - - - ( 22 ) * + + 66 * NULLIF ( + 42, NULLIF ( - 82, - - 37 * - 57 / - - SUM ( ALL - 63 ) + - 72 * - - 41 ) + - COUNT ( * ) ) * + - COUNT ( * ) AS col1
----
60913

onlyif mysql # aggregate syntax: 
query II rowsort label-431
SELECT ALL - 67 * - + 8 * - 42 AS col1, + 98 * - COUNT( * )
----
-22512
-98

skipif mysql # not compatible
query II rowsort label-431
SELECT ALL - 67 * - + 8 * - 42 AS col1, + 98 * - COUNT ( * )
----
-22512
-98

query I rowsort
SELECT + - 2 * + 81 - - 21 + + - 52 AS col1
----
-193

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-433
SELECT + 89 * + CAST( NULL AS DECIMAL ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT + 89 * + CAST ( NULL AS REAL ) * 60
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-436
SELECT + 87 - - - COALESCE ( 22, + COUNT( * ) ) DIV + 93 * - - 21 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-436
SELECT + 87 - - - COALESCE ( 22, + COUNT ( * ) ) / + 93 * - - 21 AS col0
----
87

query II rowsort
SELECT ALL + 56 AS col0, 63
----
56
63

query I rowsort
SELECT 33 * + 79 - - + 37
----
2644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-439
SELECT DISTINCT + COALESCE ( + + 55, - CASE - 27 WHEN 43 * + 83 * - CAST( NULL AS SIGNED ) - - 70 THEN NULL WHEN - 73 * COUNT( * ) THEN - - 69 END * 91 * - 52 ) * + 54 * + 9 + + - 61 * + + COUNT( * ) + + - 61 * + ( + 75 ) col1
----
22094

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT + COALESCE ( + + 55, - CASE - 27 WHEN 43 * + 83 * - CAST ( NULL AS INTEGER ) - - 70 THEN NULL WHEN - 73 * COUNT ( * ) THEN - - 69 END * 91 * - 52 ) * + 54 * + 9 + + - 61 * + + COUNT ( * ) + + - 61 * + ( + 75 ) col1
----
22094

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-440
SELECT ALL - 72 * ( - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) ) + COALESCE ( - 25, + 70 ) / - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - 72 * ( - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) ) + COALESCE ( - 25, + 70 ) / - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT 34 * 69 * - + 53 + - COUNT( * ) * + + 44 * + + 99 - + 66 * - 2
----
-128562

skipif mysql # not compatible
query I rowsort label-441
SELECT 34 * 69 * - + 53 + - COUNT ( * ) * + + 44 * + + 99 - + 66 * - 2
----
-128562

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

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

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

query I rowsort
SELECT 74 * + 20
----
1480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT ALL + 71 - + 12 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + 71 - + 12 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 95 col0, - 49 AS col2
----
95
-49

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

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

query I rowsort
SELECT 74 + 68
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT DISTINCT + CASE 21 WHEN 46 * 45 + + 70 THEN ( COUNT( - + 30 ) ) WHEN + COUNT( * ) THEN - 76 ELSE NULL END * - ( COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT + CASE 21 WHEN 46 * 45 + + 70 THEN ( COUNT ( - + 30 ) ) WHEN + COUNT ( * ) THEN - 76 ELSE NULL END * - ( COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-450
SELECT ALL + 23 * + COUNT( * ) DIV - COUNT( * ) - - - COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL + 23 * + COUNT ( * ) / - COUNT ( * ) - - - COUNT ( * ) AS col1
----
-24

query I rowsort
SELECT - 74 * + 14
----
-1036

query I rowsort
SELECT 3 * - 55 * + + 52
----
-8580

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT SUM( ALL + 42 ) + - COUNT( * ) col0
----
41

skipif mysql # not compatible
query I rowsort label-453
SELECT SUM ( ALL + 42 ) + - COUNT ( * ) col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-454
SELECT ALL - 85 AS col0, 60 * + COUNT( + + ( - 99 ) ) + + + 92 AS col2
----
-85
152

skipif mysql # not compatible
query II rowsort label-454
SELECT ALL - 85 AS col0, 60 * + COUNT ( + + ( - 99 ) ) + + + 92 AS col2
----
-85
152

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

query II rowsort
SELECT ALL - 72 AS col2, + COALESCE ( + - 12, - 41 )
----
-72
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT DISTINCT + + 42 * + 60 * + + 72 * + COALESCE ( - 4, + - 40 + + COUNT( * ) + + 94, + 40 ) + + - 30
----
-725790

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + + 42 * + 60 * + + 72 * + COALESCE ( - 4, + - 40 + + COUNT ( * ) + + 94, + 40 ) + + - 30
----
-725790

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT ALL ( + - 53 ) DIV + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL ( + - 53 ) / + 72 AS col0
----
0

query I rowsort
SELECT 6 * 8 AS col0
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + COUNT( ALL + 0 ) + 40 + - + 75 * - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-461
SELECT + COUNT ( ALL + 0 ) + 40 + - + 75 * - COUNT ( * )
----
116

query II rowsort
SELECT DISTINCT + 26, - 29 AS col0
----
26
-29

query I rowsort
SELECT + - 40 * + 21 + - + 64 AS col0
----
-904

query I rowsort
SELECT + 82 - + + 78
----
4

query I rowsort
SELECT ( 34 ) * + 81
----
2754

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL SUM( - ( 23 ) ) + - 13 + 78 + 95 * ( + 23 ) + + 24 + 27 AS col0
----
2278

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL SUM ( - ( 23 ) ) + - 13 + 78 + 95 * ( + 23 ) + + 24 + 27 AS col0
----
2278

query I rowsort
SELECT ALL - CASE + 12 WHEN + 50 THEN + 85 / - - 89 * - 55 + 79 + + 7 END
----
NULL

query I rowsort
SELECT DISTINCT - 20 + - 55 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL - COUNT( * ) + - 58 * - - 86
----
-4989

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL - COUNT ( * ) + - 58 * - - 86
----
-4989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT - 38 / ( + 23 ) + 65 * CAST( NULL AS SIGNED ) / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT - 38 / ( + 23 ) + 65 * CAST ( NULL AS INTEGER ) / - 74
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-473
SELECT CAST( 66 AS SIGNED ) + + 20 + 68 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-473
SELECT CAST ( 66 AS INTEGER ) + + 20 + 68 AS col0
----
154

query I rowsort
SELECT ALL 67 - - 31
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-475
SELECT CAST( - MIN( DISTINCT - + 40 ) AS SIGNED ) DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-475
SELECT CAST ( - MIN ( DISTINCT - + 40 ) AS INTEGER ) / - - 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-476
SELECT CAST( 20 AS DECIMAL ) * - CASE AVG ( ALL - 61 ) WHEN + + 90 THEN + 51 * + COUNT( ALL - - 22 ) WHEN COUNT( * ) * - - NULLIF ( 58, - + 93 ) THEN - + 34 WHEN + CAST( - 71 AS SIGNED ) * - 75 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT CAST ( 20 AS REAL ) * - CASE AVG ( ALL - 61 ) WHEN + + 90 THEN + 51 * + COUNT ( ALL - - 22 ) WHEN COUNT ( * ) * - - NULLIF ( 58, - + 93 ) THEN - + 34 WHEN + CAST ( - 71 AS INTEGER ) * - 75 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-477
SELECT 90 DIV 31 AS col2, MIN( DISTINCT 60 ) * 3 * - - 78
----
2
14040

skipif mysql # not compatible
query II rowsort label-477
SELECT 90 / 31 AS col2, MIN ( DISTINCT 60 ) * 3 * - - 78
----
2
14040

onlyif mysql # aggregate syntax: 
query II rowsort label-478
SELECT ALL 25 * + - 30 * COUNT( * ) * + 59 * - NULLIF ( 68, + 83 / - 71 + - COUNT( * ) + + - ( - + COALESCE ( + 67, 25, + COUNT( * ) ) ) * 50 ), - 4 + + 56 AS col1
----
3009000
52

skipif mysql # not compatible
query II rowsort label-478
SELECT ALL 25 * + - 30 * COUNT ( * ) * + 59 * - NULLIF ( 68, + 83 / - 71 + - COUNT ( * ) + + - ( - + COALESCE ( + 67, 25, + COUNT ( * ) ) ) * 50 ), - 4 + + 56 AS col1
----
3009000
52

query I rowsort
SELECT 60 * - 71 AS col2
----
-4260

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

skipif mysql # not compatible
query I rowsort label-480
SELECT CAST ( NULL AS REAL ) * + + 76 AS col0
----
NULL

query II rowsort
SELECT - 21 - + - 58 AS col1, + 89 * 16 AS col1
----
37
1424

query III rowsort
SELECT ALL + 8 + - 86 AS col2, - 61, - + 51 AS col2
----
-78
-61
-51

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT 20 * COUNT( * ), 76 * - 9 AS col2
----
20
-684

skipif mysql # not compatible
query II rowsort label-484
SELECT 20 * COUNT ( * ), 76 * - 9 AS col2
----
20
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT COUNT( * ) * - + 4 + + 77 + + COUNT( * ) * - NULLIF ( - 64, + 23 ) + + + 2 * + + 71 + + 39 * + + 18 AS col1
----
981

skipif mysql # not compatible
query I rowsort label-485
SELECT COUNT ( * ) * - + 4 + + 77 + + COUNT ( * ) * - NULLIF ( - 64, + 23 ) + + + 2 * + + 71 + + 39 * + + 18 AS col1
----
981

query I rowsort
SELECT + 87 + 85 * - 15 * 77 AS col0
----
-98088

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

skipif mysql # not compatible
query I rowsort label-487
SELECT - SUM ( DISTINCT 9 )
----
-9

query I rowsort
SELECT 97 + - 62 AS col2
----
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-490
SELECT 0 / + 62 * + - CAST( NULL AS SIGNED ) / - 81 + + - 11 AS col2, 8 + - ( COUNT( * ) ) AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-490
SELECT 0 / + 62 * + - CAST ( NULL AS INTEGER ) / - 81 + + - 11 AS col2, 8 + - ( COUNT ( * ) ) AS col2
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL + + SUM( 48 ) + - 25 + + - 78 + 77 * - 91 * - COUNT( * )
----
6952

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + + SUM ( 48 ) + - 25 + + - 78 + 77 * - 91 * - COUNT ( * )
----
6952

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT DISTINCT - COUNT( * ) + 20 + - 78
----
-59

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT - COUNT ( * ) + 20 + - 78
----
-59

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT ALL + 36 * - - COUNT( ALL - 32 ) + + - 80 + + 72
----
28

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL + 36 * - - COUNT ( ALL - 32 ) + + - 80 + + 72
----
28

query I rowsort
SELECT DISTINCT - 51 * 73 + - 8 * 54 + + - 5
----
-4160

query I rowsort
SELECT NULLIF ( + 98, 66 )
----
98

query I rowsort
SELECT 70 * + ( - - 59 ) * + 4 - 64 * - 95
----
22600

query I rowsort
SELECT 55 * - 63 AS col2
----
-3465

query I rowsort
SELECT ALL - ( - 33 ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT - 96 DIV + 28 + + ( - + 47 )
----
-50

skipif mysql # not compatible
query I rowsort label-501
SELECT - 96 / + 28 + + ( - + 47 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT ALL ( - - 60 ) * - + 95 - - CAST( + + 9 AS SIGNED ) AS col1
----
-5691

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL ( - - 60 ) * - + 95 - - CAST ( + + 9 AS INTEGER ) AS col1
----
-5691

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

skipif mysql # not compatible
query I rowsort label-503
SELECT - 97 / + COUNT ( * ) AS col1
----
-97

query I rowsort
SELECT DISTINCT 85 * + + 97
----
8245

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT COUNT( ALL - 57 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-506
SELECT COUNT ( ALL - 57 ) col0
----
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT 8 * + 52 + 28 + + 64 DIV - 78 col0
----
444

skipif mysql # not compatible
query I rowsort label-509
SELECT 8 * + 52 + 28 + + 64 / - 78 col0
----
444

query II rowsort
SELECT ALL + 28 col2, COALESCE ( - - 87, - + 37 )
----
28
87

query I rowsort
SELECT ALL + 23 * - 95
----
-2185

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT DISTINCT + COUNT( * ) + - + 24
----
-23

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + COUNT ( * ) + - + 24
----
-23

query I rowsort
SELECT DISTINCT 49 + 42 * - CASE + 55 WHEN + 86 THEN - 4 WHEN + 76 - - 20 THEN - 95 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-514
SELECT + - 85 + + ( + COUNT( * ) ) + + 93 * CAST( - 75 AS SIGNED ) * + - 61 * COUNT( * ) + - + 63 AS col1, 14
----
425328
14

skipif mysql # not compatible
query II rowsort label-514
SELECT + - 85 + + ( + COUNT ( * ) ) + + 93 * CAST ( - 75 AS INTEGER ) * + - 61 * COUNT ( * ) + - + 63 AS col1, 14
----
425328
14

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

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

skipif mysql # not compatible
query I rowsort label-516
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + NULLIF ( ( 79 ), - - COUNT ( * ) ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL 11 * - + COUNT( * ) + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL 11 * - + COUNT ( * ) + COUNT ( * )
----
-10

query I rowsort
SELECT DISTINCT + 30 + + + 38 * - + 81 - + - 38 * + + 61
----
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT + + COUNT( * ) * + 26 * - - 17 col1
----
442

skipif mysql # not compatible
query I rowsort label-519
SELECT + + COUNT ( * ) * + 26 * - - 17 col1
----
442

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT - 64 DIV 34 * + + 76 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-520
SELECT - 64 / 34 * + + 76 AS col1
----
-76

query I rowsort
SELECT ALL - 36 + - 37 AS col2
----
-73

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

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

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

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

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

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

query I rowsort
SELECT - 56 * + 94
----
-5264

onlyif mysql # aggregate syntax: 
query II rowsort label-526
SELECT DISTINCT + MAX( ALL - - 19 ), 58 + 17 - 26 + 68 AS col0
----
19
117

skipif mysql # not compatible
query II rowsort label-526
SELECT DISTINCT + MAX ( ALL - - 19 ), 58 + 17 - 26 + 68 AS col0
----
19
117

query II rowsort
SELECT ( + 22 ) AS col1, + 6 AS col2
----
22
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL + COALESCE ( + - 10, - 3 * - 24 - + COALESCE ( 53, CASE - - 85 WHEN + 64 * 87 + 28 + - 53 * - + 18 * - + 52 - 33 THEN NULL WHEN - - 45 * + + 36 THEN + COUNT( * ) * + 82 ELSE - 79 * + 44 - - 26 END * - - 34 * - + 15, - 72 ) + + + 60 + - COUNT( * ) ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL + COALESCE ( + - 10, - 3 * - 24 - + COALESCE ( 53, CASE - - 85 WHEN + 64 * 87 + 28 + - 53 * - + 18 * - + 52 - 33 THEN NULL WHEN - - 45 * + + 36 THEN + COUNT ( * ) * + 82 ELSE - 79 * + 44 - - 26 END * - - 34 * - + 15, - 72 ) + + + 60 + - COUNT ( * ) ) col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT ALL - 40 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - 40 / + 58
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-533
SELECT - COUNT( ALL - - 3 ) DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-533
SELECT - COUNT ( ALL - - 3 ) / + 76
----
0

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

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

query I rowsort
SELECT + 72 + 43
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-536
SELECT - COALESCE ( + COUNT( * ), - SUM( ALL + + CAST( 72 AS SIGNED ) ), + + 34 - ( CAST( NULL AS SIGNED ) ) ) DIV + 93 * - - 56
----
0

skipif mysql # not compatible
query I rowsort label-536
SELECT - COALESCE ( + COUNT ( * ), - SUM ( ALL + + CAST ( 72 AS INTEGER ) ), + + 34 - ( CAST ( NULL AS INTEGER ) ) ) / + 93 * - - 56
----
0

query I rowsort
SELECT ALL 47 * - 54 + + + 21 col1
----
-2517

query I rowsort
SELECT DISTINCT - 65 * - 42 + - 5 AS col0
----
2725

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT + COALESCE ( + - CASE + + 83 WHEN - 98 + + 14 THEN + 75 * + 43 + 44 + + COUNT( * ) WHEN - - ( - ( + 91 ) ) + 86 THEN NULLIF ( 72, + 45 + + 0 + - 50 + 69 * COUNT( * ) * - 44 ) * - 86 + - - 92 WHEN 21 * + - 24 THEN 8 ELSE NULL END, - 87, + 67, - - 13 )
----
-87

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT + COALESCE ( + - CASE + + 83 WHEN - 98 + + 14 THEN + 75 * + 43 + 44 + + COUNT ( * ) WHEN - - ( - ( + 91 ) ) + 86 THEN NULLIF ( 72, + 45 + + 0 + - 50 + 69 * COUNT ( * ) * - 44 ) * - 86 + - - 92 WHEN 21 * + - 24 THEN 8 ELSE NULL END, - 87, + 67, - - 13 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-540
SELECT + CASE + COUNT( * ) WHEN - ( + 73 ) THEN - - 66 END, 75 DIV 91 + + + 53 col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-540
SELECT + CASE + COUNT ( * ) WHEN - ( + 73 ) THEN - - 66 END, 75 / 91 + + + 53 col2
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT DISTINCT + 0 * NULLIF ( - 57, - COUNT( * ) * - - 6 + - 3 + + COUNT( * ) ) + - + 64 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT + 0 * NULLIF ( - 57, - COUNT ( * ) * - - 6 + - 3 + + COUNT ( * ) ) + - + 64 AS col2
----
-64

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-544
SELECT + CAST( 78 AS SIGNED ) * - + CAST( + 68 AS SIGNED ) + + 28
----
-5276

skipif mysql # not compatible
query I rowsort label-544
SELECT + CAST ( 78 AS INTEGER ) * - + CAST ( + 68 AS INTEGER ) + + 28
----
-5276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT ALL + 21 * - - AVG ( 0 ) + + COUNT( * ) + - - 77 * NULLIF ( + COALESCE ( + 41, - + 21 ), + + 10 * - CAST( NULL AS SIGNED ) + - ( + + 86 ) * - 88 ) * + + SUM( - + CAST( NULL AS SIGNED ) ) * - - 2 / + 32 + - 70 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + 21 * - - AVG ( 0 ) + + COUNT ( * ) + - - 77 * NULLIF ( + COALESCE ( + 41, - + 21 ), + + 10 * - CAST ( NULL AS INTEGER ) + - ( + + 86 ) * - 88 ) * + + SUM ( - + CAST ( NULL AS INTEGER ) ) * - - 2 / + 32 + - 70 * + COUNT ( * )
----
NULL

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

query I rowsort
SELECT DISTINCT + 18 + + - 60
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT ALL - 7 DIV ( + + 78 ) + 39 * + - 66 AS col1
----
-2574

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - 7 / ( + + 78 ) + 39 * + - 66 AS col1
----
-2574

query I rowsort
SELECT DISTINCT + 74 * - - 31 * - 81 - + - 27 col2
----
-185787

query I rowsort
SELECT + 86 + + 58 + 40 AS col0
----
184

query I rowsort
SELECT 98 * - - 97 AS col2
----
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT DISTINCT 16 - 44 * + 45 * COUNT( * )
----
-1964

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT 16 - 44 * + 45 * COUNT ( * )
----
-1964

query I rowsort
SELECT 74 + + ( - 69 ) * - - 87 AS col0
----
-5929

query I rowsort
SELECT DISTINCT 21 * 52 * - - 35 col0
----
38220

query I rowsort
SELECT DISTINCT - 6 col2
----
-6

query I rowsort
SELECT - 38 * 48 - + 86 AS col0
----
-1910

query I rowsort
SELECT 48 * + + 18
----
864

query I rowsort
SELECT 83 * - 93 col2
----
-7719

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT 44 DIV 21 + + 33 * 47 DIV + 1 + ( + 28 ) AS col2
----
1581

skipif mysql # not compatible
query I rowsort label-559
SELECT 44 / 21 + + 33 * 47 / + 1 + ( + 28 ) AS col2
----
1581

onlyif mysql # DIV for integer division: 
query II rowsort label-560
SELECT + 86 AS col0, + 29 DIV - 45 * 65
----
86
0

skipif mysql # not compatible
query II rowsort label-560
SELECT + 86 AS col0, + 29 / - 45 * 65
----
86
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-561
SELECT CAST( 74 AS SIGNED ) + - ( + 99 ) DIV ( + 73 ) * 93 + + + ( + 42 )
----
23

skipif mysql # not compatible
query I rowsort label-561
SELECT CAST ( 74 AS INTEGER ) + - ( + 99 ) / ( + 73 ) * 93 + + + ( + 42 )
----
23

query I rowsort
SELECT ALL - NULLIF ( + CASE + 65 WHEN - + 63 + - 17 THEN 44 ELSE NULL END, - - 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT 95, COUNT( * ) + - MIN( - + 56 ) col0
----
95
57

skipif mysql # not compatible
query II rowsort label-563
SELECT 95, COUNT ( * ) + - MIN ( - + 56 ) col0
----
95
57

query I rowsort
SELECT DISTINCT 8 + 14
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT ALL + 18 + 71 + 63 DIV + - 22 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + 18 + 71 + 63 / + - 22 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT + COUNT( * ) * 64 - - 98 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-566
SELECT + COUNT ( * ) * 64 - - 98 AS col2
----
162

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

query I rowsort
SELECT DISTINCT + 96 + + 89 col1
----
185

query I rowsort
SELECT 82 + - + 55 AS col0
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL + ( - - 53 ) + + - 2 * 5 * + COUNT( DISTINCT 18 )
----
43

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL + ( - - 53 ) + + - 2 * 5 * + COUNT ( DISTINCT 18 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT + 75 * - COUNT( * ) - + 70 + 69
----
-76

skipif mysql # not compatible
query I rowsort label-572
SELECT + 75 * - COUNT ( * ) - + 70 + 69
----
-76

query I rowsort
SELECT 72 * 42 + 72
----
3096

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT MIN( DISTINCT - 19 ) + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-575
SELECT MIN ( DISTINCT - 19 ) + COUNT ( * ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - - 24 * NULLIF ( 13, - COUNT( * ) + + COUNT( * ) * - - 87 + - + 63 ) + + COUNT( * ) * + + 38 - + + COUNT( * ) + - + 49 + - 90 AS col1
----
210

skipif mysql # not compatible
query I rowsort label-576
SELECT - - 24 * NULLIF ( 13, - COUNT ( * ) + + COUNT ( * ) * - - 87 + - + 63 ) + + COUNT ( * ) * + + 38 - + + COUNT ( * ) + - + 49 + - 90 AS col1
----
210

query I rowsort
SELECT ALL + - 58 * + + 85
----
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT NULLIF ( + - COALESCE ( + 64, - 68, 55 ), - COUNT( * ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-578
SELECT NULLIF ( + - COALESCE ( + 64, - 68, 55 ), - COUNT ( * ) ) AS col0
----
-64

query I rowsort
SELECT - 17 + + + 91 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-580
SELECT ALL - + CASE - 21 WHEN + CASE 74 WHEN - 92 THEN + 75 / + MAX( + CAST( NULL AS SIGNED ) ) END THEN NULL WHEN 22 THEN - - ( 71 ) / + 60 END * + 8 + 7 + - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL - + CASE - 21 WHEN + CASE 74 WHEN - 92 THEN + 75 / + MAX ( + CAST ( NULL AS INTEGER ) ) END THEN NULL WHEN 22 THEN - - ( 71 ) / + 60 END * + 8 + 7 + - 23 col2
----
NULL

query I rowsort
SELECT + 65 + 54
----
119

query I rowsort
SELECT DISTINCT - + 53 - - 39 AS col0
----
-14

query I rowsort
SELECT 54 + + 82 * + 67 * - - 73
----
401116

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

query I rowsort
SELECT 13 + - 57
----
-44

query II rowsort
SELECT - 55 AS col2, + 66
----
-55
66

query II rowsort
SELECT ALL 7 AS col1, - 93
----
7
-93

query I rowsort
SELECT 55 + - 85 - - - 50 * ( 72 ) col0
----
-3630

query II rowsort
SELECT ALL 64 AS col0, ( - 40 )
----
64
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-590
SELECT MIN( - - COALESCE ( + ( + 87 ), 11 ) ) + - 35 * + 83 * + - 22 + + COUNT( * ) + - - COUNT( * ) + 41 DIV - 51 * + - MAX( - 89 ) * 70 * - 63 * + COALESCE ( 41, + - 67, 88 ) AS col0
----
63999

skipif mysql # not compatible
query I rowsort label-590
SELECT MIN ( - - COALESCE ( + ( + 87 ), 11 ) ) + - 35 * + 83 * + - 22 + + COUNT ( * ) + - - COUNT ( * ) + 41 / - 51 * + - MAX ( - 89 ) * 70 * - 63 * + COALESCE ( 41, + - 67, 88 ) AS col0
----
63999

query I rowsort
SELECT DISTINCT 62 * ( - - 44 ) AS col1
----
2728

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT DISTINCT + 67 DIV - + 98
----
0

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT + 67 / - + 98
----
0

query I rowsort
SELECT 45 + + - COALESCE ( + + 7, + - 28 + - + 50, + 9 ) + 38 AS col2
----
76

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

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

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

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

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT 26 * + COUNT ( * ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-597
SELECT DISTINCT MIN( DISTINCT - 27 ) * - CAST( ( 65 ) AS SIGNED ) + - - COUNT( * ) * + 71 + - ( + 79 ) + + + 35 * 56 col0
----
3707

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT MIN ( DISTINCT - 27 ) * - CAST ( ( 65 ) AS INTEGER ) + - - COUNT ( * ) * + 71 + - ( + 79 ) + + + 35 * 56 col0
----
3707

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

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

query I rowsort
SELECT ALL 67 * - 81
----
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT + 33 * - - 44 + - - ( - 77 ) + COUNT( * )
----
1376

skipif mysql # not compatible
query I rowsort label-600
SELECT + 33 * - - 44 + - - ( - 77 ) + COUNT ( * )
----
1376

query II rowsort
SELECT DISTINCT - 41 AS col0, 77 * - 46
----
-41
-3542

query II rowsort
SELECT 45 AS col2, 8
----
45
8

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT ALL + MIN( DISTINCT - 47 ) + + + 65 - - 54 * NULLIF ( - + CASE + 67 WHEN - 27 THEN 71 WHEN - ( - 38 ) THEN 19 + - + 15 + - + 80 END, - 72 ) + - + 43 * + + NULLIF ( + 14, COALESCE ( + COUNT( * ), + NULLIF ( + - 1, + 1 ), + COUNT( * ) ) ) * - + ( COUNT( DISTINCT ( - - 90 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL + MIN ( DISTINCT - 47 ) + + + 65 - - 54 * NULLIF ( - + CASE + 67 WHEN - 27 THEN 71 WHEN - ( - 38 ) THEN 19 + - + 15 + - + 80 END, - 72 ) + - + 43 * + + NULLIF ( + 14, COALESCE ( + COUNT ( * ), + NULLIF ( + - 1, + 1 ), + COUNT ( * ) ) ) * - + ( COUNT ( DISTINCT ( - - 90 ) ) ) AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 77 * 88 AS col1
----
6776

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

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

query I rowsort
SELECT ALL + 31 + - 80 * + - 38 AS col1
----
3071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-609
SELECT DISTINCT + 18 - - CAST( + + 45 AS SIGNED ) - + 12
----
51

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT + 18 - - CAST ( + + 45 AS INTEGER ) - + 12
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT MIN( - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-610
SELECT MIN ( - 45 ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-611
SELECT CAST( + + COUNT( * ) AS SIGNED ) * 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-611
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * 69 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT ALL + 24 DIV + 50 * 35 + + 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL + 24 / + 50 * 35 + + 16 AS col1
----
16

query I rowsort
SELECT - 77 * 94 AS col0
----
-7238

query I rowsort
SELECT - 46 + + 31 + 50 AS col0
----
35

query I rowsort
SELECT ALL CASE - 97 WHEN + 57 THEN + 57 - - + 79 WHEN - + 11 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-616
SELECT - 34 - 93 AS col1, SUM( 50 ) + + ( + 31 ) AS col2
----
-127
81

skipif mysql # not compatible
query II rowsort label-616
SELECT - 34 - 93 AS col1, SUM ( 50 ) + + ( + 31 ) AS col2
----
-127
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT ALL - MAX( - + CAST( NULL AS SIGNED ) ) / - 44 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-618
SELECT DISTINCT COUNT( DISTINCT 89 ) AS col2, 71
----
1
71

skipif mysql # not compatible
query II rowsort label-618
SELECT DISTINCT COUNT ( DISTINCT 89 ) AS col2, 71
----
1
71

onlyif mysql # aggregate syntax: 
query II rowsort label-619
SELECT - COUNT( * ) - - - COUNT( * ) AS col2, ( + + 81 ) AS col1
----
-2
81

skipif mysql # not compatible
query II rowsort label-619
SELECT - COUNT ( * ) - - - COUNT ( * ) AS col2, ( + + 81 ) AS col1
----
-2
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-620
SELECT - NULLIF ( - COUNT( * ), 44 ) * - + 75 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT - NULLIF ( - COUNT ( * ), 44 ) * - + 75 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT ALL + 80 + + + CAST( - + MIN( - + ( - - 85 ) ) AS SIGNED ) + - + 15 * - 81
----
1380

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL + 80 + + + CAST ( - + MIN ( - + ( - - 85 ) ) AS INTEGER ) + - + 15 * - 81
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT DISTINCT + 63 + + 9 * COUNT( * ) * - 0
----
63

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT + 63 + + 9 * COUNT ( * ) * - 0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT - MAX( DISTINCT + 69 ) + + - COALESCE ( - 92, + + 54 * + 10, - 0 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-623
SELECT - MAX ( DISTINCT + 69 ) + + - COALESCE ( - 92, + + 54 * + 10, - 0 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-624
SELECT + CAST( COUNT( * ) AS SIGNED ) + + 77 * - 61 AS col2
----
-4696

skipif mysql # not compatible
query I rowsort label-624
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + + 77 * - 61 AS col2
----
-4696

query I rowsort
SELECT + 56 - + 27 + - 38 - 93 AS col1
----
-102

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-627
SELECT DISTINCT + 36 + - - 99 * - + 41, + 45 * + - ( - + 42 ) + + CAST( + 94 AS SIGNED ) + + NULLIF ( - 85, - COUNT( * ) ) AS col0
----
-4023
1899

skipif mysql # not compatible
query II rowsort label-627
SELECT DISTINCT + 36 + - - 99 * - + 41, + 45 * + - ( - + 42 ) + + CAST ( + 94 AS INTEGER ) + + NULLIF ( - 85, - COUNT ( * ) ) AS col0
----
-4023
1899

query I rowsort
SELECT DISTINCT + 63 + 87 + - ( 35 ) + + 10
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ALL + 45 + - 75 + - COUNT( * ) * 50 * 95 AS col0
----
-4780

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + 45 + - 75 + - COUNT ( * ) * 50 * 95 AS col0
----
-4780

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL ( - 4 ) * + COUNT( * ) * 81
----
-324

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL ( - 4 ) * + COUNT ( * ) * 81
----
-324

query I rowsort
SELECT ALL 79 * + + 85 * - - 33 + 57 AS col0
----
221652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-632
SELECT + 91 * - + 3 DIV + COUNT( * ) - + - 11
----
-262

skipif mysql # not compatible
query I rowsort label-632
SELECT + 91 * - + 3 / + COUNT ( * ) - + - 11
----
-262

query I rowsort
SELECT + 31 * 21 * + 93
----
60543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-634
SELECT + 97 DIV + COUNT( * ) + - 9 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-634
SELECT + 97 / + COUNT ( * ) + - 9 AS col1
----
88

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

query I rowsort
SELECT + + 52 * 20 - + - 60 AS col0
----
1100

query I rowsort
SELECT + 31 * + 23 AS col2
----
713

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

query I rowsort
SELECT ALL + - 87 * + 13 col0
----
-1131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-640
SELECT 74 * 60 / - CAST( - COUNT( * ) AS SIGNED ) + + 48 + 56 - + 38 - - CAST( NULL AS SIGNED ) / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT 74 * 60 / - CAST ( - COUNT ( * ) AS INTEGER ) + + 48 + 56 - + 38 - - CAST ( NULL AS INTEGER ) / + 6
----
NULL

query I rowsort
SELECT - + 86 * + 53 + ( 29 ) + + 29
----
-4500

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

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

query I rowsort
SELECT + NULLIF ( + - 3, - 26 )
----
-3

query I rowsort
SELECT - - 57 * 37 + + + 59 + + 88 col2
----
2256

query I rowsort
SELECT + 8 - - NULLIF ( + 53, - 78 )
----
61

query I rowsort
SELECT + 52 + - + 86
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + 32 * - COUNT( * ) + - + 74 - 63 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-647
SELECT + 32 * - COUNT ( * ) + - + 74 - 63 AS col0
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT + 95 * - 35 * COUNT( * ) AS col1
----
-3325

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT + 95 * - 35 * COUNT ( * ) AS col1
----
-3325

query I rowsort
SELECT ALL - 67 * 10
----
-670

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

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

query II rowsort
SELECT + + 98 + - + 23, + 9 AS col2
----
75
9

query I rowsort
SELECT DISTINCT 62 * + 44 + - 61 * - 62
----
6510

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT DISTINCT 1 * COUNT( * ) + - 31 + 97 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT 1 * COUNT ( * ) + - 31 + 97 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-654
SELECT - 27 * + COALESCE ( - + 26, 50 * + CAST( NULL AS SIGNED ) DIV + 33, + 93 * - 4 * + 26 DIV - 28, 33 + + 41, - 37 )
----
702

skipif mysql # not compatible
query I rowsort label-654
SELECT - 27 * + COALESCE ( - + 26, 50 * + CAST ( NULL AS INTEGER ) / + 33, + 93 * - 4 * + 26 / - 28, 33 + + 41, - 37 )
----
702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT ALL 92 + - 49 + 73 / - 75 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL 92 + - 49 + 73 / - 75 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT SUM( - 40 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-656
SELECT SUM ( - 40 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT + COUNT( * ) + - 8 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-657
SELECT + COUNT ( * ) + - 8 AS col1
----
-7

query II rowsort
SELECT 19, 25 * + + 68 + + 28 AS col1
----
19
1728

query I rowsort
SELECT ALL NULLIF ( + 49, + 67 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT + 92 + + + NULLIF ( 92, 39 ) + - - SUM( DISTINCT + 31 ) + - COUNT( * ) AS col2
----
214

skipif mysql # not compatible
query I rowsort label-660
SELECT + 92 + + + NULLIF ( 92, 39 ) + - - SUM ( DISTINCT + 31 ) + - COUNT ( * ) AS col2
----
214

query I rowsort
SELECT - 97 * 30
----
-2910

query I rowsort
SELECT - 56 + + 11
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-663
SELECT - CAST( NULLIF ( COUNT( * ), 10 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-663
SELECT - CAST ( NULLIF ( COUNT ( * ), 10 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL + COUNT( * ) + - COALESCE ( - 63, + + 35 * 42 ) * - 73 AS col1
----
-4598

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + COUNT ( * ) + - COALESCE ( - 63, + + 35 * 42 ) * - 73 AS col1
----
-4598

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT ALL 50 DIV + 35 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL 50 / + 35 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT - 61 + + ( + COUNT( * ) ) * - 22
----
-83

skipif mysql # not compatible
query I rowsort label-666
SELECT - 61 + + ( + COUNT ( * ) ) * - 22
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-667
SELECT DISTINCT - CASE - + ( + ( + + CASE COUNT( * ) WHEN + + 11 THEN + + 3 + + + CASE COUNT( * ) WHEN 74 THEN 8 * 37 * - 10 * - 75 + - ( - - 83 ) + 30 WHEN + 91 THEN 50 * 50 + + 60 * - - 13 - + - AVG ( 74 ) + - 78 * 76 + + AVG ( DISTINCT + 39 ) + + + 61 DIV + 92 + - 51 END END ) ) WHEN 43 DIV 46 + + ( - 25 ) * - 95 + - CASE + 43 WHEN + 59 THEN + + 26 + + AVG ( ALL - - 56 ) + 73 + 80 * COALESCE ( - 99, - 37 DIV COUNT( * ) + 72 ) DIV 60 WHEN NULLIF ( + 15, 26 ) DIV - 82 THEN 70 WHEN 26 * COUNT( * ) THEN NULL END THEN - COUNT( * ) + 13 ELSE 79 DIV - COUNT( * ) + 13 END * 35
----
2310

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT - CASE - + ( + ( + + CASE COUNT ( * ) WHEN + + 11 THEN + + 3 + + + CASE COUNT ( * ) WHEN 74 THEN 8 * 37 * - 10 * - 75 + - ( - - 83 ) + 30 WHEN + 91 THEN 50 * 50 + + 60 * - - 13 - + - AVG ( 74 ) + - 78 * 76 + + AVG ( DISTINCT + 39 ) + + + 61 / + 92 + - 51 END END ) ) WHEN 43 / 46 + + ( - 25 ) * - 95 + - CASE + 43 WHEN + 59 THEN + + 26 + + AVG ( ALL - - 56 ) + 73 + 80 * COALESCE ( - 99, - 37 / COUNT ( * ) + 72 ) / 60 WHEN NULLIF ( + 15, 26 ) / - 82 THEN 70 WHEN 26 * COUNT ( * ) THEN NULL END THEN - COUNT ( * ) + 13 ELSE 79 / - COUNT ( * ) + 13 END * 35
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT DISTINCT - 4 * - COALESCE ( + 23, 10 * + 77 * + 34 + 85 + - 13 ) * ( + + COUNT( * ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT - 4 * - COALESCE ( + 23, 10 * + 77 * + 34 + 85 + - 13 ) * ( + + COUNT ( * ) ) AS col1
----
92

query I rowsort
SELECT ALL + 50 + + 32 AS col2
----
82

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

query I rowsort
SELECT ALL - 87 + 72
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT + COUNT( * ) + ( - - 75 ) - + 21
----
55

skipif mysql # not compatible
query I rowsort label-672
SELECT + COUNT ( * ) + ( - - 75 ) - + 21
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-673
SELECT 0 col2, 62 + ( + 61 ) + - + ( + 46 ) * + CASE - + 50 WHEN 67 THEN - + COUNT( * ) DIV + + COUNT( * ) ELSE COUNT( * ) + + ( - - NULLIF ( + + 33, + 49 ) ) * 77 END + + 9
----
0
-116800

skipif mysql # not compatible
query II rowsort label-673
SELECT 0 col2, 62 + ( + 61 ) + - + ( + 46 ) * + CASE - + 50 WHEN 67 THEN - + COUNT ( * ) / + + COUNT ( * ) ELSE COUNT ( * ) + + ( - - NULLIF ( + + 33, + 49 ) ) * 77 END + + 9
----
0
-116800

onlyif mysql # aggregate syntax: 
query II rowsort label-674
SELECT 35 AS col1, 80 + + - 14 + - - COUNT( * ) col1
----
35
67

skipif mysql # not compatible
query II rowsort label-674
SELECT 35 AS col1, 80 + + - 14 + - - COUNT ( * ) col1
----
35
67

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT - 8 + + 19 + COUNT( * ) col1
----
12

skipif mysql # not compatible
query I rowsort label-675
SELECT - 8 + + 19 + COUNT ( * ) col1
----
12

query I rowsort
SELECT DISTINCT + 14 * 51
----
714

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

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

query I rowsort
SELECT - 84 + + + 10 + + ( + + 80 ) * 21 * - 5 + + + 70 - - - ( 79 ) + 36 * - 51 * + 21 AS col2
----
-47039

query I rowsort
SELECT + - NULLIF ( + 73, + 56 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-680
SELECT ALL + + 59 AS col2, MAX( 66 )
----
59
66

skipif mysql # not compatible
query II rowsort label-680
SELECT ALL + + 59 AS col2, MAX ( 66 )
----
59
66

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT 78 DIV - + 63 + - 26 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-681
SELECT 78 / - + 63 + - 26 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-682
SELECT ALL + COUNT( * ) AS col2, 2 * - MIN( DISTINCT - 21 ) col2
----
1
42

skipif mysql # not compatible
query II rowsort label-682
SELECT ALL + COUNT ( * ) AS col2, 2 * - MIN ( DISTINCT - 21 ) col2
----
1
42

query I rowsort
SELECT - + 4 + - 81 AS col2
----
-85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-685
SELECT - CASE + 21 WHEN + + COALESCE ( + COUNT( * ), + 88, + + 57 * COALESCE ( 40, 63 - 46 - 16 * - - 64 ) ) THEN NULL WHEN + 4 + 66 - - ( - - 8 ) * - 14 THEN NULL ELSE + + 26 DIV - ( - NULLIF ( - 24, + ( - 2 ) DIV + 92 ) ) + + 35 + + ( - - 40 ) END * ( - 24 )
----
1776

skipif mysql # not compatible
query I rowsort label-685
SELECT - CASE + 21 WHEN + + COALESCE ( + COUNT ( * ), + 88, + + 57 * COALESCE ( 40, 63 - 46 - 16 * - - 64 ) ) THEN NULL WHEN + 4 + 66 - - ( - - 8 ) * - 14 THEN NULL ELSE + + 26 / - ( - NULLIF ( - 24, + ( - 2 ) / + 92 ) ) + + 35 + + ( - - 40 ) END * ( - 24 )
----
1776

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

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

query I rowsort
SELECT + 83 * - 66 AS col1
----
-5478

query I rowsort
SELECT ALL 62 * + 39 AS col2
----
2418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-689
SELECT CASE CAST( - 64 AS SIGNED ) WHEN + 96 THEN + COUNT( * ) END * - - COUNT( * ), 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-689
SELECT CASE CAST ( - 64 AS INTEGER ) WHEN + 96 THEN + COUNT ( * ) END * - - COUNT ( * ), 0 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT + + MAX( ALL - - NULLIF ( + - 24, ( - 76 ) + 86 ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-690
SELECT + + MAX ( ALL - - NULLIF ( + - 24, ( - 76 ) + 86 ) ) AS col1
----
-24

query I rowsort
SELECT 19 + - 31
----
-12

query I rowsort
SELECT + 45 * + + 89
----
4005

query I rowsort
SELECT - 50 * ( 61 ) * + 2 + 18 - + - 81
----
-6001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-694
SELECT ALL - COALESCE ( + - CASE - SUM( DISTINCT CAST( NULL AS DECIMAL ) ) WHEN NULLIF ( + 99, 12 ) * - CAST( + 39 AS SIGNED ) - COUNT( * ) + 62 + - 91 + + ( - + 25 ) THEN - + 93 ELSE NULL END, + - 11 + - COALESCE ( 2, + - 60 - - + 53 ), + ( + 42 ) * - 16 )
----
13

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL - COALESCE ( + - CASE - SUM ( DISTINCT CAST ( NULL AS REAL ) ) WHEN NULLIF ( + 99, 12 ) * - CAST ( + 39 AS INTEGER ) - COUNT ( * ) + 62 + - 91 + + ( - + 25 ) THEN - + 93 ELSE NULL END, + - 11 + - COALESCE ( 2, + - 60 - - + 53 ), + ( + 42 ) * - 16 )
----
13

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

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT 7 DIV - - 15
----
0

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT 7 / - - 15
----
0

query I rowsort
SELECT ALL - - NULLIF ( 25, + 81 * + 97 / + 23 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-698
SELECT DISTINCT CASE 82 WHEN - 42 + - COUNT( * ) THEN + 23 - + ( + COUNT( * ) ) END + + COUNT( * ), CAST( NULL AS SIGNED ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-698
SELECT DISTINCT CASE 82 WHEN - 42 + - COUNT ( * ) THEN + 23 - + ( + COUNT ( * ) ) END + + COUNT ( * ), CAST ( NULL AS INTEGER ) col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-699
SELECT ALL + NULLIF ( - 26, - - CAST( - - 71 AS SIGNED ) + - + 85 - 68 ) + + 82
----
56

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL + NULLIF ( - 26, - - CAST ( - - 71 AS INTEGER ) + - + 85 - 68 ) + + 82
----
56

query I rowsort
SELECT ALL 92 + 74
----
166

query I rowsort
SELECT 48 - - 71 + - + 17 AS col1
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-702
SELECT 54 * COUNT( * ) AS col0, 59
----
54
59

skipif mysql # not compatible
query II rowsort label-702
SELECT 54 * COUNT ( * ) AS col0, 59
----
54
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-703
SELECT SUM( ALL + + NULLIF ( + + 36, - CAST( NULL AS SIGNED ) + 2 + - + CAST( + - 80 AS SIGNED ) + - 66 ) ) - 34 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-703
SELECT SUM ( ALL + + NULLIF ( + + 36, - CAST ( NULL AS INTEGER ) + 2 + - + CAST ( + - 80 AS INTEGER ) + - 66 ) ) - 34 AS col2
----
2

query II rowsort
SELECT 67 + + 20 * ( - - 20 ) AS col2, - ( + 71 ) * + + 12
----
467
-852

query I rowsort
SELECT 3 * + 87
----
261

query I rowsort
SELECT ALL 80 + - 17
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL COUNT( * ) + - 27 * + + 39
----
-1052

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL COUNT ( * ) + - 27 * + + 39
----
-1052

query I rowsort
SELECT DISTINCT 97 * + 80
----
7760

query I rowsort
SELECT 93 - + + 20 AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-710
SELECT DISTINCT 79 - 36, - ( - 48 ) * 77 * - ( - 29 ) + - - COUNT( * ) col0
----
43
107185

skipif mysql # not compatible
query II rowsort label-710
SELECT DISTINCT 79 - 36, - ( - 48 ) * 77 * - ( - 29 ) + - - COUNT ( * ) col0
----
43
107185

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT 18 * - - COUNT( 28 )
----
18

skipif mysql # not compatible
query I rowsort label-711
SELECT 18 * - - COUNT ( 28 )
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT COALESCE ( 73, - + ( - COUNT( * ) ) ) * - + 71 AS col1
----
-5183

skipif mysql # not compatible
query I rowsort label-713
SELECT COALESCE ( 73, - + ( - COUNT ( * ) ) ) * - + 71 AS col1
----
-5183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-714
SELECT COALESCE ( 46, + - 60 * - 36 * - + ( - 91 ), + 32 * + 5 / + 84 + + 17 ) / ( CAST( NULL AS SIGNED ) ) / + - 27 * + 89 * + 23 - 53 * - 35 / + 9 + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT COALESCE ( 46, + - 60 * - 36 * - + ( - 91 ), + 32 * + 5 / + 84 + + 17 ) / ( CAST ( NULL AS INTEGER ) ) / + - 27 * + 89 * + 23 - 53 * - 35 / + 9 + + 11
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT DISTINCT - 85 DIV + - 38
----
2

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - 85 / + - 38
----
2

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

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

query I rowsort
SELECT - 40 * - + 0 * + 97 - - - 93
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-718
SELECT ALL ( - COUNT( * ) ) * + - 94 + + 91 AS col2, CAST( NULL AS SIGNED ) col0
----
185
NULL

skipif mysql # not compatible
query II rowsort label-718
SELECT ALL ( - COUNT ( * ) ) * + - 94 + + 91 AS col2, CAST ( NULL AS INTEGER ) col0
----
185
NULL

query I rowsort
SELECT - 84 * + - 45 col2
----
3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-720
SELECT DISTINCT - - 19 * + NULLIF ( - CASE 97 WHEN 94 THEN NULL WHEN - - 66 + - + 8 * COALESCE ( + 8, + - 66 ) THEN - CAST( + 0 AS SIGNED ) * + 58 / + 82 * 79 END, + SUM( DISTINCT - + 66 ) ) + - + COUNT( * ) + + + COUNT( * ) - - 86 * - ( 69 ) / 9 / - CAST( - 59 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT - - 19 * + NULLIF ( - CASE 97 WHEN 94 THEN NULL WHEN - - 66 + - + 8 * COALESCE ( + 8, + - 66 ) THEN - CAST ( + 0 AS INTEGER ) * + 58 / + 82 * 79 END, + SUM ( DISTINCT - + 66 ) ) + - + COUNT ( * ) + + + COUNT ( * ) - - 86 * - ( 69 ) / 9 / - CAST ( - 59 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-721
SELECT ALL - MAX( CAST( NULL AS DECIMAL ) )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-722
SELECT COUNT( * ) + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 44 + + - CAST( - COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2, + SUM( + 52 ) DIV + 40
----
NULL
1

skipif mysql # not compatible
query II rowsort label-722
SELECT COUNT ( * ) + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 44 + + - CAST ( - COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2, + SUM ( + 52 ) / + 40
----
NULL
1

query I rowsort
SELECT DISTINCT 99 * 92 AS col2
----
9108

query II rowsort
SELECT ALL + ( 81 ) + + + ( + 36 ), + ( - 59 ) AS col1
----
117
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-725
SELECT - 43 - - - COUNT( * ) + + ( + + 43 ) + - - COALESCE ( MAX( + + 56 ), + 31 DIV + 36 + + 18 - + - 23 ) * 76 * + 29 AS col1
----
123423

skipif mysql # not compatible
query I rowsort label-725
SELECT - 43 - - - COUNT ( * ) + + ( + + 43 ) + - - COALESCE ( MAX ( + + 56 ), + 31 / + 36 + + 18 - + - 23 ) * 76 * + 29 AS col1
----
123423

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT DISTINCT + + 15 + + 11 + + + 15 + - CASE + ( + COUNT( * ) ) WHEN + MAX( 32 ) THEN + - 25 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT + + 15 + + 11 + + + 15 + - CASE + ( + COUNT ( * ) ) WHEN + MAX ( 32 ) THEN + - 25 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT 13 + MIN( ALL 62 ) + - 36 * COUNT( * ) * - COUNT( * ) + + 97 AS col0
----
208

skipif mysql # not compatible
query I rowsort label-727
SELECT 13 + MIN ( ALL 62 ) + - 36 * COUNT ( * ) * - COUNT ( * ) + + 97 AS col0
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT 96 * - 61 + + - MAX( - 51 ) + - + 61
----
-5866

skipif mysql # not compatible
query I rowsort label-728
SELECT 96 * - 61 + + - MAX ( - 51 ) + - + 61
----
-5866

query II rowsort
SELECT ALL - - 90 + 15, + 38 col1
----
105
38

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT 93 - 65 DIV - - 87
----
93

skipif mysql # not compatible
query I rowsort label-730
SELECT 93 - 65 / - - 87
----
93

query I rowsort
SELECT DISTINCT + 4 * 16 * 56
----
3584

query I rowsort
SELECT 67 + 17 * + 28 col0
----
543

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL + 22 * + ( ( + COUNT( ALL 24 ) ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + 22 * + ( ( + COUNT ( ALL 24 ) ) ) AS col0
----
22

query I rowsort
SELECT ALL 39 + + 70 AS col1
----
109

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

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL - 32 - + MIN( + - 66 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL - 32 - + MIN ( + - 66 ) AS col2
----
34

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

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

query I rowsort
SELECT 79 + + 62 AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT 92 * + + SUM( ALL + NULLIF ( - 45, + 92 ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-739
SELECT 92 * + + SUM ( ALL + NULLIF ( - 45, + 92 ) ) * - 0
----
0

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

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

query I rowsort
SELECT ALL 90 * - - 92 AS col2
----
8280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-742
SELECT ALL CASE SUM( DISTINCT + CAST( NULL AS SIGNED ) ) WHEN 58 THEN + CASE - 38 WHEN COUNT( * ) THEN 59 * + 38 WHEN - 35 THEN 49 * - 13 END WHEN - - 63 THEN NULL END AS col2, 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-742
SELECT ALL CASE SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) WHEN 58 THEN + CASE - 38 WHEN COUNT ( * ) THEN 59 * + 38 WHEN - 35 THEN 49 * - 13 END WHEN - - 63 THEN NULL END AS col2, 91 AS col1
----
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT ( + - 4 ) + COUNT( * ), COALESCE ( + - ( + - 60 ), 96 ) * - + 54 AS col1
----
-3
-3240

skipif mysql # not compatible
query II rowsort label-743
SELECT ( + - 4 ) + COUNT ( * ), COALESCE ( + - ( + - 60 ), 96 ) * - + 54 AS col1
----
-3
-3240

query I rowsort
SELECT ALL 37 * - 89 * - ( + 60 )
----
197580

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT ALL COALESCE ( + 76, + - 73 DIV + + 81 * + 39 - + 28 * - + 92 DIV + - 70 + + 90 * + 48 + - 85, - 76 ) * - 12 AS col2
----
-912

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL COALESCE ( + 76, + - 73 / + + 81 * + 39 - + 28 * - + 92 / + - 70 + + 90 * + 48 + - 85, - 76 ) * - 12 AS col2
----
-912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-746
SELECT COUNT( * ) + CAST( - 42 AS SIGNED ) + - + ( - CASE ( + - 94 ) WHEN - - 22 THEN + + 75 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-746
SELECT COUNT ( * ) + CAST ( - 42 AS INTEGER ) + - + ( - CASE ( + - 94 ) WHEN - - 22 THEN + + 75 END ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL COUNT ( + + 6 ) * + 5 AS col1
----
5

query II rowsort
SELECT ALL 26, + 14 AS col1
----
26
14

onlyif mysql # aggregate syntax: 
query II rowsort label-749
SELECT ALL MAX( 89 ) * + + 83, 38 AS col2
----
7387
38

skipif mysql # not compatible
query II rowsort label-749
SELECT ALL MAX ( 89 ) * + + 83, 38 AS col2
----
7387
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-751
SELECT + COUNT( * ) + COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1, 29 col1
----
1
29

skipif mysql # not compatible
query II rowsort label-751
SELECT + COUNT ( * ) + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1, 29 col1
----
1
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT DISTINCT NULLIF ( + - SUM( ALL + CAST( NULL AS SIGNED ) ), 6 * + + ( + CAST( + - 32 AS SIGNED ) ) / + 19 + + MAX( ALL - - 4 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT NULLIF ( + - SUM ( ALL + CAST ( NULL AS INTEGER ) ), 6 * + + ( + CAST ( + - 32 AS INTEGER ) ) / + 19 + + MAX ( ALL - - 4 ) )
----
NULL

query I rowsort
SELECT - + 21 + - - 25
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT + - 52 * - 89 - - COUNT( * ) AS col1
----
4629

skipif mysql # not compatible
query I rowsort label-756
SELECT + - 52 * - 89 - - COUNT ( * ) AS col1
----
4629

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT - - COUNT( * ) + - - 12
----
13

skipif mysql # not compatible
query I rowsort label-757
SELECT - - COUNT ( * ) + - - 12
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL + 59 * + 16 + + COUNT( * ) AS col2
----
945

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + 59 * + 16 + + COUNT ( * ) AS col2
----
945

query I rowsort
SELECT ALL - 44 * + 30 + 77
----
-1243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-762
SELECT - CAST( 89 AS SIGNED ) * - CASE + - 80 WHEN + 90 THEN NULL WHEN + 97 THEN - 25 - - CAST( NULL AS SIGNED ) END + + + 17 + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT - CAST ( 89 AS INTEGER ) * - CASE + - 80 WHEN + 90 THEN NULL WHEN + 97 THEN - 25 - - CAST ( NULL AS INTEGER ) END + + + 17 + + 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-763
SELECT ALL 25 * - 97 * + + CAST( NULL AS SIGNED ) + 50 + + 20 * COUNT( * ) * - + 92 * CAST( + - 63 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL 25 * - 97 * + + CAST ( NULL AS INTEGER ) + 50 + + 20 * COUNT ( * ) * - + 92 * CAST ( + - 63 AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 28 * - 95
----
-2660

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

query I rowsort
SELECT ALL + - 12 * - - 13
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL MAX( ALL + 43 ) * 4 + ( - 93 ) * + 12
----
-944

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL MAX ( ALL + 43 ) * 4 + ( - 93 ) * + 12
----
-944

query I rowsort
SELECT + - 50 * + 6 * + 37
----
-11100

query I rowsort
SELECT - - 45 + + 63 AS col0
----
108

query I rowsort
SELECT + - NULLIF ( - 52, - - ( 6 ) )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT - 57 + + 58 DIV - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-771
SELECT - 57 + + 58 / - - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL COUNT( * ) * + 21 + + 87 * - NULLIF ( - 86, 94 + + 8 ) * COUNT( * ) AS col2
----
7503

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL COUNT ( * ) * + 21 + + 87 * - NULLIF ( - 86, 94 + + 8 ) * COUNT ( * ) AS col2
----
7503

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT 76 * + + COUNT( * ) - - - 69
----
7

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT 76 * + + COUNT ( * ) - - - 69
----
7

query I rowsort
SELECT - 39 + + 0 * - 31 * 38
----
-39

query II rowsort
SELECT + 68, 54 + + 32 AS col1
----
68
86

query I rowsort
SELECT ALL 51 * - 79 - + + 27 AS col2
----
-4056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-777
SELECT ALL + NULLIF ( CAST( - - 7 AS SIGNED ), 11 + NULLIF ( + 79, - + 82 - + 61 + 1 * ( + 21 ) ) - COUNT( * ) + + - 21 / + MIN( - 76 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + NULLIF ( CAST ( - - 7 AS INTEGER ), 11 + NULLIF ( + 79, - + 82 - + 61 + 1 * ( + 21 ) ) - COUNT ( * ) + + - 21 / + MIN ( - 76 ) ) AS col0
----
7

query I rowsort
SELECT - 85 - NULLIF ( + ( - 32 ), 35 + - 84 ) col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT ALL COALESCE ( - 44, + + NULLIF ( - 18, - 59 + - AVG ( ALL + 40 ) + 12 ) * + - 90 + 94 DIV - NULLIF ( - 60, 89 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL COALESCE ( - 44, + + NULLIF ( - 18, - 59 + - AVG ( ALL + 40 ) + 12 ) * + - 90 + 94 / - NULLIF ( - 60, 89 ) )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-780
SELECT - CAST( + - 61 AS SIGNED ) + - 27
----
34

skipif mysql # not compatible
query I rowsort label-780
SELECT - CAST ( + - 61 AS INTEGER ) + - 27
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT + 67 DIV + ( + 73 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-781
SELECT + 67 / + ( + 73 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-782
SELECT - CAST( - - 48 AS SIGNED ) * - ( + 40 ) * COUNT( * )
----
1920

skipif mysql # not compatible
query I rowsort label-782
SELECT - CAST ( - - 48 AS INTEGER ) * - ( + 40 ) * COUNT ( * )
----
1920

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

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

query I rowsort
SELECT DISTINCT + 74 * + 33 AS col0
----
2442

query II rowsort
SELECT DISTINCT 44 AS col0, + 94 - - 8
----
44
102

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

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

query I rowsort
SELECT ALL - 1 * + 8
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT DISTINCT 78 DIV - ( + COALESCE ( + 7, + - 64 * - 20 ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT 78 / - ( + COALESCE ( + 7, + - 64 * - 20 ) ) AS col0
----
-11

query I rowsort
SELECT + + 67 * + - 99
----
-6633

query I rowsort
SELECT DISTINCT - 3 + - 95 col0
----
-98

query I rowsort
SELECT COALESCE ( ( 26 ), 70 ) col1
----
26

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

query II rowsort
SELECT ALL ( - 46 ) + ( + 4 ) AS col0, 43 * - 46 + 72 * 70
----
-42
3062

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT DISTINCT - MIN( - 12 ) + - 80 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT - MIN ( - 12 ) + - 80 AS col2
----
-68

query I rowsort
SELECT DISTINCT 60 + - - 86 AS col2
----
146

query I rowsort
SELECT + + 40 * - + 55
----
-2200

onlyif mysql # aggregate syntax: 
query II rowsort label-798
SELECT + 84 AS col2, - COUNT( ALL - + 4 ) AS col1
----
84
-1

skipif mysql # not compatible
query II rowsort label-798
SELECT + 84 AS col2, - COUNT ( ALL - + 4 ) AS col1
----
84
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-799
SELECT DISTINCT 17 * COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 97 / - ( - 1 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT 17 * COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 97 / - ( - 1 ) col2
----
NULL

query II rowsort
SELECT - 34, 72 AS col1
----
-34
72

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-803
SELECT + 2 DIV - COUNT( * ) + 54 + + - MAX( ALL + 39 )
----
13

skipif mysql # not compatible
query I rowsort label-803
SELECT + 2 / - COUNT ( * ) + 54 + + - MAX ( ALL + 39 )
----
13

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

onlyif mysql # aggregate syntax: 
query II rowsort label-805
SELECT + + 60, 31 + - COUNT( * ) AS col2
----
60
30

skipif mysql # not compatible
query II rowsort label-805
SELECT + + 60, 31 + - COUNT ( * ) AS col2
----
60
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL - SUM( - 38 ) * 94 AS col0
----
3572

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL - SUM ( - 38 ) * 94 AS col0
----
3572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT + 59 * + 29 + - + COUNT( * ) - - 94 * 71 DIV - + ( 9 ) AS col2
----
969

skipif mysql # not compatible
query I rowsort label-808
SELECT + 59 * + 29 + - + COUNT ( * ) - - 94 * 71 / - + ( 9 ) AS col2
----
969

onlyif mysql # DIV for integer division: 
query II rowsort label-809
SELECT DISTINCT 86 DIV - 54, - 9 AS col1
----
-1
-9

skipif mysql # not compatible
query II rowsort label-809
SELECT DISTINCT 86 / - 54, - 9 AS col1
----
-1
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + 98 + COUNT( + + 29 )
----
99

skipif mysql # not compatible
query I rowsort label-810
SELECT + 98 + COUNT ( + + 29 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT + 9 DIV - 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-811
SELECT + 9 / - 24 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-812
SELECT - 15 * - CAST( COUNT( + - 19 ) AS SIGNED ) * COUNT( DISTINCT + 23 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-812
SELECT - 15 * - CAST ( COUNT ( + - 19 ) AS INTEGER ) * COUNT ( DISTINCT + 23 ) AS col2
----
15

query I rowsort
SELECT ALL 21 * - + COALESCE ( - 2, - 6 )
----
42

query I rowsort
SELECT - 91 * - 95 AS col2
----
8645

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-815
SELECT + CAST( - 97 AS SIGNED ) AS col0, 98
----
-97
98

skipif mysql # not compatible
query II rowsort label-815
SELECT + CAST ( - 97 AS INTEGER ) AS col0, 98
----
-97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT 69 * 99 + + + CASE - 67 WHEN + 71 * - 73 - - + SUM( - 24 ) + + 56 THEN 45 ELSE NULL END * COUNT( * ) * + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT 69 * 99 + + + CASE - 67 WHEN + 71 * - 73 - - + SUM ( - 24 ) + + 56 THEN 45 ELSE NULL END * COUNT ( * ) * + - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT NULLIF ( - COUNT( * ), 54 * + 35 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-817
SELECT NULLIF ( - COUNT ( * ), 54 * + 35 ) AS col0
----
-1

query I rowsort
SELECT - 21 * - 41 + + + 70 AS col0
----
931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT ALL COUNT( ALL - 98 ) * + + 76 DIV 84 * - 20 * 67 * 27 * + - 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL COUNT ( ALL - 98 ) * + + 76 / 84 * - 20 * 67 * 27 * + - 53 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-820
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + CAST( - 69 AS SIGNED ) * - - 41 ) col1, + ( - + 69 ) DIV - COUNT( * ) col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-820
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + CAST ( - 69 AS INTEGER ) * - - 41 ) col1, + ( - + 69 ) / - COUNT ( * ) col2
----
NULL
69

query I rowsort
SELECT DISTINCT COALESCE ( 65, - 72 * + 11 + 8 + + + 65 * - 72 ) AS col1
----
65

query II rowsort
SELECT 33 * - 55, - 80 AS col0
----
-1815
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-823
SELECT 37 + - 52 - - - 4 * 84 * + MIN( - - COALESCE ( - 5, - 25 + - - 18 + + + 95 * + 46 * - 98, 77 * - + CAST( - 43 AS SIGNED ) + + CAST( - 1 AS SIGNED ) ) ) - - + 94 + - 25
----
1734

skipif mysql # not compatible
query I rowsort label-823
SELECT 37 + - 52 - - - 4 * 84 * + MIN ( - - COALESCE ( - 5, - 25 + - - 18 + + + 95 * + 46 * - 98, 77 * - + CAST ( - 43 AS INTEGER ) + + CAST ( - 1 AS INTEGER ) ) ) - - + 94 + - 25
----
1734

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT ALL - 97 + - 26 + + - COUNT( * ) + - 96 * - 30 - + ( 88 ) AS col1
----
2668

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL - 97 + - 26 + + - COUNT ( * ) + - 96 * - 30 - + ( 88 ) AS col1
----
2668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-825
SELECT - COUNT( * ) * - - 16 AS col0, CAST( NULL AS SIGNED ) AS col1
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-825
SELECT - COUNT ( * ) * - - 16 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-16
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-826
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + 44 + 45 AS col1, + 68 + + 0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-826
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + 44 + 45 AS col1, + 68 + + 0
----
NULL
68

query I rowsort
SELECT 50 + 9 col1
----
59

query I rowsort
SELECT + COALESCE ( - + 75, - ( - 82 ) ) AS col2
----
-75

query I rowsort
SELECT ALL - + 63 * 19 AS col1
----
-1197

query I rowsort
SELECT ALL - + 38 + 78 AS col2
----
40

query I rowsort
SELECT + 96 + - 25
----
71

query I rowsort
SELECT ALL - 49 + 22 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT + COUNT( * ) + - - 41 col0
----
42

skipif mysql # not compatible
query I rowsort label-833
SELECT + COUNT ( * ) + - - 41 col0
----
42

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-836
SELECT - 62 * - + COUNT( * ) * + 46 + + + 50 DIV 36 AS col0
----
2853

skipif mysql # not compatible
query I rowsort label-836
SELECT - 62 * - + COUNT ( * ) * + 46 + + + 50 / 36 AS col0
----
2853

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT 11 * - + COUNT( * ) * - COUNT( * ) * - 22 + - + 46 AS col2, + 93
----
-288
93

skipif mysql # not compatible
query II rowsort label-838
SELECT 11 * - + COUNT ( * ) * - COUNT ( * ) * - 22 + - + 46 AS col2, + 93
----
-288
93

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT DISTINCT + 56 - - CASE - 30 WHEN - - 12 THEN NULL WHEN + COUNT( * ) THEN + - 73 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT + 56 - - CASE - 30 WHEN - - 12 THEN NULL WHEN + COUNT ( * ) THEN + - 73 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT + 12 * - MIN( 34 ) + COUNT( * ) col2
----
-407

skipif mysql # not compatible
query I rowsort label-840
SELECT + 12 * - MIN ( 34 ) + COUNT ( * ) col2
----
-407

onlyif mysql # aggregate syntax: 
query II rowsort label-841
SELECT ALL - MIN( + 7 ), 93 AS col2
----
-7
93

skipif mysql # not compatible
query II rowsort label-841
SELECT ALL - MIN ( + 7 ), 93 AS col2
----
-7
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-842
SELECT ALL - + CASE - 11 WHEN 15 + + COUNT( DISTINCT - 35 ) + + COUNT( * ) + 80 THEN - 69 - + CAST( - COUNT( * ) AS SIGNED ) * + + MIN( ALL + + 23 ) * ( + - 59 ) + 52 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL - + CASE - 11 WHEN 15 + + COUNT ( DISTINCT - 35 ) + + COUNT ( * ) + 80 THEN - 69 - + CAST ( - COUNT ( * ) AS INTEGER ) * + + MIN ( ALL + + 23 ) * ( + - 59 ) + 52 END AS col2
----
NULL

query I rowsort
SELECT ALL - 0 - 33 AS col2
----
-33

query I rowsort
SELECT DISTINCT 45 * - 34
----
-1530

query I rowsort
SELECT ALL 80 * - + 98
----
-7840

onlyif mysql # aggregate syntax: 
query II rowsort label-846
SELECT ALL - 63 AS col0, 16 * COUNT( DISTINCT - 0 ) * 0 AS col2
----
-63
0

skipif mysql # not compatible
query II rowsort label-846
SELECT ALL - 63 AS col0, 16 * COUNT ( DISTINCT - 0 ) * 0 AS col2
----
-63
0

query I rowsort
SELECT 2 * 20
----
40

query I rowsort
SELECT ALL - 73 * + 29
----
-2117

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT - 17 * - + 73 * - - 66 * - COUNT( * ) + 19 AS col2
----
-81887

skipif mysql # not compatible
query I rowsort label-851
SELECT - 17 * - + 73 * - - 66 * - COUNT ( * ) + 19 AS col2
----
-81887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-852
SELECT ALL - 1 * - COALESCE ( + 72, + SUM( - 53 ) * + - COUNT( * ) DIV AVG ( 34 ) + + + 36 + CASE MAX( + + 4 ) WHEN + 62 THEN NULL ELSE 35 * - SUM( - - 14 ) + + 82 END )
----
72

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - 1 * - COALESCE ( + 72, + SUM ( - 53 ) * + - COUNT ( * ) / AVG ( 34 ) + + + 36 + CASE MAX ( + + 4 ) WHEN + 62 THEN NULL ELSE 35 * - SUM ( - - 14 ) + + 82 END )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT ALL 31 + ( + COUNT( * ) ) AS col0, 23 AS col2
----
32
23

skipif mysql # not compatible
query II rowsort label-853
SELECT ALL 31 + ( + COUNT ( * ) ) AS col0, 23 AS col2
----
32
23

query II rowsort
SELECT + 89, NULLIF ( 32, - 68 ) AS col0
----
89
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-855
SELECT ALL CAST( NULL AS SIGNED ) + + + 1 - + 61 * + 74 / CAST( + 66 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL CAST ( NULL AS INTEGER ) + + + 1 - + 61 * + 74 / CAST ( + 66 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT COUNT( * ) + + COALESCE ( - - 90, + + 27 + - - 15 * + 19 + + 11 ) * + 87
----
7831

skipif mysql # not compatible
query I rowsort label-856
SELECT COUNT ( * ) + + COALESCE ( - - 90, + + 27 + - - 15 * + 19 + + 11 ) * + 87
----
7831

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-857
SELECT COUNT( * ) DIV + SUM( DISTINCT + 99 ), 9 + + + 22 AS col2
----
0
31

skipif mysql # not compatible
query II rowsort label-857
SELECT COUNT ( * ) / + SUM ( DISTINCT + 99 ), 9 + + + 22 AS col2
----
0
31

query I rowsort
SELECT 59 + - - 58 col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT COALESCE ( - 36, 93 ) + + 43 + + - 28 * - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT COALESCE ( - 36, 93 ) + + 43 + + - 28 * - COUNT ( * )
----
35

query I rowsort
SELECT ALL 60 * + 10 * 97
----
58200

query I rowsort
SELECT ALL + + 98 + + 86 col1
----
184

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

query I rowsort
SELECT - 94 * - 59
----
5546

query I rowsort
SELECT 57 - - 0 AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT DISTINCT - COUNT( * ) AS col0, - 10 AS col1
----
-1
-10

skipif mysql # not compatible
query II rowsort label-865
SELECT DISTINCT - COUNT ( * ) AS col0, - 10 AS col1
----
-1
-10

query I rowsort
SELECT ALL 77 + - 10
----
67

query I rowsort
SELECT + 60 - + 78
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT MAX( + 11 ) * 29 AS col0
----
319

skipif mysql # not compatible
query I rowsort label-868
SELECT MAX ( + 11 ) * 29 AS col0
----
319

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

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT - - 93 / + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL + 26 - + + 75 col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT 5 * MAX( ALL - 73 ) AS col2
----
-365

skipif mysql # not compatible
query I rowsort label-872
SELECT 5 * MAX ( ALL - 73 ) AS col2
----
-365

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-874
SELECT ALL 92, 47 * + + CAST( 54 AS SIGNED ) + 81 AS col0
----
92
2619

skipif mysql # not compatible
query II rowsort label-874
SELECT ALL 92, 47 * + + CAST ( 54 AS INTEGER ) + 81 AS col0
----
92
2619

query II rowsort
SELECT ALL + 39 AS col1, - 5 col0
----
39
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-876
SELECT 68 * CASE - CAST( NULL AS SIGNED ) WHEN + 43 THEN + 24 WHEN - 46 + + 7 + - 22 + 22 + - 83 + 28 / + 23 * + 43 THEN NULL WHEN COUNT( * ) * + CAST( NULL AS SIGNED ) THEN + - 17 + + 52 * - + COALESCE ( 1, - 98 ) / + AVG ( ALL - - 18 ) + + 49 * + COALESCE ( - 82, + - ( ( 47 ) ) ) * - 63 - + + 47 + CAST( NULL AS SIGNED ) END + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT 68 * CASE - CAST ( NULL AS INTEGER ) WHEN + 43 THEN + 24 WHEN - 46 + + 7 + - 22 + 22 + - 83 + 28 / + 23 * + 43 THEN NULL WHEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) THEN + - 17 + + 52 * - + COALESCE ( 1, - 98 ) / + AVG ( ALL - - 18 ) + + 49 * + COALESCE ( - 82, + - ( ( 47 ) ) ) * - 63 - + + 47 + CAST ( NULL AS INTEGER ) END + - + COUNT ( * )
----
NULL

query I rowsort
SELECT 9 * 30
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT + 51 DIV - 68 * - 90 + - ( + 83 ) * 38
----
-3154

skipif mysql # not compatible
query I rowsort label-878
SELECT + 51 / - 68 * - 90 + - ( + 83 ) * 38
----
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT MIN( - 93 ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-879
SELECT MIN ( - 93 ) col2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT ALL + COALESCE ( - 69, + + 36 ) DIV + 79 * - + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL + COALESCE ( - 69, + + 36 ) / + 79 * - + 21 AS col0
----
0

query I rowsort
SELECT 92 + - + 94
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT 5 * + COUNT( * ) - + - COUNT( * ) / SUM( ALL 96 ) / 44 - - - ( - CASE 75 WHEN - COUNT( * ) THEN 37 WHEN + - 65 THEN NULL END ) * + 71 + 6 * - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT 5 * + COUNT ( * ) - + - COUNT ( * ) / SUM ( ALL 96 ) / 44 - - - ( - CASE 75 WHEN - COUNT ( * ) THEN 37 WHEN + - 65 THEN NULL END ) * + 71 + 6 * - - 47
----
NULL

query I rowsort
SELECT 99 * - 30 col2
----
-2970

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-885
SELECT DISTINCT + 5 * + 95 / 37 + - - CAST( NULL AS SIGNED ) AS col2, - 76 + + - 81 AS col1
----
NULL
-157

skipif mysql # not compatible
query II rowsort label-885
SELECT DISTINCT + 5 * + 95 / 37 + - - CAST ( NULL AS INTEGER ) AS col2, - 76 + + - 81 AS col1
----
NULL
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT - 13 * - 53 + + 27 + + ( - + ( - 98 ) ) - CASE 49 WHEN - 13 * - COUNT( * ) THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-886
SELECT - 13 * - 53 + + 27 + + ( - + ( - 98 ) ) - CASE 49 WHEN - 13 * - COUNT ( * ) THEN - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 85 + + 5 AS col1
----
90

query I rowsort
SELECT ALL + 88 * COALESCE ( - 77, 9 ) + - 20 AS col0
----
-6796

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT MAX( - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-889
SELECT MAX ( - 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL + COUNT( * ) * - + 25 + - 19 - + 26 + - 36 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + COUNT ( * ) * - + 25 + - 19 - + 26 + - 36 AS col1
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-891
SELECT COUNT( * ) * - 29 * + COUNT( * ) + 85 * + CAST( - - 82 AS SIGNED ) DIV - COUNT( * ) AS col1
----
-6999

skipif mysql # not compatible
query I rowsort label-891
SELECT COUNT ( * ) * - 29 * + COUNT ( * ) + 85 * + CAST ( - - 82 AS INTEGER ) / - COUNT ( * ) AS col1
----
-6999

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT 78 + + 32 + + COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT 78 + + 32 + + COUNT ( * )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ALL - COUNT( * ) + + SUM( DISTINCT + 78 ) col2
----
77

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL - COUNT ( * ) + + SUM ( DISTINCT + 78 ) col2
----
77

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( + 62, 9 ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT DISTINCT + 91 - - 42 - + - 69 * CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT + 91 - - 42 - + - 69 * CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
64

query I rowsort
SELECT ALL 66 - + 73
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + + 52 * + + 82 + - 17 * SUM( DISTINCT + + 65 )
----
3159

skipif mysql # not compatible
query I rowsort label-899
SELECT + + 52 * + + 82 + - 17 * SUM ( DISTINCT + + 65 )
----
3159

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT + + COUNT( * ) + 98 * + 3
----
295

skipif mysql # not compatible
query I rowsort label-900
SELECT + + COUNT ( * ) + 98 * + 3
----
295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT ALL - CAST( + + 24 AS SIGNED ) * - 79 + + 48 * + ( + 43 ) + + 65 AS col2
----
4025

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL - CAST ( + + 24 AS INTEGER ) * - 79 + + 48 * + ( + 43 ) + + 65 AS col2
----
4025

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT + - 67 + + COUNT( * ) * + 7
----
-60

skipif mysql # not compatible
query I rowsort label-902
SELECT + - 67 + + COUNT ( * ) * + 7
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT - + 61 - + - 53 DIV + 39 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-903
SELECT - + 61 - + - 53 / + 39 AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-904
SELECT - + COUNT( * ) DIV 8 * 40
----
0

skipif mysql # not compatible
query I rowsort label-904
SELECT - + COUNT ( * ) / 8 * 40
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-905
SELECT ALL MAX( - + 84 ), - CAST( NULL AS SIGNED ) AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-905
SELECT ALL MAX ( - + 84 ), - CAST ( NULL AS INTEGER ) AS col1
----
-84
NULL

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

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

query I rowsort
SELECT DISTINCT - 28 * - 42 * 26 * ( - - 19 ) AS col2
----
580944

query I rowsort
SELECT + - 17 * + 59 AS col1
----
-1003

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

query I rowsort
SELECT DISTINCT - 78 * - ( ( 40 ) )
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT - COUNT( * ) + 7 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-911
SELECT - COUNT ( * ) + 7 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-912
SELECT - - 34 * + COUNT( * ) * - COUNT( DISTINCT - - NULLIF ( + CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NULL THEN - 69 ELSE + 73 END, - 98 ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-912
SELECT - - 34 * + COUNT ( * ) * - COUNT ( DISTINCT - - NULLIF ( + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN - 69 ELSE + 73 END, - 98 ) ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT MAX( ALL + 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-913
SELECT MAX ( ALL + 26 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-914
SELECT - 92 + SUM( + - 34 ) + - 4 * - - 14 AS col2, - CASE + 20 WHEN - 68 * + - NULLIF ( COUNT( * ), + 12 * - 40 ) + - 4 / + + COALESCE ( + + 49, + MAX( ALL - 98 ) * + ( - + 42 ) - + + 98 + 19, + 18 * - 99 * - + 20 ) THEN NULL WHEN + ( - COUNT( * ) ) THEN - - NULLIF ( - COALESCE ( + + 76, - + 56 ), 45 ) + - CAST( - 39 AS SIGNED ) ELSE NULL END * - 63
----
-182
NULL

skipif mysql # not compatible
query II rowsort label-914
SELECT - 92 + SUM ( + - 34 ) + - 4 * - - 14 AS col2, - CASE + 20 WHEN - 68 * + - NULLIF ( COUNT ( * ), + 12 * - 40 ) + - 4 / + + COALESCE ( + + 49, + MAX ( ALL - 98 ) * + ( - + 42 ) - + + 98 + 19, + 18 * - 99 * - + 20 ) THEN NULL WHEN + ( - COUNT ( * ) ) THEN - - NULLIF ( - COALESCE ( + + 76, - + 56 ), 45 ) + - CAST ( - 39 AS INTEGER ) ELSE NULL END * - 63
----
-182
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-915
SELECT ALL COUNT( * ) AS col0, 4 * + 30 AS col1
----
1
120

skipif mysql # not compatible
query II rowsort label-915
SELECT ALL COUNT ( * ) AS col0, 4 * + 30 AS col1
----
1
120

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-917
SELECT + CASE + 17 WHEN 82 * - COUNT( * ) + - ( 90 ) + - 78 * + + 25 THEN - 79 END * 99 col2, - 56 AS col0
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-917
SELECT + CASE + 17 WHEN 82 * - COUNT ( * ) + - ( 90 ) + - 78 * + + 25 THEN - 79 END * 99 col2, - 56 AS col0
----
NULL
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-918
SELECT - 68 + + COUNT( * ) DIV + - COALESCE ( + + 16, 1 * 50, - 15 ) * - - 72 * - 88
----
-68

skipif mysql # not compatible
query I rowsort label-918
SELECT - 68 + + COUNT ( * ) / + - COALESCE ( + + 16, 1 * 50, - 15 ) * - - 72 * - 88
----
-68

query I rowsort
SELECT ALL COALESCE ( 93, + + 56 )
----
93

query I rowsort
SELECT DISTINCT + ( + + 71 ) + - 65 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-921
SELECT - 15 DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-921
SELECT - 15 / + 75 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-923
SELECT DISTINCT + 77 / COUNT( * ) + + - 42 + - 38 + 75 * - 44 * - 26 * - CASE - 96 WHEN + - CASE + 63 WHEN - - 17 + + + COUNT( ALL - NULLIF ( CAST( NULL AS DECIMAL ), 90 ) ) THEN CAST( + CASE - 31 WHEN COALESCE ( - ( + 89 ), + - 39 ) * - - 54 THEN 82 WHEN + 43 - - 42 THEN 88 ELSE ( - COUNT( * ) ) END AS SIGNED ) END THEN - NULLIF ( - 28, + 59 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT + 77 / COUNT ( * ) + + - 42 + - 38 + 75 * - 44 * - 26 * - CASE - 96 WHEN + - CASE + 63 WHEN - - 17 + + + COUNT ( ALL - NULLIF ( CAST ( NULL AS REAL ), 90 ) ) THEN CAST ( + CASE - 31 WHEN COALESCE ( - ( + 89 ), + - 39 ) * - - 54 THEN 82 WHEN + 43 - - 42 THEN 88 ELSE ( - COUNT ( * ) ) END AS INTEGER ) END THEN - NULLIF ( - 28, + 59 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT - 85 DIV - 85
----
1

skipif mysql # not compatible
query I rowsort label-924
SELECT - 85 / - 85
----
1

query I rowsort
SELECT ALL + 44 * - + 23 + + 56 * - 14 + - - 39 AS col0
----
-1757

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT - 61 * + - COALESCE ( - - 22, + - COUNT( * ), - + 93 - - COUNT( * ) )
----
1342

skipif mysql # not compatible
query I rowsort label-926
SELECT - 61 * + - COALESCE ( - - 22, + - COUNT ( * ), - + 93 - - COUNT ( * ) )
----
1342

query I rowsort
SELECT - 73 - - 62 AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT ALL + SUM( 52 ) DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL + SUM ( 52 ) / 92 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT - 49 DIV NULLIF ( - + 96, + 18 * - 87 * + 39 + - 53 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-929
SELECT - 49 / NULLIF ( - + 96, + 18 * - 87 * + 39 + - 53 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-930
SELECT + CASE + NULLIF ( + + 68, CAST( NULL AS SIGNED ) / 24 + - - 21 + - 15 + 54 + COUNT( * ) * - ( COUNT( * ) ) ) WHEN - 60 THEN - 14 + + 12 END * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-930
SELECT + CASE + NULLIF ( + + 68, CAST ( NULL AS INTEGER ) / 24 + - - 21 + - 15 + 54 + COUNT ( * ) * - ( COUNT ( * ) ) ) WHEN - 60 THEN - 14 + + 12 END * 69 AS col1
----
NULL

query I rowsort
SELECT ( 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT ALL 14 * - 68 + + SUM( ALL + 94 )
----
-858

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL 14 * - 68 + + SUM ( ALL + 94 )
----
-858

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL 20 * - - 48 * + + 32 - COUNT( * )
----
30719

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL 20 * - - 48 * + + 32 - COUNT ( * )
----
30719

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT + COUNT( - 25 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT + COUNT ( - 25 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT ALL 7 * + COALESCE ( + 94 * CASE + 78 WHEN COUNT( * ) * 16 + 91 THEN 20 END, 69 + 56, 92, - 22 ) AS col2
----
875

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL 7 * + COALESCE ( + 94 * CASE + 78 WHEN COUNT ( * ) * 16 + 91 THEN 20 END, 69 + 56, 92, - 22 ) AS col2
----
875

query I rowsort
SELECT CASE + 75 WHEN + 88 THEN - 86 ELSE 15 + 0 END AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-938
SELECT ALL + 3 * + MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL + 3 * + MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 94 * 54
----
5076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-940
SELECT ALL 71 * - CASE + 3 / - 33 WHEN + 74 + + COALESCE ( - 16, - 18 * 86 ) THEN NULL WHEN + COUNT( - 91 ) / MIN( 26 ) + + CASE CAST( NULL AS SIGNED ) WHEN - ( + 73 ) THEN 1 + + 92 WHEN 75 THEN - 47 END * - 17 THEN - 97 * 97 + 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL 71 * - CASE + 3 / - 33 WHEN + 74 + + COALESCE ( - 16, - 18 * 86 ) THEN NULL WHEN + COUNT ( - 91 ) / MIN ( 26 ) + + CASE CAST ( NULL AS INTEGER ) WHEN - ( + 73 ) THEN 1 + + 92 WHEN 75 THEN - 47 END * - 17 THEN - 97 * 97 + 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT COALESCE ( COUNT( * ), 69 * 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-941
SELECT COALESCE ( COUNT ( * ), 69 * 88 ) AS col0
----
1

query I rowsort
SELECT + 26 * 90 + 82 AS col0
----
2422

query I rowsort
SELECT + 41 - 2 * + 45 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-944
SELECT + ( - CASE WHEN - ( - 61 ) IN ( MIN( ALL + 85 ) / + COALESCE ( + CAST( NULL AS SIGNED ), 20 + 71, CAST( + 60 AS SIGNED ) + - 43 * + COUNT( * ) ) ) THEN + 12 END ) * + COALESCE ( + 86 * COUNT( + 67 ), 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT + ( - CASE WHEN - ( - 61 ) IN ( MIN ( ALL + 85 ) / + COALESCE ( + CAST ( NULL AS INTEGER ), 20 + 71, CAST ( + 60 AS INTEGER ) + - 43 * + COUNT ( * ) ) ) THEN + 12 END ) * + COALESCE ( + 86 * COUNT ( + 67 ), 17 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT - CASE 25 WHEN + 77 THEN NULL WHEN - 85 THEN + 39 WHEN 57 THEN ( CASE + 92 WHEN + NULLIF ( ( - 43 ), + 10 ) THEN 57 + 9 WHEN CASE 0 WHEN + 99 THEN NULL WHEN - 77 * + COUNT( * ) + - 55 THEN + 21 END THEN 95 WHEN + 65 THEN COUNT( + 70 ) ELSE NULL END ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT - CASE 25 WHEN + 77 THEN NULL WHEN - 85 THEN + 39 WHEN 57 THEN ( CASE + 92 WHEN + NULLIF ( ( - 43 ), + 10 ) THEN 57 + 9 WHEN CASE 0 WHEN + 99 THEN NULL WHEN - 77 * + COUNT ( * ) + - 55 THEN + 21 END THEN 95 WHEN + 65 THEN COUNT ( + 70 ) ELSE NULL END ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-947
SELECT - ( + CASE 68 WHEN 44 * ( 70 ) + 98 THEN NULL WHEN + CASE + COALESCE ( 82, CASE 77 WHEN 64 THEN 84 + + AVG ( + 98 ) END, 25 + ( 96 ) * + COUNT( * ) ) WHEN - 47 + AVG ( ALL - 90 ) * + 43 THEN 50 ELSE NULL END / - CAST( 70 + - 52 * 2 AS DECIMAL ) THEN 40 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT - ( + CASE 68 WHEN 44 * ( 70 ) + 98 THEN NULL WHEN + CASE + COALESCE ( 82, CASE 77 WHEN 64 THEN 84 + + AVG ( + 98 ) END, 25 + ( 96 ) * + COUNT ( * ) ) WHEN - 47 + AVG ( ALL - 90 ) * + 43 THEN 50 ELSE NULL END / - CAST ( 70 + - 52 * 2 AS REAL ) THEN 40 END ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-948
SELECT - ( ( MAX( - 52 ) ) ) DIV + COUNT( ALL + 40 )
----
52

skipif mysql # not compatible
query I rowsort label-948
SELECT - ( ( MAX ( - 52 ) ) ) / + COUNT ( ALL + 40 )
----
52

query I rowsort
SELECT + 99 * + 5 col0
----
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-950
SELECT ALL COUNT( * ) DIV SUM( DISTINCT 31 DIV + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL COUNT ( * ) / SUM ( DISTINCT 31 / + 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT - COALESCE ( 44, NULLIF ( - 16, - 53 ) + - MIN( ALL 55 ), - 77 + 61 )
----
-44

skipif mysql # not compatible
query I rowsort label-951
SELECT - COALESCE ( 44, NULLIF ( - 16, - 53 ) + - MIN ( ALL 55 ), - 77 + 61 )
----
-44

query I rowsort
SELECT DISTINCT 44 col0
----
44

query I rowsort
SELECT ALL CASE 54 WHEN ( - ( 57 ) ) + - 4 * 43 THEN 6 END * 71 AS col1
----
NULL

query I rowsort
SELECT + 69 * 42
----
2898

query I rowsort
SELECT + 39 * 45 AS col1
----
1755

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

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

query I rowsort
SELECT DISTINCT COALESCE ( 7, 40 )
----
7

query I rowsort
SELECT + 33 - - 75 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL COUNT( * ) + + 67 * COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL COUNT ( * ) + + 67 * COUNT ( * )
----
68

query I rowsort
SELECT 42 * - 93 + - 12 * - 24
----
-3618

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT + COUNT( * ) * + 87 - + 94 * + CASE COUNT( DISTINCT 50 ) WHEN + AVG ( 51 ) THEN NULL ELSE - 81 * 25 - - 71 END
----
183763

skipif mysql # not compatible
query I rowsort label-961
SELECT + COUNT ( * ) * + 87 - + 94 * + CASE COUNT ( DISTINCT 50 ) WHEN + AVG ( 51 ) THEN NULL ELSE - 81 * 25 - - 71 END
----
183763

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

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

query I rowsort
SELECT 27 + 1
----
28

query I rowsort
SELECT - 17 * - 20 + 70 AS col1
----
410

query I rowsort
SELECT 43 * 96 AS col2
----
4128

query I rowsort
SELECT 80 * - 77 + 24
----
-6136

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT + 66 DIV + 20 + ( 55 + - 2 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-967
SELECT + 66 / + 20 + ( 55 + - 2 ) AS col0
----
56

query I rowsort
SELECT ALL + 80 - 12 AS col0
----
68

query I rowsort
SELECT 68 * 30 col2
----
2040

query I rowsort
SELECT DISTINCT - + COALESCE ( - 77, 36, 73 )
----
77

query I rowsort
SELECT - 13 + NULLIF ( 55, 61 * 86 ) AS col2
----
42

query I rowsort
SELECT 73 * 41 AS col2
----
2993

query I rowsort
SELECT DISTINCT - + NULLIF ( - 96, 44 * 72 )
----
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT + CAST( + 56 AS SIGNED ) + + 54 * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-975
SELECT + CAST ( + 56 AS INTEGER ) + + 54 * - COUNT ( * )
----
2

query I rowsort
SELECT ALL - 89 * 10
----
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT COUNT( * ) + COALESCE ( 67, + 61 * - 97 ) * - ( - MIN( - 21 ) ) AS col2
----
-1406

skipif mysql # not compatible
query I rowsort label-977
SELECT COUNT ( * ) + COALESCE ( 67, + 61 * - 97 ) * - ( - MIN ( - 21 ) ) AS col2
----
-1406

query I rowsort
SELECT ALL - COALESCE ( + 84, + 44 + + 28 * 47, ( 40 ) * 19 ) AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT + CAST( - 76 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-979
SELECT + CAST ( - 76 AS INTEGER ) AS col0
----
-76

query I rowsort
SELECT - 29 + 4 AS col1
----
-25

query I rowsort
SELECT DISTINCT 32 col2
----
32

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

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

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

query I rowsort
SELECT - - 61 * 50 - + 69 * - 60
----
7190

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

query I rowsort
SELECT 11 - 92
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT ALL - NULLIF ( MIN( + 95 ), - AVG ( DISTINCT 5 ) * CAST( 75 AS SIGNED ) ) + + 11 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - NULLIF ( MIN ( + 95 ), - AVG ( DISTINCT 5 ) * CAST ( 75 AS INTEGER ) ) + + 11 AS col1
----
-84

query I rowsort
SELECT ALL + 63 + 56
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-989
SELECT + MIN( - NULLIF ( + 13, 94 * ( 28 ) ) ) + 10 DIV - COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-989
SELECT + MIN ( - NULLIF ( + 13, 94 * ( 28 ) ) ) + 10 / - COUNT ( * ) AS col0
----
-23

query I rowsort
SELECT ALL + 82 + - 5 + - 9 * + 90 AS col2
----
-733

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT ALL 3 DIV + + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL 3 / + + 91 AS col0
----
0

query I rowsort
SELECT 27 + + 21 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL - 10 + + SUM( 22 )
----
12

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - 10 + + SUM ( 22 )
----
12

query I rowsort
SELECT COALESCE ( 14, 71 * NULLIF ( 94, COALESCE ( - 59, 29 ) ) ) + 50
----
64

query I rowsort
SELECT ALL 67 * - - 21 AS col0
----
1407

query I rowsort
SELECT 53 + 48 AS col1
----
101

query I rowsort
SELECT DISTINCT 2 - 90 * 50
----
-4498

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT DISTINCT SUM( ALL 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT SUM ( ALL 81 ) AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT 43 DIV COALESCE ( 36, 83, COALESCE ( + COUNT( * ), - COUNT( * ), + 77 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1000
SELECT 43 / COALESCE ( 36, 83, COALESCE ( + COUNT ( * ), - COUNT ( * ), + 77 ) ) AS col0
----
1

query I rowsort
SELECT ALL ( - 27 ) * - 46
----
1242

query I rowsort
SELECT ( - + 76 ) * 42 col1
----
-3192

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

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

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

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

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

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

query I rowsort
SELECT ALL - 85 * - 23 AS col0
----
1955

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT CASE + 54 WHEN 79 THEN COUNT( * ) WHEN 58 THEN NULL WHEN + COUNT( * ) THEN NULL END * COALESCE ( 60, NULLIF ( + 11, + 88 ) + ( - 77 ), 1 + - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1007
SELECT CASE + 54 WHEN 79 THEN COUNT ( * ) WHEN 58 THEN NULL WHEN + COUNT ( * ) THEN NULL END * COALESCE ( 60, NULLIF ( + 11, + 88 ) + ( - 77 ), 1 + - 81 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1009
SELECT + CASE - 8 WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) + - 72 * 13 THEN - 34 WHEN + CAST( - 82 AS SIGNED ) THEN - 33 / + 84 END - SUM( 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT + CASE - 8 WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) + - 72 * 13 THEN - 34 WHEN + CAST ( - 82 AS INTEGER ) THEN - 33 / + 84 END - SUM ( 10 ) AS col1
----
NULL

query I rowsort
SELECT - 60 + + 4
----
-56

query I rowsort
SELECT ALL - 58 + - + 32
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT - - ( 11 ) * 23 + + 14 DIV + ( MAX( 86 ) )
----
253

skipif mysql # not compatible
query I rowsort label-1012
SELECT - - ( 11 ) * 23 + + 14 / + ( MAX ( 86 ) )
----
253

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

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL - COUNT ( * ) / + 52
----
0

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

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - 97 + COUNT ( * ) + 0 AS col1
----
-96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL + - 4 + - COALESCE ( COUNT( DISTINCT + 2 ), + 79 - + 42 * CAST( 99 AS SIGNED ), 58, COALESCE ( 86, 8 ) * + COUNT( * ) + - CAST( 20 AS SIGNED ), 41 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + - 4 + - COALESCE ( COUNT ( DISTINCT + 2 ), + 79 - + 42 * CAST ( 99 AS INTEGER ), 58, COALESCE ( 86, 8 ) * + COUNT ( * ) + - CAST ( 20 AS INTEGER ), 41 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL COALESCE ( COALESCE ( + + 44, + 73, SUM( ALL - 88 ) + - 33 ), 69 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL COALESCE ( COALESCE ( + + 44, + 73, SUM ( ALL - 88 ) + - 33 ), 69 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT - ( + 64 ) + COUNT( * ) * + 94
----
30

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT - ( + 64 ) + COUNT ( * ) * + 94
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT ALL COUNT( * ) AS col0, 51 * 32 AS col2
----
1
1632

skipif mysql # not compatible
query II rowsort label-1019
SELECT ALL COUNT ( * ) AS col0, 51 * 32 AS col2
----
1
1632

query I rowsort
SELECT - 97 - + 21 * + ( - 13 ) * + 90 + + 64
----
24537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT - 3 * CAST( + AVG ( ALL + 38 ) AS SIGNED )
----
-114

skipif mysql # not compatible
query I rowsort label-1021
SELECT - 3 * CAST ( + AVG ( ALL + 38 ) AS INTEGER )
----
-114

query II rowsort
SELECT - 59, 82 AS col0
----
-59
82

onlyif mysql # DIV for integer division: 
query II rowsort label-1023
SELECT 52 AS col2, - 77 DIV 83
----
52
0

skipif mysql # not compatible
query II rowsort label-1023
SELECT 52 AS col2, - 77 / 83
----
52
0

query I rowsort
SELECT + 38 * 27
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT - 67 * + 25 * - SUM( DISTINCT + ( 80 ) ) AS col2
----
134000

skipif mysql # not compatible
query I rowsort label-1025
SELECT - 67 * + 25 * - SUM ( DISTINCT + ( 80 ) ) AS col2
----
134000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1026
SELECT DISTINCT - NULLIF ( + 83, - 10 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT - NULLIF ( + 83, - 10 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT ALL SUM( NULLIF ( + + 33, - 65 + - CAST( NULL AS SIGNED ) ) ) col2
----
33

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL SUM ( NULLIF ( + + 33, - 65 + - CAST ( NULL AS INTEGER ) ) ) col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT - COUNT( * ) - COALESCE ( - 9, + 35 )
----
8

skipif mysql # not compatible
query I rowsort label-1028
SELECT - COUNT ( * ) - COALESCE ( - 9, + 35 )
----
8

query I rowsort
SELECT - 2 * + 70 AS col1
----
-140

query II rowsort
SELECT ALL 81, + 82 AS col0
----
81
82

query I rowsort
SELECT DISTINCT NULLIF ( + - 87, + ( + 54 ) + + 60 )
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT + 72 * - - ( + CASE COUNT( * ) WHEN + 69 THEN 55 / 66 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT + 72 * - - ( + CASE COUNT ( * ) WHEN + 69 THEN 55 / 66 END ) AS col2
----
NULL

query I rowsort
SELECT - 84 + - 2 + - 6 + + 23 * + COALESCE ( 23 * + 74, + 65, 29 ) * 47
----
1839770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1035
SELECT + COUNT( DISTINCT 84 ) DIV + - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT + COUNT ( DISTINCT 84 ) / + - 76 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1036
SELECT + MAX( DISTINCT + 1 ) DIV SUM( + 67 ) + CAST( 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1036
SELECT + MAX ( DISTINCT + 1 ) / SUM ( + 67 ) + CAST ( 14 AS INTEGER ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT - COUNT( * ) + - - 64 + - + 11 - 79 * - 40
----
3212

skipif mysql # not compatible
query I rowsort label-1037
SELECT - COUNT ( * ) + - - 64 + - + 11 - 79 * - 40
----
3212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1038
SELECT + 53 DIV SUM( ALL + - COALESCE ( 26, 90 ) ) + 65 - - 31 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1038
SELECT + 53 / SUM ( ALL + - COALESCE ( 26, 90 ) ) + 65 - - 31 AS col0
----
94

query I rowsort
SELECT ALL - 14 * ( - 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1040
SELECT + 8 DIV - CASE + 82 WHEN - 81 + 92 THEN NULL ELSE + ( - 13 ) * 78 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT + 8 / - CASE + 82 WHEN - 81 + 92 THEN NULL ELSE + ( - 13 ) * 78 END AS col2
----
0

query I rowsort
SELECT ALL + 3 * 98 AS col2
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1042
SELECT ALL - + COALESCE ( + CAST( NULL AS SIGNED ), + 78 ) * ( 81 ) + - 97
----
-6415

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - + COALESCE ( + CAST ( NULL AS INTEGER ), + 78 ) * ( 81 ) + - 97
----
-6415

query I rowsort
SELECT DISTINCT + - NULLIF ( - - 84, 87 ) AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT ALL - 74 * - 34 + 74 DIV - 71 AS col2
----
2515

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - 74 * - 34 + 74 / - 71 AS col2
----
2515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT + + 81 + + + COUNT( * ) + + + 34 + - MAX( - ( - 10 ) ) DIV 94 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-1045
SELECT + + 81 + + + COUNT ( * ) + + + 34 + - MAX ( - ( - 10 ) ) / 94 AS col0
----
116

query I rowsort
SELECT + + 23 * + - 2
----
-46

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

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

query II rowsort
SELECT 0 AS col0, + 41 AS col1
----
0
41

query I rowsort
SELECT ALL 98 * + 52 + + + 87 AS col1
----
5183

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1051
SELECT ALL + - CAST( NULL AS DECIMAL ), + 67 AS col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1051
SELECT ALL + - CAST ( NULL AS REAL ), + 67 AS col2
----
NULL
67

query I rowsort
SELECT + 80 * - + 57
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL COUNT( DISTINCT + 57 ) * - 73
----
-73

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL COUNT ( DISTINCT + 57 ) * - 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + 98 + COUNT( * ) + - 85 * 66 * - ( - 62 ) AS col1
----
-347721

skipif mysql # not compatible
query I rowsort label-1054
SELECT + 98 + COUNT ( * ) + - 85 * 66 * - ( - 62 ) AS col1
----
-347721

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT - 80 - CASE ( AVG ( DISTINCT 85 ) ) WHEN + 59 + ( + ( - 69 ) + - COUNT( * ) ) THEN NULL WHEN + 64 THEN - 20 * + 14 ELSE 20 END * 97 AS col1
----
-2020

skipif mysql # not compatible
query I rowsort label-1055
SELECT - 80 - CASE ( AVG ( DISTINCT 85 ) ) WHEN + 59 + ( + ( - 69 ) + - COUNT ( * ) ) THEN NULL WHEN + 64 THEN - 20 * + 14 ELSE 20 END * 97 AS col1
----
-2020

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT COALESCE ( + + COUNT( * ), NULLIF ( + + 12, - 1 * + 66 ) * - 18 + 40, - CASE + 35 WHEN ( NULLIF ( - 52, 74 ) ) THEN + 48 * + 29 WHEN - 68 THEN NULL WHEN NULLIF ( MAX( 96 ), - 32 ) + - 99 * 53 THEN 29 + 23 END + - 45 * 17 )
----
1

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT COALESCE ( + + COUNT ( * ), NULLIF ( + + 12, - 1 * + 66 ) * - 18 + 40, - CASE + 35 WHEN ( NULLIF ( - 52, 74 ) ) THEN + 48 * + 29 WHEN - 68 THEN NULL WHEN NULLIF ( MAX ( 96 ), - 32 ) + - 99 * 53 THEN 29 + 23 END + - 45 * 17 )
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1058
SELECT - COUNT( 49 ) + + + 38 + 5 - 26 * 85 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT - COUNT ( 49 ) + + + 38 + 5 - 26 * 85 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT ALL + ( - 7 ) - + CAST( - 42 AS SIGNED ) * - 8 AS col0
----
-343

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + ( - 7 ) - + CAST ( - 42 AS INTEGER ) * - 8 AS col0
----
-343

query I rowsort
SELECT ALL NULLIF ( + + 34, + 85 + + NULLIF ( + 83, - 94 * 24 + 39 ) * + 54 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1061
SELECT DISTINCT + 38 DIV - + COALESCE ( - + 34, - - 16 + 47, 75 + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + 38 / - + COALESCE ( - + 34, - - 16 + 47, 75 + COUNT ( * ) )
----
1

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

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT SUM ( DISTINCT 98 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1063
SELECT - COUNT( * ) DIV - NULLIF ( + 16, + 35 - CASE + COUNT( * ) + 4 * 59 WHEN 45 DIV SUM( DISTINCT - NULLIF ( 51, + 70 ) ) THEN NULL WHEN 26 THEN NULL WHEN CAST( - SUM( 65 ) AS SIGNED ) THEN NULL ELSE + ( + COUNT( * ) ) * - COUNT( * ) + 82 END * 78 ) * + COALESCE ( 81, - 55 DIV + 21 )
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT - COUNT ( * ) / - NULLIF ( + 16, + 35 - CASE + COUNT ( * ) + 4 * 59 WHEN 45 / SUM ( DISTINCT - NULLIF ( 51, + 70 ) ) THEN NULL WHEN 26 THEN NULL WHEN CAST ( - SUM ( 65 ) AS INTEGER ) THEN NULL ELSE + ( + COUNT ( * ) ) * - COUNT ( * ) + 82 END * 78 ) * + COALESCE ( 81, - 55 / + 21 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1064
SELECT - COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) - - 1 * - 38 * 21 AS col1
----
-800

skipif mysql # not compatible
query I rowsort label-1064
SELECT - COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) - - 1 * - 38 * 21 AS col1
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT ALL COALESCE ( - ( - 34 ), - 28 DIV + 49 )
----
34

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL COALESCE ( - ( - 34 ), - 28 / + 49 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT - 96 + + + CASE + + COUNT( * ) WHEN NULLIF ( COUNT( * ), - 66 + - 96 ) + + 99 THEN 42 * - ( - 42 * - 61 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT - 96 + + + CASE + + COUNT ( * ) WHEN NULLIF ( COUNT ( * ), - 66 + - 96 ) + + 99 THEN 42 * - ( - 42 * - 61 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT - SUM( ALL - + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1067
SELECT - SUM ( ALL - + 19 ) AS col2
----
19

query II rowsort
SELECT - 49 * + 62, - 39 AS col2
----
-3038
-39

query I rowsort
SELECT DISTINCT ( - 42 ) col0
----
-42

query I rowsort
SELECT ALL - 48 * - 54 col0
----
2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1071
SELECT - COUNT( * ) * + - ( + 46 ) DIV - 55 * CAST( - COUNT( * ) * 12 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1071
SELECT - COUNT ( * ) * + - ( + 46 ) / - 55 * CAST ( - COUNT ( * ) * 12 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1072
SELECT DISTINCT - NULLIF ( 77, + - 80 + + 65 ) DIV 82 + 11
----
11

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT - NULLIF ( 77, + - 80 + + 65 ) / 82 + 11
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT ALL - + 61 DIV + 70 + + 93
----
93

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL - + 61 / + 70 + + 93
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT DISTINCT + 63 / + 26 + 79 + 99 + CASE 74 WHEN + 82 THEN NULL WHEN 34 * - 51 THEN ( + 77 ) * - 77 END * - CAST( - 39 * + 96 + MIN( + ( 63 ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT + 63 / + 26 + 79 + 99 + CASE 74 WHEN + 82 THEN NULL WHEN 34 * - 51 THEN ( + 77 ) * - 77 END * - CAST ( - 39 * + 96 + MIN ( + ( 63 ) ) AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 33 * 33 AS col1, - 92 AS col2
----
-1089
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1076
SELECT DISTINCT 0 DIV - COUNT( * ) + 57 DIV + MAX( 93 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT 0 / - COUNT ( * ) + 57 / + MAX ( 93 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1077
SELECT ALL - 84 DIV + 23 + 90 + MIN( DISTINCT 36 ) + + 69
----
192

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL - 84 / + 23 + 90 + MIN ( DISTINCT 36 ) + + 69
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1078
SELECT - + CAST( NULL AS SIGNED ) - + + 76, 79 AS col2
----
NULL
79

skipif mysql # not compatible
query II rowsort label-1078
SELECT - + CAST ( NULL AS INTEGER ) - + + 76, 79 AS col2
----
NULL
79

query I rowsort
SELECT - - 52 - ( + - ( - 18 ) )
----
34

query I rowsort
SELECT + + ( - 71 ) * 6 * 26 AS col1
----
-11076

query II rowsort
SELECT ALL 39 * 50 AS col2, 82
----
1950
82

query I rowsort
SELECT ALL 53 * - - 34 col0
----
1802

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT - COALESCE ( 33, ( - CASE COUNT( * ) WHEN - 42 THEN NULL WHEN 45 * + 60 + + 46 THEN COUNT( - 73 ) - + SUM( DISTINCT + 88 ) * 82 ELSE NULL END ), - 87 ) * 16 AS col2
----
-528

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - COALESCE ( 33, ( - CASE COUNT ( * ) WHEN - 42 THEN NULL WHEN 45 * + 60 + + 46 THEN COUNT ( - 73 ) - + SUM ( DISTINCT + 88 ) * 82 ELSE NULL END ), - 87 ) * 16 AS col2
----
-528

query I rowsort
SELECT - - 62 * + 22 + - 44 * - 78
----
4796

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT - 49 - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-1085
SELECT - 49 - COUNT ( * )
----
-50

query I rowsort
SELECT ALL - 6 * - 37 * - 76 + + COALESCE ( 34, - 71 * 97, 89 ) AS col2
----
-16838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT - CASE - 38 WHEN + + 72 + + - 99 THEN + NULLIF ( 98, - 8 ) * CAST( NULL AS SIGNED ) ELSE - 42 END - - 74 * - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-1087
SELECT - CASE - 38 WHEN + + 72 + + - 99 THEN + NULLIF ( 98, - 8 ) * CAST ( NULL AS INTEGER ) ELSE - 42 END - - 74 * - COUNT ( * )
----
-32

query I rowsort
SELECT ALL - 56 - 23 * + + 2 * - 58 AS col0
----
2612

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT COALESCE ( + - 90, - COUNT( - - 34 ), 24, + 30 * + 91 ) * COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-1089
SELECT COALESCE ( + - 90, - COUNT ( - - 34 ), 24, + 30 * + 91 ) * COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT CASE - 59 WHEN 88 THEN 16 ELSE + COUNT( * ) + COUNT( * ) END + 64
----
66

skipif mysql # not compatible
query I rowsort label-1090
SELECT CASE - 59 WHEN 88 THEN 16 ELSE + COUNT ( * ) + COUNT ( * ) END + 64
----
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL ( + SUM( ALL - + 66 ) ) * CAST( NULL AS SIGNED ) col2
----
NULL

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

query II rowsort
SELECT 2, 41 + - 98 + 59 AS col1
----
2
2

query II rowsort
SELECT ALL 25, - 41 AS col1
----
25
-41

query I rowsort
SELECT 42 - - + 18 * 93 + + - 30
----
1686

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1096
SELECT 81 / ( - CAST( NULL AS SIGNED ) ) AS col1, 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1096
SELECT 81 / ( - CAST ( NULL AS INTEGER ) ) AS col1, 65 AS col0
----
NULL
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1097
SELECT - 33 AS col2, MIN( DISTINCT + + 22 ) AS col2
----
-33
22

skipif mysql # not compatible
query II rowsort label-1097
SELECT - 33 AS col2, MIN ( DISTINCT + + 22 ) AS col2
----
-33
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT ALL COUNT( * ) + NULLIF ( + 67, 87 )
----
68

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL COUNT ( * ) + NULLIF ( + 67, 87 )
----
68

query I rowsort
SELECT ALL + 90 + - COALESCE ( - 3, + 1 ) - - - 26 * 80
----
-1987

query I rowsort
SELECT 77 - + - 71 + + - 90
----
58

query II rowsort
SELECT - 44 col0, 57 AS col2
----
-44
57

query I rowsort
SELECT ALL - 26 + - 73
----
-99

query I rowsort
SELECT ALL - + 65 * + - 82
----
5330

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

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

query I rowsort
SELECT + NULLIF ( 89, 75 )
----
89

query I rowsort
SELECT + 31 * - 78 * - 23 + 69
----
55683

query I rowsort
SELECT ALL + 62 + + + 87 AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - MIN( DISTINCT - + 71 ) + + + 89 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-1108
SELECT - MIN ( DISTINCT - + 71 ) + + + 89 AS col0
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT COUNT( - 49 ) * - - COUNT( * ) DIV 57 * - - 29 - 80 - - 44 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1109
SELECT COUNT ( - 49 ) * - - COUNT ( * ) / 57 * - - 29 - 80 - - 44 AS col2
----
-36

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

query I rowsort
SELECT + - 42 col2
----
-42

query II rowsort
SELECT DISTINCT - + 46 col0, - 69 AS col1
----
-46
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ALL - NULLIF ( - - NULLIF ( 11, + + 12 + + - 26 + COUNT( * ) ), + 58 - + ( - 43 ) ) - 65 * 82
----
-5341

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - NULLIF ( - - NULLIF ( 11, + + 12 + + - 26 + COUNT ( * ) ), + 58 - + ( - 43 ) ) - 65 * 82
----
-5341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1114
SELECT - - 72 * ( + 27 ) + - CAST( NULL AS SIGNED ) + COUNT( DISTINCT ( + 32 ) ) + - 14 * - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1114
SELECT - - 72 * ( + 27 ) + - CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT ( + 32 ) ) + - 14 * - 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1115
SELECT ALL - COALESCE ( CASE + + COALESCE ( + 94, - 78 + COUNT( * ) ) WHEN - 2 DIV + ( 89 ) THEN NULL WHEN - 17 THEN NULL WHEN 92 THEN NULL ELSE 75 + + CAST( NULL AS SIGNED ) END, 19 * - 72 ) DIV + 85 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - COALESCE ( CASE + + COALESCE ( + 94, - 78 + COUNT ( * ) ) WHEN - 2 / + ( 89 ) THEN NULL WHEN - 17 THEN NULL WHEN 92 THEN NULL ELSE 75 + + CAST ( NULL AS INTEGER ) END, 19 * - 72 ) / + 85 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT + 47 + - + COALESCE ( - - 61, 0, COUNT( * ) ) + 44 * 28
----
1218

skipif mysql # not compatible
query I rowsort label-1116
SELECT + 47 + - + COALESCE ( - - 61, 0, COUNT ( * ) ) + 44 * 28
----
1218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1117
SELECT + + 57 AS col2, NULLIF ( + 8, - ( + 61 ) + CAST( + 43 AS SIGNED ) ) col0
----
57
8

skipif mysql # not compatible
query II rowsort label-1117
SELECT + + 57 AS col2, NULLIF ( + 8, - ( + 61 ) + CAST ( + 43 AS INTEGER ) ) col0
----
57
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT 60 / - CASE + 70 WHEN + - 49 * - 85 * - 50 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT 60 / - CASE + 70 WHEN + - 49 * - 85 * - 50 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 70 * - 96 - - 41 + + + ( 79 ) + - ( + 27 ) * 66
----
5058

query I rowsort
SELECT - - ( + 22 ) * - - 93 + 50
----
2096

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1122
SELECT ALL + 65 DIV ( - - ( - - 93 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL + 65 / ( - - ( - - 93 ) ) AS col1
----
0

query I rowsort
SELECT 36 * COALESCE ( - 59, 35 + + 55, 47 ) * + 35
----
-74340

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL 97 * - - 2 * MAX( DISTINCT ( - 35 ) ) col0
----
-6790

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL 97 * - - 2 * MAX ( DISTINCT ( - 35 ) ) col0
----
-6790

onlyif mysql # DIV for integer division: 
query II rowsort label-1125
SELECT ALL 91 DIV + 44, NULLIF ( + 94, 61 ) AS col0
----
2
94

skipif mysql # not compatible
query II rowsort label-1125
SELECT ALL 91 / + 44, NULLIF ( + 94, 61 ) AS col0
----
2
94

query II rowsort
SELECT 36 * - - 48 AS col0, + 9
----
1728
9

query I rowsort
SELECT + ( 16 ) * NULLIF ( + COALESCE ( - 21, - 6 ), - ( - 49 ) * 27 - 91 ) + 1
----
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT COUNT( * ) + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1128
SELECT COUNT ( * ) + 51 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT 87 + - - 98 AS col2, - MAX( 65 )
----
185
-65

skipif mysql # not compatible
query II rowsort label-1129
SELECT 87 + - - 98 AS col2, - MAX ( 65 )
----
185
-65

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

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

query I rowsort
SELECT DISTINCT - 3 + - 64 + + 21 + - 26 * - 45
----
1124

query I rowsort
SELECT ALL 25 + - 4 * 76 AS col1
----
-279

query I rowsort
SELECT 77 + - + 4
----
73

query II rowsort
SELECT ALL 37, + 4 AS col0
----
37
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT ALL 88, MAX( - 12 ) * + ( + COUNT( * ) ) AS col2
----
88
-12

skipif mysql # not compatible
query II rowsort label-1135
SELECT ALL 88, MAX ( - 12 ) * + ( + COUNT ( * ) ) AS col2
----
88
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1136
SELECT CAST( - CASE - 91 WHEN - 53 THEN ( CAST( NULL AS DECIMAL ) ) END AS DECIMAL ) + + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT CAST ( - CASE - 91 WHEN - 53 THEN ( CAST ( NULL AS REAL ) ) END AS REAL ) + + 88 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 30 + 41 AS col0
----
71

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

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

query II rowsort
SELECT - - 46, 5 - - 49 + + 49 + - 31 - - 36 AS col1
----
46
108

query I rowsort
SELECT - 55 * + + 98
----
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT 77 * + 86 * + 52 * 2 * - 21 + - COUNT( * ) AS col2
----
-14462449

skipif mysql # not compatible
query I rowsort label-1142
SELECT 77 * + 86 * + 52 * 2 * - 21 + - COUNT ( * ) AS col2
----
-14462449

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

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

query II rowsort
SELECT ALL 96 AS col2, + 59 + - 17
----
96
42

query II rowsort
SELECT - 7, 59 AS col0
----
-7
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL - COUNT( * ) - + + 73 + + 63 col2
----
-11

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - COUNT ( * ) - + + 73 + + 63 col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT + - COALESCE ( 98, - 70 DIV - COALESCE ( + COUNT( * ), 82 ) ) * CASE 57 WHEN 11 THEN NULL ELSE 78 END AS col0
----
-7644

skipif mysql # not compatible
query I rowsort label-1147
SELECT + - COALESCE ( 98, - 70 / - COALESCE ( + COUNT ( * ), 82 ) ) * CASE 57 WHEN 11 THEN NULL ELSE 78 END AS col0
----
-7644

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1148
SELECT - CASE - 54 WHEN - COUNT( * ) + - COUNT( * ) - + - COUNT( * ) * + 3 * 48 THEN NULL WHEN + 97 * ( - 56 ) THEN NULL WHEN - 97 / + COALESCE ( + CAST( + 61 AS DECIMAL ), - COUNT( * ), 52 * AVG ( DISTINCT 51 ) ) THEN + SUM( DISTINCT 10 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT - CASE - 54 WHEN - COUNT ( * ) + - COUNT ( * ) - + - COUNT ( * ) * + 3 * 48 THEN NULL WHEN + 97 * ( - 56 ) THEN NULL WHEN - 97 / + COALESCE ( + CAST ( + 61 AS REAL ), - COUNT ( * ), 52 * AVG ( DISTINCT 51 ) ) THEN + SUM ( DISTINCT 10 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - ( + ( - 30 ) ) + - 45 AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1150
SELECT DISTINCT 96 DIV + 51 + + - ( + 16 ) AS col0, COUNT( * ) AS col1
----
-15
1

skipif mysql # not compatible
query II rowsort label-1150
SELECT DISTINCT 96 / + 51 + + - ( + 16 ) AS col0, COUNT ( * ) AS col1
----
-15
1

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

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

query I rowsort
SELECT + 84 - - 46 AS col1
----
130

query I rowsort
SELECT ALL + NULLIF ( + 12, - + 89 * 8 ) AS col1
----
12

query I rowsort
SELECT - NULLIF ( 16, 80 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1155
SELECT DISTINCT + SUM( + 77 ) AS col2, 51 DIV + 61 + 22 AS col2
----
77
22

skipif mysql # not compatible
query II rowsort label-1155
SELECT DISTINCT + SUM ( + 77 ) AS col2, 51 / + 61 + 22 AS col2
----
77
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL - COUNT( * ) * + 83 * + - 69 + - 25 - + + 64 * 23 AS col1
----
4230

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL - COUNT ( * ) * + 83 * + - 69 + - 25 - + + 64 * 23 AS col1
----
4230

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT - 73 DIV - - ( 11 )
----
-6

skipif mysql # not compatible
query I rowsort label-1157
SELECT - 73 / - - ( 11 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT DISTINCT - 16 DIV - - 82 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT - 16 / - - 82 * + COUNT ( * )
----
0

query I rowsort
SELECT + ( - 70 ) * - 6 + - 84
----
336

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

skipif mysql # not compatible
query I rowsort label-1160
SELECT - 37 / + COUNT ( * ) AS col1
----
-37

query II rowsort
SELECT ALL - 89 + + - 2 col2, - 76 * - 83
----
-91
6308

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT DISTINCT - 17 DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT - 17 / + 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT 84 + + + 95 * + COUNT( ALL + + 66 )
----
179

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT 84 + + + 95 * + COUNT ( ALL + + 66 )
----
179

query I rowsort
SELECT ALL - 99 * - 51 AS col0
----
5049

query I rowsort
SELECT DISTINCT + 44 + - 31 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL + COUNT( * ) + 30 + + COALESCE ( 66, - 86, + 99 * 6 + + 99 * + 23 + 29 ) * 1
----
97

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + COUNT ( * ) + 30 + + COALESCE ( 66, - 86, + 99 * 6 + + 99 * + 23 + 29 ) * 1
----
97

query I rowsort
SELECT - ( + 55 ) - + + 74 + + + 41
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1168
SELECT DISTINCT + CAST( 78 AS SIGNED ) AS col2, - 51, 82 AS col0
----
78
-51
82

skipif mysql # not compatible
query III rowsort label-1168
SELECT DISTINCT + CAST ( 78 AS INTEGER ) AS col2, - 51, 82 AS col0
----
78
-51
82

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

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

query I rowsort
SELECT + - 34 * + 27 * - 66
----
60588

query I rowsort
SELECT + + ( - 51 ) + 38 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT ALL + 54 - - + 71 + - - 66 + - CAST( NULL AS SIGNED ) * - - COUNT( * ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL + 54 - - + 71 + - - 66 + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * - COUNT ( * ) col2
----
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( + 37, - + 19 )
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL 85 * 8 + SUM( + 84 )
----
764

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL 85 * 8 + SUM ( + 84 )
----
764

query I rowsort
SELECT + 29 + - 11 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT + - ( ( + MIN( 57 ) ) ) + - + 26
----
-83

skipif mysql # not compatible
query I rowsort label-1178
SELECT + - ( ( + MIN ( 57 ) ) ) + - + 26
----
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1179
SELECT + COUNT( * ) * - + 50 - ( - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT + COUNT ( * ) * - + 50 - ( - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + 91 * - 94 AS col0
----
-8554

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

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

query I rowsort
SELECT + 21 * + ( ( - 9 ) )
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1183
SELECT DISTINCT - 49 DIV - COUNT( * ) + - - 71 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT - 49 / - COUNT ( * ) + - - 71 AS col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT + 92 * 95 DIV + + 75
----
116

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 92 * 95 / + + 75
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT - 97 * + CASE - + 2 WHEN - COUNT( * ) * + 20 + + 55 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT - 97 * + CASE - + 2 WHEN - COUNT ( * ) * + 20 + + 55 THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT - MAX( 7 ) + + 27 + + + 96 * - 31 * COUNT( * ) AS col0, + 69
----
-2956
69

skipif mysql # not compatible
query II rowsort label-1186
SELECT - MAX ( 7 ) + + 27 + + + 96 * - 31 * COUNT ( * ) AS col0, + 69
----
-2956
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT ALL 39 DIV - 48 + + 8 col2
----
8

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL 39 / - 48 + + 8 col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1188
SELECT + 85 + - + COUNT( * ) * + 58, 42 AS col2
----
27
42

skipif mysql # not compatible
query II rowsort label-1188
SELECT + 85 + - + COUNT ( * ) * + 58, 42 AS col2
----
27
42

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

query I rowsort
SELECT ALL - 30 * - + 2 AS col0
----
60

query I rowsort
SELECT + 1 * + - 94 + - 12 + 99
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL COUNT( * ) * + 56 + 32
----
88

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL COUNT ( * ) * + 56 + 32
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL 20 * + MIN( + 16 ) AS col1
----
320

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL 20 * + MIN ( + 16 ) AS col1
----
320

query I rowsort
SELECT - 31 + 16
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ALL + ( + CASE WHEN ( ( - - 56 ) ) IS NOT NULL THEN + + CASE + + 95 WHEN COUNT( * ) THEN + 62 * 44 ELSE NULL END ELSE + 47 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + ( + CASE WHEN ( ( - - 56 ) ) IS NOT NULL THEN + + CASE + + 95 WHEN COUNT ( * ) THEN + 62 * 44 ELSE NULL END ELSE + 47 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT CASE + 39 WHEN ( 92 ) THEN + - 52 WHEN - CAST( - 76 AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT CASE + 39 WHEN ( 92 ) THEN + - 52 WHEN - CAST ( - 76 AS INTEGER ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT CAST( NULL AS SIGNED ) * 15 + - 40 + - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT CAST ( NULL AS INTEGER ) * 15 + - 40 + - 38 AS col2
----
NULL

query I rowsort
SELECT + 95 * + - 47
----
-4465

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

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

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

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

query I rowsort
SELECT ALL + + 16 * - 58 AS col2
----
-928

query I rowsort
SELECT 9 * - - 48
----
432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT - 73 + 88 - + CASE - - 67 WHEN + 86 THEN NULL ELSE CASE 29 WHEN + + 96 THEN COUNT( * ) * COUNT( * ) WHEN - 5 THEN + 22 WHEN + 37 THEN - 65 - 45 END + 16 END + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT - 73 + 88 - + CASE - - 67 WHEN + 86 THEN NULL ELSE CASE 29 WHEN + + 96 THEN COUNT ( * ) * COUNT ( * ) WHEN - 5 THEN + 22 WHEN + 37 THEN - 65 - 45 END + 16 END + + 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT COUNT( * ), 26 * ( 69 ) * - MIN( + + 18 ) AS col1
----
1
-32292

skipif mysql # not compatible
query II rowsort label-1206
SELECT COUNT ( * ), 26 * ( 69 ) * - MIN ( + + 18 ) AS col1
----
1
-32292

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT DISTINCT + 81 * 38 + + - COUNT( * ) - - 98 AS col1
----
3175

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT + 81 * 38 + + - COUNT ( * ) - - 98 AS col1
----
3175

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT + NULLIF ( + COALESCE ( - 20, 39, + 3 ), COUNT( * ) * - 61 ) * 30
----
-600

skipif mysql # not compatible
query I rowsort label-1208
SELECT + NULLIF ( + COALESCE ( - 20, 39, + 3 ), COUNT ( * ) * - 61 ) * 30
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT MAX( ALL - 19 ) * + 43
----
-817

skipif mysql # not compatible
query I rowsort label-1209
SELECT MAX ( ALL - 19 ) * + 43
----
-817

query I rowsort
SELECT + 0 + + 33 - ( - ( + + 79 ) )
----
112

query II rowsort
SELECT - + 19, - 15 AS col2
----
-19
-15

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1214
SELECT DISTINCT - + 45 * + 94 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - + 45 * + 94 / - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT - MIN( DISTINCT - - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT - MIN ( DISTINCT - - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT - COUNT( * ) AS col0, 71 - + 51 + + 54 AS col1
----
-1
74

skipif mysql # not compatible
query II rowsort label-1216
SELECT - COUNT ( * ) AS col0, 71 - + 51 + + 54 AS col1
----
-1
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1217
SELECT ALL COUNT( * ), 62 DIV + ( - 96 ) AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-1217
SELECT ALL COUNT ( * ), 62 / + ( - 96 ) AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL + COUNT( * ) + - 84 + - ( ( 55 ) )
----
-138

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL + COUNT ( * ) + - 84 + - ( ( 55 ) )
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1219
SELECT ALL - + 42, - 53 * - + NULLIF ( + + COALESCE ( COUNT( * ), - - 64, - SUM( ALL - + CAST( - 98 AS SIGNED ) ) + CASE - SUM( DISTINCT 75 ) WHEN 58 THEN - CASE - 87 WHEN - NULLIF ( - 82, - 68 DIV + 41 ) THEN CASE 20 WHEN + 17 DIV 89 THEN 18 ELSE NULL END DIV - 39 END DIV 0 ELSE NULL END ), CASE + 0 WHEN 95 * - ( - 83 ) THEN 23 END * + 85 ) AS col1
----
-42
53

skipif mysql # not compatible
query II rowsort label-1219
SELECT ALL - + 42, - 53 * - + NULLIF ( + + COALESCE ( COUNT ( * ), - - 64, - SUM ( ALL - + CAST ( - 98 AS INTEGER ) ) + CASE - SUM ( DISTINCT 75 ) WHEN 58 THEN - CASE - 87 WHEN - NULLIF ( - 82, - 68 / + 41 ) THEN CASE 20 WHEN + 17 / 89 THEN 18 ELSE NULL END / - 39 END / 0 ELSE NULL END ), CASE + 0 WHEN 95 * - ( - 83 ) THEN 23 END * + 85 ) AS col1
----
-42
53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT + COUNT( * ) AS col0, 84 * - 38 * - + 31
----
1
98952

skipif mysql # not compatible
query II rowsort label-1221
SELECT + COUNT ( * ) AS col0, 84 * - 38 * - + 31
----
1
98952

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1222
SELECT ALL - 46 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL - 46 / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 25 + 5 AS col0
----
30

query I rowsort
SELECT DISTINCT 21 * CASE - + 83 WHEN 74 THEN NULL WHEN - 11 THEN NULL WHEN 65 THEN + 93 ELSE 57 END
----
1197

query I rowsort
SELECT ALL 80 + 31 AS col0
----
111

query I rowsort
SELECT 46 - - + 35 + 72
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT 7 * + 41 - + 49 * - + 33 AS col2, 65 * 78 * 20 + COUNT( * ) * + 46 + - 23
----
1904
101423

skipif mysql # not compatible
query II rowsort label-1227
SELECT 7 * + 41 - + 49 * - + 33 AS col2, 65 * 78 * 20 + COUNT ( * ) * + 46 + - 23
----
1904
101423

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

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

query I rowsort
SELECT ALL 44 + + 93 + + 4
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT + COUNT( * ) - - 40 + + - 22 + - + 65
----
-46

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT + COUNT ( * ) - - 40 + + - 22 + - + 65
----
-46

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1232
SELECT DISTINCT COUNT( * ) DIV - 77 AS col0, 16 * 5
----
0
80

skipif mysql # not compatible
query II rowsort label-1232
SELECT DISTINCT COUNT ( * ) / - 77 AS col0, 16 * 5
----
0
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1233
SELECT DISTINCT 1 * + + CAST( - ( AVG ( DISTINCT 69 ) ) AS SIGNED ) AS col0, + 12 + + 49
----
-69
61

skipif mysql # not compatible
query II rowsort label-1233
SELECT DISTINCT 1 * + + CAST ( - ( AVG ( DISTINCT 69 ) ) AS INTEGER ) AS col0, + 12 + + 49
----
-69
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT DISTINCT + COUNT( * ) - + + 39 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT + COUNT ( * ) - + + 39 AS col1
----
-38

query I rowsort
SELECT DISTINCT 22 * + - 36 AS col2
----
-792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) / + + 64 * - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) / + + 64 * - 77 AS col0
----
NULL

query I rowsort
SELECT 34 + - + 6 - + - ( + - 58 ) + - + 15 * + 30 * - 21
----
9420

query I rowsort
SELECT 80 + - + 34 AS col1
----
46

query I rowsort
SELECT DISTINCT - 0 + - + ( - + 19 ) * + 64
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL COUNT( * ) + + - 56 * MAX( 13 ) col0
----
-727

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL COUNT ( * ) + + - 56 * MAX ( 13 ) col0
----
-727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1241
SELECT 72 + - - CAST( NULL AS SIGNED ) * - + 37 / + + 4, COUNT( * ) - - 7 AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-1241
SELECT 72 + - - CAST ( NULL AS INTEGER ) * - + 37 / + + 4, COUNT ( * ) - - 7 AS col1
----
NULL
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT + 8 + - ( - MAX( 57 ) ) + CAST( NULL AS SIGNED ) * - + 38 * + 65 / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + 8 + - ( - MAX ( 57 ) ) + CAST ( NULL AS INTEGER ) * - + 38 * + 65 / COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT ALL + 86 + - + 57 DIV 49 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL + 86 + - + 57 / 49 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL + + CASE + CASE COUNT( 37 ) WHEN - - SUM( - ( 24 ) ) THEN 42 END WHEN - COUNT( * ) THEN 0 * CASE 25 WHEN 83 * 97 THEN NULL ELSE 17 * + 84 END ELSE COUNT( * ) END + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL + + CASE + CASE COUNT ( 37 ) WHEN - - SUM ( - ( 24 ) ) THEN 42 END WHEN - COUNT ( * ) THEN 0 * CASE 25 WHEN 83 * 97 THEN NULL ELSE 17 * + 84 END ELSE COUNT ( * ) END + - 87
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT 52 * - MAX( 76 ) * 42 col1, + CASE 82 WHEN - 16 THEN + - 60 * - 63 ELSE NULL END + 95
----
-165984
NULL

skipif mysql # not compatible
query II rowsort label-1245
SELECT 52 * - MAX ( 76 ) * 42 col1, + CASE 82 WHEN - 16 THEN + - 60 * - 63 ELSE NULL END + 95
----
-165984
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1247
SELECT ALL - + CAST( + CAST( - 67 AS SIGNED ) AS SIGNED ) * COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL - + CAST ( + CAST ( - 67 AS INTEGER ) AS INTEGER ) * COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-1248
SELECT ALL + 75 + 69 DIV + - 98 AS col2, ( + + 98 ) * + 87 AS col0
----
75
8526

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL + 75 + 69 / + - 98 AS col2, ( + + 98 ) * + 87 AS col0
----
75
8526

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT 46 + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-1249
SELECT 46 + + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1250
SELECT 55 + CASE - + 10 WHEN - 28 THEN 54 + + MIN( + 42 ) * + ( + COUNT( * ) ) WHEN COUNT( * ) THEN - 58 - + 98 DIV + COALESCE ( + 31 DIV 4, + 51 ) ELSE 46 END
----
101

skipif mysql # not compatible
query I rowsort label-1250
SELECT 55 + CASE - + 10 WHEN - 28 THEN 54 + + MIN ( + 42 ) * + ( + COUNT ( * ) ) WHEN COUNT ( * ) THEN - 58 - + 98 / + COALESCE ( + 31 / 4, + 51 ) ELSE 46 END
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1251
SELECT + 30 DIV - 60 - - 61 DIV + COUNT( * ) col2
----
61

skipif mysql # not compatible
query I rowsort label-1251
SELECT + 30 / - 60 - - 61 / + COUNT ( * ) col2
----
61

query II rowsort
SELECT ALL - NULLIF ( + 23, + + 17 ) col2, - 1 AS col2
----
-23
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT ALL - MIN( + + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL - MIN ( + + 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT ALL 36 * 47 + COUNT( * )
----
1693

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL 36 * 47 + COUNT ( * )
----
1693

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

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

query II rowsort
SELECT ALL - 26 AS col1, 7 AS col0
----
-26
7

query I rowsort
SELECT DISTINCT + 85 * + 2 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT NULLIF ( + 71, - 63 + - COUNT( * ) / 47 * + NULLIF ( + 10, + COUNT( * ) ) ) + + 9 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1258
SELECT NULLIF ( + 71, - 63 + - COUNT ( * ) / 47 * + NULLIF ( + 10, + COUNT ( * ) ) ) + + 9 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT 71 * - + 72 * - COUNT( * )
----
5112

skipif mysql # not compatible
query I rowsort label-1259
SELECT 71 * - + 72 * - COUNT ( * )
----
5112

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT COALESCE ( + 26, 47 * 40 * - 26 + - COUNT( * ) ) * 11
----
286

skipif mysql # not compatible
query I rowsort label-1260
SELECT COALESCE ( + 26, 47 * 40 * - 26 + - COUNT ( * ) ) * 11
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT SUM( - CASE - 0 WHEN 62 THEN NULL ELSE - 57 + - 68 END ) + 87
----
212

skipif mysql # not compatible
query I rowsort label-1261
SELECT SUM ( - CASE - 0 WHEN 62 THEN NULL ELSE - 57 + - 68 END ) + 87
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT MAX( - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-1262
SELECT MAX ( - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT MIN( DISTINCT 73 ) * 16 + COUNT( * ) + 2 AS col2, 36
----
1171
36

skipif mysql # not compatible
query II rowsort label-1263
SELECT MIN ( DISTINCT 73 ) * 16 + COUNT ( * ) + 2 AS col2, 36
----
1171
36

query I rowsort
SELECT + 54 * + 79 + - 0 col2
----
4266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT DISTINCT - COUNT( * ) * - 25 DIV - 23
----
-1

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT - COUNT ( * ) * - 25 / - 23
----
-1

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

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

query I rowsort
SELECT + 18 + 59
----
77

query I rowsort
SELECT + 55 + 72 col1
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT + - 17 * 49 DIV + 87
----
-9

skipif mysql # not compatible
query I rowsort label-1269
SELECT + - 17 * 49 / + 87
----
-9

query I rowsort
SELECT - + 94 * - 70 + - 41
----
6539

query I rowsort
SELECT + 82 + - 17 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL CASE ( 57 ) WHEN - 71 + - - 33 - + 54 THEN + - 33 + - 58 WHEN + CASE + 64 WHEN - 22 THEN NULL WHEN COUNT( * ) + - 29 THEN 40 WHEN 51 THEN 21 ELSE NULL END / NULLIF ( 50, 14 * 96 ) THEN NULL WHEN 77 + + 66 * - 77 THEN 29 END + + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL CASE ( 57 ) WHEN - 71 + - - 33 - + 54 THEN + - 33 + - 58 WHEN + CASE + 64 WHEN - 22 THEN NULL WHEN COUNT ( * ) + - 29 THEN 40 WHEN 51 THEN 21 ELSE NULL END / NULLIF ( 50, 14 * 96 ) THEN NULL WHEN 77 + + 66 * - 77 THEN 29 END + + 90 AS col0
----
NULL

query I rowsort
SELECT + 21 * + COALESCE ( 10, - 90 * - 50 ) col0
----
210

query I rowsort
SELECT + 35 * - 69 * + 14 col2
----
-33810

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT - - 45 + MAX( DISTINCT 36 ) + + ( + + 25 ) + + + ( - ( COUNT( * ) ) ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-1275
SELECT - - 45 + MAX ( DISTINCT 36 ) + + ( + + 25 ) + + + ( - ( COUNT ( * ) ) ) AS col1
----
105

query I rowsort
SELECT ALL + 40 * 93 * 10 + 84 AS col1
----
37284

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL MIN( DISTINCT + 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL MIN ( DISTINCT + 92 ) AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1278
SELECT DISTINCT - 48 + - CAST( - NULLIF ( 17, + - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT - 48 + - CAST ( - NULLIF ( 17, + - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
-31

query II rowsort
SELECT ALL + - 44 + 48 + + 65 AS col0, - 88 + + - 9
----
69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL 41 * - MAX( ALL + - 7 ) * 12 AS col0
----
3444

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL 41 * - MAX ( ALL + - 7 ) * 12 AS col0
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT SUM( + 41 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-1281
SELECT SUM ( + 41 ) col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1282
SELECT - CASE - 57 WHEN - 80 THEN + 23 * + 42 * 79 WHEN - MAX( ALL CAST( NULL AS SIGNED ) ) THEN + + MIN( - + 29 ) + 24 / - 77 WHEN 36 * 27 THEN NULL ELSE NULL END * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT - CASE - 57 WHEN - 80 THEN + 23 * + 42 * 79 WHEN - MAX ( ALL CAST ( NULL AS INTEGER ) ) THEN + + MIN ( - + 29 ) + 24 / - 77 WHEN 36 * 27 THEN NULL ELSE NULL END * 43
----
NULL

query II rowsort
SELECT - 48 col1, + 73 * 89
----
-48
6497

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

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT 62 / - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL - COUNT( * ) - + SUM( + 94 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - COUNT ( * ) - + SUM ( + 94 ) AS col1
----
-95

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

skipif mysql # not compatible
query I rowsort label-1286
SELECT - 91 / COUNT ( * ) col1
----
-91

query I rowsort
SELECT DISTINCT - 54 * - 93 AS col1
----
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT ALL + MIN( - - 58 ) * - 35 AS col0
----
-2030

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL + MIN ( - - 58 ) * - 35 AS col0
----
-2030

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT - 55 DIV 22
----
-2

skipif mysql # not compatible
query I rowsort label-1289
SELECT - 55 / 22
----
-2

query I rowsort
SELECT - 61 * - + 43 col1
----
2623

query II rowsort
SELECT + 19 col2, ( + - 68 )
----
19
-68

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

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

query I rowsort
SELECT - 37 * + 72
----
-2664

query I rowsort
SELECT - 88 * + 30 + + - 15 + 60 AS col0
----
-2595

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL + COALESCE ( - ( - - COUNT( * ) ), + 95, - + 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + COALESCE ( - ( - - COUNT ( * ) ), + 95, - + 61 )
----
-1

query I rowsort
SELECT - 1 * 93
----
-93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT + 54 - 60 DIV + 71 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1299
SELECT + 54 - 60 / + 71 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + 53 * 44 + 1 + COUNT( * ) * - ( 82 ) - - 87 AS col2
----
2338

skipif mysql # not compatible
query I rowsort label-1300
SELECT + 53 * 44 + 1 + COUNT ( * ) * - ( 82 ) - - 87 AS col2
----
2338

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

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

query I rowsort
SELECT - 71 * - 29 * 54 - 67 AS col2
----
111119

query II rowsort
SELECT + 10, ( - 10 ) + + 51 AS col2
----
10
41

query II rowsort
SELECT 80 AS col1, 1 - - - 88 AS col1
----
80
-87

query II rowsort
SELECT + 71, 17 * + + COALESCE ( - + 64, 79 ) AS col0
----
71
-1088

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT - + 80 * - CASE + COUNT( * ) WHEN 81 THEN - 5 / - + 79 - - + 94 WHEN + + 2 / - 70 * - 65 / + COUNT( ALL 98 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1306
SELECT - + 80 * - CASE + COUNT ( * ) WHEN 81 THEN - 5 / - + 79 - - + 94 WHEN + + 2 / - 70 * - 65 / + COUNT ( ALL 98 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + 88 * - 44 + - 78
----
-3950

query I rowsort
SELECT DISTINCT + 11 * - + 61 + + + 39
----
-632

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1309
SELECT - - CAST( NULL AS SIGNED ), 47 + 54 AS col1
----
NULL
101

skipif mysql # not compatible
query II rowsort label-1309
SELECT - - CAST ( NULL AS INTEGER ), 47 + 54 AS col1
----
NULL
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1310
SELECT ALL + 82 * - CASE - 39 WHEN COUNT( * ) DIV 28 * + - MAX( + - 0 ) * + CASE + - 9 WHEN 24 + + 68 THEN - 49 WHEN + 36 THEN NULL END + + 44 THEN 9 + 85 ELSE 42 + + 41 END * - 66 + + CASE AVG ( ALL - ( 95 ) ) WHEN NULLIF ( COUNT( * ), - ( 13 ) ) THEN 24 WHEN CAST( NULL AS SIGNED ) THEN - 17 DIV 97 + + 90 WHEN + COUNT( DISTINCT - 10 ) * 34 THEN NULL ELSE + 25 DIV 87 END AS col1
----
449196

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + 82 * - CASE - 39 WHEN COUNT ( * ) / 28 * + - MAX ( + - 0 ) * + CASE + - 9 WHEN 24 + + 68 THEN - 49 WHEN + 36 THEN NULL END + + 44 THEN 9 + 85 ELSE 42 + + 41 END * - 66 + + CASE AVG ( ALL - ( 95 ) ) WHEN NULLIF ( COUNT ( * ), - ( 13 ) ) THEN 24 WHEN CAST ( NULL AS INTEGER ) THEN - 17 / 97 + + 90 WHEN + COUNT ( DISTINCT - 10 ) * 34 THEN NULL ELSE + 25 / 87 END AS col1
----
449196

query I rowsort
SELECT + 55 * 80 AS col0
----
4400

query II rowsort
SELECT DISTINCT 23 AS col2, 21
----
23
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL MIN( - + 77 ) + - - 95
----
18

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL MIN ( - + 77 ) + - - 95
----
18

query II rowsort
SELECT + + 53 + - - 92 AS col0, - 85
----
145
-85

query I rowsort
SELECT + + ( + 79 ) * + 58
----
4582

query I rowsort
SELECT + - 78 + - - 79 col0
----
1

query II rowsort
SELECT ALL - 53 AS col2, ( 53 ) AS col1
----
-53
53

query I rowsort
SELECT + + 3 + - 54 AS col1
----
-51

query I rowsort
SELECT ALL + 98 - + - 74
----
172

query II rowsort
SELECT - 85, 78 AS col2
----
-85
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT + - COUNT( * ) + - 60 col1
----
-61

skipif mysql # not compatible
query I rowsort label-1321
SELECT + - COUNT ( * ) + - 60 col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT DISTINCT 62 - + MAX( ALL - + 1 ) + + 44 * + 24 * 21 AS col2
----
22239

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT 62 - + MAX ( ALL - + 1 ) + + 44 * + 24 * 21 AS col2
----
22239

query I rowsort
SELECT ALL 21 * 52
----
1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT ALL NULLIF ( - 37, + 57 * + + CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN + 88 THEN COUNT( * ) ELSE NULL END ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL NULLIF ( - 37, + 57 * + + CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN + 88 THEN COUNT ( * ) ELSE NULL END ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT + SUM( + + 38 ) + + 55 + 99 + - 58 * 30 + 95 * + - 24 * - + NULLIF ( 53, 61 ) + - 63 DIV 65
----
119292

skipif mysql # not compatible
query I rowsort label-1325
SELECT + SUM ( + + 38 ) + + 55 + 99 + - 58 * 30 + 95 * + - 24 * - + NULLIF ( 53, 61 ) + - 63 / 65
----
119292

query I rowsort
SELECT DISTINCT 56 * - - 50 * - - CASE + + 31 WHEN - 41 THEN NULL WHEN - 37 THEN - + 66 ELSE NULL END
----
NULL

query I rowsort
SELECT + 67 + 72 - 94
----
45

query I rowsort
SELECT - 85 * 33
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT - 44 + - - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1329
SELECT - 44 + - - COUNT ( * ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL MAX( ALL - 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL MAX ( ALL - 29 ) AS col1
----
-29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1332
SELECT + 32 + + CAST( NULL AS SIGNED ) AS col2, 8 AS col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-1332
SELECT + 32 + + CAST ( NULL AS INTEGER ) AS col2, 8 AS col0
----
NULL
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT 87 * 85 DIV - 68
----
-108

skipif mysql # not compatible
query I rowsort label-1334
SELECT 87 * 85 / - 68
----
-108

query I rowsort
SELECT ( ( 52 ) ) + 44
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1336
SELECT DISTINCT - COALESCE ( CAST( + 95 AS SIGNED ), - 9 ) * 20 * - MIN( - 43 ) col0, 21
----
-81700
21

skipif mysql # not compatible
query II rowsort label-1336
SELECT DISTINCT - COALESCE ( CAST ( + 95 AS INTEGER ), - 9 ) * 20 * - MIN ( - 43 ) col0, 21
----
-81700
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1337
SELECT 6 DIV 93 DIV - SUM( ALL - - 50 ) * - 76 * - 11
----
0

skipif mysql # not compatible
query I rowsort label-1337
SELECT 6 / 93 / - SUM ( ALL - - 50 ) * - 76 * - 11
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT ALL 7 DIV 4 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL 7 / 4 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1339
SELECT - 21 * - COALESCE ( - 5, 79, + AVG ( - 25 ) DIV + COUNT( * ) + - 39 + + - 2 + CASE - + 51 WHEN - - 25 * 40 + - CASE WHEN 64 IS NOT NULL THEN NULL WHEN - 25 BETWEEN NULL AND 36 + 23 THEN NULL ELSE + 79 + CASE 48 + + ( - 0 - ( 33 ) * 68 ) WHEN + ( 90 ) - 95 * - 87 THEN NULL WHEN + 53 * 34 THEN 95 ELSE CAST( + 83 AS SIGNED ) + + 72 END END THEN - 95 * 36 - + 20 ELSE NULL END + - 53 ) * - ( + 38 ) + MIN( 60 + + 66 ) * + COALESCE ( + 25 + 69, - 38 + COALESCE ( 16 + CASE + 36 WHEN - COUNT( ALL 63 ) + 75 THEN 10 - ( + 26 ) WHEN + ( 32 ) THEN NULL END, COUNT( * ) * + 45 + 58, 30 DIV ( - COUNT( * ) ) ) )
----
15834

skipif mysql # not compatible
query I rowsort label-1339
SELECT - 21 * - COALESCE ( - 5, 79, + AVG ( - 25 ) / + COUNT ( * ) + - 39 + + - 2 + CASE - + 51 WHEN - - 25 * 40 + - CASE WHEN 64 IS NOT NULL THEN NULL WHEN - 25 BETWEEN NULL AND 36 + 23 THEN NULL ELSE + 79 + CASE 48 + + ( - 0 - ( 33 ) * 68 ) WHEN + ( 90 ) - 95 * - 87 THEN NULL WHEN + 53 * 34 THEN 95 ELSE CAST ( + 83 AS INTEGER ) + + 72 END END THEN - 95 * 36 - + 20 ELSE NULL END + - 53 ) * - ( + 38 ) + MIN ( 60 + + 66 ) * + COALESCE ( + 25 + 69, - 38 + COALESCE ( 16 + CASE + 36 WHEN - COUNT ( ALL 63 ) + 75 THEN 10 - ( + 26 ) WHEN + ( 32 ) THEN NULL END, COUNT ( * ) * + 45 + 58, 30 / ( - COUNT ( * ) ) ) )
----
15834

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT DISTINCT - 23 + + 0 - + 95 DIV + - 20 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT - 23 + + 0 - + 95 / + - 20 AS col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT 50 DIV + 20 + 16
----
18

skipif mysql # not compatible
query I rowsort label-1341
SELECT 50 / + 20 + 16
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL - COALESCE ( - 89, + COALESCE ( + + 60, + - 82 * - 76 * COUNT( * ) + - - 41 ) + + COUNT( * ) + + COUNT( * ), - 39 + - 44 + + 46 ) + + MIN( - 6 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - COALESCE ( - 89, + COALESCE ( + + 60, + - 82 * - 76 * COUNT ( * ) + - - 41 ) + + COUNT ( * ) + + COUNT ( * ), - 39 + - 44 + + 46 ) + + MIN ( - 6 ) col2
----
83

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

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

query I rowsort
SELECT + 94 * + 85 * - - 89 AS col2
----
711110

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT ALL - - SUM( ALL + + ( - 57 ) ) + + 98
----
41

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL - - SUM ( ALL + + ( - 57 ) ) + + 98
----
41

query I rowsort
SELECT ALL - - 0 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1347
SELECT NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) * + ( 45 ) + + + 24 + MIN( DISTINCT + 55 ) + 84 ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-1347
SELECT NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) * + ( 45 ) + + + 24 + MIN ( DISTINCT + 55 ) + 84 ) + - 76
----
-75

query I rowsort
SELECT ALL - 63 + 28
----
-35

query I rowsort
SELECT + 92 * + 13 * - 40
----
-47840

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + ( + - COUNT( * ) ) * + + 5 + - - 22 + + ( - 32 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1350
SELECT + ( + - COUNT ( * ) ) * + + 5 + - - 22 + + ( - 32 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT ALL + - COUNT( + - 86 ) + + + COUNT( * ) + + - 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + - COUNT ( + - 86 ) + + + COUNT ( * ) + + - 29 AS col0
----
-29

query I rowsort
SELECT + 10 * + 23 * + ( + 4 ) AS col0
----
920

query I rowsort
SELECT + 68 * - - 39 + + 38 AS col2
----
2690

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

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

query I rowsort
SELECT DISTINCT 44 - - 25 AS col2
----
69

query II rowsort
SELECT ALL 95 AS col2, ( + 11 )
----
95
11

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

skipif mysql # not compatible
query I rowsort label-1357
SELECT 61 / - + 54
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1358
SELECT COUNT( DISTINCT + - 49 ) * + 3 + 15 DIV 41 col1
----
3

skipif mysql # not compatible
query I rowsort label-1358
SELECT COUNT ( DISTINCT + - 49 ) * + 3 + 15 / 41 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT 6 * - CASE + 37 WHEN - 20 * + 45 + COUNT( * ) THEN + 59 * + 47 + 64 + + 8 + + 37 * 10 WHEN - - 69 + - NULLIF ( 13, COUNT( * ) + 95 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT 6 * - CASE + 37 WHEN - 20 * + 45 + COUNT ( * ) THEN + 59 * + 47 + 64 + + 8 + + 37 * 10 WHEN - - 69 + - NULLIF ( 13, COUNT ( * ) + 95 ) THEN NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1361
SELECT DISTINCT + 36 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT + 36 / + 99
----
0

query I rowsort
SELECT 96 * - 37 AS col1
----
-3552

query I rowsort
SELECT DISTINCT 37 + 15 AS col1
----
52

query I rowsort
SELECT ALL 66 + - - ( - 90 )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT 15 - + - 1 * + 4 * - 0 AS col0, COUNT( * )
----
15
1

skipif mysql # not compatible
query II rowsort label-1365
SELECT 15 - + - 1 * + 4 * - 0 AS col0, COUNT ( * )
----
15
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT DISTINCT COUNT( * ) + 66 + - COALESCE ( - 16, ( - + COUNT( * ) ) * + 22, + - 94 + + 31 * + 47 DIV + 89 + - 27 DIV - 18 * - 87 )
----
83

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT COUNT ( * ) + 66 + - COALESCE ( - 16, ( - + COUNT ( * ) ) * + 22, + - 94 + + 31 * + 47 / + 89 + - 27 / - 18 * - 87 )
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-1367
SELECT + 42 DIV + 45 + - 9 col1, 28 * + 9
----
-9
252

skipif mysql # not compatible
query II rowsort label-1367
SELECT + 42 / + 45 + - 9 col1, 28 * + 9
----
-9
252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1368
SELECT COUNT( * ) * COUNT( DISTINCT 98 ) DIV - + COALESCE ( - 77, + 71 ) * - 45 - 40 + 23 * - 60 AS col2
----
-1420

skipif mysql # not compatible
query I rowsort label-1368
SELECT COUNT ( * ) * COUNT ( DISTINCT 98 ) / - + COALESCE ( - 77, + 71 ) * - 45 - 40 + 23 * - 60 AS col2
----
-1420

query I rowsort
SELECT ALL 36 + 26 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1370
SELECT MAX( - + ( - 42 ) ) AS col1, 83
----
42
83

skipif mysql # not compatible
query II rowsort label-1370
SELECT MAX ( - + ( - 42 ) ) AS col1, 83
----
42
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ( 51 ) + + - NULLIF ( - + 16, COUNT( * ) ) col2
----
67

skipif mysql # not compatible
query I rowsort label-1371
SELECT ( 51 ) + + - NULLIF ( - + 16, COUNT ( * ) ) col2
----
67

query II rowsort
SELECT + 91 AS col0, + 87 AS col1
----
91
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL - CASE + 16 WHEN + 96 + - + COUNT( * ) THEN - 16 + + + MIN( 49 ) / 25 / 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - CASE + 16 WHEN + 96 + - + COUNT ( * ) THEN - 16 + + + MIN ( 49 ) / 25 / 19 END AS col0
----
NULL

query II rowsort
SELECT 29, - 46 col1
----
29
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1375
SELECT ALL 57 + CASE - 15 WHEN + - 47 * 49 * - ( - 35 ) + + 88 THEN NULL WHEN - 28 * - COUNT( ALL - 9 ) THEN NULL ELSE + - 23 + + - 73 END - 54 * - COALESCE ( - 78, 41 DIV + CAST( NULL AS SIGNED ) ) AS col2
----
-4251

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL 57 + CASE - 15 WHEN + - 47 * 49 * - ( - 35 ) + + 88 THEN NULL WHEN - 28 * - COUNT ( ALL - 9 ) THEN NULL ELSE + - 23 + + - 73 END - 54 * - COALESCE ( - 78, 41 / + CAST ( NULL AS INTEGER ) ) AS col2
----
-4251

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1376
SELECT ALL 62 + + + 25 * - CAST( + 85 AS SIGNED ) AS col0, + 45 AS col0
----
-2063
45

skipif mysql # not compatible
query II rowsort label-1376
SELECT ALL 62 + + + 25 * - CAST ( + 85 AS INTEGER ) AS col0, + 45 AS col0
----
-2063
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT ALL - + 13 + 92 * - + 0 DIV - - 47
----
-13

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - + 13 + 92 * - + 0 / - - 47
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT + + 47, 30 * - COUNT( * ) AS col0
----
47
-30

skipif mysql # not compatible
query II rowsort label-1378
SELECT + + 47, 30 * - COUNT ( * ) AS col0
----
47
-30

query II rowsort
SELECT ALL - 90 AS col0, 64
----
-90
64

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1381
SELECT 93 * CASE 9 WHEN + 91 + 31 + - 32 * - + 71 THEN NULL ELSE - 15 END DIV + COUNT( * ) AS col2
----
-1395

skipif mysql # not compatible
query I rowsort label-1381
SELECT 93 * CASE 9 WHEN + 91 + 31 + - 32 * - + 71 THEN NULL ELSE - 15 END / + COUNT ( * ) AS col2
----
-1395

query II rowsort
SELECT DISTINCT - 52, - 11 AS col0
----
-52
-11

query I rowsort
SELECT ALL - 92 - - 46 AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1384
SELECT + + 26 AS col1, NULLIF ( CAST( 79 AS SIGNED ), 69 * - 84 * - 56 ) + - - 9 * - - 54 AS col2
----
26
565

skipif mysql # not compatible
query II rowsort label-1384
SELECT + + 26 AS col1, NULLIF ( CAST ( 79 AS INTEGER ), 69 * - 84 * - 56 ) + - - 9 * - - 54 AS col2
----
26
565

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT + COALESCE ( MAX( DISTINCT + 76 ), + 0 * + 1 )
----
76

skipif mysql # not compatible
query I rowsort label-1385
SELECT + COALESCE ( MAX ( DISTINCT + 76 ), + 0 * + 1 )
----
76

query I rowsort
SELECT + 25 * - - 10 - + 90 col1
----
160

query I rowsort
SELECT ( + - 7 ) * - 22
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT + 64 * + COUNT( * ) + + 37
----
101

skipif mysql # not compatible
query I rowsort label-1388
SELECT + 64 * + COUNT ( * ) + + 37
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT - 73 DIV 48
----
-1

skipif mysql # not compatible
query I rowsort label-1389
SELECT - 73 / 48
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1390
SELECT + 41 col1, 82 + - ( 77 ) + - COUNT( * ) DIV - - 36
----
41
5

skipif mysql # not compatible
query II rowsort label-1390
SELECT + 41 col1, 82 + - ( 77 ) + - COUNT ( * ) / - - 36
----
41
5

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

query I rowsort
SELECT DISTINCT - ( - 1 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - - 91 col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT - 40 * + MIN( DISTINCT - 15 ) + - + 42 AS col2
----
558

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT - 40 * + MIN ( DISTINCT - 15 ) + - + 42 AS col2
----
558

query I rowsort
SELECT + 40 - - 30 + - - ( + 46 ) AS col1
----
116

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

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT SUM ( - 18 )
----
-18

query I rowsort
SELECT + 97 + 73
----
170

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1399
SELECT 64 * NULLIF ( + - 56, 20 * - + CAST( + NULLIF ( - 32, 35 + - + COUNT( * ) ) AS SIGNED ) ) AS col1
----
-3584

skipif mysql # not compatible
query I rowsort label-1399
SELECT 64 * NULLIF ( + - 56, 20 * - + CAST ( + NULLIF ( - 32, 35 + - + COUNT ( * ) ) AS INTEGER ) ) AS col1
----
-3584

query I rowsort
SELECT 0 * + 24 * + 26 / + - CASE + - 59 WHEN + 99 THEN - - 23 + - 12 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT 71 + + COUNT( ALL 74 )
----
72

skipif mysql # not compatible
query I rowsort label-1401
SELECT 71 + + COUNT ( ALL 74 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT - COUNT( * ) * MIN( ALL - 26 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - COUNT ( * ) * MIN ( ALL - 26 ) col0
----
26

query I rowsort
SELECT - 32 + + - 71
----
-103

query I rowsort
SELECT + 38 - - - 32
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1405
SELECT ALL + 22 * 88 DIV - - COUNT( * )
----
1936

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL + 22 * 88 / - - COUNT ( * )
----
1936

query I rowsort
SELECT ALL + 50 * + 85 AS col0
----
4250

query I rowsort
SELECT DISTINCT + 41 * + 75 col2
----
3075

query II rowsort
SELECT ALL 96 + + + 41 AS col2, 13 AS col2
----
137
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT ALL NULLIF ( 63, 43 + - + CAST( NULL AS SIGNED ) * + 85 - + 96 )
----
63

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL NULLIF ( 63, 43 + - + CAST ( NULL AS INTEGER ) * + 85 - + 96 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1410
SELECT ALL + COUNT( * ) + - CASE + 34 WHEN - ( - 77 ) + + 10 + - + CAST( NULL AS SIGNED ) * + 10 * COUNT( * ) * + + 78 THEN - COUNT( * ) ELSE - + ( 3 ) END AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + COUNT ( * ) + - CASE + 34 WHEN - ( - 77 ) + + 10 + - + CAST ( NULL AS INTEGER ) * + 10 * COUNT ( * ) * + + 78 THEN - COUNT ( * ) ELSE - + ( 3 ) END AS col2
----
4

query I rowsort
SELECT DISTINCT - 68 + - 46 AS col2
----
-114

query I rowsort
SELECT DISTINCT + 5 + 56 + 91 * - 4 * - 77 + - + 8 AS col1
----
28081

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT ALL - COUNT( - 93 ) + + 6 * + 39 col0
----
233

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL - COUNT ( - 93 ) + + 6 * + 39 col0
----
233

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

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

skipif mysql # not compatible
query I rowsort label-1415
SELECT - 42 * - - COUNT ( * )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT ALL ( - 76 ) DIV - 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL ( - 76 ) / - 39 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT - 60 + - 0 + - - 56 * + - 72 + - CAST( - + 13 AS SIGNED )
----
-4079

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 60 + - 0 + - - 56 * + - 72 + - CAST ( - + 13 AS INTEGER )
----
-4079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT DISTINCT CAST( - 64 AS SIGNED ) * 34 AS col2
----
-2176

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT CAST ( - 64 AS INTEGER ) * 34 AS col2
----
-2176

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT + 95 DIV 44
----
2

skipif mysql # not compatible
query I rowsort label-1419
SELECT + 95 / 44
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL - COUNT( - 61 ) * + 92 + - COUNT( * ) + + 94 - - COALESCE ( + MIN( - 62 ), + 18 )
----
-61

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL - COUNT ( - 61 ) * + 92 + - COUNT ( * ) + + 94 - - COALESCE ( + MIN ( - 62 ), + 18 )
----
-61

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT CASE CAST( NULL AS SIGNED ) WHEN - + COALESCE ( 22, + 87 * + + 70 ) + + 69 THEN NULL WHEN 43 + + + 3 THEN + 30 + - CAST( NULL AS SIGNED ) + + - 7 * + 32 - - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT CASE CAST ( NULL AS INTEGER ) WHEN - + COALESCE ( 22, + 87 * + + 70 ) + + 69 THEN NULL WHEN 43 + + + 3 THEN + 30 + - CAST ( NULL AS INTEGER ) + + - 7 * + 32 - - 71 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1423
SELECT + CAST( 47 AS SIGNED ) * ( - 61 ) col2
----
-2867

skipif mysql # not compatible
query I rowsort label-1423
SELECT + CAST ( 47 AS INTEGER ) * ( - 61 ) col2
----
-2867

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT - + 60 - 66 * - SUM( ( - 11 ) ) + 88 + + CASE COUNT( * ) WHEN - - ( - 6 ) THEN + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT - + 60 - 66 * - SUM ( ( - 11 ) ) + 88 + + CASE COUNT ( * ) WHEN - - ( - 6 ) THEN + + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1425
SELECT - AVG ( 68 ) * - ( - CAST( NULL AS SIGNED ) ) - - COUNT( * ) col2, 63 col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-1425
SELECT - AVG ( 68 ) * - ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) col2, 63 col2
----
NULL
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1426
SELECT + 10 * 57 + - - 30 + - 69 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT + 10 * 57 + - - 30 + - 69 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT ALL + - 86 * + 16 - SUM( + 76 )
----
-1452

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + - 86 * + 16 - SUM ( + 76 )
----
-1452

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT 0 * - ( + 4 ) + - 61 + - 41 + ( - COUNT( * ) )
----
-103

skipif mysql # not compatible
query I rowsort label-1430
SELECT 0 * - ( + 4 ) + - 61 + - 41 + ( - COUNT ( * ) )
----
-103

query I rowsort
SELECT + - 41 * - 70 * 41 col2
----
117670

query I rowsort
SELECT + 38 + - 51
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT - 51 + + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-1433
SELECT - 51 + + COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT + MAX( + + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1434
SELECT + MAX ( + + 82 ) AS col1
----
82

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

query I rowsort
SELECT - 21 * - 83
----
1743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT ALL 35 * - COUNT( * ) * 21 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL 35 * - COUNT ( * ) * 21 + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1438
SELECT MIN ( ALL - 45 )
----
-45

query I rowsort
SELECT ALL 97 * 37 col2
----
3589

query I rowsort
SELECT - 9 * + 22
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT ALL COALESCE ( - SUM( ALL + 23 ), - - COUNT( * ) + - 5 ) AS col0, COUNT( * ) AS col2
----
-23
1

skipif mysql # not compatible
query II rowsort label-1441
SELECT ALL COALESCE ( - SUM ( ALL + 23 ), - - COUNT ( * ) + - 5 ) AS col0, COUNT ( * ) AS col2
----
-23
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1442
SELECT ALL 91 + + 7 * COALESCE ( - ( - 56 ), COUNT( * ) DIV + 60 + + COUNT( * ), + + 89 ) AS col0
----
483

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL 91 + + 7 * COALESCE ( - ( - 56 ), COUNT ( * ) / + 60 + + COUNT ( * ), + + 89 ) AS col0
----
483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1443
SELECT DISTINCT ( + CASE + 55 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 87 * - - 38 END ) AS col1, 34 - ( - 56 ) + - 89 - + + COALESCE ( - 37, + 35 * + CAST( NULL AS SIGNED ), - + COUNT( * ) ) col1
----
-3306
38

skipif mysql # not compatible
query II rowsort label-1443
SELECT DISTINCT ( + CASE + 55 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 87 * - - 38 END ) AS col1, 34 - ( - 56 ) + - 89 - + + COALESCE ( - 37, + 35 * + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) col1
----
-3306
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT + 9 + + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT + 9 + + + COUNT ( * )
----
10

query I rowsort
SELECT DISTINCT + 36 + - - 54
----
90

query I rowsort
SELECT ALL COALESCE ( - 41, + - 94 * + - 77 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL + COUNT( * ) + COUNT( * ) + + 6
----
8

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + 6
----
8

query I rowsort
SELECT DISTINCT ( - 53 ) AS col1
----
-53

query I rowsort
SELECT - 43 - + 5
----
-48

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

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

query I rowsort
SELECT DISTINCT COALESCE ( 39, - 9 ) AS col2
----
39

query II rowsort
SELECT - 31, + 10 AS col0
----
-31
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT + COUNT( * ) * ( - MIN( ALL + 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT + COUNT ( * ) * ( - MIN ( ALL + 85 ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL COALESCE ( - 2, - COUNT( * ) * + + 34 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL COALESCE ( - 2, - COUNT ( * ) * + + 34 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT DISTINCT + + 29 - + 40 * + ( - CASE WHEN NOT ( - ( + + ( - 86 ) ) ) BETWEEN NULL AND NULL THEN - - 77 / + - 57 + + 41 + - + 77 END ) * + CAST( - COUNT( * ) AS SIGNED ) + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT + + 29 - + 40 * + ( - CASE WHEN NOT ( - ( + + ( - 86 ) ) ) BETWEEN NULL AND NULL THEN - - 77 / + - 57 + + 41 + - + 77 END ) * + CAST ( - COUNT ( * ) AS INTEGER ) + 69 AS col2
----
NULL

query I rowsort
SELECT + 6 + + COALESCE ( + - 78, - - 54 )
----
-72

query I rowsort
SELECT - 50 * + + 8
----
-400

query II rowsort
SELECT + 19 * + 31 * + 51 AS col0, - 85 AS col0
----
30039
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT - 63 * + COUNT( * ) + 15 col1
----
-48

skipif mysql # not compatible
query I rowsort label-1459
SELECT - 63 * + COUNT ( * ) + 15 col1
----
-48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT - + CAST( NULL AS SIGNED ) * - + 21 * COALESCE ( 19, - + 98, - 61 + COALESCE ( 40, + + 94 ) ) * + - 4 - 80 + - 74 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT - + CAST ( NULL AS INTEGER ) * - + 21 * COALESCE ( 19, - + 98, - 61 + COALESCE ( 40, + + 94 ) ) * + - 4 - 80 + - 74 * 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1462
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 88 * + MIN( DISTINCT 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 88 * + MIN ( DISTINCT 13 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + - COUNT( * ) * + ( - 33 ) * + 36 + + - 3 AS col2
----
1185

skipif mysql # not compatible
query I rowsort label-1463
SELECT + - COUNT ( * ) * + ( - 33 ) * + 36 + + - 3 AS col2
----
1185

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1465
SELECT + + CAST( 4 AS SIGNED ) col0
----
4

skipif mysql # not compatible
query I rowsort label-1465
SELECT + + CAST ( 4 AS INTEGER ) col0
----
4

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

query I rowsort
SELECT ALL 96 * + 99 - 87 AS col0
----
9417

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT - + SUM( ALL 38 ) - - + 52 + - 29 + 54
----
39

skipif mysql # not compatible
query I rowsort label-1468
SELECT - + SUM ( ALL 38 ) - - + 52 + - 29 + 54
----
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1470
SELECT ALL 86 * - CAST( NULL AS SIGNED ) + - 43 * 62 - + + 78 + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL 86 * - CAST ( NULL AS INTEGER ) + - 43 * 62 - + + 78 + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1471
SELECT CAST( - CASE - + COUNT( * ) WHEN + 44 * 20 THEN - + 11 * - + COUNT( - 2 ) WHEN + - 46 THEN + 32 ELSE NULL END AS SIGNED ) * 96 - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT CAST ( - CASE - + COUNT ( * ) WHEN + 44 * 20 THEN - + 11 * - + COUNT ( - 2 ) WHEN + - 46 THEN + 32 ELSE NULL END AS INTEGER ) * 96 - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 90 * - 47 + + ( + 72 ) + - 76 col0
----
-4234

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT ALL - COUNT( * ) col0, 17 * + 26 AS col1
----
-1
442

skipif mysql # not compatible
query II rowsort label-1473
SELECT ALL - COUNT ( * ) col0, 17 * + 26 AS col1
----
-1
442

query I rowsort
SELECT DISTINCT 56 + ( + 41 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL 21 + + COUNT( - - 47 )
----
22

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL 21 + + COUNT ( - - 47 )
----
22

query II rowsort
SELECT 74, + 26 AS col0
----
74
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1477
SELECT CAST( 47 AS SIGNED ) DIV + - 28
----
-1

skipif mysql # not compatible
query I rowsort label-1477
SELECT CAST ( 47 AS INTEGER ) / + - 28
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL + ( - 59 ) + ( - MIN( ALL 36 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + ( - 59 ) + ( - MIN ( ALL 36 ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL MIN( + + ( + + 45 ) ) + 99 + - - 57
----
201

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL MIN ( + + ( + + 45 ) ) + 99 + - - 57
----
201

onlyif mysql # DIV for integer division: 
query II rowsort label-1480
SELECT 61 col0, 14 + + 14 DIV - 18
----
61
14

skipif mysql # not compatible
query II rowsort label-1480
SELECT 61 col0, 14 + + 14 / - 18
----
61
14

query I rowsort
SELECT 89 + 47 AS col0
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT 25 DIV - 8
----
-3

skipif mysql # not compatible
query I rowsort label-1482
SELECT 25 / - 8
----
-3

query I rowsort
SELECT 96 * + + 49
----
4704

query II rowsort
SELECT - 63 AS col0, 69
----
-63
69

query II rowsort
SELECT 7 AS col1, 53 AS col2
----
7
53

query II rowsort
SELECT ALL 20 AS col1, + ( - 52 ) AS col1
----
20
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1487
SELECT 15 + - COALESCE ( + 85, - - 60 DIV + + 17 * + - 17 - - 46 - + 44 DIV - CAST( NULL AS SIGNED ) DIV + - COUNT( * ) + + - ( - COUNT( - 25 ) ) + - CAST( NULL AS SIGNED ), - + 18, + 10 * COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-1487
SELECT 15 + - COALESCE ( + 85, - - 60 / + + 17 * + - 17 - - 46 - + 44 / - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + + - ( - COUNT ( - 25 ) ) + - CAST ( NULL AS INTEGER ), - + 18, + 10 * COUNT ( * ) )
----
-70

query I rowsort
SELECT 50 - + + 61
----
-11

query II rowsort
SELECT DISTINCT 73 AS col1, 13
----
73
13

query I rowsort
SELECT DISTINCT 42 * - + 32 AS col1
----
-1344

query I rowsort
SELECT ALL + 87 - + + 11 col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1492
SELECT DISTINCT - ( + - 64 ) DIV 36 - - COUNT( * ) + + - CAST( - 89 AS SIGNED ) DIV NULLIF ( 24, COUNT( * ) ), 17 * + 80 + + 62 - + COUNT( * ) * - COALESCE ( + 95, + NULLIF ( 52, COUNT( * ) + 89 ) * 9 ) + + COUNT( * ) * + 38 AS col1
----
5
1555

skipif mysql # not compatible
query II rowsort label-1492
SELECT DISTINCT - ( + - 64 ) / 36 - - COUNT ( * ) + + - CAST ( - 89 AS INTEGER ) / NULLIF ( 24, COUNT ( * ) ), 17 * + 80 + + 62 - + COUNT ( * ) * - COALESCE ( + 95, + NULLIF ( 52, COUNT ( * ) + 89 ) * 9 ) + + COUNT ( * ) * + 38 AS col1
----
5
1555

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT 34 + + 27 + - COALESCE ( - + 7, + 88 ) DIV 21 DIV 5
----
61

skipif mysql # not compatible
query I rowsort label-1493
SELECT 34 + + 27 + - COALESCE ( - + 7, + 88 ) / 21 / 5
----
61

query I rowsort
SELECT DISTINCT ( 51 ) - + 41 AS col2
----
10

query II rowsort
SELECT ALL 86, + 19 AS col0
----
86
19

query I rowsort
SELECT 50 + 70 AS col1
----
120

query II rowsort
SELECT 85 AS col1, 78
----
85
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT - MAX( 89 ) + + - 63 * - + 87
----
5392

skipif mysql # not compatible
query I rowsort label-1498
SELECT - MAX ( 89 ) + + - 63 * - + 87
----
5392

onlyif mysql # aggregate syntax: 
query II rowsort label-1499
SELECT ALL COUNT( * ), - 78 col1
----
1
-78

skipif mysql # not compatible
query II rowsort label-1499
SELECT ALL COUNT ( * ), - 78 col1
----
1
-78

query I rowsort
SELECT + 17 * 48 AS col0
----
816

query I rowsort
SELECT 9 + 20 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1502
SELECT - CASE + COUNT( * ) WHEN 45 THEN + 76 * - + 48 + MAX( ALL + CAST( 80 AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT - CASE + COUNT ( * ) WHEN 45 THEN + 76 * - + 48 + MAX ( ALL + CAST ( 80 AS INTEGER ) ) END AS col0
----
NULL

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

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

query I rowsort
SELECT - 83 * - 85
----
7055

onlyif mysql # aggregate syntax: 
query II rowsort label-1505
SELECT ALL - - COUNT( * ) * COUNT( ALL + + 19 ) - 3 AS col0, 44
----
-2
44

skipif mysql # not compatible
query II rowsort label-1505
SELECT ALL - - COUNT ( * ) * COUNT ( ALL + + 19 ) - 3 AS col0, 44
----
-2
44

query II rowsort
SELECT ALL - - 36 AS col2, + 40 AS col1
----
36
40

query II rowsort
SELECT DISTINCT - + 76 AS col2, - 7
----
-76
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1508
SELECT + ( + CASE CAST( NULL AS SIGNED ) WHEN - + 45 THEN + 41 * ( 67 ) * + 97 * NULLIF ( COALESCE ( + AVG ( ALL - 73 ), - 22 ), 50 * 90 - + 80 * - ( 51 * + 98 + + 29 ) ) - - ( - CAST( 58 AS SIGNED ) ) WHEN - NULLIF ( + 3, + 29 * + 88 ) + - 65 THEN + MAX( ALL ( + 5 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT + ( + CASE CAST ( NULL AS INTEGER ) WHEN - + 45 THEN + 41 * ( 67 ) * + 97 * NULLIF ( COALESCE ( + AVG ( ALL - 73 ), - 22 ), 50 * 90 - + 80 * - ( 51 * + 98 + + 29 ) ) - - ( - CAST ( 58 AS INTEGER ) ) WHEN - NULLIF ( + 3, + 29 * + 88 ) + - 65 THEN + MAX ( ALL ( + 5 ) ) END )
----
NULL

query I rowsort
SELECT ALL + - 46 + - + 59 * - 43 AS col2
----
2491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT CAST( + 87 AS SIGNED ) + - 93 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1510
SELECT CAST ( + 87 AS INTEGER ) + - 93 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1511
SELECT + COUNT( * ) col2, - ( + 49 ) + + + 2 * 57
----
1
65

skipif mysql # not compatible
query II rowsort label-1511
SELECT + COUNT ( * ) col2, - ( + 49 ) + + + 2 * 57
----
1
65

query I rowsort
SELECT 47 - 25
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1513
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - 65 + 79 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-1513
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 65 + 79 AS col2
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL + ( + 28 ) + - + 40 + - 93 * - - COUNT( * ) AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + ( + 28 ) + - + 40 + - 93 * - - COUNT ( * ) AS col0
----
-105

query I rowsort
SELECT DISTINCT ( 41 ) * + - 57
----
-2337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1516
SELECT ( - + 32 ) + + CASE - + 17 WHEN + + 56 * + - NULLIF ( 60, + - CAST( NULL AS SIGNED ) * - 13 + 95 + - COUNT( * ) + 80 ) + 90 THEN + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT ( - + 32 ) + + CASE - + 17 WHEN + + 56 * + - NULLIF ( 60, + - CAST ( NULL AS INTEGER ) * - 13 + 95 + - COUNT ( * ) + 80 ) + 90 THEN + 6 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT ALL - COALESCE ( 53, + - COUNT( * ) ) + CAST( - ( 65 ) AS SIGNED )
----
-118

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - COALESCE ( 53, + - COUNT ( * ) ) + CAST ( - ( 65 ) AS INTEGER )
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL - CASE - 47 WHEN + - 37 THEN - MIN( DISTINCT + - 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - CASE - 47 WHEN + - 37 THEN - MIN ( DISTINCT + - 20 ) END
----
NULL

query I rowsort
SELECT DISTINCT 2 * - ( - - 79 ) AS col0
----
-158

query I rowsort
SELECT 28 * - + 51 * + 39 + + - 29
----
-55721

query I rowsort
SELECT 41 * - 47 * - 67 AS col1
----
129109

query I rowsort
SELECT DISTINCT 72 - - - 2 * - 82 + + 37
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1523
SELECT DISTINCT 25 / + COUNT( * ) * - CAST( NULL AS SIGNED ) * - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT 25 / + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1524
SELECT DISTINCT 36 - 15 DIV - - 60 * + + 45 * + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT 36 - 15 / - - 60 * + + 45 * + COUNT ( * ) AS col0
----
36

query II rowsort
SELECT ALL 60 * 93 AS col1, + 74 AS col2
----
5580
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT 21 * - COUNT( 27 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1526
SELECT 21 * - COUNT ( 27 ) AS col1
----
-21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT ALL + 75 * + 26 - CAST( 77 AS SIGNED )
----
1873

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL + 75 * + 26 - CAST ( 77 AS INTEGER )
----
1873

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT - 1 DIV + 84 + + 14
----
14

skipif mysql # not compatible
query I rowsort label-1529
SELECT - 1 / + 84 + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT - COUNT( * ) * + + MAX( DISTINCT - 46 ) * 82
----
3772

skipif mysql # not compatible
query I rowsort label-1530
SELECT - COUNT ( * ) * + + MAX ( DISTINCT - 46 ) * 82
----
3772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1531
SELECT CASE + - 62 WHEN 36 * - 53 * + COUNT( * ) + - 52 + - 86 THEN - 53 * + - 94 END - CAST( - - COUNT( 56 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT CASE + - 62 WHEN 36 * - 53 * + COUNT ( * ) + - 52 + - 86 THEN - 53 * + - 94 END - CAST ( - - COUNT ( 56 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT DISTINCT + 31 * - ( + MIN( DISTINCT + - 13 ) ) * + 47
----
18941

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT + 31 * - ( + MIN ( DISTINCT + - 13 ) ) * + 47
----
18941

query I rowsort
SELECT - 59 * 32 * + 44 AS col1
----
-83072

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT - 68 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-1534
SELECT - 68 / 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1535
SELECT ALL + + 86 + + CAST( NULL AS SIGNED ) col0, 0 AS col2, + + 80 AS col0
----
NULL
0
80

skipif mysql # not compatible
query III rowsort label-1535
SELECT ALL + + 86 + + CAST ( NULL AS INTEGER ) col0, 0 AS col2, + + 80 AS col0
----
NULL
0
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1536
SELECT + CASE 98 WHEN NULLIF ( - 26, - CAST( 97 AS SIGNED ) ) THEN NULL WHEN + 87 * 5 * - 27 + 17 * - AVG ( ALL - 76 ) THEN + + ( 54 ) * + + 86 + + 33 + CASE 91 WHEN - 82 THEN NULL WHEN + 1 THEN 8 * - COUNT( * ) + + 38 WHEN 57 THEN + 31 * - 50 - - 32 END * COALESCE ( 78, COALESCE ( - MAX( DISTINCT - 80 ), - 43 / CAST( ( - 61 ) AS SIGNED ) ) + 0 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT + CASE 98 WHEN NULLIF ( - 26, - CAST ( 97 AS INTEGER ) ) THEN NULL WHEN + 87 * 5 * - 27 + 17 * - AVG ( ALL - 76 ) THEN + + ( 54 ) * + + 86 + + 33 + CASE 91 WHEN - 82 THEN NULL WHEN + 1 THEN 8 * - COUNT ( * ) + + 38 WHEN 57 THEN + 31 * - 50 - - 32 END * COALESCE ( 78, COALESCE ( - MAX ( DISTINCT - 80 ), - 43 / CAST ( ( - 61 ) AS INTEGER ) ) + 0 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + NULLIF ( - + 45, - 7 * + 75 ) AS col1
----
45

query I rowsort
SELECT ALL + 98 * + 53 * + 48 + + - 97 * - 86 AS col2
----
257654

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT - MIN( DISTINCT 33 ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-1539
SELECT - MIN ( DISTINCT 33 ) col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - COUNT( * ) * + 8 * 9 + - 75
----
-147

skipif mysql # not compatible
query I rowsort label-1540
SELECT - COUNT ( * ) * + 8 * 9 + - 75
----
-147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1541
SELECT DISTINCT - ( - 76 ) * - 80 * + COUNT( * ) * NULLIF ( + 98, - 30 ) + CASE + + MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) WHEN ( + 30 ) THEN - 91 WHEN + - 32 * - 3 THEN NULL END + + 25 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT - ( - 76 ) * - 80 * + COUNT ( * ) * NULLIF ( + 98, - 30 ) + CASE + + MAX ( DISTINCT + CAST ( NULL AS REAL ) ) WHEN ( + 30 ) THEN - 91 WHEN + - 32 * - 3 THEN NULL END + + 25 * - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 34 * ( + - 61 ) + 90
----
-1984

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL - SUM( DISTINCT 53 ) * + 34 AS col2
----
-1802

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - SUM ( DISTINCT 53 ) * + 34 AS col2
----
-1802

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT - 79 DIV 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1545
SELECT - 79 / 53 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1546
SELECT COUNT( * ) AS col2, 43 * + COALESCE ( - + 39, 12, - 44 ) + + 55 + - 49 AS col2
----
1
-1671

skipif mysql # not compatible
query II rowsort label-1546
SELECT COUNT ( * ) AS col2, 43 * + COALESCE ( - + 39, 12, - 44 ) + + 55 + - 49 AS col2
----
1
-1671

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT - 22 * 8 - - - 55 col0, MAX( - + 90 )
----
-231
-90

skipif mysql # not compatible
query II rowsort label-1548
SELECT - 22 * 8 - - - 55 col0, MAX ( - + 90 )
----
-231
-90

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1550
SELECT ALL + 86, + ( NULLIF ( - - COUNT( * ), + CAST( NULL AS SIGNED ) + + 53 + + 67 ) ) + + 3 col2
----
86
4

skipif mysql # not compatible
query II rowsort label-1550
SELECT ALL + 86, + ( NULLIF ( - - COUNT ( * ), + CAST ( NULL AS INTEGER ) + + 53 + + 67 ) ) + + 3 col2
----
86
4

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

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

query I rowsort
SELECT DISTINCT + 30 * + - 89 - + + 93 AS col2
----
-2763

query I rowsort
SELECT DISTINCT 25 * - 55
----
-1375

query I rowsort
SELECT ALL 84 * + + 24 AS col0
----
2016

query I rowsort
SELECT - 90 - + 72
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL COALESCE ( + COALESCE ( + 41, COUNT( * ) ), 94 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL COALESCE ( + COALESCE ( + 41, COUNT ( * ) ), 94 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL CASE + 89 WHEN - 43 / CASE COUNT( * ) WHEN + 3 / - - 18 * 70 + - 51 THEN - 8 / + 30 - + - COUNT( * ) WHEN - 73 + AVG ( DISTINCT + 97 ) THEN 4 * - 96 * - ( - 84 ) * 27 END * 92 THEN 38 * 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL CASE + 89 WHEN - 43 / CASE COUNT ( * ) WHEN + 3 / - - 18 * 70 + - 51 THEN - 8 / + 30 - + - COUNT ( * ) WHEN - 73 + AVG ( DISTINCT + 97 ) THEN 4 * - 96 * - ( - 84 ) * 27 END * 92 THEN 38 * 5 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1558
SELECT DISTINCT - 70 * + + 82 DIV + ( + COUNT( * ) )
----
-5740

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT - 70 * + + 82 / + ( + COUNT ( * ) )
----
-5740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1559
SELECT - 36 + - + 90 - - COUNT( * ) DIV - 9 AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-1559
SELECT - 36 + - + 90 - - COUNT ( * ) / - 9 AS col0
----
-126

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

skipif mysql # not compatible
query I rowsort label-1560
SELECT + 59 * - - 41 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 69 AS col1, 33 AS col1
----
69
33

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1563
SELECT ALL 87, 77 * + MAX( DISTINCT - 83 ) col2
----
87
-6391

skipif mysql # not compatible
query II rowsort label-1563
SELECT ALL 87, 77 * + MAX ( DISTINCT - 83 ) col2
----
87
-6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1564
SELECT + - COUNT( * ) * - - ( 92 ) + + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1565
SELECT DISTINCT - - 42 + + COUNT( * ) + - ( + 50 ) + + - 65 * CAST( - 89 AS SIGNED ) - - MAX( ALL - 5 ), 62 col2
----
5773
62

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT - - 42 + + COUNT ( * ) + - ( + 50 ) + + - 65 * CAST ( - 89 AS INTEGER ) - - MAX ( ALL - 5 ), 62 col2
----
5773
62

query II rowsort
SELECT DISTINCT - 22 + - 14 * 78 AS col1, - 99
----
-1114
-99

query I rowsort
SELECT ALL - NULLIF ( 33, NULLIF ( + 48, + 16 * - + 49 ) ) AS col1
----
-33

query II rowsort
SELECT 70 AS col2, - 3 AS col2
----
70
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1569
SELECT DISTINCT 58 + - 55 + + - CAST( 47 AS SIGNED ) + - 49 - SUM( ALL - - 12 ) - - 19 * - 41 AS col2, 39
----
-884
39

skipif mysql # not compatible
query II rowsort label-1569
SELECT DISTINCT 58 + - 55 + + - CAST ( 47 AS INTEGER ) + - 49 - SUM ( ALL - - 12 ) - - 19 * - 41 AS col2, 39
----
-884
39

query I rowsort
SELECT ALL 62 + - 87 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + + 6 + 81 + - COALESCE ( + - SUM( DISTINCT 79 ), + 97 * - - 56 * + NULLIF ( 11, 31 + + 22 ), + - 24 ) * - 78
----
-6075

skipif mysql # not compatible
query I rowsort label-1571
SELECT + + 6 + 81 + - COALESCE ( + - SUM ( DISTINCT 79 ), + 97 * - - 56 * + NULLIF ( 11, 31 + + 22 ), + - 24 ) * - 78
----
-6075

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL MIN ( ALL 16 )
----
16

query I rowsort
SELECT ALL - 26 + - + ( + + 13 ) AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1574
SELECT DISTINCT - 58 DIV + - 30 + - 98 + - 33 * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT - 58 / + - 30 + - 98 + - 33 * - COUNT ( * )
----
-64

query I rowsort
SELECT DISTINCT 47 * 52
----
2444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1576
SELECT ALL + COUNT( DISTINCT 71 ) DIV + ( - 49 ) * + 36 + - + 26 * 6 AS col1
----
-156

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL + COUNT ( DISTINCT 71 ) / + ( - 49 ) * + 36 + - + 26 * 6 AS col1
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT + - CAST( - MAX( DISTINCT - 22 ) AS SIGNED ) * 59
----
-1298

skipif mysql # not compatible
query I rowsort label-1577
SELECT + - CAST ( - MAX ( DISTINCT - 22 ) AS INTEGER ) * 59
----
-1298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1578
SELECT - 83 * + 13 + + 75 - CAST( 0 AS SIGNED ) AS col2
----
-1004

skipif mysql # not compatible
query I rowsort label-1578
SELECT - 83 * + 13 + + 75 - CAST ( 0 AS INTEGER ) AS col2
----
-1004

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1580
SELECT CAST( - + 9 AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1580
SELECT CAST ( - + 9 AS INTEGER ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT 27 * + SUM( ALL - - 91 ) + + + COUNT( * ) - - - 87 * + + 47 * - 26 + - COUNT( * ) AS col1
----
108771

skipif mysql # not compatible
query I rowsort label-1581
SELECT 27 * + SUM ( ALL - - 91 ) + + + COUNT ( * ) - - - 87 * + + 47 * - 26 + - COUNT ( * ) AS col1
----
108771

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

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - COUNT ( * ) / - 23 - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT + 44 + - - 48 + - 56 * + + COUNT( * ) * + - 46 AS col1
----
2668

skipif mysql # not compatible
query I rowsort label-1583
SELECT + 44 + - - 48 + - 56 * + + COUNT ( * ) * + - 46 AS col1
----
2668

onlyif mysql # DIV for integer division: 
query I rowsort label-1584
SELECT - 62 DIV - 17 - + 17 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1584
SELECT - 62 / - 17 - + 17 AS col2
----
-14

query I rowsort
SELECT DISTINCT + CASE - + 18 WHEN - 19 THEN NULL WHEN + 48 - - - 67 + - 23 + ( + 33 ) * 44 THEN NULL ELSE + - 88 END AS col1
----
-88

query I rowsort
SELECT ALL + 64 * 25 col1
----
1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT - 55 * + CAST( 5 AS SIGNED ) + + + 53 AS col0
----
-222

skipif mysql # not compatible
query I rowsort label-1587
SELECT - 55 * + CAST ( 5 AS INTEGER ) + + + 53 AS col0
----
-222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1588
SELECT DISTINCT + NULLIF ( - - COUNT( * ), ( - COUNT( * ) ) * ( + + 69 ) * + 72 ) * CAST( - 27 AS SIGNED ) + - + 81 + COUNT( * ) + + + 71
----
-36

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT + NULLIF ( - - COUNT ( * ), ( - COUNT ( * ) ) * ( + + 69 ) * + 72 ) * CAST ( - 27 AS INTEGER ) + - + 81 + COUNT ( * ) + + + 71
----
-36

query I rowsort
SELECT - 72 * - 0 col2
----
0

query I rowsort
SELECT ALL + 28 * - 14 AS col1
----
-392

query I rowsort
SELECT - 90 + - 75 col1
----
-165

query I rowsort
SELECT + 17 * 15 + - 94 AS col1
----
161

query I rowsort
SELECT NULLIF ( - 18, 37 * - 48 * 53 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT - ( + + 4 ) DIV + - 5
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT - ( + + 4 ) / + - 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL 41 * + 33 * CASE 8 WHEN - 6 THEN + 51 END + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL 41 * + 33 * CASE 8 WHEN - 6 THEN + 51 END + + + COUNT ( * ) AS col0
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT - + 3 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT - + 3 / - 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1599
SELECT ALL CAST( NULL AS DECIMAL ) * + 9 * - 75 + + COUNT( ALL + 74 ) / + + 45 * + - 3 + - CASE ( - - 71 ) WHEN COUNT( * ) THEN + 83 END - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL CAST ( NULL AS REAL ) * + 9 * - 75 + + COUNT ( ALL + 74 ) / + + 45 * + - 3 + - CASE ( - - 71 ) WHEN COUNT ( * ) THEN + 83 END - 91 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1600
SELECT ALL + 81 / CASE - 60 WHEN + + 11 / 44 * - - 42 THEN NULL WHEN - AVG ( - + NULLIF ( 87, 98 * + 40 / 56 ) ) * + 42 + 28 + - 95 + - 40 + COUNT( * ) * + 86 * - COALESCE ( - COUNT( * ), COUNT( * ), - 40 * - 31 ) * 49 THEN NULL ELSE CAST( NULL AS SIGNED ) + - 50 END / - 78 + + NULLIF ( + 83, + 50 ) * + ( + CASE 47 WHEN + ( 53 ) THEN NULL ELSE 29 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + 81 / CASE - 60 WHEN + + 11 / 44 * - - 42 THEN NULL WHEN - AVG ( - + NULLIF ( 87, 98 * + 40 / 56 ) ) * + 42 + 28 + - 95 + - 40 + COUNT ( * ) * + 86 * - COALESCE ( - COUNT ( * ), COUNT ( * ), - 40 * - 31 ) * 49 THEN NULL ELSE CAST ( NULL AS INTEGER ) + - 50 END / - 78 + + NULLIF ( + 83, + 50 ) * + ( + CASE 47 WHEN + ( 53 ) THEN NULL ELSE 29 END )
----
NULL

query I rowsort
SELECT ALL 65 * + 85 + 3 + - 96 * - 12
----
6680

query I rowsort
SELECT - 72 + - - 70 + + 38
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT + + COUNT( * ) + + COALESCE ( + 82, + - 19, + - 82 ) * - - 33 AS col2
----
2707

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT + + COUNT ( * ) + + COALESCE ( + 82, + - 19, + - 82 ) * - - 33 AS col2
----
2707

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

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

query I rowsort
SELECT DISTINCT + 74 * - ( - + 45 ) AS col1
----
3330

query I rowsort
SELECT 92 * + 24 * - ( + 26 ) AS col1
----
-57408

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

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

query II rowsort
SELECT DISTINCT + 29 + - 73 + 32 + 5 * + 7, - 74 + 32 AS col2
----
23
-42

query I rowsort
SELECT ALL - 71 + + NULLIF ( 51, 17 + - 71 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT CASE - - 92 WHEN 67 * CASE - 65 WHEN - + 77 THEN - 27 END + + - COUNT( * ) - - + 10 * 26 + - 13 THEN + ( COUNT( * ) ) ELSE NULL END * + 83 * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT CASE - - 92 WHEN 67 * CASE - 65 WHEN - + 77 THEN - 27 END + + - COUNT ( * ) - - + 10 * 26 + - 13 THEN + ( COUNT ( * ) ) ELSE NULL END * + 83 * + 82 AS col1
----
NULL

query I rowsort
SELECT ALL - 16 - - 80 * 94 * - - 69
----
518864

query I rowsort
SELECT COALESCE ( 93, + 33, + + ( + + 38 ) * ( - + 14 ) * 10 ) AS col2
----
93

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

skipif mysql # not compatible
query II rowsort label-1613
SELECT DISTINCT ( COUNT ( * ) ), 3 AS col1
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT NULLIF ( - + 26, SUM( + 70 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1614
SELECT NULLIF ( - + 26, SUM ( + 70 ) ) AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1615
SELECT ALL + NULLIF ( + 28, + 63 ) DIV - COUNT( ALL - + 62 )
----
-28

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + NULLIF ( + 28, + 63 ) / - COUNT ( ALL - + 62 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL ( + 96 ) - + 1 * - COUNT( - 3 ) * + NULLIF ( CAST( NULL AS SIGNED ), - 55 * - ( - ( 91 ) ) / 64 + + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL ( + 96 ) - + 1 * - COUNT ( - 3 ) * + NULLIF ( CAST ( NULL AS INTEGER ), - 55 * - ( - ( 91 ) ) / 64 + + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + - 11, - 95 - 8 * - - 16 ) + 66 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) * + + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + + 91 AS col0
----
NULL

query I rowsort
SELECT ALL + 60 * + 4 AS col0
----
240

query I rowsort
SELECT DISTINCT 61 * 4
----
244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1621
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + ( + 84 ) DIV + 65 AS col2
----
-1

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

query I rowsort
SELECT ALL 79 * 71
----
5609

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

skipif mysql # not compatible
query II rowsort label-1623
SELECT + 7, - COUNT ( * ) * 84 AS col1
----
7
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1624
SELECT ALL - 79 AS col0, SUM( ALL 26 )
----
-79
26

skipif mysql # not compatible
query II rowsort label-1624
SELECT ALL - 79 AS col0, SUM ( ALL 26 )
----
-79
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT COUNT( * ) + + 90
----
91

skipif mysql # not compatible
query I rowsort label-1625
SELECT COUNT ( * ) + + 90
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1626
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + CASE - 76 WHEN 83 + - MIN( DISTINCT - - 80 ) - 1 + + + 46 * - 64 - - + 7 + CAST( + 58 AS SIGNED ) * - - 41 * 34 / + + 21 * - - 6 THEN SUM( 9 ) END ) * ( + ( - 3 ) ) * + 90 - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + CASE - 76 WHEN 83 + - MIN ( DISTINCT - - 80 ) - 1 + + + 46 * - 64 - - + 7 + CAST ( + 58 AS INTEGER ) * - - 41 * 34 / + + 21 * - - 6 THEN SUM ( 9 ) END ) * ( + ( - 3 ) ) * + 90 - 80
----
NULL

query I rowsort
SELECT 69 * 87 col1
----
6003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * 34 + - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 34 + - 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1629
SELECT 13 AS col1, - ( - COUNT( * ) ) DIV - - 86 + - + 54 col0
----
13
-54

skipif mysql # not compatible
query II rowsort label-1629
SELECT 13 AS col1, - ( - COUNT ( * ) ) / - - 86 + - + 54 col0
----
13
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT ALL 12 + + + 90 DIV + 61 + 63
----
76

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL 12 + + + 90 / + 61 + 63
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1631
SELECT CAST( 31 AS SIGNED ) + + 27 AS col2, 68 * - 14 AS col0
----
58
-952

skipif mysql # not compatible
query II rowsort label-1631
SELECT CAST ( 31 AS INTEGER ) + + 27 AS col2, 68 * - 14 AS col0
----
58
-952

query I rowsort
SELECT DISTINCT 6 * + 4
----
24

query I rowsort
SELECT - 34 - - - ( - 43 ) + + - 91
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT DISTINCT - COALESCE ( + + NULLIF ( - 30, COUNT( * ) * + 33 + 95 / + 2 * + COUNT( * ) ), 63 + + + 34, - 36 )
----
30

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT - COALESCE ( + + NULLIF ( - 30, COUNT ( * ) * + 33 + 95 / + 2 * + COUNT ( * ) ), 63 + + + 34, - 36 )
----
30

query I rowsort
SELECT - 78 + 25
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT + - 72 * + 13 * 93 * - - 8 + - ( COUNT( * ) ) - + 53
----
-696438

skipif mysql # not compatible
query I rowsort label-1636
SELECT + - 72 * + 13 * 93 * - - 8 + - ( COUNT ( * ) ) - + 53
----
-696438

query I rowsort
SELECT - 61 + - 72 AS col1
----
-133

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1640
SELECT 47 + NULLIF ( + - CAST( + COUNT( * ) AS SIGNED ), + + 53 * + COUNT( * ) ) + + - 85
----
-39

skipif mysql # not compatible
query I rowsort label-1640
SELECT 47 + NULLIF ( + - CAST ( + COUNT ( * ) AS INTEGER ), + + 53 * + COUNT ( * ) ) + + - 85
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT + SUM( + - 39 ) * + - 16
----
624

skipif mysql # not compatible
query I rowsort label-1641
SELECT + SUM ( + - 39 ) * + - 16
----
624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL + COUNT( * ) + + + ( + 75 )
----
76

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL + COUNT ( * ) + + + ( + 75 )
----
76

query I rowsort
SELECT 40 + + 35 AS col2
----
75

query I rowsort
SELECT ALL - - 25 - + 45 AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT ALL - - 8 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL - - 8 / 51
----
0

query I rowsort
SELECT + 3 + - 98
----
-95

query I rowsort
SELECT 96 * 11 AS col1
----
1056

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1650
SELECT - CASE + 82 WHEN + - COUNT( * ) THEN - 26 * - - 70 + 10 * + CAST( - - 50 AS SIGNED ) * + 80 * 8 - + 44 + - + 57 - - 4 - + 12 - + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1650
SELECT - CASE + 82 WHEN + - COUNT ( * ) THEN - 26 * - - 70 + 10 * + CAST ( - - 50 AS INTEGER ) * + 80 * 8 - + 44 + - + 57 - - 4 - + 12 - + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT 15 + 49 col2
----
64

query II rowsort
SELECT 34 AS col0, + 78
----
34
78

query II rowsort
SELECT DISTINCT 43 AS col1, + 89
----
43
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1654
SELECT DISTINCT - CAST( 87 AS SIGNED ) AS col1, + ( CAST( NULL AS SIGNED ) ) * + SUM( DISTINCT 36 ) * 84 + + MIN( ALL - NULLIF ( + 5, + 15 + 16 * - - CAST( 89 AS SIGNED ) ) )
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-1654
SELECT DISTINCT - CAST ( 87 AS INTEGER ) AS col1, + ( CAST ( NULL AS INTEGER ) ) * + SUM ( DISTINCT 36 ) * 84 + + MIN ( ALL - NULLIF ( + 5, + 15 + 16 * - - CAST ( 89 AS INTEGER ) ) )
----
-87
NULL

query I rowsort
SELECT 14 * - - 95 AS col0
----
1330

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT ALL - 85 AS col0, - MAX( 10 ) + 52
----
-85
42

skipif mysql # not compatible
query II rowsort label-1656
SELECT ALL - 85 AS col0, - MAX ( 10 ) + 52
----
-85
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1657
SELECT COUNT( * ) AS col1, + 42 * 3 + - SUM( 53 ) + - - 22 AS col1
----
1
95

skipif mysql # not compatible
query II rowsort label-1657
SELECT COUNT ( * ) AS col1, + 42 * 3 + - SUM ( 53 ) + - - 22 AS col1
----
1
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT + 72 / + + CAST( NULL AS SIGNED ) + - 27 / + COUNT( * ) * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT + 72 / + + CAST ( NULL AS INTEGER ) + - 27 / + COUNT ( * ) * + 82
----
NULL

query II rowsort
SELECT DISTINCT - 1 AS col2, + 14
----
-1
14

query I rowsort
SELECT ALL 90 * 85 * - ( 28 ) + 64 col2
----
-214136

query I rowsort
SELECT 40 + 5
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT 29 DIV 73 - - 34 col2
----
34

skipif mysql # not compatible
query I rowsort label-1662
SELECT 29 / 73 - - 34 col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT SUM( DISTINCT + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1663
SELECT SUM ( DISTINCT + 66 ) AS col2
----
66

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

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL 96 * - + COUNT ( - - ( 1 ) ) * + COUNT ( * ) + + 36 + + 76
----
16

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

skipif mysql # not compatible
query I rowsort label-1665
SELECT - 9 * + - 20 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1666
SELECT ALL 34 * + + 39 * + - MAX( ALL + + ( 42 ) ) / - - COUNT( 82 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL 34 * + + 39 * + - MAX ( ALL + + ( 42 ) ) / - - COUNT ( 82 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query II rowsort
SELECT ALL ( + 56 ) * - - 53 + + 89 AS col1, ( 19 ) AS col2
----
3057
19

query I rowsort
SELECT 65 * 33
----
2145

query I rowsort
SELECT DISTINCT 6 * + 83
----
498

query I rowsort
SELECT DISTINCT 24 + ( 20 ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1672
SELECT 49 DIV + 42 * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1672
SELECT 49 / + 42 * + + COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT + + 59 * - COUNT( * ) AS col1, 88 AS col2
----
-59
88

skipif mysql # not compatible
query II rowsort label-1674
SELECT + + 59 * - COUNT ( * ) AS col1, 88 AS col2
----
-59
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - NULLIF ( - - NULLIF ( + 54, + COUNT( * ) * + COUNT( * ) + 89 ), + 74 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-1675
SELECT - NULLIF ( - - NULLIF ( + 54, + COUNT ( * ) * + COUNT ( * ) + 89 ), + 74 ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1676
SELECT + - CAST( NULL AS SIGNED ) * - 30 + - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT + - CAST ( NULL AS INTEGER ) * - 30 + - 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT + - ( + COUNT( * ) ) * NULLIF ( - 10, - 66 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1677
SELECT + - ( + COUNT ( * ) ) * NULLIF ( - 10, - 66 ) AS col2
----
10

query II rowsort
SELECT + 45, + 63 AS col1
----
45
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1679
SELECT DISTINCT + - COUNT( * ) AS col2, + 64 + + COALESCE ( 21, + 51 DIV + CAST( 30 AS SIGNED ) + - + 78 )
----
-1
85

skipif mysql # not compatible
query II rowsort label-1679
SELECT DISTINCT + - COUNT ( * ) AS col2, + 64 + + COALESCE ( 21, + 51 / + CAST ( 30 AS INTEGER ) + - + 78 )
----
-1
85

query I rowsort
SELECT ALL + ( + 86 ) col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1681
SELECT + 95 AS col2, - 57 * - 63 / + CAST( NULL AS SIGNED ) + 66 + - 55 / - SUM( 21 ) * + - NULLIF ( 34, - 99 ) * + ( + CAST( NULL AS SIGNED ) )
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1681
SELECT + 95 AS col2, - 57 * - 63 / + CAST ( NULL AS INTEGER ) + 66 + - 55 / - SUM ( 21 ) * + - NULLIF ( 34, - 99 ) * + ( + CAST ( NULL AS INTEGER ) )
----
95
NULL

query II rowsort
SELECT ALL + 18, 58 AS col1
----
18
58

query I rowsort
SELECT ALL - - 73 * + 13 AS col2
----
949

query I rowsort
SELECT DISTINCT CASE + 8 WHEN + 6 + + 58 + - 14 / + NULLIF ( - + 83, - + 97 ) THEN + - 83 WHEN 25 THEN NULL ELSE + 97 * 69 - - 71 * + 10 END AS col1
----
7403

query I rowsort
SELECT DISTINCT 13 - - 13 + - 82
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT + + ( - COUNT( * ) ) * ( + - 17 ) + + + 75 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1686
SELECT + + ( - COUNT ( * ) ) * ( + - 17 ) + + + 75 AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT + - CAST( NULL AS SIGNED ) + NULLIF ( - 51, 82 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT + - CAST ( NULL AS INTEGER ) + NULLIF ( - 51, 82 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 88 - + ( + + 70 ) + - 74
----
-232

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT + + 8 DIV + - 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1690
SELECT + + 8 / + - 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT - 84 * 42 * - COALESCE ( MAX( DISTINCT 0 ), COUNT( * ) * 22 * CAST( 75 AS SIGNED ) - - + 10 )
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT - 84 * 42 * - COALESCE ( MAX ( DISTINCT 0 ), COUNT ( * ) * 22 * CAST ( 75 AS INTEGER ) - - + 10 )
----
0

query II rowsort
SELECT ALL + 67 AS col0, 11 + + + 54
----
67
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT + 28 - + + CAST( - + 4 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-1693
SELECT + 28 - + + CAST ( - + 4 AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1694
SELECT 37 AS col0, + 31 * + 22 + - COUNT( * ) col0
----
37
681

skipif mysql # not compatible
query II rowsort label-1694
SELECT 37 AS col0, + 31 * + 22 + - COUNT ( * ) col0
----
37
681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1695
SELECT - COALESCE ( + 58, - COALESCE ( + - 52, MIN( - + 20 ) * + CASE 30 WHEN + 11 THEN + MAX( ALL + 4 ) WHEN + 67 THEN + - 66 WHEN + 31 - + 88 THEN NULL ELSE - 44 END * - - 34 * - - MIN( DISTINCT - NULLIF ( 11, - + ( + 59 ) ) ) DIV + CAST( + 31 AS SIGNED ), + 71 ) * - CAST( NULL AS SIGNED ) ) - - 14
----
-44

skipif mysql # not compatible
query I rowsort label-1695
SELECT - COALESCE ( + 58, - COALESCE ( + - 52, MIN ( - + 20 ) * + CASE 30 WHEN + 11 THEN + MAX ( ALL + 4 ) WHEN + 67 THEN + - 66 WHEN + 31 - + 88 THEN NULL ELSE - 44 END * - - 34 * - - MIN ( DISTINCT - NULLIF ( 11, - + ( + 59 ) ) ) / + CAST ( + 31 AS INTEGER ), + 71 ) * - CAST ( NULL AS INTEGER ) ) - - 14
----
-44

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1697
SELECT - 50 DIV 61 - + ( - - 62 ), 20 AS col0
----
-62
20

skipif mysql # not compatible
query II rowsort label-1697
SELECT - 50 / 61 - + ( - - 62 ), 20 AS col0
----
-62
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1698
SELECT ALL + 33 + + - 99 / + - 46 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL + 33 + + - 99 / + - 46 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-1699
SELECT + 61 DIV + 74 AS col2, + 5 AS col2, 50
----
0
5
50

skipif mysql # not compatible
query III rowsort label-1699
SELECT + 61 / + 74 AS col2, + 5 AS col2, 50
----
0
5
50

query I rowsort
SELECT DISTINCT + ( + 68 ) + + - 10 AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1701
SELECT DISTINCT + CAST( + - 79 AS SIGNED ) * 82 + - 10 + + 56 DIV - 61 * 10 AS col0
----
-6488

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT + CAST ( + - 79 AS INTEGER ) * 82 + - 10 + + 56 / - 61 * 10 AS col0
----
-6488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1702
SELECT + SUM( - 14 ) AS col0, + 30 * - - CAST( NULL AS SIGNED ) AS col1
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-1702
SELECT + SUM ( - 14 ) AS col0, + 30 * - - CAST ( NULL AS INTEGER ) AS col1
----
-14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT 86 * + + 60 * - + COUNT( * ) * + 83 + + + 4 - 19
----
-428295

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT 86 * + + 60 * - + COUNT ( * ) * + 83 + + + 4 - 19
----
-428295

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT - 90 + + 57 DIV - 28 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1704
SELECT - 90 + + 57 / - 28 AS col2
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1705
SELECT ALL 61 * - - CAST( NULL AS DECIMAL ) + - 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL 61 * - - CAST ( NULL AS REAL ) + - 55 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1707
SELECT ALL CASE 87 WHEN + 94 THEN NULL WHEN 77 THEN - COUNT( * ) DIV - 2 ELSE - 15 END * - 0 + SUM( ALL + - NULLIF ( + 49, - 96 + + 79 - - 53 - 92 ) ) * - - 68 AS col2
----
-3332

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL CASE 87 WHEN + 94 THEN NULL WHEN 77 THEN - COUNT ( * ) / - 2 ELSE - 15 END * - 0 + SUM ( ALL + - NULLIF ( + 49, - 96 + + 79 - - 53 - 92 ) ) * - - 68 AS col2
----
-3332

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT - 77 * - SUM( + 45 )
----
3465

skipif mysql # not compatible
query I rowsort label-1708
SELECT - 77 * - SUM ( + 45 )
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - COUNT( * ) + 32 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1709
SELECT - COUNT ( * ) + 32 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1710
SELECT ( - - 54 ) AS col1, COUNT( ALL - 99 ) + - + COALESCE ( + 89, - + 17, + - 34 )
----
54
-88

skipif mysql # not compatible
query II rowsort label-1710
SELECT ( - - 54 ) AS col1, COUNT ( ALL - 99 ) + - + COALESCE ( + 89, - + 17, + - 34 )
----
54
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - 25 * + COUNT( * ) + - + 30
----
-55

skipif mysql # not compatible
query I rowsort label-1711
SELECT - 25 * + COUNT ( * ) + - + 30
----
-55

query I rowsort
SELECT + 39 * 16 AS col0
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT + + 35 * + 13 + - CAST( NULL AS SIGNED ) + ( - - 47 ) * + 21 + 76 + + - 92 * + - 18 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT + + 35 * + 13 + - CAST ( NULL AS INTEGER ) + ( - - 47 ) * + 21 + 76 + + - 92 * + - 18 * + 89
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + - 48 * + 55 + - + NULLIF ( - - COUNT( - 22 ), - + 76 )
----
-2641

skipif mysql # not compatible
query I rowsort label-1715
SELECT + - 48 * + 55 + - + NULLIF ( - - COUNT ( - 22 ), - + 76 )
----
-2641

query I rowsort
SELECT + 23 * 32 AS col2
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL - ( - SUM( - 27 ) ) * - + 64 + + 60 + + 44
----
1832

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - ( - SUM ( - 27 ) ) * - + 64 + + 60 + + 44
----
1832

query II rowsort
SELECT DISTINCT 97 * - - 20 AS col2, - 49
----
1940
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT - CAST( + + 75 AS SIGNED ) * - 14 * - 13
----
-13650

skipif mysql # not compatible
query I rowsort label-1719
SELECT - CAST ( + + 75 AS INTEGER ) * - 14 * - 13
----
-13650

query I rowsort
SELECT + - 54 * + - 79
----
4266

query I rowsort
SELECT + - 48 + 64 AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT + CAST( NULL AS SIGNED ) + 54 + + - 99 / 99 * + - 81 * + - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT + CAST ( NULL AS INTEGER ) + 54 + + - 99 / 99 * + - 81 * + - 78 AS col1
----
NULL

query I rowsort
SELECT + - 46 * + 71 col0
----
-3266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1724
SELECT + 26 + ( - 93 ) DIV 6 * - + 60 * 84 + - NULLIF ( + + 68, + COALESCE ( - COUNT( * ), - 8 * 77 ) - - 36 ) + COUNT( * )
----
75559

skipif mysql # not compatible
query I rowsort label-1724
SELECT + 26 + ( - 93 ) / 6 * - + 60 * 84 + - NULLIF ( + + 68, + COALESCE ( - COUNT ( * ), - 8 * 77 ) - - 36 ) + COUNT ( * )
----
75559

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

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

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

query I rowsort
SELECT CASE 84 WHEN - ( - - 72 ) THEN 80 WHEN 70 + - - 86 THEN - 57 END
----
NULL

query I rowsort
SELECT ALL - 1 + + + ( + 23 ) + - ( + 50 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT ALL 90 AS col2, - 4 + + COALESCE ( 56, + + 72, - COUNT( * ) + 35 ) AS col2
----
90
52

skipif mysql # not compatible
query II rowsort label-1729
SELECT ALL 90 AS col2, - 4 + + COALESCE ( 56, + + 72, - COUNT ( * ) + 35 ) AS col2
----
90
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT + 20 * + MIN( ALL + 51 )
----
1020

skipif mysql # not compatible
query I rowsort label-1730
SELECT + 20 * + MIN ( ALL + 51 )
----
1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT - 26 + - + COALESCE ( 43, + 44, + 69 * NULLIF ( + CASE 85 WHEN COUNT( * ) * + COUNT( * ) * CASE + CAST( NULL AS SIGNED ) WHEN + + NULLIF ( 0, + 85 * 70 + + 3 ) THEN NULL ELSE - COUNT( * ) + ( + COUNT( ALL + 16 ) ) END * + + 8 THEN 89 WHEN - 89 THEN 6 WHEN + 81 THEN NULL END, + 21 ) ) * + 4 AS col2
----
-198

skipif mysql # not compatible
query I rowsort label-1731
SELECT - 26 + - + COALESCE ( 43, + 44, + 69 * NULLIF ( + CASE 85 WHEN COUNT ( * ) * + COUNT ( * ) * CASE + CAST ( NULL AS INTEGER ) WHEN + + NULLIF ( 0, + 85 * 70 + + 3 ) THEN NULL ELSE - COUNT ( * ) + ( + COUNT ( ALL + 16 ) ) END * + + 8 THEN 89 WHEN - 89 THEN 6 WHEN + 81 THEN NULL END, + 21 ) ) * + 4 AS col2
----
-198

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL NULLIF ( + COUNT( * ), + COALESCE ( - 29, 15 + + - 97 ) ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL NULLIF ( + COUNT ( * ), + COALESCE ( - 29, 15 + + - 97 ) ) + COUNT ( * )
----
2

query II rowsort
SELECT ALL - 38 + - 63 + 10, + 89 AS col0
----
-91
89

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

query I rowsort
SELECT + 90 * - 64
----
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT + 66 + + + 58 + + 88 + + COUNT( * )
----
213

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT + 66 + + + 58 + + 88 + + COUNT ( * )
----
213

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

query I rowsort
SELECT ALL 90 + + - 83 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1740
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN ( 45 ) THEN + - 91 END / + 87 + 16 * - 79 + + - 27 - - CASE 48 WHEN + 40 * + 67 THEN - - 69 * + - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN ( 45 ) THEN + - 91 END / + 87 + 16 * - 79 + + - 27 - - CASE 48 WHEN + 40 * + 67 THEN - - 69 * + - COUNT ( * ) ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), 35 ) / 4 - 48 + - NULLIF ( + - 99, + 40 * 76 ) + + ( + + 43 ) * + 48 - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), 35 ) / 4 - 48 + - NULLIF ( + - 99, + 40 * 76 ) + + ( + + 43 ) * + 48 - 27
----
NULL

query II rowsort
SELECT + 23, 93 * 3 AS col2
----
23
279

query I rowsort
SELECT ALL + 48 * - 7 * - ( + 23 ) AS col0
----
7728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1745
SELECT CAST( 68 AS SIGNED ) * + - 45 AS col1, ( - - 70 ) AS col2
----
-3060
70

skipif mysql # not compatible
query II rowsort label-1745
SELECT CAST ( 68 AS INTEGER ) * + - 45 AS col1, ( - - 70 ) AS col2
----
-3060
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1746
SELECT + 25 DIV ( + MIN( CAST( 57 AS SIGNED ) ) ) + + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 25 / ( + MIN ( CAST ( 57 AS INTEGER ) ) ) + + - 94
----
-94

query I rowsort
SELECT ALL + 39 * + 90 * 46 AS col1
----
161460

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

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + COUNT ( * ) - + 56 AS col2
----
-55

query I rowsort
SELECT DISTINCT - 57 * + 5
----
-285

query I rowsort
SELECT DISTINCT - 46 * + - 71
----
3266

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL - NULLIF ( - 85, NULLIF ( - - COUNT( * ), 97 ) * - + 5 + - ( ( 55 ) ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - NULLIF ( - 85, NULLIF ( - - COUNT ( * ), 97 ) * - + 5 + - ( ( 55 ) ) ) AS col2
----
85

query I rowsort
SELECT DISTINCT - - 29 col2
----
29

query II rowsort
SELECT DISTINCT - 4 AS col2, 56
----
-4
56

query I rowsort
SELECT ALL - + NULLIF ( 24, + - 10 - + - 95 ) AS col1
----
-24

query I rowsort
SELECT 22 + 70 AS col0
----
92

query I rowsort
SELECT 25 * + + NULLIF ( + + 52, 9 ) AS col0
----
1300

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT 56 DIV - + 89
----
0

skipif mysql # not compatible
query I rowsort label-1759
SELECT 56 / - + 89
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( + 47, 76 ) col0
----
-47

query I rowsort
SELECT ALL - - COALESCE ( + 4, - NULLIF ( + - 45, 88 ) ) AS col1
----
4

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

query I rowsort
SELECT - 57 * + 17
----
-969

query I rowsort
SELECT ALL + 97 * - 47 col2
----
-4559

query II rowsort
SELECT DISTINCT - - 31, - 51 AS col1
----
31
-51

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

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

query I rowsort
SELECT + 23 * 11
----
253

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT ALL + + COUNT( * ) + + 99 DIV 29
----
4

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + + COUNT ( * ) + + 99 / 29
----
4

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

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

query I rowsort
SELECT ALL 72 + + 42
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL - 45 * MAX( 60 )
----
-2700

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - 45 * MAX ( 60 )
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT COUNT( * ) + - 46 col0
----
-45

skipif mysql # not compatible
query I rowsort label-1772
SELECT COUNT ( * ) + - 46 col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT ( + CAST( - + 90 AS SIGNED ) ) * - 60 AS col2
----
5400

skipif mysql # not compatible
query I rowsort label-1773
SELECT ( + CAST ( - + 90 AS INTEGER ) ) * - 60 AS col2
----
5400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1774
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) + + 21 * - + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + + 21 * - + 62 AS col0
----
NULL

query I rowsort
SELECT 40 * 57
----
2280

query I rowsort
SELECT ( - 29 ) - 34 + + 9
----
-54

query I rowsort
SELECT ALL - 70 + 2 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL 78 * + + MIN( + - 2 ) AS col1
----
-156

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL 78 * + + MIN ( + - 2 ) AS col1
----
-156

query I rowsort
SELECT ALL 96 + 42 AS col0
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-1780
SELECT COUNT( * ) + + - 58 AS col0, 86 * + - 76 AS col2
----
-57
-6536

skipif mysql # not compatible
query II rowsort label-1780
SELECT COUNT ( * ) + + - 58 AS col0, 86 * + - 76 AS col2
----
-57
-6536

query I rowsort
SELECT 88 - - 38
----
126

query I rowsort
SELECT DISTINCT 77 * + 28 AS col2
----
2156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT CASE + AVG ( ALL + 37 ) WHEN + + 57 + - 57 THEN - MIN( - 18 ) ELSE - COUNT( * ) END * - 49 col0
----
49

skipif mysql # not compatible
query I rowsort label-1784
SELECT CASE + AVG ( ALL + 37 ) WHEN + + 57 + - 57 THEN - MIN ( - 18 ) ELSE - COUNT ( * ) END * - 49 col0
----
49

query I rowsort
SELECT 3 * 41 AS col1
----
123

query I rowsort
SELECT + 78 * 87 AS col1
----
6786

query I rowsort
SELECT - 58 * 87 - + 70
----
-5116

query I rowsort
SELECT DISTINCT - CASE + + 82 WHEN + + 27 THEN - 85 + - - 18 END col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 49, + - 84 ) col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1790
SELECT 40 * - - 47 AS col0, 71 + + - 13 + - ( + COUNT( * ) )
----
1880
57

skipif mysql # not compatible
query II rowsort label-1790
SELECT 40 * - - 47 AS col0, 71 + + - 13 + - ( + COUNT ( * ) )
----
1880
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT + + CAST( NULL AS SIGNED ) * - 92 + + COUNT( * ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT + + CAST ( NULL AS INTEGER ) * - 92 + + COUNT ( * ) + - 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1792
SELECT 21 * + COUNT( ALL 18 ) + + ( + 8 ) * + 35 DIV + + 33 col1
----
29

skipif mysql # not compatible
query I rowsort label-1792
SELECT 21 * + COUNT ( ALL 18 ) + + ( + 8 ) * + 35 / + + 33 col1
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT 71 * + COUNT( * ) + - + MIN( DISTINCT 87 ) * - 80 col2
----
7031

skipif mysql # not compatible
query I rowsort label-1794
SELECT 71 * + COUNT ( * ) + - + MIN ( DISTINCT 87 ) * - 80 col2
----
7031

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT ALL - - CASE 22 WHEN + 63 * - 39 THEN NULL WHEN - 46 THEN - - 39 WHEN MIN( DISTINCT - + 88 ) * + 54 THEN + - 76 * + - 55 * - 6 - + 98 * + 54 - ( ( + 76 ) ) + 32 + + 61 * + 56 - + 63 ELSE 19 * + 82 END
----
1558

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL - - CASE 22 WHEN + 63 * - 39 THEN NULL WHEN - 46 THEN - - 39 WHEN MIN ( DISTINCT - + 88 ) * + 54 THEN + - 76 * + - 55 * - 6 - + 98 * + 54 - ( ( + 76 ) ) + 32 + + 61 * + 56 - + 63 ELSE 19 * + 82 END
----
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1796
SELECT ALL + - COALESCE ( + COUNT( * ), COUNT( * ) ) + + 56 * + + CASE 84 WHEN 29 THEN + COALESCE ( COUNT( DISTINCT 80 ), - ( - + 58 ) * + 19 + - - CAST( + ( - - 85 ) AS DECIMAL ) ) WHEN 86 THEN NULL END + CAST( 26 AS SIGNED ) AS col0, 67 * - 1
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-1796
SELECT ALL + - COALESCE ( + COUNT ( * ), COUNT ( * ) ) + + 56 * + + CASE 84 WHEN 29 THEN + COALESCE ( COUNT ( DISTINCT 80 ), - ( - + 58 ) * + 19 + - - CAST ( + ( - - 85 ) AS REAL ) ) WHEN 86 THEN NULL END + CAST ( 26 AS INTEGER ) AS col0, 67 * - 1
----
NULL
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT + 58 + - 80 + 4 * - ( + COUNT( * ) ) + 65
----
39

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT + 58 + - 80 + 4 * - ( + COUNT ( * ) ) + 65
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT DISTINCT - - 81 + + - 56 * + + 2 + + + COALESCE ( COUNT( * ), 31, - COUNT( * ), + 66 ) + + COUNT( DISTINCT - 20 ) + - 35 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT - - 81 + + - 56 * + + 2 + + + COALESCE ( COUNT ( * ), 31, - COUNT ( * ), + 66 ) + + COUNT ( DISTINCT - 20 ) + - 35 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT 34 + - 18 + + 39 * - ( - + MIN( + 97 ) ) AS col1
----
3799

skipif mysql # not compatible
query I rowsort label-1799
SELECT 34 + - 18 + + 39 * - ( - + MIN ( + 97 ) ) AS col1
----
3799

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT COUNT( ALL + 86 ) * + 24 + + 31 + + - 80 * + - COUNT( * )
----
135

skipif mysql # not compatible
query I rowsort label-1800
SELECT COUNT ( ALL + 86 ) * + 24 + + 31 + + - 80 * + - COUNT ( * )
----
135

query I rowsort
SELECT ALL NULLIF ( - - 8, - + 45 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT 61 * + + COUNT( * ) * - 62
----
-3782

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT 61 * + + COUNT ( * ) * - 62
----
-3782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1803
SELECT ALL + ( - - 5 ) + - 75 * 77 / - - COUNT( * ) + + - 28 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL + ( - - 5 ) + - 75 * 77 / - - COUNT ( * ) + + - 28 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT ALL 55 - + 99 + + NULLIF ( 96, AVG ( DISTINCT - + 65 ) / 15 - MIN( DISTINCT 89 ) )
----
52

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL 55 - + 99 + + NULLIF ( 96, AVG ( DISTINCT - + 65 ) / 15 - MIN ( DISTINCT 89 ) )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1805
SELECT - 31 DIV COUNT( * ) * - 55
----
1705

skipif mysql # not compatible
query I rowsort label-1805
SELECT - 31 / COUNT ( * ) * - 55
----
1705

query I rowsort
SELECT + 37 + + 61 col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT - 48 * - 63 / CAST( - - 12 AS SIGNED ) / - 77 * - CAST( - NULLIF ( + 51, ( + 70 ) ) AS SIGNED ) * CAST( NULL AS SIGNED ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT - 48 * - 63 / CAST ( - - 12 AS INTEGER ) / - 77 * - CAST ( - NULLIF ( + 51, ( + 70 ) ) AS INTEGER ) * CAST ( NULL AS INTEGER ) + 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1808
SELECT DISTINCT NULLIF ( COUNT( * ), - 78 ) AS col1, - ( - - 20 )
----
1
-20

skipif mysql # not compatible
query II rowsort label-1808
SELECT DISTINCT NULLIF ( COUNT ( * ), - 78 ) AS col1, - ( - - 20 )
----
1
-20

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

skipif mysql # not compatible
query I rowsort label-1809
SELECT - COUNT ( 16 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT - 1 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1810
SELECT - 1 / + 77 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - 18 + + CASE + 32 WHEN + 58 THEN - + 1 * + + SUM( 73 ) / COUNT( * ) + - 98 * + 50 + - 50 * ( 41 ) WHEN + 43 + - 48 THEN + + 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT - 18 + + CASE + 32 WHEN + 58 THEN - + 1 * + + SUM ( 73 ) / COUNT ( * ) + - 98 * + 50 + - 50 * ( 41 ) WHEN + 43 + - 48 THEN + + 53 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1813
SELECT 40 DIV - + 76 + CAST( 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-1813
SELECT 40 / - + 76 + CAST ( 86 AS INTEGER )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT + MIN( ALL 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + MIN ( ALL 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL + MIN( ALL + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL + MIN ( ALL + 98 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1816
SELECT + + CASE - + NULLIF ( + 50, + 39 + - 18 ) WHEN MIN( 33 ) + + - 19 / CAST( COUNT( + 92 ) AS SIGNED ) + - + 67 THEN NULL WHEN - - 11 + - COUNT( * ) + - 14 THEN NULL WHEN 26 THEN NULL ELSE - + 88 * SUM( 74 ) + - 3 * 14 * + ( - - 64 ) END + - - 21 col2
----
-9179

skipif mysql # not compatible
query I rowsort label-1816
SELECT + + CASE - + NULLIF ( + 50, + 39 + - 18 ) WHEN MIN ( 33 ) + + - 19 / CAST ( COUNT ( + 92 ) AS INTEGER ) + - + 67 THEN NULL WHEN - - 11 + - COUNT ( * ) + - 14 THEN NULL WHEN 26 THEN NULL ELSE - + 88 * SUM ( 74 ) + - 3 * 14 * + ( - - 64 ) END + - - 21 col2
----
-9179

query I rowsort
SELECT DISTINCT 64 * + 5 AS col0
----
320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT - - 64 DIV - - ( + 22 ) + - - 44 DIV + + COUNT( DISTINCT - 99 )
----
46

skipif mysql # not compatible
query I rowsort label-1818
SELECT - - 64 / - - ( + 22 ) + - - 44 / + + COUNT ( DISTINCT - 99 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1819
SELECT ALL - - 59 * - 54 + + 48 + - ( 10 ), + 66 * - COUNT( * ) - + 53 AS col2
----
-3148
-119

skipif mysql # not compatible
query II rowsort label-1819
SELECT ALL - - 59 * - 54 + + 48 + - ( 10 ), + 66 * - COUNT ( * ) - + 53 AS col2
----
-3148
-119

query I rowsort
SELECT DISTINCT + + 86 col2
----
86

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT + 78 * + CASE COUNT( * ) WHEN COALESCE ( + 65, + + 29 ) THEN 79 WHEN - 18 / - + 81 THEN 76 END, COUNT( * ) * - - 82 * 79 AS col0
----
NULL
6478

skipif mysql # not compatible
query II rowsort label-1823
SELECT + 78 * + CASE COUNT ( * ) WHEN COALESCE ( + 65, + + 29 ) THEN 79 WHEN - 18 / - + 81 THEN 76 END, COUNT ( * ) * - - 82 * 79 AS col0
----
NULL
6478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL + MAX( + ( 3 ) ) * - + 95 + - COUNT( * ) + + 29 + - AVG ( DISTINCT + 45 ) - + 94 + - 45 + - 43 * + 76 * - ( 79 ) * - 66 / + SUM( ALL - CAST( NULL AS SIGNED ) ) * + ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + MAX ( + ( 3 ) ) * - + 95 + - COUNT ( * ) + + 29 + - AVG ( DISTINCT + 45 ) - + 94 + - 45 + - 43 * + 76 * - ( 79 ) * - 66 / + SUM ( ALL - CAST ( NULL AS INTEGER ) ) * + ( 57 )
----
NULL

query I rowsort
SELECT COALESCE ( - - 24, + - 65 * - 98 * - 42 + - + 87 - + 10 + - + 32 * - NULLIF ( ( + + 20 ), + 45 + 65 * - 22 * - 91 ) ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT + - 14 DIV - - 40
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT + - 14 / - - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT - + 9 * - 94 * COUNT( * )
----
846

skipif mysql # not compatible
query I rowsort label-1827
SELECT - + 9 * - 94 * COUNT ( * )
----
846

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL - - ( 96 ) * COUNT( * ) + - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL - - ( 96 ) * COUNT ( * ) + - COUNT ( * ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT + 81 * NULLIF ( + CASE - 58 WHEN - 76 THEN + + 5 ELSE 12 END, + 96 + - CAST( NULL AS SIGNED ) ) AS col1
----
972

skipif mysql # not compatible
query I rowsort label-1830
SELECT + 81 * NULLIF ( + CASE - 58 WHEN - 76 THEN + + 5 ELSE 12 END, + 96 + - CAST ( NULL AS INTEGER ) ) AS col1
----
972

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

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

query I rowsort
SELECT ALL - - 54 * + 42 * - 5 AS col1
----
-11340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT DISTINCT - COUNT( * ) * 26 * - CAST( NULL AS SIGNED ) + COALESCE ( - CASE - COUNT( * ) WHEN + + 57 + NULLIF ( + CAST( NULL AS SIGNED ), - 9 ) THEN - ( + - COUNT( * ) ) ELSE + 25 + + 91 - + + NULLIF ( + MIN( 0 ), - 27 * + + ( - 45 ) / 20 * - + 42 * + - 12 + 87 * 77 + ( + 73 ) ) END, 17 ) - - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - COUNT ( * ) * 26 * - CAST ( NULL AS INTEGER ) + COALESCE ( - CASE - COUNT ( * ) WHEN + + 57 + NULLIF ( + CAST ( NULL AS INTEGER ), - 9 ) THEN - ( + - COUNT ( * ) ) ELSE + 25 + + 91 - + + NULLIF ( + MIN ( 0 ), - 27 * + + ( - 45 ) / 20 * - + 42 * + - 12 + 87 * 77 + ( + 73 ) ) END, 17 ) - - 27 AS col1
----
NULL

query I rowsort
SELECT ALL + 79 * + 48
----
3792

query I rowsort
SELECT DISTINCT 70 * + 8 - - 30
----
590

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1836
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT CAST ( NULL AS REAL ) * 98
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1838
SELECT - ( 88 ) * - COUNT ( * )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT ALL + 80 * + + ( NULLIF ( - CASE + + 48 WHEN - + 56 * COUNT( * ) + - SUM( ALL + 12 ) * SUM( ALL + ( CAST( 49 AS SIGNED ) ) ) THEN + 23 WHEN + 62 THEN NULL END, + 55 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + 80 * + + ( NULLIF ( - CASE + + 48 WHEN - + 56 * COUNT ( * ) + - SUM ( ALL + 12 ) * SUM ( ALL + ( CAST ( 49 AS INTEGER ) ) ) THEN + 23 WHEN + 62 THEN NULL END, + 55 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT + 31 + - 17 * + 69 + - - 17 + + - COUNT( * ) + - 41 * 44 col1
----
-2930

skipif mysql # not compatible
query I rowsort label-1840
SELECT + 31 + - 17 * + 69 + - - 17 + + - COUNT ( * ) + - 41 * 44 col1
----
-2930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1841
SELECT DISTINCT CASE + 77 WHEN + - AVG ( 82 ) THEN + - 42 / - CAST( NULL AS SIGNED ) WHEN - ( + 20 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT CASE + 77 WHEN + - AVG ( 82 ) THEN + - 42 / - CAST ( NULL AS INTEGER ) WHEN - ( + 20 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL - 53 - + 13 + - + 15 + - COALESCE ( + 49, + 33 ) DIV + 60 * - COALESCE ( - 19, 55 * + 87, - 30 ) + - 68 * 54 * - 37 * - 50 AS col0
----
-6793281

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - 53 - + 13 + - + 15 + - COALESCE ( + 49, + 33 ) / + 60 * - COALESCE ( - 19, 55 * + 87, - 30 ) + - 68 * 54 * - 37 * - 50 AS col0
----
-6793281

query I rowsort
SELECT - 31 * - - 9
----
-279

query I rowsort
SELECT ALL ( COALESCE ( + 14, - 26 + - 57 + - + ( 2 ), - + 60 ) ) AS col1
----
14

query I rowsort
SELECT ALL ( - 72 ) AS col2
----
-72

query I rowsort
SELECT - 95 * - - 40
----
-3800

query I rowsort
SELECT DISTINCT - 8 * - - 92 * + 93 AS col0
----
-68448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT - 35 DIV + 35 * COUNT( - 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - 35 / + 35 * COUNT ( - 58 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1849
SELECT ALL 77 AS col2, - COUNT( * ) DIV + + MIN( + - 5 ) - 79 + + ( 71 ) - 48 DIV 36 AS col2
----
77
-9

skipif mysql # not compatible
query II rowsort label-1849
SELECT ALL 77 AS col2, - COUNT ( * ) / + + MIN ( + - 5 ) - 79 + + ( 71 ) - 48 / 36 AS col2
----
77
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT - 47 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-1850
SELECT - 47 / + 69
----
0

query I rowsort
SELECT ALL - 18 * - 40
----
720

query I rowsort
SELECT - 59 * + + 70
----
-4130

query I rowsort
SELECT - 65 * 90 AS col0
----
-5850

query I rowsort
SELECT + 23 - + + 90 * + 24 AS col2
----
-2137

query I rowsort
SELECT - + 45 * - 2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL + 34 + + 15 + - 62 * + + 9 - + - COUNT( * ) + - - 79 * - 87 * COALESCE ( - 51, 64 ) + - 55
----
349960

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL + 34 + + 15 + - 62 * + + 9 - + - COUNT ( * ) + - - 79 * - 87 * COALESCE ( - 51, 64 ) + - 55
----
349960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT + 96 DIV - - 18 * + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1857
SELECT + 96 / - - 18 * + + COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT - 36 - + 89 * + SUM( - + COALESCE ( + - 30, 12 ) ) * - 95 + - - 40 AS col1
----
253654

skipif mysql # not compatible
query I rowsort label-1858
SELECT - 36 - + 89 * + SUM ( - + COALESCE ( + - 30, 12 ) ) * - 95 + - - 40 AS col1
----
253654

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT ALL - 31 DIV + + 80 * - - 32 + + 19 + + - 56
----
-37

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL - 31 / + + 80 * - - 32 + + 19 + + - 56
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1861
SELECT ALL + 67 / + NULLIF ( CAST( NULL AS SIGNED ), - + NULLIF ( CAST( NULL AS SIGNED ), 99 ) * COUNT( * ) ) * + 71 * + 45 * 66 + - + COUNT( * ) + - 1 + - - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + 67 / + NULLIF ( CAST ( NULL AS INTEGER ), - + NULLIF ( CAST ( NULL AS INTEGER ), 99 ) * COUNT ( * ) ) * + 71 * + 45 * 66 + - + COUNT ( * ) + - 1 + - - 2 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1862
SELECT ALL + 59 DIV + - CASE 42 WHEN - 92 THEN NULL ELSE + - COUNT( * ) * CAST( - MIN( DISTINCT - ( - 10 ) ) AS SIGNED ) * + 11 END * + + 70 DIV + 40 + ( 37 ) + - + 4
----
33

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL + 59 / + - CASE 42 WHEN - 92 THEN NULL ELSE + - COUNT ( * ) * CAST ( - MIN ( DISTINCT - ( - 10 ) ) AS INTEGER ) * + 11 END * + + 70 / + 40 + ( 37 ) + - + 4
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT - + 44 + + MIN( ALL - 88 ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-1864
SELECT - + 44 + + MIN ( ALL - 88 ) AS col2
----
-132

query I rowsort
SELECT 69 * NULLIF ( + 74, 42 + 25 - - 42 / + 55 * - ( - 9 ) ) + + 70
----
5176

query I rowsort
SELECT + + 63 * - 34 + - - 92
----
-2050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1867
SELECT ALL - + 32 DIV 91 + 10 + - COUNT( DISTINCT + 96 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - + 32 / 91 + 10 + - COUNT ( DISTINCT + 96 ) AS col2
----
9

query II rowsort
SELECT - 40, 26 AS col2
----
-40
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT ALL + COUNT( * ) * + 18 - 77
----
-59

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL + COUNT ( * ) * + 18 - 77
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT ALL - 20 DIV - 9
----
2

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - 20 / - 9
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1872
SELECT SUM( DISTINCT + 98 ) DIV - 27 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1872
SELECT SUM ( DISTINCT + 98 ) / - 27 AS col0
----
-3

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

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

query I rowsort
SELECT + 91 * - 99 * 8 + - ( - 81 ) AS col2
----
-71991

query I rowsort
SELECT 88 + - + 20
----
68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1877
SELECT MAX( ALL 45 ) DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-1877
SELECT MAX ( ALL 45 ) / 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1878
SELECT 97 + + ( + + ( 18 ) ) DIV - - 8 * + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-1878
SELECT 97 + + ( + + ( 18 ) ) / - - 8 * + + COUNT ( * )
----
99

query I rowsort
SELECT DISTINCT 54 * 19 AS col0
----
1026

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

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

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

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

query I rowsort
SELECT DISTINCT - 31 * + ( + - 3 ) AS col2
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL 77 * NULLIF ( 92, + COUNT( * ) ) AS col0
----
7084

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL 77 * NULLIF ( 92, + COUNT ( * ) ) AS col0
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT + MAX( 59 ) + - - 80
----
139

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + MAX ( 59 ) + - - 80
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1886
SELECT 19 * + COUNT( * ) col1, CAST( NULL AS SIGNED ) AS col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-1886
SELECT 19 * + COUNT ( * ) col1, CAST ( NULL AS INTEGER ) AS col0
----
19
NULL

query I rowsort
SELECT 22 + + + 40 + + 11
----
73

query I rowsort
SELECT 76 + - + 15 - + 24 * + 19
----
-395

query I rowsort
SELECT + 33 + - ( + 92 ) - 84 + + + 55 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT + 47 + COALESCE ( + COUNT( * ), - ( - 70 ) + - - 4 + SUM( + 36 ) + ( 97 ) ) AS col1, + NULLIF ( 98, 31 / 45 + - - CASE - 38 WHEN - 19 * - + 99 THEN 67 END ) AS col2
----
48
98

skipif mysql # not compatible
query II rowsort label-1890
SELECT + 47 + COALESCE ( + COUNT ( * ), - ( - 70 ) + - - 4 + SUM ( + 36 ) + ( 97 ) ) AS col1, + NULLIF ( 98, 31 / 45 + - - CASE - 38 WHEN - 19 * - + 99 THEN 67 END ) AS col2
----
48
98

onlyif mysql # aggregate syntax: 
query II rowsort label-1891
SELECT ALL + + 67 + + COUNT( * ) col2, 84 AS col1
----
68
84

skipif mysql # not compatible
query II rowsort label-1891
SELECT ALL + + 67 + + COUNT ( * ) col2, 84 AS col1
----
68
84

query I rowsort
SELECT ALL - + ( - NULLIF ( 54, - - 9 ) ) * - 21 * 42 AS col2
----
-47628

query I rowsort
SELECT ALL + + 88 * + 85 * - ( + 49 ) AS col2
----
-366520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1894
SELECT + COALESCE ( SUM( - ( - + 57 ) ), 92 + - 82 * 10 * - + 96 DIV - ( 14 ) * COALESCE ( - - 68, + COUNT( * ) DIV - + 19, + CAST( 58 AS SIGNED ) - - 9 + - - 11 ) + + 89 + 86, - CAST( NULL AS SIGNED ) - - - 26 ) AS col1, + 26 * - 26
----
57
-676

skipif mysql # not compatible
query II rowsort label-1894
SELECT + COALESCE ( SUM ( - ( - + 57 ) ), 92 + - 82 * 10 * - + 96 / - ( 14 ) * COALESCE ( - - 68, + COUNT ( * ) / - + 19, + CAST ( 58 AS INTEGER ) - - 9 + - - 11 ) + + 89 + 86, - CAST ( NULL AS INTEGER ) - - - 26 ) AS col1, + 26 * - 26
----
57
-676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT DISTINCT + - 38 + + NULLIF ( + 23, - + ( - CAST( NULL AS SIGNED ) ) + + 74 + + 13 + - NULLIF ( - 38, - 60 * - 3 ) - + ( - COUNT( * ) ) / - - 35 )
----
-15

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + - 38 + + NULLIF ( + 23, - + ( - CAST ( NULL AS INTEGER ) ) + + 74 + + 13 + - NULLIF ( - 38, - 60 * - 3 ) - + ( - COUNT ( * ) ) / - - 35 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL - - COUNT( DISTINCT + ( - + 90 ) ) + 29
----
30

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - - COUNT ( DISTINCT + ( - + 90 ) ) + 29
----
30

query I rowsort
SELECT 25 * + 83 * - + 96 + + 48 - 30 AS col2
----
-199182

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT - COALESCE ( - 33, ( + 46 ) + + COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT - COALESCE ( - 33, ( + 46 ) + + COUNT ( * ) ) AS col0
----
33

query II rowsort
SELECT + ( + - ( + 1 ) ) * - 21 * + 95 * + + ( - + 77 ) AS col2, 8 * 43
----
-153615
344

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT - 54 * 82 * - COUNT( * ) * + 72 AS col0
----
318816

skipif mysql # not compatible
query I rowsort label-1900
SELECT - 54 * 82 * - COUNT ( * ) * + 72 AS col0
----
318816

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT ALL - ( 57 ) DIV - + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - ( 57 ) / - + 59 AS col2
----
0

query I rowsort
SELECT ALL - 46 - 66
----
-112

query I rowsort
SELECT 94 * - 37
----
-3478

query I rowsort
SELECT - NULLIF ( - 39, - ( + 12 ) )
----
39

query I rowsort
SELECT DISTINCT 14 * 61
----
854

query I rowsort
SELECT DISTINCT 78 * + 42
----
3276

onlyif mysql # DIV for integer division: 
query II rowsort label-1907
SELECT DISTINCT - 30, 14 DIV - 45 col1
----
-30
0

skipif mysql # not compatible
query II rowsort label-1907
SELECT DISTINCT - 30, 14 / - 45 col1
----
-30
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1908
SELECT NULLIF ( + 86, + 93 ) / - 13 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT NULLIF ( + 86, + 93 ) / - 13 / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 13 col0, 19 * - - 65
----
-13
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT MIN( DISTINCT - 17 ) * ( 96 ) * - 26 + MAX( + 56 )
----
42488

skipif mysql # not compatible
query I rowsort label-1910
SELECT MIN ( DISTINCT - 17 ) * ( 96 ) * - 26 + MAX ( + 56 )
----
42488

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1911
SELECT - 62 AS col0, CAST( NULL AS DECIMAL ) AS col1
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-1911
SELECT - 62 AS col0, CAST ( NULL AS REAL ) AS col1
----
-62
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1912
SELECT ALL 36 + - 29 * NULLIF ( - + 25, + + COALESCE ( + 68, - AVG ( ALL - + 35 ) ) + COUNT( ALL + 63 ) ) - 36 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL 36 + - 29 * NULLIF ( - + 25, + + COALESCE ( + 68, - AVG ( ALL - + 35 ) ) + COUNT ( ALL + 63 ) ) - 36 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1913
SELECT 51, COUNT( * ) * - 55 AS col1
----
51
-55

skipif mysql # not compatible
query II rowsort label-1913
SELECT 51, COUNT ( * ) * - 55 AS col1
----
51
-55

query I rowsort
SELECT ( - ( 13 ) ) * + 75
----
-975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1915
SELECT ALL COUNT( * ) DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL COUNT ( * ) / - 97
----
0

query II rowsort
SELECT - 73 AS col1, ( + 95 )
----
-73
95

query II rowsort
SELECT ( 90 ) + + 5 AS col2, + 66 col0
----
95
66

query I rowsort
SELECT ALL 24 + - 43 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1919
SELECT ( - - 7 ) + - - 14 col1, - COUNT( * ) * + 99 + + - 18 AS col1
----
21
-117

skipif mysql # not compatible
query II rowsort label-1919
SELECT ( - - 7 ) + - - 14 col1, - COUNT ( * ) * + 99 + + - 18 AS col1
----
21
-117

query II rowsort
SELECT - 83, - 95 AS col2
----
-83
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1921
SELECT DISTINCT CASE 52 WHEN + 88 + - 61 THEN NULL ELSE + COUNT( * ) * - CAST( - 97 AS SIGNED ) * - + 65 END * - COALESCE ( - 76, + - 30 * MIN( + 51 ) * + 35 + + - COALESCE ( - 59, - 76 * - + 16 ) + - 28 * + 59 + + 96 + 32 + 66 * + 38 )
----
-479180

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT CASE 52 WHEN + 88 + - 61 THEN NULL ELSE + COUNT ( * ) * - CAST ( - 97 AS INTEGER ) * - + 65 END * - COALESCE ( - 76, + - 30 * MIN ( + 51 ) * + 35 + + - COALESCE ( - 59, - 76 * - + 16 ) + - 28 * + 59 + + 96 + 32 + 66 * + 38 )
----
-479180

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT - 51 + - ( COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - 51 + - ( COUNT ( * ) )
----
-52

query II rowsort
SELECT ALL + 27, ( - 78 ) + - 65 + - 40 * + 90 col1
----
27
-3743

query I rowsort
SELECT DISTINCT + 24 + + 78 * - 14 * - - 76 + + 78
----
-82890

query II rowsort
SELECT 9 AS col0, + 90 AS col0
----
9
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT ALL - 91 - + 30 + COUNT( * ) AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - 91 - + 30 + COUNT ( * ) AS col0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1927
SELECT + CAST( NULL AS SIGNED ) - CAST( + - 71 AS SIGNED ) + + - ( 61 ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT + CAST ( NULL AS INTEGER ) - CAST ( + - 71 AS INTEGER ) + + - ( 61 ) * 65
----
NULL

query I rowsort
SELECT 9 * + 93 + + + 38
----
875

query I rowsort
SELECT - COALESCE ( - 88, - + 38 * 64 * + 51 )
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT CASE WHEN ( - NULLIF ( - COUNT( * ), + 86 / + + 37 + 90 ) ) IS NULL THEN 99 * - 50 + - NULLIF ( 52, + 14 ) ELSE + + 4 END col1
----
4

skipif mysql # not compatible
query I rowsort label-1931
SELECT CASE WHEN ( - NULLIF ( - COUNT ( * ), + 86 / + + 37 + 90 ) ) IS NULL THEN 99 * - 50 + - NULLIF ( 52, + 14 ) ELSE + + 4 END col1
----
4

query I rowsort
SELECT ALL - + 21 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL + - 60 * 50 + 84 * + + COUNT( * ) AS col2
----
-2916

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + - 60 * 50 + 84 * + + COUNT ( * ) AS col2
----
-2916

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - CASE 98 WHEN 66 + - 52 THEN 81 * - 93 + + 86 WHEN 36 THEN CASE + 59 WHEN 30 THEN NULL ELSE - ( + 13 ) END + 71 - 83 + - 56 + + 79 - + 24 * COALESCE ( - - 88, COUNT( * ) + + + ( + 30 ) + + 94 * - - 95 ) * 21 * + + 20 END / - + 32 / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT - CASE 98 WHEN 66 + - 52 THEN 81 * - 93 + + 86 WHEN 36 THEN CASE + 59 WHEN 30 THEN NULL ELSE - ( + 13 ) END + 71 - 83 + - 56 + + 79 - + 24 * COALESCE ( - - 88, COUNT ( * ) + + + ( + 30 ) + + 94 * - - 95 ) * 21 * + + 20 END / - + 32 / 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1935
SELECT + 46 DIV + COUNT( * ) * + + COUNT( DISTINCT - 63 ) * + COUNT( * ) - - 24 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1935
SELECT + 46 / + COUNT ( * ) * + + COUNT ( DISTINCT - 63 ) * + COUNT ( * ) - - 24 AS col2
----
70

query I rowsort
SELECT ALL + 21 * + 35 AS col0
----
735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT - COUNT( DISTINCT - 34 ) DIV + 82 * - 32
----
0

skipif mysql # not compatible
query I rowsort label-1937
SELECT - COUNT ( DISTINCT - 34 ) / + 82 * - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - CASE + 31 WHEN - COUNT( * ) THEN - 70 END / + + 98 * 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT - CASE + 31 WHEN - COUNT ( * ) THEN - 70 END / + + 98 * 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT + 83 * - MAX( DISTINCT 63 ) + - - 78 AS col1
----
-5151

skipif mysql # not compatible
query I rowsort label-1939
SELECT + 83 * - MAX ( DISTINCT 63 ) + - - 78 AS col1
----
-5151

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

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

query I rowsort
SELECT ALL + COALESCE ( + 17, - ( - - 46 ), + 65 )
----
17

query I rowsort
SELECT + 1 * 91 + - - 33
----
124

query I rowsort
SELECT ALL 13 * - 37 + + 88
----
-393

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

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

query I rowsort
SELECT + 1 + + - 80 col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT SUM( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-1946
SELECT SUM ( 63 )
----
63

query II rowsort
SELECT ALL 83 + + CASE 82 WHEN - + 49 THEN NULL WHEN - - 68 - + + 52 THEN + - 21 + 73 ELSE - 86 END, - 86 AS col0
----
-3
-86

query I rowsort
SELECT + 65 * 73 AS col1
----
4745

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT DISTINCT MAX( DISTINCT - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT MAX ( DISTINCT - 7 )
----
-7

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1952
SELECT DISTINCT - 95 - - + 51 DIV - 81 * + 77, - 45 AS col1
----
-95
-45

skipif mysql # not compatible
query II rowsort label-1952
SELECT DISTINCT - 95 - - + 51 / - 81 * + 77, - 45 AS col1
----
-95
-45

query I rowsort
SELECT ALL COALESCE ( + 11, 21 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT DISTINCT 30 DIV + 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT 30 / + 15 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1955
SELECT + + 81 * + CAST( + 24 AS SIGNED )
----
1944

skipif mysql # not compatible
query I rowsort label-1955
SELECT + + 81 * + CAST ( + 24 AS INTEGER )
----
1944

query I rowsort
SELECT + + 76 * - 13
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL + MAX( ALL - 78 ) * + 86 * 55 + 50
----
-368890

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + MAX ( ALL - 78 ) * + 86 * 55 + 50
----
-368890

query I rowsort
SELECT + 18 + 71
----
89

query II rowsort
SELECT + - 7 * 70 AS col2, - 16
----
-490
-16

query II rowsort
SELECT + 32 + + 83 AS col2, + ( + - 66 )
----
115
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT SUM( - 63 ) - 31
----
-94

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT SUM ( - 63 ) - 31
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT CASE - NULLIF ( 80, + - MIN( ALL + + 64 ) ) WHEN + 20 * 84 THEN NULL WHEN - - 41 THEN + + 63 / + - 28 * + + ( + 98 ) + + - ( 24 ) + - 0 * + 11 ELSE - + SUM( ALL 42 ) + + 12 END col2
----
-30

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT CASE - NULLIF ( 80, + - MIN ( ALL + + 64 ) ) WHEN + 20 * 84 THEN NULL WHEN - - 41 THEN + + 63 / + - 28 * + + ( + 98 ) + + - ( 24 ) + - 0 * + 11 ELSE - + SUM ( ALL 42 ) + + 12 END col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT ALL 15 * 61 DIV - 2 AS col1
----
-457

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL 15 * 61 / - 2 AS col1
----
-457

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + + NULLIF ( 40, - - COUNT( * ) / + - 32 ) + - 17 col1
----
23

skipif mysql # not compatible
query I rowsort label-1964
SELECT + + NULLIF ( 40, - - COUNT ( * ) / + - 32 ) + - 17 col1
----
23

query I rowsort
SELECT DISTINCT + 18 * 89 * + 65 * - 10 AS col2
----
-1041300

query I rowsort
SELECT 49 * - 80 + + + ( - - 92 ) * 41
----
-148

query I rowsort
SELECT + + 80 * + - 82 + + - 12 * 2 + 97 + + + 92 AS col1
----
-6395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT + + SUM( + 49 ) / 40 * - CAST( NULL AS SIGNED ) * + - 28 + + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT + + SUM ( + 49 ) / 40 * - CAST ( NULL AS INTEGER ) * + - 28 + + - 97
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT CAST( COALESCE ( - 28, 33 - - 90 - - + 30 + ( - 71 ) + 88 * + 82, 13 ) AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-1970
SELECT CAST ( COALESCE ( - 28, 33 - - 90 - - + 30 + ( - 71 ) + 88 * + 82, 13 ) AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1971
SELECT ALL ( - 71 ) DIV 22 + ( + MIN( - - 15 ) ) * - - 84 AS col0
----
1257

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL ( - 71 ) / 22 + ( + MIN ( - - 15 ) ) * - - 84 AS col0
----
1257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1972
SELECT + CAST( 1 AS SIGNED ) * COUNT( + ( 24 ) ) * + + 72 - + ( - 38 ) + - - 29 + + - 78 * - - 34 AS col0
----
-2513

skipif mysql # not compatible
query I rowsort label-1972
SELECT + CAST ( 1 AS INTEGER ) * COUNT ( + ( 24 ) ) * + + 72 - + ( - 38 ) + - - 29 + + - 78 * - - 34 AS col0
----
-2513

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL + MIN( - - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL + MIN ( - - 2 )
----
2

query I rowsort
SELECT DISTINCT - 72 * - 52
----
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT - 31 DIV - ( - 71 ) * 27
----
0

skipif mysql # not compatible
query I rowsort label-1975
SELECT - 31 / - ( - 71 ) * 27
----
0

query I rowsort
SELECT ALL - 90 * + 2
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT + CAST( - 8 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1977
SELECT + CAST ( - 8 AS INTEGER ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT + CAST( - 91 AS SIGNED ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-1978
SELECT + CAST ( - 91 AS INTEGER ) col2
----
-91

query I rowsort
SELECT DISTINCT - 33 * + + 51 + - ( + 81 ) AS col1
----
-1764

query I rowsort
SELECT - 89 - 40 - 59 col1
----
-188

query I rowsort
SELECT DISTINCT - 73 * - - 51 AS col1
----
-3723

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1982
SELECT ALL - ( 31 ) / 22 + + CAST( NULL AS DECIMAL ) + + 52, + 64 * + + 64 * + 26 AS col2
----
NULL
106496

skipif mysql # not compatible
query II rowsort label-1982
SELECT ALL - ( 31 ) / 22 + + CAST ( NULL AS REAL ) + + 52, + 64 * + + 64 * + 26 AS col2
----
NULL
106496

query I rowsort
SELECT - 82 * + + 63 col1
----
-5166

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - MAX( ALL + - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1984
SELECT - MAX ( ALL + - 63 ) AS col2
----
63

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT CASE + 59 WHEN 87 + + 52 - - NULLIF ( + CASE 1 WHEN - 69 THEN + 80 ELSE NULL END, - 7 ) + - 86 / CAST( + - 10 AS SIGNED ) - + ( COUNT( * ) ) - + - 83 THEN 12 WHEN + COUNT( - 89 ) THEN NULLIF ( + 4, + 11 * + 86 * + - 62 ) * - - ( 9 ) + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT CASE + 59 WHEN 87 + + 52 - - NULLIF ( + CASE 1 WHEN - 69 THEN + 80 ELSE NULL END, - 7 ) + - 86 / CAST ( + - 10 AS INTEGER ) - + ( COUNT ( * ) ) - + - 83 THEN 12 WHEN + COUNT ( - 89 ) THEN NULLIF ( + 4, + 11 * + 86 * + - 62 ) * - - ( 9 ) + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT SUM( ALL - + 56 ) * + 82 + + 65 + 1 AS col1
----
-4526

skipif mysql # not compatible
query I rowsort label-1987
SELECT SUM ( ALL - + 56 ) * + 82 + + 65 + 1 AS col1
----
-4526

query I rowsort
SELECT + - 96 - - 1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT - + 85 * - - COUNT( * ) * + + 5 + + 74 AS col2
----
-351

skipif mysql # not compatible
query I rowsort label-1989
SELECT - + 85 * - - COUNT ( * ) * + + 5 + + 74 AS col2
----
-351

query I rowsort
SELECT ALL + 41 * + 71 + + 62 + 85 + 59 + 22 * 19 + - 45 AS col1
----
3490

query I rowsort
SELECT - ( - + 9 ) + + 20
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT - 20 + - 7 + + + COUNT( * ) + + 58 / - ( + 9 ) + 69 * 48 - + - CASE - + MAX( DISTINCT + 4 ) WHEN + + MAX( ALL + + 51 ) THEN + 43 ELSE NULL END + - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 20 + - 7 + + + COUNT ( * ) + + 58 / - ( + 9 ) + 69 * 48 - + - CASE - + MAX ( DISTINCT + 4 ) WHEN + + MAX ( ALL + + 51 ) THEN + 43 ELSE NULL END + - 16 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT + 43 * - 21
----
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL CASE COUNT( * ) WHEN 63 THEN + + 50 * - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL CASE COUNT ( * ) WHEN 63 THEN + + 50 * - 10 END
----
NULL

query I rowsort
SELECT 7 + 86 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL COUNT( * ) + + CASE + COUNT( * ) WHEN + MIN( ALL + + 92 ) * - - ( - COUNT( * ) ) / + + 3 * - 57 * - - 38 THEN COUNT( * ) * + ( + 50 ) + 61 WHEN + - 77 + 72 THEN NULL WHEN - COUNT( * ) * + 6 + CAST( + + 92 AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL COUNT ( * ) + + CASE + COUNT ( * ) WHEN + MIN ( ALL + + 92 ) * - - ( - COUNT ( * ) ) / + + 3 * - 57 * - - 38 THEN COUNT ( * ) * + ( + 50 ) + 61 WHEN + - 77 + 72 THEN NULL WHEN - COUNT ( * ) * + 6 + CAST ( + + 92 AS INTEGER ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT - CAST( + - 95 AS SIGNED ) * - 21 col0
----
-1995

skipif mysql # not compatible
query I rowsort label-1999
SELECT - CAST ( + - 95 AS INTEGER ) * - 21 col0
----
-1995

onlyif mysql # DIV for integer division: 
query I rowsort label-2000
SELECT ALL - 3 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - 3 / 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT DISTINCT 26 + + COUNT( * ) - - CASE + CASE - - 49 WHEN COUNT( * ) * + 8 THEN 71 END WHEN + 51 / - MAX( DISTINCT - - 22 ) THEN NULL WHEN 7 THEN NULL ELSE 75 + - 79 END * ( - 96 ) * - + 91 AS col2
----
-34917

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT 26 + + COUNT ( * ) - - CASE + CASE - - 49 WHEN COUNT ( * ) * + 8 THEN 71 END WHEN + 51 / - MAX ( DISTINCT - - 22 ) THEN NULL WHEN 7 THEN NULL ELSE 75 + - 79 END * ( - 96 ) * - + 91 AS col2
----
-34917

query I rowsort
SELECT ( + + 18 ) * - 98 AS col2
----
-1764

query I rowsort
SELECT ALL 61 + 17 AS col1
----
78

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

query I rowsort
SELECT 95 * + 62 - + 41
----
5849

query II rowsort
SELECT ALL - 39 AS col0, 80
----
-39
80

query I rowsort
SELECT ALL 13 * 87 * - + 70
----
-79170

query I rowsort
SELECT 77 + - - 96 AS col2
----
173

query I rowsort
SELECT + 30 * - 50 + - + 99 col1
----
-1599

query I rowsort
SELECT 32 * 8 + 74 + ( - 41 ) * - 46 + - + 67 + 78 + + 91 + + 53 + - 14 * + 95 * 40 AS col0
----
-50829

query II rowsort
SELECT DISTINCT - 45, + 48 AS col0
----
-45
48

query II rowsort
SELECT ALL - 57, - 29 + - 67 AS col2
----
-57
-96

query II rowsort
SELECT 78 AS col2, - 19 * + 51 col0
----
78
-969

query I rowsort
SELECT 25 * + + 63 + - 97 col1
----
1478

query I rowsort
SELECT - 64 * 86 + - - 27 AS col0
----
-5477

query I rowsort
SELECT DISTINCT - 3 * 4
----
-12

query II rowsort
SELECT ALL + 71, - 99 AS col2
----
71
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2018
SELECT - - 14 AS col2, + COUNT( * ) * - - CASE - CAST( + 36 AS SIGNED ) WHEN 70 THEN NULL ELSE + 60 END
----
14
60

skipif mysql # not compatible
query II rowsort label-2018
SELECT - - 14 AS col2, + COUNT ( * ) * - - CASE - CAST ( + 36 AS INTEGER ) WHEN 70 THEN NULL ELSE + 60 END
----
14
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - MIN( + 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-2019
SELECT - MIN ( + 73 ) AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2020
SELECT - + 61 AS col1, 29 * 49 + - + 64 / ( NULLIF ( - - 90, 94 ) ) + + AVG ( ALL CAST( NULL AS SIGNED ) )
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-2020
SELECT - + 61 AS col1, 29 * 49 + - + 64 / ( NULLIF ( - - 90, 94 ) ) + + AVG ( ALL CAST ( NULL AS INTEGER ) )
----
-61
NULL

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

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

query I rowsort
SELECT DISTINCT - ( - 90 ) AS col1
----
90

query I rowsort
SELECT + 14 * + - ( 25 ) AS col2
----
-350

query II rowsort
SELECT ALL 37 AS col2, 28 AS col1
----
37
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2025
SELECT DISTINCT + 12 AS col1, + CASE 95 WHEN COUNT( 71 ) THEN NULL WHEN + - 88 * + ( - + 90 ) + + CASE ( - 79 ) WHEN + - 1 * + + 18 * + + 14 - + 94 + - CAST( NULL AS SIGNED ) + + 20 + 75 THEN NULL ELSE + - 45 + + 67 * + COUNT( * ) * - COUNT( * ) * - 60 + - - MIN( + 93 ) END + + 99 THEN NULL ELSE + 75 END * - - 41 + 34
----
12
3109

skipif mysql # not compatible
query II rowsort label-2025
SELECT DISTINCT + 12 AS col1, + CASE 95 WHEN COUNT ( 71 ) THEN NULL WHEN + - 88 * + ( - + 90 ) + + CASE ( - 79 ) WHEN + - 1 * + + 18 * + + 14 - + 94 + - CAST ( NULL AS INTEGER ) + + 20 + 75 THEN NULL ELSE + - 45 + + 67 * + COUNT ( * ) * - COUNT ( * ) * - 60 + - - MIN ( + 93 ) END + + 99 THEN NULL ELSE + 75 END * - - 41 + 34
----
12
3109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT CAST( 95 AS SIGNED ) - 61
----
34

skipif mysql # not compatible
query I rowsort label-2026
SELECT CAST ( 95 AS INTEGER ) - 61
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT - 80 * - COALESCE ( - + 69, 12 ) * + + CAST( - CASE + - 95 WHEN - COUNT( * ) THEN NULL WHEN + + 13 THEN NULL ELSE - + 76 + - 19 END AS SIGNED ) + - 3 - + 89 AS col2
----
-524492

skipif mysql # not compatible
query I rowsort label-2027
SELECT - 80 * - COALESCE ( - + 69, 12 ) * + + CAST ( - CASE + - 95 WHEN - COUNT ( * ) THEN NULL WHEN + + 13 THEN NULL ELSE - + 76 + - 19 END AS INTEGER ) + - 3 - + 89 AS col2
----
-524492

query I rowsort
SELECT ALL + 27 + + + 52
----
79

query I rowsort
SELECT 94 + + 2
----
96

query I rowsort
SELECT 53 * + - 30 * 54 * + - COALESCE ( + + 57, + 98 ) + 67
----
4894087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT + 16 + + + CAST( + 98 AS SIGNED )
----
114

skipif mysql # not compatible
query I rowsort label-2031
SELECT + 16 + + + CAST ( + 98 AS INTEGER )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT - - 48 * + COUNT( - + 66 ) + 11 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT - - 48 * + COUNT ( - + 66 ) + 11 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT - 25 + + COUNT( DISTINCT - 97 )
----
-24

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - 25 + + COUNT ( DISTINCT - 97 )
----
-24

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

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

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

query I rowsort
SELECT NULLIF ( - 93, - + 80 + + - ( - - 91 ) ) + + - 65 AS col0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT DISTINCT 70 * + 49 + - + MAX( - - 49 )
----
3381

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT 70 * + 49 + - + MAX ( - - 49 )
----
3381

query II rowsort
SELECT 84 * 50, - 95 AS col2
----
4200
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT 36 DIV - 71 * 3 + + 94
----
94

skipif mysql # not compatible
query I rowsort label-2039
SELECT 36 / - 71 * 3 + + 94
----
94

query I rowsort
SELECT 96 * - - 84 AS col1
----
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT MIN( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2041
SELECT MIN ( - 89 )
----
-89

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

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

query I rowsort
SELECT ALL NULLIF ( - + 83, + + 88 ) * - 16 + - 79 col0
----
1249

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL + 46 * COUNT( * ) - - 78
----
124

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + 46 * COUNT ( * ) - - 78
----
124

query I rowsort
SELECT 37 * 33 - - 26 * ( - - 16 )
----
1637

query I rowsort
SELECT 38 * - 11
----
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT MAX( CASE 79 WHEN + 30 * - - 92 THEN NULL ELSE + + 51 + 54 - + - 37 END )
----
142

skipif mysql # not compatible
query I rowsort label-2047
SELECT MAX ( CASE 79 WHEN + 30 * - - 92 THEN NULL ELSE + + 51 + 54 - + - 37 END )
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT DISTINCT 59 * + - COALESCE ( - MIN( + 30 ), - - 94 * - 59 * CASE + CAST( NULL AS SIGNED ) WHEN - 97 THEN - 74 END * - 87 * 42 * 77 + - 28 )
----
1770

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT 59 * + - COALESCE ( - MIN ( + 30 ), - - 94 * - 59 * CASE + CAST ( NULL AS INTEGER ) WHEN - 97 THEN - 74 END * - 87 * 42 * 77 + - 28 )
----
1770

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT DISTINCT NULLIF ( + 2, + 58 ) * + MIN( + 28 ) * COALESCE ( + + 6, - + COALESCE ( - 32, 75, - 30 ) * - 37 - + + 15, - 20 ) AS col0
----
336

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT NULLIF ( + 2, + 58 ) * + MIN ( + 28 ) * COALESCE ( + + 6, - + COALESCE ( - 32, 75, - 30 ) * - 37 - + + 15, - 20 ) AS col0
----
336

query I rowsort
SELECT DISTINCT - - 54 col1
----
54

query I rowsort
SELECT + 98 * ( - + 94 )
----
-9212

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2054
SELECT + CAST( 75 AS SIGNED ) DIV - 4 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2054
SELECT + CAST ( 75 AS INTEGER ) / - 4 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT - 31 + - ( + - MAX( ALL + 26 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT - 31 + - ( + - MAX ( ALL + 26 ) ) AS col0
----
-5

query I rowsort
SELECT ALL + - 59 + + 41 - - 18 + + 34 * 77 + - 23 col2
----
2595

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT DISTINCT 66 + + - 6, 60 - NULLIF ( 11, + ( + + COUNT( + 2 ) ) ) AS col1
----
60
49

skipif mysql # not compatible
query II rowsort label-2058
SELECT DISTINCT 66 + + - 6, 60 - NULLIF ( 11, + ( + + COUNT ( + 2 ) ) ) AS col1
----
60
49

query I rowsort
SELECT DISTINCT 70 + - 12
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL - NULLIF ( - 6, + COUNT( * ) + - 57 )
----
6

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL - NULLIF ( - 6, + COUNT ( * ) + - 57 )
----
6

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2062
SELECT ALL COALESCE ( + 69, + COALESCE ( + COALESCE ( + 41, + 86 * + 93 - + + 6, + - 21 + + COALESCE ( - + COUNT( * ), + ( COUNT( * ) ) ) ), - 15 ) ) AS col2, 82 * 57 AS col2
----
69
4674

skipif mysql # not compatible
query II rowsort label-2062
SELECT ALL COALESCE ( + 69, + COALESCE ( + COALESCE ( + 41, + 86 * + 93 - + + 6, + - 21 + + COALESCE ( - + COUNT ( * ), + ( COUNT ( * ) ) ) ), - 15 ) ) AS col2, 82 * 57 AS col2
----
69
4674

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT - 32 AS col0, ( + ( - 68 ) ) + - 60 + MAX( 46 ) AS col2
----
-32
-82

skipif mysql # not compatible
query II rowsort label-2063
SELECT - 32 AS col0, ( + ( - 68 ) ) + - 60 + MAX ( 46 ) AS col2
----
-32
-82

query I rowsort
SELECT + 44 + - + 25
----
19

query I rowsort
SELECT - 49 * 43 * + + 43
----
-90601

query I rowsort
SELECT ALL + 31 - - - 37 + - - 12 * 41 * 39 AS col0
----
19182

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT DISTINCT - 59 * SUM( DISTINCT - 11 ) * 48 * + + 12
----
373824

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT - 59 * SUM ( DISTINCT - 11 ) * 48 * + + 12
----
373824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2068
SELECT - 90 - COUNT( * ) + + 54 * - + 26 + + - 7 + + 70 DIV - 15 + + 94
----
-1412

skipif mysql # not compatible
query I rowsort label-2068
SELECT - 90 - COUNT ( * ) + + 54 * - + 26 + + - 7 + + 70 / - 15 + + 94
----
-1412

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL - COUNT( * ) - - 93
----
92

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL - COUNT ( * ) - - 93
----
92

query I rowsort
SELECT ALL + COALESCE ( 53, - 2, + - 48 + - 27 ) * + 79
----
4187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT ALL + AVG ( - 71 ) * + MIN( + ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + AVG ( - 71 ) * + MIN ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query II rowsort
SELECT ALL + 93 AS col0, 9
----
93
9

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2074
SELECT - 18 * - + 55 * + + 23 AS col0, - 28 + 12 + + 9 DIV - 30 * - - ( COUNT( - NULLIF ( - - ( + + 32 ), ( - - 74 ) ) ) ) * + COUNT( * ) * - 97 + - COUNT( DISTINCT - 77 ) AS col0
----
22770
-17

skipif mysql # not compatible
query II rowsort label-2074
SELECT - 18 * - + 55 * + + 23 AS col0, - 28 + 12 + + 9 / - 30 * - - ( COUNT ( - NULLIF ( - - ( + + 32 ), ( - - 74 ) ) ) ) * + COUNT ( * ) * - 97 + - COUNT ( DISTINCT - 77 ) AS col0
----
22770
-17

query I rowsort
SELECT ALL + 41 * - 45 AS col2
----
-1845

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

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

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

query II rowsort
SELECT ALL + 83, 33 + + 56 AS col0
----
83
89

query I rowsort
SELECT ( - - 21 )
----
21

query I rowsort
SELECT - 82 * - 19
----
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT + CASE - + 10 WHEN - 28 + - COUNT( * ) THEN - 51 * + 21 - - CAST( + + 89 AS SIGNED ) WHEN - - 37 * - + 21 * - + COUNT( * ) + NULLIF ( + ( + COUNT( * ) ), - 39 * - + 99 * - 19 ) THEN - MIN( - 67 ) END * 96 * + - NULLIF ( - + 51, + 76 * - SUM( - 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT + CASE - + 10 WHEN - 28 + - COUNT ( * ) THEN - 51 * + 21 - - CAST ( + + 89 AS INTEGER ) WHEN - - 37 * - + 21 * - + COUNT ( * ) + NULLIF ( + ( + COUNT ( * ) ), - 39 * - + 99 * - 19 ) THEN - MIN ( - 67 ) END * 96 * + - NULLIF ( - + 51, + 76 * - SUM ( - 85 ) )
----
NULL

query II rowsort
SELECT - 83 * + 17 * - 94 + + + NULLIF ( 60, + ( + - 51 ) ) - - 3 col1, 20 + - 19
----
132697
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT ALL CAST( NULL AS SIGNED ) / + 66 * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL CAST ( NULL AS INTEGER ) / + 66 * 80
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2084
SELECT DISTINCT + 26, - 21 + - 43 + 66 * COALESCE ( + 60, - - ( + 85 ) * - 18 - COUNT( * ) + - 39 * - 90 * 83 * + + COUNT( * ) + + COUNT( * ) ) * 40 * 9 AS col2
----
26
1425536

skipif mysql # not compatible
query II rowsort label-2084
SELECT DISTINCT + 26, - 21 + - 43 + 66 * COALESCE ( + 60, - - ( + 85 ) * - 18 - COUNT ( * ) + - 39 * - 90 * 83 * + + COUNT ( * ) + + COUNT ( * ) ) * 40 * 9 AS col2
----
26
1425536

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2086
SELECT ALL + + 95 DIV - + CASE + 51 WHEN - - CAST( + 51 AS SIGNED ) THEN + MAX( ALL + 20 ) + - - 8 + ( + ( + + 39 ) ) WHEN + - 3 THEN - 50 - - 28 ELSE NULL END * + + COUNT( * ) + CASE - 19 WHEN - + 84 * - 47 THEN - + 28 ELSE - 29 END - 76 + 51 + - + COUNT( DISTINCT 34 )
----
-56

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL + + 95 / - + CASE + 51 WHEN - - CAST ( + 51 AS INTEGER ) THEN + MAX ( ALL + 20 ) + - - 8 + ( + ( + + 39 ) ) WHEN + - 3 THEN - 50 - - 28 ELSE NULL END * + + COUNT ( * ) + CASE - 19 WHEN - + 84 * - 47 THEN - + 28 ELSE - 29 END - 76 + 51 + - + COUNT ( DISTINCT 34 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT + 82 DIV 8 DIV - 75 + + + 24
----
24

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 82 / 8 / - 75 + + + 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL COALESCE ( NULLIF ( - - 5, + 59 * - 70 ), + 81 ) * 45 - - - CASE + + 42 WHEN + 51 THEN 61 WHEN + + 21 THEN + + MIN( DISTINCT 9 ) + + CASE ( - - 15 ) WHEN + 39 THEN + - COALESCE ( - SUM( ALL + 0 ), + - 58 + - 75 ) + + ( + - 0 ) + + COUNT( * ) + 76 WHEN - 73 THEN NULL END / - 98 ELSE NULL END + ( - COUNT( * ) ) + + 34 * + - COUNT( * ) / 85 + - ( - SUM( ALL + 6 ) + + COUNT( * ) ) * - ( NULLIF ( + 65, COUNT( * ) ) - + ( + 71 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL COALESCE ( NULLIF ( - - 5, + 59 * - 70 ), + 81 ) * 45 - - - CASE + + 42 WHEN + 51 THEN 61 WHEN + + 21 THEN + + MIN ( DISTINCT 9 ) + + CASE ( - - 15 ) WHEN + 39 THEN + - COALESCE ( - SUM ( ALL + 0 ), + - 58 + - 75 ) + + ( + - 0 ) + + COUNT ( * ) + 76 WHEN - 73 THEN NULL END / - 98 ELSE NULL END + ( - COUNT ( * ) ) + + 34 * + - COUNT ( * ) / 85 + - ( - SUM ( ALL + 6 ) + + COUNT ( * ) ) * - ( NULLIF ( + 65, COUNT ( * ) ) - + ( + 71 ) ) AS col1
----
NULL

query II rowsort
SELECT - 71, 78 AS col0
----
-71
78

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

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

query I rowsort
SELECT - 74 * + 59 + 98 + - - 33 - - 53
----
-4182

query I rowsort
SELECT - 40 * - - 30 AS col2
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT 71 * - 35 + 94 + + + 83 + + COUNT( * ) AS col1
----
-2307

skipif mysql # not compatible
query I rowsort label-2093
SELECT 71 * - 35 + 94 + + + 83 + + COUNT ( * ) AS col1
----
-2307

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

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

query I rowsort
SELECT + - 33 + - 11 + - 87
----
-131

onlyif mysql # aggregate syntax: 
query II rowsort label-2096
SELECT - - COUNT( * ) AS col0, + 19 + - 58 - + 82 AS col0
----
1
-121

skipif mysql # not compatible
query II rowsort label-2096
SELECT - - COUNT ( * ) AS col0, + 19 + - 58 - + 82 AS col0
----
1
-121

query II rowsort
SELECT + 98 + - 87 + 58 AS col1, - 40 AS col1
----
69
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2098
SELECT - CAST( NULL AS SIGNED ) AS col2, - 57 AS col1
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-2098
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 57 AS col1
----
NULL
-57

query I rowsort
SELECT DISTINCT ( - 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL + MAX( ALL + 11 ) + + + COUNT( - 98 ) + + 38
----
50

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL + MAX ( ALL + 11 ) + + + COUNT ( - 98 ) + + 38
----
50

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

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

query II rowsort
SELECT - 51, - 80 AS col2
----
-51
-80

query I rowsort
SELECT + + 64 + + 37 * - 92
----
-3340

query II rowsort
SELECT - ( 89 ), - 14 + + - 35 AS col2
----
-89
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2105
SELECT - 26 + 24 + - CAST( + 43 AS SIGNED ) col0, 50 AS col1
----
-45
50

skipif mysql # not compatible
query II rowsort label-2105
SELECT - 26 + 24 + - CAST ( + 43 AS INTEGER ) col0, 50 AS col1
----
-45
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL 32 - - 9 / - COUNT( * ) / + CASE 69 WHEN + 19 THEN NULL WHEN - ( + 36 ) THEN + + 22 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL 32 - - 9 / - COUNT ( * ) / + CASE 69 WHEN + 19 THEN NULL WHEN - ( + 36 ) THEN + + 22 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 2 + - ( + + 42 ) * - 10 AS col2
----
418

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2109
SELECT ALL 96 - + 12 AS col0, COUNT( * )
----
84
1

skipif mysql # not compatible
query II rowsort label-2109
SELECT ALL 96 - + 12 AS col0, COUNT ( * )
----
84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL MIN( DISTINCT + 34 ) * 89
----
3026

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL MIN ( DISTINCT + 34 ) * 89
----
3026

query I rowsort
SELECT + 66 + - - 70
----
136

query I rowsort
SELECT - 60 + + + 27
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT - 19 DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT - 19 / 89 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2114
SELECT + 30 * + + COALESCE ( + - 79, 70 + 52 * + 7 ) DIV COUNT( * ) * - - COUNT( * )
----
-2370

skipif mysql # not compatible
query I rowsort label-2114
SELECT + 30 * + + COALESCE ( + - 79, 70 + 52 * + 7 ) / COUNT ( * ) * - - COUNT ( * )
----
-2370

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT - 80 * + + 76 + ( COUNT( * ) ), + 91 * 70 AS col1
----
-6079
6370

skipif mysql # not compatible
query II rowsort label-2115
SELECT - 80 * + + 76 + ( COUNT ( * ) ), + 91 * 70 AS col1
----
-6079
6370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2116
SELECT ALL 4 DIV - COUNT( * ) + + 93 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL 4 / - COUNT ( * ) + + 93 AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 31 * - 15 * + + ( + - 37 ) * + 2 * 80 + + + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 31 * - 15 * + + ( + - 37 ) * + 2 * 80 + + + 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2118
SELECT DISTINCT + + 92 * + 99 col2, + COUNT( * ) DIV 33 DIV - - 65 + + 4 + + 11 col2
----
9108
15

skipif mysql # not compatible
query II rowsort label-2118
SELECT DISTINCT + + 92 * + 99 col2, + COUNT ( * ) / 33 / - - 65 + + 4 + + 11 col2
----
9108
15

query I rowsort
SELECT DISTINCT - + 30 + + + 17 - 19 * 22 + - 59 * - 9
----
100

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

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL - - 80 + + - COUNT ( * ) AS col1
----
79

query I rowsort
SELECT 38 * 91 + - 70 - - ( - 27 ) - 46 + + 46 + + + 28 AS col0
----
3389

query I rowsort
SELECT 82 * 28
----
2296

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2125
SELECT DISTINCT - COUNT( * ) DIV - MAX( ALL + + 54 )
----
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT - COUNT ( * ) / - MAX ( ALL + + 54 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT ALL - SUM( DISTINCT 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL - SUM ( DISTINCT 88 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL - + 0 - - 65 + - ( 95 ) * + ( + 16 ) / + - COUNT( ALL + + COALESCE ( - ( + 55 ), + 31 ) ) + + + CASE + - 15 WHEN - - 97 THEN MAX( - + 22 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL - + 0 - - 65 + - ( 95 ) * + ( + 16 ) / + - COUNT ( ALL + + COALESCE ( - ( + 55 ), + 31 ) ) + + + CASE + - 15 WHEN - - 97 THEN MAX ( - + 22 ) END AS col0
----
NULL

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

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

query I rowsort
SELECT 87 + 95
----
182

query I rowsort
SELECT 30 - + 78 + - 6 * + 38 AS col0
----
-276

query II rowsort
SELECT ( + + 61 ) - - 11 + + 48, + 0 AS col0
----
120
0

query II rowsort
SELECT ALL 86 AS col0, 86 AS col0
----
86
86

query II rowsort
SELECT ALL 95 AS col1, - 16
----
95
-16

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

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

query I rowsort
SELECT 47 * - 80
----
-3760

query I rowsort
SELECT DISTINCT 36 * + - 91
----
-3276

query I rowsort
SELECT NULLIF ( + - 32, 79 + - 0 + 57 + + 71 + ( NULLIF ( - 66, - + 98 ) ) - - 77 * + 53 ) - 85 + + 47
----
-70

query I rowsort
SELECT ALL 71 + 50 + + 6
----
127

query I rowsort
SELECT 37 + 82
----
119

query II rowsort
SELECT ALL 71 AS col0, - 52 * - + ( + ( 52 ) ) AS col1
----
71
2704

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL + 6 + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL + 6 + + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2142
SELECT ALL - 52 DIV ( COUNT( ALL + 54 ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL - 52 / ( COUNT ( ALL + 54 ) ) AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT 56 DIV - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2143
SELECT 56 / - 63 AS col1
----
0

query I rowsort
SELECT ALL 35 + - 36 * 12
----
-397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2145
SELECT DISTINCT ( + - 96 ) + + + CASE - - 98 WHEN 46 - - 69 + + ( + 52 ) + + 40 THEN NULL WHEN - + 5 * + 19 + + + 3 THEN NULL ELSE + - CAST( + 77 AS SIGNED ) END AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT ( + - 96 ) + + + CASE - - 98 WHEN 46 - - 69 + + ( + 52 ) + + 40 THEN NULL WHEN - + 5 * + 19 + + + 3 THEN NULL ELSE + - CAST ( + 77 AS INTEGER ) END AS col1
----
-173

query I rowsort
SELECT + 8 + - 57
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2147
SELECT + COUNT( * ) DIV - COUNT( * ) + - - 24 * + 83 - - - COUNT( * ) * + 11 AS col2
----
1980

skipif mysql # not compatible
query I rowsort label-2147
SELECT + COUNT ( * ) / - COUNT ( * ) + - - 24 * + 83 - - - COUNT ( * ) * + 11 AS col2
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT - 44 * - - COUNT( * ) + - 80 + - ( ( 72 ) ) + 28 AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-2148
SELECT - 44 * - - COUNT ( * ) + - 80 + - ( ( 72 ) ) + 28 AS col0
----
-168

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2149
SELECT + - NULLIF ( + 60, 0 ) * - CAST( NULL AS DECIMAL ) * + COUNT( * ) * 68 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT + - NULLIF ( + 60, 0 ) * - CAST ( NULL AS REAL ) * + COUNT ( * ) * 68 + COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT + 44 DIV + 60 + 84 + + 60 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-2151
SELECT + 44 / + 60 + 84 + + 60 AS col0
----
144

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( + 98, + 29 + 34 )
----
-98

query I rowsort
SELECT ALL - + 39 * + + 43
----
-1677

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2155
SELECT + 27 * - 30 + 24 + - 55 * 97 + + 45 - - 92 * + 6 - 1 + 23 AS col1, CAST( NULL AS SIGNED ) AS col2
----
-5502
NULL

skipif mysql # not compatible
query II rowsort label-2155
SELECT + 27 * - 30 + 24 + - 55 * 97 + + 45 - - 92 * + 6 - 1 + 23 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
-5502
NULL

query I rowsort
SELECT 86 * + 75 AS col0
----
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT 45 + - 19 + - MAX( ALL + - 23 ) * - - 88 + - - ( + 33 ) AS col0
----
2083

skipif mysql # not compatible
query I rowsort label-2157
SELECT 45 + - 19 + - MAX ( ALL + - 23 ) * - - 88 + - - ( + 33 ) AS col0
----
2083

query I rowsort
SELECT DISTINCT - ( + COALESCE ( 51, 86 ) )
----
-51

query II rowsort
SELECT ALL 29, + 20 * - 89 col1
----
29
-1780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT 3 + 69 - - + ( 20 ) * - 41 * + SUM( 18 ) * 7 + - + CAST( NULL AS SIGNED ) + - 60 * + 51 * - + 70 * + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT 3 + 69 - - + ( 20 ) * - 41 * + SUM ( 18 ) * 7 + - + CAST ( NULL AS INTEGER ) + - 60 * + 51 * - + 70 * + + 37 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT 2 DIV - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT 2 / - 35 AS col0
----
0

query I rowsort
SELECT - 79 * + 70 + + 47 AS col1
----
-5483

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2164
SELECT 22 DIV 4
----
5

skipif mysql # not compatible
query I rowsort label-2164
SELECT 22 / 4
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT ALL - 9 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - 9 / + 31
----
0

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT 12 DIV + 31 * - 38 * 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2169
SELECT 12 / + 31 * - 38 * 53 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2170
SELECT DISTINCT 56 AS col2, COALESCE ( + 39, + 2 * - 77 DIV 89, + 18 ) * COUNT( * )
----
56
39

skipif mysql # not compatible
query II rowsort label-2170
SELECT DISTINCT 56 AS col2, COALESCE ( + 39, + 2 * - 77 / 89, + 18 ) * COUNT ( * )
----
56
39

query I rowsort
SELECT ALL 95 + + ( 50 )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT 28 + + - 90 + - 1 + COUNT( DISTINCT - 91 ) + + 69 + + + 22 * 81
----
1789

skipif mysql # not compatible
query I rowsort label-2172
SELECT 28 + + - 90 + - 1 + COUNT ( DISTINCT - 91 ) + + 69 + + + 22 * 81
----
1789

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL SUM( DISTINCT - - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL SUM ( DISTINCT - - 5 )
----
5

query I rowsort
SELECT + 77 + + COALESCE ( - 43, + 53 * - 87 )
----
34

query I rowsort
SELECT DISTINCT + 65 + + 60 + - - 46 AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL - COALESCE ( COUNT( * ), + - COUNT( * ) ) + 83 * - + COUNT( * ) * CASE + 89 WHEN - 62 THEN + - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - COALESCE ( COUNT ( * ), + - COUNT ( * ) ) + 83 * - + COUNT ( * ) * CASE + 89 WHEN - 62 THEN + - 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT 82 + 54 + + SUM( + 87 )
----
223

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT 82 + 54 + + SUM ( + 87 )
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT DISTINCT 94 + CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT 94 + CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT DISTINCT 75 AS col1, - COALESCE ( - 65, - + 35 + - 91 - + 10 + + + 51 - 68 + - - COUNT( * ) * ( 6 ) * + 62 + + COUNT( * ) + ( - - 93 ) )
----
75
65

skipif mysql # not compatible
query II rowsort label-2179
SELECT DISTINCT 75 AS col1, - COALESCE ( - 65, - + 35 + - 91 - + 10 + + + 51 - 68 + - - COUNT ( * ) * ( 6 ) * + 62 + + COUNT ( * ) + ( - - 93 ) )
----
75
65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT ALL 32 DIV + - 62 col2
----
0

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL 32 / + - 62 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT + CAST( + + 61 AS SIGNED ) * - 56 + - COUNT( * ) AS col2
----
-3417

skipif mysql # not compatible
query I rowsort label-2182
SELECT + CAST ( + + 61 AS INTEGER ) * - 56 + - COUNT ( * ) AS col2
----
-3417

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL 0 * - 28 - - + 54 * MIN( DISTINCT + - 11 )
----
-594

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL 0 * - 28 - - + 54 * MIN ( DISTINCT + - 11 )
----
-594

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

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

query I rowsort
SELECT ALL - 95 * 36 + 67 - 25
----
-3378

query II rowsort
SELECT ALL + - 48 AS col2, - 40
----
-48
-40

query I rowsort
SELECT + 25 * + 13 + + 71 AS col2
----
396

query II rowsort
SELECT 26, 75 AS col0
----
26
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT ALL 61 DIV - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL 61 / - 93 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT + + 82 * + 61 + - 27 + + CAST( + + 67 AS SIGNED ) + 64 AS col0
----
5106

skipif mysql # not compatible
query I rowsort label-2190
SELECT + + 82 * + 61 + - 27 + + CAST ( + + 67 AS INTEGER ) + 64 AS col0
----
5106

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

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL + COUNT ( DISTINCT - COALESCE ( + + 54, 92, + 67 ) )
----
1

query II rowsort
SELECT ALL + + 88, + 9 col0
----
88
9

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

query II rowsort
SELECT DISTINCT + - 32 AS col0, + 60
----
-32
60

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

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

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

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

query I rowsort
SELECT ALL + 26 * - 58 + - 51 AS col1
----
-1559

onlyif mysql # aggregate syntax: 
query II rowsort label-2198
SELECT + COUNT( * ) + 46 AS col1, - 40
----
47
-40

skipif mysql # not compatible
query II rowsort label-2198
SELECT + COUNT ( * ) + 46 AS col1, - 40
----
47
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT ALL - 14 * 78 DIV - 12
----
91

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - 14 * 78 / - 12
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT + 31 * - 79 * - MIN( ALL - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT + 31 * - 79 * - MIN ( ALL - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT - 37 * - 93 col2, 44 * - - MIN( + - CASE + + 39 WHEN + 90 THEN NULL ELSE - 37 END ) AS col0
----
3441
1628

skipif mysql # not compatible
query II rowsort label-2201
SELECT - 37 * - 93 col2, 44 * - - MIN ( + - CASE + + 39 WHEN + 90 THEN NULL ELSE - 37 END ) AS col0
----
3441
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT - COUNT( + COALESCE ( - + 59, 9 * + 49 ) ) - + 1 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2202
SELECT - COUNT ( + COALESCE ( - + 59, 9 * + 49 ) ) - + 1 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT - 72 - - + MAX( - 52 ) col2
----
-124

skipif mysql # not compatible
query I rowsort label-2203
SELECT - 72 - - + MAX ( - 52 ) col2
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2204
SELECT - 1 * 5, CAST( + - 83 AS SIGNED ) AS col0
----
-5
-83

skipif mysql # not compatible
query II rowsort label-2204
SELECT - 1 * 5, CAST ( + - 83 AS INTEGER ) AS col0
----
-5
-83

query I rowsort
SELECT DISTINCT + 5 + + 25 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT + 97 + 46 + + 84 + - COUNT( 23 )
----
226

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT + 97 + 46 + + 84 + - COUNT ( 23 )
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - 36 + + MAX( ALL + 83 )
----
47

skipif mysql # not compatible
query I rowsort label-2207
SELECT - 36 + + MAX ( ALL + 83 )
----
47

query I rowsort
SELECT ALL - 24 + - COALESCE ( - + 43, 56 ) * + 40
----
1696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2209
SELECT DISTINCT 82 * 53 AS col0, + COUNT( * ) * - 24 DIV + 96 * - 83
----
4346
0

skipif mysql # not compatible
query II rowsort label-2209
SELECT DISTINCT 82 * 53 AS col0, + COUNT ( * ) * - 24 / + 96 * - 83
----
4346
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2210
SELECT - 17 + + CAST( NULL AS SIGNED ) - - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT - 17 + + CAST ( NULL AS INTEGER ) - - + 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2211
SELECT + COALESCE ( - 24, - + ( - 69 ) * + + 34 ) DIV - CASE + 33 WHEN + 84 THEN + 68 WHEN 74 THEN - + MAX( DISTINCT - 24 ) WHEN + 37 * COUNT( * ) + - 2 + 23 * - 54 * + + 64 * - AVG ( + 23 ) * + ( + 95 ) THEN - CAST( + 68 AS SIGNED ) ELSE - - 30 * - ( 0 ) * 12 - 44 END
----
0

skipif mysql # not compatible
query I rowsort label-2211
SELECT + COALESCE ( - 24, - + ( - 69 ) * + + 34 ) / - CASE + 33 WHEN + 84 THEN + 68 WHEN 74 THEN - + MAX ( DISTINCT - 24 ) WHEN + 37 * COUNT ( * ) + - 2 + 23 * - 54 * + + 64 * - AVG ( + 23 ) * + ( + 95 ) THEN - CAST ( + 68 AS INTEGER ) ELSE - - 30 * - ( 0 ) * 12 - 44 END
----
0

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

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

query I rowsort
SELECT - - 63 + + 91 AS col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT ALL + + COUNT( DISTINCT ( - + CAST( - 94 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + + COUNT ( DISTINCT ( - + CAST ( - 94 AS INTEGER ) ) )
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT COUNT( * ) * + 85 + MAX( ALL + 11 )
----
96

skipif mysql # not compatible
query I rowsort label-2216
SELECT COUNT ( * ) * + 85 + MAX ( ALL + 11 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL 93 * COUNT( * ) * - 88 + - 72
----
-8256

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL 93 * COUNT ( * ) * - 88 + - 72
----
-8256

query I rowsort
SELECT + + ( + 48 ) * - 58 - - 55
----
-2729

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

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

query I rowsort
SELECT - 20 * + - NULLIF ( - + 59, - + 98 ) col2
----
-1180

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT + + 36 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-2221
SELECT + + 36 / + + 86
----
0

query I rowsort
SELECT + + 31 * - 59 * - + 23 * ( 26 ) AS col2
----
1093742

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT 62 * + - 69 + + 86 + - + COUNT( * )
----
-4193

skipif mysql # not compatible
query I rowsort label-2223
SELECT 62 * + - 69 + + 86 + - + COUNT ( * )
----
-4193

query I rowsort
SELECT DISTINCT + 98 * - 94 AS col1
----
-9212

query I rowsort
SELECT ALL 39 * 55 AS col2
----
2145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT + 82 * 53 * + - COUNT( * ) * - COUNT( * ) + + CASE + - 34 WHEN - 79 THEN NULL ELSE 66 END col1
----
4412

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + 82 * 53 * + - COUNT ( * ) * - COUNT ( * ) + + CASE + - 34 WHEN - 79 THEN NULL ELSE 66 END col1
----
4412

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

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

query I rowsort
SELECT - 70 * + 82 + 95 AS col2
----
-5645

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT CASE 70 WHEN + + 97 THEN - COUNT( * ) WHEN + - 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT CASE 70 WHEN + + 97 THEN - COUNT ( * ) WHEN + - 50 THEN NULL END
----
NULL

query I rowsort
SELECT - 13 * 49 AS col0
----
-637

query I rowsort
SELECT CASE + + 11 WHEN ( + 59 ) THEN CASE - 2 WHEN 94 * + 3 THEN - AVG ( DISTINCT 12 ) END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT COALESCE ( + 6, - + CAST( NULL AS SIGNED ) - - - 22 )
----
6

skipif mysql # not compatible
query I rowsort label-2233
SELECT COALESCE ( + 6, - + CAST ( NULL AS INTEGER ) - - - 22 )
----
6

query II rowsort
SELECT ALL 48 AS col0, - 75 * - + 49
----
48
3675

query I rowsort
SELECT ALL 59 + - + 49 + - - 12 + - ( 95 )
----
-73

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

query I rowsort
SELECT 63 + + + 48
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT DISTINCT ( + - CAST( + MIN( DISTINCT - 10 ) AS SIGNED ) ) * + 77
----
770

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT ( + - CAST ( + MIN ( DISTINCT - 10 ) AS INTEGER ) ) * + 77
----
770

query I rowsort
SELECT 76 * + - 32
----
-2432

query I rowsort
SELECT 82 + + - 53 AS col2
----
29

query I rowsort
SELECT ALL + 48 - - 44
----
92

query I rowsort
SELECT 53 * - 79 AS col0
----
-4187

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

skipif mysql # not compatible
query I rowsort label-2243
SELECT 91 + - - COUNT ( * ) AS col2
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL - COUNT( ALL - 20 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL - COUNT ( ALL - 20 ) col0
----
-1

query II rowsort
SELECT - 24 AS col1, - 3 AS col2
----
-24
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2247
SELECT DISTINCT + - CASE - 24 WHEN - - 9 THEN NULL WHEN + CAST( NULL AS SIGNED ) * + NULLIF ( - + 61, - - CAST( NULL AS SIGNED ) * + COUNT( * ) + - - 14 - + 14 * + 42 / ( COALESCE ( - COUNT( * ), 64 - + - 65 - - 6 + NULLIF ( + ( MIN( DISTINCT 17 ) ), + ( + 30 ) * 27 * 24 * - 24 + - 84 ) + CAST( NULL AS SIGNED ) * + - 65 * 75 * - CAST( - + 98 AS SIGNED ) * - 27 * - CAST( - 16 AS SIGNED ), + - 99 * - - AVG ( ALL 39 ) ) ) + + 31 ) / 10 THEN + 23 * 9 WHEN 34 THEN NULL END - - NULLIF ( 10, + COUNT( * ) + 6 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + - CASE - 24 WHEN - - 9 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + NULLIF ( - + 61, - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - - 14 - + 14 * + 42 / ( COALESCE ( - COUNT ( * ), 64 - + - 65 - - 6 + NULLIF ( + ( MIN ( DISTINCT 17 ) ), + ( + 30 ) * 27 * 24 * - 24 + - 84 ) + CAST ( NULL AS INTEGER ) * + - 65 * 75 * - CAST ( - + 98 AS INTEGER ) * - 27 * - CAST ( - 16 AS INTEGER ), + - 99 * - - AVG ( ALL 39 ) ) ) + + 31 ) / 10 THEN + 23 * 9 WHEN 34 THEN NULL END - - NULLIF ( 10, + COUNT ( * ) + 6 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT - COUNT( * ) AS col0, COUNT( + + ( - 32 ) ) * - 60 + + + 4 AS col1
----
-1
-56

skipif mysql # not compatible
query II rowsort label-2248
SELECT - COUNT ( * ) AS col0, COUNT ( + + ( - 32 ) ) * - 60 + + + 4 AS col1
----
-1
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2249
SELECT ALL + 21 * - CASE - - 4 WHEN + COALESCE ( + + 56, - ( + + CAST( NULL AS DECIMAL ) ) ) THEN - 29 * + 10 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + 21 * - CASE - - 4 WHEN + COALESCE ( + + 56, - ( + + CAST ( NULL AS REAL ) ) ) THEN - 29 * + 10 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 91 * 79
----
-7189

query I rowsort
SELECT 92 * - 49 AS col0
----
-4508

query I rowsort
SELECT + 4 * + + 95 AS col2
----
380

query I rowsort
SELECT + 17 * 95 AS col2
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT MIN( DISTINCT - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-2254
SELECT MIN ( DISTINCT - 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2255
SELECT DISTINCT - + CASE - 75 WHEN - CASE WHEN NOT NULL < SUM( + 74 ) THEN + 80 * - NULLIF ( - 69, + ( + 96 ) / 40 + - 90 ) + + CASE - + ( + CASE + - AVG ( + 9 ) WHEN - + COUNT( * ) + - + 18 * - 62 + + 85 THEN NULL WHEN CAST( + 37 AS SIGNED ) + 34 THEN + 44 * 47 ELSE NULL END ) WHEN + COALESCE ( MIN( DISTINCT - - 45 ), - 94 ) THEN + 44 END * 12 / + 37 + + ( - MIN( + CAST( 63 AS DECIMAL ) ) ) + 72 ELSE NULL END THEN + 84 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT - + CASE - 75 WHEN - CASE WHEN NOT NULL < SUM ( + 74 ) THEN + 80 * - NULLIF ( - 69, + ( + 96 ) / 40 + - 90 ) + + CASE - + ( + CASE + - AVG ( + 9 ) WHEN - + COUNT ( * ) + - + 18 * - 62 + + 85 THEN NULL WHEN CAST ( + 37 AS INTEGER ) + 34 THEN + 44 * 47 ELSE NULL END ) WHEN + COALESCE ( MIN ( DISTINCT - - 45 ), - 94 ) THEN + 44 END * 12 / + 37 + + ( - MIN ( + CAST ( 63 AS REAL ) ) ) + 72 ELSE NULL END THEN + 84 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL 84 + + + SUM( 37 ) * - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 84 + + + SUM ( 37 ) * - COUNT ( * )
----
47

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

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + - 61 + COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT ALL + 19 + - - 77
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2259
SELECT - 65 * - - SUM( + 51 ) * + 19 + 53 DIV - 75
----
-62985

skipif mysql # not compatible
query I rowsort label-2259
SELECT - 65 * - - SUM ( + 51 ) * + 19 + 53 / - 75
----
-62985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2260
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2, - 79 * + - 4 * + 14 * + 16 * + + COUNT( * ) * + COUNT( * )
----
NULL
70784

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2, - 79 * + - 4 * + 14 * + 16 * + + COUNT ( * ) * + COUNT ( * )
----
NULL
70784

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2261
SELECT ALL CASE WHEN NOT 69 IN ( 64, CAST( NULL AS DECIMAL ), - 50, - - 88, + COALESCE ( - ( + COUNT( * ) ), - - 96, - 78 ) * + 41, + ( 36 ), 19 + + + 72, COUNT( * ) + + ( - - 77 ), - 35 + - MAX( + 32 ), + + NULLIF ( + - 84, - 96 ) / + MIN( - 3 ), + - COUNT( ALL - 88 ) * + 14 ) THEN COUNT( DISTINCT - - 94 ) + + + 31 END + ( - - 97 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL CASE WHEN NOT 69 IN ( 64, CAST ( NULL AS REAL ), - 50, - - 88, + COALESCE ( - ( + COUNT ( * ) ), - - 96, - 78 ) * + 41, + ( 36 ), 19 + + + 72, COUNT ( * ) + + ( - - 77 ), - 35 + - MAX ( + 32 ), + + NULLIF ( + - 84, - 96 ) / + MIN ( - 3 ), + - COUNT ( ALL - 88 ) * + 14 ) THEN COUNT ( DISTINCT - - 94 ) + + + 31 END + ( - - 97 ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 23, 51, + 14 ) * + 33 AS col1
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ( + 95 ) + + 78 * - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-2263
SELECT ( + 95 ) + + 78 * - COUNT ( * )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT COALESCE ( - COUNT( * ), + 78 ) - 38 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2265
SELECT COALESCE ( - COUNT ( * ), + 78 ) - 38 AS col0
----
-39

query I rowsort
SELECT ALL 72 * - + 33
----
-2376

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT ALL - CASE - 0 WHEN ( + 89 ) * 50 THEN NULL WHEN - 4 THEN + + ( - CAST( NULL AS SIGNED ) ) / - - AVG ( - + 4 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - CASE - 0 WHEN ( + 89 ) * 50 THEN NULL WHEN - 4 THEN + + ( - CAST ( NULL AS INTEGER ) ) / - - AVG ( - + 4 ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 30 - - 1 + + + 28 + + + 52 AS col2, - 0
----
111
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT 47 * + - COUNT( + + 21 ) * + + 63 * ( 78 ) + 96 AS col0
----
-230862

skipif mysql # not compatible
query I rowsort label-2270
SELECT 47 * + - COUNT ( + + 21 ) * + + 63 * ( 78 ) + 96 AS col0
----
-230862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2271
SELECT DISTINCT 23 DIV - CAST( SUM( DISTINCT + 70 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT 23 / - CAST ( SUM ( DISTINCT + 70 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT - CASE + 39 WHEN + 70 * - SUM( DISTINCT + 91 ) / - - 22 * + - 46 * - + 92 + + 53 THEN NULL ELSE 25 * + 92 END col0
----
-2300

skipif mysql # not compatible
query I rowsort label-2272
SELECT - CASE + 39 WHEN + 70 * - SUM ( DISTINCT + 91 ) / - - 22 * + - 46 * - + 92 + + 53 THEN NULL ELSE 25 * + 92 END col0
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL + 36 * + - NULLIF ( - - 33, + - 30 ) - + COUNT( * ) AS col1
----
-1189

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + 36 * + - NULLIF ( - - 33, + - 30 ) - + COUNT ( * ) AS col1
----
-1189

query I rowsort
SELECT DISTINCT 87 * 3 + ( + + 12 )
----
273

query I rowsort
SELECT ALL ( 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT + COUNT( * ) * - - 79 * + 43 * - 91 * + 22
----
-6800794

skipif mysql # not compatible
query I rowsort label-2276
SELECT + COUNT ( * ) * - - 79 * + 43 * - 91 * + 22
----
-6800794

query II rowsort
SELECT ALL + 92 * 31 AS col2, 14 * - 78 * - 60 * - 62 AS col2
----
2852
-4062240

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2279
SELECT ALL + 75 * - + CASE + CAST( NULL AS SIGNED ) WHEN + 79 * + + 99 / SUM( + 34 ) + + + 54 THEN NULL WHEN - 3 + - - COUNT( * ) THEN + + 24 + 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + 75 * - + CASE + CAST ( NULL AS INTEGER ) WHEN + 79 * + + 99 / SUM ( + 34 ) + + + 54 THEN NULL WHEN - 3 + - - COUNT ( * ) THEN + + 24 + 41 END AS col2
----
NULL

query I rowsort
SELECT 76 + - 99 + + - 31
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT COUNT( * ) + - + COUNT( * ) DIV + - 20 col0
----
1

skipif mysql # not compatible
query I rowsort label-2281
SELECT COUNT ( * ) + - + COUNT ( * ) / + - 20 col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2282
SELECT - 2 DIV 53, COUNT( * ) * - 39 AS col1
----
0
-39

skipif mysql # not compatible
query II rowsort label-2282
SELECT - 2 / 53, COUNT ( * ) * - 39 AS col1
----
0
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2283
SELECT 66 * - + SUM( DISTINCT 44 ) * - 7, 12 AS col1
----
20328
12

skipif mysql # not compatible
query II rowsort label-2283
SELECT 66 * - + SUM ( DISTINCT 44 ) * - 7, 12 AS col1
----
20328
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL + COUNT( * ) + NULLIF ( + COUNT( * ), + + 11 + 43 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL + COUNT ( * ) + NULLIF ( + COUNT ( * ), + + 11 + 43 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2285
SELECT ALL - + 35 * - CASE ( - - NULLIF ( - CASE CAST( ( + COUNT( * ) ) AS SIGNED ) WHEN + + 79 THEN + ( - 6 ) * 46 + - CAST( 92 AS DECIMAL ) * 80 + - 88 + + + COUNT( ALL 21 ) WHEN + 7 * + ( - - 65 ) + - 15 + + - 74 * 18 THEN NULL END, + + 97 / + - 87 / + 10 ) ) WHEN + COUNT( ALL - - 77 ) + + + 68 THEN + - 26 + + 54 + + 90 / - + 7 + - ( + + CAST( 76 AS SIGNED ) ) + + + 21 + - 45 * - 59 WHEN 14 + - 31 THEN + CASE + 76 WHEN - 96 THEN + 33 + + 17 END WHEN + COUNT( * ) * + COALESCE ( - 93, 74 ) THEN NULL ELSE NULL END / 23 + MAX( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL - + 35 * - CASE ( - - NULLIF ( - CASE CAST ( ( + COUNT ( * ) ) AS INTEGER ) WHEN + + 79 THEN + ( - 6 ) * 46 + - CAST ( 92 AS REAL ) * 80 + - 88 + + + COUNT ( ALL 21 ) WHEN + 7 * + ( - - 65 ) + - 15 + + - 74 * 18 THEN NULL END, + + 97 / + - 87 / + 10 ) ) WHEN + COUNT ( ALL - - 77 ) + + + 68 THEN + - 26 + + 54 + + 90 / - + 7 + - ( + + CAST ( 76 AS INTEGER ) ) + + + 21 + - 45 * - 59 WHEN 14 + - 31 THEN + CASE + 76 WHEN - 96 THEN + 33 + + 17 END WHEN + COUNT ( * ) * + COALESCE ( - 93, 74 ) THEN NULL ELSE NULL END / 23 + MAX ( 92 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT ALL - - 96 DIV - 45
----
-2

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - - 96 / - 45
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT - COALESCE ( + 21, - 68 * - CAST( NULL AS SIGNED ), + 64, + 2 ) * + - 55 + - + 30
----
1125

skipif mysql # not compatible
query I rowsort label-2287
SELECT - COALESCE ( + 21, - 68 * - CAST ( NULL AS INTEGER ), + 64, + 2 ) * + - 55 + - + 30
----
1125

onlyif mysql # DIV for integer division: 
query I rowsort label-2288
SELECT ( 40 ) DIV - 59 + + 2 + + + 12
----
14

skipif mysql # not compatible
query I rowsort label-2288
SELECT ( 40 ) / - 59 + + 2 + + + 12
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT + 30 / - COUNT( * ) + - + 52 * 56 / CASE + - 47 WHEN 25 THEN + 81 / - 49 WHEN - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT + 30 / - COUNT ( * ) + - + 52 * 56 / CASE + - 47 WHEN 25 THEN + 81 / - 49 WHEN - COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2290
SELECT ALL - - NULLIF ( + - CASE CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) WHEN - ( 43 ) THEN NULL WHEN - - COUNT( * ) / 2 - ( - - 48 ) THEN 90 + 82 + - - 2 + + 66 - - 14 WHEN 97 * 6 THEN 27 + ( SUM( 34 ) ) WHEN + 65 * - 87 THEN NULL END, - 94 + - 0 ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL - - NULLIF ( + - CASE CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) WHEN - ( 43 ) THEN NULL WHEN - - COUNT ( * ) / 2 - ( - - 48 ) THEN 90 + 82 + - - 2 + + 66 - - 14 WHEN 97 * 6 THEN 27 + ( SUM ( 34 ) ) WHEN + 65 * - 87 THEN NULL END, - 94 + - 0 ) * - 27
----
NULL

query II rowsort
SELECT ALL + 33 * + NULLIF ( + 7, - 56 / + - 62 ) + + - 4 AS col2, - 98 AS col1
----
227
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2292
SELECT DISTINCT + NULLIF ( 28, + 97 ) * - - NULLIF ( + 38, + 77 / - + 93 - - COUNT( * ) ) + - - 18 + + 68 * - + COALESCE ( - ( 36 ), COALESCE ( - + ( - NULLIF ( COUNT( * ), - 43 / + - NULLIF ( + CASE - 45 WHEN - - MIN( + 84 ) * - 26 * + - 14 + CAST( NULL AS SIGNED ) - 63 * 12 THEN 13 + + 45 * - 3 + - + 10 * - 58 - 23 ELSE NULL END, - 70 ) + 66 ) ), + 34, 95, - - 59 ), 75 + 17 * - CAST( NULL AS SIGNED ) ) * + COUNT( DISTINCT + ( 17 ) )
----
3530

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + NULLIF ( 28, + 97 ) * - - NULLIF ( + 38, + 77 / - + 93 - - COUNT ( * ) ) + - - 18 + + 68 * - + COALESCE ( - ( 36 ), COALESCE ( - + ( - NULLIF ( COUNT ( * ), - 43 / + - NULLIF ( + CASE - 45 WHEN - - MIN ( + 84 ) * - 26 * + - 14 + CAST ( NULL AS INTEGER ) - 63 * 12 THEN 13 + + 45 * - 3 + - + 10 * - 58 - 23 ELSE NULL END, - 70 ) + 66 ) ), + 34, 95, - - 59 ), 75 + 17 * - CAST ( NULL AS INTEGER ) ) * + COUNT ( DISTINCT + ( 17 ) )
----
3530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT - 13 + + NULLIF ( - - CAST( - 73 AS SIGNED ), 50 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT - 13 + + NULLIF ( - - CAST ( - 73 AS INTEGER ), 50 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL + MAX( - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + MAX ( - 59 ) AS col2
----
-59

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

skipif mysql # not compatible
query I rowsort label-2295
SELECT - COUNT ( * ) * 89
----
-89

query I rowsort
SELECT + 7 * + + ( + 41 ) AS col1
----
287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT 20 * 21 + - - COUNT( * ) + + + 62 * - CAST( NULL AS SIGNED ) * COUNT( * ) * - 38 - + - 28 + 65 * - + COALESCE ( - 83, - - 83, - 26 ) * - ( - AVG ( 75 ) ) - - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT 20 * 21 + - - COUNT ( * ) + + + 62 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 38 - + - 28 + 65 * - + COALESCE ( - 83, - - 83, - 26 ) * - ( - AVG ( 75 ) ) - - + 54
----
NULL

query I rowsort
SELECT + 5 * ( - - 15 ) + - - 52 AS col2
----
127

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL 65 - + 5 + CAST( + 22 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL 65 - + 5 + CAST ( + 22 AS INTEGER )
----
82

query I rowsort
SELECT - 71 * - - 40
----
-2840

query I rowsort
SELECT - 88 + - 3 * 70 * + 6
----
-1348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2304
SELECT ALL CASE 87 WHEN + ( - + 44 ) THEN CASE + 77 WHEN + ( 75 ) THEN - 21 ELSE NULL END * - - COUNT( * ) ELSE + 72 DIV COUNT( * ) END
----
72

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL CASE 87 WHEN + ( - + 44 ) THEN CASE + 77 WHEN + ( 75 ) THEN - 21 ELSE NULL END * - - COUNT ( * ) ELSE + 72 / COUNT ( * ) END
----
72

query I rowsort
SELECT ALL - 30 * - 34 * - - 89
----
90780

query I rowsort
SELECT DISTINCT ( 35 ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2307
SELECT DISTINCT CAST( + 43 AS SIGNED ) * - 68 AS col2, + 76 + 2 DIV - 47
----
-2924
76

skipif mysql # not compatible
query II rowsort label-2307
SELECT DISTINCT CAST ( + 43 AS INTEGER ) * - 68 AS col2, + 76 + 2 / - 47
----
-2924
76

query II rowsort
SELECT ALL 98, - ( - - 54 ) AS col2
----
98
-54

query I rowsort
SELECT - ( - + 86 ) * - 68 * + + 14 AS col1
----
-81872

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + COUNT( * ) + - COUNT( * ) + + + 22 + - + 19
----
3

skipif mysql # not compatible
query I rowsort label-2310
SELECT + COUNT ( * ) + - COUNT ( * ) + + + 22 + - + 19
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + 72 * MAX( - 33 ) - - - ( 74 ) AS col1
----
-2450

skipif mysql # not compatible
query I rowsort label-2311
SELECT + 72 * MAX ( - 33 ) - - - ( 74 ) AS col1
----
-2450

query I rowsort
SELECT + 42 + - 19 + - + 83 AS col1
----
-60

query I rowsort
SELECT + COALESCE ( - + 25, 41, 16 )
----
-25

query I rowsort
SELECT ALL 56 + - - 5 * + 94
----
526

query I rowsort
SELECT + + 49 * - - 41 * 0 - - + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + - 74 * - - 10 - 58 + COUNT( ALL 28 ) * SUM( DISTINCT + 41 ) * - 74 * 79 * + ( - - COUNT( - 91 ) ) AS col0
----
-240484

skipif mysql # not compatible
query I rowsort label-2316
SELECT + - 74 * - - 10 - 58 + COUNT ( ALL 28 ) * SUM ( DISTINCT + 41 ) * - 74 * 79 * + ( - - COUNT ( - 91 ) ) AS col0
----
-240484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL + 69 + - 75 - - 61 + - COUNT( * ) * + - ( - 38 ) * - CASE + 91 WHEN - 73 THEN NULL WHEN + 37 * - + 80 THEN NULL WHEN 17 + - COUNT( * ) THEN + + 64 ELSE NULL END * - COUNT( ALL + ( + + CAST( 69 AS SIGNED ) ) ) * + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + 69 + - 75 - - 61 + - COUNT ( * ) * + - ( - 38 ) * - CASE + 91 WHEN - 73 THEN NULL WHEN + 37 * - + 80 THEN NULL WHEN 17 + - COUNT ( * ) THEN + + 64 ELSE NULL END * - COUNT ( ALL + ( + + CAST ( 69 AS INTEGER ) ) ) * + - 28
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT DISTINCT MIN( - 25 ) + + 9
----
-16

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT MIN ( - 25 ) + + 9
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT ALL + 88 + - 0 DIV - 31 col1
----
88

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + 88 + - 0 / - 31 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT - ( ( + CASE - 1 WHEN - 89 * 16 THEN + + 54 + + + 34 + - COALESCE ( - COUNT( * ), + + COUNT( * ) ) * - - 93 - ( + 67 ) ELSE 99 END ) ) * - 26 * - 54 + - - 76 AS col0
----
-138920

skipif mysql # not compatible
query I rowsort label-2321
SELECT - ( ( + CASE - 1 WHEN - 89 * 16 THEN + + 54 + + + 34 + - COALESCE ( - COUNT ( * ), + + COUNT ( * ) ) * - - 93 - ( + 67 ) ELSE 99 END ) ) * - 26 * - 54 + - - 76 AS col0
----
-138920

query I rowsort
SELECT DISTINCT - 86 + + 23 * - - 66 - + 22 AS col2
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT ALL COUNT( * ) + - - 11 + - 68 - - 58 col0
----
2

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL COUNT ( * ) + - - 11 + - 68 - - 58 col0
----
2

query I rowsort
SELECT - ( - 82 ) * + 11 * 76 col1
----
68552

query I rowsort
SELECT + - 47 * + 28 * + ( - 16 ) * ( ( 27 ) ) * 20 * + + 96 col2
----
1091543040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2326
SELECT ALL + COALESCE ( - 77, + + NULLIF ( 52, 74 ) + + COUNT( * ), - 83 + + CAST( - COUNT( * ) AS SIGNED ) ) DIV - 83 * 8 + - - 88 * + - 23
----
-2024

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL + COALESCE ( - 77, + + NULLIF ( 52, 74 ) + + COUNT ( * ), - 83 + + CAST ( - COUNT ( * ) AS INTEGER ) ) / - 83 * 8 + - - 88 * + - 23
----
-2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT CAST( - 48 AS SIGNED ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-2327
SELECT CAST ( - 48 AS INTEGER ) col1
----
-48

query II rowsort
SELECT ALL + 67 AS col1, ( 86 )
----
67
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2329
SELECT + 90 AS col0, 21 * - CAST( - + 79 AS SIGNED )
----
90
1659

skipif mysql # not compatible
query II rowsort label-2329
SELECT + 90 AS col0, 21 * - CAST ( - + 79 AS INTEGER )
----
90
1659

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT 97 * 97 + + 84 + + COUNT( - 63 ) - - 38 * COUNT( * )
----
9532

skipif mysql # not compatible
query I rowsort label-2330
SELECT 97 * 97 + + 84 + + COUNT ( - 63 ) - - 38 * COUNT ( * )
----
9532

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

skipif mysql # not compatible
query I rowsort label-2331
SELECT + 19 * + + CAST ( - 23 AS INTEGER )
----
-437

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

query I rowsort
SELECT DISTINCT + 6 * 11 * 37 AS col0
----
2442

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2335
SELECT - SUM( DISTINCT - - 62 ) DIV 18 - - - 11
----
-14

skipif mysql # not compatible
query I rowsort label-2335
SELECT - SUM ( DISTINCT - - 62 ) / 18 - - - 11
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2336
SELECT - CASE 50 WHEN - 23 * - ( 9 ) THEN + 98 * - + 55 + + CAST( - + ( - - COUNT( * ) ) AS SIGNED ) END * + MIN( ALL - - 43 ) * - 34 + + + 83 - + 87 + - 13 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT - CASE 50 WHEN - 23 * - ( 9 ) THEN + 98 * - + 55 + + CAST ( - + ( - - COUNT ( * ) ) AS INTEGER ) END * + MIN ( ALL - - 43 ) * - 34 + + + 83 - + 87 + - 13 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL - 34 * + SUM( 92 ) col2
----
-3128

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - 34 * + SUM ( 92 ) col2
----
-3128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2338
SELECT - 47 - + COUNT( * ) DIV - + 11 * + 98
----
-47

skipif mysql # not compatible
query I rowsort label-2338
SELECT - 47 - + COUNT ( * ) / - + 11 * + 98
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2339
SELECT NULLIF ( 67, - COALESCE ( + COUNT( * ), + ( - 86 ), CAST( NULL AS SIGNED ), 31 + + - 68 + + - 19 + 57 ) * - 21 - + 55 )
----
67

skipif mysql # not compatible
query I rowsort label-2339
SELECT NULLIF ( 67, - COALESCE ( + COUNT ( * ), + ( - 86 ), CAST ( NULL AS INTEGER ), 31 + + - 68 + + - 19 + 57 ) * - 21 - + 55 )
----
67

query I rowsort
SELECT + 75 * + - 37 + + 61 col0
----
-2714

onlyif mysql # aggregate syntax: 
query II rowsort label-2341
SELECT ALL + COUNT( * ), 31 * - 96 AS col1
----
1
-2976

skipif mysql # not compatible
query II rowsort label-2341
SELECT ALL + COUNT ( * ), 31 * - 96 AS col1
----
1
-2976

query I rowsort
SELECT ALL + NULLIF ( - 28, + 25 * 10 + 14 )
----
-28

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

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

query I rowsort
SELECT - 29 * - 55
----
1595

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT ALL + 38 * + 71 * - + COUNT( * ) / - CASE 86 WHEN + NULLIF ( - CASE - 84 WHEN 2 * - 10 THEN 47 ELSE NULL END, + 5 + + 5 - ( - 45 ) + - - 51 * + - 82 + - 60 * ( + 43 ) - + - 69 * - 21 ) + 44 THEN - 30 / + + MIN( DISTINCT 83 ) WHEN - 56 * - CASE + NULLIF ( - 23, - + 83 - - 17 ) WHEN - - CAST( - - CASE + ( - MIN( - 12 ) ) WHEN 14 THEN NULL WHEN - 98 THEN + - CAST( NULL AS SIGNED ) ELSE NULL END AS SIGNED ) THEN + COUNT( * ) * + 25 + - 84 * + 35 ELSE CAST( NULL AS SIGNED ) - + 35 END THEN NULL WHEN 76 THEN NULL END - + COUNT( * ) * - 43 + + 19 * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL + 38 * + 71 * - + COUNT ( * ) / - CASE 86 WHEN + NULLIF ( - CASE - 84 WHEN 2 * - 10 THEN 47 ELSE NULL END, + 5 + + 5 - ( - 45 ) + - - 51 * + - 82 + - 60 * ( + 43 ) - + - 69 * - 21 ) + 44 THEN - 30 / + + MIN ( DISTINCT 83 ) WHEN - 56 * - CASE + NULLIF ( - 23, - + 83 - - 17 ) WHEN - - CAST ( - - CASE + ( - MIN ( - 12 ) ) WHEN 14 THEN NULL WHEN - 98 THEN + - CAST ( NULL AS INTEGER ) ELSE NULL END AS INTEGER ) THEN + COUNT ( * ) * + 25 + - 84 * + 35 ELSE CAST ( NULL AS INTEGER ) - + 35 END THEN NULL WHEN 76 THEN NULL END - + COUNT ( * ) * - 43 + + 19 * + 11
----
NULL

query II rowsort
SELECT ALL + 69 AS col0, - 20 AS col2
----
69
-20

query I rowsort
SELECT - + 70 * + 69 AS col2
----
-4830

query I rowsort
SELECT + + 64 * - 98 AS col2
----
-6272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT + ( COALESCE ( - - CAST( NULL AS SIGNED ), - 33, - + 55 ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2350
SELECT + ( COALESCE ( - - CAST ( NULL AS INTEGER ), - 33, - + 55 ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL + COUNT( * ) * 25 + + 27 * - CASE - 0 WHEN 73 - - - MIN( 96 ) + + 70 THEN + 13 * + 6 ELSE - 2 END
----
79

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + COUNT ( * ) * 25 + + 27 * - CASE - 0 WHEN 73 - - - MIN ( 96 ) + + 70 THEN + 13 * + 6 ELSE - 2 END
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT - AVG ( - CAST( + 52 AS SIGNED ) ) * 30 * + + ( CASE - 38 WHEN - SUM( - 23 ) THEN + + NULLIF ( + 17, + COALESCE ( + - 70, + CASE - 71 WHEN - 13 THEN NULL WHEN - 93 THEN 28 ELSE NULL END, + COUNT( * ) ) + - - 82 + + + 33 + + 64 * + 62 / + 82 + - 74 ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT - AVG ( - CAST ( + 52 AS INTEGER ) ) * 30 * + + ( CASE - 38 WHEN - SUM ( - 23 ) THEN + + NULLIF ( + 17, + COALESCE ( + - 70, + CASE - 71 WHEN - 13 THEN NULL WHEN - 93 THEN 28 ELSE NULL END, + COUNT ( * ) ) + - - 82 + + + 33 + + 64 * + 62 / + 82 + - 74 ) ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL 32 + 75 AS col2
----
107

query I rowsort
SELECT DISTINCT - 81 * + 80 * + 92 * - 3 * 86
----
153809280

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL + - 42 + - 52 DIV - 23
----
-40

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + - 42 + - 52 / - 23
----
-40

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

query I rowsort
SELECT + - 37 - + 35
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT + + 62 * + NULLIF ( - COUNT( * ), - + 63 / - 93 ) + + AVG ( + ( + 6 ) ) + COUNT( * ) + - 76 - + - 58 + - - COUNT( * ) * - 16 * - 92 * + CASE + - 69 WHEN - 51 + + + ( - 99 ) THEN + CAST( + NULLIF ( 15, - - 50 * 12 ) AS SIGNED ) * - 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT + + 62 * + NULLIF ( - COUNT ( * ), - + 63 / - 93 ) + + AVG ( + ( + 6 ) ) + COUNT ( * ) + - 76 - + - 58 + - - COUNT ( * ) * - 16 * - 92 * + CASE + - 69 WHEN - 51 + + + ( - 99 ) THEN + CAST ( + NULLIF ( 15, - - 50 * 12 ) AS INTEGER ) * - 85 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT 8 + - + 34 - COUNT( - + 80 ) DIV + - 67 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2360
SELECT 8 + - + 34 - COUNT ( - + 80 ) / + - 67 AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2361
SELECT + COALESCE ( + COUNT( * ), 63 DIV + 98 * + COUNT( * ) * - CAST( + + 2 AS SIGNED ) * + - NULLIF ( 71, - 10 - + 27 ) + - 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2361
SELECT + COALESCE ( + COUNT ( * ), 63 / + 98 * + COUNT ( * ) * - CAST ( + + 2 AS INTEGER ) * + - NULLIF ( 71, - 10 - + 27 ) + - 52 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT + 95 + 3 + 74 - - 52 * + COUNT( * )
----
224

skipif mysql # not compatible
query I rowsort label-2362
SELECT + 95 + 3 + 74 - - 52 * + COUNT ( * )
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT DISTINCT 35 DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT 35 / - - 42
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT ALL - COUNT( * ) DIV - + 83 - - + 8 + + + 71 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL - COUNT ( * ) / - + 83 - - + 8 + + + 71 AS col1
----
79

query I rowsort
SELECT 1 * - 15 + + 88
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT MAX( ALL - 51 ) * - 58 + + + 59 col1
----
3017

skipif mysql # not compatible
query I rowsort label-2367
SELECT MAX ( ALL - 51 ) * - 58 + + + 59 col1
----
3017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2368
SELECT + COUNT( * ) DIV - - 98 + CAST( - - 82 AS SIGNED ) - + CAST( + COUNT( * ) AS SIGNED ) * + 15 * - 58 AS col0
----
952

skipif mysql # not compatible
query I rowsort label-2368
SELECT + COUNT ( * ) / - - 98 + CAST ( - - 82 AS INTEGER ) - + CAST ( + COUNT ( * ) AS INTEGER ) * + 15 * - 58 AS col0
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT MIN( DISTINCT - 80 ) * 96
----
-7680

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT MIN ( DISTINCT - 80 ) * 96
----
-7680

query I rowsort
SELECT ALL 89 * + 14
----
1246

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT 82 * + MIN( DISTINCT 58 )
----
4756

skipif mysql # not compatible
query I rowsort label-2371
SELECT 82 * + MIN ( DISTINCT 58 )
----
4756

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT DISTINCT + 85 DIV - - ( + 38 )
----
2

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT + 85 / - - ( + 38 )
----
2

query I rowsort
SELECT 10 + + 37 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL + SUM( + 45 ) * - + 88 col1
----
-3960

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + SUM ( + 45 ) * - + 88 col1
----
-3960

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

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

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

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

query I rowsort
SELECT ALL - - 94 + - + 69
----
25

query II rowsort
SELECT - 64 + + 45 AS col0, 28 AS col1
----
-19
28

query I rowsort
SELECT DISTINCT 33 + - NULLIF ( - 54, - 84 + - + 78 * - - 79 )
----
87

query I rowsort
SELECT ALL 38 * + 8 AS col1
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT DISTINCT - - COUNT( ALL - 31 ) * + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT - - COUNT ( ALL - 31 ) * + - 19
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2382
SELECT 51 + 10 * - - COUNT( * ), + 78 * 81 AS col1
----
61
6318

skipif mysql # not compatible
query II rowsort label-2382
SELECT 51 + 10 * - - COUNT ( * ), + 78 * 81 AS col1
----
61
6318

query I rowsort
SELECT DISTINCT + 94 + 23 AS col1
----
117

query I rowsort
SELECT - ( - 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT + COUNT( * ) + 76 + - + 78 * + + 19 * + 4 AS col2
----
-5851

skipif mysql # not compatible
query I rowsort label-2385
SELECT + COUNT ( * ) + 76 + - + 78 * + + 19 * + 4 AS col2
----
-5851

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT 22 * - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2386
SELECT 22 * - COUNT ( * ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ( - SUM( 91 ) ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-2387
SELECT ( - SUM ( 91 ) ) col0
----
-91

query I rowsort
SELECT ALL + + 10 - + - 53 + - COALESCE ( ( + 61 ), 32 ) AS col0
----
2

query I rowsort
SELECT DISTINCT + ( - ( - 34 ) ) AS col0
----
34

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - - 14, + 85 ) * - 74 * - 3
----
3108

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL - SUM( ALL - 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - SUM ( ALL - 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2396
SELECT ALL COUNT( * ) DIV - - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL COUNT ( * ) / - - 66 AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT 72 DIV - 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT 72 / - 95 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2399
SELECT MIN( DISTINCT + + 3 ) * 90 * - - 11 AS col0, + 32
----
2970
32

skipif mysql # not compatible
query II rowsort label-2399
SELECT MIN ( DISTINCT + + 3 ) * 90 * - - 11 AS col0, + 32
----
2970
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL 47 + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL 47 + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT COUNT( ALL - 17 ) + 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT COUNT ( ALL - 17 ) + 20 AS col0
----
21

query II rowsort
SELECT + 19 col0, + 55 AS col2
----
19
55

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

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 93 + COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT ALL SUM( + - 86 ) + + 41 AS col1, 35 * ( COALESCE ( 21, + 57 ) )
----
-45
735

skipif mysql # not compatible
query II rowsort label-2404
SELECT ALL SUM ( + - 86 ) + + 41 AS col1, 35 * ( COALESCE ( 21, + 57 ) )
----
-45
735

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT - SUM( ALL + 66 ) + CAST( NULL AS SIGNED ) * + + ( - SUM( + + ( CAST( 9 AS SIGNED ) ) ) ) * + COUNT( * ) + NULLIF ( 55, COUNT( * ) - 68 * + 72 ) + - + ( + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT - SUM ( ALL + 66 ) + CAST ( NULL AS INTEGER ) * + + ( - SUM ( + + ( CAST ( 9 AS INTEGER ) ) ) ) * + COUNT ( * ) + NULLIF ( 55, COUNT ( * ) - 68 * + 72 ) + - + ( + 44 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2407
SELECT ALL - 56 + + + COUNT( + COALESCE ( 40, - 74 + 15 + - 70, - 32 / + 9 * - - 50 ) ) + - NULLIF ( ( + CASE + - 21 WHEN ( 58 ) THEN + + 29 * - ( + COUNT( * ) ) + 17 WHEN - 18 THEN + - CAST( NULL AS SIGNED ) ELSE - 18 END ), + 73 ) * - NULLIF ( ( 73 ), - 11 * 32 * + - 18 - COUNT( * ) ) * - - 19 AS col2
----
-25021

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL - 56 + + + COUNT ( + COALESCE ( 40, - 74 + 15 + - 70, - 32 / + 9 * - - 50 ) ) + - NULLIF ( ( + CASE + - 21 WHEN ( 58 ) THEN + + 29 * - ( + COUNT ( * ) ) + 17 WHEN - 18 THEN + - CAST ( NULL AS INTEGER ) ELSE - 18 END ), + 73 ) * - NULLIF ( ( 73 ), - 11 * 32 * + - 18 - COUNT ( * ) ) * - - 19 AS col2
----
-25021

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT + 62, + NULLIF ( - + ( - - COUNT( * ) ), 27 * - 77 ) AS col1
----
62
-1

skipif mysql # not compatible
query II rowsort label-2408
SELECT + 62, + NULLIF ( - + ( - - COUNT ( * ) ), 27 * - 77 ) AS col1
----
62
-1

query I rowsort
SELECT ALL - + COALESCE ( ( - 69 ), + 47 * 41 )
----
69

query I rowsort
SELECT ALL + - 54 + + 92
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2411
SELECT + NULLIF ( + COUNT( ALL + 61 ), 55 + + 68 + 36 ) AS col1, COUNT( * ) + + 86 + 65 * + + 45 AS col0
----
1
3012

skipif mysql # not compatible
query II rowsort label-2411
SELECT + NULLIF ( + COUNT ( ALL + 61 ), 55 + + 68 + 36 ) AS col1, COUNT ( * ) + + 86 + 65 * + + 45 AS col0
----
1
3012

query I rowsort
SELECT + 2 * 97
----
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2413
SELECT ALL + COUNT( * ) DIV + 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + COUNT ( * ) / + 70 col1
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT ALL COUNT( * ) DIV + - 23 * MAX( DISTINCT - 35 ) * + - NULLIF ( 60, - 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL COUNT ( * ) / + - 23 * MAX ( DISTINCT - 35 ) * + - NULLIF ( 60, - 92 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2417
SELECT 60 * - - 65 - - 96 - - CASE - - 42 WHEN - - 73 * 14 THEN + ( 80 ) * + 53 WHEN + 31 THEN NULL WHEN 14 + + 42 + - - 71 * 10 * 67 + + 14 + 50 * 91 THEN - 70 + - 82 END - NULLIF ( + - 81, - + NULLIF ( CASE + - CASE 98 WHEN - 36 THEN NULL WHEN + - 25 THEN + - COUNT( ALL 98 ) END WHEN - 94 - - 65 THEN + + CAST( + 75 AS DECIMAL ) WHEN + 59 THEN NULL END, - 35 * 75 ) ) / 52 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT 60 * - - 65 - - 96 - - CASE - - 42 WHEN - - 73 * 14 THEN + ( 80 ) * + 53 WHEN + 31 THEN NULL WHEN 14 + + 42 + - - 71 * 10 * 67 + + 14 + 50 * 91 THEN - 70 + - 82 END - NULLIF ( + - 81, - + NULLIF ( CASE + - CASE 98 WHEN - 36 THEN NULL WHEN + - 25 THEN + - COUNT ( ALL 98 ) END WHEN - 94 - - 65 THEN + + CAST ( + 75 AS REAL ) WHEN + 59 THEN NULL END, - 35 * 75 ) ) / 52 + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL + 80 * + + 60 + + NULLIF ( 36, - 39 * - + 98 ) + - 80 * 67 * + CASE - 63 WHEN + 32 THEN + COUNT( * ) + - 73 WHEN + + 87 THEN NULL END * - - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + 80 * + + 60 + + NULLIF ( 36, - 39 * - + 98 ) + - 80 * 67 * + CASE - 63 WHEN + 32 THEN + COUNT ( * ) + - 73 WHEN + + 87 THEN NULL END * - - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2419
SELECT DISTINCT 64 col2, + 46 + COUNT( * ) * - COALESCE ( + + 37, - 42, + 23 ) AS col1
----
64
9

skipif mysql # not compatible
query II rowsort label-2419
SELECT DISTINCT 64 col2, + 46 + COUNT ( * ) * - COALESCE ( + + 37, - 42, + 23 ) AS col1
----
64
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT + + 25 + 42 DIV - COUNT( - - 92 ) + + MAX( - 10 ) * 22 * + + ( 89 ) + 46 AS col2
----
-19551

skipif mysql # not compatible
query I rowsort label-2420
SELECT + + 25 + 42 / - COUNT ( - - 92 ) + + MAX ( - 10 ) * 22 * + + ( 89 ) + 46 AS col2
----
-19551

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT - 78 + 22 - - COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2421
SELECT - 78 + 22 - - COUNT ( * ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - SUM( + - 83 ) * + 9
----
747

skipif mysql # not compatible
query I rowsort label-2422
SELECT - SUM ( + - 83 ) * + 9
----
747

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

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

query I rowsort
SELECT ALL CASE - 64 WHEN - + 35 THEN + 58 END AS col1
----
NULL

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

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

query I rowsort
SELECT - 48 + - - ( - 75 ) AS col2
----
-123

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

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL ( - SUM ( ALL 26 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL COUNT( * ) + - 56 * - 6
----
337

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL COUNT ( * ) + - 56 * - 6
----
337

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

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

query I rowsort
SELECT ALL + 2 + 27 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT - COUNT( * ) + + 40 * 64
----
2559

skipif mysql # not compatible
query I rowsort label-2431
SELECT - COUNT ( * ) + + 40 * 64
----
2559

query I rowsort
SELECT DISTINCT NULLIF ( - + 72, + + 99 + - 41 ) * + 54 + + 32 col0
----
-3856

query II rowsort
SELECT ALL + NULLIF ( + 3, - ( + 43 ) ) AS col0, - 37 AS col1
----
3
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT 3 DIV 59 + + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2434
SELECT 3 / 59 + + 11 AS col0
----
11

query I rowsort
SELECT ALL - 67 * 27 AS col2
----
-1809

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

query II rowsort
SELECT ( 98 ) AS col2, 26 * - 49
----
98
-1274

query I rowsort
SELECT DISTINCT + ( + 48 ) * - - 78 + + 23 + 93 + - ( - 77 ) * 59 AS col0
----
8403

query I rowsort
SELECT ALL + 72 * 39 + + 73
----
2881

query I rowsort
SELECT - 58 * - 2 AS col1
----
116

query I rowsort
SELECT DISTINCT - 39 * + - 53 + + 72 + - 11 + 46
----
2174

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL 48 * SUM( DISTINCT - 53 ) * - COUNT( * ) - + 22 + + - 50 - 57
----
2415

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL 48 * SUM ( DISTINCT - 53 ) * - COUNT ( * ) - + 22 + + - 50 - 57
----
2415

query I rowsort
SELECT + - 39 * - - 41 - - + 98 + + + 33 - 47 + ( + - 2 ) * 80 AS col0
----
-1675

query I rowsort
SELECT ALL + - ( - - 16 ) col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + 27 * + 6 + + + ( + - 22 ) + 4 + - COALESCE ( + 33, COUNT( * ) )
----
111

skipif mysql # not compatible
query I rowsort label-2445
SELECT + 27 * + 6 + + + ( + - 22 ) + 4 + - COALESCE ( + 33, COUNT ( * ) )
----
111

query I rowsort
SELECT + 39 * + 72 col2
----
2808

query I rowsort
SELECT ALL - 69 * 9
----
-621

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT + COALESCE ( - 95, NULLIF ( 56, - 19 / + + MIN( ALL - + 25 ) + - COUNT( * ) ) ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT + COALESCE ( - 95, NULLIF ( 56, - 19 / + + MIN ( ALL - + 25 ) + - COUNT ( * ) ) ) col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - 77 * - COUNT( * ) * - 13 + 34 - + 30 * - - ( + 41 )
----
-2197

skipif mysql # not compatible
query I rowsort label-2450
SELECT - 77 * - COUNT ( * ) * - 13 + 34 - + 30 * - - ( + 41 )
----
-2197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT 14 * + NULLIF ( - 54, AVG ( + CAST( NULL AS SIGNED ) ) ) + - 23 AS col0
----
-779

skipif mysql # not compatible
query I rowsort label-2451
SELECT 14 * + NULLIF ( - 54, AVG ( + CAST ( NULL AS INTEGER ) ) ) + - 23 AS col0
----
-779

query I rowsort
SELECT DISTINCT - 42 col1
----
-42

query II rowsort
SELECT + - 65 * + + CASE + 78 WHEN + 62 THEN NULL WHEN + - 66 THEN + - 67 * - 3 * - 17 + - + 68 - 88 END, - 53 * - - 36 AS col0
----
NULL
-1908

query I rowsort
SELECT + 42 * + 94
----
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - COUNT( * ) + + - COALESCE ( + + 97, + 0 * - 4 * - - 60 * - 91 ) + - 21
----
-119

skipif mysql # not compatible
query I rowsort label-2455
SELECT - COUNT ( * ) + + - COALESCE ( + + 97, + 0 * - 4 * - - 60 * - 91 ) + - 21
----
-119

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT + 55 DIV 5
----
11

skipif mysql # not compatible
query I rowsort label-2457
SELECT + 55 / 5
----
11

query I rowsort
SELECT - 61 + + 69 + - 64 + 84
----
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2459
SELECT ALL - 70 + + CAST( 33 AS DECIMAL ) * - 92 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - 70 + + CAST ( 33 AS REAL ) * - 92 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT ALL CAST( NULL AS SIGNED ) + - - 87 + 46 + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL CAST ( NULL AS INTEGER ) + - - 87 + 46 + 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL + 98 * - COUNT( * ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL + 98 * - COUNT ( * ) AS col0
----
-98

query I rowsort
SELECT ALL - 43 + 18 - 29 * - 60 AS col0
----
1715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2463
SELECT - COUNT( * ) DIV MAX( ALL + 48 )
----
0

skipif mysql # not compatible
query I rowsort label-2463
SELECT - COUNT ( * ) / MAX ( ALL + 48 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2464
SELECT ALL 30 + - + CAST( NULL AS SIGNED ) + - 47 * - + 27 * + + COUNT( * ) / - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL 30 + - + CAST ( NULL AS INTEGER ) + - 47 * - + 27 * + + COUNT ( * ) / - 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT - CAST( NULL AS SIGNED ) * COUNT( ALL - 19 ) * - NULLIF ( + + 96, + 4 ) + + - 69 + + 35 - + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( ALL - 19 ) * - NULLIF ( + + 96, + 4 ) + + - 69 + + 35 - + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2466
SELECT + COALESCE ( - - CAST( - CASE + 84 WHEN + 30 + + 52 THEN - 77 + ( - COUNT( * ) ) WHEN 75 * ( - 99 ) + + COUNT( * ) * + 17 THEN CASE - 62 WHEN - + 59 DIV - 14 + - MIN( DISTINCT - - 19 ) + - CASE 95 WHEN - - 53 THEN - 97 * - COUNT( * ) ELSE NULL END + - + 87 DIV + 89 THEN NULL ELSE + + COUNT( * ) DIV 45 DIV - 58 + - 64 + - 49 END WHEN - - 18 + - + 3 THEN NULL ELSE NULL END AS SIGNED ), + SUM( - 93 ), - 28 ) - + - ( + + 97 ) + + + COALESCE ( 28, + 55 DIV - ( - CASE + - 64 WHEN 46 THEN NULL WHEN - 49 THEN ( + 55 ) + COUNT( * ) END ) - + 58, - 3 * + 28 ) - 15 * + 54 AS col2
----
-778

skipif mysql # not compatible
query I rowsort label-2466
SELECT + COALESCE ( - - CAST ( - CASE + 84 WHEN + 30 + + 52 THEN - 77 + ( - COUNT ( * ) ) WHEN 75 * ( - 99 ) + + COUNT ( * ) * + 17 THEN CASE - 62 WHEN - + 59 / - 14 + - MIN ( DISTINCT - - 19 ) + - CASE 95 WHEN - - 53 THEN - 97 * - COUNT ( * ) ELSE NULL END + - + 87 / + 89 THEN NULL ELSE + + COUNT ( * ) / 45 / - 58 + - 64 + - 49 END WHEN - - 18 + - + 3 THEN NULL ELSE NULL END AS INTEGER ), + SUM ( - 93 ), - 28 ) - + - ( + + 97 ) + + + COALESCE ( 28, + 55 / - ( - CASE + - 64 WHEN 46 THEN NULL WHEN - 49 THEN ( + 55 ) + COUNT ( * ) END ) - + 58, - 3 * + 28 ) - 15 * + 54 AS col2
----
-778

query I rowsort
SELECT ALL + 98 * 85 * 50
----
416500

query I rowsort
SELECT ALL - 44 + - 2 AS col2
----
-46

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

query I rowsort
SELECT - 71 * + 42
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL - MIN( ALL - 35 ) + + 51 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - MIN ( ALL - 35 ) + + 51 AS col1
----
86

query II rowsort
SELECT - 7 AS col1, + 17
----
-7
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2473
SELECT DISTINCT 21 / - - MAX( + 28 ) * CAST( NULL AS SIGNED ) * - 21 * + 43 * - - 39 + + CAST( NULL AS SIGNED ) - - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT 21 / - - MAX ( + 28 ) * CAST ( NULL AS INTEGER ) * - 21 * + 43 * - - 39 + + CAST ( NULL AS INTEGER ) - - - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL - COUNT( * ) * + 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL - COUNT ( * ) * + 99 AS col0
----
-99

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

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT - SUM ( DISTINCT - + 1 ) * + 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT + - MAX( ALL 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + - MAX ( ALL 89 )
----
-89

query I rowsort
SELECT - 87 + - 13
----
-100

query I rowsort
SELECT - 57 * - 2
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT ALL - 65 * + + 52 * - - NULLIF ( - 72, 56 / 16 + 10 ) + + 57 * - + ( + CAST( NULL AS SIGNED ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL - 65 * + + 52 * - - NULLIF ( - 72, 56 / 16 + 10 ) + + 57 * - + ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT + COUNT( - 74 ) - 49 - + 17 col0
----
-65

skipif mysql # not compatible
query I rowsort label-2480
SELECT + COUNT ( - 74 ) - 49 - + 17 col0
----
-65

query I rowsort
SELECT + - NULLIF ( + 8, - 68 )
----
-8

query II rowsort
SELECT ALL - 39 AS col1, ( + 65 ) AS col2
----
-39
65

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

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

query I rowsort
SELECT ALL - CASE + + 9 WHEN - 58 THEN - 71 WHEN 99 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT 5 * - - 23
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT ALL + - 3 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + - 3 / - 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT DISTINCT 99 * MAX( CASE + 21 WHEN + - 62 THEN - CASE 4 WHEN + 37 * - 32 - + + 86 + + + 42 THEN 11 END ELSE + CASE + 76 WHEN + + 95 THEN 81 * - 41 ELSE NULL END + + + 52 - + 71 END ) - + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT 99 * MAX ( CASE + 21 WHEN + - 62 THEN - CASE 4 WHEN + 37 * - 32 - + + 86 + + + 42 THEN 11 END ELSE + CASE + 76 WHEN + + 95 THEN 81 * - 41 ELSE NULL END + + + 52 - + 71 END ) - + 53 AS col1
----
NULL

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

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

query I rowsort
SELECT - 7 * - 7 + + 19
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2491
SELECT 85 + ( + COUNT( * ) ) AS col2, 48
----
86
48

skipif mysql # not compatible
query II rowsort label-2491
SELECT 85 + ( + COUNT ( * ) ) AS col2, 48
----
86
48

query II rowsort
SELECT + 15, 58 AS col2
----
15
58

query I rowsort
SELECT DISTINCT 74 + 24 * - 86 * + 65 AS col2
----
-134086

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL + 97 + - COUNT( + 86 )
----
96

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL + 97 + - COUNT ( + 86 )
----
96

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

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL 43 + COUNT ( * ) / + 67 AS col0
----
43

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

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

query I rowsort
SELECT DISTINCT 78 + 86 * - 35
----
-2932

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL COUNT( * ) + + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL COUNT ( * ) + + - 77
----
-76

query II rowsort
SELECT - 36 AS col0, COALESCE ( ( 69 ), - + 95 * - - 34 ) + + 18 * - 70 + - ( NULLIF ( + 31, + ( + ( + - AVG ( + 45 ) ) ) ) ) + - + 12
----
-36
-1234

query II rowsort
SELECT - 91 AS col0, 0 + - 63 col0
----
-91
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT SUM( - 38 ) + - 74 + - - 65 * NULLIF ( + CASE + 69 WHEN 48 * + - 92 THEN NULL WHEN 91 * + 26 + 60 THEN - 66 * - 37 + - 80 - + - SUM( DISTINCT - 92 ) END, - - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT SUM ( - 38 ) + - 74 + - - 65 * NULLIF ( + CASE + 69 WHEN 48 * + - 92 THEN NULL WHEN 91 * + 26 + 60 THEN - 66 * - 37 + - 80 - + - SUM ( DISTINCT - 92 ) END, - - 72 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT ALL 77 + COALESCE ( + 67, 50 DIV - 48 + + ( 33 ) + - - 87 * - 23 + + 1 * + 39, + 42 ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL 77 + COALESCE ( + 67, 50 / - 48 + + ( 33 ) + - - 87 * - 23 + + 1 * + 39, + 42 ) AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT COUNT( + NULLIF ( + 45, - 97 * + 3 ) ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2503
SELECT COUNT ( + NULLIF ( + 45, - 97 * + 3 ) ) * COUNT ( * )
----
1

query II rowsort
SELECT - 2 AS col1, + 75 * - - CASE 37 WHEN - - 27 THEN 80 * - + 28 ELSE 2 + - 36 END * - 98 * 83
----
-2
20741700

query I rowsort
SELECT 91 + + - 45 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL 41 - + + COUNT( * ) + NULLIF ( + - SUM( + + 64 ), 65 ) + - 65
----
-89

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL 41 - + + COUNT ( * ) + NULLIF ( + - SUM ( + + 64 ), 65 ) + - 65
----
-89

query I rowsort
SELECT ( - - 90 ) * + + 13 * + - 67 AS col1
----
-78390

query I rowsort
SELECT 10 + 51 - + 23 + + 43
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT MAX( ALL - 51 ) * + 79 * 67
----
-269943

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT MAX ( ALL - 51 ) * + 79 * 67
----
-269943

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2510
SELECT ALL 35 * + 53 / + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL 35 * + 53 / + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT 25 DIV + 42 * + 56 * 14 + - 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-2511
SELECT 25 / + 42 * + 56 * 14 + - 84 AS col1
----
-84

query I rowsort
SELECT COALESCE ( + 44, - 64, + 44 ) * + - 52
----
-2288

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

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

query II rowsort
SELECT ALL - + 82 AS col0, + 94 - 68
----
-82
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - + MAX( DISTINCT - - 6 ) * 33 * + 8 AS col2
----
-1584

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - + MAX ( DISTINCT - - 6 ) * 33 * + 8 AS col2
----
-1584

query II rowsort
SELECT + 37 AS col2, 13 * 61 * 43
----
37
34099

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

query I rowsort
SELECT ALL - + 76 + - 82 * - 44 AS col0
----
3532

query I rowsort
SELECT + 80 * 21 + 26 AS col1
----
1706

query I rowsort
SELECT + ( + 30 ) + 93 AS col0
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2523
SELECT 99 DIV 7 DIV - + 5 + 2 + COUNT( * ) * + 10, 90 * - 5 AS col2
----
10
-450

skipif mysql # not compatible
query II rowsort label-2523
SELECT 99 / 7 / - + 5 + 2 + COUNT ( * ) * + 10, 90 * - 5 AS col2
----
10
-450

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

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

query I rowsort
SELECT ALL 90 + - - 6 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT 22 + 7 + COUNT( * ) * + 71 * + CASE ( - 75 ) WHEN - 99 THEN + - COALESCE ( - 7, + 58 * 23 + 22 ) * 64 * 10 / 63 END * + ( + COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT 22 + 7 + COUNT ( * ) * + 71 * + CASE ( - 75 ) WHEN - 99 THEN + - COALESCE ( - 7, + 58 * 23 + 22 ) * 64 * 10 / 63 END * + ( + COUNT ( * ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL + + 84 + 80 - + 0 * + 26 * CASE + - 64 WHEN - 17 THEN - 47 + + - COUNT( * ) + COUNT( + 90 ) * MIN( ALL - 11 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + + 84 + 80 - + 0 * + 26 * CASE + - 64 WHEN - 17 THEN - 47 + + - COUNT ( * ) + COUNT ( + 90 ) * MIN ( ALL - 11 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL + 43 + + + NULLIF ( - COUNT( * ), 93 )
----
42

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL + 43 + + + NULLIF ( - COUNT ( * ), 93 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT 56 DIV 6 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2529
SELECT 56 / 6 AS col2
----
9

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

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

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

query I rowsort
SELECT DISTINCT + 26 - - ( - 49 ) AS col0
----
-23

query I rowsort
SELECT DISTINCT + 54 * - 45 AS col2
----
-2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2534
SELECT ALL NULLIF ( + NULLIF ( 26, - MIN( DISTINCT - 3 ) + - 63 ), - 82 * + 4 + + COUNT( * ) * + - CAST( NULL AS SIGNED ) ) - - NULLIF ( - 79, + NULLIF ( + + 93, - CAST( NULL AS DECIMAL ) ) + - - 31 ) + - + 22
----
-75

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL NULLIF ( + NULLIF ( 26, - MIN ( DISTINCT - 3 ) + - 63 ), - 82 * + 4 + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) ) - - NULLIF ( - 79, + NULLIF ( + + 93, - CAST ( NULL AS REAL ) ) + - - 31 ) + - + 22
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT + 76 - + 3 * + COUNT( * ) + + 98 + + SUM( ALL + + 59 ) + 76 + - + 93 AS col1
----
213

skipif mysql # not compatible
query I rowsort label-2535
SELECT + 76 - + 3 * + COUNT ( * ) + + 98 + + SUM ( ALL + + 59 ) + 76 + - + 93 AS col1
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT + 93 * - 61 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT + 93 * - 61 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT DISTINCT + 15 * - - COUNT( * ) * - CAST( NULL AS SIGNED ) / 60 * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT + 15 * - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / 60 * - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL - 82 * + MIN( - 63 )
----
5166

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - 82 * + MIN ( - 63 )
----
5166

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT ALL COUNT( * ) * - 12 AS col0, MAX( ALL 6 ) AS col2
----
-12
6

skipif mysql # not compatible
query II rowsort label-2539
SELECT ALL COUNT ( * ) * - 12 AS col0, MAX ( ALL 6 ) AS col2
----
-12
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2540
SELECT DISTINCT ( - 3 ) * + 94 DIV COUNT( * ) + ( + 24 )
----
-258

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT ( - 3 ) * + 94 / COUNT ( * ) + ( + 24 )
----
-258

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

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

query I rowsort
SELECT ALL + NULLIF ( + 10, + 27 ) * - - 10 * - + 60 + + 40 AS col1
----
-5960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2543
SELECT + CASE + 65 WHEN - COUNT( * ) / - + 68 * 60 / - 35 THEN NULL ELSE + + 89 - - 47 END * - - 70 / + + 10 + - CASE COALESCE ( 69, + ( + MIN( + + 18 ) ) ) WHEN + 82 * + - 98 THEN CAST( NULL AS SIGNED ) WHEN - - 92 - MAX( - 79 ) + - 87 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT + CASE + 65 WHEN - COUNT ( * ) / - + 68 * 60 / - 35 THEN NULL ELSE + + 89 - - 47 END * - - 70 / + + 10 + - CASE COALESCE ( 69, + ( + MIN ( + + 18 ) ) ) WHEN + 82 * + - 98 THEN CAST ( NULL AS INTEGER ) WHEN - - 92 - MAX ( - 79 ) + - 87 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2544
SELECT + 94 * 98 AS col0, COUNT( * )
----
9212
1

skipif mysql # not compatible
query II rowsort label-2544
SELECT + 94 * 98 AS col0, COUNT ( * )
----
9212
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2545
SELECT SUM( - 58 ) * MAX( - NULLIF ( - 69, - 76 / + 19 + - 9 * + - 47 * 20 + - CAST( - 44 AS SIGNED ) ) ) + + 17 AS col2, 76 + + 47 * 69
----
-3985
3319

skipif mysql # not compatible
query II rowsort label-2545
SELECT SUM ( - 58 ) * MAX ( - NULLIF ( - 69, - 76 / + 19 + - 9 * + - 47 * 20 + - CAST ( - 44 AS INTEGER ) ) ) + + 17 AS col2, 76 + + 47 * 69
----
-3985
3319

query I rowsort
SELECT ALL + NULLIF ( + + 81, - + 78 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT + 82 * + - 6 - MAX( DISTINCT - 96 )
----
-396

skipif mysql # not compatible
query I rowsort label-2547
SELECT + 82 * + - 6 - MAX ( DISTINCT - 96 )
----
-396

query II rowsort
SELECT ALL NULLIF ( + + 36, 16 ) * + 87 * + 39 * + 48 + 35 AS col0, + 46 * - 40 * ( - 61 ) + + 58
----
5863139
112298

query I rowsort
SELECT DISTINCT + 32 * 65 + - 70
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL + COALESCE ( COUNT( * ), - 45 + - + SUM( - 28 ) + - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + COALESCE ( COUNT ( * ), - 45 + - + SUM ( - 28 ) + - 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + 90 * COUNT( * ) + - - 54 + - + ( 18 ) - + 88 * + 36
----
-3042

skipif mysql # not compatible
query I rowsort label-2551
SELECT + 90 * COUNT ( * ) + - - 54 + - + ( 18 ) - + 88 * + 36
----
-3042

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL 48 * - - 72 - + COUNT( * ) + - 50 * - COUNT( * ) * + - 97 AS col0
----
-1395

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL 48 * - - 72 - + COUNT ( * ) + - 50 * - COUNT ( * ) * + - 97 AS col0
----
-1395

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT 75 * - - 92 + + - MAX( + 23 )
----
6877

skipif mysql # not compatible
query I rowsort label-2553
SELECT 75 * - - 92 + + - MAX ( + 23 )
----
6877

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT - CAST( + 36 AS SIGNED ) * + CASE COUNT( * ) WHEN 85 THEN COUNT( * ) WHEN + 26 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT - CAST ( + 36 AS INTEGER ) * + CASE COUNT ( * ) WHEN 85 THEN COUNT ( * ) WHEN + 26 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2555
SELECT - 95 DIV - ( + 89 ) * + 1 + - - 57 - + COUNT( * ) AS col0, - 74
----
57
-74

skipif mysql # not compatible
query II rowsort label-2555
SELECT - 95 / - ( + 89 ) * + 1 + - - 57 - + COUNT ( * ) AS col0, - 74
----
57
-74

query I rowsort
SELECT ALL 29 * - 46 - + 92 + - - 18 AS col0
----
-1408

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT - MIN( + 18 ) - COUNT( * ), + 11 col0
----
-19
11

skipif mysql # not compatible
query II rowsort label-2557
SELECT - MIN ( + 18 ) - COUNT ( * ), + 11 col0
----
-19
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT + CASE + 9 WHEN ( 73 ) THEN - COUNT( * ) - + - 68 END * - 77 * - ( + AVG ( 69 ) ) / SUM( DISTINCT - 3 ) - + 91 * NULLIF ( 14, 97 ) / - - 42 + - COUNT( * ) / + 3 - - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT + CASE + 9 WHEN ( 73 ) THEN - COUNT ( * ) - + - 68 END * - 77 * - ( + AVG ( 69 ) ) / SUM ( DISTINCT - 3 ) - + 91 * NULLIF ( 14, 97 ) / - - 42 + - COUNT ( * ) / + 3 - - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL + 40 * - + 97 * - ( - + 26 ) AS col0
----
-100880

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

query I rowsort
SELECT - 36 + + - 60
----
-96

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

query I rowsort
SELECT DISTINCT CASE 30 WHEN 6 THEN + + 80 ELSE NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2565
SELECT - 29 DIV + 58 * - 96 AS col1, + 34
----
0
34

skipif mysql # not compatible
query II rowsort label-2565
SELECT - 29 / + 58 * - 96 AS col1, + 34
----
0
34

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

query I rowsort
SELECT - NULLIF ( - 88, + 52 / 7 + - 7 / 39 ) + - 3 + - 1 * + 48 + 92 AS col2
----
129

query I rowsort
SELECT - 6 - - - 92
----
-98

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

skipif mysql # not compatible
query I rowsort label-2569
SELECT + 64 / - COUNT ( * ) col0
----
-64

query I rowsort
SELECT - 76 + COALESCE ( + + 4, - - 72, - 2 ) col0
----
-72

query I rowsort
SELECT + 82 - + 63 col2
----
19

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

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

query I rowsort
SELECT - 52 + + + 80
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2574
SELECT - + COUNT( * ) + 72 + 39 * - CAST( NULL AS DECIMAL ) + + + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT - + COUNT ( * ) + 72 + 39 * - CAST ( NULL AS REAL ) + + + 43 AS col2
----
NULL

query I rowsort
SELECT ALL 34 + + - 87 AS col1
----
-53

query I rowsort
SELECT + - 47 + - 7 + + ( + - 70 )
----
-124

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

query I rowsort
SELECT + - 31 * + + 59
----
-1829

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT + + 84 + + SUM( DISTINCT + ( + 18 ) ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT + + 84 + + SUM ( DISTINCT + ( + 18 ) ) AS col1
----
102

query II rowsort
SELECT ALL 88, 36 AS col1
----
88
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2581
SELECT ALL - 92 + + 26 + - + NULLIF ( + 58, + 22 + - MAX( - + ( - ( + + 10 ) ) ) ) * - CAST( - 58 AS SIGNED )
----
-3430

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL - 92 + + 26 + - + NULLIF ( + 58, + 22 + - MAX ( - + ( - ( + + 10 ) ) ) ) * - CAST ( - 58 AS INTEGER )
----
-3430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT COALESCE ( COALESCE ( MIN( 8 ), + - CAST( NULL AS SIGNED ), + 9 + 30 ), + 25, - - 32 )
----
8

skipif mysql # not compatible
query I rowsort label-2582
SELECT COALESCE ( COALESCE ( MIN ( 8 ), + - CAST ( NULL AS INTEGER ), + 9 + 30 ), + 25, - - 32 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT - 30 / COUNT( * ) + 31 + + 19 * - 45 * + MAX( + - ( CAST( NULL AS SIGNED ) ) ) / + 8 - + COALESCE ( 90, - 21 ) + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT - 30 / COUNT ( * ) + 31 + + 19 * - 45 * + MAX ( + - ( CAST ( NULL AS INTEGER ) ) ) / + 8 - + COALESCE ( 90, - 21 ) + + 14
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT DISTINCT - 43 DIV - + 20
----
2

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT - 43 / - + 20
----
2

query I rowsort
SELECT DISTINCT + - COALESCE ( - 42, - - NULLIF ( - 24, - 59 * + 97 ) * + 55 * - 59 ) col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT ALL - 92 DIV + 69 + - 56
----
-57

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - 92 / + 69 + - 56
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT ALL + 56 DIV 58 + + 82
----
82

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + 56 / 58 + + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + - 27 * - - COUNT( * ) + 40 + + + 88 * - 3 col0
----
-251

skipif mysql # not compatible
query I rowsort label-2588
SELECT + - 27 * - - COUNT ( * ) + 40 + + + 88 * - 3 col0
----
-251

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

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

query I rowsort
SELECT ALL 11 * - 20
----
-220

query II rowsort
SELECT ALL + + 86 AS col2, - 87 * + 98 * - 46 AS col2
----
86
392196

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + 78 * - - MIN( DISTINCT + 94 )
----
7332

skipif mysql # not compatible
query I rowsort label-2592
SELECT + 78 * - - MIN ( DISTINCT + 94 )
----
7332

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

skipif mysql # not compatible
query I rowsort label-2593
SELECT + ( - NULLIF ( COUNT ( * ), + 73 ) ) AS col1
----
-1

query II rowsort
SELECT DISTINCT 56 * + 49 - + 58 * 99 AS col0, - 14
----
-2998
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ( MIN( - 93 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2595
SELECT ( MIN ( - 93 ) ) AS col2
----
-93

query I rowsort
SELECT - ( 4 ) * - 51 + + + 99 - + 10
----
293

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT CASE - SUM( DISTINCT 55 ) WHEN 79 THEN + 87 + 4 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT CASE - SUM ( DISTINCT 55 ) WHEN 79 THEN + 87 + 4 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT + COUNT( * ) * - 46 * - 85 * + - 19 AS col2
----
-74290

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT + COUNT ( * ) * - 46 * - 85 * + - 19 AS col2
----
-74290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT + CAST( 86 AS SIGNED ) * - + 42 + 39 AS col2
----
-3573

skipif mysql # not compatible
query I rowsort label-2599
SELECT + CAST ( 86 AS INTEGER ) * - + 42 + 39 AS col2
----
-3573

query I rowsort
SELECT - 88 * + + 71
----
-6248

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT 26 + - 56 + + COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2601
SELECT 26 + - 56 + + COUNT ( * ) AS col0
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2602
SELECT 35 + - COUNT( * ) DIV 38 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2602
SELECT 35 + - COUNT ( * ) / 38 AS col1
----
35

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

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - MAX ( + 38 ) * - - COUNT ( * ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT 9 * + MIN( 94 )
----
846

skipif mysql # not compatible
query I rowsort label-2604
SELECT 9 * + MIN ( 94 )
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ( + + MIN( - 97 ) ) * + 64 + - + 7 AS col2
----
-6215

skipif mysql # not compatible
query I rowsort label-2605
SELECT ( + + MIN ( - 97 ) ) * + 64 + - + 7 AS col2
----
-6215

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2606
SELECT ALL - - 61 DIV - 10 AS col1, CAST( NULL AS SIGNED ) + - ( + 14 ) AS col1
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-2606
SELECT ALL - - 61 / - 10 AS col1, CAST ( NULL AS INTEGER ) + - ( + 14 ) AS col1
----
-6
NULL

query I rowsort
SELECT ALL + 7 + + - 64
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-2608
SELECT 28 - - COUNT( * ) AS col1, - 16
----
29
-16

skipif mysql # not compatible
query II rowsort label-2608
SELECT 28 - - COUNT ( * ) AS col1, - 16
----
29
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT - 24 * 37 + - - COUNT( - - 19 ) * + 16 AS col1
----
-872

skipif mysql # not compatible
query I rowsort label-2609
SELECT - 24 * 37 + - - COUNT ( - - 19 ) * + 16 AS col1
----
-872

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT - MIN( ALL - 40 ) + - + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-2610
SELECT - MIN ( ALL - 40 ) + - + COUNT ( * )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2611
SELECT - - COALESCE ( + CAST( + + 98 AS SIGNED ), 71 * + ( ( - 69 ) ) * - - ( - 98 ) * 97 * + - COALESCE ( + + 80, + ( MAX( 20 ) ) ) - + - 13 + + 25 )
----
98

skipif mysql # not compatible
query I rowsort label-2611
SELECT - - COALESCE ( + CAST ( + + 98 AS INTEGER ), 71 * + ( ( - 69 ) ) * - - ( - 98 ) * 97 * + - COALESCE ( + + 80, + ( MAX ( 20 ) ) ) - + - 13 + + 25 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT ( - 40 ) + - 14 DIV - + 14 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2612
SELECT ( - 40 ) + - 14 / - + 14 AS col2
----
-39

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

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

query I rowsort
SELECT ALL - NULLIF ( 91, - 58 )
----
-91

query I rowsort
SELECT ALL + 80 + + 38 AS col1
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT ( + SUM( + 92 ) ) - 88, ( + - 92 ) * + 73 - - COUNT( * ) * + ( 22 ) + + + 9 col1
----
4
-6685

skipif mysql # not compatible
query II rowsort label-2616
SELECT ( + SUM ( + 92 ) ) - 88, ( + - 92 ) * + 73 - - COUNT ( * ) * + ( 22 ) + + + 9 col1
----
4
-6685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2617
SELECT + 11 * COUNT( * ) - COALESCE ( COUNT( * ), COUNT( * ) ), 67 * - COUNT( * ) / - CAST( NULL AS SIGNED ) + - + 7 AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-2617
SELECT + 11 * COUNT ( * ) - COALESCE ( COUNT ( * ), COUNT ( * ) ), 67 * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - + 7 AS col2
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT - COALESCE ( + + 78, + - 31, - 15 + + - COUNT( * ) - + COALESCE ( + + 84, + - COALESCE ( - 11, - 3 ) * - 84, + NULLIF ( - 88, - 93 ) ) - + 5 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT - COALESCE ( + + 78, + - 31, - 15 + + - COUNT ( * ) - + COALESCE ( + + 84, + - COALESCE ( - 11, - 3 ) * - 84, + NULLIF ( - 88, - 93 ) ) - + 5 ) col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT + 23 DIV 97 + 1 + - - ( - 35 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2619
SELECT + 23 / 97 + 1 + - - ( - 35 ) AS col0
----
-34

query I rowsort
SELECT ALL - - 15 - - - 64 + - 80 col2
----
-129

query I rowsort
SELECT 77 * - + 97 AS col1
----
-7469

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2623
SELECT ( 26 ) DIV - ( - - 33 ) + + COUNT( * ) + - - 77 * + + 9 + 91 + + MIN( ALL - - 13 ) AS col1
----
798

skipif mysql # not compatible
query I rowsort label-2623
SELECT ( 26 ) / - ( - - 33 ) + + COUNT ( * ) + - - 77 * + + 9 + 91 + + MIN ( ALL - - 13 ) AS col1
----
798

query I rowsort
SELECT 75 * + 69 AS col1
----
5175

onlyif mysql # DIV for integer division: 
query II rowsort label-2625
SELECT ALL 78 DIV 90 * 19 AS col1, - 46 AS col0
----
0
-46

skipif mysql # not compatible
query II rowsort label-2625
SELECT ALL 78 / 90 * 19 AS col1, - 46 AS col0
----
0
-46

query II rowsort
SELECT DISTINCT - 17 AS col2, 90
----
-17
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT 94 DIV 74 * 79 * + 25
----
1975

skipif mysql # not compatible
query I rowsort label-2628
SELECT 94 / 74 * 79 * + 25
----
1975

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT ALL - 22 DIV - + 8 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - 22 / - + 8 AS col2
----
2

query I rowsort
SELECT 0 * 43
----
0

query I rowsort
SELECT ALL 77 * - 49
----
-3773

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

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

query I rowsort
SELECT 90 + + 21
----
111

query II rowsort
SELECT DISTINCT - 61, + 81 AS col1
----
-61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL ( + + COUNT( * ) ) * 86 * - ( + 57 ) + + - NULLIF ( - 9, + 83 / - 74 + 99 + 17 * + + 77 ) + 21 + - 81 * + + 56 * + 77 - - CASE + 63 WHEN 19 + + COALESCE ( - 99, - 92 ) * MAX( 96 ) THEN NULL ELSE 90 END * + + 76 + + 84 * + + 19
----
-345708

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL ( + + COUNT ( * ) ) * 86 * - ( + 57 ) + + - NULLIF ( - 9, + 83 / - 74 + 99 + 17 * + + 77 ) + 21 + - 81 * + + 56 * + 77 - - CASE + 63 WHEN 19 + + COALESCE ( - 99, - 92 ) * MAX ( 96 ) THEN NULL ELSE 90 END * + + 76 + + 84 * + + 19
----
-345708

query I rowsort
SELECT ( 68 ) + ( 52 ) + + - 86
----
34

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

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT 6 + + + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT COUNT( * ) - 29 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2638
SELECT COUNT ( * ) - 29 AS col0
----
-28

query I rowsort
SELECT DISTINCT 57 col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT ALL 41 + + 45 DIV SUM( DISTINCT + 12 )
----
44

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL 41 + + 45 / SUM ( DISTINCT + 12 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2641
SELECT DISTINCT 13 AS col0, - CASE + 88 WHEN + + 1 * + 20 * + 93 * - 50 * + 0 THEN NULL WHEN + MIN( - 0 ) * + 74 / + + CASE 97 WHEN - + 48 THEN + COUNT( * ) * COUNT( * ) END THEN + MIN( ALL - 47 ) * - + 71 + - 33 END * + 20
----
13
NULL

skipif mysql # not compatible
query II rowsort label-2641
SELECT DISTINCT 13 AS col0, - CASE + 88 WHEN + + 1 * + 20 * + 93 * - 50 * + 0 THEN NULL WHEN + MIN ( - 0 ) * + 74 / + + CASE 97 WHEN - + 48 THEN + COUNT ( * ) * COUNT ( * ) END THEN + MIN ( ALL - 47 ) * - + 71 + - 33 END * + 20
----
13
NULL

query I rowsort
SELECT DISTINCT 70 + - 77
----
-7

query I rowsort
SELECT ALL - 60 * + 8 AS col2
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT 44 + - COUNT( * ) + + + 96 col2
----
139

skipif mysql # not compatible
query I rowsort label-2644
SELECT 44 + - COUNT ( * ) + + + 96 col2
----
139

query I rowsort
SELECT ALL 5 + - 42
----
-37

query I rowsort
SELECT ( - 84 ) + 99 * 90 AS col2
----
8826

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT 60 - 38 * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2647
SELECT 60 - 38 * COUNT ( * )
----
22

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

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

query I rowsort
SELECT 34 + - 70 col2
----
-36

query I rowsort
SELECT 79 + + 90 AS col1
----
169

query I rowsort
SELECT ALL - 24 - 67
----
-91

query I rowsort
SELECT 60 + 88
----
148

query I rowsort
SELECT 69 + 1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT 85 * COUNT( - 46 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-2654
SELECT 85 * COUNT ( - 46 ) AS col2
----
85

query I rowsort
SELECT 59 * - 92 col1
----
-5428

query I rowsort
SELECT 95 * + 35
----
3325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2657
SELECT ( + CAST( NULL AS SIGNED ) ) / COUNT( * ) + - ( MAX( DISTINCT + 22 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) + - ( MAX ( DISTINCT + 22 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2658
SELECT - 67 / + CASE - COALESCE ( 18, + 8 ) * - 52 WHEN - 20 THEN COUNT( * ) + - CAST( NULL AS SIGNED ) END + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT - 67 / + CASE - COALESCE ( 18, + 8 ) * - 52 WHEN - 20 THEN COUNT ( * ) + - CAST ( NULL AS INTEGER ) END + 8 AS col1
----
NULL

query I rowsort
SELECT ALL - 26 * - 8 AS col2
----
208

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

query I rowsort
SELECT DISTINCT - 35 * - 64
----
2240

query I rowsort
SELECT ALL - NULLIF ( 51, + ( - 40 ) ) AS col1
----
-51

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

query I rowsort
SELECT DISTINCT - 8 * - 14
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT + 6 + - 31 DIV - 99 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2665
SELECT + 6 + - 31 / - 99 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + SUM( DISTINCT 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + SUM ( DISTINCT 67 ) AS col1
----
67

query I rowsort
SELECT - 77 * + 6 AS col1
----
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2668
SELECT COUNT( * ) * - CASE WHEN 63 <> - SUM( 89 ) * 30 + CAST( - 76 - COUNT( + 91 ) AS SIGNED ) THEN 9 * 13 ELSE COUNT( * ) * + 43 END + + 35 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2668
SELECT COUNT ( * ) * - CASE WHEN 63 <> - SUM ( 89 ) * 30 + CAST ( - 76 - COUNT ( + 91 ) AS INTEGER ) THEN 9 * 13 ELSE COUNT ( * ) * + 43 END + + 35 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT + MAX( 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2669
SELECT + MAX ( 66 ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT ALL + 71 * + CAST( NULL AS SIGNED ) + - ( 12 + 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + 71 * + CAST ( NULL AS INTEGER ) + - ( 12 + 15 ) AS col2
----
NULL

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

query I rowsort
SELECT ALL + 91 + - 81
----
10

query I rowsort
SELECT + 47 + 10 AS col0
----
57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT 55 * CAST( 87 AS SIGNED ) + 15 col2
----
4800

skipif mysql # not compatible
query I rowsort label-2675
SELECT 55 * CAST ( 87 AS INTEGER ) + 15 col2
----
4800

query I rowsort
SELECT ALL - 19 + 3 * + 12 AS col0
----
17

query I rowsort
SELECT ALL 93 * 89
----
8277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2678
SELECT + COUNT( - 83 ) DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2678
SELECT + COUNT ( - 83 ) / - 92 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2679
SELECT - 11 * COUNT ( * )
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - - 74 * SUM( 97 * - 31 )
----
-222518

skipif mysql # not compatible
query I rowsort label-2681
SELECT - - 74 * SUM ( 97 * - 31 )
----
-222518

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT + - 69 + 80 DIV - 37
----
-71

skipif mysql # not compatible
query I rowsort label-2682
SELECT + - 69 + 80 / - 37
----
-71

query I rowsort
SELECT + - 10 * 26 AS col2
----
-260

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

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

query I rowsort
SELECT - + NULLIF ( + 37, - 98 ) col0
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT + COUNT( * ) * + MIN( ALL 5 + - 71 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2687
SELECT + COUNT ( * ) * + MIN ( ALL 5 + - 71 ) AS col2
----
-66

query I rowsort
SELECT + 19 + + 42 AS col2
----
61

query I rowsort
SELECT ALL 89 - 4
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT DISTINCT + 80 - - 66 * + MIN( DISTINCT - 10 )
----
-580

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT + 80 - - 66 * + MIN ( DISTINCT - 10 )
----
-580

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

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

query I rowsort
SELECT ALL + 53 - - 16 AS col0
----
69

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

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

query I rowsort
SELECT DISTINCT - + 89 * 55 col0
----
-4895

query I rowsort
SELECT + - 73 - 2 AS col1
----
-75

query I rowsort
SELECT - + 92 * 85 AS col1
----
-7820

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT + - 23 + 97 * COALESCE ( 3, + COUNT( * ) * + 98 )
----
268

skipif mysql # not compatible
query I rowsort label-2697
SELECT + - 23 + 97 * COALESCE ( 3, + COUNT ( * ) * + 98 )
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT - NULLIF ( CASE 20 WHEN 87 * + 39 THEN + 31 + - COUNT( * ) ELSE COUNT( * ) END, + 18 ) + 50 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2698
SELECT - NULLIF ( CASE 20 WHEN 87 * + 39 THEN + 31 + - COUNT ( * ) ELSE COUNT ( * ) END, + 18 ) + 50 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL + - 47 * - COUNT( + 60 )
----
47

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + - 47 * - COUNT ( + 60 )
----
47

query I rowsort
SELECT ALL 58 * 5 AS col0
----
290

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT - 13 DIV - 38 col0
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT - 13 / - 38 col0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT - 77 / + ( CAST( + 59 AS SIGNED ) ) / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT - 77 / + ( CAST ( + 59 AS INTEGER ) ) / CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT + 77 * - + 92 * 69 + ( + NULLIF ( 90, NULLIF ( + 76, 21 ) * - CASE ( 13 ) * 41 + 46 * - 4 WHEN + 90 * 22 THEN ( 73 ) WHEN + 32 THEN 44 WHEN - 67 * - 55 THEN 69 ELSE NULL END + + ( + COUNT( * ) ) / 12 ) )
----
-488706

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT + 77 * - + 92 * 69 + ( + NULLIF ( 90, NULLIF ( + 76, 21 ) * - CASE ( 13 ) * 41 + 46 * - 4 WHEN + 90 * 22 THEN ( 73 ) WHEN + 32 THEN 44 WHEN - 67 * - 55 THEN 69 ELSE NULL END + + ( + COUNT ( * ) ) / 12 ) )
----
-488706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2705
SELECT - 59 * COUNT( * ) * CAST( + 54 AS SIGNED )
----
-3186

skipif mysql # not compatible
query I rowsort label-2705
SELECT - 59 * COUNT ( * ) * CAST ( + 54 AS INTEGER )
----
-3186

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

query I rowsort
SELECT ALL + CASE - - 92 WHEN ( + 76 ) THEN NULL ELSE 6 END AS col2
----
6

query I rowsort
SELECT DISTINCT + 83 * + 62 + 24 AS col2
----
5170

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

query I rowsort
SELECT ALL + 59 * - 6 * 60
----
-21240

query I rowsort
SELECT - 23 * + 94
----
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL - ( 91 ) * COUNT( * ) + - ( - 41 )
----
-50

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - ( 91 ) * COUNT ( * ) + - ( - 41 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT COALESCE ( 38, + COUNT( * ), + NULLIF ( 80, 20 ) * COALESCE ( - 8, - 45 * NULLIF ( + 62 * + 72, + 28 / + COUNT( * ) ) ) )
----
38

skipif mysql # not compatible
query I rowsort label-2713
SELECT COALESCE ( 38, + COUNT ( * ), + NULLIF ( 80, 20 ) * COALESCE ( - 8, - 45 * NULLIF ( + 62 * + 72, + 28 / + COUNT ( * ) ) ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2714
SELECT ALL + CAST( - + MIN( CAST( NULL AS DECIMAL ) ) AS SIGNED ) * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + CAST ( - + MIN ( CAST ( NULL AS REAL ) ) AS INTEGER ) * - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - 87 + - 39
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT + COUNT( - 65 ) * + 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2716
SELECT + COUNT ( - 65 ) * + 8 AS col0
----
8

query I rowsort
SELECT - 64 + - 92
----
-156

query I rowsort
SELECT ALL + 54 * + 29 - 56
----
1510

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT - 92 * - 29 * - ( + 76 * COUNT( * ) ) + 60 * 32
----
-200848

skipif mysql # not compatible
query I rowsort label-2719
SELECT - 92 * - 29 * - ( + 76 * COUNT ( * ) ) + 60 * 32
----
-200848

query I rowsort
SELECT - + 37 + 54 * + 59 AS col0
----
3149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2721
SELECT 62 * + - CAST( NULL AS SIGNED ) + 9 + + CASE + MAX( + 8 ) WHEN 45 * 22 THEN + 34 / - 41 WHEN 3 THEN NULL WHEN 65 * NULLIF ( - ( 6 ), 5 * + 72 + 44 * 90 ) THEN NULL END * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT 62 * + - CAST ( NULL AS INTEGER ) + 9 + + CASE + MAX ( + 8 ) WHEN 45 * 22 THEN + 34 / - 41 WHEN 3 THEN NULL WHEN 65 * NULLIF ( - ( 6 ), 5 * + 72 + 44 * 90 ) THEN NULL END * + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2722
SELECT + + COUNT( DISTINCT + + 36 ) + 40 DIV + 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2722
SELECT + + COUNT ( DISTINCT + + 36 ) + 40 / + 58 AS col2
----
1

query I rowsort
SELECT + 79 * + 21 * + 28
----
46452

query I rowsort
SELECT - + 2 + 31 * 6
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + + COUNT( * ) * - 20 * 51 + + 63 AS col2
----
-957

skipif mysql # not compatible
query I rowsort label-2725
SELECT + + COUNT ( * ) * - 20 * 51 + + 63 AS col2
----
-957

query I rowsort
SELECT ALL - ( + 12 ) * 6 AS col1
----
-72

query I rowsort
SELECT - 36 + - 18 - - NULLIF ( + 3 + 51, 99 * 93 + + 74 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - COUNT( * ) * + 56 + + 26 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2729
SELECT - COUNT ( * ) * + 56 + + 26 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - CASE + ( + MAX( ALL + 28 ) ) WHEN ( - 36 ) * - COUNT( * ) THEN NULL WHEN - 96 + - 3 THEN + 1 END + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT - CASE + ( + MAX ( ALL + 28 ) ) WHEN ( - 36 ) * - COUNT ( * ) THEN NULL WHEN - 96 + - 3 THEN + 1 END + 88
----
NULL

query I rowsort
SELECT + 19 + + + 95
----
114

query I rowsort
SELECT + 59 * 77 + 23
----
4566

query I rowsort
SELECT + - 30 * - 6
----
180

query I rowsort
SELECT ALL + - COALESCE ( - - 60, + 55 * 73 ) * - 19 AS col1
----
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2735
SELECT + - CAST( 70 AS SIGNED ) + CASE 67 + 44 * - COUNT( * ) WHEN - 30 * - 3 - 75 THEN 92 + + 56 WHEN CAST( MAX( + 84 ) AS DECIMAL ) THEN NULL WHEN 68 - 11 * ( + 80 + 71 ) THEN COUNT( * ) ELSE NULL END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT + - CAST ( 70 AS INTEGER ) + CASE 67 + 44 * - COUNT ( * ) WHEN - 30 * - 3 - 75 THEN 92 + + 56 WHEN CAST ( MAX ( + 84 ) AS REAL ) THEN NULL WHEN 68 - 11 * ( + 80 + 71 ) THEN COUNT ( * ) ELSE NULL END * 85
----
NULL

query I rowsort
SELECT + - 69 * + - 59 AS col2
----
4071

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ( - 45 ) + + MIN( DISTINCT 6 )
----
-39

skipif mysql # not compatible
query I rowsort label-2737
SELECT ( - 45 ) + + MIN ( DISTINCT 6 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT ALL COUNT( + 10 ) + - - 54 + 17
----
72

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL COUNT ( + 10 ) + - - 54 + 17
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-2739
SELECT + 31, + 54 DIV + COALESCE ( + 13, - 24 * - COALESCE ( - 22, - 83 ) ) + 39 AS col0
----
31
43

skipif mysql # not compatible
query II rowsort label-2739
SELECT + 31, + 54 / + COALESCE ( + 13, - 24 * - COALESCE ( - 22, - 83 ) ) + 39 AS col0
----
31
43

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT ALL ( - 85 ) * + CAST( + 76 AS SIGNED ) + 92
----
-6368

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL ( - 85 ) * + CAST ( + 76 AS INTEGER ) + 92
----
-6368

query I rowsort
SELECT DISTINCT - CASE + 51 WHEN - 58 + - 42 THEN 18 WHEN + AVG ( + 41 ) * ( 69 ) + 2 / + 97 THEN - 76 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2743
SELECT 55 * - + 84 + 43 - 58 * - ( 51 + + 29 DIV 54 ) AS col1
----
-1619

skipif mysql # not compatible
query I rowsort label-2743
SELECT 55 * - + 84 + 43 - 58 * - ( 51 + + 29 / 54 ) AS col1
----
-1619

query I rowsort
SELECT DISTINCT 53 + - + 51 + - 11 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL - ( + SUM( ALL + COALESCE ( + 36, 48 ) ) )
----
-36

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - ( + SUM ( ALL + COALESCE ( + 36, 48 ) ) )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT - 95 DIV - + 31 + + + 30 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2746
SELECT - 95 / - + 31 + + + 30 AS col2
----
33

query I rowsort
SELECT DISTINCT + 19 + - 52 + 37
----
4

query I rowsort
SELECT 45 + 76
----
121

query I rowsort
SELECT 54 * + 61 AS col2
----
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ALL - 1 * + CASE - ( 35 ) WHEN - 16 + - 25 THEN - COUNT( * ) ELSE ( - 75 ) END * - 32 AS col2
----
-2400

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - 1 * + CASE - ( 35 ) WHEN - 16 + - 25 THEN - COUNT ( * ) ELSE ( - 75 ) END * - 32 AS col2
----
-2400

query I rowsort
SELECT 44 * NULLIF ( - 0, + 22 + 65 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2752
SELECT ALL 46 DIV - NULLIF ( - 49, - 70 ) * + CAST( ( COALESCE ( - 4, - COUNT( * ) ) ) * 67 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL 46 / - NULLIF ( - 49, - 70 ) * + CAST ( ( COALESCE ( - 4, - COUNT ( * ) ) ) * 67 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT + 27 DIV - 36
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT + 27 / - 36
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2754
SELECT DISTINCT - - 66 AS col2, CAST( + - MIN( DISTINCT ( + 42 ) ) AS SIGNED ) AS col2
----
66
-42

skipif mysql # not compatible
query II rowsort label-2754
SELECT DISTINCT - - 66 AS col2, CAST ( + - MIN ( DISTINCT ( + 42 ) ) AS INTEGER ) AS col2
----
66
-42

query I rowsort
SELECT ALL + 86 - + 90 AS col2
----
-4

query I rowsort
SELECT DISTINCT + + ( 25 ) * - 71 - + 73
----
-1848

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT + 25 AS col1, SUM( ALL - - 26 )
----
25
26

skipif mysql # not compatible
query II rowsort label-2757
SELECT + 25 AS col1, SUM ( ALL - - 26 )
----
25
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT + MIN( DISTINCT - 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-2758
SELECT + MIN ( DISTINCT - 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - 34 * + ( + - COUNT( * ) ) - 84 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2759
SELECT - 34 * + ( + - COUNT ( * ) ) - 84 AS col2
----
-50

query II rowsort
SELECT - 76 AS col2, - 39 * 50 AS col0
----
-76
-1950

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

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - - 76 + - 41 + - COUNT ( * ) AS col1
----
34

query II rowsort
SELECT - 59 AS col2, 30
----
-59
30

query II rowsort
SELECT - + 13 AS col2, 70 AS col0
----
-13
70

query I rowsort
SELECT DISTINCT + + 51 + + + 75 + + 54 AS col2
----
180

query I rowsort
SELECT 46 - + 49 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2766
SELECT ALL + COUNT( * ) + COUNT( * ) - - ( + + 31 ) - SUM( 47 + CASE 71 WHEN + CAST( NULL AS SIGNED ) * + 64 THEN + 65 + 90 END ) * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + COUNT ( * ) + COUNT ( * ) - - ( + + 31 ) - SUM ( 47 + CASE 71 WHEN + CAST ( NULL AS INTEGER ) * + 64 THEN + 65 + 90 END ) * 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT 94 + + - COUNT( * ) - - COALESCE ( + 10, - ( - 99 ) * 81 + + 54 * 43, 85 - 34, - COUNT( * ) * CASE + 55 WHEN 5 - AVG ( + 70 ) THEN NULL ELSE - 15 + + 83 END ) + ( + 49 ) * 16 * + 61 * COUNT( * )
----
47927

skipif mysql # not compatible
query I rowsort label-2767
SELECT 94 + + - COUNT ( * ) - - COALESCE ( + 10, - ( - 99 ) * 81 + + 54 * 43, 85 - 34, - COUNT ( * ) * CASE + 55 WHEN 5 - AVG ( + 70 ) THEN NULL ELSE - 15 + + 83 END ) + ( + 49 ) * 16 * + 61 * COUNT ( * )
----
47927

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT 39 * + 93 DIV COUNT( * ) * - COUNT( * ) AS col2
----
-3627

skipif mysql # not compatible
query I rowsort label-2769
SELECT 39 * + 93 / COUNT ( * ) * - COUNT ( * ) AS col2
----
-3627

query I rowsort
SELECT ALL - 59 * - 24 * - 5 col1
----
-7080

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT ALL COUNT( * ) + 94
----
95

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL COUNT ( * ) + 94
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2772
SELECT - 91 DIV - 90 + - NULLIF ( 14, + 39 ) - 6 * COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-2772
SELECT - 91 / - 90 + - NULLIF ( 14, + 39 ) - 6 * COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT NULLIF ( + ( - + 59 ), + MAX( 15 ) + CASE 24 WHEN COUNT( DISTINCT 88 ) THEN + 98 * 0 + 17 END ) * 13 AS col2
----
-767

skipif mysql # not compatible
query I rowsort label-2773
SELECT NULLIF ( + ( - + 59 ), + MAX ( 15 ) + CASE 24 WHEN COUNT ( DISTINCT 88 ) THEN + 98 * 0 + 17 END ) * 13 AS col2
----
-767

query I rowsort
SELECT + 46 * + + 92 - - + 0 + 48
----
4280

query I rowsort
SELECT DISTINCT 93 * + 34 AS col0
----
3162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2776
SELECT DISTINCT 5 * 87 AS col2, 91 + CAST( 22 AS SIGNED ) AS col2
----
435
113

skipif mysql # not compatible
query II rowsort label-2776
SELECT DISTINCT 5 * 87 AS col2, 91 + CAST ( 22 AS INTEGER ) AS col2
----
435
113

query I rowsort
SELECT 54 * 46 AS col0
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - - SUM( + - 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - - SUM ( + - 5 ) AS col1
----
-5

query I rowsort
SELECT 33 * + - 15 AS col2
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2780
SELECT ALL - - COALESCE ( 20, + 48 * + COUNT( * ) DIV + COUNT( * ) + + 1, SUM( DISTINCT 47 ) * 58 )
----
20

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - - COALESCE ( 20, + 48 * + COUNT ( * ) / + COUNT ( * ) + + 1, SUM ( DISTINCT 47 ) * 58 )
----
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL - CASE - NULLIF ( - COUNT( + 85 ), - 68 ) WHEN + 16 * - 18 + - 83 THEN COUNT( * ) - 52 * - 80 WHEN + 77 + NULLIF ( + 98 + - 82, 70 ) / 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - CASE - NULLIF ( - COUNT ( + 85 ), - 68 ) WHEN + 16 * - 18 + - 83 THEN COUNT ( * ) - 52 * - 80 WHEN + 77 + NULLIF ( + 98 + - 82, 70 ) / 60 THEN NULL END
----
NULL

query I rowsort
SELECT NULLIF ( - - 57, - 11 ) + + - 78 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT + CASE + - 68 WHEN + 64 THEN NULL WHEN COUNT( * ) THEN 37 * 4 + + 6 * COALESCE ( 19, + 12, + 17 + COALESCE ( 83, - SUM( + 70 ) * + 75 ) ) END * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT + CASE + - 68 WHEN + 64 THEN NULL WHEN COUNT ( * ) THEN 37 * 4 + + 6 * COALESCE ( 19, + 12, + 17 + COALESCE ( 83, - SUM ( + 70 ) * + 75 ) ) END * 72 AS col0
----
NULL

query I rowsort
SELECT ALL - 30 + - 70 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT DISTINCT + 72 + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT + 72 + COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2787
SELECT ALL - CAST( - 95 AS SIGNED ) + SUM( DISTINCT CASE 77 WHEN + 41 / 32 - 22 THEN 86 END ) + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - CAST ( - 95 AS INTEGER ) + SUM ( DISTINCT CASE 77 WHEN + 41 / 32 - 22 THEN 86 END ) + 94
----
NULL

query I rowsort
SELECT - 54 + 90 + + 18 + + + 61
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL - MAX( DISTINCT + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - MAX ( DISTINCT + 65 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT - CASE - 32 WHEN + 26 THEN - 78 * CAST( 45 AS SIGNED ) WHEN + SUM( ALL CAST( NULL AS SIGNED ) ) THEN 60 WHEN + 94 * 7 THEN NULL END + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT - CASE - 32 WHEN + 26 THEN - 78 * CAST ( 45 AS INTEGER ) WHEN + SUM ( ALL CAST ( NULL AS INTEGER ) ) THEN 60 WHEN + 94 * 7 THEN NULL END + 53 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 47 + 97, + ( + - NULLIF ( + 52, - 47 ) ) AS col2
----
50
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - CASE 77 WHEN ( + 3 ) * 94 THEN 24 * + CASE - 13 WHEN + 4 THEN - 93 END END + NULLIF ( MAX( 69 ), 81 + + ( + ( - CASE 50 WHEN + ( 59 ) THEN + 21 / - 49 - 66 END ) + 70 ) ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT - CASE 77 WHEN ( + 3 ) * 94 THEN 24 * + CASE - 13 WHEN + 4 THEN - 93 END END + NULLIF ( MAX ( 69 ), 81 + + ( + ( - CASE 50 WHEN + ( 59 ) THEN + 21 / - 49 - 66 END ) + 70 ) ) * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT - + 9 * - 23 * MAX( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2793
SELECT - + 9 * - 23 * MAX ( ALL 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT - - 3 + + + 15 - + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2794
SELECT - - 3 + + + 15 - + COUNT ( * ) AS col1
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT DISTINCT CASE WHEN NOT NULL IS NOT NULL THEN NULL WHEN NOT ( - 29 ) IS NOT NULL THEN - COUNT( * ) * 24 + - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT CASE WHEN NOT NULL IS NOT NULL THEN NULL WHEN NOT ( - 29 ) IS NOT NULL THEN - COUNT ( * ) * 24 + - 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT + COUNT( * ) + - 30 + 36
----
7

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + COUNT ( * ) + - 30 + 36
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL + 73 + - 4 + - + 97 - + ( - + ( + COUNT( * ) ) )
----
-27

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + 73 + - 4 + - + 97 - + ( - + ( + COUNT ( * ) ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT - 7 + - COUNT( * ) + - - COUNT( ALL + 47 )
----
-7

skipif mysql # not compatible
query I rowsort label-2799
SELECT - 7 + - COUNT ( * ) + - - COUNT ( ALL + 47 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL SUM( + 40 ) col0
----
40

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL SUM ( + 40 ) col0
----
40

query I rowsort
SELECT ALL 95 * + 65 col1
----
6175

query I rowsort
SELECT - 0 * + - 90 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT ALL - 28 DIV + + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - 28 / + + 95 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2804
SELECT - MIN ( ALL - 97 )
----
97

query II rowsort
SELECT - 88 + ( + + 0 ) AS col1, + 9 - - 17 AS col1
----
-88
26

query I rowsort
SELECT DISTINCT + 55 - - 15 - 7 AS col1
----
63

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2808
SELECT + 29 + + 58 + - + NULLIF ( + 20, - - ( 82 ) ) + 17 DIV COUNT( * ) * + SUM( 16 * - 45 ) AS col1
----
-12173

skipif mysql # not compatible
query I rowsort label-2808
SELECT + 29 + + 58 + - + NULLIF ( + 20, - - ( 82 ) ) + 17 / COUNT ( * ) * + SUM ( 16 * - 45 ) AS col1
----
-12173

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

query I rowsort
SELECT DISTINCT + 10 * + 31
----
310

query I rowsort
SELECT DISTINCT + 75 * 55 - - 34
----
4159

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT + 42 * CASE 73 WHEN - 70 - + - COUNT( * ) THEN + 54 END + 47 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT + 42 * CASE 73 WHEN - 70 - + - COUNT ( * ) THEN + 54 END + 47 * + 59
----
NULL

query II rowsort
SELECT ALL + 99 AS col1, + 7
----
99
7

query I rowsort
SELECT DISTINCT + ( + - 37 ) AS col0
----
-37

query I rowsort
SELECT + + 25 * + 21 + - 63 - - 55 * - 80 AS col1
----
-3938

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT - + COUNT( * ) * + + 97 * + 68 * - + 85
----
560660

skipif mysql # not compatible
query I rowsort label-2816
SELECT - + COUNT ( * ) * + + 97 * + 68 * - + 85
----
560660

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT + + COALESCE ( - 53, COUNT( * ) * + 43 ) + + - 25 * - 63
----
1522

skipif mysql # not compatible
query I rowsort label-2817
SELECT + + COALESCE ( - 53, COUNT ( * ) * + 43 ) + + - 25 * - 63
----
1522

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT DISTINCT 28 * COUNT( * ) * - 30 + - 16 * ( 80 )
----
-2120

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT 28 * COUNT ( * ) * - 30 + - 16 * ( 80 )
----
-2120

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT + + 65 DIV - 45 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2819
SELECT + + 65 / - 45 AS col1
----
-1

query I rowsort
SELECT DISTINCT 95 * + ( + 58 ) AS col1
----
5510

query I rowsort
SELECT DISTINCT + - 52 * - 0 * - + 88 * + + 79 + - - 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT - SUM( 10 ) * 88 + - 4 + - 9 AS col1
----
-893

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT - SUM ( 10 ) * 88 + - 4 + - 9 AS col1
----
-893

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

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

query I rowsort
SELECT ALL 9 * + 60 + + - 93 * 11 * ( 42 ) - 17 * - 73 AS col2
----
-41185

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT MAX( + + 70 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-2825
SELECT MAX ( + + 70 ) col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT + - 38 DIV + 58 + - - 40
----
40

skipif mysql # not compatible
query I rowsort label-2826
SELECT + - 38 / + 58 + - - 40
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2827
SELECT ALL 58 DIV + ( COALESCE ( 62, + 13 ) ) + - MAX( + 50 ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL 58 / + ( COALESCE ( 62, + 13 ) ) + - MAX ( + 50 ) col2
----
-50

query I rowsort
SELECT - 2 * - 95 - + 76 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL + 4 - + 52 + + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + 4 - + 52 + + - COUNT ( * )
----
-49

query I rowsort
SELECT + 31 - + ( + NULLIF ( ( - 16 ), - - 81 ) ) + 74 * + 15 AS col1
----
1157

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2831
SELECT ALL COUNT( * ) DIV - 69 AS col2, 58
----
0
58

skipif mysql # not compatible
query II rowsort label-2831
SELECT ALL COUNT ( * ) / - 69 AS col2, 58
----
0
58

query I rowsort
SELECT ALL - 32 * + 65
----
-2080

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

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

query I rowsort
SELECT + 71 + + 49
----
120

query II rowsort
SELECT - 77 * + 15 AS col2, 60
----
-1155
60

query I rowsort
SELECT + 47 + - 31 * + 7
----
-170

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

query I rowsort
SELECT DISTINCT ( + ( 4 ) ) AS col0
----
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2840
SELECT ALL COALESCE ( + 49, 80 * 53, + 49 * 28 - + CAST( 70 AS SIGNED ) * 33 )
----
49

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL COALESCE ( + 49, 80 * 53, + 49 * 28 - + CAST ( 70 AS INTEGER ) * 33 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT - MIN( + 51 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT - MIN ( + 51 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 70 * - 27 AS col2
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2843
SELECT - COUNT( * ) * 80 AS col2, CAST( NULL AS SIGNED )
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-2843
SELECT - COUNT ( * ) * 80 AS col2, CAST ( NULL AS INTEGER )
----
-80
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2844
SELECT + COUNT( * ) col2, 36 * - 2
----
1
-72

skipif mysql # not compatible
query II rowsort label-2844
SELECT + COUNT ( * ) col2, 36 * - 2
----
1
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2845
SELECT CASE - CASE - 39 WHEN - - 62 / + - ( + 67 ) - + 13 * - 60 THEN NULL WHEN + COUNT( * ) THEN 45 WHEN - CAST( NULL AS DECIMAL ) THEN NULL END WHEN - 60 * 62 THEN + CAST( NULL AS SIGNED ) WHEN 32 + 27 THEN NULL END / - 85 - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT CASE - CASE - 39 WHEN - - 62 / + - ( + 67 ) - + 13 * - 60 THEN NULL WHEN + COUNT ( * ) THEN 45 WHEN - CAST ( NULL AS REAL ) THEN NULL END WHEN - 60 * 62 THEN + CAST ( NULL AS INTEGER ) WHEN 32 + 27 THEN NULL END / - 85 - 72 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2846
SELECT + + COUNT( * ) * - + 13 * - 48 + + 23 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT + + COUNT ( * ) * - + 13 * - 48 + + 23 + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 73 * + 95 AS col0
----
-6935

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

skipif mysql # not compatible
query I rowsort label-2848
SELECT - SUM ( + ( - 8 ) )
----
8

query I rowsort
SELECT ALL - - 61 * + + 18
----
1098

query II rowsort
SELECT 31, 96 AS col0
----
31
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT - 82 * CASE - COALESCE ( - - 70, ( - 20 ) ) WHEN + 4 THEN NULL WHEN AVG ( DISTINCT + 69 ) * + 91 + - 33 * 91 THEN 61 ELSE NULL END / 34 - 43 * CASE - 41 WHEN AVG ( ALL 57 ) + - COUNT( * ) THEN - 28 WHEN + 9 + - 23 THEN NULL END - - 17 * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT - 82 * CASE - COALESCE ( - - 70, ( - 20 ) ) WHEN + 4 THEN NULL WHEN AVG ( DISTINCT + 69 ) * + 91 + - 33 * 91 THEN 61 ELSE NULL END / 34 - 43 * CASE - 41 WHEN AVG ( ALL 57 ) + - COUNT ( * ) THEN - 28 WHEN + 9 + - 23 THEN NULL END - - 17 * 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT + 40 * 53 * 81 - + COUNT( * )
----
171719

skipif mysql # not compatible
query I rowsort label-2852
SELECT + 40 * 53 * 81 - + COUNT ( * )
----
171719

query I rowsort
SELECT DISTINCT + + ( - 35 ) * 84 AS col1
----
-2940

query I rowsort
SELECT - - 3 * - + 45 AS col2
----
-135

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2857
SELECT ( - MAX( DISTINCT - ( CAST( 92 AS SIGNED ) ) ) )
----
92

skipif mysql # not compatible
query I rowsort label-2857
SELECT ( - MAX ( DISTINCT - ( CAST ( 92 AS INTEGER ) ) ) )
----
92

query I rowsort
SELECT ALL + + 57 + - 48 - - 2 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT + 52 * - - COUNT( * ) - 68 + - 47 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2859
SELECT + 52 * - - COUNT ( * ) - 68 + - 47 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT DISTINCT - - COUNT( * ), - 43 * 81 AS col0
----
1
-3483

skipif mysql # not compatible
query II rowsort label-2860
SELECT DISTINCT - - COUNT ( * ), - 43 * 81 AS col0
----
1
-3483

query I rowsort
SELECT - 3 + - + ( + + 42 ) - + - 24 + 87 + + 74 * 76 AS col2
----
5690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT SUM( + 19 ) * ( + + 17 ) * - - CASE CASE 97 WHEN + 96 THEN NULL ELSE + 29 END WHEN - CAST( + 52 AS SIGNED ) THEN 54 - + NULLIF ( 1, - 80 ) * - 63 END - 41 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT SUM ( + 19 ) * ( + + 17 ) * - - CASE CASE 97 WHEN + 96 THEN NULL ELSE + 29 END WHEN - CAST ( + 52 AS INTEGER ) THEN 54 - + NULLIF ( 1, - 80 ) * - 63 END - 41 * 21
----
NULL

query I rowsort
SELECT ALL 47 * + 46 AS col1
----
2162

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT 44 + + + COALESCE ( + 32, + + 10 DIV + 69 + - 10, 0 )
----
76

skipif mysql # not compatible
query I rowsort label-2864
SELECT 44 + + + COALESCE ( + 32, + + 10 / + 69 + - 10, 0 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT CASE ( + - 51 ) WHEN - COUNT( * ) / - 69 * - 93 + CASE 40 + - 70 WHEN 34 + CASE + 16 WHEN 13 THEN NULL ELSE 1 END THEN MAX( ALL 24 ) END / 60 THEN NULLIF ( + 56, NULLIF ( 28, 29 ) ) ELSE + 21 * - 8 END * 78 AS col0
----
-13104

skipif mysql # not compatible
query I rowsort label-2865
SELECT CASE ( + - 51 ) WHEN - COUNT ( * ) / - 69 * - 93 + CASE 40 + - 70 WHEN 34 + CASE + 16 WHEN 13 THEN NULL ELSE 1 END THEN MAX ( ALL 24 ) END / 60 THEN NULLIF ( + 56, NULLIF ( 28, 29 ) ) ELSE + 21 * - 8 END * 78 AS col0
----
-13104

onlyif mysql # aggregate syntax: 
query II rowsort label-2866
SELECT ALL COUNT( * ) AS col2, 12 + 88 * 77
----
1
6788

skipif mysql # not compatible
query II rowsort label-2866
SELECT ALL COUNT ( * ) AS col2, 12 + 88 * 77
----
1
6788

onlyif mysql # aggregate syntax: 
query II rowsort label-2867
SELECT ALL 46 AS col1, - 67 * + 63 - + + COUNT( ALL + 93 ) + + COUNT( * ) * + COUNT( * )
----
46
-4221

skipif mysql # not compatible
query II rowsort label-2867
SELECT ALL 46 AS col1, - 67 * + 63 - + + COUNT ( ALL + 93 ) + + COUNT ( * ) * + COUNT ( * )
----
46
-4221

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL NULLIF ( + MIN( DISTINCT 31 ), + 44 ) * - 43 AS col0
----
-1333

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL NULLIF ( + MIN ( DISTINCT 31 ), + 44 ) * - 43 AS col0
----
-1333

query I rowsort
SELECT ( + + 80 ) + 46 - - 7 * - 61 * 96
----
-40866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2870
SELECT 64 + + 9 * + 38 + 4 DIV COUNT( * ) + 51 AS col1
----
461

skipif mysql # not compatible
query I rowsort label-2870
SELECT 64 + + 9 * + 38 + 4 / COUNT ( * ) + 51 AS col1
----
461

onlyif mysql # DIV for integer division: 
query II rowsort label-2871
SELECT DISTINCT 18 DIV - 66 AS col0, - 31 col1
----
0
-31

skipif mysql # not compatible
query II rowsort label-2871
SELECT DISTINCT 18 / - 66 AS col0, - 31 col1
----
0
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2872
SELECT ( - NULLIF ( - + 91, ( + 46 ) / + 41 * + COALESCE ( - COUNT( 90 ), 44 * 45 + - 55, + 3 + + 73, COUNT( * ) * 55 + COALESCE ( + 22, COALESCE ( + 18, CASE 65 WHEN 41 / + 54 THEN NULL WHEN 79 THEN 48 * - COUNT( * ) END - 84 ) * - 8, CAST( NULL AS DECIMAL ) ) ) - 23 ) ) * 14
----
1274

skipif mysql # not compatible
query I rowsort label-2872
SELECT ( - NULLIF ( - + 91, ( + 46 ) / + 41 * + COALESCE ( - COUNT ( 90 ), 44 * 45 + - 55, + 3 + + 73, COUNT ( * ) * 55 + COALESCE ( + 22, COALESCE ( + 18, CASE 65 WHEN 41 / + 54 THEN NULL WHEN 79 THEN 48 * - COUNT ( * ) END - 84 ) * - 8, CAST ( NULL AS REAL ) ) ) - 23 ) ) * 14
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2873
SELECT CAST( NULL AS SIGNED ) / - NULLIF ( + - NULLIF ( + - CASE WHEN NOT - 3 < - 0 THEN COALESCE ( + 34, 29 * + 64 + - ( 5 ) * + 76, + 22 * + COUNT( * ) ) + COUNT( * ) * + 88 ELSE 71 END, - COUNT( * ) ), + 48 - - COUNT( ALL - 16 ) ) / ( 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT CAST ( NULL AS INTEGER ) / - NULLIF ( + - NULLIF ( + - CASE WHEN NOT - 3 < - 0 THEN COALESCE ( + 34, 29 * + 64 + - ( 5 ) * + 76, + 22 * + COUNT ( * ) ) + COUNT ( * ) * + 88 ELSE 71 END, - COUNT ( * ) ), + 48 - - COUNT ( ALL - 16 ) ) / ( 48 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 56 * - ( 2 ) AS col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT DISTINCT + 84 + - NULLIF ( - CAST( + 25 AS SIGNED ), + - 57 ) * 35 AS col0
----
959

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + 84 + - NULLIF ( - CAST ( + 25 AS INTEGER ), + - 57 ) * 35 AS col0
----
959

query I rowsort
SELECT 79 * - - 50
----
3950

onlyif mysql # aggregate syntax: 
query II rowsort label-2877
SELECT DISTINCT - + 59 + 88 AS col2, + 40 * - + ( + - COUNT( + 66 ) ) AS col0
----
29
40

skipif mysql # not compatible
query II rowsort label-2877
SELECT DISTINCT - + 59 + 88 AS col2, + 40 * - + ( + - COUNT ( + 66 ) ) AS col0
----
29
40

query I rowsort
SELECT ALL + - 97 + 32 * 49
----
1471

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT + CASE - SUM( COALESCE ( - 8, + 5 ) ) WHEN + + 53 + - + 91 THEN + 57 WHEN + MIN( 54 ) / 63 THEN NULL WHEN 24 THEN 93 ELSE NULL END * + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + CASE - SUM ( COALESCE ( - 8, + 5 ) ) WHEN + + 53 + - + 91 THEN + 57 WHEN + MIN ( 54 ) / 63 THEN NULL WHEN 24 THEN 93 ELSE NULL END * + 82 col2
----
NULL

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

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

query II rowsort
SELECT ALL - 51 + 48 AS col1, 27
----
-3
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2883
SELECT 20 DIV + - 30
----
0

skipif mysql # not compatible
query I rowsort label-2883
SELECT 20 / + - 30
----
0

query I rowsort
SELECT - 43 + - 0 AS col0
----
-43

query I rowsort
SELECT DISTINCT + 60 * 67 AS col1
----
4020

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT 25 * - NULLIF ( + 57, 76 ) + - COALESCE ( NULLIF ( 0, - COUNT( * ) ), 24 * 37 + - NULLIF ( + COUNT( * ) - 63, - COALESCE ( - 40, ( - COUNT( * ) ) ) + + 65 ), + 13 ) AS col2
----
-1425

skipif mysql # not compatible
query I rowsort label-2887
SELECT 25 * - NULLIF ( + 57, 76 ) + - COALESCE ( NULLIF ( 0, - COUNT ( * ) ), 24 * 37 + - NULLIF ( + COUNT ( * ) - 63, - COALESCE ( - 40, ( - COUNT ( * ) ) ) + + 65 ), + 13 ) AS col2
----
-1425

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT + 10 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT + 10 / 98 AS col0
----
0

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

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

query I rowsort
SELECT + 28 * + 46 * 42
----
54096

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2891
SELECT DISTINCT + 8 * - 59 AS col2, 94 * - CAST( NULL AS SIGNED )
----
-472
NULL

skipif mysql # not compatible
query II rowsort label-2891
SELECT DISTINCT + 8 * - 59 AS col2, 94 * - CAST ( NULL AS INTEGER )
----
-472
NULL

query I rowsort
SELECT 9 - 1
----
8

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

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

query I rowsort
SELECT 19 - - 16 AS col0
----
35

query II rowsort
SELECT 61, + 99 + - 83 AS col1
----
61
16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2897
SELECT DISTINCT 77 * - 10 * 24, + 2 + - COUNT( * ) AS col0
----
-18480
1

skipif mysql # not compatible
query II rowsort label-2897
SELECT DISTINCT 77 * - 10 * 24, + 2 + - COUNT ( * ) AS col0
----
-18480
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT DISTINCT SUM( ALL 27 )
----
27

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT SUM ( ALL 27 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT DISTINCT + MAX( DISTINCT + + 38 ) + - CAST( - - 33 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT + MAX ( DISTINCT + + 38 ) + - CAST ( - - 33 AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT MIN( ALL + - 40 ) + + 50 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT MIN ( ALL + - 40 ) + + 50 AS col1
----
10

query I rowsort
SELECT ( + 93 ) * + - 77 AS col2
----
-7161

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT 42, ( + + 88 ) + + COUNT( * ) AS col2
----
42
89

skipif mysql # not compatible
query II rowsort label-2902
SELECT 42, ( + + 88 ) + + COUNT ( * ) AS col2
----
42
89

query II rowsort
SELECT 55 AS col2, + COALESCE ( 70, + 11, 87 )
----
55
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT 5 + - 8 * 75 * COUNT( * ) + - 39
----
-634

skipif mysql # not compatible
query I rowsort label-2904
SELECT 5 + - 8 * 75 * COUNT ( * ) + - 39
----
-634

query I rowsort
SELECT DISTINCT 63 + - 50 * + + ( + CASE 43 WHEN 58 THEN NULL ELSE + ( + 68 ) END ) + - 39 * 64 AS col1
----
-5833

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL COUNT( * ) + + - 92 + - 80 * - 33 * + 97 + - + 56 - + ( - 77 ) * - COUNT( * ) AS col0
----
255856

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL COUNT ( * ) + + - 92 + - 80 * - 33 * + 97 + - + 56 - + ( - 77 ) * - COUNT ( * ) AS col0
----
255856

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - MAX( DISTINCT - + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-2907
SELECT - MAX ( DISTINCT - + 94 )
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL - 66 * + MAX( DISTINCT - 35 ) AS col2
----
2310

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - 66 * + MAX ( DISTINCT - 35 ) AS col2
----
2310

query I rowsort
SELECT DISTINCT 61 + - 70 * + 83 AS col2
----
-5749

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

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

query I rowsort
SELECT ALL 15 * ( 73 ) - + 35 + - 5 * - 32
----
1220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2914
SELECT + 28 AS col0, CAST( NULL AS SIGNED ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-2914
SELECT + 28 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT + + COALESCE ( + + COUNT( * ), 16 ) + - 55 * 67
----
-3684

skipif mysql # not compatible
query I rowsort label-2915
SELECT + + COALESCE ( + + COUNT ( * ), 16 ) + - 55 * 67
----
-3684

query I rowsort
SELECT ALL - 31 * - 70 * 36 + + 99 * + + 8
----
78912

query II rowsort
SELECT 47, 10 * ( 50 ) - + 8 AS col1
----
47
492

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2919
SELECT + - 76 * CAST( NULL AS DECIMAL ) / - CAST( + COUNT( * ) AS SIGNED ) + - 19 + - + COALESCE ( 18, + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT + - 76 * CAST ( NULL AS REAL ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - 19 + - + COALESCE ( 18, + 28 )
----
NULL

query I rowsort
SELECT - 35 * - 28 AS col0
----
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2921
SELECT - CAST( NULL AS SIGNED ) * - - 36 * 16 * - CAST( + COALESCE ( + CASE 68 WHEN - - 57 * + CAST( + MIN( ALL - 38 ) AS SIGNED ) THEN NULL WHEN 53 THEN 43 - + 27 ELSE 70 + + 73 END, 21, 22 ) AS SIGNED ) + - 42 * - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT - CAST ( NULL AS INTEGER ) * - - 36 * 16 * - CAST ( + COALESCE ( + CASE 68 WHEN - - 57 * + CAST ( + MIN ( ALL - 38 ) AS INTEGER ) THEN NULL WHEN 53 THEN 43 - + 27 ELSE 70 + + 73 END, 21, 22 ) AS INTEGER ) + - 42 * - 31 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT DISTINCT - - 85 DIV + 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT - - 85 / + 59 AS col1
----
1

query I rowsort
SELECT + 72 + - 45 - + 56 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2924
SELECT + ( + CASE 47 WHEN - + CAST( NULL AS SIGNED ) * + 50 / COALESCE ( 38, CAST( NULL AS SIGNED ) ) THEN + - COALESCE ( + 36, 65 * - 28 ) WHEN + 2 + + 41 * 33 THEN NULL END ) * 85 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT + ( + CASE 47 WHEN - + CAST ( NULL AS INTEGER ) * + 50 / COALESCE ( 38, CAST ( NULL AS INTEGER ) ) THEN + - COALESCE ( + 36, 65 * - 28 ) WHEN + 2 + + 41 * 33 THEN NULL END ) * 85 - COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2925
SELECT - 37 / - 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT COUNT( * ) * + NULLIF ( + 60, + CAST( NULL AS SIGNED ) ) - + 39
----
21

skipif mysql # not compatible
query I rowsort label-2926
SELECT COUNT ( * ) * + NULLIF ( + 60, + CAST ( NULL AS INTEGER ) ) - + 39
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2927
SELECT - 66 DIV 77 AS col1, + COUNT( * ) DIV + 47 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-2927
SELECT - 66 / 77 AS col1, + COUNT ( * ) / + 47 AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - 71 * - ( + CASE 97 WHEN + 43 THEN + 19 + - + 87 + - - 41 * + MIN( 61 ) END ) + 79 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT - 71 * - ( + CASE 97 WHEN + 43 THEN + 19 + - + 87 + - - 41 * + MIN ( 61 ) END ) + 79 * + 17
----
NULL

query I rowsort
SELECT ALL + 10 * - 37 AS col1
----
-370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT ALL - CAST( 4 AS SIGNED ) * SUM( + 58 ) * 20 + + 80 * - NULLIF ( ( - 33 ), ( 45 ) ) AS col1
----
-2000

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - CAST ( 4 AS INTEGER ) * SUM ( + 58 ) * 20 + + 80 * - NULLIF ( ( - 33 ), ( 45 ) ) AS col1
----
-2000

query I rowsort
SELECT ALL + 83 + + 21
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT - CASE + - 74 WHEN + COUNT( * ) THEN NULL WHEN - 44 THEN - CAST( - 66 AS SIGNED ) WHEN + - SUM( - 16 ) THEN 82 * + 39 ELSE NULL END + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT - CASE + - 74 WHEN + COUNT ( * ) THEN NULL WHEN - 44 THEN - CAST ( - 66 AS INTEGER ) WHEN + - SUM ( - 16 ) THEN 82 * + 39 ELSE NULL END + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + 11 + + COALESCE ( + 44, CASE 60 WHEN 49 + 4 - + COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN NULLIF ( 37, 58 ) + COUNT( * ) * 35 ELSE NULL END ) col2
----
55

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + 11 + + COALESCE ( + 44, CASE 60 WHEN 49 + 4 - + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN NULLIF ( 37, 58 ) + COUNT ( * ) * 35 ELSE NULL END ) col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT - COUNT( + 40 ) + 47 + + 69 * + 31 + + + COUNT( ALL + 55 ), 2 AS col2
----
2186
2

skipif mysql # not compatible
query II rowsort label-2934
SELECT - COUNT ( + 40 ) + 47 + + 69 * + 31 + + + COUNT ( ALL + 55 ), 2 AS col2
----
2186
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT - COUNT( ALL - 91 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2936
SELECT - COUNT ( ALL - 91 ) col2
----
-1

query I rowsort
SELECT DISTINCT - 66 + + - NULLIF ( - - 63, - + 92 + + + 79 + - + 90 )
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT - CASE - ( 13 ) WHEN 77 THEN MIN( + - 74 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT - CASE - ( 13 ) WHEN 77 THEN MIN ( + - 74 ) END AS col0
----
NULL

query I rowsort
SELECT ALL 22 + + + 35 * - 92
----
-3198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2940
SELECT ALL NULLIF ( NULLIF ( + 90, + ( - 26 ) * + MIN( ALL 35 ) * 65 - - CASE 87 WHEN COUNT( * ) + - 47 THEN + 73 ELSE 41 END * - 24 ), - CAST( NULL AS SIGNED ) + - COUNT( * ) / - 32 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL NULLIF ( NULLIF ( + 90, + ( - 26 ) * + MIN ( ALL 35 ) * 65 - - CASE 87 WHEN COUNT ( * ) + - 47 THEN + 73 ELSE 41 END * - 24 ), - CAST ( NULL AS INTEGER ) + - COUNT ( * ) / - 32 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL + 21 + COUNT( * ) + - CASE 28 WHEN - + 80 * 89 * - 44 THEN NULL WHEN - 85 THEN NULL WHEN - 2 + 84 THEN NULLIF ( 79, + 47 * 22 ) ELSE 41 + + 9 END + - ( 47 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL + 21 + COUNT ( * ) + - CASE 28 WHEN - + 80 * 89 * - 44 THEN NULL WHEN - 85 THEN NULL WHEN - 2 + 84 THEN NULLIF ( 79, + 47 * 22 ) ELSE 41 + + 9 END + - ( 47 ) * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL MAX( - - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL MAX ( - - 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2944
SELECT + + ( + NULLIF ( CAST( NULL AS SIGNED ), + CAST( ( + 6 ) AS SIGNED ) + + MAX( DISTINCT 52 ) - + + 55 ) ) + + 71 * + 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT + + ( + NULLIF ( CAST ( NULL AS INTEGER ), + CAST ( ( + 6 ) AS INTEGER ) + + MAX ( DISTINCT 52 ) - + + 55 ) ) + + 71 * + 68 col0
----
NULL

query I rowsort
SELECT DISTINCT + 84 - - 19 AS col2
----
103

query I rowsort
SELECT ALL - 26 * + + 63 AS col2
----
-1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT CAST( - COALESCE ( - - NULLIF ( - - 64, + - 19 ), + 21 - - 92, + - ( 73 ), 5 ) AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-2947
SELECT CAST ( - COALESCE ( - - NULLIF ( - - 64, + - 19 ), + 21 - - 92, + - ( 73 ), 5 ) AS INTEGER )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT - - 29 + - + CAST( - NULLIF ( MAX( ALL - 5 ), + MAX( 49 ) ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-2948
SELECT - - 29 + - + CAST ( - NULLIF ( MAX ( ALL - 5 ), + MAX ( 49 ) ) AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - - SUM( 56 ) - + - 39 + - + 43 * - 95 AS col2
----
4180

skipif mysql # not compatible
query I rowsort label-2949
SELECT - - SUM ( 56 ) - + - 39 + - + 43 * - 95 AS col2
----
4180

query II rowsort
SELECT + - 65 * + 81 * + ( + 74 ) AS col2, + 57 AS col1
----
-389610
57

query I rowsort
SELECT - + 54 + - + ( + + 26 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT + COUNT( * ) + + 74 + CASE MIN( DISTINCT 17 ) WHEN 73 THEN NULL ELSE 11 END + - COUNT( * ) * - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-2952
SELECT + COUNT ( * ) + + 74 + CASE MIN ( DISTINCT 17 ) WHEN 73 THEN NULL ELSE 11 END + - COUNT ( * ) * - COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + ( 8 ) * 55 * NULLIF ( - SUM( + 46 ), 53 ) * + ( COUNT( * ) ) AS col2
----
-20240

skipif mysql # not compatible
query I rowsort label-2953
SELECT + ( 8 ) * 55 * NULLIF ( - SUM ( + 46 ), 53 ) * + ( COUNT ( * ) ) AS col2
----
-20240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2954
SELECT DISTINCT - + COALESCE ( + + 24, 20 * + - COALESCE ( - COUNT( * ), - 21 ) * - 77 + + + 15, 31 ) DIV + 11 - 28 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - + COALESCE ( + + 24, 20 * + - COALESCE ( - COUNT ( * ), - 21 ) * - 77 + + + 15, 31 ) / + 11 - 28 AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL 79 DIV + 84 + + 39 + + 9
----
48

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL 79 / + 84 + + 39 + + 9
----
48

query I rowsort
SELECT + - 39 + - + NULLIF ( - 32, - 0 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT MAX( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-2957
SELECT MAX ( - 55 )
----
-55

query I rowsort
SELECT + 63 * + 17 * 87 + + 30 AS col0
----
93207

query I rowsort
SELECT + + 64 * - 67
----
-4288

query I rowsort
SELECT ALL + 58 * + + 33 + - 82 * - ( - COALESCE ( - - 21, CASE + - AVG ( - 76 ) WHEN 76 + 68 * - 56 THEN - 52 END - 35 ) ) * - 23
----
41520

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL + SUM( + - ( - 7 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + SUM ( + - ( - 7 ) ) AS col1
----
7

query I rowsort
SELECT + 25 * + - 68 AS col1
----
-1700

query I rowsort
SELECT ( - 58 ) col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2965
SELECT + CAST( - + 82 AS SIGNED ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2965
SELECT + CAST ( - + 82 AS INTEGER ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2966
SELECT DISTINCT + CAST( - + 73 AS SIGNED ) * NULLIF ( + CAST( + COALESCE ( + + 67, - + 0 - + CASE 44 WHEN + + ( + AVG ( 73 ) ) + + 86 THEN NULL ELSE - 44 / 38 END ) AS SIGNED ), ( + 56 ) / COUNT( * ) ) * COALESCE ( 49, 15 ) + SUM( 73 + + 43 ) AS col2
----
-239543

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + CAST ( - + 73 AS INTEGER ) * NULLIF ( + CAST ( + COALESCE ( + + 67, - + 0 - + CASE 44 WHEN + + ( + AVG ( 73 ) ) + + 86 THEN NULL ELSE - 44 / 38 END ) AS INTEGER ), ( + 56 ) / COUNT ( * ) ) * COALESCE ( 49, 15 ) + SUM ( 73 + + 43 ) AS col2
----
-239543

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL COALESCE ( - 51, - 30 ) * 84 * - + 10 + 91 * - MIN( ALL + 85 ) AS col2
----
35105

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COALESCE ( - 51, - 30 ) * 84 * - + 10 + 91 * - MIN ( ALL + 85 ) AS col2
----
35105

query I rowsort
SELECT - 95 * 3 AS col1
----
-285

query I rowsort
SELECT ALL - NULLIF ( + COALESCE ( + + 9, 82 ), - 44 ) * + ( 5 ) + + - 46 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT 97 * - ( - 14 ) * + 37 * - 73 + + + COUNT( ALL CAST( 25 AS SIGNED ) )
----
-3667957

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT 97 * - ( - 14 ) * + 37 * - 73 + + + COUNT ( ALL CAST ( 25 AS INTEGER ) )
----
-3667957

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + SUM( DISTINCT - + 17 ) - + 83 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-2971
SELECT + SUM ( DISTINCT - + 17 ) - + 83 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-2972
SELECT DISTINCT + COALESCE ( 73, - + 79 ) AS col1, 16 * NULLIF ( + + 91, - MIN( 92 ) / - 74 - - + 22 * - 9 ) * 69
----
73
100464

skipif mysql # not compatible
query II rowsort label-2972
SELECT DISTINCT + COALESCE ( 73, - + 79 ) AS col1, 16 * NULLIF ( + + 91, - MIN ( 92 ) / - 74 - - + 22 * - 9 ) * 69
----
73
100464

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL 72 * COALESCE ( + + 70, 86, 93 * + + COUNT( * ) ) + - 14
----
5026

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL 72 * COALESCE ( + + 70, 86, 93 * + + COUNT ( * ) ) + - 14
----
5026

query I rowsort
SELECT + 59 - + 79
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2975
SELECT - SUM( ALL + + 13 ) * - 81 + - + COUNT( * ) + - + 54 * ( + + ( + 49 ) ) * - COUNT( * ) * + - 49 + 78 DIV MAX( ALL - 47 * 95 ) AS col0
----
-128602

skipif mysql # not compatible
query I rowsort label-2975
SELECT - SUM ( ALL + + 13 ) * - 81 + - + COUNT ( * ) + - + 54 * ( + + ( + 49 ) ) * - COUNT ( * ) * + - 49 + 78 / MAX ( ALL - 47 * 95 ) AS col0
----
-128602

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT DISTINCT COUNT( * ) * + 6 * + 46 * 90 + 69 AS col1
----
24909

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT COUNT ( * ) * + 6 * + 46 * 90 + 69 AS col1
----
24909

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL 9 * CAST( - - 38 AS SIGNED ) + - 96 AS col0
----
246

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL 9 * CAST ( - - 38 AS INTEGER ) + - 96 AS col0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT - COUNT( * ) * - NULLIF ( - 70, + + 19 * + 36 - + 74 - - SUM( + 86 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-2979
SELECT - COUNT ( * ) * - NULLIF ( - 70, + + 19 * + 36 - + 74 - - SUM ( + 86 ) ) AS col2
----
-70

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

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

query I rowsort
SELECT DISTINCT + 35 - 88 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2982
SELECT - + COALESCE ( - - CAST( NULL AS SIGNED ), + + CASE 70 WHEN - 67 * - 28 THEN NULL WHEN - COUNT( * ) THEN + - 30 END, + MAX( ALL 95 ) * 38 ) AS col0
----
-3610

skipif mysql # not compatible
query I rowsort label-2982
SELECT - + COALESCE ( - - CAST ( NULL AS INTEGER ), + + CASE 70 WHEN - 67 * - 28 THEN NULL WHEN - COUNT ( * ) THEN + - 30 END, + MAX ( ALL 95 ) * 38 ) AS col0
----
-3610

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT + COUNT( * ) + - + SUM( DISTINCT + - 96 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2983
SELECT + COUNT ( * ) + - + SUM ( DISTINCT + - 96 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + COUNT( * ) + 62
----
63

skipif mysql # not compatible
query I rowsort label-2984
SELECT + COUNT ( * ) + 62
----
63

query I rowsort
SELECT - 14 - - + 22 AS col0
----
8

query I rowsort
SELECT - 53 * + 88
----
-4664

query I rowsort
SELECT DISTINCT - 81 * + 94
----
-7614

query II rowsort
SELECT - 58 AS col0, 91
----
-58
91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT DISTINCT - 13, - MAX( ALL - 43 ) AS col2
----
-13
43

skipif mysql # not compatible
query II rowsort label-2990
SELECT DISTINCT - 13, - MAX ( ALL - 43 ) AS col2
----
-13
43

query II rowsort
SELECT ALL + 0 AS col2, 80 col0
----
0
80

query I rowsort
SELECT ALL - ( + 83 ) col1
----
-83

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

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

query I rowsort
SELECT ALL + ( + + 49 ) + - 69 + + 41
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-2995
SELECT 13 DIV - + ( 78 ) AS col0, 6
----
0
6

skipif mysql # not compatible
query II rowsort label-2995
SELECT 13 / - + ( 78 ) AS col0, 6
----
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL + COUNT( * ) + + - 87 * 64 col0
----
-5567

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + COUNT ( * ) + + - 87 * 64 col0
----
-5567

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT 54 DIV 2 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT 54 / 2 AS col2
----
27

query I rowsort
SELECT ALL 13 + - 89 * - + 35 * AVG ( ALL - 9 ) * 35 + - CASE - 43 WHEN - + 16 + 53 THEN 29 * + 73 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3000
SELECT 47 DIV - - 23 - + ( - + 8 ) col2, 6 AS col2
----
10
6

skipif mysql # not compatible
query II rowsort label-3000
SELECT 47 / - - 23 - + ( - + 8 ) col2, 6 AS col2
----
10
6

query I rowsort
SELECT ALL - 10 + 23 AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3002
SELECT ALL ( + + 57 ) DIV + + 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL ( + + 57 ) / + + 52 AS col2
----
1

query I rowsort
SELECT ALL 7 * - 93 AS col0
----
-651

onlyif mysql # DIV for integer division: 
query I rowsort label-3004
SELECT DISTINCT 18 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT 18 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT COUNT( * ) * ( + - 52 ) * - 16 + COUNT( * ) + - - 5
----
838

skipif mysql # not compatible
query I rowsort label-3005
SELECT COUNT ( * ) * ( + - 52 ) * - 16 + COUNT ( * ) + - - 5
----
838

query I rowsort
SELECT ALL 53 + + 81
----
134

query I rowsort
SELECT 63 + - 34
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL 47 + - - MIN( + 95 ) col1
----
142

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL 47 + - - MIN ( + 95 ) col1
----
142

query II rowsort
SELECT 71, - 38 - + 53 col2
----
71
-91

query I rowsort
SELECT DISTINCT 58 * + ( - + 48 ) col0
----
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT DISTINCT 76 - - AVG ( + 58 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT 76 - - AVG ( + 58 ) + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + 67 * + - COUNT( DISTINCT 23 ) + - + 77 * - 13
----
934

skipif mysql # not compatible
query I rowsort label-3013
SELECT + 67 * + - COUNT ( DISTINCT 23 ) + - + 77 * - 13
----
934

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3014
SELECT ALL 4, 20 AS col1, CAST( NULL AS SIGNED ) AS col2
----
4
20
NULL

skipif mysql # not compatible
query III rowsort label-3014
SELECT ALL 4, 20 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
4
20
NULL

query I rowsort
SELECT 98 + - 80 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT 7 + + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT 7 + + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT CASE WHEN NOT NULL NOT BETWEEN 95 AND NULL THEN NULLIF ( + + 62, + - 2 ) + 23 END * + 12
----
NULL

query I rowsort
SELECT 14 * - + 24 AS col2
----
-336

query I rowsort
SELECT ALL ( + + COALESCE ( 83, - - 65 ) ) col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3020
SELECT DISTINCT + + COUNT( * ) DIV - 48 * + + ( 70 )
----
0

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT + + COUNT ( * ) / - 48 * + + ( 70 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3021
SELECT ALL - 97 AS col2, ( - - 1 ) + 21 + + 44 DIV - 49 AS col2
----
-97
22

skipif mysql # not compatible
query II rowsort label-3021
SELECT ALL - 97 AS col2, ( - - 1 ) + 21 + + 44 / - 49 AS col2
----
-97
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT COUNT( * ) + - MAX( ALL 87 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3022
SELECT COUNT ( * ) + - MAX ( ALL 87 ) AS col0
----
-86

query II rowsort
SELECT - 97 AS col0, + 13 * - 13 AS col2
----
-97
-169

query I rowsort
SELECT 0 + ( + - 70 ) * 11
----
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT ALL + COUNT( * ) * + 13 + + 44 - + + AVG ( DISTINCT + ( + 92 ) ) * - 28 * + + CAST( NULL AS SIGNED ) * 98 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + COUNT ( * ) * + 13 + + 44 - + + AVG ( DISTINCT + ( + 92 ) ) * - 28 * + + CAST ( NULL AS INTEGER ) * 98 * 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT 87 * - 70 * CAST( + NULLIF ( + 0, + + 85 ) AS SIGNED ) + - + 15 + + - 92
----
-107

skipif mysql # not compatible
query I rowsort label-3026
SELECT 87 * - 70 * CAST ( + NULLIF ( + 0, + + 85 ) AS INTEGER ) + - + 15 + + - 92
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-3027
SELECT ALL - 32 DIV + + 6
----
-5

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - 32 / + + 6
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT DISTINCT NULLIF ( - - 98, 45 + + 79 ) DIV + + 5 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT NULLIF ( - - 98, 45 + + 79 ) / + + 5 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT ALL - 83 * 72 * 86 DIV + 50 AS col2
----
-10278

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL - 83 * 72 * 86 / + 50 AS col2
----
-10278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT DISTINCT 39 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT 39 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 87 * + 21 AS col2
----
-1827

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT MIN( + + 85 ) + + 15 * + 70 AS col2
----
1135

skipif mysql # not compatible
query I rowsort label-3033
SELECT MIN ( + + 85 ) + + 15 * + 70 AS col2
----
1135

query I rowsort
SELECT - 45 - - 4
----
-41

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

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

query II rowsort
SELECT DISTINCT - 56, + 43 - - 43 AS col2
----
-56
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT ALL 15 * + 72 + + COUNT( * ) + - 31 - 56 + - COUNT( 21 )
----
993

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL 15 * + 72 + + COUNT ( * ) + - 31 - 56 + - COUNT ( 21 )
----
993

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3038
SELECT + + 13 * - COUNT( - 18 ) + 22 - - 61 DIV 99 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3038
SELECT + + 13 * - COUNT ( - 18 ) + 22 - - 61 / 99 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3039
SELECT DISTINCT - COUNT( * ) * 68 * - COUNT( * ) + + + CAST( 50 AS SIGNED ) * 66 * + 12
----
39668

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT - COUNT ( * ) * 68 * - COUNT ( * ) + + + CAST ( 50 AS INTEGER ) * 66 * + 12
----
39668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT ALL COUNT( * ) * + 31 + CAST( NULL AS SIGNED ) AS col2
----
NULL

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

query I rowsort
SELECT 44 * - 28 AS col2
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT MAX( ALL + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3042
SELECT MAX ( ALL + 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT CASE + - COUNT( * ) WHEN + 44 + + 3 THEN - 85 WHEN + 24 THEN NULL WHEN + 25 THEN NULL ELSE - 18 END * + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-3043
SELECT CASE + - COUNT ( * ) WHEN + 44 + + 3 THEN - 85 WHEN + 24 THEN NULL WHEN + 25 THEN NULL ELSE - 18 END * + COUNT ( * )
----
-18

query I rowsort
SELECT + 58 * 55 + - 13 AS col0
----
3177

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT DISTINCT 32 * - 30 * + 96 - - COUNT( * ) col2
----
-92159

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT 32 * - 30 * + 96 - - COUNT ( * ) col2
----
-92159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT + CAST( - CASE 84 WHEN 63 THEN + - 15 ELSE NULL END AS SIGNED ) * + CASE 95 WHEN - + 32 THEN NULL WHEN + ( COUNT( * ) ) THEN + CAST( NULL AS SIGNED ) END + - - 67 + CAST( + 23 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT + CAST ( - CASE 84 WHEN 63 THEN + - 15 ELSE NULL END AS INTEGER ) * + CASE 95 WHEN - + 32 THEN NULL WHEN + ( COUNT ( * ) ) THEN + CAST ( NULL AS INTEGER ) END + - - 67 + CAST ( + 23 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3047
SELECT + CAST( NULL AS DECIMAL ) / + 52 * 29 * - + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT + CAST ( NULL AS REAL ) / + 52 * 29 * - + 94 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT ALL 64 DIV - - ( + - 1 )
----
-64

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL 64 / - - ( + - 1 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT + COALESCE ( - + 19, + 67 ) - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3049
SELECT + COALESCE ( - + 19, + 67 ) - COUNT ( * )
----
-20

query II rowsort
SELECT ALL - 3 * + 54 AS col1, ( + - 39 ) AS col0
----
-162
-39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + + 17 - - 97 * - - 15 * - CASE ( 58 ) WHEN 47 / 28 / - 71 + 85 THEN - COUNT( * ) + + - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT + + 17 - - 97 * - - 15 * - CASE ( 58 ) WHEN 47 / 28 / - 71 + 85 THEN - COUNT ( * ) + + - 7 END
----
NULL

query I rowsort
SELECT DISTINCT 28 + - 8 + - 20 * + - 25 AS col0
----
520

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT COALESCE ( 74, + 80 DIV - - 63 )
----
74

skipif mysql # not compatible
query I rowsort label-3054
SELECT COALESCE ( 74, + 80 / - - 63 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + 72 * + COUNT( 62 ) + + - 7
----
65

skipif mysql # not compatible
query I rowsort label-3055
SELECT + 72 * + COUNT ( 62 ) + + - 7
----
65

query I rowsort
SELECT ALL NULLIF ( 28, - + 59 ) + - 49
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3057
SELECT ALL CAST( NULL AS DECIMAL ) + - COUNT( + 17 ) - - ( + 12 ) * - MAX( ALL - 2 ) * - 30, ( 59 ) AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-3057
SELECT ALL CAST ( NULL AS REAL ) + - COUNT ( + 17 ) - - ( + 12 ) * - MAX ( ALL - 2 ) * - 30, ( 59 ) AS col1
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT NULLIF ( 57, COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-3058
SELECT NULLIF ( 57, COUNT ( * ) )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT ( + + ( - + COALESCE ( + MAX( - CAST( NULL AS SIGNED ) ), - + NULLIF ( - + 54, SUM( - - 92 ) * 51 - - 63 / + COUNT( * ) ) ) ) )
----
-54

skipif mysql # not compatible
query I rowsort label-3059
SELECT ( + + ( - + COALESCE ( + MAX ( - CAST ( NULL AS INTEGER ) ), - + NULLIF ( - + 54, SUM ( - - 92 ) * 51 - - 63 / + COUNT ( * ) ) ) ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - - 2 - + - 2 + + 42 - + 47 * - COALESCE ( + 70, - + 92 + + NULLIF ( - + 57, - MAX( + 49 ) + - COUNT( * ) - + 39 * - 10 * 85 ) - + 44, + ( 54 ) - + 37, MAX( DISTINCT 50 ) ) * 18 AS col0
----
59266

skipif mysql # not compatible
query I rowsort label-3060
SELECT - - 2 - + - 2 + + 42 - + 47 * - COALESCE ( + 70, - + 92 + + NULLIF ( - + 57, - MAX ( + 49 ) + - COUNT ( * ) - + 39 * - 10 * 85 ) - + 44, + ( 54 ) - + 37, MAX ( DISTINCT 50 ) ) * 18 AS col0
----
59266

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT - COALESCE ( COALESCE ( + 8, - MAX( ALL + 47 ) + 3 ), + 65 )
----
-8

skipif mysql # not compatible
query I rowsort label-3061
SELECT - COALESCE ( COALESCE ( + 8, - MAX ( ALL + 47 ) + 3 ), + 65 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT ALL + - CAST( 71 AS SIGNED ) + - + ( ( CAST( NULL AS SIGNED ) ) ) + ( - 68 ) + + + 59 / - + ( 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL + - CAST ( 71 AS INTEGER ) + - + ( ( CAST ( NULL AS INTEGER ) ) ) + ( - 68 ) + + + 59 / - + ( 55 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL - 10 * + COUNT( ALL + 44 ) - - 34 + + ( 40 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL - 10 * + COUNT ( ALL + 44 ) - - 34 + + ( 40 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT - - COUNT( * ) + 43, 22 AS col1
----
44
22

skipif mysql # not compatible
query II rowsort label-3064
SELECT - - COUNT ( * ) + 43, 22 AS col1
----
44
22

query I rowsort
SELECT DISTINCT + 77 * 46
----
3542

query I rowsort
SELECT ALL 57 + + 83 AS col0
----
140

query I rowsort
SELECT + 66 * - 51 AS col0
----
-3366

query II rowsort
SELECT ALL + 9 AS col1, + 75 + - 19 + + 71 * + 32
----
9
2328

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3069
SELECT ( CAST( + 49 AS SIGNED ) ) AS col2, 40 * - 23 AS col2
----
49
-920

skipif mysql # not compatible
query II rowsort label-3069
SELECT ( CAST ( + 49 AS INTEGER ) ) AS col2, 40 * - 23 AS col2
----
49
-920

query II rowsort
SELECT + 70 AS col1, + 20 AS col2
----
70
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT + MAX( ALL + - 84 ) + ( + SUM( ALL - 63 ) )
----
-147

skipif mysql # not compatible
query I rowsort label-3071
SELECT + MAX ( ALL + - 84 ) + ( + SUM ( ALL - 63 ) )
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT DISTINCT + COALESCE ( + - 85, - + SUM( - 26 ), 40 * + + COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + COALESCE ( + - 85, - + SUM ( - 26 ), 40 * + + COUNT ( * ) )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3073
SELECT ALL + 28, 79 * - CAST( NULL AS SIGNED ) / - NULLIF ( + COUNT( * ), + NULLIF ( + SUM( - 71 ), CAST( NULL AS DECIMAL ) ) * - + 75 * - + 53 ) - 1 AS col0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-3073
SELECT ALL + 28, 79 * - CAST ( NULL AS INTEGER ) / - NULLIF ( + COUNT ( * ), + NULLIF ( + SUM ( - 71 ), CAST ( NULL AS REAL ) ) * - + 75 * - + 53 ) - 1 AS col0
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT 57 * + COUNT( * ) + - 11 * + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3074
SELECT 57 * + COUNT ( * ) + - 11 * + + COUNT ( * )
----
46

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3076
SELECT DISTINCT + NULLIF ( + - CAST( NULL AS SIGNED ), + + CASE - + CAST( - 92 AS DECIMAL ) WHEN - 9 THEN + 43 WHEN 80 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT + NULLIF ( + - CAST ( NULL AS INTEGER ), + + CASE - + CAST ( - 92 AS REAL ) WHEN - 9 THEN + 43 WHEN 80 THEN NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT 21 DIV 71 - + 78 * - 79 * 73 AS col0
----
449826

skipif mysql # not compatible
query I rowsort label-3077
SELECT 21 / 71 - + 78 * - 79 * 73 AS col0
----
449826

onlyif mysql # aggregate syntax: 
query II rowsort label-3078
SELECT DISTINCT + COUNT( * ), - CASE + 70 WHEN - - 11 THEN SUM( ALL - + 41 ) + - 55 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3078
SELECT DISTINCT + COUNT ( * ), - CASE + 70 WHEN - - 11 THEN SUM ( ALL - + 41 ) + - 55 END AS col2
----
1
NULL

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

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + - 15 AS col0
----
-15

query II rowsort
SELECT + 46 AS col0, 5
----
46
5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT DISTINCT + COALESCE ( + - 33, + + 41, + 59, - 36 - - 6 ) AS col1, + CASE + 97 WHEN 60 THEN - 77 * + + MAX( ALL - 5 ) WHEN + 26 + + ( + 96 ) THEN NULL END
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-3082
SELECT DISTINCT + COALESCE ( + - 33, + + 41, + 59, - 36 - - 6 ) AS col1, + CASE + 97 WHEN 60 THEN - 77 * + + MAX ( ALL - 5 ) WHEN + 26 + + ( + 96 ) THEN NULL END
----
-33
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT - 46 + + - 43 * + MAX( + 78 ) AS col0, + 21 col1
----
-3400
21

skipif mysql # not compatible
query II rowsort label-3083
SELECT - 46 + + - 43 * + MAX ( + 78 ) AS col0, + 21 col1
----
-3400
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3084
SELECT 22 * + CAST( NULL AS SIGNED ) - ( 1 ) * - COUNT( * ) * + 86 / + 17 * - 47 + - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT 22 * + CAST ( NULL AS INTEGER ) - ( 1 ) * - COUNT ( * ) * + 86 / + 17 * - 47 + - 18 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT + 28 - - NULLIF ( 84, + 54 ) * - 12 * - + COUNT( * )
----
1036

skipif mysql # not compatible
query I rowsort label-3086
SELECT + 28 - - NULLIF ( 84, + 54 ) * - 12 * - + COUNT ( * )
----
1036

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

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

query I rowsort
SELECT - + 38 * 8
----
-304

query II rowsort
SELECT - - 50 AS col2, 81
----
50
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT + 60 + 64 * - CASE + - 78 WHEN - - 9 + 54 THEN + 54 * 72 WHEN + NULLIF ( - - 21, 63 ) * 45 - + 70 THEN 33 * 21 ELSE NULL END + COALESCE ( + CAST( - COALESCE ( + 82, 5 + 89 ) AS SIGNED ), 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT + 60 + 64 * - CASE + - 78 WHEN - - 9 + 54 THEN + 54 * 72 WHEN + NULLIF ( - - 21, 63 ) * 45 - + 70 THEN 33 * 21 ELSE NULL END + COALESCE ( + CAST ( - COALESCE ( + 82, 5 + 89 ) AS INTEGER ), 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL + COALESCE ( + 92, 93 * 71 + - COUNT( - - 40 ) + + 97, + 83 * 6 ) * 43 * - 35 * 41 * + ( CASE - 8 WHEN + 49 THEN + 54 END ) + + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL + COALESCE ( + 92, 93 * 71 + - COUNT ( - - 40 ) + + 97, + 83 * 6 ) * 43 * - 35 * 41 * + ( CASE - 8 WHEN + 49 THEN + 54 END ) + + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT - - 11 * + ( + COUNT( ALL + - 38 ) ) + + + 21
----
32

skipif mysql # not compatible
query I rowsort label-3092
SELECT - - 11 * + ( + COUNT ( ALL + - 38 ) ) + + + 21
----
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3094
SELECT DISTINCT - NULLIF ( - + COUNT( * ), - CAST( NULL AS SIGNED ) * + + 14 - + ( - 39 ) - + + CAST( NULL AS SIGNED ) + - 20 * - 24 ) AS col0, - 16 * - 97 * CASE + - 17 WHEN + 45 * - 73 THEN - 90 + + 5 END * 99 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3094
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), - CAST ( NULL AS INTEGER ) * + + 14 - + ( - 39 ) - + + CAST ( NULL AS INTEGER ) + - 20 * - 24 ) AS col0, - 16 * - 97 * CASE + - 17 WHEN + 45 * - 73 THEN - 90 + + 5 END * 99 AS col1
----
1
NULL

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

query I rowsort
SELECT ALL 80 + + 10
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT DISTINCT + 81 * + - COALESCE ( - 26, - COUNT( * ) + + - COUNT( * ), 63 * + 91 * - ( + 36 ), - - CAST( + - 74 AS SIGNED ) )
----
2106

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT + 81 * + - COALESCE ( - 26, - COUNT ( * ) + + - COUNT ( * ), 63 * + 91 * - ( + 36 ), - - CAST ( + - 74 AS INTEGER ) )
----
2106

query I rowsort
SELECT + 63 * + - 12 col2
----
-756

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT + + CAST( 14 AS SIGNED ) + - CAST( NULL AS SIGNED ) + 97 + - + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT + + CAST ( 14 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + 97 + - + 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT + - 68 + - MAX( DISTINCT + ( + 73 ) )
----
-141

skipif mysql # not compatible
query I rowsort label-3102
SELECT + - 68 + - MAX ( DISTINCT + ( + 73 ) )
----
-141

query I rowsort
SELECT + 42 * + - 30 AS col0
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL 48 - + COUNT( * ) + - 67
----
-20

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL 48 - + COUNT ( * ) + - 67
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT 73 * - MIN( DISTINCT + - 46 ) AS col1
----
3358

skipif mysql # not compatible
query I rowsort label-3105
SELECT 73 * - MIN ( DISTINCT + - 46 ) AS col1
----
3358

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3106
SELECT DISTINCT 36 / 11 * + + 92 / - + CAST( NULL AS SIGNED ) AS col0, + NULLIF ( 63, 58 + - NULLIF ( 0, - 89 ) * AVG ( DISTINCT + 69 ) )
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3106
SELECT DISTINCT 36 / 11 * + + 92 / - + CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( 63, 58 + - NULLIF ( 0, - 89 ) * AVG ( DISTINCT + 69 ) )
----
NULL
63

query I rowsort
SELECT DISTINCT 53 * 1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3108
SELECT SUM( - + 99 ) DIV + + 30
----
-3

skipif mysql # not compatible
query I rowsort label-3108
SELECT SUM ( - + 99 ) / + + 30
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3109
SELECT CAST( NULL AS DECIMAL ) / - 72 * 66 / + - 10 * + MIN( + ( - + 47 ) ) + - + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT CAST ( NULL AS REAL ) / - 72 * 66 / + - 10 * + MIN ( + ( - + 47 ) ) + - + 63 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT ALL 88 * + 2 * CAST( - 4 AS SIGNED ) AS col0
----
-704

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL 88 * + 2 * CAST ( - 4 AS INTEGER ) AS col0
----
-704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3111
SELECT ALL COUNT( * ) * + 53 DIV - 70 * - 32 col0
----
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL COUNT ( * ) * + 53 / - 70 * - 32 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT MAX( 19 ) DIV - + 92 col1
----
0

skipif mysql # not compatible
query I rowsort label-3112
SELECT MAX ( 19 ) / - + 92 col1
----
0

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

skipif mysql # not compatible
query I rowsort label-3113
SELECT 17 / 53
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3114
SELECT CASE - CAST( NULL AS DECIMAL ) WHEN - CAST( NULL AS SIGNED ) * + 3 + + 89 - - - 68 * + - 66 THEN ( - COALESCE ( 59, - COUNT( * ) ) ) * - + 67 * + 4 + 5 - - 87 * + 58 ELSE NULL END * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT CASE - CAST ( NULL AS REAL ) WHEN - CAST ( NULL AS INTEGER ) * + 3 + + 89 - - - 68 * + - 66 THEN ( - COALESCE ( 59, - COUNT ( * ) ) ) * - + 67 * + 4 + 5 - - 87 * + 58 ELSE NULL END * 96 AS col1
----
NULL

query I rowsort
SELECT 23 + - - 21 * + + 25 + - - 24 AS col0
----
572

query I rowsort
SELECT 27 * 45
----
1215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3117
SELECT DISTINCT + COALESCE ( + ( ( + 48 ) ), NULLIF ( - ( - CAST( NULL AS SIGNED ) ), - - 40 ) ) + COUNT( DISTINCT + 52 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT + COALESCE ( + ( ( + 48 ) ), NULLIF ( - ( - CAST ( NULL AS INTEGER ) ), - - 40 ) ) + COUNT ( DISTINCT + 52 ) AS col1
----
49

query II rowsort
SELECT ALL + 27 + - ( 29 ) + + + 52, - 70 AS col2
----
50
-70

query I rowsort
SELECT DISTINCT - 81 col1
----
-81

query I rowsort
SELECT ALL 81 + + + 39 - - 81 col1
----
201

query I rowsort
SELECT DISTINCT + - 47 + + 4 AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT CAST( NULLIF ( - - 85, - + MIN( DISTINCT + 10 ) + 31 ) AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3122
SELECT CAST ( NULLIF ( - - 85, - + MIN ( DISTINCT + 10 ) + 31 ) AS INTEGER ) AS col1
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ( - 99 ) * 53 + 57 * COUNT( * ) AS col1
----
-5190

skipif mysql # not compatible
query I rowsort label-3124
SELECT ( - 99 ) * 53 + 57 * COUNT ( * ) AS col1
----
-5190

query I rowsort
SELECT 65 - - 94
----
159

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL - 4 * - COALESCE ( 5, 48 - - 5 + - - ( - ( - + 31 ) ) ) + - SUM( ALL + 20 ) * NULLIF ( + + 7, + 31 * - 45 ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - 4 * - COALESCE ( 5, 48 - - 5 + - - ( - ( - + 31 ) ) ) + - SUM ( ALL + 20 ) * NULLIF ( + + 7, + 31 * - 45 ) AS col1
----
-120

query I rowsort
SELECT ALL + + 22 + 52 * CASE - - 66 WHEN + - 32 THEN + 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3129
SELECT 57 + + 55 AS col0, COALESCE ( - 43, - - 23, + - MIN( DISTINCT + - 80 ) * - 36 + - - 19 * - 52 + + 82 ) * - COUNT( * ) + - 73 AS col1
----
112
-30

skipif mysql # not compatible
query II rowsort label-3129
SELECT 57 + + 55 AS col0, COALESCE ( - 43, - - 23, + - MIN ( DISTINCT + - 80 ) * - 36 + - - 19 * - 52 + + 82 ) * - COUNT ( * ) + - 73 AS col1
----
112
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT - 81 * - - SUM( ALL 15 ) col2
----
-1215

skipif mysql # not compatible
query I rowsort label-3130
SELECT - 81 * - - SUM ( ALL 15 ) col2
----
-1215

query I rowsort
SELECT ALL COALESCE ( + 43, + 93 * 61, - 36 ) AS col2
----
43

query I rowsort
SELECT DISTINCT + - 79 - - 67
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT ALL + ( + - MAX( - 40 ) ) * + 97 + - ( CAST( + - NULLIF ( NULLIF ( 75, - - 23 * + - ( - - 49 ) - - 2 + - - 12 ), - 78 + 37 / + 98 ) AS SIGNED ) ) * 96 AS col2
----
11080

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + ( + - MAX ( - 40 ) ) * + 97 + - ( CAST ( + - NULLIF ( NULLIF ( 75, - - 23 * + - ( - - 49 ) - - 2 + - - 12 ), - 78 + 37 / + 98 ) AS INTEGER ) ) * 96 AS col2
----
11080

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT + CASE + + AVG ( DISTINCT - 51 ) WHEN - 95 THEN + 81 ELSE - MIN( + 83 ) END col0, COALESCE ( 54, - 1, - 96 * + 59 * + + 49 * - - NULLIF ( 56, - 24 ) - NULLIF ( 12, 22 ), + 75 + 25 ) AS col2
----
-83
54

skipif mysql # not compatible
query II rowsort label-3134
SELECT + CASE + + AVG ( DISTINCT - 51 ) WHEN - 95 THEN + 81 ELSE - MIN ( + 83 ) END col0, COALESCE ( 54, - 1, - 96 * + 59 * + + 49 * - - NULLIF ( 56, - 24 ) - NULLIF ( 12, 22 ), + 75 + 25 ) AS col2
----
-83
54

query I rowsort
SELECT 26 - COALESCE ( 20, 36 )
----
6

query I rowsort
SELECT ALL - 19 - 81 AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3137
SELECT DISTINCT + SUM( + 87 ) DIV - + COUNT( * ) AS col0
----
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + NULLIF ( + 69, + + 38 * + - 12 * - 45 * ( - 44 ) + - 92 ) + + - CASE 41 WHEN + 84 * - + 86 * COUNT( * ) - - 79 THEN NULL WHEN + CASE - 85 WHEN 5 THEN - 79 * 35 ELSE NULL END THEN - 27 * 16 + 37 END + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT + NULLIF ( + 69, + + 38 * + - 12 * - 45 * ( - 44 ) + - 92 ) + + - CASE 41 WHEN + 84 * - + 86 * COUNT ( * ) - - 79 THEN NULL WHEN + CASE - 85 WHEN 5 THEN - 79 * 35 ELSE NULL END THEN - 27 * 16 + 37 END + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ALL 53 * + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL 53 * + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT 5 + 46
----
51

query I rowsort
SELECT 92 * + 20 AS col2
----
1840

query I rowsort
SELECT DISTINCT 48 * 77 AS col0
----
3696

query I rowsort
SELECT 82 * + - 25 AS col1
----
-2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3144
SELECT ALL - 30 * + + 77 * + - CAST( NULL AS SIGNED ), COUNT( ALL - 10 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3144
SELECT ALL - 30 * + + 77 * + - CAST ( NULL AS INTEGER ), COUNT ( ALL - 10 ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT 12 * - COUNT( ALL ( - 33 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT 12 * - COUNT ( ALL ( - 33 ) )
----
-12

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

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

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

skipif mysql # not compatible
query I rowsort label-3147
SELECT COUNT ( 65 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT MIN( ( 27 ) ), 59 * - 46 AS col2
----
27
-2714

skipif mysql # not compatible
query II rowsort label-3148
SELECT MIN ( ( 27 ) ), 59 * - 46 AS col2
----
27
-2714

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

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

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

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL COUNT ( * ) + - 65 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-3151
SELECT + 0, 70 * + - SUM( ALL - 34 ) + + - 45 AS col0
----
0
2335

skipif mysql # not compatible
query II rowsort label-3151
SELECT + 0, 70 * + - SUM ( ALL - 34 ) + + - 45 AS col0
----
0
2335

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

skipif mysql # not compatible
query I rowsort label-3152
SELECT 58 * - - COUNT ( * ) - 55 + + - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT MIN( - 34 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-3153
SELECT MIN ( - 34 ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL SUM( ALL + 6 ) + - + COUNT( * ) + + 75
----
80

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL SUM ( ALL + 6 ) + - + COUNT ( * ) + + 75
----
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT COALESCE ( ( - 26 ), + ( 40 ) ) + - + 53 * + - ( + CAST( 36 AS SIGNED ) ) * - ( 15 ) * COUNT( * ) + + 54 * - COUNT( * ) + - ( - COALESCE ( + 8, 72, 91 ) ) - - COUNT( * ) * 1 AS col0
----
-28691

skipif mysql # not compatible
query I rowsort label-3156
SELECT COALESCE ( ( - 26 ), + ( 40 ) ) + - + 53 * + - ( + CAST ( 36 AS INTEGER ) ) * - ( 15 ) * COUNT ( * ) + + 54 * - COUNT ( * ) + - ( - COALESCE ( + 8, 72, 91 ) ) - - COUNT ( * ) * 1 AS col0
----
-28691

query I rowsort
SELECT ALL - ( - 71 ) + + ( - + 93 ) + - + 98
----
-120

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT ALL - COUNT( * ) + - CAST( - + 52 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL - COUNT ( * ) + - CAST ( - + 52 AS INTEGER )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT - SUM( COALESCE ( 41, 52 + - + 98 ) ) * 10 + - 72
----
-482

skipif mysql # not compatible
query I rowsort label-3160
SELECT - SUM ( COALESCE ( 41, 52 + - + 98 ) ) * 10 + - 72
----
-482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT - ( + 83 ) * 18 + CAST( NULL AS SIGNED ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT - ( + 83 ) * 18 + CAST ( NULL AS INTEGER ) / - - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT 64 * + 95 - + 80 col1, + COALESCE ( - CASE - COUNT( - ( - - 88 ) ) WHEN - + 50 THEN NULL WHEN + 82 - + + ( 91 ) THEN NULL ELSE 91 + - 31 END, 22 ) * + 65 - + CASE 85 WHEN ( + 8 ) + - 71 THEN + 87 WHEN COUNT( * ) * + 70 THEN NULL END * + COUNT( * )
----
6000
NULL

skipif mysql # not compatible
query II rowsort label-3163
SELECT 64 * + 95 - + 80 col1, + COALESCE ( - CASE - COUNT ( - ( - - 88 ) ) WHEN - + 50 THEN NULL WHEN + 82 - + + ( 91 ) THEN NULL ELSE 91 + - 31 END, 22 ) * + 65 - + CASE 85 WHEN ( + 8 ) + - 71 THEN + 87 WHEN COUNT ( * ) * + 70 THEN NULL END * + COUNT ( * )
----
6000
NULL

query I rowsort
SELECT ALL + 84 + + + 91 - - CASE - 25 WHEN - - 81 * + 11 + - NULLIF ( 4, + + 83 + 78 ) THEN + 70 WHEN + - 12 * + 27 - 94 - 9 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - - 79, - NULLIF ( - 4, + 14 / + 97 * + 90 ) * - 16 AS col1
----
79
-64

query I rowsort
SELECT DISTINCT 97 - 30
----
67

query I rowsort
SELECT - ( - 51 ) * + - 43 AS col2
----
-2193

onlyif mysql # aggregate syntax: 
query II rowsort label-3168
SELECT - 54 * 62 + + COUNT( * ), 40 * 23 AS col2
----
-3347
920

skipif mysql # not compatible
query II rowsort label-3168
SELECT - 54 * 62 + + COUNT ( * ), 40 * 23 AS col2
----
-3347
920

query I rowsort
SELECT ALL - 32 * - ( + 28 ) * 94 + + 17 AS col0
----
84241

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

query I rowsort
SELECT DISTINCT ( - 91 ) col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT DISTINCT CASE COUNT( * ) WHEN - ( 26 ) THEN NULL WHEN 9 * 48 THEN - 53 / + 83 ELSE ( - + 31 ) END
----
-31

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT CASE COUNT ( * ) WHEN - ( 26 ) THEN NULL WHEN 9 * 48 THEN - 53 / + 83 ELSE ( - + 31 ) END
----
-31

query II rowsort
SELECT ALL + 7 * 69 AS col1, 17 AS col2
----
483
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3174
SELECT - CASE 43 WHEN 14 THEN + + 27 WHEN - COUNT( * ) + - + COUNT( * ) THEN - 0 ELSE + COUNT( * ) END DIV + 87 * - 89
----
0

skipif mysql # not compatible
query I rowsort label-3174
SELECT - CASE 43 WHEN 14 THEN + + 27 WHEN - COUNT ( * ) + - + COUNT ( * ) THEN - 0 ELSE + COUNT ( * ) END / + 87 * - 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3175
SELECT ALL + 62 DIV - 17 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL + 62 / - 17 AS col1
----
-3

query I rowsort
SELECT - ( - 83 ) + + 34 col0
----
117

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

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

query I rowsort
SELECT - 83 + 80 + + 93 AS col2
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + 59 + - COUNT( * ) + - ( - SUM( - 49 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3180
SELECT + 59 + - COUNT ( * ) + - ( - SUM ( - 49 ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL + 62 + + - 20 + CASE - - 20 WHEN ( 82 ) THEN - 8 + - COUNT( * ) + - COUNT( ALL 84 ) WHEN COUNT( * ) * 86 - + 44 + - + COUNT( * ) * + + 7 + - 52 - + COUNT( * ) * - 19 + - 88 * COUNT( * ) THEN - 17 * - MAX( ALL + 47 * - 12 ) ELSE 9 END
----
51

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + 62 + + - 20 + CASE - - 20 WHEN ( 82 ) THEN - 8 + - COUNT ( * ) + - COUNT ( ALL 84 ) WHEN COUNT ( * ) * 86 - + 44 + - + COUNT ( * ) * + + 7 + - 52 - + COUNT ( * ) * - 19 + - 88 * COUNT ( * ) THEN - 17 * - MAX ( ALL + 47 * - 12 ) ELSE 9 END
----
51

query I rowsort
SELECT ALL - 99 + 87 + - + 63 AS col1
----
-75

query I rowsort
SELECT DISTINCT + 44 + 64 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL ( + COUNT( * ) ) + 5 * + COUNT( * ) * + - COALESCE ( - 7, - 66, + - ( + - 35 ) )
----
36

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL ( + COUNT ( * ) ) + 5 * + COUNT ( * ) * + - COALESCE ( - 7, - 66, + - ( + - 35 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT ( + + COUNT( * ) ) + - + COUNT( * ) - + 15 * - 98 * - CASE - 81 WHEN NULLIF ( + 44, - 19 ) * + 59 + - 54 + 43 THEN 17 WHEN 4 + 43 THEN 45 * 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT ( + + COUNT ( * ) ) + - + COUNT ( * ) - + 15 * - 98 * - CASE - 81 WHEN NULLIF ( + 44, - 19 ) * + 59 + - 54 + 43 THEN 17 WHEN 4 + 43 THEN 45 * 32 END
----
NULL

query I rowsort
SELECT 63 * 66 + + 71 AS col1
----
4229

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL + 22 * + COUNT( * ) + 44 * + 70 + + - 23 AS col2
----
3079

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + 22 * + COUNT ( * ) + 44 * + 70 + + - 23 AS col2
----
3079

query I rowsort
SELECT - 81 * 22
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + + MAX( - 40 ) + + COUNT( * ) + 14 * + + 68 AS col2
----
913

skipif mysql # not compatible
query I rowsort label-3189
SELECT + + MAX ( - 40 ) + + COUNT ( * ) + 14 * + + 68 AS col2
----
913

query II rowsort
SELECT 52, + 38 col2
----
52
38

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - - 25 - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - - 25 - + 31
----
NULL

query II rowsort
SELECT + - 17, 83 col0
----
-17
83

query II rowsort
SELECT + - 63, + COALESCE ( + 98, 60 ) * - - 39 AS col1
----
-63
3822

onlyif mysql # DIV for integer division: 
query II rowsort label-3196
SELECT + 69 DIV - - 98 + + + 72 + + - 95, 44 AS col2
----
-23
44

skipif mysql # not compatible
query II rowsort label-3196
SELECT + 69 / - - 98 + + + 72 + + - 95, 44 AS col2
----
-23
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3197
SELECT DISTINCT + 61 * ( - - ( 82 ) ) + ( - COUNT( DISTINCT + 88 ) ) - 26 + 2 + COALESCE ( + 32, 12 ) DIV + + 46 AS col1
----
4977

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + 61 * ( - - ( 82 ) ) + ( - COUNT ( DISTINCT + 88 ) ) - 26 + 2 + COALESCE ( + 32, 12 ) / + + 46 AS col1
----
4977

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL NULLIF ( - 27, 46 / 92 * - - 76 + + 63 * - 63 + - 20 ) * - 40 * + COUNT( * ) * - 33
----
-35640

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL NULLIF ( - 27, 46 / 92 * - - 76 + + 63 * - 63 + - 20 ) * - 40 * + COUNT ( * ) * - 33
----
-35640

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT + 66 * + - 57 + 51 + - - 20 DIV + + 88 * - 59 + - - 72 AS col0
----
-3639

skipif mysql # not compatible
query I rowsort label-3199
SELECT + 66 * + - 57 + 51 + - - 20 / + + 88 * - 59 + - - 72 AS col0
----
-3639

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL CASE 68 WHEN + + COUNT( * ) + - 95 THEN + 86 * 1 + NULLIF ( + 84, + 46 ) + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL CASE 68 WHEN + + COUNT ( * ) + - 95 THEN + 86 * 1 + NULLIF ( + 84, + 46 ) + 97 END
----
NULL

query II rowsort
SELECT ALL 14 AS col1, 55
----
14
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT + - 31 * + 88 + + SUM( ALL - - 72 ) - 65 + + 34 + - - 32 + + COUNT( * ) * 60 * - + 91 AS col1
----
-8115

skipif mysql # not compatible
query I rowsort label-3202
SELECT + - 31 * + 88 + + SUM ( ALL - - 72 ) - 65 + + 34 + - - 32 + + COUNT ( * ) * 60 * - + 91 AS col1
----
-8115

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT ALL + COUNT( DISTINCT - 72 ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3203
SELECT ALL + COUNT ( DISTINCT - 72 ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3204
SELECT + 75 AS col1, + COUNT( * ) + + 9 AS col1
----
75
10

skipif mysql # not compatible
query II rowsort label-3204
SELECT + 75 AS col1, + COUNT ( * ) + + 9 AS col1
----
75
10

query I rowsort
SELECT ALL COALESCE ( - 16, + 68 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL MAX( ALL - 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL MAX ( ALL - 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT - ( + 1 ) * - + 62 + 29 * - 39 * + COUNT( * )
----
-1069

skipif mysql # not compatible
query I rowsort label-3207
SELECT - ( + 1 ) * - + 62 + 29 * - 39 * + COUNT ( * )
----
-1069

query I rowsort
SELECT DISTINCT + 85 * - + 13 AS col0
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL - COUNT( * ) + 64 col0
----
63

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - COUNT ( * ) + 64 col0
----
63

query II rowsort
SELECT ALL + 76 + 14 col0, + 68
----
90
68

query I rowsort
SELECT + ( 32 ) + 93 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT + ( 15 ) * + + COUNT( * ) * - + 90 * 69 AS col2
----
-93150

skipif mysql # not compatible
query I rowsort label-3212
SELECT + ( 15 ) * + + COUNT ( * ) * - + 90 * 69 AS col2
----
-93150

query I rowsort
SELECT ALL 29 + 69 AS col2
----
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3216
SELECT ALL + 31 + - MIN( + + 44 ) + + 58 - - + 22 + 33 * - 30 - - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + 31 + - MIN ( + + 44 ) + + 58 - - + 22 + 33 * - 30 - - CAST ( NULL AS REAL ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3217
SELECT - 17 * - + 14, CAST( NULL AS SIGNED ) AS col1
----
238
NULL

skipif mysql # not compatible
query II rowsort label-3217
SELECT - 17 * - + 14, CAST ( NULL AS INTEGER ) AS col1
----
238
NULL

query I rowsort
SELECT DISTINCT + 58 * - 44
----
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT DISTINCT + COUNT( * ) + - CASE ( - - 67 ) WHEN + - COUNT( DISTINCT - 17 ) THEN - - 10 END * + 54 + - - COALESCE ( - 72, + - 85 * + 44 ) * + COALESCE ( + - COUNT( * ), + - ( - + 86 ) ) * + + ( + COALESCE ( - COUNT( * ), 99, + 18 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT + COUNT ( * ) + - CASE ( - - 67 ) WHEN + - COUNT ( DISTINCT - 17 ) THEN - - 10 END * + 54 + - - COALESCE ( - 72, + - 85 * + 44 ) * + COALESCE ( + - COUNT ( * ), + - ( - + 86 ) ) * + + ( + COALESCE ( - COUNT ( * ), 99, + 18 ) )
----
NULL

query I rowsort
SELECT DISTINCT ( - 78 ) AS col1
----
-78

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

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

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

query I rowsort
SELECT + 22 * 69 AS col1
----
1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT - 33 + - + 16 + + NULLIF ( + 25, - 10 ) * - COALESCE ( + CAST( NULL AS SIGNED ), + SUM( DISTINCT - 39 ) ) AS col1
----
926

skipif mysql # not compatible
query I rowsort label-3224
SELECT - 33 + - + 16 + + NULLIF ( + 25, - 10 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), + SUM ( DISTINCT - 39 ) ) AS col1
----
926

query I rowsort
SELECT ALL - - 77 * - 86
----
-6622

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT ALL + COALESCE ( + ( + - 69 ), - COUNT( * ) + - COUNT( * ) * + + 55 * + COUNT( DISTINCT - - 9 ), - + 45, + 70 ) AS col2, COUNT( * ) + - 63
----
-69
-62

skipif mysql # not compatible
query II rowsort label-3226
SELECT ALL + COALESCE ( + ( + - 69 ), - COUNT ( * ) + - COUNT ( * ) * + + 55 * + COUNT ( DISTINCT - - 9 ), - + 45, + 70 ) AS col2, COUNT ( * ) + - 63
----
-69
-62

query I rowsort
SELECT - + 39 * 2 * - 16 * + 52 + 55
----
64951

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + 0 + - NULLIF ( 48, + CASE + - ( - 85 ) WHEN - 44 THEN + MIN( DISTINCT - - 59 ) WHEN 68 * 85 + - + ( COUNT( * ) ) THEN NULL END + + 38 / 25 - + - ( + 33 ) * 23 )
----
-48

skipif mysql # not compatible
query I rowsort label-3230
SELECT + 0 + - NULLIF ( 48, + CASE + - ( - 85 ) WHEN - 44 THEN + MIN ( DISTINCT - - 59 ) WHEN 68 * 85 + - + ( COUNT ( * ) ) THEN NULL END + + 38 / 25 - + - ( + 33 ) * 23 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT + ( + COUNT( + + 11 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3231
SELECT + ( + COUNT ( + + 11 ) ) col0
----
1

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

query I rowsort
SELECT - - NULLIF ( 26, + + 95 ) + - - 41 AS col1
----
67

query I rowsort
SELECT + + 21 * + 96 + - 44
----
1972

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT - MAX( 61 ), + 80 col0
----
-61
80

skipif mysql # not compatible
query II rowsort label-3235
SELECT - MAX ( 61 ), + 80 col0
----
-61
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT 46 * 86 * + 4 + + + 15 + + CASE + 5 WHEN 82 * - 73 THEN NULL WHEN + + CAST( - 56 AS SIGNED ) / 73 - - 81 THEN + + 53 * + - 5 / + - ( - + 79 ) ELSE NULL END / + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT 46 * 86 * + 4 + + + 15 + + CASE + 5 WHEN 82 * - 73 THEN NULL WHEN + + CAST ( - 56 AS INTEGER ) / 73 - - 81 THEN + + 53 * + - 5 / + - ( - + 79 ) ELSE NULL END / + - COUNT ( * ) AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3239
SELECT ALL - COALESCE ( - 49, - COUNT( * ) DIV + 45 DIV 74, - CASE + 0 WHEN - + SUM( - 71 ) + - - NULLIF ( + - ( - 57 ), - 42 - + 11 ) THEN 15 DIV 40 WHEN - COALESCE ( - 16, + 31, - 4 ) * 50 + 25 * - 10 THEN 75 DIV - 49 END )
----
49

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL - COALESCE ( - 49, - COUNT ( * ) / + 45 / 74, - CASE + 0 WHEN - + SUM ( - 71 ) + - - NULLIF ( + - ( - 57 ), - 42 - + 11 ) THEN 15 / 40 WHEN - COALESCE ( - 16, + 31, - 4 ) * 50 + 25 * - 10 THEN 75 / - 49 END )
----
49

query II rowsort
SELECT DISTINCT 42 * - 44 * 98 AS col2, 48 AS col1
----
-181104
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT + 26 * - 77 + - 47 + + SUM( ALL + 34 ) + 24 * + 28 - + 65
----
-1408

skipif mysql # not compatible
query I rowsort label-3241
SELECT + 26 * - 77 + - 47 + + SUM ( ALL + 34 ) + 24 * + 28 - + 65
----
-1408

query I rowsort
SELECT 80 + 41
----
121

query I rowsort
SELECT ALL 99 * - 59
----
-5841

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT 98 DIV + - 67
----
-1

skipif mysql # not compatible
query I rowsort label-3244
SELECT 98 / + - 67
----
-1

query I rowsort
SELECT DISTINCT 89 + 69 * - 31 * - 28
----
59981

query II rowsort
SELECT 89 AS col1, + COALESCE ( - 72, + + 67 )
----
89
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT AVG ( 30 ) * + 97 + + 76 + + - CASE - 9 WHEN 16 * - 4 - - + 49 THEN 42 WHEN + + 68 * + 99 * ( COUNT( * ) ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT AVG ( 30 ) * + 97 + + 76 + + - CASE - 9 WHEN 16 * - 4 - - + 49 THEN 42 WHEN + + 68 * + 99 * ( COUNT ( * ) ) THEN NULL END col0
----
NULL

query II rowsort
SELECT ALL 75 AS col2, + ( - 99 )
----
75
-99

query I rowsort
SELECT ALL - 99 + + + 96 AS col1
----
-3

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

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL + ( + COUNT ( * ) ) + - - ( + 73 ) AS col2
----
74

query I rowsort
SELECT 33 + + 75
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT ALL CAST( + 83 AS SIGNED ) * - 45 * - - 4 AS col2
----
-14940

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL CAST ( + 83 AS INTEGER ) * - 45 * - - 4 AS col2
----
-14940

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

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

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

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

query I rowsort
SELECT 58 + 37
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT ALL - 9 * - NULLIF ( - 80, + + 5 * - + 55 - + 4 * + CAST( NULL AS SIGNED ) ) * - 0 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL - 9 * - NULLIF ( - 80, + + 5 * - + 55 - + 4 * + CAST ( NULL AS INTEGER ) ) * - 0 * - 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT DISTINCT + 18 - 99 DIV + ( 88 )
----
17

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT + 18 - 99 / + ( 88 )
----
17

query II rowsort
SELECT 13 AS col0, 69
----
13
69

query I rowsort
SELECT DISTINCT - 38 - - 18 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT 24 * - CAST( + NULLIF ( - 37, + 87 * - + COALESCE ( + 71, 14 ) / + - 82 * + 85 + + 66 ) AS SIGNED ) * - 70 + - 55 * + MAX( - CASE - 89 WHEN - - 22 THEN NULL ELSE - 97 END ) - - 87 * - 60
----
-72715

skipif mysql # not compatible
query I rowsort label-3261
SELECT 24 * - CAST ( + NULLIF ( - 37, + 87 * - + COALESCE ( + 71, 14 ) / + - 82 * + 85 + + 66 ) AS INTEGER ) * - 70 + - 55 * + MAX ( - CASE - 89 WHEN - - 22 THEN NULL ELSE - 97 END ) - - 87 * - 60
----
-72715

onlyif mysql # DIV for integer division: 
query I rowsort label-3262
SELECT DISTINCT - 5 DIV + - 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT - 5 / + - 24 AS col2
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3264
SELECT DISTINCT - 5 AS col2, + 77 + + CAST( NULL AS DECIMAL ) * + - 33 / - 99 AS col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-3264
SELECT DISTINCT - 5 AS col2, + 77 + + CAST ( NULL AS REAL ) * + - 33 / - 99 AS col0
----
-5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT ALL - 44 DIV + 87 + 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL - 44 / + 87 + 70 col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3266
SELECT + CAST( + CASE + NULLIF ( + - 72, + 54 * - 85 * + - AVG ( - 90 ) * + COUNT( * ) * 43 + - 91 + + + 90 * COUNT( * ) + - 51 * + NULLIF ( - 20, - 86 ) ) WHEN 64 THEN MIN( 95 ) ELSE ( + COALESCE ( 40, 6 + - SUM( CASE 53 WHEN + 14 THEN 57 ELSE NULL END + + 67 * 26 ) ) ) + COUNT( * ) END AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-3266
SELECT + CAST ( + CASE + NULLIF ( + - 72, + 54 * - 85 * + - AVG ( - 90 ) * + COUNT ( * ) * 43 + - 91 + + + 90 * COUNT ( * ) + - 51 * + NULLIF ( - 20, - 86 ) ) WHEN 64 THEN MIN ( 95 ) ELSE ( + COALESCE ( 40, 6 + - SUM ( CASE 53 WHEN + 14 THEN 57 ELSE NULL END + + 67 * 26 ) ) ) + COUNT ( * ) END AS INTEGER )
----
41

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

query I rowsort
SELECT - 73 * + - 5 * - 30 - - 26
----
-10924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3269
SELECT ALL - COUNT( * ) + - CASE + 96 WHEN - 82 THEN NULL WHEN ( - 8 ) THEN - 12 ELSE - 50 * COUNT( * ) END DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - COUNT ( * ) + - CASE + 96 WHEN - 82 THEN NULL WHEN ( - 8 ) THEN - 12 ELSE - 50 * COUNT ( * ) END / - 22
----
-3

query II rowsort
SELECT - 37 col2, 16 AS col2
----
-37
16

query I rowsort
SELECT 72 * - 10
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL NULLIF ( + COUNT( * ), 80 - - 91 ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL NULLIF ( + COUNT ( * ), 80 - - 91 ) + - 52
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT ALL + - 78 * COUNT( * ) * 15 AS col0, + ( - ( - 83 ) ) AS col1
----
-1170
83

skipif mysql # not compatible
query II rowsort label-3273
SELECT ALL + - 78 * COUNT ( * ) * 15 AS col0, + ( - ( - 83 ) ) AS col1
----
-1170
83

query II rowsort
SELECT + + 49, ( + 92 ) AS col0
----
49
92

query II rowsort
SELECT ALL - COALESCE ( - 80, + 13 ), 36 AS col1
----
80
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3276
SELECT ALL - - ( - COALESCE ( 13, - SUM( + 99 ) + MIN( DISTINCT 26 ), - COUNT( * ) ) ) + + 76, - CAST( - - 97 AS SIGNED ) DIV - 14 AS col1
----
63
6

skipif mysql # not compatible
query II rowsort label-3276
SELECT ALL - - ( - COALESCE ( 13, - SUM ( + 99 ) + MIN ( DISTINCT 26 ), - COUNT ( * ) ) ) + + 76, - CAST ( - - 97 AS INTEGER ) / - 14 AS col1
----
63
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3277
SELECT + COUNT( * ) AS col2, + 40 + - MAX( 1 ) AS col1
----
1
39

skipif mysql # not compatible
query II rowsort label-3277
SELECT + COUNT ( * ) AS col2, + 40 + - MAX ( 1 ) AS col1
----
1
39

query II rowsort
SELECT + - 26, - 36 + - 10 AS col2
----
-26
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT ALL + 12 + - + 39 - ( + CAST( NULL AS SIGNED ) ) * - 12 * - + AVG ( 72 ) * - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + 12 + - + 39 - ( + CAST ( NULL AS INTEGER ) ) * - 12 * - + AVG ( 72 ) * - 51 AS col2
----
NULL

query I rowsort
SELECT 82 + + ( 6 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3281
SELECT 27 * + 63 AS col2, CAST( 41 AS SIGNED ) + + 74 AS col2
----
1701
115

skipif mysql # not compatible
query II rowsort label-3281
SELECT 27 * + 63 AS col2, CAST ( 41 AS INTEGER ) + + 74 AS col2
----
1701
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT COUNT( * ) + + 8 * - 9
----
-71

skipif mysql # not compatible
query I rowsort label-3282
SELECT COUNT ( * ) + + 8 * - 9
----
-71

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

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + COUNT ( * ) + + - 56 AS col1
----
-55

query I rowsort
SELECT ALL 70 + 60 AS col1
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3285
SELECT 17 * + 44 col1, 1 + - 99 + - - CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col2
----
748
-97

skipif mysql # not compatible
query II rowsort label-3285
SELECT 17 * + 44 col1, 1 + - 99 + - - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col2
----
748
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT DISTINCT MIN( - 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT MIN ( - 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ( 33 ) - - 95 - - - 31 + - 17 * 86 + - COUNT( * ) * 89 * + 3
----
-1632

skipif mysql # not compatible
query I rowsort label-3287
SELECT ( 33 ) - - 95 - - - 31 + - 17 * 86 + - COUNT ( * ) * 89 * + 3
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT COUNT( * ) + - COALESCE ( + ( - - 61 ), - + COUNT( * ) * COUNT( * ) * - NULLIF ( + 23, + 33 ), - + 54 + - 34 - + COUNT( * ) ) + + 41 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3288
SELECT COUNT ( * ) + - COALESCE ( + ( - - 61 ), - + COUNT ( * ) * COUNT ( * ) * - NULLIF ( + 23, + 33 ), - + 54 + - 34 - + COUNT ( * ) ) + + 41 AS col2
----
-19

query I rowsort
SELECT 7 * 42 * - 85 AS col0
----
-24990

onlyif mysql # aggregate syntax: 
query II rowsort label-3290
SELECT COUNT( * ) * + 13, + NULLIF ( + 84, COUNT( * ) ) * + + ( - + 99 ) - + COUNT( * ) AS col0
----
13
-8317

skipif mysql # not compatible
query II rowsort label-3290
SELECT COUNT ( * ) * + 13, + NULLIF ( + 84, COUNT ( * ) ) * + + ( - + 99 ) - + COUNT ( * ) AS col0
----
13
-8317

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

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

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

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

query I rowsort
SELECT + 12 * - + 30 - 47
----
-407

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3295
SELECT + 26 / - 9 - + 24 * + 67 * - - 22 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 26 / - 9 - + 24 * + 67 * - - 22 * + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL 79 * - 22 + - COUNT( * )
----
-1739

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL 79 * - 22 + - COUNT ( * )
----
-1739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3298
SELECT + + 1 * MAX( - + 48 ) + + - 32, COALESCE ( - 50, + 54 / + 31 - + SUM( DISTINCT - 83 ) ) * 55 + 86 - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) / + 96 / 23 AS col1
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-3298
SELECT + + 1 * MAX ( - + 48 ) + + - 32, COALESCE ( - 50, + 54 / + 31 - + SUM ( DISTINCT - 83 ) ) * 55 + 86 - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) / + 96 / 23 AS col1
----
-80
NULL

query I rowsort
SELECT ALL - 86 * - ( 3 ) + 45 + - 68
----
235

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT + CASE COUNT( * ) WHEN - AVG ( 97 ) THEN NULL WHEN - + 21 + - ( - 52 ) THEN NULL ELSE + 73 END AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3300
SELECT + CASE COUNT ( * ) WHEN - AVG ( 97 ) THEN NULL WHEN - + 21 + - ( - 52 ) THEN NULL ELSE + 73 END AS col2
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-3301
SELECT ( 29 ) DIV - + 73 + + + 51, - 77 DIV + 99 AS col0
----
51
0

skipif mysql # not compatible
query II rowsort label-3301
SELECT ( 29 ) / - + 73 + + + 51, - 77 / + 99 AS col0
----
51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT - 84 * 49 + + SUM( ALL - 48 )
----
-4164

skipif mysql # not compatible
query I rowsort label-3302
SELECT - 84 * 49 + + SUM ( ALL - 48 )
----
-4164

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT ALL + 17 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + 17 / - 90 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3304
SELECT - COALESCE ( + - CAST( NULL AS SIGNED ), + 90 ) DIV + 56
----
-1

skipif mysql # not compatible
query I rowsort label-3304
SELECT - COALESCE ( + - CAST ( NULL AS INTEGER ), + 90 ) / + 56
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT - 13 + + - MIN( + + 77 )
----
-90

skipif mysql # not compatible
query I rowsort label-3305
SELECT - 13 + + - MIN ( + + 77 )
----
-90

query II rowsort
SELECT ALL + 43, - 16 AS col1
----
43
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-3307
SELECT - 77 DIV + ( 60 ), + 2 + - 5 AS col2
----
-1
-3

skipif mysql # not compatible
query II rowsort label-3307
SELECT - 77 / + ( 60 ), + 2 + - 5 AS col2
----
-1
-3

query I rowsort
SELECT DISTINCT - 54 * - + 34 AS col1
----
1836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT DISTINCT + CASE + 52 WHEN COUNT( * ) + - 28 - - 38 THEN 79 WHEN - 51 * + 68 THEN + + COALESCE ( + 27, 99 / + 5, + 43 * - - 62 * - CAST( NULL AS SIGNED ) ) + - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT + CASE + 52 WHEN COUNT ( * ) + - 28 - - 38 THEN 79 WHEN - 51 * + 68 THEN + + COALESCE ( + 27, 99 / + 5, + 43 * - - 62 * - CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) ELSE NULL END
----
NULL

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

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

query II rowsort
SELECT DISTINCT COALESCE ( + 53, 46 ) AS col1, - 66
----
53
-66

query I rowsort
SELECT - 17 * - 24 AS col1
----
408

query I rowsort
SELECT 73 * - - 43 + - 41 AS col2
----
3098

query I rowsort
SELECT - COALESCE ( - 49, + 22, - 98 ) AS col0
----
49

query II rowsort
SELECT DISTINCT 46, + 46 AS col2
----
46
46

query I rowsort
SELECT ALL 81 - + 19 * + 35 * - + 99 * + 10
----
658431

query I rowsort
SELECT - 87 * - 34 AS col1
----
2958

query I rowsort
SELECT + 4 + + 50 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT 16 * - + COALESCE ( - COALESCE ( 57, + 24 + - 14, - COUNT( * ) ), 54 * - 19 + COALESCE ( + 67, - + SUM( + + CAST( NULL AS SIGNED ) ) ) + 19 )
----
912

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT 16 * - + COALESCE ( - COALESCE ( 57, + 24 + - 14, - COUNT ( * ) ), 54 * - 19 + COALESCE ( + 67, - + SUM ( + + CAST ( NULL AS INTEGER ) ) ) + 19 )
----
912

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT DISTINCT + 92 DIV + - 52
----
-1

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT + 92 / + - 52
----
-1

query I rowsort
SELECT ALL COALESCE ( - + 67, - - 82 + + 33 ) * + 4 col2
----
-268

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT 42 AS col2, + 19 * 88 * 55 + + COUNT( * ) + - 30 - 40 AS col1
----
42
91891

skipif mysql # not compatible
query II rowsort label-3322
SELECT 42 AS col2, + 19 * 88 * 55 + + COUNT ( * ) + - 30 - 40 AS col1
----
42
91891

query I rowsort
SELECT DISTINCT + 77 * + - 47
----
-3619

query I rowsort
SELECT + + 39 * 42 + 30 AS col1
----
1668

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3325
SELECT + + 33 + + 94 DIV + NULLIF ( 86, - 44 * - - COUNT( * ) * + - 44 ) + - 25 + + + 20 DIV + + 14 AS col0, 56 AS col0
----
10
56

skipif mysql # not compatible
query II rowsort label-3325
SELECT + + 33 + + 94 / + NULLIF ( 86, - 44 * - - COUNT ( * ) * + - 44 ) + - 25 + + + 20 / + + 14 AS col0, 56 AS col0
----
10
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3326
SELECT + - MAX( - + CAST( + ( + 51 ) AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT + - MAX ( - + CAST ( + ( + 51 ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3327
SELECT ALL - CASE - 53 WHEN - 25 THEN 14 WHEN COUNT( * ) THEN + + 46 END + - CASE + + COALESCE ( + - 60, + COALESCE ( 17, + + 38 + - 45, 42 * COALESCE ( - 67, + 53, 6 ) ), - COALESCE ( + 32, - COUNT( * ) * NULLIF ( 72, COUNT( 13 ) ), 18, 49 - 10 ) * - ( + 61 ) + + 78 ) WHEN CAST( NULL AS SIGNED ) / 44 THEN - 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL - CASE - 53 WHEN - 25 THEN 14 WHEN COUNT ( * ) THEN + + 46 END + - CASE + + COALESCE ( + - 60, + COALESCE ( 17, + + 38 + - 45, 42 * COALESCE ( - 67, + 53, 6 ) ), - COALESCE ( + 32, - COUNT ( * ) * NULLIF ( 72, COUNT ( 13 ) ), 18, 49 - 10 ) * - ( + 61 ) + + 78 ) WHEN CAST ( NULL AS INTEGER ) / 44 THEN - 67 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3328
SELECT - + COALESCE ( 31, - NULLIF ( - COUNT( * ), - 99 ) ) AS col0, 45 DIV + 56 + 82 AS col0
----
-31
82

skipif mysql # not compatible
query II rowsort label-3328
SELECT - + COALESCE ( 31, - NULLIF ( - COUNT ( * ), - 99 ) ) AS col0, 45 / + 56 + 82 AS col0
----
-31
82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3330
SELECT + SUM( 90 ) * - ( - COALESCE ( + - 61, 4 * - COUNT( * ), - CASE WHEN NOT + 63 BETWEEN 83 AND 32 + - + NULLIF ( 47, - + SUM( ALL + 5 ) + - - 8 ) THEN CAST( 39 AS SIGNED ) ELSE - 5 END ) )
----
-5490

skipif mysql # not compatible
query I rowsort label-3330
SELECT + SUM ( 90 ) * - ( - COALESCE ( + - 61, 4 * - COUNT ( * ), - CASE WHEN NOT + 63 BETWEEN 83 AND 32 + - + NULLIF ( 47, - + SUM ( ALL + 5 ) + - - 8 ) THEN CAST ( 39 AS INTEGER ) ELSE - 5 END ) )
----
-5490

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + CASE COUNT( * ) WHEN + + 46 * + - 89 + + + 61 THEN 64 END * + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT + CASE COUNT ( * ) WHEN + + 46 * + - 89 + + + 61 THEN 64 END * + - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT + 35 - COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3332
SELECT + 35 - COUNT ( * ) AS col0
----
34

query I rowsort
SELECT - + 32 * 53
----
-1696

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

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

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

query I rowsort
SELECT ALL + 95 * + 58 - - 73 * - 15 AS col1
----
4415

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

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

query I rowsort
SELECT ALL 7 * - ( + 36 ) AS col0
----
-252

query II rowsort
SELECT ALL + 46 col1, + 69
----
46
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT ALL + CASE + 79 WHEN 71 / - + 15 THEN + - 41 + - 8 + - + 54 + - ( MIN( ALL - 25 ) ) * + COUNT( * ) * - 96 - + + 39 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + CASE + 79 WHEN 71 / - + 15 THEN + - 41 + - 8 + - + 54 + - ( MIN ( ALL - 25 ) ) * + COUNT ( * ) * - 96 - + + 39 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL + 18 * - COUNT( * ) - - 49
----
31

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + 18 * - COUNT ( * ) - - 49
----
31

query I rowsort
SELECT - 71 * 57 AS col1
----
-4047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3343
SELECT - 45 * COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) + + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT - 45 * COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) + + 35 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT ALL + 77 DIV + - 46 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + 77 / + - 46 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT + 35 * 77 DIV + 24
----
112

skipif mysql # not compatible
query I rowsort label-3345
SELECT + 35 * 77 / + 24
----
112

query II rowsort
SELECT ALL + 61 AS col2, + 36 AS col2
----
61
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT DISTINCT ( - - NULLIF ( - - ( + - CASE 96 WHEN NULLIF ( + COALESCE ( 1, - - 53, 71 ), 54 ) THEN + - 92 / + 6 + + CAST( NULL AS SIGNED ) + COALESCE ( + 35, + 15 ) END ), 76 ) ) / - 29 * + + 2 * + 84 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT ( - - NULLIF ( - - ( + - CASE 96 WHEN NULLIF ( + COALESCE ( 1, - - 53, 71 ), 54 ) THEN + - 92 / + 6 + + CAST ( NULL AS INTEGER ) + COALESCE ( + 35, + 15 ) END ), 76 ) ) / - 29 * + + 2 * + 84 * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 50 * + + 51
----
2550

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3349
SELECT ALL + CAST( + 4 AS SIGNED ) DIV 35 * 69
----
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL + CAST ( + 4 AS INTEGER ) / 35 * 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT COALESCE ( - - 87, - COUNT( * ) * - + 30, + 71 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT COALESCE ( - - 87, - COUNT ( * ) * - + 30, + 71 ) AS col1
----
87

query I rowsort
SELECT - 63 + 33
----
-30

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

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

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

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL ( - COUNT ( - 70 ) )
----
-1

query I rowsort
SELECT ALL + 65 * - - 54
----
3510

query I rowsort
SELECT ALL + + 64 + - 88 AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT NULLIF ( - + CAST( + 52 AS SIGNED ), - + 75 * - + ( - 72 ) ) * CAST( 2 AS SIGNED ) + + 30
----
-74

skipif mysql # not compatible
query I rowsort label-3356
SELECT NULLIF ( - + CAST ( + 52 AS INTEGER ), - + 75 * - + ( - 72 ) ) * CAST ( 2 AS INTEGER ) + + 30
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3357
SELECT - COUNT( DISTINCT + + 26 ) AS col2, 60 * + 42 col0
----
-1
2520

skipif mysql # not compatible
query II rowsort label-3357
SELECT - COUNT ( DISTINCT + + 26 ) AS col2, 60 * + 42 col0
----
-1
2520

query II rowsort
SELECT ALL 10, 13 AS col1
----
10
13

query I rowsort
SELECT - ( + 77 ) AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3360
SELECT DISTINCT - MIN( DISTINCT - + 11 ) + - + CAST( + - 9 AS SIGNED ) + + 16 DIV 99 * 5
----
20

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - MIN ( DISTINCT - + 11 ) + - + CAST ( + - 9 AS INTEGER ) + + 16 / 99 * 5
----
20

query II rowsort
SELECT DISTINCT 66 AS col1, - 6 AS col0
----
66
-6

query I rowsort
SELECT ALL 70 + + 87 * - 83 + - 72
----
-7223

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + COALESCE ( - SUM( + 7 ), - 17 * COUNT( * ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3363
SELECT + COALESCE ( - SUM ( + 7 ), - 17 * COUNT ( * ) ) AS col2
----
-7

query I rowsort
SELECT DISTINCT + 54 + + 88
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-3365
SELECT ALL 97 * COALESCE ( - COUNT( * ), + 37 ) + - - 41 + 73 * + 13 AS col0, COUNT( * ) AS col0
----
893
1

skipif mysql # not compatible
query II rowsort label-3365
SELECT ALL 97 * COALESCE ( - COUNT ( * ), + 37 ) + - - 41 + 73 * + 13 AS col0, COUNT ( * ) AS col0
----
893
1

query I rowsort
SELECT - 24 * - 60 + - ( NULLIF ( + + 82, - 51 - + 82 ) )
----
1358

query II rowsort
SELECT - 6, 85 + 98 AS col1
----
-6
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT ALL - ( - 24 ) * - SUM( ALL - 17 ) + 7 DIV - 10 + - + 55 AS col0
----
353

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL - ( - 24 ) * - SUM ( ALL - 17 ) + 7 / - 10 + - + 55 AS col0
----
353

query I rowsort
SELECT + 33 + + 59 * + 58 + 49
----
3504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3370
SELECT - - NULLIF ( - + 77, - COUNT( * ) * - 9 + + ( 39 ) + 21 * + + COUNT( * ) + + COUNT( * ) ) DIV - 6 - + 75 + - COUNT( + 73 ) - - - 97 + + 69 * 50 + - - ( + NULLIF ( + - COUNT( * ), - 1 * 66 * ( + 48 ) ) ) * - 88 * - 74
----
-3223

skipif mysql # not compatible
query I rowsort label-3370
SELECT - - NULLIF ( - + 77, - COUNT ( * ) * - 9 + + ( 39 ) + 21 * + + COUNT ( * ) + + COUNT ( * ) ) / - 6 - + 75 + - COUNT ( + 73 ) - - - 97 + + 69 * 50 + - - ( + NULLIF ( + - COUNT ( * ), - 1 * 66 * ( + 48 ) ) ) * - 88 * - 74
----
-3223

onlyif mysql # aggregate syntax: 
query II rowsort label-3371
SELECT ALL - + 77 AS col1, COUNT( * ) AS col1
----
-77
1

skipif mysql # not compatible
query II rowsort label-3371
SELECT ALL - + 77 AS col1, COUNT ( * ) AS col1
----
-77
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3372
SELECT ALL 86 - + MAX( DISTINCT + 49 ) + - 93 DIV 10 + - 36
----
-8

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL 86 - + MAX ( DISTINCT + 49 ) + - 93 / 10 + - 36
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT + 69 * - COUNT( * ) - - 5 + + - 64 + + 35 * - MIN( + 4 ) AS col1
----
-268

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT + 69 * - COUNT ( * ) - - 5 + + - 64 + + 35 * - MIN ( + 4 ) AS col1
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL 99 - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL 99 - COUNT ( * ) AS col0
----
98

query II rowsort
SELECT ALL 48 * - 71, - 28 AS col0
----
-3408
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT COUNT( * ) * 54 col2
----
54

skipif mysql # not compatible
query I rowsort label-3376
SELECT COUNT ( * ) * 54 col2
----
54

query I rowsort
SELECT ( - 89 ) * + 92 * - 65 * + + 25 + 32
----
13305532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT ALL CAST( 2 AS SIGNED ) * + 93
----
186

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL CAST ( 2 AS INTEGER ) * + 93
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT ALL CAST( NULL AS SIGNED ) * + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL CAST ( NULL AS INTEGER ) * + - 99 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3380
SELECT ( + 60 ) * + 0 * + 72 * + - 9 DIV + 83 DIV - + 58 DIV + 47 + - 43 + + + 38, 86 AS col1
----
-5
86

skipif mysql # not compatible
query II rowsort label-3380
SELECT ( + 60 ) * + 0 * + 72 * + - 9 / + 83 / - + 58 / + 47 + - 43 + + + 38, 86 AS col1
----
-5
86

query I rowsort
SELECT ALL ( + - 8 ) * - 86 * + - 77 + + 94
----
-52882

query I rowsort
SELECT ALL - ( + 31 ) AS col0
----
-31

query II rowsort
SELECT 70 * - 93 * 51 col2, + 57
----
-332010
57

query I rowsort
SELECT ALL 39 + - 37 * - 15 AS col2
----
594

query I rowsort
SELECT 48 + 40
----
88

query I rowsort
SELECT 54 + - 34
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT 98 + 97 * - - SUM( - + 96 ) * 24
----
-223390

skipif mysql # not compatible
query I rowsort label-3387
SELECT 98 + 97 * - - SUM ( - + 96 ) * 24
----
-223390

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT DISTINCT + - COUNT( * ) + + 36 + + ( + - COUNT( * ) ) col0
----
34

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT + - COUNT ( * ) + + 36 + + ( + - COUNT ( * ) ) col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL + - COUNT( 77 ) + + - 98 + - 84 AS col1
----
-183

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + - COUNT ( 77 ) + + - 98 + - 84 AS col1
----
-183

query I rowsort
SELECT DISTINCT - - ( 97 ) * 26 * + + 47 AS col0
----
118534

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL + 36 + + 85 + - + SUM( - 65 ) - + 86 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL + 36 + + 85 + - + SUM ( - 65 ) - + 86 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT 77 + 33 + + 71 - + 34 + ( ( MAX( ALL + NULLIF ( 19, 97 ) ) ) )
----
166

skipif mysql # not compatible
query I rowsort label-3392
SELECT 77 + 33 + + 71 - + 34 + ( ( MAX ( ALL + NULLIF ( 19, 97 ) ) ) )
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3393
SELECT DISTINCT - 25 + - 57, CAST( + + COUNT( * ) AS SIGNED ) * CAST( NULL AS DECIMAL ) AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-3393
SELECT DISTINCT - 25 + - 57, CAST ( + + COUNT ( * ) AS INTEGER ) * CAST ( NULL AS REAL ) AS col1
----
-82
NULL

query I rowsort
SELECT + 64 + + 82 * 84 AS col1
----
6952

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT + + 94 - - 62 + - + NULLIF ( - 33, - + 39 * + 85 * + COUNT( * ) ) AS col0
----
189

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT + + 94 - - 62 + - + NULLIF ( - 33, - + 39 * + 85 * + COUNT ( * ) ) AS col0
----
189

query I rowsort
SELECT - 58 * + - 23 AS col1
----
1334

onlyif mysql # aggregate syntax: 
query III rowsort label-3397
SELECT + - SUM( DISTINCT 63 ) AS col0, 13, + COALESCE ( + 62, - 31 ) col0
----
-63
13
62

skipif mysql # not compatible
query III rowsort label-3397
SELECT + - SUM ( DISTINCT 63 ) AS col0, 13, + COALESCE ( + 62, - 31 ) col0
----
-63
13
62

query I rowsort
SELECT ALL - NULLIF ( + ( 34 ), 48 ) col1
----
-34

query II rowsort
SELECT + 58, 95 * + - 90 AS col2
----
58
-8550

query I rowsort
SELECT 1 * 72
----
72

query I rowsort
SELECT 36 * - 22 * + 76
----
-60192

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT 42 DIV NULLIF ( 18, + 86 * - 42 )
----
2

skipif mysql # not compatible
query I rowsort label-3402
SELECT 42 / NULLIF ( 18, + 86 * - 42 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT SUM( 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3403
SELECT SUM ( 44 ) AS col0
----
44

query I rowsort
SELECT ALL - ( + - 0 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT 26 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT 26 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3406
SELECT 32 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3406
SELECT 32 / - 84 AS col0
----
0

query I rowsort
SELECT DISTINCT - 78 * - + 5 AS col0
----
390

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3408
SELECT ALL + 53 * 56 + + NULLIF ( CAST( NULL AS DECIMAL ), - 35 + 60 ) * 4 * MAX( + 22 ) / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + 53 * 56 + + NULLIF ( CAST ( NULL AS REAL ), - 35 + 60 ) * 4 * MAX ( + 22 ) / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT COUNT( + NULLIF ( 58, - - 76 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3409
SELECT COUNT ( + NULLIF ( 58, - - 76 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL - SUM( DISTINCT 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - SUM ( DISTINCT 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT + SUM( + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-3411
SELECT + SUM ( + 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + SUM( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-3412
SELECT + SUM ( ALL - 6 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3413
SELECT + COUNT( * ) AS col0, 86 * - ( CAST( NULL AS SIGNED ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3413
SELECT + COUNT ( * ) AS col0, 86 * - ( CAST ( NULL AS INTEGER ) ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT ALL 98 + + MIN( 98 ) * - + 58
----
-5586

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL 98 + + MIN ( 98 ) * - + 58
----
-5586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT + COALESCE ( - - ( + COUNT( DISTINCT - 81 ) ), - MAX( ALL + 36 ), + + 2 ) * + ( - 55 ) DIV ( - 79 ) + 60 + ( 22 )
----
82

skipif mysql # not compatible
query I rowsort label-3415
SELECT + COALESCE ( - - ( + COUNT ( DISTINCT - 81 ) ), - MAX ( ALL + 36 ), + + 2 ) * + ( - 55 ) / ( - 79 ) + 60 + ( 22 )
----
82

query II rowsort
SELECT ALL + - 29 AS col1, - ( + 73 ) * 57 - - 45
----
-29
-4116

query I rowsort
SELECT ALL 73 + + + 50 AS col1
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT DISTINCT + CAST( + - 60 AS SIGNED ) + - CAST( - 42 AS SIGNED ) - + 32 * + 0 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + CAST ( + - 60 AS INTEGER ) + - CAST ( - 42 AS INTEGER ) - + 32 * + 0 AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT + - 27 + 78 col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT + + CAST( NULL AS SIGNED ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT + + CAST ( NULL AS INTEGER ) * + 91
----
NULL

query II rowsort
SELECT - 7, - ( - 84 ) AS col2
----
-7
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT + COUNT( * ) + + + 88 - - - 50 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3423
SELECT + COUNT ( * ) + + + 88 - - - 50 AS col0
----
39

query I rowsort
SELECT DISTINCT - 22 * + + 93 AS col1
----
-2046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3425
SELECT - 42 * ( + 25 ) DIV + + MAX( + 29 )
----
-36

skipif mysql # not compatible
query I rowsort label-3425
SELECT - 42 * ( + 25 ) / + + MAX ( + 29 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL - CAST( - COALESCE ( 12, - 10, + 1 ) AS SIGNED ) * 25 * 42 * - COALESCE ( - - 69, - 65 )
----
-869400

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - CAST ( - COALESCE ( 12, - 10, + 1 ) AS INTEGER ) * 25 * 42 * - COALESCE ( - - 69, - 65 )
----
-869400

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT - - 84 - + + NULLIF ( 1, - NULLIF ( - 42, - COUNT( * ) ) ) + - COUNT( + 67 )
----
82

skipif mysql # not compatible
query I rowsort label-3427
SELECT - - 84 - + + NULLIF ( 1, - NULLIF ( - 42, - COUNT ( * ) ) ) + - COUNT ( + 67 )
----
82

query I rowsort
SELECT ALL - 78 * - 15 * 60 AS col1
----
70200

query II rowsort
SELECT ALL 52 AS col1, + 58 * + + 48 col2
----
52
2784

query I rowsort
SELECT + 42 + 73
----
115

query I rowsort
SELECT + 1 * + - 68 AS col1
----
-68

query I rowsort
SELECT - 18 + + 53
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT ALL + CASE 33 WHEN - 73 + CAST( - 7 AS SIGNED ) THEN - COUNT( * ) + + 7 ELSE + 81 END
----
81

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + CASE 33 WHEN - 73 + CAST ( - 7 AS INTEGER ) THEN - COUNT ( * ) + + 7 ELSE + 81 END
----
81

query I rowsort
SELECT ( + - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT DISTINCT + MAX( - 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT + MAX ( - 84 ) AS col1
----
-84

query II rowsort
SELECT ( - 14 ), 46 col0
----
-14
46

query I rowsort
SELECT - 35 * ( + + 4 ) AS col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT + SUM( - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3438
SELECT + SUM ( - 36 ) AS col1
----
-36

query I rowsort
SELECT - 4 * - + 82 * - - 66
----
21648

query I rowsort
SELECT ALL - 20 * + ( ( - 61 ) ) * 21
----
25620

query I rowsort
SELECT NULLIF ( + 65, + - 36 / - - ( - 93 ) ) col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3442
SELECT ALL 51 * + ( 29 ) * + - COUNT( * ) * + ( - - ( CAST( - COUNT( * ) AS SIGNED ) ) ) + + CAST( 67 AS SIGNED ) * - - 30 + - 15, - 81 AS col1
----
3474
-81

skipif mysql # not compatible
query II rowsort label-3442
SELECT ALL 51 * + ( 29 ) * + - COUNT ( * ) * + ( - - ( CAST ( - COUNT ( * ) AS INTEGER ) ) ) + + CAST ( 67 AS INTEGER ) * - - 30 + - 15, - 81 AS col1
----
3474
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT ALL 36 DIV + - 35
----
-1

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL 36 / + - 35
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT DISTINCT 45 DIV - - 22 col1
----
2

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT 45 / - - 22 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + 33 * COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 33 * COUNT ( * )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT - CASE + 46 WHEN + ( + COALESCE ( + COALESCE ( + 18, + 27 * + 52 * - - 7 + 17 + - 95 / - 38 * 99 ), + 93 ) ) THEN + 64 WHEN - + 54 + + 87 + - 84 * + + 94 THEN + + 48 END * - COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) * 66 - COUNT( DISTINCT + 60 ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT - CASE + 46 WHEN + ( + COALESCE ( + COALESCE ( + 18, + 27 * + 52 * - - 7 + 17 + - 95 / - 38 * 99 ), + 93 ) ) THEN + 64 WHEN - + 54 + + 87 + - 84 * + + 94 THEN + + 48 END * - COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * 66 - COUNT ( DISTINCT + 60 ) + - 70
----
NULL

query I rowsort
SELECT - + 99 col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL + COUNT( * ) * 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + COUNT ( * ) * 5 AS col0
----
5

query I rowsort
SELECT + + 4 * - + 86
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL - 93 * + + 29 - - - COUNT( * ) + + 52 AS col1
----
-2646

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - 93 * + + 29 - - - COUNT ( * ) + + 52 AS col1
----
-2646

query I rowsort
SELECT ALL - 49 * 7
----
-343

query I rowsort
SELECT + 18 * - NULLIF ( 85, + + 81 ) AS col2
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT - COUNT( * ) + + + MAX( 17 ) * + 59
----
1002

skipif mysql # not compatible
query I rowsort label-3453
SELECT - COUNT ( * ) + + + MAX ( 17 ) * + 59
----
1002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3454
SELECT DISTINCT COUNT( + - CAST( - 35 AS SIGNED ) ) col0, - 5 AS col0
----
1
-5

skipif mysql # not compatible
query II rowsort label-3454
SELECT DISTINCT COUNT ( + - CAST ( - 35 AS INTEGER ) ) col0, - 5 AS col0
----
1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT DISTINCT COUNT( * ) + - + 18 + - SUM( DISTINCT + - 58 )
----
41

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT COUNT ( * ) + - + 18 + - SUM ( DISTINCT + - 58 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3456
SELECT + 71 DIV + NULLIF ( + 61, ( 63 ) * 93 * + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3456
SELECT + 71 / + NULLIF ( + 61, ( 63 ) * 93 * + COUNT ( * ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT ALL + 23 + + 46 DIV 3 * + 49 + + 78 * + 87 AS col0
----
7544

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL + 23 + + 46 / 3 * + 49 + + 78 * + 87 AS col0
----
7544

query I rowsort
SELECT ALL - 60 + + + 68
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3459
SELECT DISTINCT 66 DIV + 55 * + COUNT( * ) + + - MAX( + - 16 ) DIV - COUNT( * ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT 66 / + 55 * + COUNT ( * ) + + - MAX ( + - 16 ) / - COUNT ( * ) col1
----
-15

query I rowsort
SELECT ALL - 51 * + 54
----
-2754

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT + 35 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT + 35 / - 67
----
0

query I rowsort
SELECT + 52 * - 69
----
-3588

query I rowsort
SELECT 70 * 38 * - 59
----
-156940

query I rowsort
SELECT ALL - 60 + - 30 + + + 80 col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3465
SELECT + 53 * - 74 - 93 AS col0, COUNT( + 1 ) + - + 70 * + + MIN( ALL - 60 )
----
-4015
4201

skipif mysql # not compatible
query II rowsort label-3465
SELECT + 53 * - 74 - 93 AS col0, COUNT ( + 1 ) + - + 70 * + + MIN ( ALL - 60 )
----
-4015
4201

query I rowsort
SELECT ALL - ( - CASE + + 7 WHEN CASE + 38 WHEN - 14 + - 77 THEN 79 END * + + 1 * 0 THEN COALESCE ( + - 23, - + 53 ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT - MAX( + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT - MAX ( + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL SUM( DISTINCT 30 ) + + 29
----
59

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL SUM ( DISTINCT 30 ) + + 29
----
59

query I rowsort
SELECT ALL + 97 * + 91 * - 45 * 39
----
-15491385

query I rowsort
SELECT - 34 * 23 AS col1
----
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT 1 + - - NULLIF ( 59, - 88 * CAST( NULL AS SIGNED ) ) * 1 + + 90
----
150

skipif mysql # not compatible
query I rowsort label-3471
SELECT 1 + - - NULLIF ( 59, - 88 * CAST ( NULL AS INTEGER ) ) * 1 + + 90
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3472
SELECT + CASE 62 WHEN - - 56 + - - 83 THEN NULL ELSE 62 END AS col1, 25, 95 * CAST( COUNT( * ) AS SIGNED ) * - 71 + + + 1 + 69 DIV 55 AS col1
----
62
25
-6743

skipif mysql # not compatible
query III rowsort label-3472
SELECT + CASE 62 WHEN - - 56 + - - 83 THEN NULL ELSE 62 END AS col1, 25, 95 * CAST ( COUNT ( * ) AS INTEGER ) * - 71 + + + 1 + 69 / 55 AS col1
----
62
25
-6743

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL + COUNT( * ) * + 9 + - 61
----
-52

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + COUNT ( * ) * + 9 + - 61
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - CASE - - COUNT( * ) WHEN 83 + - + 33 THEN + + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT - CASE - - COUNT ( * ) WHEN 83 + - + 33 THEN + + 30 END
----
NULL

query I rowsort
SELECT DISTINCT + 55 * + - 6 + + + 19
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL + 44 * + COUNT( * ) * 37
----
1628

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + 44 * + COUNT ( * ) * 37
----
1628

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3477
SELECT COALESCE ( 39, - + 8 DIV - 68 + + 41 + - 12 ) * + ( + 72 ) * + COALESCE ( + + 89, - SUM( + 4 ) * + 54 ) col0, 6 + - + 89 - 24 AS col1
----
249912
-107

skipif mysql # not compatible
query II rowsort label-3477
SELECT COALESCE ( 39, - + 8 / - 68 + + 41 + - 12 ) * + ( + 72 ) * + COALESCE ( + + 89, - SUM ( + 4 ) * + 54 ) col0, 6 + - + 89 - 24 AS col1
----
249912
-107

query I rowsort
SELECT DISTINCT + + 20 * - 61 AS col2
----
-1220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3479
SELECT ALL - CAST( + 95 AS SIGNED ) * + NULLIF ( + MAX( + ( - 87 ) ), + - 91 ) * 86 * - 13 - 70 - COUNT( * ) * + + ( + + CASE - + ( + + AVG ( - - 64 ) ) WHEN - + 85 THEN + 40 ELSE - + 2 END ) * 37 * - 23 - - + 17 AS col1
----
-9242025

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL - CAST ( + 95 AS INTEGER ) * + NULLIF ( + MAX ( + ( - 87 ) ), + - 91 ) * 86 * - 13 - 70 - COUNT ( * ) * + + ( + + CASE - + ( + + AVG ( - - 64 ) ) WHEN - + 85 THEN + 40 ELSE - + 2 END ) * 37 * - 23 - - + 17 AS col1
----
-9242025

onlyif mysql # DIV for integer division: 
query I rowsort label-3480
SELECT ALL - 89 DIV + 5 + 60
----
43

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - 89 / + 5 + 60
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT - COALESCE ( - - 56, + 10 * - 83 + 16 - + + 48 DIV - 23 + ( + - NULLIF ( - - NULLIF ( - - COALESCE ( - + CASE + - 97 WHEN - - 4 * - 90 THEN + 56 * - + 78 WHEN 39 THEN NULL END, + 76 ), ( + - 59 ) ), 35 DIV 63 * 60 ) ), + 97 ) + + 8 col1
----
-48

skipif mysql # not compatible
query I rowsort label-3481
SELECT - COALESCE ( - - 56, + 10 * - 83 + 16 - + + 48 / - 23 + ( + - NULLIF ( - - NULLIF ( - - COALESCE ( - + CASE + - 97 WHEN - - 4 * - 90 THEN + 56 * - + 78 WHEN 39 THEN NULL END, + 76 ), ( + - 59 ) ), 35 / 63 * 60 ) ), + 97 ) + + 8 col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT 80 DIV + + 56
----
1

skipif mysql # not compatible
query I rowsort label-3482
SELECT 80 / + + 56
----
1

query I rowsort
SELECT - 33 * + + 64
----
-2112

query I rowsort
SELECT - 77 * + - 83 * 68 AS col1
----
434588

query II rowsort
SELECT + ( + 58 ) * - 9 - + - ( + + 98 ) AS col2, 4 col2
----
-424
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3486
SELECT + 0 + + NULLIF ( - - 4, + 20 ) - SUM( DISTINCT - 52 ) col2, 11 * - 1 + 37 * + 23
----
56
840

skipif mysql # not compatible
query II rowsort label-3486
SELECT + 0 + + NULLIF ( - - 4, + 20 ) - SUM ( DISTINCT - 52 ) col2, 11 * - 1 + 37 * + 23
----
56
840

query I rowsort
SELECT ALL - 37 * + - 75
----
2775

query II rowsort
SELECT - 9, 7 * 77 AS col0
----
-9
539

query II rowsort
SELECT 42 - - ( + 37 ) * + + 71, - 53 AS col0
----
2669
-53

query II rowsort
SELECT DISTINCT 13 AS col1, - 82 + + 80 AS col2
----
13
-2

query I rowsort
SELECT DISTINCT ( - 48 ) + 98 + + + ( - COALESCE ( ( + 84 ), - + 28 * 93, - + 17 ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL 47 + + 22 - ( 68 ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL 47 + + 22 - ( 68 ) * COUNT ( * ) col2
----
1

query I rowsort
SELECT 32 + + 30 AS col2
----
62

query II rowsort
SELECT 51 AS col0, 24 * 66 AS col0
----
51
1584

query II rowsort
SELECT - 75 AS col1, - 43 AS col2
----
-75
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT NULLIF ( 19, + 48 ) + 0 DIV + + 69 + - 55 + + 73 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3496
SELECT NULLIF ( 19, + 48 ) + 0 / + + 69 + - 55 + + 73 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3497
SELECT 94, - MAX( - - 26 ) * - 72 * COUNT( * ) * + COUNT( * ) col1
----
94
1872

skipif mysql # not compatible
query II rowsort label-3497
SELECT 94, - MAX ( - - 26 ) * - 72 * COUNT ( * ) * + COUNT ( * ) col1
----
94
1872

query I rowsort
SELECT 51 + + 0 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT 92 / + 30 - - 34 + 50 * + 29 * 72 * + - CAST( NULL AS SIGNED ) / + - 87 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT 92 / + 30 - - 34 + 50 * + 29 * 72 * + - CAST ( NULL AS INTEGER ) / + - 87 * + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT ALL 75 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL 75 / - 91 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3501
SELECT + CASE + + ( 43 ) WHEN + + 96 * - 76 THEN 40 + 15 WHEN - 97 + + 11 - - - 26 - + ( + 20 ) + - 3 THEN + CAST( NULL AS SIGNED ) END * - - 4 - - 59 + - MAX( - - 56 ) / - 90 + + - 63 * - CAST( NULL AS SIGNED ), 12 * COUNT( * ) + + COALESCE ( - 60, + - 50 ) + - 13 * 19 AS col1
----
NULL
-295

skipif mysql # not compatible
query II rowsort label-3501
SELECT + CASE + + ( 43 ) WHEN + + 96 * - 76 THEN 40 + 15 WHEN - 97 + + 11 - - - 26 - + ( + 20 ) + - 3 THEN + CAST ( NULL AS INTEGER ) END * - - 4 - - 59 + - MAX ( - - 56 ) / - 90 + + - 63 * - CAST ( NULL AS INTEGER ), 12 * COUNT ( * ) + + COALESCE ( - 60, + - 50 ) + - 13 * 19 AS col1
----
NULL
-295

query II rowsort
SELECT DISTINCT - 99, - 36 AS col2
----
-99
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL - COUNT( * ) - + - ( + - 31 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - COUNT ( * ) - + - ( + - 31 ) AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT ALL 39 DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL 39 / 29
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT 57 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT 57 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT MAX( DISTINCT + ( - 73 ) ) * - COUNT( * ) - - COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) * + + 58 - - 7 * - - COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-3506
SELECT MAX ( DISTINCT + ( - 73 ) ) * - COUNT ( * ) - - COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) * + + 58 - - 7 * - - COUNT ( * )
----
139

query I rowsort
SELECT + 31 * - - 86 + 98 AS col2
----
2764

onlyif mysql # aggregate syntax: 
query II rowsort label-3508
SELECT - 18 * + 62 + + COUNT( * ) - - 34 + - 97 * - 58 * 55 + CASE COUNT( * ) WHEN + - 31 THEN + 22 WHEN COUNT( * ) * 33 / - ( + 33 ) THEN NULL ELSE NULL END + + 9 + 1 AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3508
SELECT - 18 * + 62 + + COUNT ( * ) - - 34 + - 97 * - 58 * 55 + CASE COUNT ( * ) WHEN + - 31 THEN + 22 WHEN COUNT ( * ) * 33 / - ( + 33 ) THEN NULL ELSE NULL END + + 9 + 1 AS col2, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT + - ( - 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3510
SELECT ALL - + CAST( NULL AS SIGNED ), - COUNT( 73 ) * - - 5 + + 48 - + + 84 + + 0 * 90 - ( + + COUNT( * ) ) * 4 + + 18 + + CAST( - 69 AS SIGNED ) AS col1
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-3510
SELECT ALL - + CAST ( NULL AS INTEGER ), - COUNT ( 73 ) * - - 5 + + 48 - + + 84 + + 0 * 90 - ( + + COUNT ( * ) ) * 4 + + 18 + + CAST ( - 69 AS INTEGER ) AS col1
----
NULL
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3511
SELECT ALL - - COUNT( * ) AS col2, COUNT( CAST( NULL AS SIGNED ) ) AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-3511
SELECT ALL - - COUNT ( * ) AS col2, COUNT ( CAST ( NULL AS INTEGER ) ) AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT - CASE - - ( + + COUNT( * ) ) WHEN - - 62 THEN + ( - + 12 ) WHEN - - 20 THEN - COUNT( * ) + - 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT - CASE - - ( + + COUNT ( * ) ) WHEN - - 62 THEN + ( - + 12 ) WHEN - - 20 THEN - COUNT ( * ) + - 83 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 75 AS col2, + 99 AS col0
----
-75
99

query I rowsort
SELECT DISTINCT + 60 * + + 64 AS col0
----
3840

query I rowsort
SELECT - ( - + 10 ) AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT ALL - - CAST( NULL AS SIGNED ) + - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + COUNT( * ) * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-3517
SELECT + COUNT ( * ) * - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT 26 + COALESCE ( COUNT( * ), 28 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3518
SELECT 26 + COALESCE ( COUNT ( * ), 28 ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT ALL - - 30 + 46 + + NULLIF ( + 62, 41 * + + NULLIF ( COUNT( * ), 46 ) + 64 * 31 + - - 45 + - CASE + CAST( + 96 AS SIGNED ) WHEN - 86 THEN MIN( DISTINCT - 72 ) * + + 95 WHEN 94 THEN NULL ELSE ( + SUM( ALL + - 94 ) ) / + 40 END )
----
138

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL - - 30 + 46 + + NULLIF ( + 62, 41 * + + NULLIF ( COUNT ( * ), 46 ) + 64 * 31 + - - 45 + - CASE + CAST ( + 96 AS INTEGER ) WHEN - 86 THEN MIN ( DISTINCT - 72 ) * + + 95 WHEN 94 THEN NULL ELSE ( + SUM ( ALL + - 94 ) ) / + 40 END )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT + COUNT( * ) * - - 94 + + 80 AS col0
----
174

skipif mysql # not compatible
query I rowsort label-3520
SELECT + COUNT ( * ) * - - 94 + + 80 AS col0
----
174

query I rowsort
SELECT 15 + + 4 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT - 97 DIV - 89 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3522
SELECT - 97 / - 89 AS col1
----
1

query II rowsort
SELECT ALL - 50 + - 15 col1, - 19
----
-65
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT - + COUNT( * ) * 71
----
-71

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT - + COUNT ( * ) * 71
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT 42 + + + CAST( + + 37 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3525
SELECT 42 + + + CAST ( + + 37 AS INTEGER ) AS col2
----
79

query I rowsort
SELECT DISTINCT + 78 + + + 39 + - 41 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT 55 - ( 37 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT 55 - ( 37 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3528
SELECT ALL NULLIF ( + 79, - CASE + 73 WHEN + - ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - 2 * - COUNT( ALL - 72 ) / + + 67 * COUNT( * ) THEN 57 ELSE NULL END / - 77 )
----
79

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL NULLIF ( + 79, - CASE + 73 WHEN + - ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - 2 * - COUNT ( ALL - 72 ) / + + 67 * COUNT ( * ) THEN 57 ELSE NULL END / - 77 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT + 35 + + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3529
SELECT + 35 + + COUNT ( * ) AS col1
----
36

query I rowsort
SELECT + ( + 61 ) + - 74
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT 34 * - SUM( DISTINCT - - 40 ) * - - 52 * - 50 * + 37 AS col1
----
130832000

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT 34 * - SUM ( DISTINCT - - 40 ) * - - 52 * - 50 * + 37 AS col1
----
130832000

query I rowsort
SELECT ALL 93 - - 45 + - - 26 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT DISTINCT NULLIF ( COUNT( 12 ), 21 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT NULLIF ( COUNT ( 12 ), 21 ) col0
----
1

query I rowsort
SELECT + ( + + 12 ) * + 30 * - - 35 AS col1
----
12600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3535
SELECT DISTINCT COUNT( DISTINCT - 15 ) * 1 * + 67 DIV 85 * - + MIN( DISTINCT - + 65 ) + 34 DIV + ( + - COALESCE ( + 52, 20, + 14 ) ) * + - 89
----
0

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT COUNT ( DISTINCT - 15 ) * 1 * + 67 / 85 * - + MIN ( DISTINCT - + 65 ) + 34 / + ( + - COALESCE ( + 52, 20, + 14 ) ) * + - 89
----
0

query II rowsort
SELECT DISTINCT + 16 * 14 AS col0, ( - 58 ) AS col0
----
224
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + COUNT( COALESCE ( - 30, - 65 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3537
SELECT + COUNT ( COALESCE ( - 30, - 65 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL COUNT( * ) * + + 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL COUNT ( * ) * + + 52 AS col2
----
52

query I rowsort
SELECT - ( + ( + 4 ) ) * - 27 AS col0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3540
SELECT + 45 * MIN( + 51 ) col1, 27
----
2295
27

skipif mysql # not compatible
query II rowsort label-3540
SELECT + 45 * MIN ( + 51 ) col1, 27
----
2295
27

query I rowsort
SELECT CASE + 9 WHEN + ( - - 27 ) THEN NULL WHEN + 82 THEN - 82 ELSE NULL END
----
NULL

query I rowsort
SELECT + 1 * + 58 * + 13 * 70 * - + 56 * 12 - + + 50 AS col2
----
-35468210

query I rowsort
SELECT ALL + + 73 col0
----
73

query I rowsort
SELECT + 52 * + - 12 + + 70 AS col1
----
-554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3545
SELECT DISTINCT - CAST( - 66 AS SIGNED ) DIV - 52 DIV + COUNT( * ) - + - 67 + + 18 DIV MAX( + 78 )
----
66

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) / - 52 / + COUNT ( * ) - + - 67 + + 18 / MAX ( + 78 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3546
SELECT ( - - CAST( + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3546
SELECT ( - - CAST ( + COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT ALL - 6 * - + 44
----
264

query I rowsort
SELECT DISTINCT + + 37 * - - 91 + 9
----
3376

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + CASE + MAX( - - 59 ) WHEN 91 + - + 50 THEN 92 WHEN + - COUNT( * ) THEN + + 2 + - 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT + CASE + MAX ( - - 59 ) WHEN 91 + - + 50 THEN 92 WHEN + - COUNT ( * ) THEN + + 2 + - 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL - + 72 * - + COUNT( DISTINCT + 39 ) * - SUM( 70 ) + + 88 AS col2
----
-4952

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL - + 72 * - + COUNT ( DISTINCT + 39 ) * - SUM ( 70 ) + + 88 AS col2
----
-4952

query I rowsort
SELECT + 68 * + + 66
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT COUNT( * ) * + CASE - + 58 WHEN - - 36 THEN + - COUNT( * ) + + ( + COALESCE ( + 39, ( - CASE AVG ( ALL + 68 ) WHEN - ( + - 44 ) + 2 THEN NULL ELSE - 45 + + ( + 10 ) END ), + 39 + 41 + + 72 + + + 47 + + 64, - 74 * + 73 ) ) ELSE + ( - - 50 ) END + 36 + 86
----
172

skipif mysql # not compatible
query I rowsort label-3552
SELECT COUNT ( * ) * + CASE - + 58 WHEN - - 36 THEN + - COUNT ( * ) + + ( + COALESCE ( + 39, ( - CASE AVG ( ALL + 68 ) WHEN - ( + - 44 ) + 2 THEN NULL ELSE - 45 + + ( + 10 ) END ), + 39 + 41 + + 72 + + + 47 + + 64, - 74 * + 73 ) ) ELSE + ( - - 50 ) END + 36 + 86
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL - COALESCE ( + + 1, COUNT( * ) + COUNT( * ) * 35 ) * + 73 * + + 77 col1
----
-5621

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL - COALESCE ( + + 1, COUNT ( * ) + COUNT ( * ) * 35 ) * + 73 * + + 77 col1
----
-5621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3554
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) col0, + 2 * - - 31
----
-1
62

skipif mysql # not compatible
query II rowsort label-3554
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) col0, + 2 * - - 31
----
-1
62

query II rowsort
SELECT 89 AS col1, 79 AS col0
----
89
79

query I rowsort
SELECT + 88 * + 10 AS col0
----
880

query I rowsort
SELECT - 94 * - 77
----
7238

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT ALL - 1 * COALESCE ( + - SUM( DISTINCT - ( + + 52 ) ), - 77 ), + 47 AS col2
----
-52
47

skipif mysql # not compatible
query II rowsort label-3558
SELECT ALL - 1 * COALESCE ( + - SUM ( DISTINCT - ( + + 52 ) ), - 77 ), + 47 AS col2
----
-52
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - 6 + - + COUNT( * ) - - 41 - - 47 * - COUNT( * ) * 94
----
-4384

skipif mysql # not compatible
query I rowsort label-3559
SELECT - 6 + - + COUNT ( * ) - - 41 - - 47 * - COUNT ( * ) * 94
----
-4384

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL COUNT( DISTINCT 69 )
----
1

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL COUNT ( DISTINCT 69 )
----
1

query I rowsort
SELECT ALL ( + + 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL - 2 * + ( - COUNT( * ) ) col1
----
2

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - 2 * + ( - COUNT ( * ) ) col1
----
2

query I rowsort
SELECT - 76 - 42 col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT DISTINCT NULLIF ( + 85, + 27 * CASE + - 91 WHEN + + 12 * + + 78 THEN NULL ELSE + 90 * 4 + - 94 + - 14 * - COUNT( * ) + COUNT( * ) END * + COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT NULLIF ( + 85, + 27 * CASE + - 91 WHEN + + 12 * + + 78 THEN NULL ELSE + 90 * 4 + - 94 + - 14 * - COUNT ( * ) + COUNT ( * ) END * + COUNT ( * ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT - COUNT( * ) + + 94
----
93

skipif mysql # not compatible
query I rowsort label-3565
SELECT - COUNT ( * ) + + 94
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT - 40 + - CASE - 49 WHEN - ( 34 ) * 1 THEN 11 * - CAST( + 8 AS SIGNED ) + - 51 ELSE + COUNT( * ) + - - 51 * - SUM( ALL 72 ) END AS col1
----
3631

skipif mysql # not compatible
query I rowsort label-3566
SELECT - 40 + - CASE - 49 WHEN - ( 34 ) * 1 THEN 11 * - CAST ( + 8 AS INTEGER ) + - 51 ELSE + COUNT ( * ) + - - 51 * - SUM ( ALL 72 ) END AS col1
----
3631

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT - 45 DIV - 96 * 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3567
SELECT - 45 / - 96 * 89 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT - CAST( NULL AS SIGNED ) + 27 / ( - - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT - CAST ( NULL AS INTEGER ) + 27 / ( - - 34 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT + 80 DIV - + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3569
SELECT + 80 / - + 83 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3570
SELECT ALL - NULLIF ( CASE + ( - + 78 ) WHEN + - 52 + + + 4 THEN NULL WHEN + MIN( + 49 ) THEN NULL ELSE + + ( 11 ) * + - 50 END, CAST( + CASE + + 84 WHEN - 52 THEN + - 3 END AS SIGNED ) - 86 ) DIV 64 AS col1, COUNT( - - 24 )
----
8
1

skipif mysql # not compatible
query II rowsort label-3570
SELECT ALL - NULLIF ( CASE + ( - + 78 ) WHEN + - 52 + + + 4 THEN NULL WHEN + MIN ( + 49 ) THEN NULL ELSE + + ( 11 ) * + - 50 END, CAST ( + CASE + + 84 WHEN - 52 THEN + - 3 END AS INTEGER ) - 86 ) / 64 AS col1, COUNT ( - - 24 )
----
8
1

query I rowsort
SELECT ALL - NULLIF ( + 95, - + 53 ) * 26
----
-2470

query I rowsort
SELECT DISTINCT + 79 col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3573
SELECT ALL - MAX( CAST( NULL AS DECIMAL ) ) / - 79 + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - MAX ( CAST ( NULL AS REAL ) ) / - 79 + 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL - NULLIF ( - - 48, 93 + 6 + + + COUNT( * ) * - - COALESCE ( + 77, - 41 * SUM( - + 71 ), - 84 * - + 37 * COUNT( DISTINCT 95 ) ) * - 82 * - 85 * - - COUNT( * ) ) / 36 * - + 43 + + 38 + + 46 - - CAST( NULL AS SIGNED ) + + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - NULLIF ( - - 48, 93 + 6 + + + COUNT ( * ) * - - COALESCE ( + 77, - 41 * SUM ( - + 71 ), - 84 * - + 37 * COUNT ( DISTINCT 95 ) ) * - 82 * - 85 * - - COUNT ( * ) ) / 36 * - + 43 + + 38 + + 46 - - CAST ( NULL AS INTEGER ) + + + 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT + - CAST( + + 30 AS SIGNED ) + - 9
----
-39

skipif mysql # not compatible
query I rowsort label-3575
SELECT + - CAST ( + + 30 AS INTEGER ) + - 9
----
-39

query I rowsort
SELECT ALL - 65 * - ( - + 71 ) + + ( 70 ) * - 39
----
-7345

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT + 43 AS col1, - 97 * - COUNT( 66 )
----
43
97

skipif mysql # not compatible
query II rowsort label-3577
SELECT + 43 AS col1, - 97 * - COUNT ( 66 )
----
43
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + 86 * - 17 * - + 84 - 68 + + - COUNT( * ) + + - 67 AS col1
----
122672

skipif mysql # not compatible
query I rowsort label-3578
SELECT + 86 * - 17 * - + 84 - 68 + + - COUNT ( * ) + + - 67 AS col1
----
122672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3579
SELECT DISTINCT + 32 * 87 * + - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT + 32 * 87 * + - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3580
SELECT - COALESCE ( + CAST( - + ( 11 ) AS SIGNED ), + COUNT( * ) ) / CASE - 34 WHEN 37 + - CAST( NULL AS SIGNED ) THEN - + 81 ELSE + CASE - - 77 WHEN 86 THEN - 13 + + COUNT( * ) ELSE NULL END * 82 END + NULLIF ( - 4, 95 + + NULLIF ( 1, 4 - + 79 + - - 28 / 52 + + - 83 ) ) * + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT - COALESCE ( + CAST ( - + ( 11 ) AS INTEGER ), + COUNT ( * ) ) / CASE - 34 WHEN 37 + - CAST ( NULL AS INTEGER ) THEN - + 81 ELSE + CASE - - 77 WHEN 86 THEN - 13 + + COUNT ( * ) ELSE NULL END * 82 END + NULLIF ( - 4, 95 + + NULLIF ( 1, 4 - + 79 + - - 28 / 52 + + - 83 ) ) * + 7 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 31 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3582
SELECT + SUM( ALL + 30 ) DIV - 68 AS col0, 61
----
0
61

skipif mysql # not compatible
query II rowsort label-3582
SELECT + SUM ( ALL + 30 ) / - 68 AS col0, 61
----
0
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3583
SELECT ALL - COUNT( * ) * + - SUM( DISTINCT + 92 ) + - - ( + ( 39 ) ) * + 58 * + 42 + + 55 * - COUNT( * ) + - 27 + - 46 * + COUNT( * ), 15 DIV - 43 AS col2
----
94968
0

skipif mysql # not compatible
query II rowsort label-3583
SELECT ALL - COUNT ( * ) * + - SUM ( DISTINCT + 92 ) + - - ( + ( 39 ) ) * + 58 * + 42 + + 55 * - COUNT ( * ) + - 27 + - 46 * + COUNT ( * ), 15 / - 43 AS col2
----
94968
0

query I rowsort
SELECT + + ( - 76 ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL - + ( - 84 ) * - - 24 * + - CAST( NULL AS SIGNED ) - CASE + 9 WHEN CASE 42 WHEN - - COUNT( * ) THEN COUNT( * ) * + 44 + 31 ELSE 26 END THEN 15 WHEN COALESCE ( - 34, - 15 * - CAST( NULL AS SIGNED ) * + 99 * + - ( - SUM( ALL - 12 ) ) * - + COUNT( * ) ) - - NULLIF ( - 14, - 10 / - COALESCE ( + - 19, + 65, + 72 + - 76 ) * + 53 ) THEN NULL ELSE NULL END + 78 * COALESCE ( - 34, ( + ( ( + 50 ) ) ) + + COUNT( * ), - 78 ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - + ( - 84 ) * - - 24 * + - CAST ( NULL AS INTEGER ) - CASE + 9 WHEN CASE 42 WHEN - - COUNT ( * ) THEN COUNT ( * ) * + 44 + 31 ELSE 26 END THEN 15 WHEN COALESCE ( - 34, - 15 * - CAST ( NULL AS INTEGER ) * + 99 * + - ( - SUM ( ALL - 12 ) ) * - + COUNT ( * ) ) - - NULLIF ( - 14, - 10 / - COALESCE ( + - 19, + 65, + 72 + - 76 ) * + 53 ) THEN NULL ELSE NULL END + 78 * COALESCE ( - 34, ( + ( ( + 50 ) ) ) + + COUNT ( * ), - 78 ) + + 26
----
NULL

query II rowsort
SELECT + 28, + 30 AS col1
----
28
30

query II rowsort
SELECT ALL + 35, + 96 col2
----
35
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT DISTINCT + - 12 * - 1 - 73 * ( + 6 ) - + COUNT( * ) * 72
----
-498

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT + - 12 * - 1 - 73 * ( + 6 ) - + COUNT ( * ) * 72
----
-498

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT ALL COUNT( DISTINCT + 94 ) DIV + + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL COUNT ( DISTINCT + 94 ) / + + 85 AS col0
----
0

query I rowsort
SELECT - 46 * + + 37 AS col1
----
-1702

query I rowsort
SELECT + 20 * 70 col2
----
1400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3592
SELECT ALL 24 * + 19 AS col2, 97 - - CAST( NULL AS SIGNED ) + - CAST( + ( - + 18 ) AS SIGNED ) AS col0
----
456
NULL

skipif mysql # not compatible
query II rowsort label-3592
SELECT ALL 24 * + 19 AS col2, 97 - - CAST ( NULL AS INTEGER ) + - CAST ( + ( - + 18 ) AS INTEGER ) AS col0
----
456
NULL

query II rowsort
SELECT 80 * - COALESCE ( 89, + - 79 ) col1, - 34
----
-7120
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT DISTINCT 59 * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT 59 * - COUNT ( * )
----
-59

query I rowsort
SELECT DISTINCT 18 - 23 * - 0 + - + 68
----
-50

query I rowsort
SELECT 80 * 2 * 31
----
4960

query I rowsort
SELECT 86 + - 18
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT COUNT( 3 ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-3598
SELECT COUNT ( 3 ) * - 86
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3599
SELECT ALL - 71 DIV CASE + MAX( - - 84 ) WHEN + + 27 * - 85 DIV - 26 THEN NULL WHEN + + 77 THEN NULL ELSE - 93 END
----
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL - 71 / CASE + MAX ( - - 84 ) WHEN + + 27 * - 85 / - 26 THEN NULL WHEN + + 77 THEN NULL ELSE - 93 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT 11 + + COUNT( * ) + + + 80 DIV - - 98
----
12

skipif mysql # not compatible
query I rowsort label-3600
SELECT 11 + + COUNT ( * ) + + + 80 / - - 98
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT ALL 74 + + NULLIF ( + CASE 8 WHEN + 25 / ( + 37 ) + + 13 * + COUNT( * ) THEN + 51 WHEN - - 39 / 34 THEN - 53 WHEN + - 45 THEN 1 ELSE + + 43 * + 79 END, COALESCE ( 93, CAST( - 40 AS SIGNED ) / + 94 ) + 24 * - 48 ) * + SUM( ALL - + 45 ) - - COUNT( DISTINCT - + 49 ) + + 43 + 12 * 82 AS col1
----
-151763

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL 74 + + NULLIF ( + CASE 8 WHEN + 25 / ( + 37 ) + + 13 * + COUNT ( * ) THEN + 51 WHEN - - 39 / 34 THEN - 53 WHEN + - 45 THEN 1 ELSE + + 43 * + 79 END, COALESCE ( 93, CAST ( - 40 AS INTEGER ) / + 94 ) + 24 * - 48 ) * + SUM ( ALL - + 45 ) - - COUNT ( DISTINCT - + 49 ) + + 43 + 12 * 82 AS col1
----
-151763

query II rowsort
SELECT DISTINCT + 28 + - + 77 AS col2, - 48 AS col1
----
-49
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL + - 28 + - 69 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + - 28 + - 69 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL + - COUNT( * ) + + 27 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + - COUNT ( * ) + + 27 AS col1
----
26

query I rowsort
SELECT 70 * 72
----
5040

query II rowsort
SELECT + ( 10 ) AS col2, 4
----
10
4

query I rowsort
SELECT DISTINCT - + ( - 38 ) AS col1
----
38

query II rowsort
SELECT ALL + - 36 + + 7 + + 75 * - + 29 * - 28, 6 AS col0
----
60871
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT - 28 * - - COUNT( * ) - - 24 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 28 * - - COUNT ( * ) - - 24 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT + 40 DIV - 45 + - ( + 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3610
SELECT + 40 / - 45 + - ( + 24 ) AS col1
----
-24

query I rowsort
SELECT DISTINCT - - ( - + 1 )
----
-1

query I rowsort
SELECT ALL + 84 + + 96 AS col2
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3613
SELECT DISTINCT - COUNT( * ) * - - COALESCE ( - 35, - CAST( - + 36 AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT - COUNT ( * ) * - - COALESCE ( - 35, - CAST ( - + 36 AS INTEGER ) ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL - NULLIF ( - - COUNT( * ), - + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - NULLIF ( - - COUNT ( * ), - + 69 )
----
-1

query I rowsort
SELECT DISTINCT + - 94 - + 40
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT 19 + - 66 + - COUNT( * ) + + 62 + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-3616
SELECT 19 + - 66 + - COUNT ( * ) + + 62 + - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT - - COUNT( + 72 ) * + 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - - COUNT ( + 72 ) * + 10 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT - 44 * COUNT( * ) * CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3618
SELECT - 44 * COUNT ( * ) * CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
-44

query I rowsort
SELECT ALL + ( + 32 ) * - + 22 AS col0
----
-704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT COUNT( * ) * + + CAST( NULL AS SIGNED ) * + 60 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + 60 + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT COUNT( 68 ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-3621
SELECT COUNT ( 68 ) * - 9
----
-9

query II rowsort
SELECT ALL - CASE 86 WHEN - 52 + ( - 66 ) - 38 THEN + ( + 54 ) ELSE NULL END AS col2, 15 * - 59 - 74 AS col0
----
NULL
-959

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT DISTINCT 12 DIV + ( - + 83 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT 12 / + ( - + 83 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT 89 + 98 + - COUNT( * ) - + 52 col2
----
134

skipif mysql # not compatible
query I rowsort label-3624
SELECT 89 + 98 + - COUNT ( * ) - + 52 col2
----
134

query II rowsort
SELECT ALL 91 AS col2, 57 * + + 39 AS col1
----
91
2223

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL MAX( + + 7 ) + CASE + 61 WHEN - 51 + 78 THEN 3 * + - 68 - 32 WHEN 30 + COALESCE ( COUNT( * ), + - 28 ) THEN NULL END * + COALESCE ( - 97, - 32 * 31 * + - 6 + + 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL MAX ( + + 7 ) + CASE + 61 WHEN - 51 + 78 THEN 3 * + - 68 - 32 WHEN 30 + COALESCE ( COUNT ( * ), + - 28 ) THEN NULL END * + COALESCE ( - 97, - 32 * 31 * + - 6 + + 16 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 33 + - 62 * - 54
----
3381

query I rowsort
SELECT DISTINCT ( + + ( + + 91 ) ) + + - NULLIF ( 16, 90 ) * + 23 * 28
----
-10213

query I rowsort
SELECT ALL - NULLIF ( + 95, ( - - 86 ) * 3 ) + + 49 + - 34
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT COALESCE ( - MIN( ALL 21 ), - - 94 ) + 47 - + 68 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3630
SELECT COALESCE ( - MIN ( ALL 21 ), - - 94 ) + 47 - + 68 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT 36 + + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3631
SELECT 36 + + COUNT ( * ) AS col2
----
37

query II rowsort
SELECT ALL 61 AS col0, + 75 AS col0
----
61
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT 69 + + 54 * COUNT( * ) col0
----
123

skipif mysql # not compatible
query I rowsort label-3633
SELECT 69 + + 54 * COUNT ( * ) col0
----
123

query I rowsort
SELECT 28 + + 47 * - 62 AS col2
----
-2886

onlyif mysql # aggregate syntax: 
query II rowsort label-3635
SELECT ALL - COUNT( ALL - - 35 ) + + 97, + 79 AS col0
----
96
79

skipif mysql # not compatible
query II rowsort label-3635
SELECT ALL - COUNT ( ALL - - 35 ) + + 97, + 79 AS col0
----
96
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT NULLIF ( + 6, - CAST( NULL AS SIGNED ) ) + + MIN( ALL 76 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3636
SELECT NULLIF ( + 6, - CAST ( NULL AS INTEGER ) ) + + MIN ( ALL 76 ) AS col1
----
82

query I rowsort
SELECT + 25 + + 80 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL + COUNT( CASE 92 WHEN - 77 * + 84 THEN + + 64 ELSE + + COALESCE ( - 2, + 55, + 18 * + 18 ) END ) * 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + COUNT ( CASE 92 WHEN - 77 * + 84 THEN + + 64 ELSE + + COALESCE ( - 2, + 55, + 18 * + 18 ) END ) * 61 AS col1
----
61

query I rowsort
SELECT ( + - 35 )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT DISTINCT 4 DIV + - 95 - + 93 + - + 7 * + 29 - - + 13 AS col0
----
-283

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT 4 / + - 95 - + 93 + - + 7 * + 29 - - + 13 AS col0
----
-283

query I rowsort
SELECT ALL + 60 * + 30 - + 70 AS col2
----
1730

query I rowsort
SELECT DISTINCT - 24 * + + 50 * + - 65 - - 35 + + 14 AS col0
----
78049

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT - 75 + - MIN( 32 ) AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 75 + - MIN ( 32 ) AS col1
----
-107

query I rowsort
SELECT DISTINCT + - 49 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT + + 24 * - COUNT( + - 87 ) + + 75 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3645
SELECT + + 24 * - COUNT ( + - 87 ) + + 75 AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT + + 67 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-3646
SELECT + + 67 / 79
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3647
SELECT - + 61 * + 34 + - CASE - + 89 WHEN 22 * + 83 / - + COALESCE ( - 23, + - 32, - CAST( NULL AS DECIMAL ) ) + - - 36 * - 34 THEN 99 ELSE - + ( - 18 ) END
----
-2092

skipif mysql # not compatible
query I rowsort label-3647
SELECT - + 61 * + 34 + - CASE - + 89 WHEN 22 * + 83 / - + COALESCE ( - 23, + - 32, - CAST ( NULL AS REAL ) ) + - - 36 * - 34 THEN 99 ELSE - + ( - 18 ) END
----
-2092

onlyif mysql # DIV for integer division: 
query II rowsort label-3648
SELECT ALL + 67 AS col1, + 27 + + - 71 DIV 56
----
67
26

skipif mysql # not compatible
query II rowsort label-3648
SELECT ALL + 67 AS col1, + 27 + + - 71 / 56
----
67
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3649
SELECT ( - ( CASE 44 WHEN + ( - 95 ) * - 92 * - 30 + - + 0 - - 36 THEN CASE + CAST( + 8 AS SIGNED ) WHEN + 34 * - 2 THEN + CAST( + 0 AS SIGNED ) + + 52 WHEN + 6 * - + AVG ( + 62 ) * - + 11 * COUNT( - - 3 ) - - 71 THEN NULL END / 32 * + 29 WHEN - + 11 THEN - - 35 + 92 END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT ( - ( CASE 44 WHEN + ( - 95 ) * - 92 * - 30 + - + 0 - - 36 THEN CASE + CAST ( + 8 AS INTEGER ) WHEN + 34 * - 2 THEN + CAST ( + 0 AS INTEGER ) + + 52 WHEN + 6 * - + AVG ( + 62 ) * - + 11 * COUNT ( - - 3 ) - - 71 THEN NULL END / 32 * + 29 WHEN - + 11 THEN - - 35 + 92 END ) ) AS col0
----
NULL

query I rowsort
SELECT - - 87 * - 10
----
-870

onlyif mysql # DIV for integer division: 
query II rowsort label-3651
SELECT DISTINCT + 85, + 15 DIV - - 28 AS col1
----
85
0

skipif mysql # not compatible
query II rowsort label-3651
SELECT DISTINCT + 85, + 15 / - - 28 AS col1
----
85
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT - 83 DIV 38 * 29 * + 66 AS col1
----
-3828

skipif mysql # not compatible
query I rowsort label-3652
SELECT - 83 / 38 * 29 * + 66 AS col1
----
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL + MIN( + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + MIN ( + 71 ) AS col2
----
71

query II rowsort
SELECT + 13 AS col1, 47 AS col2
----
13
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - COUNT( * ) * - MIN( + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3655
SELECT - COUNT ( * ) * - MIN ( + 33 ) AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT - ( + 80 ) + + 68 + - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT - ( + 80 ) + + 68 + - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3657
SELECT ALL + 70 + - 19 DIV NULLIF ( 51, + MAX( ALL - 31 ) ) AS col2, - 34 + + 24 AS col2
----
70
-10

skipif mysql # not compatible
query II rowsort label-3657
SELECT ALL + 70 + - 19 / NULLIF ( 51, + MAX ( ALL - 31 ) ) AS col2, - 34 + + 24 AS col2
----
70
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT MAX( + COALESCE ( + 63, + 3 ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3658
SELECT MAX ( + COALESCE ( + 63, + 3 ) ) AS col1
----
63

query II rowsort
SELECT - 27 AS col0, 89
----
-27
89

query I rowsort
SELECT - ( - 76 ) - + 34
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT DISTINCT - 25 + + + 0 + + 80 * - ( + CAST( 81 AS SIGNED ) ) * - + 23 + - 21 AS col1
----
148994

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - 25 + + + 0 + + 80 * - ( + CAST ( 81 AS INTEGER ) ) * - + 23 + - 21 AS col1
----
148994

query I rowsort
SELECT ALL + 71 + + - 73
----
-2

query I rowsort
SELECT ALL - 7 + + 15
----
8

query I rowsort
SELECT DISTINCT NULLIF ( - ( 21 ), + 4 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL ( - 18 ) + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL ( - 18 ) + COUNT ( * ) AS col1
----
-17

query I rowsort
SELECT + 63 + 12 * + 69
----
891

query I rowsort
SELECT DISTINCT ( - + 73 ) AS col0
----
-73

query I rowsort
SELECT ALL ( - + 64 ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-3669
SELECT 29, + 25 + - 54 DIV + - ( - ( + + 74 ) ) AS col1
----
29
25

skipif mysql # not compatible
query II rowsort label-3669
SELECT 29, + 25 + - 54 / + - ( - ( + + 74 ) ) AS col1
----
29
25

query II rowsort
SELECT DISTINCT 52 AS col0, + 78
----
52
78

query I rowsort
SELECT ALL + 78 + + 32 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT + ( COUNT( * ) ) * + - 52 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3672
SELECT + ( COUNT ( * ) ) * + - 52 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + 96 * - MIN( ALL + 78 ) * ( - - 32 ) * + 47 + ( 87 ) + + 34 + - 42 * - + 8 + - 54 AS col0
----
-11261549

skipif mysql # not compatible
query I rowsort label-3673
SELECT + 96 * - MIN ( ALL + 78 ) * ( - - 32 ) * + 47 + ( 87 ) + + 34 + - 42 * - + 8 + - 54 AS col0
----
-11261549

query I rowsort
SELECT + 66 + 52 * - 69 col2
----
-3522

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL 36 * - 3 * - COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL 36 * - 3 * - COUNT ( * )
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3676
SELECT DISTINCT MIN( DISTINCT - 41 ) AS col0, + 2
----
-41
2

skipif mysql # not compatible
query II rowsort label-3676
SELECT DISTINCT MIN ( DISTINCT - 41 ) AS col0, + 2
----
-41
2

query II rowsort
SELECT ALL - + 52 - 58 col2, - 56 AS col0
----
-110
-56

query I rowsort
SELECT + + 6 * 71 * + 23 AS col0
----
9798

query I rowsort
SELECT NULLIF ( + - 36, + 49 * + - 94 * - - 77 ) AS col1
----
-36

query I rowsort
SELECT ALL + 26 * - 36 * - - 50 AS col1
----
-46800

query II rowsort
SELECT 64 AS col1, 85
----
64
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT + - CASE + - CASE - - 15 WHEN - 74 * - + 8 + + 90 THEN NULL ELSE + 43 * + 99 + - - 12 + + - 31 END WHEN 63 THEN NULL WHEN 22 + + 12 - + 77 / ( - 7 ) * - CAST( NULL AS SIGNED ) + - - 29 THEN - 80 - 32 END + - COUNT( * ) + 29 * - 9 * - - 9 * - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT + - CASE + - CASE - - 15 WHEN - 74 * - + 8 + + 90 THEN NULL ELSE + 43 * + 99 + - - 12 + + - 31 END WHEN 63 THEN NULL WHEN 22 + + 12 - + 77 / ( - 7 ) * - CAST ( NULL AS INTEGER ) + - - 29 THEN - 80 - 32 END + - COUNT ( * ) + 29 * - 9 * - - 9 * - 50 AS col0
----
NULL

query I rowsort
SELECT + 68 * - - 40 AS col1
----
2720

query I rowsort
SELECT - ( - 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3685
SELECT + 12 - ( - ( 62 ) ) DIV + COUNT( * ) col1
----
74

skipif mysql # not compatible
query I rowsort label-3685
SELECT + 12 - ( - ( 62 ) ) / + COUNT ( * ) col1
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3686
SELECT - - CAST( NULL AS DECIMAL ) * 8 - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT - - CAST ( NULL AS REAL ) * 8 - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT - - 48 * + COUNT( * ) - + 40 + - COUNT( * ) + - + 90 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3687
SELECT - - 48 * + COUNT ( * ) - + 40 + - COUNT ( * ) + - + 90 AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3688
SELECT - 95 / 75 / CAST( NULL AS SIGNED ) + + 33 - - 46 * - - CASE WHEN NOT - 7 = NULL THEN COUNT( * ) END + - - 13 * + 58 AS col2, 11 * - + 56 * 48 * - 20 AS col1
----
NULL
591360

skipif mysql # not compatible
query II rowsort label-3688
SELECT - 95 / 75 / CAST ( NULL AS INTEGER ) + + 33 - - 46 * - - CASE WHEN NOT - 7 = NULL THEN COUNT ( * ) END + - - 13 * + 58 AS col2, 11 * - + 56 * 48 * - 20 AS col1
----
NULL
591360

query I rowsort
SELECT + 35 * 89 * 80 * - - 30 + - 89
----
7475911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3690
SELECT DISTINCT + 53, + 51 - - COUNT( DISTINCT 2 ) + + 67 + 0 + + 56 / + CAST( NULL AS SIGNED ) * + - 65 AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3690
SELECT DISTINCT + 53, + 51 - - COUNT ( DISTINCT 2 ) + + 67 + 0 + + 56 / + CAST ( NULL AS INTEGER ) * + - 65 AS col1
----
53
NULL

query II rowsort
SELECT ALL + 69, - 53 * + 75 * - + 63 + + 61 col2
----
69
250486

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + CASE + - 48 WHEN + + COUNT( * ) * AVG ( ALL 21 ) THEN - - ( + 9 ) WHEN + 19 * + + 19 + + 36 THEN NULL END + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT + CASE + - 48 WHEN + + COUNT ( * ) * AVG ( ALL 21 ) THEN - - ( + 9 ) WHEN + 19 * + + 19 + + 36 THEN NULL END + + 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3693
SELECT ALL 23 DIV + + 88 - ( - + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL 23 / + + 88 - ( - + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL 65 * + - 43
----
-2795

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT + ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3695
SELECT + ( - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ( + 89 ) col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT ALL 19 * 34 * + - CAST( NULL AS SIGNED ) + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL 19 * 34 * + - CAST ( NULL AS INTEGER ) + + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3698
SELECT ALL CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * - ( 51 ) + + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * - ( 51 ) + + 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ( 33 ) * - + 28 + - COUNT( * ) AS col2
----
-925

skipif mysql # not compatible
query I rowsort label-3699
SELECT ( 33 ) * - + 28 + - COUNT ( * ) AS col2
----
-925

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT NULLIF ( 11, 43 / - COUNT( * ) * - + 17 + + 38 * - 18 + + + 59 ) col0
----
11

skipif mysql # not compatible
query I rowsort label-3700
SELECT NULLIF ( 11, 43 / - COUNT ( * ) * - + 17 + + 38 * - 18 + + + 59 ) col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT - 93 DIV - - 5
----
-18

skipif mysql # not compatible
query I rowsort label-3701
SELECT - 93 / - - 5
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT ALL SUM( - 20 ) * - MIN( DISTINCT + 53 ) + - ( + 59 ) + - + 93 AS col1, - ( COUNT( * ) ) col1
----
908
-1

skipif mysql # not compatible
query II rowsort label-3702
SELECT ALL SUM ( - 20 ) * - MIN ( DISTINCT + 53 ) + - ( + 59 ) + - + 93 AS col1, - ( COUNT ( * ) ) col1
----
908
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT DISTINCT - 94 * COALESCE ( + NULLIF ( - 29, MAX( ALL 72 ) ), + 51 ) AS col0, - 5
----
2726
-5

skipif mysql # not compatible
query II rowsort label-3703
SELECT DISTINCT - 94 * COALESCE ( + NULLIF ( - 29, MAX ( ALL 72 ) ), + 51 ) AS col0, - 5
----
2726
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL + COUNT( * ) * 66 + - COUNT( * ) col2
----
65

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + COUNT ( * ) * 66 + - COUNT ( * ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT + COALESCE ( COUNT( DISTINCT 24 ), - + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT + COALESCE ( COUNT ( DISTINCT 24 ), - + 22 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT COALESCE ( ( - - 4 ), + + CASE 59 WHEN + 86 + - 90 + + + 72 + + 91 + 66 * + 20 + 78 THEN 73 WHEN + ( 53 ) + 44 THEN NULL END * SUM( DISTINCT 34 ) + - COUNT( * ) * + 54 + 2, + + ( - 10 ) + - 34 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3706
SELECT COALESCE ( ( - - 4 ), + + CASE 59 WHEN + 86 + - 90 + + + 72 + + 91 + 66 * + 20 + 78 THEN 73 WHEN + ( 53 ) + 44 THEN NULL END * SUM ( DISTINCT 34 ) + - COUNT ( * ) * + 54 + 2, + + ( - 10 ) + - 34 ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT + CAST( NULL AS SIGNED ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3707
SELECT + CAST ( NULL AS INTEGER ) + 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT - 86 * + 40 AS col1, - COUNT( * )
----
-3440
-1

skipif mysql # not compatible
query II rowsort label-3708
SELECT - 86 * + 40 AS col1, - COUNT ( * )
----
-3440
-1

query I rowsort
SELECT - NULLIF ( 99, + - 94 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT - MAX( ( + 89 ) ) + COALESCE ( + + COUNT( + 5 ), + 13 + + - 97 + - 3 + + 82 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3710
SELECT - MAX ( ( + 89 ) ) + COALESCE ( + + COUNT ( + 5 ), + 13 + + - 97 + - 3 + + 82 ) AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT + CAST( + CAST( + + ( + - 47 ) AS SIGNED ) AS SIGNED ) * - - 59
----
-2773

skipif mysql # not compatible
query I rowsort label-3711
SELECT + CAST ( + CAST ( + + ( + - 47 ) AS INTEGER ) AS INTEGER ) * - - 59
----
-2773

query II rowsort
SELECT DISTINCT - 5 * + - 8 AS col0, 27 * - 15
----
40
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT - COUNT( * ) + COUNT( * ) + + - 67 - - - 54 * + 60 AS col1
----
-3307

skipif mysql # not compatible
query I rowsort label-3713
SELECT - COUNT ( * ) + COUNT ( * ) + + - 67 - - - 54 * + 60 AS col1
----
-3307

query I rowsort
SELECT ALL + ( + 56 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT ALL ( + CAST( - 0 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL ( + CAST ( - 0 AS INTEGER ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT + 74 * 69 DIV - - NULLIF ( + 58, - ( + 21 ) ) + - 79 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 74 * 69 / - - NULLIF ( + 58, - ( + 21 ) ) + - 79 AS col1
----
9

query II rowsort
SELECT 68 + - 45 AS col0, 20 * - 20 col0
----
23
-400

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT 55 DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-3718
SELECT 55 / - + 58
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT - 96 + + COUNT( * ), + 55 AS col2
----
-95
55

skipif mysql # not compatible
query II rowsort label-3719
SELECT - 96 + + COUNT ( * ), + 55 AS col2
----
-95
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT - 71 + + 53 + - - 59 * - 76 + - 82, ( + COUNT( * ) ) * + + COUNT( * ) + 1 AS col0
----
-4584
2

skipif mysql # not compatible
query II rowsort label-3720
SELECT - 71 + + 53 + - - 59 * - 76 + - 82, ( + COUNT ( * ) ) * + + COUNT ( * ) + 1 AS col0
----
-4584
2

query II rowsort
SELECT 47 + + 64 AS col0, 44 AS col2
----
111
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT - MIN( 91 ) - + ( + 42 ) * + - 48
----
1925

skipif mysql # not compatible
query I rowsort label-3722
SELECT - MIN ( 91 ) - + ( + 42 ) * + - 48
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL - 39 * + COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL - 39 * + COUNT ( * ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL COUNT( ALL 77 ) * NULLIF ( 74, 67 ) + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL COUNT ( ALL 77 ) * NULLIF ( 74, 67 ) + + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ALL - COALESCE ( - - COUNT( * ), + 42 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL - COALESCE ( - - COUNT ( * ), + 42 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT + + 95 * + MAX( + 64 ) * + 10 + + NULLIF ( 25, + 49 - - + 94 - 66 * + 47 )
----
60825

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + + 95 * + MAX ( + 64 ) * + 10 + + NULLIF ( 25, + 49 - - + 94 - 66 * + 47 )
----
60825

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT 51 * + MIN( + + 24 )
----
1224

skipif mysql # not compatible
query I rowsort label-3727
SELECT 51 * + MIN ( + + 24 )
----
1224

query II rowsort
SELECT + 57 AS col0, + 45 + - 49
----
57
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT ALL 94 + CAST( + 98 AS SIGNED ) AS col1
----
192

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL 94 + CAST ( + 98 AS INTEGER ) AS col1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT CASE 64 WHEN - COUNT( * ) THEN + COUNT( * ) ELSE SUM( ALL 16 ) END + - - 38
----
54

skipif mysql # not compatible
query I rowsort label-3730
SELECT CASE 64 WHEN - COUNT ( * ) THEN + COUNT ( * ) ELSE SUM ( ALL 16 ) END + - - 38
----
54

query I rowsort
SELECT ALL 99 + 25
----
124

query I rowsort
SELECT ALL 58 + + 66 AS col0
----
124

query I rowsort
SELECT ALL + 53 + - 95 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT COUNT( * ) * - ( - MAX( DISTINCT + 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-3734
SELECT COUNT ( * ) * - ( - MAX ( DISTINCT + 40 ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT - COUNT( DISTINCT + + 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT - COUNT ( DISTINCT + + 58 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT 30 + 27 + - 47 DIV 13 col0
----
54

skipif mysql # not compatible
query I rowsort label-3736
SELECT 30 + 27 + - 47 / 13 col0
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-3737
SELECT 81 AS col0, 85 DIV 56
----
81
1

skipif mysql # not compatible
query II rowsort label-3737
SELECT 81 AS col0, 85 / 56
----
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT COUNT( * ) * + 81 * - + 53
----
-4293

skipif mysql # not compatible
query I rowsort label-3738
SELECT COUNT ( * ) * + 81 * - + 53
----
-4293

query I rowsort
SELECT 40 * - + 86
----
-3440

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ALL - 17 - ( + 39 ) - COUNT( * ) + - 1 * - 8
----
-49

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - 17 - ( + 39 ) - COUNT ( * ) + - 1 * - 8
----
-49

query II rowsort
SELECT DISTINCT 18, 98 + - ( - ( NULLIF ( 7, + 93 ) ) ) AS col1
----
18
105

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT 44 DIV - ( + COALESCE ( + ( - 83 ), 91 + 39 ) ) + + 51 * - 21 * - 15
----
16065

skipif mysql # not compatible
query I rowsort label-3742
SELECT 44 / - ( + COALESCE ( + ( - 83 ), 91 + 39 ) ) + + 51 * - 21 * - 15
----
16065

onlyif mysql # DIV for integer division: 
query II rowsort label-3743
SELECT DISTINCT ( + 21 ) DIV 39 AS col1, + 78 * - - 64
----
0
4992

skipif mysql # not compatible
query II rowsort label-3743
SELECT DISTINCT ( + 21 ) / 39 AS col1, + 78 * - - 64
----
0
4992

query II rowsort
SELECT 12, - 3 * + + 93 AS col2
----
12
-279

query II rowsort
SELECT - + 85 AS col0, + 95 + + 96
----
-85
191

query I rowsort
SELECT - + COALESCE ( - ( - CASE + + 17 WHEN 3 THEN - 63 WHEN - 95 * - 60 THEN - 51 ELSE NULL END ), + + 39 ) AS col0
----
-39

query I rowsort
SELECT 62 * - 27
----
-1674

query I rowsort
SELECT ALL - 50 + - 63
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT DISTINCT + - 68 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + - 68 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 88 + - - 26
----
-62

query I rowsort
SELECT ALL + 58 + + 78 + + 5 AS col1
----
141

query II rowsort
SELECT - 38, 22 col2
----
-38
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3753
SELECT COUNT( ALL - 92 ) / - - 7 + - ( - + MIN( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT COUNT ( ALL - 92 ) / - - 7 + - ( - + MIN ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT MIN( + COALESCE ( - 16, - 5 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-3754
SELECT MIN ( + COALESCE ( - 16, - 5 ) )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3755
SELECT ALL 12 * - 72 AS col1, CAST( 21 AS SIGNED )
----
-864
21

skipif mysql # not compatible
query II rowsort label-3755
SELECT ALL 12 * - 72 AS col1, CAST ( 21 AS INTEGER )
----
-864
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT COUNT( * ) * + + 50 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT COUNT ( * ) * + + 50 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT MIN( DISTINCT - 28 ) + - + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3757
SELECT MIN ( DISTINCT - 28 ) + - + COUNT ( * ) AS col2
----
-29

query II rowsort
SELECT ALL + 12 * NULLIF ( - 12, - - 97 ), 83 + - - 68 col1
----
-144
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3759
SELECT ALL - 61 * + 42 DIV NULLIF ( - 21, 72 ) + + - 23 DIV + + COUNT( * ) * + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - 61 * + 42 / NULLIF ( - 21, 72 ) + + - 23 / + + COUNT ( * ) * + COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3760
SELECT MAX( - - 60 ), ( - 52 ) AS col1
----
60
-52

skipif mysql # not compatible
query II rowsort label-3760
SELECT MAX ( - - 60 ), ( - 52 ) AS col1
----
60
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3761
SELECT ALL - 48 * COUNT( * ) AS col2, 1 + + CAST( NULL AS SIGNED )
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-3761
SELECT ALL - 48 * COUNT ( * ) AS col2, 1 + + CAST ( NULL AS INTEGER )
----
-48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT - COUNT( * ) - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - COUNT ( * ) - 25 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT COUNT( - 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3763
SELECT COUNT ( - 95 ) AS col2
----
1

query I rowsort
SELECT 58 * + + 34 + 67 AS col2
----
2039

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT DISTINCT - MAX( - + ( 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT - MAX ( - + ( 26 ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT ALL - 66 - - CASE + - 13 WHEN + + NULLIF ( - 45, + ( - 51 ) / - CAST( NULL AS SIGNED ) - 43 ) THEN CASE + COUNT( * ) WHEN + 0 THEN - ( - COUNT( * ) ) WHEN 59 THEN - 81 END * + 16 + - - 96 * + 33 / - MAX( ALL - 46 ) + 56 + - 45 + + 12 + 13 * COUNT( * ) WHEN + + 52 + + - 29 THEN + + 93 * + SUM( ALL + 10 ) END * - 76 + - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - 66 - - CASE + - 13 WHEN + + NULLIF ( - 45, + ( - 51 ) / - CAST ( NULL AS INTEGER ) - 43 ) THEN CASE + COUNT ( * ) WHEN + 0 THEN - ( - COUNT ( * ) ) WHEN 59 THEN - 81 END * + 16 + - - 96 * + 33 / - MAX ( ALL - 46 ) + 56 + - 45 + + 12 + 13 * COUNT ( * ) WHEN + + 52 + + - 29 THEN + + 93 * + SUM ( ALL + 10 ) END * - 76 + - 29 AS col0
----
NULL

query I rowsort
SELECT + 90 * + 46 AS col0
----
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL MIN( ALL 5 ) * 2 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL MIN ( ALL 5 ) * 2 AS col1
----
10

query I rowsort
SELECT DISTINCT + 39 * 26 + + 56 + + + 90
----
1160

query I rowsort
SELECT + 56 / CASE + 72 WHEN - 74 * - 14 THEN NULL WHEN + + 67 * 55 * - 94 + - + 89 THEN + 95 + + 61 END + + AVG ( ALL - - 52 ) AS col1
----
NULL

query I rowsort
SELECT - + 95 * - - 0 * - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT + - ( 4 ) + + - MAX( - - 4 ) + + ( - - 55 ) + + CAST( + COUNT( * ) AS SIGNED ) * + 4 * + + 91 - 24
----
387

skipif mysql # not compatible
query I rowsort label-3772
SELECT + - ( 4 ) + + - MAX ( - - 4 ) + + ( - - 55 ) + + CAST ( + COUNT ( * ) AS INTEGER ) * + 4 * + + 91 - 24
----
387

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3773
SELECT ALL 48 * - COUNT( * ) AS col0, 45 DIV - 75
----
-48
0

skipif mysql # not compatible
query II rowsort label-3773
SELECT ALL 48 * - COUNT ( * ) AS col0, 45 / - 75
----
-48
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3774
SELECT + + COUNT( * ) + NULLIF ( + 89, 86 ) + + - 37 DIV + 93 * - 59 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3774
SELECT + + COUNT ( * ) + NULLIF ( + 89, 86 ) + + - 37 / + 93 * - 59 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + COUNT( * ) + + 78 * COUNT( * ) * + 68 AS col1
----
5305

skipif mysql # not compatible
query I rowsort label-3775
SELECT + COUNT ( * ) + + 78 * COUNT ( * ) * + 68 AS col1
----
5305

query I rowsort
SELECT ALL 75 + - 86 * 21 AS col0
----
-1731

query I rowsort
SELECT - 15 + - + 95 + - 36
----
-146

query I rowsort
SELECT DISTINCT - ( - 19 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT - + 93 + - 22 DIV - COUNT( DISTINCT + 6 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3779
SELECT - + 93 + - 22 / - COUNT ( DISTINCT + 6 ) AS col2
----
-71

query I rowsort
SELECT ALL - - 78 + + 84
----
162

query I rowsort
SELECT ALL NULLIF ( + 96, 36 + + 4 ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3782
SELECT ALL + COUNT( * ) + - CAST( - 90 AS SIGNED ) * 66
----
5941

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL + COUNT ( * ) + - CAST ( - 90 AS INTEGER ) * 66
----
5941

query I rowsort
SELECT ALL 82 + - 20
----
62

query I rowsort
SELECT DISTINCT + 7 + + - 29 AS col0
----
-22

query II rowsort
SELECT + 62 AS col0, - 36
----
62
-36

query I rowsort
SELECT ALL + 25 * 94 AS col1
----
2350

query I rowsort
SELECT - 47 * - + 46
----
2162

query I rowsort
SELECT ALL + ( + - 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT DISTINCT 87 * + + 28 - + 58 * 44 DIV NULLIF ( + + 58, + SUM( DISTINCT 63 ) + - + NULLIF ( + 85, 62 ) )
----
2392

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT 87 * + + 28 - + 58 * 44 / NULLIF ( + + 58, + SUM ( DISTINCT 63 ) + - + NULLIF ( + 85, 62 ) )
----
2392

query I rowsort
SELECT - 50 * + 31 + + 93 AS col2
----
-1457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3791
SELECT - CAST( NULL AS SIGNED ) * + + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT - CAST ( NULL AS INTEGER ) * + + 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3792
SELECT + 16 * CAST( 85 AS SIGNED ) AS col2
----
1360

skipif mysql # not compatible
query I rowsort label-3792
SELECT + 16 * CAST ( 85 AS INTEGER ) AS col2
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL + COUNT( - + 89 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + COUNT ( - + 89 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT 81 * + COUNT( + 10 ) + - 63 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3794
SELECT 81 * + COUNT ( + 10 ) + - 63 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT ALL + COUNT( ALL - 38 ) DIV + 77 + 20 + 82
----
102

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL + COUNT ( ALL - 38 ) / + 77 + 20 + 82
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT - 80 + - COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3796
SELECT - 80 + - COUNT ( * ) AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT DISTINCT CAST( - 49 AS SIGNED ) * + - 4 AS col2
----
196

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT CAST ( - 49 AS INTEGER ) * + - 4 AS col2
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3798
SELECT ALL COUNT( CAST( NULL AS SIGNED ) ) * + 52 * + 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) * + 52 * + 22 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT NULLIF ( + - COALESCE ( - ( + + 61 ), + 11, - 35 ), + + CAST( + - 36 AS SIGNED ) * 38 / 82 )
----
61

skipif mysql # not compatible
query I rowsort label-3799
SELECT NULLIF ( + - COALESCE ( - ( + + 61 ), + 11, - 35 ), + + CAST ( + - 36 AS INTEGER ) * 38 / 82 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL + SUM( - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + SUM ( - 99 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3801
SELECT + COUNT( * ) DIV - 44 DIV - 13, - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-3801
SELECT + COUNT ( * ) / - 44 / - 13, - COUNT ( * ) AS col1
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - CAST( - 71 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - CAST ( - 71 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 75 AS col2
----
-75

query I rowsort
SELECT ALL + 96 * 35 + - - 31 * - - 14 + 58 AS col1
----
3852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT + - COALESCE ( - 52, + 47 * - CAST( - 66 AS SIGNED ) - - ( + COUNT( * ) ) * + 35 * - - 38 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3805
SELECT + - COALESCE ( - 52, + 47 * - CAST ( - 66 AS INTEGER ) - - ( + COUNT ( * ) ) * + 35 * - - 38 ) AS col1
----
52

query I rowsort
SELECT + + 49 * 79 AS col0
----
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ALL COUNT( * ) * - - 74 * + 96 + + 99 + - MIN( + - 93 ) + + 58 - - 85
----
7439

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL COUNT ( * ) * - - 74 * + 96 + + 99 + - MIN ( + - 93 ) + + 58 - - 85
----
7439

query I rowsort
SELECT ALL + 74 * - NULLIF ( + 27, 42 ) + + - 27 + - 44
----
-2069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3809
SELECT DISTINCT - 3 * - + COUNT( DISTINCT 99 ) + + NULLIF ( 1, + COALESCE ( + - COUNT( * ), - 35 * + 28 + - 11, CAST( NULL AS SIGNED ) ) / + 63 ) * + 0 AS col1, + COALESCE ( + + 16, - COUNT( * ), 64 )
----
3
16

skipif mysql # not compatible
query II rowsort label-3809
SELECT DISTINCT - 3 * - + COUNT ( DISTINCT 99 ) + + NULLIF ( 1, + COALESCE ( + - COUNT ( * ), - 35 * + 28 + - 11, CAST ( NULL AS INTEGER ) ) / + 63 ) * + 0 AS col1, + COALESCE ( + + 16, - COUNT ( * ), 64 )
----
3
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL - 10 * + 75 + NULLIF ( + + ( 42 ), - COUNT( DISTINCT - 83 ) * + 35 + + 7 ) + NULLIF ( - + 33, - + 7 / 14 ) AS col0
----
-741

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL - 10 * + 75 + NULLIF ( + + ( 42 ), - COUNT ( DISTINCT - 83 ) * + 35 + + 7 ) + NULLIF ( - + 33, - + 7 / 14 ) AS col0
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL 20 * + + COALESCE ( 52, 61 * - + 49 + - 0 ) * + + COALESCE ( - + 15, + ( + NULLIF ( + 20, + - COUNT( * ) ) ) + + - 53, 62 ) AS col0
----
-15600

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL 20 * + + COALESCE ( 52, 61 * - + 49 + - 0 ) * + + COALESCE ( - + 15, + ( + NULLIF ( + 20, + - COUNT ( * ) ) ) + + - 53, 62 ) AS col0
----
-15600

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT - 93, + COUNT( * ) + 46 col0
----
-93
47

skipif mysql # not compatible
query II rowsort label-3812
SELECT - 93, + COUNT ( * ) + 46 col0
----
-93
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT DISTINCT 76 * - 72 + - 10 * + 24 - - 28 DIV 58 + - + 71
----
-5783

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT 76 * - 72 + - 10 * + 24 - - 28 / 58 + - + 71
----
-5783

query I rowsort
SELECT DISTINCT - 61 * 72
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL + COUNT( * ) + 7 * + 94
----
659

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + COUNT ( * ) + 7 * + 94
----
659

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL - ( - SUM( + 50 ) ) * - 14
----
-700

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - ( - SUM ( + 50 ) ) * - 14
----
-700

query I rowsort
SELECT - ( + + 95 ) col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3818
SELECT + - 22 DIV NULLIF ( 80, - 56 + - COUNT( * ) + + 73 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT + - 22 / NULLIF ( 80, - 56 + - COUNT ( * ) + + 73 ) AS col2
----
0

query I rowsort
SELECT + 65 * - 50 * - 73 AS col0
----
237250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT - - CASE + 43 WHEN - 80 + 96 THEN + CAST( 84 AS SIGNED ) + - 60 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT - - CASE + 43 WHEN - 80 + 96 THEN + CAST ( 84 AS INTEGER ) + - 60 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3821
SELECT + CAST( + - MAX( DISTINCT - CASE - 48 WHEN + 62 THEN - 38 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT + CAST ( + - MAX ( DISTINCT - CASE - 48 WHEN + 62 THEN - 38 END ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + 42 + + - NULLIF ( + 64, - 35 ) + + 72 * MAX( ALL + 30 ) * 82
----
177098

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + 42 + + - NULLIF ( + 64, - 35 ) + + 72 * MAX ( ALL + 30 ) * 82
----
177098

query I rowsort
SELECT - - 61 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL CASE + COUNT( * ) WHEN + COUNT( * ) + - 47 THEN + + COUNT( * ) + - COUNT( * ) * + 93 * - + 87 ELSE - ( 4 ) - - + 43 END - + 62 + 96 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL CASE + COUNT ( * ) WHEN + COUNT ( * ) + - 47 THEN + + COUNT ( * ) + - COUNT ( * ) * + 93 * - + 87 ELSE - ( 4 ) - - + 43 END - + 62 + 96 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT - COALESCE ( - COUNT( * ), - COUNT( * ) ) * 34
----
34

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - COALESCE ( - COUNT ( * ), - COUNT ( * ) ) * 34
----
34

query I rowsort
SELECT - 23 * + - 22 AS col0
----
506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT - CAST( - ( + - CAST( COUNT( * ) AS SIGNED ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3828
SELECT - CAST ( - ( + - CAST ( COUNT ( * ) AS INTEGER ) ) AS INTEGER )
----
-1

query I rowsort
SELECT + 93 + - - 68 + 33
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - MAX( - 39 ) * + MIN( ALL + 14 ) + - 74
----
472

skipif mysql # not compatible
query I rowsort label-3831
SELECT - MAX ( - 39 ) * + MIN ( ALL + 14 ) + - 74
----
472

query II rowsort
SELECT ALL + 78 AS col2, 70 AS col1
----
78
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3833
SELECT 95 DIV + 38 + 6 - - + 68 * + COUNT( * ) * 96
----
6536

skipif mysql # not compatible
query I rowsort label-3833
SELECT 95 / + 38 + 6 - - + 68 * + COUNT ( * ) * 96
----
6536

query II rowsort
SELECT ALL + 49 AS col0, 6
----
49
6

query I rowsort
SELECT - 39 + + 92
----
53

query I rowsort
SELECT - 57 * + ( - 19 )
----
1083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3837
SELECT ALL - COUNT( * ), - 44 * ( - + CAST( - 56 AS SIGNED ) ) DIV 38 + + - 93 AS col0
----
-1
-157

skipif mysql # not compatible
query II rowsort label-3837
SELECT ALL - COUNT ( * ), - 44 * ( - + CAST ( - 56 AS INTEGER ) ) / 38 + + - 93 AS col0
----
-1
-157

onlyif mysql # DIV for integer division: 
query I rowsort label-3838
SELECT 20 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-3838
SELECT 20 / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT MAX( ALL + 94 ) * + - 28 * + - 97 + + 53 * + 15 AS col0
----
256099

skipif mysql # not compatible
query I rowsort label-3839
SELECT MAX ( ALL + 94 ) * + - 28 * + - 97 + + 53 * + 15 AS col0
----
256099

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL + - MIN( COALESCE ( + + 57, 67 ) ) + - ( 58 ) AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL + - MIN ( COALESCE ( + + 57, 67 ) ) + - ( 58 ) AS col0
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT - CAST( NULL AS SIGNED ) - - AVG ( DISTINCT + - ( - + 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT - CAST ( NULL AS INTEGER ) - - AVG ( DISTINCT + - ( - + 1 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ( MIN( ALL 85 ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3842
SELECT ( MIN ( ALL 85 ) ) AS col1
----
85

query I rowsort
SELECT - 47 * + 47
----
-2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT - 20 * 22 + + COALESCE ( - - 43, - 85 - + - 85 * CAST( - 49 AS SIGNED ) ) AS col0
----
-397

skipif mysql # not compatible
query I rowsort label-3844
SELECT - 20 * 22 + + COALESCE ( - - 43, - 85 - + - 85 * CAST ( - 49 AS INTEGER ) ) AS col0
----
-397

onlyif mysql # DIV for integer division: 
query II rowsort label-3845
SELECT ALL - - ( - - 44 ) AS col0, - 34 * - 85 * 97 DIV - 85 + - - 71 + + 36 AS col0
----
44
-3191

skipif mysql # not compatible
query II rowsort label-3845
SELECT ALL - - ( - - 44 ) AS col0, - 34 * - 85 * 97 / - 85 + - - 71 + + 36 AS col0
----
44
-3191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3846
SELECT DISTINCT - + 49 DIV COUNT( * ) + + 49 col1
----
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - + 49 / COUNT ( * ) + + 49 col1
----
0

query I rowsort
SELECT ALL + 87 + 97 AS col2
----
184

query II rowsort
SELECT DISTINCT - 86, 37 col1
----
-86
37

query I rowsort
SELECT DISTINCT + + 36 + - 1 AS col0
----
35

query I rowsort
SELECT ALL - 32 + - 23
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT - MAX( DISTINCT - 63 ) - - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3851
SELECT - MAX ( DISTINCT - 63 ) - - COUNT ( * ) AS col0
----
64

query I rowsort
SELECT ALL + 20 + + 23 + + - 76
----
-33

query I rowsort
SELECT DISTINCT + + 61 * - + 98 * + 29 * - 23
----
3987326

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3854
SELECT - 50 + + + 78 * - 72 * + CASE - COUNT( * ) WHEN + + 95 * + 50 * - 74 + 98 THEN 14 / + CAST( + ( + + 33 ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT - 50 + + + 78 * - 72 * + CASE - COUNT ( * ) WHEN + + 95 * + 50 * - 74 + 98 THEN 14 / + CAST ( + ( + + 33 ) AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT - 33 * + COUNT( * ) * + COUNT( * ) * + - 48 + - CASE - 49 WHEN 95 + - 97 + + 15 * + 25 THEN - 66 END AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3855
SELECT - 33 * + COUNT ( * ) * + COUNT ( * ) * + - 48 + - CASE - 49 WHEN 95 + - 97 + + 15 * + 25 THEN - 66 END AS col0, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT 17 + + COUNT( * ) DIV - 51 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3856
SELECT 17 + + COUNT ( * ) / - 51 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT DISTINCT CAST( 91 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT CAST ( 91 AS INTEGER ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT ALL - COUNT( * ) AS col2, 61 AS col1
----
-1
61

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL - COUNT ( * ) AS col2, 61 AS col1
----
-1
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 52
----
NULL

query I rowsort
SELECT 14 + + - 84 AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3861
SELECT ALL 29 * - 85 * - 82 AS col1, 77 * COUNT( * ) DIV 8 - 61 AS col1
----
202130
-52

skipif mysql # not compatible
query II rowsort label-3861
SELECT ALL 29 * - 85 * - 82 AS col1, 77 * COUNT ( * ) / 8 - 61 AS col1
----
202130
-52

query I rowsort
SELECT DISTINCT 28 * - 94 * - - 60 col2
----
-157920

query I rowsort
SELECT 23 * 10
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT 30 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3864
SELECT 30 / + 92
----
0

query I rowsort
SELECT DISTINCT - 18 + + + 86 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT COUNT( * ) + + - 82 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT COUNT ( * ) + + - 82 AS col0
----
-81

query I rowsort
SELECT ALL - 0 + - 48
----
-48

query I rowsort
SELECT DISTINCT 96 + - 1 + - 29 * - - 59 * 35 * 36 AS col0
----
-2155765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3869
SELECT + CAST( + 30 AS SIGNED ) AS col1, - MIN( 34 ) AS col2
----
30
-34

skipif mysql # not compatible
query II rowsort label-3869
SELECT + CAST ( + 30 AS INTEGER ) AS col1, - MIN ( 34 ) AS col2
----
30
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3870
SELECT ALL + 16 + + 87 AS col2, + CAST( + 36 AS SIGNED )
----
103
36

skipif mysql # not compatible
query II rowsort label-3870
SELECT ALL + 16 + + 87 AS col2, + CAST ( + 36 AS INTEGER )
----
103
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3871
SELECT ALL + ( 73 ) + + + CAST( NULL AS DECIMAL ) + + - 11 + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + ( 73 ) + + + CAST ( NULL AS REAL ) + + - 11 + + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT - 94 + - 55 * ( + 96 ) - + CASE - 55 WHEN ( - - 91 ) THEN 93 + + + COUNT( * ) WHEN 51 - + 33 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT - 94 + - 55 * ( + 96 ) - + CASE - 55 WHEN ( - - 91 ) THEN 93 + + + COUNT ( * ) WHEN 51 - + 33 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3873
SELECT + + CASE - 9 WHEN + + COUNT( * ) + + - 1 * - 18 * + 16 * - 0 * + CAST( NULL AS DECIMAL ) THEN NULL WHEN 24 THEN NULL ELSE + CAST( AVG ( - 23 ) AS SIGNED ) * COUNT( * ) * + 37 + + CAST( NULL AS SIGNED ) END AS col0, - 17
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-3873
SELECT + + CASE - 9 WHEN + + COUNT ( * ) + + - 1 * - 18 * + 16 * - 0 * + CAST ( NULL AS REAL ) THEN NULL WHEN 24 THEN NULL ELSE + CAST ( AVG ( - 23 ) AS INTEGER ) * COUNT ( * ) * + 37 + + CAST ( NULL AS INTEGER ) END AS col0, - 17
----
NULL
-17

query I rowsort
SELECT ALL - 50 * - - 83 AS col1
----
-4150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3875
SELECT ALL - COUNT( * ) DIV - + 41 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - COUNT ( * ) / - + 41 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT DISTINCT - - 29 * - MIN( DISTINCT - 12 ) * + SUM( DISTINCT 80 ) * + - 71 * + 35 - + 87
----
-69182487

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - - 29 * - MIN ( DISTINCT - 12 ) * + SUM ( DISTINCT 80 ) * + - 71 * + 35 - + 87
----
-69182487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT 79 * CAST( 6 AS SIGNED ) AS col0
----
474

skipif mysql # not compatible
query I rowsort label-3877
SELECT 79 * CAST ( 6 AS INTEGER ) AS col0
----
474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3878
SELECT 85 DIV + ( - - SUM( + 99 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3878
SELECT 85 / + ( - - SUM ( + 99 ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3879
SELECT 17, - 63 + + MIN( + + 71 ) - 29 - - + 19 + - 97 AS col2
----
17
-99

skipif mysql # not compatible
query II rowsort label-3879
SELECT 17, - 63 + + MIN ( + + 71 ) - 29 - - + 19 + - 97 AS col2
----
17
-99

query I rowsort
SELECT 30 * ( 10 )
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT 4 - 93 DIV - 8
----
15

skipif mysql # not compatible
query I rowsort label-3881
SELECT 4 - 93 / - 8
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3882
SELECT 66 AS col1, + CAST( NULL AS SIGNED )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-3882
SELECT 66 AS col1, + CAST ( NULL AS INTEGER )
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT 43 * - + COALESCE ( + 9, SUM( 21 ) ) * - 99 * + 29
----
1111077

skipif mysql # not compatible
query I rowsort label-3883
SELECT 43 * - + COALESCE ( + 9, SUM ( 21 ) ) * - 99 * + 29
----
1111077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT 20 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT 20 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT 93 + + + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT 93 + + + COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT COALESCE ( - 32, COUNT( * ) + COALESCE ( - 68, ( + 19 ), 48 ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT COALESCE ( - 32, COUNT ( * ) + COALESCE ( - 68, ( + 19 ), 48 ) ) AS col0
----
-32

query I rowsort
SELECT + 16 * - 22 AS col2
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL 28 + - COUNT( * ) + + 97 * + - 57
----
-5502

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL 28 + - COUNT ( * ) + + 97 * + - 57
----
-5502

query I rowsort
SELECT + 34 - - 52
----
86

query I rowsort
SELECT - 4 + - 4
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + COUNT( * ) - - 5
----
6

skipif mysql # not compatible
query I rowsort label-3891
SELECT + COUNT ( * ) - - 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT MIN( - 22 ) * + + 90 * - COUNT( * ) col0
----
1980

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT MIN ( - 22 ) * + + 90 * - COUNT ( * ) col0
----
1980

query I rowsort
SELECT - 80 + - 50 + + 73
----
-57

query I rowsort
SELECT + 86 * - 32 AS col2
----
-2752

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT - COALESCE ( - COUNT( * ), - + 92, COUNT( ALL - - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3895
SELECT - COALESCE ( - COUNT ( * ), - + 92, COUNT ( ALL - - 1 ) )
----
1

query I rowsort
SELECT - 61 * ( + 57 ) + + 83 AS col2
----
-3394

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT - COUNT( * ) * 62 * + SUM( ALL - + COALESCE ( 9, - 15 ) )
----
558

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT - COUNT ( * ) * 62 * + SUM ( ALL - + COALESCE ( 9, - 15 ) )
----
558

query I rowsort
SELECT DISTINCT + 72 * - 16 + 55
----
-1097

query I rowsort
SELECT ALL + - 55 * - 62 * - + 78 + 2 AS col0
----
-265978

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT ALL + 4 * - 21 + + 58 col1, + ( + COUNT( * ) ) AS col2
----
-26
1

skipif mysql # not compatible
query II rowsort label-3900
SELECT ALL + 4 * - 21 + + 58 col1, + ( + COUNT ( * ) ) AS col2
----
-26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT + 56 * - COUNT( * ) * + + 61 * - 93
----
317688

skipif mysql # not compatible
query I rowsort label-3901
SELECT + 56 * - COUNT ( * ) * + + 61 * - 93
----
317688

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT DISTINCT + MAX( + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT + MAX ( + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT + + COUNT( * ) AS col1, + 13 AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-3903
SELECT + + COUNT ( * ) AS col1, + 13 AS col0
----
1
13

query I rowsort
SELECT + + 24 - - 75 AS col0
----
99

query I rowsort
SELECT + + 65 * - 53 AS col0
----
-3445

query I rowsort
SELECT ALL - 54 * 76
----
-4104

query II rowsort
SELECT ALL + 87 AS col0, - 76
----
87
-76

query II rowsort
SELECT ALL + - 12 AS col2, - 69 * - 66
----
-12
4554

query I rowsort
SELECT DISTINCT + 77 * - 22 - + 36 * - 66 AS col2
----
682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3910
SELECT + CAST( NULL AS SIGNED ) + + 89 + + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT + CAST ( NULL AS INTEGER ) + + 89 + + 11 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3911
SELECT - - 8 - - COUNT( * ) - - 24 - - 36 AS col1, + NULLIF ( + - SUM( DISTINCT 22 ), - - 20 + + 89 ) * - 40 AS col0
----
69
880

skipif mysql # not compatible
query II rowsort label-3911
SELECT - - 8 - - COUNT ( * ) - - 24 - - 36 AS col1, + NULLIF ( + - SUM ( DISTINCT 22 ), - - 20 + + 89 ) * - 40 AS col0
----
69
880

query I rowsort
SELECT + 39 * 20 + + 29
----
809

query I rowsort
SELECT + 84 * + + 10 + 43 - 99 col0
----
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT - 88 + - CAST( - 62 AS SIGNED ) * - 7 * + 31 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT - 88 + - CAST ( - 62 AS INTEGER ) * - 7 * + 31 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT DISTINCT COALESCE ( CAST( NULL AS SIGNED ), + ( + CASE + 54 WHEN - 58 * 50 + 89 * 37 THEN + CAST( NULL AS SIGNED ) - + 13 END ) * + + ( - 45 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), + ( + CASE + 54 WHEN - 58 * 50 + 89 * 37 THEN + CAST ( NULL AS INTEGER ) - + 13 END ) * + + ( - 45 ) )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 48, - 66 * - 33 * + ( - 75 ) + + 3 ) + + ( + 6 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT - 64 + + COUNT( * ) DIV + + 18 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3917
SELECT - 64 + + COUNT ( * ) / + + 18 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL MIN( DISTINCT + CASE - - 97 WHEN + 46 THEN - - 83 / - - 8 + + 53 + 41 WHEN 15 - 5 - + - 65 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL MIN ( DISTINCT + CASE - - 97 WHEN + 46 THEN - - 83 / - - 8 + + 53 + 41 WHEN 15 - 5 - + - 65 THEN NULL END )
----
NULL

query I rowsort
SELECT ALL ( + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT - 40 + + 79 - + ( + + 23 ), COUNT( * ) AS col2
----
16
1

skipif mysql # not compatible
query II rowsort label-3920
SELECT - 40 + + 79 - + ( + + 23 ), COUNT ( * ) AS col2
----
16
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT ALL - 99 + 3 + 12 + CAST( NULL AS SIGNED ) * 38 + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - 99 + 3 + 12 + CAST ( NULL AS INTEGER ) * 38 + + 98
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 77, - + 9 )
----
77

query I rowsort
SELECT - 34 + 70 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL + COUNT( * ) * - - 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL + COUNT ( * ) * - - 56 AS col1
----
56

query I rowsort
SELECT - 4 * + 7 * + 80 * 49 AS col1
----
-109760

query II rowsort
SELECT - 10 + - 8 col2, 94 AS col1
----
-18
94

query I rowsort
SELECT - 98 * + 61 * + 96
----
-573888

query I rowsort
SELECT + 63 + + 92 * 85
----
7883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT ALL CAST( MIN( ALL + + 73 ) AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL CAST ( MIN ( ALL + + 73 ) AS INTEGER )
----
73

query II rowsort
SELECT ALL + NULLIF ( - 48, - - 57 ) + - + 50 col2, + 55 AS col1
----
-98
55

query I rowsort
SELECT DISTINCT 80 + + 23 + - 97
----
6

query I rowsort
SELECT ALL 38 + - 9 + - 52
----
-23

query I rowsort
SELECT DISTINCT + - 30 * - 96
----
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL NULLIF ( 95, - 40 ) * + CASE + + 22 WHEN COALESCE ( 24, + - 32 / + COUNT( * ) + + - 41 / - + 87 + + + 97 + - 52 + + CAST( NULL AS SIGNED ), 82 ) THEN + + 72 * + - MAX( 24 ) + - + SUM( ALL - 4 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL NULLIF ( 95, - 40 ) * + CASE + + 22 WHEN COALESCE ( 24, + - 32 / + COUNT ( * ) + + - 41 / - + 87 + + + 97 + - 52 + + CAST ( NULL AS INTEGER ), 82 ) THEN + + 72 * + - MAX ( 24 ) + - + SUM ( ALL - 4 ) END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3935
SELECT ALL 17 DIV - 33 - + 84 * 65
----
-5460

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL 17 / - 33 - + 84 * 65
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT 42 * 28 + SUM( 82 ) + + - 67
----
1191

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT 42 * 28 + SUM ( 82 ) + + - 67
----
1191

query I rowsort
SELECT - - 94 - - - 74
----
20

query I rowsort
SELECT ALL + + 82 col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT + 57 DIV 15 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3939
SELECT + 57 / 15 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL + - NULLIF ( ( + COUNT( * ) ), + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + - NULLIF ( ( + COUNT ( * ) ), + 39 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT + - COUNT( * ) + - - 31 DIV + 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3941
SELECT + - COUNT ( * ) + - - 31 / + 50 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3942
SELECT - NULLIF ( + COUNT( DISTINCT + 23 ), + 78 ) AS col0, 87
----
-1
87

skipif mysql # not compatible
query II rowsort label-3942
SELECT - NULLIF ( + COUNT ( DISTINCT + 23 ), + 78 ) AS col0, 87
----
-1
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3943
SELECT + COUNT( * ) * - + 80 DIV + 78 + - COUNT( * ), - 87 * - + 55 + 94 AS col2
----
-2
4879

skipif mysql # not compatible
query II rowsort label-3943
SELECT + COUNT ( * ) * - + 80 / + 78 + - COUNT ( * ), - 87 * - + 55 + 94 AS col2
----
-2
4879

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT + 84 - - COUNT( * ) + - 2 + - + 70 * + + 10 col1
----
-617

skipif mysql # not compatible
query I rowsort label-3944
SELECT + 84 - - COUNT ( * ) + - 2 + - + 70 * + + 10 col1
----
-617

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3945
SELECT + + 68 DIV CAST( + 38 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3945
SELECT + + 68 / CAST ( + 38 AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT + - MAX( ALL 6 ) + 12 - CAST( NULL AS SIGNED ) - - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT + - MAX ( ALL 6 ) + 12 - CAST ( NULL AS INTEGER ) - - - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL + + COUNT( DISTINCT 57 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL + + COUNT ( DISTINCT 57 ) col1
----
1

query I rowsort
SELECT + + 87 * - ( + 3 ) col2
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL + 20 * + MIN( ALL + 90 ) + - 10 * - + 23
----
2030

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + 20 * + MIN ( ALL + 90 ) + - 10 * - + 23
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT - COUNT( * ) * + 53 + - 37 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT - COUNT ( * ) * + 53 + - 37 AS col0
----
-90

query I rowsort
SELECT ALL 23 + + 57
----
80

query I rowsort
SELECT DISTINCT + 13 + 8 AS col2
----
21

query II rowsort
SELECT - 66, + 57 * - + ( - 71 ) AS col0
----
-66
4047

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT NULLIF ( - 95, - - 28 * 70 - + MAX( + + 31 ) ) * - 46 * + 24 AS col1
----
104880

skipif mysql # not compatible
query I rowsort label-3954
SELECT NULLIF ( - 95, - - 28 * 70 - + MAX ( + + 31 ) ) * - 46 * + 24 AS col1
----
104880

query I rowsort
SELECT 49 * 61 AS col0
----
2989

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3956
SELECT ALL ( + - NULLIF ( MAX( 97 ), - COUNT( * ) ) ) + + 99 DIV ( + 63 ), - 79 AS col1
----
-96
-79

skipif mysql # not compatible
query II rowsort label-3956
SELECT ALL ( + - NULLIF ( MAX ( 97 ), - COUNT ( * ) ) ) + + 99 / ( + 63 ), - 79 AS col1
----
-96
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT 15, + COALESCE ( COUNT( * ), - ( 45 ) ) col1
----
15
1

skipif mysql # not compatible
query II rowsort label-3957
SELECT 15, + COALESCE ( COUNT ( * ), - ( 45 ) ) col1
----
15
1

query I rowsort
SELECT 29 - 24 AS col1
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3959
SELECT CAST( NULL AS DECIMAL ) - + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT CAST ( NULL AS REAL ) - + 0 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3960
SELECT ALL + 96 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + 96 / 63
----
1

query I rowsort
SELECT 48 - - 61 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL SUM( - - 19 ) - - 65 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL SUM ( - - 19 ) - - 65 AS col0
----
84

query I rowsort
SELECT 64 * 38 * - 36 AS col0
----
-87552

query I rowsort
SELECT ALL + 96 * + - 24 AS col2
----
-2304

query I rowsort
SELECT 74 - - 22 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT COUNT( * ) + - 71 + + 21 + - 64 * COUNT( * ) + + MAX( DISTINCT - COALESCE ( + + 58, + 87 ) ) + + + 83 + + - ( - 14 ) + + 63 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3966
SELECT COUNT ( * ) + - 71 + + 21 + - 64 * COUNT ( * ) + + MAX ( DISTINCT - COALESCE ( + + 58, + 87 ) ) + + + 83 + + - ( - 14 ) + + 63 AS col2
----
-11

query I rowsort
SELECT ( 1 ) - + - 59 AS col1
----
60

query I rowsort
SELECT ALL - - 65 * - 86
----
-5590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT - 47 * - + 24 + COALESCE ( + ( + 81 ), + - 80 ) + CASE + MIN( - + CAST( NULL AS SIGNED ) ) WHEN MAX( 67 ) THEN - + 2 + + - 58 - - ( + + 0 ) * - 30 * - ( - COUNT( * ) ) / ( + - NULLIF ( MIN( ALL - + 33 ), + NULLIF ( - NULLIF ( COUNT( * ), + 73 ), + 56 + - - CAST( 18 AS SIGNED ) * + 71 ) + + + COALESCE ( + 46, - COUNT( * ) * + 74 / - SUM( DISTINCT 82 ) + - COUNT( * ) ) * + 68 ) ) * - + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT - 47 * - + 24 + COALESCE ( + ( + 81 ), + - 80 ) + CASE + MIN ( - + CAST ( NULL AS INTEGER ) ) WHEN MAX ( 67 ) THEN - + 2 + + - 58 - - ( + + 0 ) * - 30 * - ( - COUNT ( * ) ) / ( + - NULLIF ( MIN ( ALL - + 33 ), + NULLIF ( - NULLIF ( COUNT ( * ), + 73 ), + 56 + - - CAST ( 18 AS INTEGER ) * + 71 ) + + + COALESCE ( + 46, - COUNT ( * ) * + 74 / - SUM ( DISTINCT 82 ) + - COUNT ( * ) ) * + 68 ) ) * - + 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT ALL - MAX( - 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL - MAX ( - 59 ) AS col1
----
59

query I rowsort
SELECT - 91 * + 54 * - + 98 AS col2
----
481572

query I rowsort
SELECT - - 58 col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3973
SELECT + 94 DIV + 19 + 53 DIV + 46 - - 25 DIV + + 9 + + - COUNT( * ) + + + 55 + - 15 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3973
SELECT + 94 / + 19 + 53 / + 46 - - 25 / + + 9 + + - COUNT ( * ) + + + 55 + - 15 AS col2
----
46

query I rowsort
SELECT - 63 * + - 51 AS col0
----
3213

query I rowsort
SELECT DISTINCT + 61 * + 80 AS col0
----
4880

query II rowsort
SELECT + + 63, 92 col0
----
63
92

query II rowsort
SELECT + 65, 32 AS col2
----
65
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3978
SELECT DISTINCT - + 56 AS col2, - MIN( DISTINCT - - 17 )
----
-56
-17

skipif mysql # not compatible
query II rowsort label-3978
SELECT DISTINCT - + 56 AS col2, - MIN ( DISTINCT - - 17 )
----
-56
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3979
SELECT DISTINCT SUM( ALL + - CAST( NULL AS DECIMAL ) ) + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT SUM ( ALL + - CAST ( NULL AS REAL ) ) + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT 63 * + CASE - 68 WHEN + MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) * COUNT( * ) + - ( COUNT( 55 ) ) + - SUM( 41 ) + - COALESCE ( - + 63, 90, - CAST( NULL AS SIGNED ) * 6 + - 32 * - - 71 ) THEN AVG ( DISTINCT - 80 ) WHEN + + 90 THEN NULL ELSE NULL END - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT 63 * + CASE - 68 WHEN + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - ( COUNT ( 55 ) ) + - SUM ( 41 ) + - COALESCE ( - + 63, 90, - CAST ( NULL AS INTEGER ) * 6 + - 32 * - - 71 ) THEN AVG ( DISTINCT - 80 ) WHEN + + 90 THEN NULL ELSE NULL END - 98
----
NULL

query II rowsort
SELECT 63 AS col0, + 54
----
63
54

query I rowsort
SELECT 72 * + + 13 + + CASE + 22 WHEN ( + 11 ) THEN NULL ELSE - - 20 END col1
----
956

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT 49 + + 93 + + 16 + + - 95 DIV - 63 + - 24 * 55 * + + 86 * + 2
----
-226881

skipif mysql # not compatible
query I rowsort label-3983
SELECT 49 + + 93 + + 16 + + - 95 / - 63 + - 24 * 55 * + + 86 * + 2
----
-226881

query II rowsort
SELECT ALL 17 + + - 63 + - 31 + 91 col2, 74 + - 88
----
14
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3985
SELECT - 37 * + 67 + + - COUNT( * ) DIV - NULLIF ( 25, MIN( + 12 ) ) + 10
----
-2469

skipif mysql # not compatible
query I rowsort label-3985
SELECT - 37 * + 67 + + - COUNT ( * ) / - NULLIF ( 25, MIN ( + 12 ) ) + 10
----
-2469

onlyif mysql # aggregate syntax: 
query II rowsort label-3986
SELECT 90 AS col1, + 47 - + 57 + - - MIN( DISTINCT - + 79 )
----
90
-89

skipif mysql # not compatible
query II rowsort label-3986
SELECT 90 AS col1, + 47 - + 57 + - - MIN ( DISTINCT - + 79 )
----
90
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3987
SELECT - COUNT( * ) AS col0, 40 * + COUNT( * ) DIV - - 43 AS col2, + ( CAST( NULL AS SIGNED ) )
----
-1
0
NULL

skipif mysql # not compatible
query III rowsort label-3987
SELECT - COUNT ( * ) AS col0, 40 * + COUNT ( * ) / - - 43 AS col2, + ( CAST ( NULL AS INTEGER ) )
----
-1
0
NULL

query I rowsort
SELECT ALL 69 * - 39
----
-2691

query I rowsort
SELECT ALL - ( - 64 ) - 64 + + ( - 54 )
----
-54

query I rowsort
SELECT ALL 63 * 45
----
2835

query I rowsort
SELECT ALL 39 - 97
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3992
SELECT 87 AS col1, + COUNT( * ) * - - 34 DIV - 31 AS col2
----
87
-1

skipif mysql # not compatible
query II rowsort label-3992
SELECT 87 AS col1, + COUNT ( * ) * - - 34 / - 31 AS col2
----
87
-1

query I rowsort
SELECT ALL 9 * - ( + 53 )
----
-477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3994
SELECT ( - + CAST( AVG ( + 47 ) AS SIGNED ) ) * + + 23 * ( - MAX( ALL 85 ) ) col1
----
91885

skipif mysql # not compatible
query I rowsort label-3994
SELECT ( - + CAST ( AVG ( + 47 ) AS INTEGER ) ) * + + 23 * ( - MAX ( ALL 85 ) ) col1
----
91885

query II rowsort
SELECT DISTINCT 94, - 43 * - ( - 75 ) * + 23 - 79 AS col0
----
94
-74254

query I rowsort
SELECT ALL 3 - - 93 - - 22
----
118

query II rowsort
SELECT ( NULLIF ( - 4, + 95 ) ) * - + 89 * 99 AS col0, ( + 12 )
----
35244
12

query I rowsort
SELECT 96 + - 88
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT 26 * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT 26 * ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 42 + + + ( + - 17 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + MAX( DISTINCT - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4001
SELECT + MAX ( DISTINCT - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL - MIN( + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL - MIN ( + 26 )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4003
SELECT ALL - MAX( + 55 ) DIV - - 63
----
0

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL - MAX ( + 55 ) / - - 63
----
0

query I rowsort
SELECT ALL 98 col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT ALL - + 65 * - COUNT( - ( + + 75 ) ) * + 82 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - + 65 * - COUNT ( - ( + + 75 ) ) * + 82 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT COUNT( * ) * - 47 * + 96 - + 16
----
-4528

skipif mysql # not compatible
query I rowsort label-4006
SELECT COUNT ( * ) * - 47 * + 96 - + 16
----
-4528

query I rowsort
SELECT DISTINCT - 26 * - 45 + - 16 + - 21 + - ( + - 60 ) + 67 AS col0
----
1260

query I rowsort
SELECT ALL + + 58 * + - 32 + + 23 * - 58 * - 78 * + + 66 AS col0
----
6865576

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT COUNT( * ) AS col1, + 71 * + 71 AS col2
----
1
5041

skipif mysql # not compatible
query II rowsort label-4009
SELECT COUNT ( * ) AS col1, + 71 * + 71 AS col2
----
1
5041

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL + 11 * COUNT( * ) + - 73 * - 55 + + 26 + + - 31 + - 11
----
4010

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL + 11 * COUNT ( * ) + - 73 * - 55 + + 26 + + - 31 + - 11
----
4010

query I rowsort
SELECT - - 60 * + ( - + 87 )
----
-5220

query I rowsort
SELECT DISTINCT + - 15 * - 78 + + 19 + 69
----
1258

query I rowsort
SELECT ALL 15 * - 63 + + + 27
----
-918

query I rowsort
SELECT DISTINCT - 89 * - NULLIF ( 65, + 0 ) + - - 46 AS col0
----
5831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT - 34 * - 16 + + + CAST( + 62 AS SIGNED ) + - 82 * - 56 * - + 17 AS col0
----
-77458

skipif mysql # not compatible
query I rowsort label-4015
SELECT - 34 * - 16 + + + CAST ( + 62 AS INTEGER ) + - 82 * - 56 * - + 17 AS col0
----
-77458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4016
SELECT ALL - COUNT( * ) * - 94 DIV - 94 + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - COUNT ( * ) * - 94 / - 94 + - 66
----
-67

query I rowsort
SELECT ALL - ( + - 93 ) * + - 72 + + 66
----
-6630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT DISTINCT + CASE 49 WHEN + 5 THEN - 79 WHEN 72 THEN - COALESCE ( - 77, - + 36 + COALESCE ( + - CAST( NULL AS SIGNED ), + 83 ) * - 8 * + - 65 / 43 ) ELSE 54 * - 31 END
----
-1674

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT + CASE 49 WHEN + 5 THEN - 79 WHEN 72 THEN - COALESCE ( - 77, - + 36 + COALESCE ( + - CAST ( NULL AS INTEGER ), + 83 ) * - 8 * + - 65 / 43 ) ELSE 54 * - 31 END
----
-1674

query I rowsort
SELECT - 99 * + - ( 13 ) AS col0
----
1287

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4020
SELECT ALL + ( + 66 ) AS col0, CAST( NULL AS SIGNED )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-4020
SELECT ALL + ( + 66 ) AS col0, CAST ( NULL AS INTEGER )
----
66
NULL

query I rowsort
SELECT DISTINCT - 87 - + 58 AS col0
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4022
SELECT ALL - COUNT( * ) * + + ( + MAX( ALL - 44 ) ) DIV - 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - COUNT ( * ) * + + ( + MAX ( ALL - 44 ) ) / - 45 AS col1
----
0

query I rowsort
SELECT ALL 63 - 24 + + 11 AS col2
----
50

query I rowsort
SELECT DISTINCT - ( - - 86 ) * - 93 AS col0
----
7998

query II rowsort
SELECT ALL CASE - 60 WHEN 58 THEN 56 * 68 END AS col2, 45 * - 37 AS col1
----
NULL
-1665

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT ALL NULLIF ( - 18, + NULLIF ( + COUNT( * ), - - COUNT( * ) ) ), - 36 * 78 AS col2
----
-18
-2808

skipif mysql # not compatible
query II rowsort label-4026
SELECT ALL NULLIF ( - 18, + NULLIF ( + COUNT ( * ), - - COUNT ( * ) ) ), - 36 * 78 AS col2
----
-18
-2808

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4027
SELECT ALL 15 DIV CAST( + - 65 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL 15 / CAST ( + - 65 AS INTEGER )
----
0

query II rowsort
SELECT ALL ( - 82 ) col1, - 63
----
-82
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT - CASE WHEN ( + - 51 ) <> NULL THEN - + CAST( NULL AS SIGNED ) * + COALESCE ( - 62, - 71 ) * COUNT( * ) * + COALESCE ( + 63, - 62, - 89 - - - 31 * 65 + + MAX( + + 59 ) - 79 ) + - - COUNT( * ) WHEN NULL IS NULL THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT - CASE WHEN ( + - 51 ) <> NULL THEN - + CAST ( NULL AS INTEGER ) * + COALESCE ( - 62, - 71 ) * COUNT ( * ) * + COALESCE ( + 63, - 62, - 89 - - - 31 * 65 + + MAX ( + + 59 ) - 79 ) + - - COUNT ( * ) WHEN NULL IS NULL THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 68 * - NULLIF ( + 47, + 39 )
----
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4031
SELECT + - CAST( 46 AS SIGNED ) - - - 10
----
-56

skipif mysql # not compatible
query I rowsort label-4031
SELECT + - CAST ( 46 AS INTEGER ) - - - 10
----
-56

query I rowsort
SELECT - + 74 col0
----
-74

query I rowsort
SELECT DISTINCT - 18 col1
----
-18

query I rowsort
SELECT ALL - 27 + 57
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT + MIN( ALL 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT + MIN ( ALL 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL 49 + + CASE + 74 WHEN 70 THEN 24 / + COUNT( * ) + 28 END + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 49 + + CASE + 74 WHEN 70 THEN 24 / + COUNT ( * ) + 28 END + 2
----
NULL

query I rowsort
SELECT + 53 + - 24 AS col2
----
29

query I rowsort
SELECT + ( + 39 ) - - - 78 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4039
SELECT + 67 + - - 88, - CAST( + 59 AS SIGNED ) DIV + - MIN( 54 ) + + + CASE - 43 WHEN + + 14 THEN NULL ELSE + ( - + 3 ) DIV + 53 * - 14 + NULLIF ( - - 12, 27 - - 20 ) END - + + 66 * + + 65 AS col0
----
155
-4277

skipif mysql # not compatible
query II rowsort label-4039
SELECT + 67 + - - 88, - CAST ( + 59 AS INTEGER ) / + - MIN ( 54 ) + + + CASE - 43 WHEN + + 14 THEN NULL ELSE + ( - + 3 ) / + 53 * - 14 + NULLIF ( - - 12, 27 - - 20 ) END - + + 66 * + + 65 AS col0
----
155
-4277

query I rowsort
SELECT + 36 - - 92
----
128

query I rowsort
SELECT + + 50 * - 14
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4042
SELECT ALL + 44 + + NULLIF ( + 56, + 75 + + 27 + + ( + ( + - CAST( NULL AS SIGNED ) ) ) + + 31 * + COUNT( * ) / - 5 ) * 20 + + 41 AS col0
----
1205

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL + 44 + + NULLIF ( + 56, + 75 + + 27 + + ( + ( + - CAST ( NULL AS INTEGER ) ) ) + + 31 * + COUNT ( * ) / - 5 ) * 20 + + 41 AS col0
----
1205

query I rowsort
SELECT ALL - 69 + - 79
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4044
SELECT ALL - 21 DIV 8 * + CASE 34 WHEN - 41 THEN NULL WHEN - 85 * + 5 - 4 + - - COUNT( * ) THEN + + 16 * + 92 ELSE + 53 * + CAST( - 80 AS SIGNED ) END + 56 + 98
----
8634

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - 21 / 8 * + CASE 34 WHEN - 41 THEN NULL WHEN - 85 * + 5 - 4 + - - COUNT ( * ) THEN + + 16 * + 92 ELSE + 53 * + CAST ( - 80 AS INTEGER ) END + 56 + 98
----
8634

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT + 34 DIV + - 71 + 23 + - 73 col2
----
-50

skipif mysql # not compatible
query I rowsort label-4045
SELECT + 34 / + - 71 + 23 + - 73 col2
----
-50

query I rowsort
SELECT ALL + ( + + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4047
SELECT DISTINCT + - CASE + + COUNT( * ) WHEN - 75 DIV + - 67 THEN 97 WHEN 64 THEN + COUNT( * ) END
----
-97

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT + - CASE + + COUNT ( * ) WHEN - 75 / + - 67 THEN 97 WHEN 64 THEN + COUNT ( * ) END
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4048
SELECT + - 31 + - 78, - 38 + COUNT( * ) AS col0
----
-109
-37

skipif mysql # not compatible
query II rowsort label-4048
SELECT + - 31 + - 78, - 38 + COUNT ( * ) AS col0
----
-109
-37

query I rowsort
SELECT ALL - 28 * + 52
----
-1456

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT - 35 DIV 29
----
-1

skipif mysql # not compatible
query I rowsort label-4050
SELECT - 35 / 29
----
-1

query I rowsort
SELECT DISTINCT - 45 * - + 68 + + 82
----
3142

query I rowsort
SELECT - 49 * - COALESCE ( 57, + 83 ) + - - 15 AS col0
----
2808

query I rowsort
SELECT + 82 * - 57 AS col1
----
-4674

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL + COUNT( DISTINCT + 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL + COUNT ( DISTINCT + 53 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT - MIN( + 30 ) DIV - 88 + - 19 * 75 + + 8 AS col2
----
-1417

skipif mysql # not compatible
query I rowsort label-4055
SELECT - MIN ( + 30 ) / - 88 + - 19 * 75 + + 8 AS col2
----
-1417

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT + 9 AS col2, - 51 + + + 94 + MIN( ALL ( + 44 ) )
----
9
87

skipif mysql # not compatible
query II rowsort label-4056
SELECT + 9 AS col2, - 51 + + + 94 + MIN ( ALL ( + 44 ) )
----
9
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4057
SELECT - 76 + - 72 DIV COUNT( * ) col2
----
-148

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 76 + - 72 / COUNT ( * ) col2
----
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT - 34 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 34 / 45 AS col2
----
0

query I rowsort
SELECT DISTINCT 99 * + 33 AS col2
----
3267

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4060
SELECT ALL 29 * - - CAST( 7 AS SIGNED ) - + + 16 col2, - ( + COALESCE ( 82, + 48, + 89 * + 16 * 89 * - - 4 + + 75 ) ) AS col1
----
187
-82

skipif mysql # not compatible
query II rowsort label-4060
SELECT ALL 29 * - - CAST ( 7 AS INTEGER ) - + + 16 col2, - ( + COALESCE ( 82, + 48, + 89 * + 16 * 89 * - - 4 + + 75 ) ) AS col1
----
187
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT + COUNT( DISTINCT - 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + COUNT ( DISTINCT - 99 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + COUNT( * ) + + - NULLIF ( + 2, + 8 * + + 45 + + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-4062
SELECT + COUNT ( * ) + + - NULLIF ( + 2, + 8 * + + 45 + + 69 )
----
-1

query I rowsort
SELECT - ( - + 10 ) - + ( - 36 ) AS col1
----
46

query I rowsort
SELECT ALL + NULLIF ( NULLIF ( - 52, - + 25 ), + + 55 ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4065
SELECT - 98 + + 84 - + - 44 + 43 / + - 84 / + + 35 - + CAST( NULL AS SIGNED ) * - + 63 AS col0, 13 AS col0, + - 81 col1
----
NULL
13
-81

skipif mysql # not compatible
query III rowsort label-4065
SELECT - 98 + + 84 - + - 44 + 43 / + - 84 / + + 35 - + CAST ( NULL AS INTEGER ) * - + 63 AS col0, 13 AS col0, + - 81 col1
----
NULL
13
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT COALESCE ( - MAX( ALL + 7 ), + COUNT( * ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4066
SELECT COALESCE ( - MAX ( ALL + 7 ), + COUNT ( * ) ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT ALL CAST( + + 69 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL CAST ( + + 69 AS INTEGER ) AS col0
----
69

query I rowsort
SELECT + ( - + 59 ) * + - 35 + 94 * + 13 col2
----
3287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT + 50 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT + 50 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL - COUNT( * ) * 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL - COUNT ( * ) * 58 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4071
SELECT ALL + - SUM( DISTINCT + ( - 55 ) ) + - 58 + 96 * + 51 + + - 18 * - 8, - 19 AS col0
----
5037
-19

skipif mysql # not compatible
query II rowsort label-4071
SELECT ALL + - SUM ( DISTINCT + ( - 55 ) ) + - 58 + 96 * + 51 + + - 18 * - 8, - 19 AS col0
----
5037
-19

query I rowsort
SELECT DISTINCT - 34 + + 80 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - MAX( - ( ( 89 ) ) )
----
89

skipif mysql # not compatible
query I rowsort label-4073
SELECT - MAX ( - ( ( 89 ) ) )
----
89

query I rowsort
SELECT - + 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT 99 + - ( + + ( SUM( DISTINCT + - 55 ) ) ) + - 55 * - 51 + - - 25 + ( - CASE + 11 WHEN - 13 * 92 THEN - 61 * + - COUNT( * ) END ) + - 19 - + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT 99 + - ( + + ( SUM ( DISTINCT + - 55 ) ) ) + - 55 * - 51 + - - 25 + ( - CASE + 11 WHEN - 13 * 92 THEN - 61 * + - COUNT ( * ) END ) + - 19 - + - 17
----
NULL

query I rowsort
SELECT ALL - 40 + 78
----
38

query I rowsort
SELECT ALL 26 * 96 - - 60
----
2556

query II rowsort
SELECT 92 + - 77 - 25, + 68 AS col1
----
-10
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT DISTINCT - 32 + - + ( - 36 ), - COALESCE ( - 41, - 29, + - COALESCE ( - COUNT( * ), - + 62 + - - 2 * - 68 ), 95 ) * - + 19 AS col2
----
4
-779

skipif mysql # not compatible
query II rowsort label-4079
SELECT DISTINCT - 32 + - + ( - 36 ), - COALESCE ( - 41, - 29, + - COALESCE ( - COUNT ( * ), - + 62 + - - 2 * - 68 ), 95 ) * - + 19 AS col2
----
4
-779

query I rowsort
SELECT DISTINCT + 21 * + 11 * - + 3
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - SUM( DISTINCT - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4081
SELECT - SUM ( DISTINCT - 62 )
----
62

query I rowsort
SELECT + 37 * - 82 col0
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT COUNT( * ) * + 66
----
66

skipif mysql # not compatible
query I rowsort label-4083
SELECT COUNT ( * ) * + 66
----
66

query I rowsort
SELECT 68 * - 77 * + 44 col2
----
-230384

query I rowsort
SELECT 42 - + + 79
----
-37

query I rowsort
SELECT DISTINCT - 81 col0
----
-81

query I rowsort
SELECT ALL + 51 * ( + 74 ) * + 52
----
196248

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT CASE 4 WHEN - 78 * - SUM( DISTINCT - 10 ) THEN NULL WHEN - - 20 + 51 + + 61 THEN 7 + 30 + 59 END * + 4 * + 63 / - COALESCE ( + - COUNT( * ), - - 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT CASE 4 WHEN - 78 * - SUM ( DISTINCT - 10 ) THEN NULL WHEN - - 20 + 51 + + 61 THEN 7 + 30 + 59 END * + 4 * + 63 / - COALESCE ( + - COUNT ( * ), - - 82 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 42 * + + 98 * - 80
----
-329280

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT DISTINCT 52 DIV + + 28
----
1

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT 52 / + + 28
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4091
SELECT 42 * - 83 + 53 + + - 56 / - 62 / + 40 * CASE - 57 WHEN + + COUNT( * ) THEN + NULLIF ( 51, + 85 ) + + 2 + 57 + + 11 * + COUNT( * ) * + - 9 WHEN - ( + CASE - 27 WHEN COUNT( ALL - 91 ) THEN - 76 + - + 69 WHEN - COUNT( DISTINCT 28 ) THEN - CAST( + + 6 AS SIGNED ) * CAST( + CAST( + + 65 AS SIGNED ) AS DECIMAL ) * + + 90 + - ( - COALESCE ( + MIN( DISTINCT ( + ( + CASE + - 32 WHEN - 76 THEN NULL WHEN - 48 THEN + 14 * + 44 END ) ) ), - 97 * + 31, 39 + 39, 74 + - COUNT( * ) ) ) + 88 END ) + - 83 / 3 THEN NULL ELSE NULL END * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT 42 * - 83 + 53 + + - 56 / - 62 / + 40 * CASE - 57 WHEN + + COUNT ( * ) THEN + NULLIF ( 51, + 85 ) + + 2 + 57 + + 11 * + COUNT ( * ) * + - 9 WHEN - ( + CASE - 27 WHEN COUNT ( ALL - 91 ) THEN - 76 + - + 69 WHEN - COUNT ( DISTINCT 28 ) THEN - CAST ( + + 6 AS INTEGER ) * CAST ( + CAST ( + + 65 AS INTEGER ) AS REAL ) * + + 90 + - ( - COALESCE ( + MIN ( DISTINCT ( + ( + CASE + - 32 WHEN - 76 THEN NULL WHEN - 48 THEN + 14 * + 44 END ) ) ), - 97 * + 31, 39 + 39, 74 + - COUNT ( * ) ) ) + 88 END ) + - 83 / 3 THEN NULL ELSE NULL END * 45 AS col0
----
NULL

query I rowsort
SELECT ALL 86 * + 24
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT COALESCE ( COUNT( * ), - 16 ) * + 73
----
73

skipif mysql # not compatible
query I rowsort label-4093
SELECT COALESCE ( COUNT ( * ), - 16 ) * + 73
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT + CAST( 82 AS SIGNED ) * 70 + - 3
----
5737

skipif mysql # not compatible
query I rowsort label-4094
SELECT + CAST ( 82 AS INTEGER ) * 70 + - 3
----
5737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4095
SELECT 58 * + 17 AS col1, COALESCE ( SUM( + + 77 ), 50, 5 * - CAST( NULL AS SIGNED ) + + 66 - + + CAST( 12 AS SIGNED ) ) + - 49 * + 10 AS col1
----
986
-413

skipif mysql # not compatible
query II rowsort label-4095
SELECT 58 * + 17 AS col1, COALESCE ( SUM ( + + 77 ), 50, 5 * - CAST ( NULL AS INTEGER ) + + 66 - + + CAST ( 12 AS INTEGER ) ) + - 49 * + 10 AS col1
----
986
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL - 79 * COALESCE ( COUNT( ALL + - 76 ), COUNT( * ) + + - 95 + - 69, + - COUNT( * ) ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - 79 * COALESCE ( COUNT ( ALL + - 76 ), COUNT ( * ) + + - 95 + - 69, + - COUNT ( * ) ) col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT - NULLIF ( + 52, - COUNT( * ) * - 7 + 27 + + - 8 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - NULLIF ( + 52, - COUNT ( * ) * - 7 + 27 + + - 8 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL 44 + - MAX( + - 56 ) * + SUM( + 23 )
----
1332

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL 44 + - MAX ( + - 56 ) * + SUM ( + 23 )
----
1332

query I rowsort
SELECT ALL + 80 + - 43 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT - + COUNT( 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-4100
SELECT - + COUNT ( 9 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4101
SELECT + - 50 * - 50 + + + 80 DIV + 3, 72 AS col2
----
2526
72

skipif mysql # not compatible
query II rowsort label-4101
SELECT + - 50 * - 50 + + + 80 / + 3, 72 AS col2
----
2526
72

query I rowsort
SELECT - ( + - 7 ) col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - - CASE + COUNT( * ) WHEN - 50 * - + 6 + 2 THEN + 79 - + 38 WHEN NULLIF ( - 34, - - COUNT( * ) ) + - 57 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT - - CASE + COUNT ( * ) WHEN - 50 * - + 6 + 2 THEN + 79 - + 38 WHEN NULLIF ( - 34, - - COUNT ( * ) ) + - 57 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4104
SELECT - + CAST( + + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4104
SELECT - + CAST ( + + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT + 18 * + + COUNT( * ) + - + 87 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4105
SELECT + 18 * + + COUNT ( * ) + - + 87 AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4106
SELECT - 58 - - 82 + - - 34 + + 33 DIV ( CAST( + - COUNT( * ) AS SIGNED ) ) * - - 28 AS col1
----
-866

skipif mysql # not compatible
query I rowsort label-4106
SELECT - 58 - - 82 + - - 34 + + 33 / ( CAST ( + - COUNT ( * ) AS INTEGER ) ) * - - 28 AS col1
----
-866

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - 85 + - MAX( - NULLIF ( + 55, 91 ) ) * 98
----
5305

skipif mysql # not compatible
query I rowsort label-4107
SELECT - 85 + - MAX ( - NULLIF ( + 55, 91 ) ) * 98
----
5305

query I rowsort
SELECT ALL + 83 - - - 89 - COALESCE ( + 37, - 58 - - - 77 ) * - 75 * - - 5 * + 26 + - + 74 * - 0
----
360744

query I rowsort
SELECT ALL - 3 - - 67 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT 86 * - - CAST( - CAST( + + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4110
SELECT 86 * - - CAST ( - CAST ( + + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT + 65 + + COUNT( * ) + - 67 * ( COALESCE ( + + 61, + COALESCE ( - 50, + 55 ) + - 28 * - 66 ) ) + + 61 * + + 69 * + 23 * - COUNT( * )
----
-100828

skipif mysql # not compatible
query I rowsort label-4111
SELECT + 65 + + COUNT ( * ) + - 67 * ( COALESCE ( + + 61, + COALESCE ( - 50, + 55 ) + - 28 * - 66 ) ) + + 61 * + + 69 * + 23 * - COUNT ( * )
----
-100828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT + 34 - + COUNT( * ) * - ( COALESCE ( + 32, - 68 * + CAST( NULL AS SIGNED ), + - 43 + - 7 ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4112
SELECT + 34 - + COUNT ( * ) * - ( COALESCE ( + 32, - 68 * + CAST ( NULL AS INTEGER ), + - 43 + - 7 ) ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ( - + MIN( DISTINCT COALESCE ( 51, - 60 ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-4113
SELECT ( - + MIN ( DISTINCT COALESCE ( 51, - 60 ) ) )
----
-51

query I rowsort
SELECT ( + 97 ) * - 32 AS col0
----
-3104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT - 21 DIV 10 DIV + COUNT( * ) + + 79
----
77

skipif mysql # not compatible
query I rowsort label-4115
SELECT - 21 / 10 / + COUNT ( * ) + + 79
----
77

query I rowsort
SELECT DISTINCT 5 * 2 AS col0
----
10

query I rowsort
SELECT DISTINCT 81 * - 61 col2
----
-4941

query I rowsort
SELECT ALL + 83 * + - 89
----
-7387

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT SUM( ALL + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4119
SELECT SUM ( ALL + 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT SUM( - 24 ) * + - 75 * + 1
----
1800

skipif mysql # not compatible
query I rowsort label-4120
SELECT SUM ( - 24 ) * + - 75 * + 1
----
1800

query I rowsort
SELECT ALL 80 + - 96
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4122
SELECT DISTINCT + 65 + COUNT( * ) DIV 49 * + CAST( - 21 AS SIGNED ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT + 65 + COUNT ( * ) / 49 * + CAST ( - 21 AS INTEGER ) AS col1
----
65

query II rowsort
SELECT DISTINCT - 44 col2, + 50 AS col1
----
-44
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL COUNT( * ) + - 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL COUNT ( * ) + - 1 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT + MAX( + + 18 ) * + NULLIF ( MAX( DISTINCT - + 20 ), 69 ) + + COUNT( * )
----
-359

skipif mysql # not compatible
query I rowsort label-4125
SELECT + MAX ( + + 18 ) * + NULLIF ( MAX ( DISTINCT - + 20 ), 69 ) + + COUNT ( * )
----
-359

query I rowsort
SELECT ALL 45 + 57 - 89 * + 20
----
-1678

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4127
SELECT 20 * + 60 + - 1 + - CAST( - 20 AS SIGNED ) AS col1, 87 * + 70
----
1219
6090

skipif mysql # not compatible
query II rowsort label-4127
SELECT 20 * + 60 + - 1 + - CAST ( - 20 AS INTEGER ) AS col1, 87 * + 70
----
1219
6090

query I rowsort
SELECT + 6 + + - 84
----
-78

query II rowsort
SELECT 72 + - - 18 - - - 37 + 19 + - 90, + 17 AS col0
----
-18
17

query I rowsort
SELECT ALL 59 + + 13 * - + 40
----
-461

query I rowsort
SELECT + 20 * 82 + - - 66 + + 7 * - 9 * + + 49 AS col0
----
-1381

query I rowsort
SELECT ALL 72 + + - 11
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4133
SELECT + COUNT( * ) * COALESCE ( + 17, 30 - + - CAST( + COUNT( * ) AS SIGNED ) DIV + 17, - 68 ) + - COALESCE ( - 24, + 22 * + + COUNT( * ) * + 93 * + MIN( DISTINCT + - 10 ) - 15 + + 18 - COALESCE ( - 2, + MAX( 76 ), COUNT( * ) ), + 8 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4133
SELECT + COUNT ( * ) * COALESCE ( + 17, 30 - + - CAST ( + COUNT ( * ) AS INTEGER ) / + 17, - 68 ) + - COALESCE ( - 24, + 22 * + + COUNT ( * ) * + 93 * + MIN ( DISTINCT + - 10 ) - 15 + + 18 - COALESCE ( - 2, + MAX ( 76 ), COUNT ( * ) ), + 8 ) AS col0
----
41

query I rowsort
SELECT - + 62 * + 69
----
-4278

query II rowsort
SELECT DISTINCT - 46 + - 21 - - 41 * + - 85 * + 19 AS col2, + 55
----
-66282
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL - COUNT( DISTINCT - ( - 14 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - COUNT ( DISTINCT - ( - 14 ) ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT ALL - - 36 DIV + - 24 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - - 36 / + - 24 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT + + COUNT( * ) + - 81 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4138
SELECT + + COUNT ( * ) + - 81 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + COUNT( * ) - - 38 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + COUNT ( * ) - - 38 AS col0
----
39

query I rowsort
SELECT DISTINCT 43 * + - 23
----
-989

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4141
SELECT - COUNT( * ) AS col1, 28 DIV + NULLIF ( - - 18, 0 ) + - 90
----
-1
-89

skipif mysql # not compatible
query II rowsort label-4141
SELECT - COUNT ( * ) AS col1, 28 / + NULLIF ( - - 18, 0 ) + - 90
----
-1
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT - 92 * COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4142
SELECT - 92 * COUNT ( * ) AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT ALL + CAST( ( - + 16 ) AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL + CAST ( ( - + 16 ) AS INTEGER ) AS col2
----
-16

query I rowsort
SELECT - 5 + 49
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT - COUNT( - - 3 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4145
SELECT - COUNT ( - - 3 ) AS col2
----
-1

query I rowsort
SELECT - 19 + 29
----
10

query I rowsort
SELECT - 28 * - 74 * - 79 * 35
----
-5729080

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT - 32 + - 55 + 85 + + 40 DIV 27 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4148
SELECT - 32 + - 55 + 85 + + 40 / 27 AS col2
----
-1

query I rowsort
SELECT - + 47 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - + MIN( ALL + + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4150
SELECT - + MIN ( ALL + + 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT - + ( - ( 35 ) ) + - 51 + 82 * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-4151
SELECT - + ( - ( 35 ) ) + - 51 + 82 * + COUNT ( * )
----
66

query I rowsort
SELECT ALL + 50 * - + 86 col0
----
-4300

onlyif mysql # aggregate syntax: 
query II rowsort label-4153
SELECT DISTINCT - ( + - 51 ) * + 29 * 95 AS col2, - COUNT( * )
----
140505
-1

skipif mysql # not compatible
query II rowsort label-4153
SELECT DISTINCT - ( + - 51 ) * + 29 * 95 AS col2, - COUNT ( * )
----
140505
-1

query I rowsort
SELECT ALL ( + - 53 )
----
-53

query I rowsort
SELECT ALL - 51 * + 67 * - 34 AS col0
----
116178

query I rowsort
SELECT - 17 * 61
----
-1037

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT + 42 DIV 49 + + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-4157
SELECT + 42 / 49 + + - 45
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT ALL 54 * - ( - 54 ) + + COALESCE ( - + 45, + 22 ) * - ( + + 36 ) + - COUNT( * ) * - CAST( + ( + ( 33 ) ) AS SIGNED ) - - 80
----
4649

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL 54 * - ( - 54 ) + + COALESCE ( - + 45, + 22 ) * - ( + + 36 ) + - COUNT ( * ) * - CAST ( + ( + ( 33 ) ) AS INTEGER ) - - 80
----
4649

query II rowsort
SELECT + 16 col1, + 10 * 12
----
16
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + 75 + - COUNT( * ) + + 16
----
90

skipif mysql # not compatible
query I rowsort label-4160
SELECT + 75 + - COUNT ( * ) + + 16
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL 33 * + - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL 33 * + - COUNT ( * )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT - 39 DIV + + 65
----
0

skipif mysql # not compatible
query I rowsort label-4162
SELECT - 39 / + + 65
----
0

query I rowsort
SELECT ALL + 5 * 6 + 5
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT COALESCE ( - + COALESCE ( - COUNT( * ), - 3 ), + 59 * - - 2 ) AS col2, 88 AS col2
----
1
88

skipif mysql # not compatible
query II rowsort label-4164
SELECT COALESCE ( - + COALESCE ( - COUNT ( * ), - 3 ), + 59 * - - 2 ) AS col2, 88 AS col2
----
1
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT ALL - 55 * + 5 + 24 DIV + + 87 AS col0
----
-275

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - 55 * + 5 + 24 / + + 87 AS col0
----
-275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4166
SELECT NULLIF ( + 80, - CAST( - + CASE - NULLIF ( 8, - 77 / CAST( NULL AS SIGNED ) ) WHEN 36 THEN NULL WHEN - MAX( ALL - + 81 ) THEN - - 53 END AS SIGNED ) + - - 77 * 11 - - 5 )
----
80

skipif mysql # not compatible
query I rowsort label-4166
SELECT NULLIF ( + 80, - CAST ( - + CASE - NULLIF ( 8, - 77 / CAST ( NULL AS INTEGER ) ) WHEN 36 THEN NULL WHEN - MAX ( ALL - + 81 ) THEN - - 53 END AS INTEGER ) + - - 77 * 11 - - 5 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT CASE + 66 WHEN - + 77 THEN NULL ELSE + MAX( ALL - 65 ) END AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4167
SELECT CASE + 66 WHEN - + 77 THEN NULL ELSE + MAX ( ALL - 65 ) END AS col1
----
-65

query I rowsort
SELECT + ( - - 21 ) * + 55 AS col2
----
1155

onlyif mysql # aggregate syntax: 
query II rowsort label-4169
SELECT - + 72 * + 96 * SUM( DISTINCT - 5 ) col2, - 54
----
34560
-54

skipif mysql # not compatible
query II rowsort label-4169
SELECT - + 72 * + 96 * SUM ( DISTINCT - 5 ) col2, - 54
----
34560
-54

query I rowsort
SELECT + 31 * + 18
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL 67 * + COUNT( * ) + - 0 - 71 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL 67 * + COUNT ( * ) + - 0 - 71 AS col2
----
-4

query II rowsort
SELECT ALL + 69 col2, - 88 * - + 83 + 49 + + - 38 AS col1
----
69
7315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4173
SELECT DISTINCT COUNT( - + 57 ) DIV + COALESCE ( - 53, - - 61 * - 68 * + - 52 + - 73 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT COUNT ( - + 57 ) / + COALESCE ( - 53, - - 61 * - 68 * + - 52 + - 73 ) AS col2
----
0

query I rowsort
SELECT ALL - - 63 * + - 80 - + - 60 + + + 36 AS col0
----
-4944

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT COUNT( * ) AS col0, 86
----
1
86

skipif mysql # not compatible
query II rowsort label-4175
SELECT COUNT ( * ) AS col0, 86
----
1
86

query I rowsort
SELECT ALL 6 * + + 35 * 67 AS col2
----
14070

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4177
SELECT + 76 DIV + - 60 AS col1, + 62 * + COUNT( * ) col1
----
-1
62

skipif mysql # not compatible
query II rowsort label-4177
SELECT + 76 / + - 60 AS col1, + 62 * + COUNT ( * ) col1
----
-1
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4178
SELECT ALL - 49 AS col2, CAST( NULL AS SIGNED )
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-4178
SELECT ALL - 49 AS col2, CAST ( NULL AS INTEGER )
----
-49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT - CASE - 83 WHEN - 1 THEN + 32 WHEN + ( + 97 ) / + + 69 + - 33 * + ( + 76 ) * - - 47 + + + 48 THEN ( + CAST( NULL AS SIGNED ) ) + - MIN( 59 ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT - CASE - 83 WHEN - 1 THEN + 32 WHEN + ( + 97 ) / + + 69 + - 33 * + ( + 76 ) * - - 47 + + + 48 THEN ( + CAST ( NULL AS INTEGER ) ) + - MIN ( 59 ) * - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4180
SELECT + 33 + ( - - 35 ) + + 60 + + 95 DIV 54, NULLIF ( - 25, COALESCE ( - NULLIF ( - 15, - + 51 - + 11 ), + + 3 ) * - - 38 + - 20 + COUNT( * ) * + ( + 47 ) DIV - - 82 + + 72 * - 36 * - 34 ) AS col2
----
129
-25

skipif mysql # not compatible
query II rowsort label-4180
SELECT + 33 + ( - - 35 ) + + 60 + + 95 / 54, NULLIF ( - 25, COALESCE ( - NULLIF ( - 15, - + 51 - + 11 ), + + 3 ) * - - 38 + - 20 + COUNT ( * ) * + ( + 47 ) / - - 82 + + 72 * - 36 * - 34 ) AS col2
----
129
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL - 1 * + MAX( ALL + - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - 1 * + MAX ( ALL + - 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4182
SELECT + - COUNT( + 60 ) DIV + + NULLIF ( - - 22, + CASE - - COUNT( * ) WHEN - - 23 THEN NULL WHEN - - ( + CASE + 73 WHEN + 2 THEN - CAST( NULL AS SIGNED ) WHEN + 49 * 18 * + 34 + + + 96 THEN NULL ELSE 91 + - + COUNT( * ) + 66 DIV - COUNT( * ) END ) * - 63 THEN - 23 * 30 ELSE NULL END * - - MIN( ALL + 74 ) + - 4 * - + ( + ( - CAST( NULL AS SIGNED ) ) ) * + 85 * - - 51 ) * 50 - - + 77 - + 7 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4182
SELECT + - COUNT ( + 60 ) / + + NULLIF ( - - 22, + CASE - - COUNT ( * ) WHEN - - 23 THEN NULL WHEN - - ( + CASE + 73 WHEN + 2 THEN - CAST ( NULL AS INTEGER ) WHEN + 49 * 18 * + 34 + + + 96 THEN NULL ELSE 91 + - + COUNT ( * ) + 66 / - COUNT ( * ) END ) * - 63 THEN - 23 * 30 ELSE NULL END * - - MIN ( ALL + 74 ) + - 4 * - + ( + ( - CAST ( NULL AS INTEGER ) ) ) * + 85 * - - 51 ) * 50 - - + 77 - + 7 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + + 20 - NULLIF ( - SUM( ALL - 69 ), COUNT( * ) + - 0 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4183
SELECT + + 20 - NULLIF ( - SUM ( ALL - 69 ), COUNT ( * ) + - 0 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query III rowsort label-4184
SELECT DISTINCT - 89, COUNT( * ) AS col1, + 6 AS col1
----
-89
1
6

skipif mysql # not compatible
query III rowsort label-4184
SELECT DISTINCT - 89, COUNT ( * ) AS col1, + 6 AS col1
----
-89
1
6

query I rowsort
SELECT ALL + 40 * + 69 col1
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT + + 71 + 72 - - COUNT( * ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-4186
SELECT + + 71 + 72 - - COUNT ( * ) AS col1
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT + NULLIF ( - - 27, 89 ) * - ( + 19 ) DIV + COUNT( * )
----
-513

skipif mysql # not compatible
query I rowsort label-4187
SELECT + NULLIF ( - - 27, 89 ) * - ( + 19 ) / + COUNT ( * )
----
-513

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT - ( 25 ) AS col0, COUNT( * )
----
-25
1

skipif mysql # not compatible
query II rowsort label-4188
SELECT - ( 25 ) AS col0, COUNT ( * )
----
-25
1

query I rowsort
SELECT + 76 + 83 + 31 AS col1
----
190

query I rowsort
SELECT - 82 - 50
----
-132

query I rowsort
SELECT - 99 * + + ( - + 17 )
----
1683

query I rowsort
SELECT ALL + 92 + - 62 * + - ( - 1 ) + + 12
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT NULLIF ( + COUNT( * ), - + 36 * 43 + - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT NULLIF ( + COUNT ( * ), - + 36 * 43 + - 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL - 20 * + + MAX( DISTINCT - 10 ) col1
----
200

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - 20 * + + MAX ( DISTINCT - 10 ) col1
----
200

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT DISTINCT + 44 DIV - - 6 + - 71
----
-64

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT + 44 / - - 6 + - 71
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4196
SELECT DISTINCT + 61 DIV - - 93 + 64 + - + 37
----
27

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT + 61 / - - 93 + 64 + - + 37
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT ALL - 20 * 60 DIV + 7
----
-171

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - 20 * 60 / + 7
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT ALL + 28 DIV + 60 + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL + 28 / + 60 + - 26
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT + 49 * + CAST( NULL AS SIGNED ) + 35 + ( + NULLIF ( + 64, 36 ) ) * - COUNT( * ) + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT + 49 * + CAST ( NULL AS INTEGER ) + 35 + ( + NULLIF ( + 64, 36 ) ) * - COUNT ( * ) + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4200
SELECT DISTINCT 74 / + 15 + + COALESCE ( + - 82, + + ( - 95 ), - 41 * - - 16 ) - - + 10 - + - 46 * - CAST( NULL AS SIGNED ) * 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT 74 / + 15 + + COALESCE ( + - 82, + + ( - 95 ), - 41 * - - 16 ) - - + 10 - + - 46 * - CAST ( NULL AS INTEGER ) * 80 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4201
SELECT ALL - CASE 61 WHEN - 59 THEN NULL ELSE - 6 END DIV + 65 * - 61 - 42 AS col0, 87
----
-42
87

skipif mysql # not compatible
query II rowsort label-4201
SELECT ALL - CASE 61 WHEN - 59 THEN NULL ELSE - 6 END / + 65 * - 61 - 42 AS col0, 87
----
-42
87

query I rowsort
SELECT 35 + + 3
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL + + NULLIF ( - - 76, - 51 + + COUNT( * ) * - 97 + + 89 / - COALESCE ( + 59, + 65, + - 2 ) ) - + 78
----
-2

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + + NULLIF ( - - 76, - 51 + + COUNT ( * ) * - 97 + + 89 / - COALESCE ( + 59, + 65, + - 2 ) ) - + 78
----
-2

query II rowsort
SELECT ALL 77 - + - 63 AS col2, + 95
----
140
95

query I rowsort
SELECT 12 * 7 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - 51 + - + CASE - + COUNT( * ) WHEN - 81 - - 93 * - 16 THEN 34 + + - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT - 51 + - + CASE - + COUNT ( * ) WHEN - 81 - - 93 * - 16 THEN 34 + + - 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT - + COUNT( * ) * - 71 - - + SUM( - CASE + 32 WHEN - + 45 THEN NULL WHEN + 98 THEN - 18 END ) * - + 56 + - 98 * - NULLIF ( 2, + 49 ) * - - 28 + - 87, 57 + - CASE - 25 WHEN 35 THEN NULL WHEN + - COALESCE ( - MAX( 26 ), + - COUNT( * ) ) THEN COUNT( * ) + + 10 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4207
SELECT - + COUNT ( * ) * - 71 - - + SUM ( - CASE + 32 WHEN - + 45 THEN NULL WHEN + 98 THEN - 18 END ) * - + 56 + - 98 * - NULLIF ( 2, + 49 ) * - - 28 + - 87, 57 + - CASE - 25 WHEN 35 THEN NULL WHEN + - COALESCE ( - MAX ( 26 ), + - COUNT ( * ) ) THEN COUNT ( * ) + + 10 END
----
NULL
NULL

query I rowsort
SELECT 74 * - - 51 + + - 92
----
3682

query I rowsort
SELECT 4 + 6
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT DISTINCT 61 * + - 32 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT 61 * + - 32 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 53 * 52 + - + 81 + - 93 * 44 * + - 35 AS col2
----
145895

query I rowsort
SELECT DISTINCT ( + - 59 ) col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT ALL COALESCE ( + 13, + 9 * + 60 ) DIV + + 84 + - - 78
----
78

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL COALESCE ( + 13, + 9 * + 60 ) / + + 84 + - - 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL MIN( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL MIN ( 31 )
----
31

query I rowsort
SELECT ALL 50 + - + 36 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4216
SELECT 42 AS col1, + COUNT( * ) + + 19
----
42
20

skipif mysql # not compatible
query II rowsort label-4216
SELECT 42 AS col1, + COUNT ( * ) + + 19
----
42
20

query I rowsort
SELECT 42 * + 40
----
1680

query I rowsort
SELECT ALL 88 * 18
----
1584

query II rowsort
SELECT 50, + 0 AS col0
----
50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT 87 + 2 * + - ( + MIN( + 99 ) ) AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-4220
SELECT 87 + 2 * + - ( + MIN ( + 99 ) ) AS col0
----
-111

query I rowsort
SELECT ALL 81 + - 57 + + + 25 AS col2
----
49

query I rowsort
SELECT DISTINCT - 79 + + 48
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4223
SELECT CASE + - COUNT( * ) WHEN NULLIF ( + 33, - - 1 * - 40 * - AVG ( + - CAST( - - 5 AS SIGNED ) ) ) THEN 76 END + - 77 * - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT CASE + - COUNT ( * ) WHEN NULLIF ( + 33, - - 1 * - 40 * - AVG ( + - CAST ( - - 5 AS INTEGER ) ) ) THEN 76 END + - 77 * - 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT 75 + - CASE - 25 WHEN + COUNT( * ) THEN + 27 WHEN COUNT( * ) THEN 59 ELSE NULL END * + 96 + - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT 75 + - CASE - 25 WHEN + COUNT ( * ) THEN + 27 WHEN COUNT ( * ) THEN 59 ELSE NULL END * + 96 + - + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT 87 * SUM( + 77 ) * + 37 AS col2
----
247863

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT 87 * SUM ( + 77 ) * + 37 AS col2
----
247863

query I rowsort
SELECT DISTINCT - 15 + + 58 AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT ALL + 61 DIV - COALESCE ( 47, - 84 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL + 61 / - COALESCE ( 47, - 84 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4228
SELECT 67 - + 24 DIV + - 23 * - - COUNT( * ) + 88 - - - 43 AS col1, COUNT( * ) DIV - 82 AS col1
----
113
0

skipif mysql # not compatible
query II rowsort label-4228
SELECT 67 - + 24 / + - 23 * - - COUNT ( * ) + 88 - - - 43 AS col1, COUNT ( * ) / - 82 AS col1
----
113
0

query I rowsort
SELECT 9 + - - 17 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT DISTINCT 15 - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT 15 - COUNT ( * )
----
14

query II rowsort
SELECT 74 col0, 18 * + - 92 + 57 * 23 * - 84
----
74
-111780

query I rowsort
SELECT DISTINCT 79 - - 24
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4233
SELECT + + 4, COUNT( * ) AS col0
----
4
1

skipif mysql # not compatible
query II rowsort label-4233
SELECT + + 4, COUNT ( * ) AS col0
----
4
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4234
SELECT ALL - - ( + SUM( DISTINCT + 51 ) ) * + - COUNT( DISTINCT + 53 ) * - 51 + - 1 DIV - 66 AS col2
----
2601

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL - - ( + SUM ( DISTINCT + 51 ) ) * + - COUNT ( DISTINCT + 53 ) * - 51 + - 1 / - 66 AS col2
----
2601

query I rowsort
SELECT DISTINCT + 67 * - 78
----
-5226

query I rowsort
SELECT COALESCE ( + 79, 48 + + 31 ) * + 9 AS col2
----
711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT + + CAST( + 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-4237
SELECT + + CAST ( + 60 AS INTEGER )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4238
SELECT ALL - + 32 AS col0, + 74 - CAST( + + 38 AS SIGNED ) * - COUNT( * ) DIV - - NULLIF ( + 74, 43 * - 2 + - 56 ) * + 33 col1
----
-32
74

skipif mysql # not compatible
query II rowsort label-4238
SELECT ALL - + 32 AS col0, + 74 - CAST ( + + 38 AS INTEGER ) * - COUNT ( * ) / - - NULLIF ( + 74, 43 * - 2 + - 56 ) * + 33 col1
----
-32
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT MAX( ALL - 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4239
SELECT MAX ( ALL - 43 ) AS col0
----
-43

query I rowsort
SELECT ALL - + ( - - 29 )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT DISTINCT - 82 + 70 DIV - 66
----
-83

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT - 82 + 70 / - 66
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4242
SELECT 91 * + + 11 * - 95 * 26 + 88 - + 65 * + + 27 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT 91 * + + 11 * - 95 * 26 + 88 - + 65 * + + 27 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 45 + 65 - - - 60
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT + 74 - + COUNT( 13 ) AS col2, - 6 AS col2
----
73
-6

skipif mysql # not compatible
query II rowsort label-4244
SELECT + 74 - + COUNT ( 13 ) AS col2, - 6 AS col2
----
73
-6

query II rowsort
SELECT + 18 + - 15 * 12 AS col0, - 99 * + 95
----
-162
-9405

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - - COUNT( ALL + 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4246
SELECT - - COUNT ( ALL + 85 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4247
SELECT 51 + + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT 51 + + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 87 * + + 53
----
4611

query I rowsort
SELECT ALL 40 + - 58 AS col1
----
-18

query I rowsort
SELECT 67 + 92 AS col0
----
159

query I rowsort
SELECT DISTINCT 75 + 47 * + 2 AS col1
----
169

query I rowsort
SELECT ALL CASE + 90 WHEN - 15 THEN + 94 ELSE - - 61 END
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4253
SELECT 67 + - COALESCE ( + 3, ( - CAST( - SUM( DISTINCT 44 ) AS SIGNED ) ) ) + + + COALESCE ( - + COALESCE ( COALESCE ( NULLIF ( - CASE + 49 WHEN 64 * + 97 THEN + 1 + - NULLIF ( - 90, - COUNT( * ) ) ELSE NULL END, - - 52 - - COUNT( DISTINCT - 31 ) + 50 * 94 ), 9, + - 96 DIV - 47 - 39 + + 27 + CASE + + 68 WHEN 87 THEN NULL WHEN + + 58 THEN NULL ELSE + - 68 * - 88 + - + 98 + 66 END ), - + CAST( NULL AS SIGNED ) - + ( - 23 ) ), - + COUNT( * ) ) * + COUNT( * ) * - + 51 * ( + 68 ) + + + 85 * - - 79 * + 63 col2
----
454321

skipif mysql # not compatible
query I rowsort label-4253
SELECT 67 + - COALESCE ( + 3, ( - CAST ( - SUM ( DISTINCT 44 ) AS INTEGER ) ) ) + + + COALESCE ( - + COALESCE ( COALESCE ( NULLIF ( - CASE + 49 WHEN 64 * + 97 THEN + 1 + - NULLIF ( - 90, - COUNT ( * ) ) ELSE NULL END, - - 52 - - COUNT ( DISTINCT - 31 ) + 50 * 94 ), 9, + - 96 / - 47 - 39 + + 27 + CASE + + 68 WHEN 87 THEN NULL WHEN + + 58 THEN NULL ELSE + - 68 * - 88 + - + 98 + 66 END ), - + CAST ( NULL AS INTEGER ) - + ( - 23 ) ), - + COUNT ( * ) ) * + COUNT ( * ) * - + 51 * ( + 68 ) + + + 85 * - - 79 * + 63 col2
----
454321

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT COALESCE ( + COUNT( * ), + 96 - + - 75 ) * 85 * 83 * + 99 * - 1 + ( + 65 ) * + COUNT( ( 24 ) )
----
-698380

skipif mysql # not compatible
query I rowsort label-4254
SELECT COALESCE ( + COUNT ( * ), + 96 - + - 75 ) * 85 * 83 * + 99 * - 1 + ( + 65 ) * + COUNT ( ( 24 ) )
----
-698380

query II rowsort
SELECT 76 + + 62 AS col2, 39
----
138
39

query I rowsort
SELECT 12 + - - 79 + + 19 * + 86 AS col2
----
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT COUNT( * ) * + 78
----
78

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT COUNT ( * ) * + 78
----
78

query I rowsort
SELECT + 45 + - 23 col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT + CAST( 48 AS SIGNED ) * 9
----
432

skipif mysql # not compatible
query I rowsort label-4259
SELECT + CAST ( 48 AS INTEGER ) * 9
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4260
SELECT ALL 27 * 95 col1, CAST( NULL AS SIGNED ) + + - 32 AS col0
----
2565
NULL

skipif mysql # not compatible
query II rowsort label-4260
SELECT ALL 27 * 95 col1, CAST ( NULL AS INTEGER ) + + - 32 AS col0
----
2565
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4261
SELECT + 33 + - CAST( NULL AS SIGNED ) + + + 98 + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT + 33 + - CAST ( NULL AS INTEGER ) + + + 98 + + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL + MAX( - - 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + MAX ( - - 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT + 26 * + + MAX( ALL 25 )
----
650

skipif mysql # not compatible
query I rowsort label-4263
SELECT + 26 * + + MAX ( ALL 25 )
----
650

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT + - 85 DIV + 31 + + - 93 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4264
SELECT + - 85 / + 31 + + - 93 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT NULLIF ( 77, COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-4265
SELECT NULLIF ( 77, COUNT ( * ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - - 56 * + 95 + + ( + 36 ) + + MIN( 81 ) + + ( - + 78 )
----
5359

skipif mysql # not compatible
query I rowsort label-4266
SELECT - - 56 * + 95 + + ( + 36 ) + + MIN ( 81 ) + + ( - + 78 )
----
5359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4267
SELECT + COUNT( ALL - + 36 ) * + MIN( DISTINCT 4 ) DIV + + COALESCE ( 59, - ( + - 34 ) * - 40 - + + 62, - + MAX( DISTINCT - 79 ) * + - COUNT( * ) - - - COUNT( * ) ) + 42 + + + 65
----
107

skipif mysql # not compatible
query I rowsort label-4267
SELECT + COUNT ( ALL - + 36 ) * + MIN ( DISTINCT 4 ) / + + COALESCE ( 59, - ( + - 34 ) * - 40 - + + 62, - + MAX ( DISTINCT - 79 ) * + - COUNT ( * ) - - - COUNT ( * ) ) + 42 + + + 65
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + + 8 + - 18 * SUM( + 93 )
----
-1666

skipif mysql # not compatible
query I rowsort label-4268
SELECT + + 8 + - 18 * SUM ( + 93 )
----
-1666

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4269
SELECT ALL + - CAST( - 98 AS SIGNED ) AS col2, 42 * + - 67 AS col2
----
98
-2814

skipif mysql # not compatible
query II rowsort label-4269
SELECT ALL + - CAST ( - 98 AS INTEGER ) AS col2, 42 * + - 67 AS col2
----
98
-2814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4270
SELECT + - 33 + + - COALESCE ( COUNT( * ), - 5 ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT + - 33 + + - COALESCE ( COUNT ( * ), - 5 ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL + COUNT( * ) * - + SUM( + - 99 ) + + + 99 AS col2
----
198

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + COUNT ( * ) * - + SUM ( + - 99 ) + + + 99 AS col2
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4272
SELECT ALL + + SUM( - 91 ), AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + 23 * - 95 * + + AVG ( - 86 ) AS col0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-4272
SELECT ALL + + SUM ( - 91 ), AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 23 * - 95 * + + AVG ( - 86 ) AS col0
----
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - 1 * 94 + - CASE 83 WHEN - - 22 THEN + 64 * - 12 END + COALESCE ( + 32, + 80 ) / + ( - 30 ) - 49 + 81 - - 44 + - 7 * - - COUNT( * ) + - 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT - 1 * 94 + - CASE 83 WHEN - - 22 THEN + 64 * - 12 END + COALESCE ( + 32, + 80 ) / + ( - 30 ) - 49 + 81 - - 44 + - 7 * - - COUNT ( * ) + - 71 col2
----
NULL

query I rowsort
SELECT + COALESCE ( NULLIF ( - - NULLIF ( + 40, 39 ), - NULLIF ( + - 57, - + 44 ) * + - ( - 68 ) ), 45 * + + 36 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + - COUNT( + 43 ) * 46
----
-46

skipif mysql # not compatible
query I rowsort label-4275
SELECT + - COUNT ( + 43 ) * 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL 28 * + + 76 * + COUNT( * ) AS col1
----
2128

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL 28 * + + 76 * + COUNT ( * ) AS col1
----
2128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4277
SELECT MAX( - 38 ) * COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT MAX ( - 38 ) * COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 33 + + 45 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT - CAST( NULL AS SIGNED ) / + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT - CAST ( NULL AS INTEGER ) / + + 81
----
NULL

query I rowsort
SELECT ALL - 61 * + 97
----
-5917

query I rowsort
SELECT - 40 * - 16 * - + 13
----
-8320

onlyif mysql # DIV for integer division: 
query I rowsort label-4282
SELECT DISTINCT - 88 DIV + 57
----
-1

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - 88 / + 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL + 34 - - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL + 34 - - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - COUNT( * ) * + + 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - COUNT ( * ) * + + 19 AS col2
----
-19

query I rowsort
SELECT DISTINCT + 88 * - 72 AS col0
----
-6336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4286
SELECT + 87 DIV - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4286
SELECT + 87 / - COUNT ( * ) AS col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4287
SELECT - 93 / - CAST( NULL AS SIGNED ) / + + 86, + 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-4287
SELECT - 93 / - CAST ( NULL AS INTEGER ) / + + 86, + 95 AS col2
----
NULL
95

query I rowsort
SELECT - 4 * - 19 AS col2
----
76

query I rowsort
SELECT - 69 * 26 col2
----
-1794

query I rowsort
SELECT DISTINCT ( + 25 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT ALL CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - - 76 )
----
76

query I rowsort
SELECT ALL ( - - 68 )
----
68

query I rowsort
SELECT + 3 * + 40 col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT - 73 + 67 DIV + 3 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4295
SELECT - 73 + 67 / + 3 AS col2
----
-51

query I rowsort
SELECT - NULLIF ( 9, 57 ) col1
----
-9

query I rowsort
SELECT + 96 + - 29
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT - 67 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT - 67 / - 70
----
0

query I rowsort
SELECT + 73 + 23
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT ALL + 59 / 33 + ( + CASE CAST( - 43 AS SIGNED ) WHEN + 28 - - CAST( 4 AS SIGNED ) THEN 60 ELSE NULL END - CAST( + 20 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + 59 / 33 + ( + CASE CAST ( - 43 AS INTEGER ) WHEN + 28 - - CAST ( 4 AS INTEGER ) THEN 60 ELSE NULL END - CAST ( + 20 AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT CAST( - 54 AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4301
SELECT CAST ( - 54 AS INTEGER ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT + COUNT( * ) * 82
----
82

skipif mysql # not compatible
query I rowsort label-4302
SELECT + COUNT ( * ) * 82
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT DISTINCT + 49 DIV 91 + + 91
----
91

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT + 49 / 91 + + 91
----
91

query I rowsort
SELECT + ( - 74 ) AS col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT - 1 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-4305
SELECT - 1 / - 73
----
0

query I rowsort
SELECT + 7 * 59
----
413

query I rowsort
SELECT + ( - 97 ) * 99 AS col0
----
-9603

query I rowsort
SELECT ( 0 ) AS col0
----
0

query I rowsort
SELECT + 71 - 35 col1
----
36

query I rowsort
SELECT + ( 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL COUNT( + 66 ) * + 38
----
38

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL COUNT ( + 66 ) * + 38
----
38

query I rowsort
SELECT ALL 5 * 20
----
100

query I rowsort
SELECT + 17 * 7 col2
----
119

query I rowsort
SELECT + 21 * - 90 + + 70 AS col0
----
-1820

query I rowsort
SELECT - 93 - + 82 AS col2
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL MAX( ALL - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL MAX ( ALL - 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT - CAST( 65 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4317
SELECT - CAST ( 65 AS INTEGER ) AS col2
----
-65

query I rowsort
SELECT + 63 + 50
----
113

query I rowsort
SELECT 83 * - 87
----
-7221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT ALL - COUNT( * ) DIV SUM( ALL 45 * 95 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - COUNT ( * ) / SUM ( ALL 45 * 95 ) AS col2
----
0

query I rowsort
SELECT 8 * + 10 col2
----
80

query I rowsort
SELECT 11 + + 9
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT - ( COUNT( * ) ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - ( COUNT ( * ) ) * COUNT ( * )
----
-1

query I rowsort
SELECT 21 + + 34 * 88 AS col1
----
3013

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT ALL 91 DIV 15
----
6

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL 91 / 15
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT 27 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT 27 / 70
----
0

query I rowsort
SELECT 94 + 26
----
120

query I rowsort
SELECT ALL - ( + 30 ) + 48
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4329
SELECT ALL + CAST( 58 AS SIGNED ) + + MIN( - 90 + + 94 ) DIV 28 col1
----
58

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + CAST ( 58 AS INTEGER ) + + MIN ( - 90 + + 94 ) / 28 col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT - SUM( ALL 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-4330
SELECT - SUM ( ALL 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT - 44 + MAX( + 82 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - 44 + MAX ( + 82 ) col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL COUNT( * ) + 1 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL COUNT ( * ) + 1 AS col0
----
2

query I rowsort
SELECT - + 18 * 8 + 30
----
-114

query I rowsort
SELECT + 27 - - 9 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT 56 * 17 + + MAX( DISTINCT + 24 + - 10 ) * + COUNT( * )
----
966

skipif mysql # not compatible
query I rowsort label-4335
SELECT 56 * 17 + + MAX ( DISTINCT + 24 + - 10 ) * + COUNT ( * )
----
966

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT 73 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-4336
SELECT 73 / 54
----
1

query I rowsort
SELECT ALL + 70 - 14 AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT + ( 35 ) DIV - 68 + + 39
----
39

skipif mysql # not compatible
query I rowsort label-4338
SELECT + ( 35 ) / - 68 + + 39
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4339
SELECT ALL - NULLIF ( MAX( 86 ), 95 + + 68 ) DIV - 47 col1
----
1

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL - NULLIF ( MAX ( 86 ), 95 + + 68 ) / - 47 col1
----
1

query I rowsort
SELECT 53 + 27
----
80

query I rowsort
SELECT DISTINCT 46 * - 62 AS col1
----
-2852

query I rowsort
SELECT + - 17 * 20 + 27 col1
----
-313

query I rowsort
SELECT ALL + - 34 - ( 85 + - NULLIF ( + 73, 6 ) ) * 4 col0
----
-82

query I rowsort
SELECT 6 * - 3 + 66 * - 21 AS col1
----
-1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT CAST( NULL AS SIGNED ) + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT CAST ( NULL AS INTEGER ) + - 40 AS col0
----
NULL

query I rowsort
SELECT 77 * - + ( - 57 ) AS col1
----
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT 28 * + 39 * COUNT( * )
----
1092

skipif mysql # not compatible
query I rowsort label-4347
SELECT 28 * + 39 * COUNT ( * )
----
1092

query I rowsort
SELECT ALL 4 * 49 * 67
----
13132

query I rowsort
SELECT 18 * - 21 AS col1
----
-378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4350
SELECT DISTINCT - COUNT( * ) + 63 DIV + 83 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT - COUNT ( * ) + 63 / + 83 AS col1
----
-1

query I rowsort
SELECT DISTINCT 50 * + ( 49 )
----
2450

query I rowsort
SELECT + 78 * - 93 + + 70 AS col2
----
-7184

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT 8 DIV + + 36
----
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT 8 / + + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT 43 + COUNT( * ) + - COALESCE ( MIN( DISTINCT + 41 ) - + 89, 87 ) * COUNT( * ) * - ( + 73 ) col2
----
-3460

skipif mysql # not compatible
query I rowsort label-4354
SELECT 43 + COUNT ( * ) + - COALESCE ( MIN ( DISTINCT + 41 ) - + 89, 87 ) * COUNT ( * ) * - ( + 73 ) col2
----
-3460

query I rowsort
SELECT DISTINCT 3 + + 32 + + 78 AS col1
----
113

query I rowsort
SELECT 56 * 86
----
4816

query I rowsort
SELECT ALL 22 * 27
----
594

query I rowsort
SELECT DISTINCT - 48 + 75 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT DISTINCT COUNT( * ) + ( - 80 ) + 76 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT COUNT ( * ) + ( - 80 ) + 76 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL + 15 + - - CAST( - 98 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + 15 + - - CAST ( - 98 AS INTEGER ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT ALL 49 + 70 + + 70 DIV 12 * - 96 AS col2
----
-361

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL 49 + 70 + + 70 / 12 * - 96 AS col2
----
-361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT DISTINCT + ( + COALESCE ( + COUNT( * ), + COUNT( * ) - + 25 ) ) DIV 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT + ( + COALESCE ( + COUNT ( * ), + COUNT ( * ) - + 25 ) ) / 21 AS col2
----
0

query I rowsort
SELECT + 11 + - 41 * - ( - 11 ) AS col0
----
-440

query I rowsort
SELECT 11 * - 29 * 81
----
-25839

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT MIN( DISTINCT + 65 ) col2
----
65

skipif mysql # not compatible
query I rowsort label-4365
SELECT MIN ( DISTINCT + 65 ) col2
----
65

query I rowsort
SELECT ( - 28 ) + + 91
----
63

query I rowsort
SELECT 88 + + 97 AS col0
----
185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4368
SELECT DISTINCT + 72 * - ( 91 ) + + NULLIF ( + 49 - + CAST( NULL AS DECIMAL ), - 43 * - 46 + - 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT + 72 * - ( 91 ) + + NULLIF ( + 49 - + CAST ( NULL AS REAL ), - 43 * - 46 + - 58 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT ALL + 13 * 17 * + 46 + - 93 - + MIN( ALL + 29 ) AS col1
----
10044

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + 13 * 17 * + 46 + - 93 - + MIN ( ALL + 29 ) AS col1
----
10044

query I rowsort
SELECT DISTINCT - NULLIF ( + - 67, 24 ) col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT - NULLIF ( + 17, CASE 6 WHEN 33 + MAX( 48 ) THEN COUNT( * ) END * ( 73 ) + + 53 * 84 ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-4371
SELECT - NULLIF ( + 17, CASE 6 WHEN 33 + MAX ( 48 ) THEN COUNT ( * ) END * ( 73 ) + + 53 * 84 ) col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT - NULLIF ( 97, 22 * COUNT( * ) ) * 54
----
-5238

skipif mysql # not compatible
query I rowsort label-4372
SELECT - NULLIF ( 97, 22 * COUNT ( * ) ) * 54
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT + 46 * - ( - COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-4373
SELECT + 46 * - ( - COUNT ( * ) )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4374
SELECT DISTINCT + COALESCE ( - COUNT( * ), + CAST( - 2 AS SIGNED ), ( - 78 ) ) * 99
----
-99

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + CAST ( - 2 AS INTEGER ), ( - 78 ) ) * 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL NULLIF ( CASE 19 WHEN - 20 THEN NULL ELSE NULLIF ( 5, SUM( ALL - 89 ) ) END, 45 * 0 ) + 54 col0
----
59

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL NULLIF ( CASE 19 WHEN - 20 THEN NULL ELSE NULLIF ( 5, SUM ( ALL - 89 ) ) END, 45 * 0 ) + 54 col0
----
59

query I rowsort
SELECT - 10 * - 69 AS col2
----
690

query I rowsort
SELECT ALL + 39 * - + 41 AS col2
----
-1599

query I rowsort
SELECT ALL 98 + + 7 - - 87
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT AVG ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL - 67 * + - MIN( DISTINCT - + 89 ) AS col2
----
-5963

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - 67 * + - MIN ( DISTINCT - + 89 ) AS col2
----
-5963

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4381
SELECT ALL + COALESCE ( + 92, + + 70 * - 84 + - COALESCE ( SUM( 28 ) - 14, + SUM( ALL + 41 ) ), - 54 + 51 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + COALESCE ( + 92, + + 70 * - 84 + - COALESCE ( SUM ( 28 ) - 14, + SUM ( ALL + 41 ) ), - 54 + 51 ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 80 - - 92 * 89 + 52 col2
----
8320

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT 76 * + COUNT( * ) - - ( - 29 ) col0
----
47

skipif mysql # not compatible
query I rowsort label-4383
SELECT 76 * + COUNT ( * ) - - ( - 29 ) col0
----
47

query I rowsort
SELECT ALL 62 + + 1 AS col0
----
63

query I rowsort
SELECT - COALESCE ( - 25, - 90 * - 68 + - 1 )
----
25

query II rowsort
SELECT ALL 87 AS col1, 9 AS col0
----
87
9

query I rowsort
SELECT - NULLIF ( + 69, + - 93 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + COUNT( ALL - ( 55 ) ) + - 0 * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4388
SELECT + COUNT ( ALL - ( 55 ) ) + - 0 * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL - 5 + - COUNT( * ) + + 26 * + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - 5 + - COUNT ( * ) + + 26 * + COUNT ( * )
----
20

query I rowsort
SELECT - - ( 98 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT - + CAST( 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-4391
SELECT - + CAST ( 91 AS INTEGER )
----
-91

query I rowsort
SELECT DISTINCT 79 - + + 19 col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL MIN( DISTINCT - + 70 ) * - 42 AS col1
----
2940

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL MIN ( DISTINCT - + 70 ) * - 42 AS col1
----
2940

query II rowsort
SELECT - 12 AS col2, 53 + + 73 + + 99
----
-12
225

query I rowsort
SELECT DISTINCT 40 * 53 AS col0
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL MIN( ( - - 57 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL MIN ( ( - - 57 ) ) AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT ALL + 62 DIV 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL + 62 / 98 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT ALL - ( - 87 ) DIV + - 33
----
-2

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - ( - 87 ) / + - 33
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT - - 49 * 93 * - - CAST( - 85 AS SIGNED ) + + COUNT( * )
----
-387344

skipif mysql # not compatible
query I rowsort label-4399
SELECT - - 49 * 93 * - - CAST ( - 85 AS INTEGER ) + + COUNT ( * )
----
-387344

query I rowsort
SELECT ALL + 16 * 70 AS col1
----
1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT + CAST( NULL AS SIGNED ) / SUM( - + 12 ) * 30 - + ( NULLIF ( - COUNT( * ), 0 + + 19 * + 73 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT + CAST ( NULL AS INTEGER ) / SUM ( - + 12 ) * 30 - + ( NULLIF ( - COUNT ( * ), 0 + + 19 * + 73 ) ) AS col1
----
NULL

query I rowsort
SELECT - 46 * + 5
----
-230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4403
SELECT + MIN( + 21 ) DIV - - 55 + + 65 * CASE 29 WHEN - CAST( NULL AS SIGNED ) THEN 10 ELSE + 82 END AS col0
----
5330

skipif mysql # not compatible
query I rowsort label-4403
SELECT + MIN ( + 21 ) / - - 55 + + 65 * CASE 29 WHEN - CAST ( NULL AS INTEGER ) THEN 10 ELSE + 82 END AS col0
----
5330

query I rowsort
SELECT DISTINCT + ( + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL 40 * + - 74 * 57 * - + COUNT( * )
----
168720

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL 40 * + - 74 * 57 * - + COUNT ( * )
----
168720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT 44 * + 88 / - 88 + - CAST( NULL AS SIGNED ) * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT 44 * + 88 / - 88 + - CAST ( NULL AS INTEGER ) * 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT + MIN( DISTINCT + 66 ) * + - 32 * 28 col0
----
-59136

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + MIN ( DISTINCT + 66 ) * + - 32 * 28 col0
----
-59136

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT - 98 * - COUNT( * ) + - 52 col2
----
46

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - 98 * - COUNT ( * ) + - 52 col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT ALL + CAST( - 88 AS SIGNED ) * - + 6 + + - 62 * 6 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + CAST ( - 88 AS INTEGER ) * - + 6 + + - 62 * 6 AS col1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT NULLIF ( CAST( - 56 AS SIGNED ), + + 27 - 41 )
----
-56

skipif mysql # not compatible
query I rowsort label-4410
SELECT NULLIF ( CAST ( - 56 AS INTEGER ), + + 27 - 41 )
----
-56

query I rowsort
SELECT - 51 * - + 33 * - 93 * + + ( NULLIF ( - ( - 53 ), 3 ) ) AS col2
----
-8295507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT ALL + 49 * - 55 + + CAST( NULL AS SIGNED ) + - + CASE WHEN ( + COUNT( 19 ) ) IS NULL THEN - MAX( 71 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL + 49 * - 55 + + CAST ( NULL AS INTEGER ) + - + CASE WHEN ( + COUNT ( 19 ) ) IS NULL THEN - MAX ( 71 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL + MIN( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL + MIN ( - 61 )
----
-61

query I rowsort
SELECT ALL 45 * - - 4 + - 92 + + 22
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4415
SELECT ALL + 9 DIV + - NULLIF ( + 58, - MAX( ALL 88 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + 9 / + - NULLIF ( + 58, - MAX ( ALL 88 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 57 * + 30 * + - 51 * + - 57 + 51 AS col1
----
4971021

query I rowsort
SELECT - + 35 - 51 col0
----
-86

query I rowsort
SELECT + 71 * - ( - - NULLIF ( + + 90, + ( + 29 ) ) )
----
-6390

query I rowsort
SELECT ALL - 65 * - 54
----
3510

query I rowsort
SELECT + 84 * - + 12
----
-1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT ( + CAST( + 49 AS SIGNED ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4422
SELECT ( + CAST ( + 49 AS INTEGER ) ) AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT + + CAST( NULL AS SIGNED ) + + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT + + CAST ( NULL AS INTEGER ) + + + 38
----
NULL

query I rowsort
SELECT - 37 * - 72 AS col1
----
2664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4425
SELECT + - 63 * + COALESCE ( - COUNT( * ), 64 + + MAX( 65 + - 64 DIV + 57 ), COUNT( * ) ) - - 42 * 25 AS col2
----
1113

skipif mysql # not compatible
query I rowsort label-4425
SELECT + - 63 * + COALESCE ( - COUNT ( * ), 64 + + MAX ( 65 + - 64 / + 57 ), COUNT ( * ) ) - - 42 * 25 AS col2
----
1113

query I rowsort
SELECT DISTINCT - + 90 - 74 AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + - NULLIF ( - 76, 45 ) - 72 + 2 * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4427
SELECT + - NULLIF ( - 76, 45 ) - 72 + 2 * - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL + 33 * - COUNT( ALL - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + 33 * - COUNT ( ALL - 33 )
----
-33

query I rowsort
SELECT NULLIF ( + 49, + AVG ( - 48 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT 30 * + SUM( ALL - - 40 ) AS col1
----
1200

skipif mysql # not compatible
query I rowsort label-4430
SELECT 30 * + SUM ( ALL - - 40 ) AS col1
----
1200

query I rowsort
SELECT - 23 + - + 20
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT NULLIF ( 31, - 87 - NULLIF ( 44, + COUNT( * ) ) ) + 30
----
61

skipif mysql # not compatible
query I rowsort label-4432
SELECT NULLIF ( 31, - 87 - NULLIF ( 44, + COUNT ( * ) ) ) + 30
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL ( - 30 ) + COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL ( - 30 ) + COUNT ( * ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT CAST( NULL AS SIGNED ) * + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT CAST ( NULL AS INTEGER ) * + 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4435
SELECT ALL COUNT( * ) + + + COUNT( * ) * - - 6 DIV - - 81 * 35
----
1

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL COUNT ( * ) + + + COUNT ( * ) * - - 6 / - - 81 * 35
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4436
SELECT ALL - ( + + 78 ) DIV - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL - ( + + 78 ) / - COUNT ( * )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT 21 DIV - + 30
----
0

skipif mysql # not compatible
query I rowsort label-4437
SELECT 21 / - + 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4438
SELECT 27 * COUNT( * ) DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-4438
SELECT 27 * COUNT ( * ) / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT COUNT( * ) + + 81 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4439
SELECT COUNT ( * ) + + 81 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4440
SELECT + 61, 83 * COUNT( * ) AS col2
----
61
83

skipif mysql # not compatible
query II rowsort label-4440
SELECT + 61, 83 * COUNT ( * ) AS col2
----
61
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT 17 * - CASE - 77 WHEN + + 83 THEN - CASE WHEN 4 IN ( - 47 ) THEN NULL WHEN NOT NULL < 16 * - 73 THEN AVG ( + ( + 42 ) ) - 72 END + COUNT( * ) END * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT 17 * - CASE - 77 WHEN + + 83 THEN - CASE WHEN 4 IN ( - 47 ) THEN NULL WHEN NOT NULL < 16 * - 73 THEN AVG ( + ( + 42 ) ) - 72 END + COUNT ( * ) END * 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT DISTINCT 92 + - - 90 + + + 81 AS col2, COUNT( * ) - + + 35 AS col2
----
263
-34

skipif mysql # not compatible
query II rowsort label-4442
SELECT DISTINCT 92 + - - 90 + + + 81 AS col2, COUNT ( * ) - + + 35 AS col2
----
263
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT 13 * - ( + + COUNT( ALL 71 ) ) - - 77 * - 58
----
-4479

skipif mysql # not compatible
query I rowsort label-4443
SELECT 13 * - ( + + COUNT ( ALL 71 ) ) - - 77 * - 58
----
-4479

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT ( + + COUNT( * ) ) * + 46 + + 20
----
66

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT ( + + COUNT ( * ) ) * + 46 + + 20
----
66

query II rowsort
SELECT 8 AS col1, - ( + 89 ) + + + 63 col2
----
8
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4446
SELECT DISTINCT - 20 AS col0, 31 + + MIN( ALL CAST( NULL AS SIGNED ) ) AS col0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-4446
SELECT DISTINCT - 20 AS col0, 31 + + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
-20
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4447
SELECT - ( + 75 ) + + COUNT( * ) - + 56 DIV 15
----
-77

skipif mysql # not compatible
query I rowsort label-4447
SELECT - ( + 75 ) + + COUNT ( * ) - + 56 / 15
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4448
SELECT ALL + 61, 91 DIV + - NULLIF ( - - 98, + 56 ) AS col0
----
61
0

skipif mysql # not compatible
query II rowsort label-4448
SELECT ALL + 61, 91 / + - NULLIF ( - - 98, + 56 ) AS col0
----
61
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT 4 * + 61 + + - MAX( 59 )
----
185

skipif mysql # not compatible
query I rowsort label-4449
SELECT 4 * + 61 + + - MAX ( 59 )
----
185

query I rowsort
SELECT - 12 + + 51
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + 0 * MAX( DISTINCT + 40 ) - - 50 col0
----
50

skipif mysql # not compatible
query I rowsort label-4451
SELECT + 0 * MAX ( DISTINCT + 40 ) - - 50 col0
----
50

query I rowsort
SELECT + CASE 86 WHEN + 26 THEN - + 79 - + 9 ELSE 27 END
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT - - CAST( ( + COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4453
SELECT - - CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT - NULLIF ( 73, - 10 ) AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4455
SELECT 97 DIV 6 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4455
SELECT 97 / 6 AS col2
----
16

query I rowsort
SELECT ALL ( + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT + COUNT( * ) + - ( 95 ) + + 74 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4457
SELECT + COUNT ( * ) + - ( 95 ) + + 74 AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT DISTINCT - 84 DIV 84 + + COALESCE ( CASE 48 WHEN 90 * 5 THEN + 29 + 60 WHEN 56 THEN NULL ELSE NULL END, - 83 DIV - 21 )
----
2

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - 84 / 84 + + COALESCE ( CASE 48 WHEN 90 * 5 THEN + 29 + 60 WHEN 56 THEN NULL ELSE NULL END, - 83 / - 21 )
----
2

query I rowsort
SELECT + 62 + - + NULLIF ( - + 59, + + 94 ) + + - 8
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT 53 + + 91 + - 95 * + 56 * + - COALESCE ( + 5, - CAST( 14 AS SIGNED ) * + 53 ) + + COUNT( * )
----
26745

skipif mysql # not compatible
query I rowsort label-4460
SELECT 53 + + 91 + - 95 * + 56 * + - COALESCE ( + 5, - CAST ( 14 AS INTEGER ) * + 53 ) + + COUNT ( * )
----
26745

query II rowsort
SELECT - + 12 AS col2, - 9 * - 39 + + COALESCE ( + - 77, - 59 + 88, 58, 87 ) AS col2
----
-12
274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4462
SELECT + CAST( NULL AS SIGNED ) / + - ( - COUNT( * ) ) - - 6 + - CAST( NULL AS SIGNED ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT + CAST ( NULL AS INTEGER ) / + - ( - COUNT ( * ) ) - - 6 + - CAST ( NULL AS INTEGER ) + - 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT CAST( NULL AS SIGNED ) * - 54 + + 10 + ( - 77 ) * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT CAST ( NULL AS INTEGER ) * - 54 + + 10 + ( - 77 ) * + 12 AS col2
----
NULL

query I rowsort
SELECT - 11 + + 57 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT 76 - + CASE + - MAX( ALL - 58 ) WHEN + 24 THEN 16 WHEN 42 * + 71 THEN NULL ELSE NULL END + COUNT( * ) * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT 76 - + CASE + - MAX ( ALL - 58 ) WHEN + 24 THEN 16 WHEN 42 * + 71 THEN NULL ELSE NULL END + COUNT ( * ) * + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT 2 + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4466
SELECT 2 + COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4467
SELECT DISTINCT - 98 + - 5 + - + 64 * + + 35 col2, 11 * - COUNT( * )
----
-2343
-11

skipif mysql # not compatible
query II rowsort label-4467
SELECT DISTINCT - 98 + - 5 + - + 64 * + + 35 col2, 11 * - COUNT ( * )
----
-2343
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT 92 + COUNT( * ) * 1
----
93

skipif mysql # not compatible
query I rowsort label-4468
SELECT 92 + COUNT ( * ) * 1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4469
SELECT - 63 DIV - 4 - ( - + 73 ) - 63 * - COUNT( * ) AS col1
----
151

skipif mysql # not compatible
query I rowsort label-4469
SELECT - 63 / - 4 - ( - + 73 ) - 63 * - COUNT ( * ) AS col1
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4470
SELECT 81 * + 72 + - CASE 82 WHEN + + 51 THEN + 90 * COUNT( * ) WHEN - COALESCE ( 61, AVG ( + 17 ) ) + CAST( - 58 AS SIGNED ) THEN NULL ELSE 95 * + 63 END * - 42 AS col1
----
257202

skipif mysql # not compatible
query I rowsort label-4470
SELECT 81 * + 72 + - CASE 82 WHEN + + 51 THEN + 90 * COUNT ( * ) WHEN - COALESCE ( 61, AVG ( + 17 ) ) + CAST ( - 58 AS INTEGER ) THEN NULL ELSE 95 * + 63 END * - 42 AS col1
----
257202

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT 37 - - 47 * - SUM( - + 41 ) * 85 + + + COALESCE ( + COUNT( * ), 71 * COALESCE ( 1, 10, + 2 ), + 28 )
----
163833

skipif mysql # not compatible
query I rowsort label-4471
SELECT 37 - - 47 * - SUM ( - + 41 ) * 85 + + + COALESCE ( + COUNT ( * ), 71 * COALESCE ( 1, 10, + 2 ), + 28 )
----
163833

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - CASE 77 WHEN 50 THEN - + 27 END * + NULLIF ( - - 35, 6 ) * ( + ( + COUNT( * ) ) * - 89 + - ( ( + 95 ) ) ) + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT - CASE 77 WHEN 50 THEN - + 27 END * + NULLIF ( - - 35, 6 ) * ( + ( + COUNT ( * ) ) * - 89 + - ( ( + 95 ) ) ) + - 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT ALL 39 - - COUNT( * ) DIV 85 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL 39 - - COUNT ( * ) / 85 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( 14 ) AS col0
----
-14

query III rowsort
SELECT DISTINCT - 75 col0, - 88 col1, 85 AS col1
----
-75
-88
85

query II rowsort
SELECT ALL - 81, 78 + + + 91 AS col2
----
-81
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + MIN( DISTINCT - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4478
SELECT + MIN ( DISTINCT - 27 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT 55 AS col2, COUNT( * ) + 93 col2
----
55
94

skipif mysql # not compatible
query II rowsort label-4479
SELECT 55 AS col2, COUNT ( * ) + 93 col2
----
55
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT + SUM( ALL 33 )
----
33

skipif mysql # not compatible
query I rowsort label-4480
SELECT + SUM ( ALL 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT SUM( DISTINCT + 89 ) + + 93 + + 27 + ( - 81 ) * + 23 AS col0
----
-1654

skipif mysql # not compatible
query I rowsort label-4481
SELECT SUM ( DISTINCT + 89 ) + + 93 + + 27 + ( - 81 ) * + 23 AS col0
----
-1654

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4482
SELECT CAST( + 26 AS SIGNED ) * 26 + + NULLIF ( + CAST( - 11 AS SIGNED ), CAST( + 86 AS DECIMAL ) * + 36 - + 66 ) AS col2
----
665

skipif mysql # not compatible
query I rowsort label-4482
SELECT CAST ( + 26 AS INTEGER ) * 26 + + NULLIF ( + CAST ( - 11 AS INTEGER ), CAST ( + 86 AS REAL ) * + 36 - + 66 ) AS col2
----
665

query I rowsort
SELECT 32 + - + 96 + - 73 AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT COUNT( * ) * 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4484
SELECT COUNT ( * ) * 95 AS col1
----
95

query I rowsort
SELECT DISTINCT 45 * - 71 AS col0
----
-3195

query I rowsort
SELECT ALL 89 * 42 + 26
----
3764

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4487
SELECT - 30, CAST( - + 98 AS SIGNED ) AS col0
----
-30
-98

skipif mysql # not compatible
query II rowsort label-4487
SELECT - 30, CAST ( - + 98 AS INTEGER ) AS col0
----
-30
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT + 55 * ( - + COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT + 55 * ( - + COUNT ( * ) )
----
-55

query II rowsort
SELECT ALL - 1, ( 12 ) - + + ( - 54 ) col0
----
-1
66

query II rowsort
SELECT DISTINCT - 60 AS col1, + 67
----
-60
67

query I rowsort
SELECT 91 - + 13
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL - CASE ( - COUNT( DISTINCT 99 ) ) WHEN + + 58 THEN NULL ELSE 73 END
----
-73

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL - CASE ( - COUNT ( DISTINCT 99 ) ) WHEN + + 58 THEN NULL ELSE 73 END
----
-73

query I rowsort
SELECT + + 0 * - - 2 + 98 * - 31 * + 88 col0
----
-267344

query I rowsort
SELECT + COALESCE ( + + 50, - 57 ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT - + 61 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT - + 61 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT - CAST( + COUNT( * ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4496
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) col0
----
-1

query II rowsort
SELECT - 38 AS col2, 63 AS col0
----
-38
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT + 12 + + 58 + + 6 + + 71 + 62 + 0 * NULLIF ( + COUNT( ALL + 68 ), - 60 + 79 / + NULLIF ( - 96, - 68 ) ) * 29 AS col2
----
209

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT + 12 + + 58 + + 6 + + 71 + 62 + 0 * NULLIF ( + COUNT ( ALL + 68 ), - 60 + 79 / + NULLIF ( - 96, - 68 ) ) * 29 AS col2
----
209

query I rowsort
SELECT - 62 - - 50 + - 42
----
-54

query II rowsort
SELECT ALL - 90 * + 80 AS col0, 42
----
-7200
42

query II rowsort
SELECT 47, + 9 AS col0
----
47
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL - 12 + - - COUNT( * ) + + 36 * + 73 + + 3
----
2620

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - 12 + - - COUNT ( * ) + + 36 * + 73 + + 3
----
2620

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4503
SELECT ALL + MAX( + - 45 ) + COUNT( * ) * - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0, 7 AS col1
----
-45
7

skipif mysql # not compatible
query II rowsort label-4503
SELECT ALL + MAX ( + - 45 ) + COUNT ( * ) * - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) AS col0, 7 AS col1
----
-45
7

query I rowsort
SELECT - 64 * 69 AS col0
----
-4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT ALL COALESCE ( + 34, + 1 + 48 DIV COUNT( * ) + + 82 + 96 )
----
34

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL COALESCE ( + 34, + 1 + 48 / COUNT ( * ) + + 82 + 96 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4506
SELECT ALL + COUNT( * ) DIV + 93 AS col1, - COUNT( * ) col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-4506
SELECT ALL + COUNT ( * ) / + 93 AS col1, - COUNT ( * ) col1
----
0
-1

query I rowsort
SELECT ( 43 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4508
SELECT ALL + CASE + 67 WHEN + CAST( NULL AS SIGNED ) THEN + + 72 WHEN + - COUNT( * ) * - MAX( ALL - + 96 ) - 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + CASE + 67 WHEN + CAST ( NULL AS INTEGER ) THEN + + 72 WHEN + - COUNT ( * ) * - MAX ( ALL - + 96 ) - 7 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT 50 * + + COUNT( * ) - + COUNT( ALL ( - 58 ) ) + + + ( COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-4509
SELECT 50 * + + COUNT ( * ) - + COUNT ( ALL ( - 58 ) ) + + + ( COUNT ( * ) )
----
50

query II rowsort
SELECT + 91 * 88 AS col2, - 63
----
8008
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT - COUNT( ALL - 72 ) + ( - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4511
SELECT - COUNT ( ALL - 72 ) + ( - COUNT ( * ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT + CASE + 46 WHEN + NULLIF ( + COUNT( * ), 31 ) THEN NULL ELSE + CASE AVG ( DISTINCT 23 ) WHEN 62 THEN ( 15 ) * 46 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT + CASE + 46 WHEN + NULLIF ( + COUNT ( * ), 31 ) THEN NULL ELSE + CASE AVG ( DISTINCT 23 ) WHEN 62 THEN ( 15 ) * 46 END END AS col0
----
NULL

query I rowsort
SELECT ALL 32 * + 22 AS col0
----
704

query I rowsort
SELECT CASE + 64 WHEN - 63 THEN + 31 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + MIN( ALL 81 ) * - 44 AS col2
----
-3564

skipif mysql # not compatible
query I rowsort label-4515
SELECT + MIN ( ALL 81 ) * - 44 AS col2
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT + 17 * + - ( - 48 ) * - + 43 - + COALESCE ( COUNT( * ), 66 * 85 ) * 29 - COUNT( * ) AS col0
----
-35118

skipif mysql # not compatible
query I rowsort label-4516
SELECT + 17 * + - ( - 48 ) * - + 43 - + COALESCE ( COUNT ( * ), 66 * 85 ) * 29 - COUNT ( * ) AS col0
----
-35118

query I rowsort
SELECT ALL - + 46 * + + 48 AS col2
----
-2208

query I rowsort
SELECT DISTINCT + ( - 83 ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT + - 90 * + 12 * + 60 + - NULLIF ( CASE - 97 WHEN ( NULLIF ( NULLIF ( 71, 24 ), - 0 ) ) THEN + 62 / 43 WHEN NULLIF ( + 46, 20 + CASE + CAST( NULL AS SIGNED ) - + 86 * 24 WHEN 20 THEN 71 * - NULLIF ( + 39, 25 ) + 93 END * COUNT( * ) ) * + 52 THEN NULL END, 61 * + CAST( 74 * 29 AS SIGNED ) + 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT + - 90 * + 12 * + 60 + - NULLIF ( CASE - 97 WHEN ( NULLIF ( NULLIF ( 71, 24 ), - 0 ) ) THEN + 62 / 43 WHEN NULLIF ( + 46, 20 + CASE + CAST ( NULL AS INTEGER ) - + 86 * 24 WHEN 20 THEN 71 * - NULLIF ( + 39, 25 ) + 93 END * COUNT ( * ) ) * + 52 THEN NULL END, 61 * + CAST ( 74 * 29 AS INTEGER ) + 17 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 2 + 42 / - AVG ( - - 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 2 + 42 / - AVG ( - - 75 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT + + MIN( DISTINCT - - 90 ) * + 32 + - 49 DIV - - 88 AS col2
----
2880

skipif mysql # not compatible
query I rowsort label-4521
SELECT + + MIN ( DISTINCT - - 90 ) * + 32 + - 49 / - - 88 AS col2
----
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4522
SELECT + + 35 * - 88 + + COALESCE ( CASE 99 WHEN - ( + 70 ) + 28 THEN NULL ELSE + 56 * NULLIF ( + 77, 75 + 60 ) END, 0 + 16, - COUNT( * ) ) + - 51 DIV - COUNT( * )
----
1283

skipif mysql # not compatible
query I rowsort label-4522
SELECT + + 35 * - 88 + + COALESCE ( CASE 99 WHEN - ( + 70 ) + 28 THEN NULL ELSE + 56 * NULLIF ( + 77, 75 + 60 ) END, 0 + 16, - COUNT ( * ) ) + - 51 / - COUNT ( * )
----
1283

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + NULLIF ( - COUNT( * ), + + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4523
SELECT + NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT + + 71 + - + 47 - 87
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - COALESCE ( - 36, - + ( - 56 ) ) * 56 * CASE - 16 WHEN - SUM( DISTINCT 66 ) THEN - 38 + + 48 ELSE NULL END - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT - COALESCE ( - 36, - + ( - 56 ) ) * 56 * CASE - 16 WHEN - SUM ( DISTINCT 66 ) THEN - 38 + + 48 ELSE NULL END - + 77
----
NULL

query I rowsort
SELECT + - 96 + - 74 + + 45
----
-125

query I rowsort
SELECT - 80 - 58 * + 46 AS col0
----
-2748

query I rowsort
SELECT ALL ( - 81 ) + - - 16
----
-65

query I rowsort
SELECT + 33 + + 80 AS col2
----
113

query I rowsort
SELECT ALL + 8 + - - 9
----
17

query I rowsort
SELECT ALL - 50 + 71 * 99 AS col1
----
6979

query I rowsort
SELECT DISTINCT 11 * 47
----
517

query I rowsort
SELECT + 76 + 52 AS col2
----
128

query I rowsort
SELECT - 40 + + 67 + + 43 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT DISTINCT CASE 78 WHEN 96 THEN - - 55 * - MIN( - ( + - ( - 24 ) ) ) * AVG ( 84 ) WHEN - 34 THEN 63 + - 82 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT CASE 78 WHEN 96 THEN - - 55 * - MIN ( - ( + - ( - 24 ) ) ) * AVG ( 84 ) WHEN - 34 THEN 63 + - 82 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( + - 92, 98 )
----
-92

query I rowsort
SELECT - 4 * 73
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL SUM( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL SUM ( 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4539
SELECT DISTINCT COUNT( * ) AS col0, - COALESCE ( - COUNT( * ), + 27 ) / - + CAST( NULL AS DECIMAL ) col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4539
SELECT DISTINCT COUNT ( * ) AS col0, - COALESCE ( - COUNT ( * ), + 27 ) / - + CAST ( NULL AS REAL ) col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL SUM( 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL SUM ( 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT - 98 + - + ( + - COUNT( * ) ) * - 50 AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-4541
SELECT - 98 + - + ( + - COUNT ( * ) ) * - 50 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT + CASE + 72 WHEN 53 * + + 43 + + + 64 THEN NULL WHEN + + 4 THEN NULL WHEN 21 THEN NULL WHEN - + COUNT( * ) THEN + ( 28 ) END - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT + CASE + 72 WHEN 53 * + + 43 + + + 64 THEN NULL WHEN + + 4 THEN NULL WHEN 21 THEN NULL WHEN - + COUNT ( * ) THEN + ( 28 ) END - + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - COUNT( DISTINCT 21 ) * + + 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4543
SELECT - COUNT ( DISTINCT 21 ) * + + 82 AS col2
----
-82

query I rowsort
SELECT + 86 + 29
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT + CAST( NULL AS SIGNED ) / 52 - + + 10 + + 56 + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT + CAST ( NULL AS INTEGER ) / 52 - + + 10 + + 56 + + 79 AS col2
----
NULL

query I rowsort
SELECT 55 * 79 * - - 54 + + - 61
----
234569

query I rowsort
SELECT - 68 + - 80
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - COUNT( * ) * - + 99
----
99

skipif mysql # not compatible
query I rowsort label-4548
SELECT - COUNT ( * ) * - + 99
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4549
SELECT + 28 * 1 DIV 21 + - COUNT( * ) + COALESCE ( - - COUNT( * ), - 76, - COUNT( * ) * + ( 18 ) ) - - CAST( 12 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4549
SELECT + 28 * 1 / 21 + - COUNT ( * ) + COALESCE ( - - COUNT ( * ), - 76, - COUNT ( * ) * + ( 18 ) ) - - CAST ( 12 AS INTEGER ) AS col0
----
13

query I rowsort
SELECT ALL - 92 * - 15 col1
----
1380

query I rowsort
SELECT - 32 + - + ( + 83 ) AS col2
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-4552
SELECT DISTINCT + 90, - COUNT( * ) AS col0
----
90
-1

skipif mysql # not compatible
query II rowsort label-4552
SELECT DISTINCT + 90, - COUNT ( * ) AS col0
----
90
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4553
SELECT ALL - 60 DIV COUNT( * ) DIV 95 + 15 AS col0, + COUNT( * ) * - 90
----
15
-90

skipif mysql # not compatible
query II rowsort label-4553
SELECT ALL - 60 / COUNT ( * ) / 95 + 15 AS col0, + COUNT ( * ) * - 90
----
15
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT + 2 * COUNT( * ) - - + 30 + - ( + NULLIF ( - + NULLIF ( 49, - + 0 ), 50 + 67 ) ) * + 79 AS col1
----
3903

skipif mysql # not compatible
query I rowsort label-4554
SELECT + 2 * COUNT ( * ) - - + 30 + - ( + NULLIF ( - + NULLIF ( 49, - + 0 ), 50 + 67 ) ) * + 79 AS col1
----
3903

onlyif mysql # aggregate syntax: 
query II rowsort label-4555
SELECT + 65, + 30 * + CASE COUNT( * ) WHEN - 72 * - 32 * + 46 + - MAX( ALL + 3 ) THEN NULL WHEN COUNT( - 82 ) THEN SUM( 34 ) END AS col2
----
65
1020

skipif mysql # not compatible
query II rowsort label-4555
SELECT + 65, + 30 * + CASE COUNT ( * ) WHEN - 72 * - 32 * + 46 + - MAX ( ALL + 3 ) THEN NULL WHEN COUNT ( - 82 ) THEN SUM ( 34 ) END AS col2
----
65
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT SUM( DISTINCT + 9 ) + - 38 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4556
SELECT SUM ( DISTINCT + 9 ) + - 38 AS col2
----
-29

query I rowsort
SELECT - 81 * + 45 AS col0
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - 51 + - ( + - MIN( 17 ) ) + + COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4558
SELECT - 51 + - ( + - MIN ( 17 ) ) + + COUNT ( * ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT + COUNT( * ), COUNT( * ) * + 35 col1
----
1
35

skipif mysql # not compatible
query II rowsort label-4559
SELECT + COUNT ( * ), COUNT ( * ) * + 35 col1
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT + 72 + 58 * + ( - - COALESCE ( + + CASE + 2 WHEN - - COUNT( * ) THEN NULL ELSE - NULLIF ( COUNT( * ), + SUM( 77 ) - + 92 ) END, - 76 * COUNT( * ), + 31 ) ) + + 82 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT + 72 + 58 * + ( - - COALESCE ( + + CASE + 2 WHEN - - COUNT ( * ) THEN NULL ELSE - NULLIF ( COUNT ( * ), + SUM ( 77 ) - + 92 ) END, - 76 * COUNT ( * ), + 31 ) ) + + 82 AS col1
----
96

query I rowsort
SELECT ALL 34 + + 48 AS col0
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-4562
SELECT + 99 AS col2, 26 + - + 36 + - 78 * - 56 + 71 DIV + - 85
----
99
4358

skipif mysql # not compatible
query II rowsort label-4562
SELECT + 99 AS col2, 26 + - + 36 + - 78 * - 56 + 71 / + - 85
----
99
4358

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL + 45 + + COUNT( DISTINCT + 10 )
----
46

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + 45 + + COUNT ( DISTINCT + 10 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT + NULLIF ( 50, ( + - 97 ) ) * + - ( COALESCE ( 53, + - 45, - COUNT( * ) ) ) AS col1
----
-2650

skipif mysql # not compatible
query I rowsort label-4564
SELECT + NULLIF ( 50, ( + - 97 ) ) * + - ( COALESCE ( 53, + - 45, - COUNT ( * ) ) ) AS col1
----
-2650

query I rowsort
SELECT ALL - + ( + + 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - 84 * 11 + 95 + - MAX( ALL - 83 ) + + - 76 * - 49
----
2978

skipif mysql # not compatible
query I rowsort label-4566
SELECT - 84 * 11 + 95 + - MAX ( ALL - 83 ) + + - 76 * - 49
----
2978

query I rowsort
SELECT DISTINCT + + 76 + 41
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT MIN( ALL - + CAST( NULL AS SIGNED ) ) / + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT MIN ( ALL - + CAST ( NULL AS INTEGER ) ) / + - 92
----
NULL

query I rowsort
SELECT ALL + - 26 - 83 AS col2
----
-109

query I rowsort
SELECT 20 * + - 84 AS col0
----
-1680

query II rowsort
SELECT - 6, 11 - - + 91 AS col2
----
-6
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT - 97 - - 93 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT - 97 - - 93 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 11 ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4574
SELECT SUM( DISTINCT - 65 ) + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT SUM ( DISTINCT - 65 ) + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 88 - - - 99 AS col1
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4576
SELECT CAST( NULL AS DECIMAL ) + + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT CAST ( NULL AS REAL ) + + 13 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL CAST( - 22 AS SIGNED ) * - 61
----
1342

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL CAST ( - 22 AS INTEGER ) * - 61
----
1342

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT ALL COUNT( * ) - - + 50 * 78 + 87 AS col2
----
3988

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL COUNT ( * ) - - + 50 * 78 + 87 AS col2
----
3988

query I rowsort
SELECT ALL 28 * - 64
----
-1792

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT COALESCE ( 95, + - MIN( DISTINCT 12 ), + - COUNT( ALL - 87 ) * COUNT( * ) ) * + 13 AS col0
----
1235

skipif mysql # not compatible
query I rowsort label-4580
SELECT COALESCE ( 95, + - MIN ( DISTINCT 12 ), + - COUNT ( ALL - 87 ) * COUNT ( * ) ) * + 13 AS col0
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT 72 + - MAX( + 93 ) * - 6 - - + 62 + - 77
----
615

skipif mysql # not compatible
query I rowsort label-4581
SELECT 72 + - MAX ( + 93 ) * - 6 - - + 62 + - 77
----
615

query I rowsort
SELECT ALL ( 39 ) + ( - - 71 )
----
110

query I rowsort
SELECT DISTINCT 79 + 30 + 46 + 31 + + - 59 + - - 5
----
132

query I rowsort
SELECT DISTINCT + 15 * CASE - 9 WHEN 94 + 56 THEN - 63 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT ALL - 60 + + 73 DIV 6 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - 60 + + 73 / 6 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + COUNT( ALL + 82 ) * 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4586
SELECT + COUNT ( ALL + 82 ) * 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL + + COUNT( * ) + + MIN( - 99 )
----
-98

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + + COUNT ( * ) + + MIN ( - 99 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4588
SELECT COALESCE ( + 50, + COUNT( * ) ) DIV 24 * + 32 + - 3 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4588
SELECT COALESCE ( + 50, + COUNT ( * ) ) / 24 * + 32 + - 3 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL + + SUM( - 60 ) * + 25 AS col1
----
-1500

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + + SUM ( - 60 ) * + 25 AS col1
----
-1500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT - MAX( ALL + - 15 ) + + 59 - - 5 * 30 * - 44 * + 90 - - SUM( ALL + ( 93 ) ) + 92 * COUNT( * ) DIV 14 col1
----
-593827

skipif mysql # not compatible
query I rowsort label-4590
SELECT - MAX ( ALL + - 15 ) + + 59 - - 5 * 30 * - 44 * + 90 - - SUM ( ALL + ( 93 ) ) + 92 * COUNT ( * ) / 14 col1
----
-593827

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT MAX( 75 ) * + AVG ( - + 35 ) / - 57 * - - CASE + 33 WHEN + + 46 * + + MAX( ALL 92 ) - COUNT( * ) THEN COUNT( ALL + 48 ) + 0 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT MAX ( 75 ) * + AVG ( - + 35 ) / - 57 * - - CASE + 33 WHEN + + 46 * + + MAX ( ALL 92 ) - COUNT ( * ) THEN COUNT ( ALL + 48 ) + 0 END col1
----
NULL

query I rowsort
SELECT ALL - - 53 + 77 AS col2
----
130

onlyif mysql # DIV for integer division: 
query II rowsort label-4593
SELECT + + COALESCE ( - - 78, + 67 * + 35 ) * + - 77 + + 96 DIV - + 44, - 77 DIV + 62 AS col1
----
-6008
-1

skipif mysql # not compatible
query II rowsort label-4593
SELECT + + COALESCE ( - - 78, + 67 * + 35 ) * + - 77 + + 96 / - + 44, - 77 / + 62 AS col1
----
-6008
-1

query II rowsort
SELECT + 49 * + 38 * - 17 + 6, ( - 51 ) AS col1
----
-31648
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL + 43 + - 68 + + COALESCE ( ( 40 ), - 65 * - 41, CAST( COALESCE ( 20, COUNT( * ), CAST( NULL AS SIGNED ) + 26 ) AS SIGNED ) ) * SUM( + 5 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL + 43 + - 68 + + COALESCE ( ( 40 ), - 65 * - 41, CAST ( COALESCE ( 20, COUNT ( * ), CAST ( NULL AS INTEGER ) + 26 ) AS INTEGER ) ) * SUM ( + 5 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4597
SELECT ALL + CASE 60 WHEN - 15 + 51 THEN + + 7 + + ( 58 ) + - 83 / + NULLIF ( - 55, - 42 + + ( + 14 ) * 30 ) * - COALESCE ( - MIN( DISTINCT - 42 ), 16, CAST( NULL AS SIGNED ), - NULLIF ( - COUNT( * ), 93 ) ) WHEN CASE + 48 WHEN - COUNT( * ) THEN NULL ELSE 50 + 2 * 62 END + + 41 * + 89 THEN + 35 - 77 / - 71 ELSE NULL END * + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + CASE 60 WHEN - 15 + 51 THEN + + 7 + + ( 58 ) + - 83 / + NULLIF ( - 55, - 42 + + ( + 14 ) * 30 ) * - COALESCE ( - MIN ( DISTINCT - 42 ), 16, CAST ( NULL AS INTEGER ), - NULLIF ( - COUNT ( * ), 93 ) ) WHEN CASE + 48 WHEN - COUNT ( * ) THEN NULL ELSE 50 + 2 * 62 END + + 41 * + 89 THEN + 35 - 77 / - 71 ELSE NULL END * + 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT - - COUNT( * ) + - ( - 3 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT - - COUNT ( * ) + - ( - 3 ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT ALL + + ( - 38 ) - + + ( + + 63 ) / - 45 * CAST( NULL AS SIGNED ) + 8 + - 57 * + + 21 / + 19 * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + + ( - 38 ) - + + ( + + 63 ) / - 45 * CAST ( NULL AS INTEGER ) + 8 + - 57 * + + 21 / + 19 * 41 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL 68 - - SUM( - 31 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL 68 - - SUM ( - 31 ) AS col1
----
37

query I rowsort
SELECT ALL - - 7 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT COUNT( * ) * - + 98
----
-98

skipif mysql # not compatible
query I rowsort label-4603
SELECT COUNT ( * ) * - + 98
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT CASE - - 0 WHEN CAST( NULL AS SIGNED ) THEN 60 ELSE - 89 END col2
----
-89

skipif mysql # not compatible
query I rowsort label-4604
SELECT CASE - - 0 WHEN CAST ( NULL AS INTEGER ) THEN 60 ELSE - 89 END col2
----
-89

query II rowsort
SELECT - + ( - 15 ), 60 AS col0
----
15
60

query I rowsort
SELECT + 78 - - 19 AS col2
----
97

query I rowsort
SELECT ALL + 63 - - - NULLIF ( - 95, - - 60 * + 9 + + 95 ) + - + 37
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT COUNT( * ) * NULLIF ( + 91, + 66 + 81 + + CAST( NULL AS SIGNED ) / + + 30 + + 8 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4608
SELECT COUNT ( * ) * NULLIF ( + 91, + 66 + 81 + + CAST ( NULL AS INTEGER ) / + + 30 + + 8 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT ALL + 90 * - 51 * 7, SUM( ALL + 19 ) AS col1
----
-32130
19

skipif mysql # not compatible
query II rowsort label-4609
SELECT ALL + 90 * - 51 * 7, SUM ( ALL + 19 ) AS col1
----
-32130
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - 90 * - ( + CASE - AVG ( - 60 ) WHEN - 27 / + - ( NULLIF ( COUNT( * ), 60 + 25 ) ) THEN NULL WHEN ( 2 ) THEN + COUNT( * ) + + 62 ELSE NULL END ) + + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT - 90 * - ( + CASE - AVG ( - 60 ) WHEN - 27 / + - ( NULLIF ( COUNT ( * ), 60 + 25 ) ) THEN NULL WHEN ( 2 ) THEN + COUNT ( * ) + + 62 ELSE NULL END ) + + 83 AS col2
----
NULL

query I rowsort
SELECT ALL + ( 35 ) * + COALESCE ( - NULLIF ( - + 68, - - 16 ), - - 57, - 83 )
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL COUNT( DISTINCT + + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL COUNT ( DISTINCT + + 77 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT 27 + - 18 * - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4613
SELECT 27 + - 18 * - COUNT ( * )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT 36 + - CAST( + 34 AS SIGNED ) * 60 + + CASE WHEN + 80 IS NULL THEN - - 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT 36 + - CAST ( + 34 AS INTEGER ) * 60 + + CASE WHEN + 80 IS NULL THEN - - 14 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT COUNT( * ) + - + 38 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4615
SELECT COUNT ( * ) + - + 38 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT - COUNT( - 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-4616
SELECT - COUNT ( - 21 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT ALL - 28 + - - 21 DIV - 94 - ( + 88 ) AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - 28 + - - 21 / - 94 - ( + 88 ) AS col1
----
-116

query I rowsort
SELECT 62 + - 56 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL - COUNT( * ) + - + COUNT( * ) + + 44 + 74 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) + + 44 + 74 AS col0
----
116

query I rowsort
SELECT ALL 3 + - 44
----
-41

query I rowsort
SELECT ALL 14 + - - 41 + 33 col0
----
88

query I rowsort
SELECT ALL 73 * 61
----
4453

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT 81 + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4623
SELECT 81 + COUNT ( * )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4624
SELECT ALL 96 + - ( + 1 ) AS col2, COALESCE ( - 53, CAST( NULL AS SIGNED ) + - 86 )
----
95
-53

skipif mysql # not compatible
query II rowsort label-4624
SELECT ALL 96 + - ( + 1 ) AS col2, COALESCE ( - 53, CAST ( NULL AS INTEGER ) + - 86 )
----
95
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4625
SELECT ALL 26 * 49 + 8 + 85 * - CAST( NULL AS SIGNED ), 39 * 44 col0
----
NULL
1716

skipif mysql # not compatible
query II rowsort label-4625
SELECT ALL 26 * 49 + 8 + 85 * - CAST ( NULL AS INTEGER ), 39 * 44 col0
----
NULL
1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT + - 73 * + CAST( + 13 AS SIGNED ) + - 94 * ( + + 93 ) + SUM( DISTINCT - - ( - - 82 ) ) AS col1
----
-9609

skipif mysql # not compatible
query I rowsort label-4626
SELECT + - 73 * + CAST ( + 13 AS INTEGER ) + - 94 * ( + + 93 ) + SUM ( DISTINCT - - ( - - 82 ) ) AS col1
----
-9609

query I rowsort
SELECT + + 27 + - 48 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT + - 42 AS col2, ( COUNT( - - 93 ) )
----
-42
1

skipif mysql # not compatible
query II rowsort label-4628
SELECT + - 42 AS col2, ( COUNT ( - - 93 ) )
----
-42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - 34 * 61 * + - SUM( - + 7 ) + 74 + + + COUNT( DISTINCT - - NULLIF ( 17, 50 ) ) col1
----
-14443

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 34 * 61 * + - SUM ( - + 7 ) + 74 + + + COUNT ( DISTINCT - - NULLIF ( 17, 50 ) ) col1
----
-14443

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4630
SELECT + + 87 DIV + 75 + 40 * COUNT( * ) col1
----
41

skipif mysql # not compatible
query I rowsort label-4630
SELECT + + 87 / + 75 + 40 * COUNT ( * ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL - COUNT( * ) * 1 + + 19
----
18

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - COUNT ( * ) * 1 + + 19
----
18

query I rowsort
SELECT + 86 + + 86 AS col1
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT CAST( NULL AS SIGNED ) * + + COALESCE ( + 64, - 95 * - - 49 ) * - 27 + - 25 * ( - 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT CAST ( NULL AS INTEGER ) * + + COALESCE ( + 64, - 95 * - - 49 ) * - 27 + - 25 * ( - 95 ) AS col1
----
NULL

query I rowsort
SELECT ALL 34 * 45 + + 98 * 71 - 76 AS col1
----
8412

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT + CASE + + 51 WHEN + - 92 THEN 48 WHEN + 89 * - - 12 THEN NULL ELSE - 74 / - 48 - + ( - 44 ) / - CASE COUNT( * ) * 61 WHEN AVG ( ALL + 84 ) THEN MIN( 20 ) WHEN - CASE COUNT( ALL + ( 94 ) ) WHEN 46 THEN NULL ELSE 50 + - 21 END THEN - 79 + 8 END END / + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + CASE + + 51 WHEN + - 92 THEN 48 WHEN + 89 * - - 12 THEN NULL ELSE - 74 / - 48 - + ( - 44 ) / - CASE COUNT ( * ) * 61 WHEN AVG ( ALL + 84 ) THEN MIN ( 20 ) WHEN - CASE COUNT ( ALL + ( 94 ) ) WHEN 46 THEN NULL ELSE 50 + - 21 END THEN - 79 + 8 END END / + 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL + - 70 * 33 * - - ( - 90 ) - COUNT( * )
----
207899

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL + - 70 * 33 * - - ( - 90 ) - COUNT ( * )
----
207899

query I rowsort
SELECT + + ( - 65 ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT - 64 * - 93 - - COUNT( * ) + + 52 * - - CAST( NULL AS SIGNED ) + - + ( + + 26 ) - - COUNT( - 8 ) + - - AVG ( ALL 92 ) + + COUNT( * ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - 64 * - 93 - - COUNT ( * ) + + 52 * - - CAST ( NULL AS INTEGER ) + - + ( + + 26 ) - - COUNT ( - 8 ) + - - AVG ( ALL 92 ) + + COUNT ( * ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT + + ( + ( + - COALESCE ( + 26, + 73 ) ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT + + ( + ( + - COALESCE ( + 26, + 73 ) ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4640
SELECT - + 76 + COALESCE ( + 14, - CAST( + - COALESCE ( - 15, 93 ) AS SIGNED ), - 22 * 52 DIV - - AVG ( ALL 4 ) * COALESCE ( 93 * 55, + MIN( + CAST( 53 AS SIGNED ) ) ) ) * + 15 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-4640
SELECT - + 76 + COALESCE ( + 14, - CAST ( + - COALESCE ( - 15, 93 ) AS INTEGER ), - 22 * 52 / - - AVG ( ALL 4 ) * COALESCE ( 93 * 55, + MIN ( + CAST ( 53 AS INTEGER ) ) ) ) * + 15 AS col1
----
134

query II rowsort
SELECT ALL + + 19 AS col1, 30 col1
----
19
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT + - COALESCE ( + 64, + + 33 ) * + + ( - - COUNT( * ) ) + - ( COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-4642
SELECT + - COALESCE ( + 64, + + 33 ) * + + ( - - COUNT ( * ) ) + - ( COUNT ( * ) )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT - ( 98 ) DIV - 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4643
SELECT - ( 98 ) / - 66 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL + COUNT( * ) * + CASE - COALESCE ( - + 83, + CAST( - CASE - + CAST( + 67 AS SIGNED ) WHEN - 45 THEN NULL WHEN - + CAST( 59 AS SIGNED ) THEN - 58 * + 24 WHEN 85 THEN NULL ELSE NULL END AS SIGNED ) ) WHEN - 18 THEN MIN( + 44 ) * 91 + NULLIF ( + COUNT( * ), + AVG ( 18 ) ) WHEN + 86 THEN + 33 * NULLIF ( + 84, + 86 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + COUNT ( * ) * + CASE - COALESCE ( - + 83, + CAST ( - CASE - + CAST ( + 67 AS INTEGER ) WHEN - 45 THEN NULL WHEN - + CAST ( 59 AS INTEGER ) THEN - 58 * + 24 WHEN 85 THEN NULL ELSE NULL END AS INTEGER ) ) WHEN - 18 THEN MIN ( + 44 ) * 91 + NULLIF ( + COUNT ( * ), + AVG ( 18 ) ) WHEN + 86 THEN + 33 * NULLIF ( + 84, + 86 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4645
SELECT DISTINCT - CASE + 47 WHEN - + 64 DIV - + 41 + 70 THEN + + 58 * - - MIN( DISTINCT + + 58 ) * + - CAST( - + 46 AS SIGNED ) DIV + 82 + COUNT( * ) + - ( 66 ) ELSE + 83 + 19 END * 37 col0
----
-3774

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT - CASE + 47 WHEN - + 64 / - + 41 + 70 THEN + + 58 * - - MIN ( DISTINCT + + 58 ) * + - CAST ( - + 46 AS INTEGER ) / + 82 + COUNT ( * ) + - ( 66 ) ELSE + 83 + 19 END * 37 col0
----
-3774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL ( - 33 ) * CAST( + + CASE - 31 WHEN SUM( DISTINCT 15 ) * - + 95 * - - 58 THEN + - 42 ELSE NULL END AS SIGNED ) * - 88 + + COUNT( * ) + 99 / + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL ( - 33 ) * CAST ( + + CASE - 31 WHEN SUM ( DISTINCT 15 ) * - + 95 * - - 58 THEN + - 42 ELSE NULL END AS INTEGER ) * - 88 + + COUNT ( * ) + 99 / + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4647
SELECT - COUNT( * ) + + COUNT( * ), CAST( NULL AS SIGNED ) + - - 7 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4647
SELECT - COUNT ( * ) + + COUNT ( * ), CAST ( NULL AS INTEGER ) + - - 7 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT SUM( - NULLIF ( + 18, + + 91 ) ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT SUM ( - NULLIF ( + 18, + + 91 ) ) col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT ALL - 22 DIV - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - 22 / - 85 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT ALL CASE WHEN - 62 BETWEEN - 80 AND ( + MIN( DISTINCT - 58 ) + - CAST( NULL AS SIGNED ) * 90 ) THEN 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL CASE WHEN - 62 BETWEEN - 80 AND ( + MIN ( DISTINCT - 58 ) + - CAST ( NULL AS INTEGER ) * 90 ) THEN 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT + COUNT( * ) + + - 6 * COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT + COUNT ( * ) + + - 6 * COUNT ( * ) AS col2
----
-5

query I rowsort
SELECT - 45 - + + 96 * + 21 col2
----
-2061

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT + 87 + - MIN( DISTINCT + 59 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT + 87 + - MIN ( DISTINCT + 59 ) AS col1
----
28

query I rowsort
SELECT - 39 * + - 71
----
2769

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + 45 + + MIN( - ( + 98 ) ) - + 98 AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-4655
SELECT + 45 + + MIN ( - ( + 98 ) ) - + 98 AS col0
----
-151

query I rowsort
SELECT DISTINCT - 14 * - 21
----
294

query I rowsort
SELECT ALL + 60 + + 27 AS col0
----
87

query I rowsort
SELECT DISTINCT - 5 + 66 * - 54
----
-3569

query I rowsort
SELECT ALL - 33 * + ( - COALESCE ( - 62, - 18 ) ) AS col2
----
-2046

query I rowsort
SELECT - 9 * - - 31
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4661
SELECT DISTINCT 21 + - - 90 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, 14 * - 20 * + 86 * 42 + - - 0
----
NULL
-1011360

skipif mysql # not compatible
query II rowsort label-4661
SELECT DISTINCT 21 + - - 90 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 14 * - 20 * + 86 * 42 + - - 0
----
NULL
-1011360

query I rowsort
SELECT DISTINCT - 15 * + 52
----
-780

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4663
SELECT ALL + 60 + - SUM( + 21 ) + 99 - COUNT( * ) + - 92 * ( - CAST( NULL AS DECIMAL ) ) * - AVG ( ALL - - 2 ) / ( COUNT( * ) ) * 85 - - CASE + ( + 8 ) + + ( COUNT( DISTINCT + 80 ) ) WHEN 11 THEN MIN( 46 ) WHEN 90 / COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + 60 + - SUM ( + 21 ) + 99 - COUNT ( * ) + - 92 * ( - CAST ( NULL AS REAL ) ) * - AVG ( ALL - - 2 ) / ( COUNT ( * ) ) * 85 - - CASE + ( + 8 ) + + ( COUNT ( DISTINCT + 80 ) ) WHEN 11 THEN MIN ( 46 ) WHEN 90 / COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL ( + SUM( - 90 ) ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL ( + SUM ( - 90 ) ) col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT - 73 DIV + - 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4665
SELECT - 73 / + - 62 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4666
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + 88
----
NULL
88

skipif mysql # not compatible
query II rowsort label-4666
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + 88
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL 73 + - COUNT( * ) * 96 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL 73 + - COUNT ( * ) * 96 AS col0
----
-23

query II rowsort
SELECT DISTINCT - 98 AS col0, 15 AS col0
----
-98
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4669
SELECT - COUNT( ALL CAST( NULL AS SIGNED ) ) * 60 + 28
----
28

skipif mysql # not compatible
query I rowsort label-4669
SELECT - COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 60 + 28
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4670
SELECT - 84 AS col0, COUNT( - - 87 )
----
-84
1

skipif mysql # not compatible
query II rowsort label-4670
SELECT - 84 AS col0, COUNT ( - - 87 )
----
-84
1

query II rowsort
SELECT + 70 * 85 AS col0, + 10 AS col1
----
5950
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT ALL 82 DIV - 6 - + 28 + + + CASE + - 27 WHEN + ( + 32 ) + + 53 THEN 95 * - COUNT( * ) * - 95 ELSE 16 + 19 END col1
----
-6

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL 82 / - 6 - + 28 + + + CASE + - 27 WHEN + ( + 32 ) + + 53 THEN 95 * - COUNT ( * ) * - 95 ELSE 16 + 19 END col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT ALL + 57 DIV + 21
----
2

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + 57 / + 21
----
2

query I rowsort
SELECT DISTINCT 18 * - 49
----
-882

query I rowsort
SELECT ALL + ( - - 98 )
----
98

query I rowsort
SELECT DISTINCT - 24 * + - 43 AS col1
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT + MIN( + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-4677
SELECT + MIN ( + - 9 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4678
SELECT + - NULLIF ( + + CAST( 49 AS SIGNED ), + 6 + - + 92 + - + CAST( NULL AS DECIMAL ) ) + 31
----
-18

skipif mysql # not compatible
query I rowsort label-4678
SELECT + - NULLIF ( + + CAST ( 49 AS INTEGER ), + 6 + - + 92 + - + CAST ( NULL AS REAL ) ) + 31
----
-18

query I rowsort
SELECT + 72 * + 78 AS col2
----
5616

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT + COUNT( * ) * + 97 col2
----
97

skipif mysql # not compatible
query I rowsort label-4680
SELECT + COUNT ( * ) * + 97 col2
----
97

query I rowsort
SELECT DISTINCT + ( 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4682
SELECT DISTINCT + + COALESCE ( - 48, 4, 97 + 22 + - - 18 + + COUNT( * ) DIV - ( + 81 ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT + + COALESCE ( - 48, 4, 97 + 22 + - - 18 + + COUNT ( * ) / - ( + 81 ) ) AS col0
----
-48

query II rowsort
SELECT DISTINCT + 57 AS col0, ( - 73 ) + 89 AS col0
----
57
16

query I rowsort
SELECT + 13 + + 24
----
37

query I rowsort
SELECT ALL + 87 * - 2 + - 70 AS col1
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT 0 * + - 37 + 65 + + 66 + 37 * - MAX( + 46 ) + ( - 64 ) + 30 * + COUNT( * )
----
-1605

skipif mysql # not compatible
query I rowsort label-4686
SELECT 0 * + - 37 + 65 + + 66 + 37 * - MAX ( + 46 ) + ( - 64 ) + 30 * + COUNT ( * )
----
-1605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT NULLIF ( 37, + CAST( + 30 AS SIGNED ) + + 43 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4687
SELECT NULLIF ( 37, + CAST ( + 30 AS INTEGER ) + + 43 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL + COALESCE ( - + MAX( DISTINCT 94 ), + 83 )
----
-94

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL + COALESCE ( - + MAX ( DISTINCT 94 ), + 83 )
----
-94

query I rowsort
SELECT COALESCE ( + 81, - 46 )
----
81

query I rowsort
SELECT + 0 * - 42 - 15 * 74 + 54
----
-1056

query I rowsort
SELECT ALL + 0 * 15
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4692
SELECT CASE + COUNT( * ) WHEN - 94 THEN NULL WHEN + 95 * + NULLIF ( + CAST( NULL AS DECIMAL ), COUNT( * ) ) * + 13 * + - 9 THEN + 81 * + 48 WHEN - 32 THEN + 65 + + 90 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT CASE + COUNT ( * ) WHEN - 94 THEN NULL WHEN + 95 * + NULLIF ( + CAST ( NULL AS REAL ), COUNT ( * ) ) * + 13 * + - 9 THEN + 81 * + 48 WHEN - 32 THEN + 65 + + 90 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT - NULLIF ( MAX( ALL - 14 ), + 59 ) DIV - 12 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4693
SELECT - NULLIF ( MAX ( ALL - 14 ), + 59 ) / - 12 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT ALL ( - - 78 ) * + COUNT( * ) + ( - COUNT( * ) ) col2, 54 * + 79 + - COALESCE ( - COUNT( * ), - + 29 ) col2
----
77
4267

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL ( - - 78 ) * + COUNT ( * ) + ( - COUNT ( * ) ) col2, 54 * + 79 + - COALESCE ( - COUNT ( * ), - + 29 ) col2
----
77
4267

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - MAX( - 63 ) + + 64
----
127

skipif mysql # not compatible
query I rowsort label-4695
SELECT - MAX ( - 63 ) + + 64
----
127

query I rowsort
SELECT - 68 + - 8 + 36
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT ( + COUNT( * ) ) * + 3 DIV + - COALESCE ( - + 62, + + 95 + - 2 )
----
0

skipif mysql # not compatible
query I rowsort label-4697
SELECT ( + COUNT ( * ) ) * + 3 / + - COALESCE ( - + 62, + + 95 + - 2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT CAST( COUNT( DISTINCT ( - + 31 ) ) AS SIGNED ) + - + 78 * + 80 AS col1
----
-6239

skipif mysql # not compatible
query I rowsort label-4698
SELECT CAST ( COUNT ( DISTINCT ( - + 31 ) ) AS INTEGER ) + - + 78 * + 80 AS col1
----
-6239

query II rowsort
SELECT 71 + + 38, + 65 AS col2
----
109
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT COUNT( * ) + + + 60
----
61

skipif mysql # not compatible
query I rowsort label-4700
SELECT COUNT ( * ) + + + 60
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4701
SELECT DISTINCT 6 - - 80 DIV CASE + - ( - ( + + 3 ) ) WHEN + 82 THEN + - MAX( 51 ) ELSE - 54 END + - 97 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT 6 - - 80 / CASE + - ( - ( + + 3 ) ) WHEN + 82 THEN + - MAX ( 51 ) ELSE - 54 END + - 97 AS col2
----
-92

query I rowsort
SELECT 41 * 33 + + 83
----
1436

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL - - CASE + 41 WHEN - 4 + + 67 THEN - 27 * - - 97 ELSE NULL END * - 25 * + 29 / COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - - CASE + 41 WHEN - 4 + + 67 THEN - 27 * - - 97 ELSE NULL END * - 25 * + 29 / COUNT ( * ) col2
----
NULL

query II rowsort
SELECT ALL - - 42 - 7, ( 20 ) AS col1
----
35
20

query I rowsort
SELECT DISTINCT - 28 * 96 + 79 * - 77
----
-8771

query I rowsort
SELECT ALL - 64 - 24 + - 16 col2
----
-104

query I rowsort
SELECT ( + 63 ) + 7 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL + - CASE + - 54 WHEN - CAST( NULL AS SIGNED ) * + 69 THEN + 93 ELSE NULL END * - - 53 * - - 39 * - 84 + + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + - CASE + - 54 WHEN - CAST ( NULL AS INTEGER ) * + 69 THEN + 93 ELSE NULL END * - - 53 * - - 39 * - 84 + + - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT - 37 - - COUNT( * ) - 45 + 41 * - 66 AS col0
----
-2787

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT - 37 - - COUNT ( * ) - 45 + 41 * - 66 AS col0
----
-2787

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT - SUM( ALL - + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - SUM ( ALL - + 96 ) AS col1
----
96

query I rowsort
SELECT ALL - - ( 97 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4712
SELECT 43 * COUNT( ALL - 74 ) DIV - 48 + - - COALESCE ( 17, 33 ) + - ( - 55 ) + - + ( 85 ) * - - 35 * 67 * 95
----
-18935803

skipif mysql # not compatible
query I rowsort label-4712
SELECT 43 * COUNT ( ALL - 74 ) / - 48 + - - COALESCE ( 17, 33 ) + - ( - 55 ) + - + ( 85 ) * - - 35 * 67 * 95
----
-18935803

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT - - 70 * + COUNT( * ) + + 27 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4713
SELECT - - 70 * + COUNT ( * ) + + 27 AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT + 57 DIV - 9 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4714
SELECT + 57 / - 9 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT + ( - + 39 ) DIV - 27 + - 49
----
-48

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT + ( - + 39 ) / - 27 + - 49
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL - - COALESCE ( - CAST( 85 AS SIGNED ), - COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL - - COALESCE ( - CAST ( 85 AS INTEGER ), - COUNT ( * ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT + 84 + - ( - + 78 ) * + - 28 + - COALESCE ( + + 78, - 63 * 68 * - NULLIF ( + - ( 90 ), 14 / - 23 ) + COUNT( * ) ) + 57 AS col2
----
-2121

skipif mysql # not compatible
query I rowsort label-4717
SELECT + 84 + - ( - + 78 ) * + - 28 + - COALESCE ( + + 78, - 63 * 68 * - NULLIF ( + - ( 90 ), 14 / - 23 ) + COUNT ( * ) ) + 57 AS col2
----
-2121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL + 68 / + - 92 + + SUM( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + 68 / + - 92 + + SUM ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT ALL + 63 * - + 47 AS col1, - 53
----
-2961
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - SUM( + 25 ) * + 97 * - ( - 48 )
----
-116400

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - SUM ( + 25 ) * + 97 * - ( - 48 )
----
-116400

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT - 6 * + - 51 + + 48 DIV - - 33 AS col0
----
307

skipif mysql # not compatible
query I rowsort label-4721
SELECT - 6 * + - 51 + + 48 / - - 33 AS col0
----
307

query I rowsort
SELECT DISTINCT - ( + 67 ) + - 6 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT 46 + + 47 - + 9 * - - COUNT( * ) - - 42
----
126

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT 46 + + 47 - + 9 * - - COUNT ( * ) - - 42
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT ALL 58 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL 58 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT 16 + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT 16 + + COUNT ( * )
----
17

query II rowsort
SELECT 92 AS col2, 14 + 90 + + 96 + - - 11
----
92
211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT DISTINCT 51 + - COUNT( * ) * - 96 DIV 21
----
55

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT 51 + - COUNT ( * ) * - 96 / 21
----
55

query I rowsort
SELECT ALL 10 + - 98 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL 86 + - - COALESCE ( - 18, - + 93 * - 68 * - COUNT( * ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL 86 + - - COALESCE ( - 18, - + 93 * - 68 * - COUNT ( * ) ) AS col2
----
68

query II rowsort
SELECT 73, 51 + - 19 - 39 * 22 AS col0
----
73
-826

query I rowsort
SELECT 71 + - 12 col0
----
59

query I rowsort
SELECT DISTINCT 15 + + 53 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL + COUNT( DISTINCT + 50 ) * ( + + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL + COUNT ( DISTINCT + 50 ) * ( + + 0 ) AS col0
----
0

query I rowsort
SELECT ALL 50 - 17 * - + 73
----
1291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4735
SELECT DISTINCT 9 DIV + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT 9 / + - COUNT ( * )
----
-9

query I rowsort
SELECT - 18 col1
----
-18

query I rowsort
SELECT 0 * + 10 AS col0
----
0

query I rowsort
SELECT ALL 44 * - ( - 86 ) AS col0
----
3784

query II rowsort
SELECT 72 AS col1, 36
----
72
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4740
SELECT - CASE + + COUNT( * ) WHEN - - ( + COUNT( * ) ) * + 69 + - + 14 + - 99 - + 43 + + - 56 * + 38 THEN NULL ELSE + 87 * + 18 END * 95 DIV + 55 + - 8 DIV 77
----
-2704

skipif mysql # not compatible
query I rowsort label-4740
SELECT - CASE + + COUNT ( * ) WHEN - - ( + COUNT ( * ) ) * + 69 + - + 14 + - 99 - + 43 + + - 56 * + 38 THEN NULL ELSE + 87 * + 18 END * 95 / + 55 + - 8 / 77
----
-2704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT DISTINCT MIN( 78 ) * + - CAST( NULL AS SIGNED ) - 60 + + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT MIN ( 78 ) * + - CAST ( NULL AS INTEGER ) - 60 + + 79 AS col1
----
NULL

query II rowsort
SELECT ALL 29 AS col2, 71 * 54
----
29
3834

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4743
SELECT 87 * - 3 DIV + + COUNT( * ) AS col0, 56
----
-261
56

skipif mysql # not compatible
query II rowsort label-4743
SELECT 87 * - 3 / + + COUNT ( * ) AS col0, 56
----
-261
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT CAST( 85 AS SIGNED ) * - 71 * + + 32
----
-193120

skipif mysql # not compatible
query I rowsort label-4744
SELECT CAST ( 85 AS INTEGER ) * - 71 * + + 32
----
-193120

query I rowsort
SELECT ALL + 16 * - 3
----
-48

query I rowsort
SELECT DISTINCT ( - 69 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT 35 * - 93 + + SUM( ALL - 70 ) AS col0
----
-3325

skipif mysql # not compatible
query I rowsort label-4747
SELECT 35 * - 93 + + SUM ( ALL - 70 ) AS col0
----
-3325

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT 79 * + - 8 * + SUM( + - 30 ) + 94
----
19054

skipif mysql # not compatible
query I rowsort label-4748
SELECT 79 * + - 8 * + SUM ( + - 30 ) + 94
----
19054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT 58 * MAX( ALL CAST( 70 AS SIGNED ) ) * + 38 + 84 + 71 * - + 19 AS col0
----
153015

skipif mysql # not compatible
query I rowsort label-4749
SELECT 58 * MAX ( ALL CAST ( 70 AS INTEGER ) ) * + 38 + 84 + 71 * - + 19 AS col0
----
153015

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + MAX( ALL 30 ) * + 41
----
1230

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + MAX ( ALL 30 ) * + 41
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT + MAX( ALL 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4751
SELECT + MAX ( ALL 72 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4752
SELECT ALL + COUNT( * ) * + - 81 DIV - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + COUNT ( * ) * + - 81 / - COUNT ( * )
----
81

query I rowsort
SELECT ALL 64 * 61 + - 11
----
3893

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - MAX( DISTINCT - 10 ) * 80
----
800

skipif mysql # not compatible
query I rowsort label-4754
SELECT - MAX ( DISTINCT - 10 ) * 80
----
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4755
SELECT ALL - CAST( - ( 80 ) AS SIGNED ) AS col2, - SUM( + + 77 ) AS col1
----
80
-77

skipif mysql # not compatible
query II rowsort label-4755
SELECT ALL - CAST ( - ( 80 ) AS INTEGER ) AS col2, - SUM ( + + 77 ) AS col1
----
80
-77

query II rowsort
SELECT + 87, - CASE 71 WHEN - 92 THEN - 43 / - - ( + 31 ) + + - 22 * 70 * 67 END AS col1
----
87
NULL

query I rowsort
SELECT ALL - + 74
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT - - CASE 20 WHEN + ( - - 2 ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END / + 67 + + - NULLIF ( - ( - 49 ), 99 + 27 + ( + - 3 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT - - CASE 20 WHEN + ( - - 2 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END / + 67 + + - NULLIF ( - ( - 49 ), 99 + 27 + ( + - 3 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT 40 + - MIN( - - 22 )
----
18

skipif mysql # not compatible
query I rowsort label-4760
SELECT 40 + - MIN ( - - 22 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT ALL 74 * - + 36 + + 35 DIV + 52 col2
----
-2664

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL 74 * - + 36 + + 35 / + 52 col2
----
-2664

onlyif mysql # aggregate syntax: 
query II rowsort label-4762
SELECT ALL - COUNT( + 79 ) AS col0, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL - COUNT ( + 79 ) AS col0, + COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4763
SELECT ( COUNT( 66 ) ) * 45 + 8 + - 44 * + + 6 + 40 + - ( - 39 ) DIV 48
----
-171

skipif mysql # not compatible
query I rowsort label-4763
SELECT ( COUNT ( 66 ) ) * 45 + 8 + - 44 * + + 6 + 40 + - ( - 39 ) / 48
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT DISTINCT - 83 DIV + + 6
----
-13

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - 83 / + + 6
----
-13

query II rowsort
SELECT ALL 63 * + 83 AS col2, - 5 + - 68 AS col1
----
5229
-73

query I rowsort
SELECT + 69 + + + 46
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL - 74 - 48 + + COUNT( * ) - + + 80 * ( + 57 )
----
-4681

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL - 74 - 48 + + COUNT ( * ) - + + 80 * ( + 57 )
----
-4681

query I rowsort
SELECT ALL + 10 - + + 27 - - - 52 AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4769
SELECT + COUNT( * ) * - MIN( 12 ) + - 73 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT + COUNT ( * ) * - MIN ( 12 ) + - 73 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT SUM( DISTINCT + - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4770
SELECT SUM ( DISTINCT + - 85 ) AS col0
----
-85

query I rowsort
SELECT ALL + 1 * + 64 * - 37 * + 43 AS col2
----
-101824

onlyif mysql # aggregate syntax: 
query II rowsort label-4772
SELECT DISTINCT 3 * - COUNT( * ) AS col0, 49 AS col0
----
-3
49

skipif mysql # not compatible
query II rowsort label-4772
SELECT DISTINCT 3 * - COUNT ( * ) AS col0, 49 AS col0
----
-3
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT - 54 * - 66 + + CAST( - + ( - - 73 ) AS SIGNED ) * CASE + + 43 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + + CASE + ( + - 96 ) WHEN - - 18 THEN + 92 + + 35 END * 33 THEN 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 54 * - 66 + + CAST ( - + ( - - 73 ) AS INTEGER ) * CASE + + 43 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + + CASE + ( + - 96 ) WHEN - - 18 THEN + 92 + + 35 END * 33 THEN 74 END
----
NULL

query II rowsort
SELECT + ( - NULLIF ( + 31, - 41 / + - 12 + - + 77 ) ) * - 39, 62 * - - ( 90 ) AS col2
----
1209
5580

onlyif mysql # aggregate syntax: 
query II rowsort label-4775
SELECT ALL 97 - - 19 AS col1, - COUNT( 79 ) AS col2
----
116
-1

skipif mysql # not compatible
query II rowsort label-4775
SELECT ALL 97 - - 19 AS col1, - COUNT ( 79 ) AS col2
----
116
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL NULLIF ( - 10, + COUNT( + 50 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL NULLIF ( - 10, + COUNT ( + 50 ) )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4777
SELECT + - CAST( NULL AS SIGNED ) + + MAX( 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT + - CAST ( NULL AS INTEGER ) + + MAX ( 80 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + 63 * - COUNT( * ) * + ( - - 0 ) * - - 46 + 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4778
SELECT + 63 * - COUNT ( * ) * + ( - - 0 ) * - - 46 + 91 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4779
SELECT ALL - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - 35 - + COUNT( + 40 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 35 - + COUNT ( + 40 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT + + 73 + + 41 - - + MAX( ALL - 47 ) DIV - 45 col2
----
115

skipif mysql # not compatible
query I rowsort label-4780
SELECT + + 73 + + 41 - - + MAX ( ALL - 47 ) / - 45 col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL CASE - 13 WHEN 94 THEN + COUNT( ALL + - 41 ) * 96 WHEN + + 14 * - 5 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL CASE - 13 WHEN 94 THEN + COUNT ( ALL + - 41 ) * 96 WHEN + + 14 * - 5 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + - 98 + + 58
----
-40

query I rowsort
SELECT ALL ( + 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4784
SELECT + + 24 DIV COUNT( * ) * - - CASE ( - 71 ) WHEN - 14 THEN - - 65 + + 8 ELSE + - 58 END AS col0, + COALESCE ( - 19, + 32 * - + SUM( 87 ) * 24 + - 30 )
----
-1392
-19

skipif mysql # not compatible
query II rowsort label-4784
SELECT + + 24 / COUNT ( * ) * - - CASE ( - 71 ) WHEN - 14 THEN - - 65 + + 8 ELSE + - 58 END AS col0, + COALESCE ( - 19, + 32 * - + SUM ( 87 ) * 24 + - 30 )
----
-1392
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT ALL 69 + - - CAST( - 66 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL 69 + - - CAST ( - 66 AS INTEGER )
----
3

query I rowsort
SELECT + NULLIF ( - 42, + ( - - 94 ) ) + + 67 * + - 95 + - 64 AS col1
----
-6471

query I rowsort
SELECT ALL 36 + - 15
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4788
SELECT - COUNT( - 6 ) + - + 31 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT - COUNT ( - 6 ) + - + 31 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT ALL - - 25 DIV ( COALESCE ( + + 96, - ( + 15 ), + 40 ) ) + 35 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - - 25 / ( COALESCE ( + + 96, - ( + 15 ), + 40 ) ) + 35 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4790
SELECT - - 91 + 22 - + COUNT( * ) - - 85 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT - - 91 + 22 - + COUNT ( * ) - - 85 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT + + COUNT( * ) * - 81
----
-81

skipif mysql # not compatible
query I rowsort label-4791
SELECT + + COUNT ( * ) * - 81
----
-81

query I rowsort
SELECT + 28 * 39 * 19 + - 12
----
20736

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT ALL + 75 DIV + 96 + + 84 + - - 11 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + 75 / + 96 + + 84 + - - 11 AS col0
----
95

query I rowsort
SELECT + ( 32 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ( CASE + 75 WHEN + 39 / + MAX( DISTINCT - 76 ) - + 53 THEN + + ( + + 15 ) * - SUM( DISTINCT - 52 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT ( CASE + 75 WHEN + 39 / + MAX ( DISTINCT - 76 ) - + 53 THEN + + ( + + 15 ) * - SUM ( DISTINCT - 52 ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL 1 * + NULLIF ( NULLIF ( + + 7, 73 + CASE - + 93 WHEN 65 + - 3 THEN - 45 + + - 12 + 58 + 53 + - 97 * 63 * - 17 WHEN COALESCE ( + 22, + 31 + SUM( 99 ) ) THEN NULL END - + 93 * 39 ), 14 * COUNT( * ) ) + - ( - NULLIF ( 63, 29 * NULLIF ( 38, 16 ) + 8 ) - - 87 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL 1 * + NULLIF ( NULLIF ( + + 7, 73 + CASE - + 93 WHEN 65 + - 3 THEN - 45 + + - 12 + 58 + 53 + - 97 * 63 * - 17 WHEN COALESCE ( + 22, + 31 + SUM ( 99 ) ) THEN NULL END - + 93 * 39 ), 14 * COUNT ( * ) ) + - ( - NULLIF ( 63, 29 * NULLIF ( 38, 16 ) + 8 ) - - 87 ) AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT DISTINCT + 87 * + + NULLIF ( + + 52, - + 60 * 68 - 70 + - 18 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT + 87 * + + NULLIF ( + + 52, - + 60 * 68 - 70 + - 18 ) * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 96 * - - 59 AS col1
----
5664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4799
SELECT DISTINCT 82 * - MIN( + 46 ) - CAST( 18 AS SIGNED ), + COUNT( * ) AS col0
----
-3790
1

skipif mysql # not compatible
query II rowsort label-4799
SELECT DISTINCT 82 * - MIN ( + 46 ) - CAST ( 18 AS INTEGER ), + COUNT ( * ) AS col0
----
-3790
1

query I rowsort
SELECT DISTINCT + 87 * - 13 col1
----
-1131

query I rowsort
SELECT + 57 * + 63 * + 46
----
165186

query I rowsort
SELECT - 63 * - 35 AS col0
----
2205

query II rowsort
SELECT ALL + 26 col1, - 6 AS col1
----
26
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - 74 + - ( CASE + - 75 WHEN 37 * + + COUNT( + + COALESCE ( + NULLIF ( - 92, + - 84 + + ( 51 ) ), 87 / + - 43 ) ) * 37 THEN + AVG ( + 44 ) END ) + 93 * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 74 + - ( CASE + - 75 WHEN 37 * + + COUNT ( + + COALESCE ( + NULLIF ( - 92, + - 84 + + ( 51 ) ), 87 / + - 43 ) ) * 37 THEN + AVG ( + 44 ) END ) + 93 * - 33
----
NULL

query I rowsort
SELECT COALESCE ( - 41, - + 80 + 60 * + 62 * + 83 * 72 )
----
-41

query I rowsort
SELECT COALESCE ( + - 23, - + NULLIF ( - 59, ( + - 28 ) ) ) col2
----
-23

query I rowsort
SELECT COALESCE ( - 24, + 89, + 73 )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT ALL 94 * 64 - - - 26 * SUM( - 46 ), 23 AS col1
----
7212
23

skipif mysql # not compatible
query II rowsort label-4808
SELECT ALL 94 * 64 - - - 26 * SUM ( - 46 ), 23 AS col1
----
7212
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - 27 * COUNT( * ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-4809
SELECT - 27 * COUNT ( * ) col1
----
-27

query I rowsort
SELECT ALL + ( 22 ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4811
SELECT COALESCE ( ( CASE - - 97 WHEN - 32 + - 97 - + ( 84 ) / - + 99 * - 28 * - COUNT( * ) + - + COUNT( * ) THEN COALESCE ( - COUNT( * ), + 7 ) WHEN - 94 + 27 THEN 94 ELSE NULL END ), COUNT( * ) * 56, SUM( ALL - CAST( 70 AS SIGNED ) ) + 89 )
----
56

skipif mysql # not compatible
query I rowsort label-4811
SELECT COALESCE ( ( CASE - - 97 WHEN - 32 + - 97 - + ( 84 ) / - + 99 * - 28 * - COUNT ( * ) + - + COUNT ( * ) THEN COALESCE ( - COUNT ( * ), + 7 ) WHEN - 94 + 27 THEN 94 ELSE NULL END ), COUNT ( * ) * 56, SUM ( ALL - CAST ( 70 AS INTEGER ) ) + 89 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4812
SELECT + 49 * 69 + + 70 + + CAST( - MAX( ALL - - 17 ) AS SIGNED ) col1
----
3434

skipif mysql # not compatible
query I rowsort label-4812
SELECT + 49 * 69 + + 70 + + CAST ( - MAX ( ALL - - 17 ) AS INTEGER ) col1
----
3434

query I rowsort
SELECT DISTINCT + NULLIF ( - 99, + COALESCE ( - 43, - 59, 0 ) ) AS col0
----
-99

query I rowsort
SELECT ALL 91 * - 76 * ( + 74 )
----
-511784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT ALL - 34 / - CASE + 90 WHEN 39 / - - 63 THEN CAST( - + SUM( ALL - + 13 ) AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - 34 / - CASE + 90 WHEN 39 / - - 63 THEN CAST ( - + SUM ( ALL - + 13 ) AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT DISTINCT 8 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT 8 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT - 25 * + ( - - COALESCE ( 66, + COUNT( * ) ) ) * + - 33
----
54450

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT - 25 * + ( - - COALESCE ( 66, + COUNT ( * ) ) ) * + - 33
----
54450

onlyif mysql # DIV for integer division: 
query I rowsort label-4818
SELECT + + 13 DIV + 5
----
2

skipif mysql # not compatible
query I rowsort label-4818
SELECT + + 13 / + 5
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4819
SELECT - - 2 * + + ( + COUNT( * ) ) DIV + + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4819
SELECT - - 2 * + + ( + COUNT ( * ) ) / + + 96 AS col2
----
0

query I rowsort
SELECT - + 27 * + 44 col1
----
-1188

query I rowsort
SELECT + ( + 73 ) + + 96 + - + 88
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL COUNT( * ) + + + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL COUNT ( * ) + + + 7 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4823
SELECT - 15 AS col2, + 20 - - - 60 + 41 * - CASE - 68 WHEN + - 51 * 79 + - - 53 - MIN( DISTINCT + + 78 ) THEN - - 73 END + + 15 - - + 31
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-4823
SELECT - 15 AS col2, + 20 - - - 60 + 41 * - CASE - 68 WHEN + - 51 * 79 + - - 53 - MIN ( DISTINCT + + 78 ) THEN - - 73 END + + 15 - - + 31
----
-15
NULL

query I rowsort
SELECT ALL + ( - 76 ) + + ( + + 45 )
----
-31

query I rowsort
SELECT ALL - 56 + 67
----
11

query II rowsort
SELECT ALL - 75 col0, - 28
----
-75
-28

query I rowsort
SELECT ALL + 75 + + ( + - 2 ) * + + 3
----
69

query II rowsort
SELECT - - 1 - - 55 * 38 + 93 * - 30 AS col2, 46 AS col2
----
-699
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + - ( - COUNT( * ) ) * - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4829
SELECT + - ( - COUNT ( * ) ) * - 45 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT DISTINCT 42 DIV + 5 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT 42 / + 5 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL MIN( - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL MIN ( - 27 ) AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT + COUNT( * ) DIV - COALESCE ( - 88, - 46 ) * + 51 - + + 42
----
-42

skipif mysql # not compatible
query I rowsort label-4832
SELECT + COUNT ( * ) / - COALESCE ( - 88, - 46 ) * + 51 - + + 42
----
-42

query I rowsort
SELECT ALL 69 + - 53
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT DISTINCT - - 63 DIV 44 + + - 70
----
-69

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT - - 63 / 44 + + - 70
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4835
SELECT + 53 - - 39 * 38 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 53 - - 39 * 38 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT CASE - COUNT( * ) WHEN - - 7 THEN - ( + ( + 89 ) ) WHEN - + COUNT( * ) THEN 61 END
----
61

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT CASE - COUNT ( * ) WHEN - - 7 THEN - ( + ( + 89 ) ) WHEN - + COUNT ( * ) THEN 61 END
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL 99 - + 49 - - - 48 - + + 7 * - 53 * - 27 * + + 74 + COUNT( * )
----
-741255

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL 99 - + 49 - - - 48 - + + 7 * - 53 * - 27 * + + 74 + COUNT ( * )
----
-741255

query I rowsort
SELECT ALL - COALESCE ( 15, - 76, 39 + + 17 ) col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT DISTINCT - 28 DIV + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT - 28 / + 43 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL - COALESCE ( + CAST( + 70 AS SIGNED ), - 48 )
----
-70

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - COALESCE ( + CAST ( + 70 AS INTEGER ), - 48 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4841
SELECT 94 col1, 90 - - 48 + + 87 - + + 85 * - CAST( - 9 AS SIGNED ) * - 66 col1
----
94
50715

skipif mysql # not compatible
query II rowsort label-4841
SELECT 94 col1, 90 - - 48 + + 87 - + + 85 * - CAST ( - 9 AS INTEGER ) * - 66 col1
----
94
50715

onlyif mysql # DIV for integer division: 
query II rowsort label-4842
SELECT DISTINCT - 16 AS col1, 26 DIV - 76 AS col1
----
-16
0

skipif mysql # not compatible
query II rowsort label-4842
SELECT DISTINCT - 16 AS col1, 26 / - 76 AS col1
----
-16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT COUNT( * ) * + COUNT( * ) + 48 * + 55 AS col0
----
2641

skipif mysql # not compatible
query I rowsort label-4843
SELECT COUNT ( * ) * + COUNT ( * ) + 48 * + 55 AS col0
----
2641

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT 90 DIV + ( + - 3 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4844
SELECT 90 / + ( + - 3 ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4845
SELECT ALL 69 DIV 66 col2, + COUNT( * ) * 67
----
1
67

skipif mysql # not compatible
query II rowsort label-4845
SELECT ALL 69 / 66 col2, + COUNT ( * ) * 67
----
1
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4846
SELECT ALL - COUNT( * ), - ( + COUNT( * ) ) + 88 DIV - 69 - - 3 AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-4846
SELECT ALL - COUNT ( * ), - ( + COUNT ( * ) ) + 88 / - 69 - - 3 AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT 10 * NULLIF ( - COUNT( * ), - 39 + - 93 * - 10 ) - + + NULLIF ( - 24, 37 * + 22 )
----
14

skipif mysql # not compatible
query I rowsort label-4847
SELECT 10 * NULLIF ( - COUNT ( * ), - 39 + - 93 * - 10 ) - + + NULLIF ( - 24, 37 * + 22 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT CASE - 0 WHEN COUNT( * ) THEN NULL WHEN + - ( - 72 ) * + 71 THEN - 62 ELSE NULL END + - + 84 + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT CASE - 0 WHEN COUNT ( * ) THEN NULL WHEN + - ( - 72 ) * + 71 THEN - 62 ELSE NULL END + - + 84 + - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL - 38 * + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - 38 * + COUNT ( * )
----
-38

query II rowsort
SELECT + 70, 45 AS col2
----
70
45

query II rowsort
SELECT 15 * + 28 AS col0, 62 * 71 AS col0
----
420
4402

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL - COUNT( * ) + + 69
----
68

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - COUNT ( * ) + + 69
----
68

query II rowsort
SELECT + 81 AS col0, + 96 AS col0
----
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT - COUNT( * ) * - COUNT( * ) + + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4854
SELECT - COUNT ( * ) * - COUNT ( * ) + + 19 AS col1
----
20

query I rowsort
SELECT DISTINCT - 46 + - ( 52 ) AS col0
----
-98

query I rowsort
SELECT ALL 68 + - ( + 89 ) - - 11 AS col2
----
-10

query I rowsort
SELECT DISTINCT - - 66 + + 48
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4858
SELECT COUNT( * ) + 98 AS col2, 9 DIV - - 71
----
99
0

skipif mysql # not compatible
query II rowsort label-4858
SELECT COUNT ( * ) + 98 AS col2, 9 / - - 71
----
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT ALL - + CAST( NULL AS SIGNED ) + - + 41 * COALESCE ( + + 84, ( - + 84 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - + CAST ( NULL AS INTEGER ) + - + 41 * COALESCE ( + + 84, ( - + 84 ) )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 60, - 97 ) col2
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4861
SELECT + 34 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT + 34 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 74 + 31 + + + 29 + - 34
----
100

query I rowsort
SELECT ALL + + 41 * + ( + NULLIF ( - 8, AVG ( DISTINCT + 91 ) ) )
----
-328

query I rowsort
SELECT 20 + 53 + - 94 AS col2
----
-21

query II rowsort
SELECT 64 - - 31, 9 AS col0
----
95
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4866
SELECT - COALESCE ( 30, 43 * + COUNT( * ) * - + 42 + + + 10 * - 6 * - + ( - 40 ) DIV - - 6 + 67 * MAX( + 28 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4866
SELECT - COALESCE ( 30, 43 * + COUNT ( * ) * - + 42 + + + 10 * - 6 * - + ( - 40 ) / - - 6 + 67 * MAX ( + 28 ) ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL - 61 * - + COUNT( DISTINCT + - 69 )
----
61

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - 61 * - + COUNT ( DISTINCT + - 69 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - 1 + + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT - 1 + + + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT 10 - 20 * 25 * CAST( NULL AS SIGNED ) + + 98 * + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT 10 - 20 * 25 * CAST ( NULL AS INTEGER ) + + 98 * + + 31 AS col0
----
NULL

query I rowsort
SELECT ALL - + 28 + 58 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT - MIN( DISTINCT + 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4871
SELECT - MIN ( DISTINCT + 34 ) AS col0
----
-34

query I rowsort
SELECT + 50 + - 52 - 19
----
-21

query I rowsort
SELECT ALL + 9 - - 91 AS col2
----
100

query II rowsort
SELECT ALL 81 - + 16 AS col1, 8 AS col1
----
65
8

query I rowsort
SELECT 81 * - 99 AS col0
----
-8019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT ( CASE 98 WHEN + COALESCE ( - 8, + 64 ) + - - 84 THEN COALESCE ( + - 16, - 12 ) - + + CAST( - 29 AS SIGNED ) * - 20 + 87 + - 68 * SUM( ALL - ( 72 ) ) WHEN + ( + CASE 10 WHEN 90 THEN + COUNT( ALL + 87 ) * + 79 ELSE NULL END ) THEN + 67 ELSE - 10 - 97 END ) + CASE 10 WHEN 14 THEN 84 END * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT ( CASE 98 WHEN + COALESCE ( - 8, + 64 ) + - - 84 THEN COALESCE ( + - 16, - 12 ) - + + CAST ( - 29 AS INTEGER ) * - 20 + 87 + - 68 * SUM ( ALL - ( 72 ) ) WHEN + ( + CASE 10 WHEN 90 THEN + COUNT ( ALL + 87 ) * + 79 ELSE NULL END ) THEN + 67 ELSE - 10 - 97 END ) + CASE 10 WHEN 14 THEN 84 END * + 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4877
SELECT COUNT( * ) + - 29, + CAST( NULL AS SIGNED ) * 56 AS col2
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-4877
SELECT COUNT ( * ) + - 29, + CAST ( NULL AS INTEGER ) * 56 AS col2
----
-28
NULL

query I rowsort
SELECT ALL 45 * ( - + 94 ) * + 93 AS col1
----
-393390

query I rowsort
SELECT 71 * - + 23 * - + 19 col1
----
31027

query I rowsort
SELECT DISTINCT 80 * 25 AS col2
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT COUNT( ALL + 22 ) * - NULLIF ( - 44, - MIN( DISTINCT + - 88 ) ) * - - 52 * + + 92
----
210496

skipif mysql # not compatible
query I rowsort label-4881
SELECT COUNT ( ALL + 22 ) * - NULLIF ( - 44, - MIN ( DISTINCT + - 88 ) ) * - - 52 * + + 92
----
210496

query I rowsort
SELECT ALL + 52 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT MIN( ALL - 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4883
SELECT MIN ( ALL - 88 ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT COALESCE ( - ( + CAST( NULL AS SIGNED ) ), 16 ) * 38
----
608

skipif mysql # not compatible
query I rowsort label-4884
SELECT COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), 16 ) * 38
----
608

query I rowsort
SELECT 96 * - + 87 col1
----
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT 34 * COUNT( - 20 ) * + 40
----
1360

skipif mysql # not compatible
query I rowsort label-4886
SELECT 34 * COUNT ( - 20 ) * + 40
----
1360

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT 41 DIV ( 18 )
----
2

skipif mysql # not compatible
query I rowsort label-4887
SELECT 41 / ( 18 )
----
2

query I rowsort
SELECT ALL 13 + + ( 72 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT + NULLIF ( - 4, + - COUNT( * ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4889
SELECT + NULLIF ( - 4, + - COUNT ( * ) ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-4890
SELECT ALL - 0 + 85 AS col2, 60 + 86 DIV - 90 col0
----
85
60

skipif mysql # not compatible
query II rowsort label-4890
SELECT ALL - 0 + 85 AS col2, 60 + 86 / - 90 col0
----
85
60

query I rowsort
SELECT - 85 * - + 16 * - + NULLIF ( - 64, - - 46 ) + 34
----
87074

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT + 10 * - + 68 col0, 74 + - - COUNT( * )
----
-680
75

skipif mysql # not compatible
query II rowsort label-4892
SELECT + 10 * - + 68 col0, 74 + - - COUNT ( * )
----
-680
75

query I rowsort
SELECT DISTINCT - - 80 + 64 * 45
----
2960

query II rowsort
SELECT DISTINCT - 6 - 30 AS col0, 85 AS col0
----
-36
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4895
SELECT 48 * 98 AS col0, MAX( ALL COALESCE ( - 33, - + 63 ) )
----
4704
-33

skipif mysql # not compatible
query II rowsort label-4895
SELECT 48 * 98 AS col0, MAX ( ALL COALESCE ( - 33, - + 63 ) )
----
4704
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT COUNT( * ) + 38 + - - 37 * + - COUNT( * ) + + COUNT( * ) + - 78 * + 89 + + + 12 + 88
----
-6839

skipif mysql # not compatible
query I rowsort label-4896
SELECT COUNT ( * ) + 38 + - - 37 * + - COUNT ( * ) + + COUNT ( * ) + - 78 * + 89 + + + 12 + 88
----
-6839

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL + MIN( - 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL + MIN ( - 51 ) AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT NULLIF ( - ( + 43 ), - 18 * + 35 ) * + NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) * + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT NULLIF ( - ( + 43 ), - 18 * + 35 ) * + NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + + 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT 58 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-4899
SELECT 58 / + 35
----
1

query I rowsort
SELECT DISTINCT + + ( 53 ) * - 94 + 46
----
-4936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4901
SELECT - 31 AS col0, - COALESCE ( - + 16, - 90 + - ( 31 ) - 60 / + 74 ) * + - CAST( NULL AS SIGNED ) + 19 + + - AVG ( 58 ) + + SUM( - 50 ) + + CAST( + 73 AS SIGNED ) * + COUNT( * ) AS col2
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-4901
SELECT - 31 AS col0, - COALESCE ( - + 16, - 90 + - ( 31 ) - 60 / + 74 ) * + - CAST ( NULL AS INTEGER ) + 19 + + - AVG ( 58 ) + + SUM ( - 50 ) + + CAST ( + 73 AS INTEGER ) * + COUNT ( * ) AS col2
----
-31
NULL

query I rowsort
SELECT - 58 - + 72 AS col0
----
-130

query I rowsort
SELECT ALL + 10 * + - 25 AS col1
----
-250

query I rowsort
SELECT ALL - 56 * + 45 col1
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT DISTINCT CASE + 45 WHEN + + 37 THEN NULL ELSE + 75 DIV + 65 END
----
1

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT CASE + 45 WHEN + + 37 THEN NULL ELSE + 75 / + 65 END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT DISTINCT COALESCE ( - COUNT( * ), 20 * + CASE + 88 WHEN - + 17 THEN NULL WHEN + - CASE 28 WHEN + + NULLIF ( - 73, - 36 ) * - 9 THEN NULL ELSE 81 - - 69 + 79 END * + 57 * + 68 THEN NULL WHEN - 91 THEN NULL ELSE + COUNT( * ) * 85 END + + 40 - 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT COALESCE ( - COUNT ( * ), 20 * + CASE + 88 WHEN - + 17 THEN NULL WHEN + - CASE 28 WHEN + + NULLIF ( - 73, - 36 ) * - 9 THEN NULL ELSE 81 - - 69 + 79 END * + 57 * + 68 THEN NULL WHEN - 91 THEN NULL ELSE + COUNT ( * ) * 85 END + + 40 - 88 ) AS col1
----
-1

query I rowsort
SELECT ALL + 14 * + - 52 + - 55 AS col0
----
-783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4908
SELECT + ( - + 94 ) DIV - + 27 + - + 13 + + NULLIF ( + COUNT( * ), + - 12 * 10 ) * + - 94 - - - 1 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-4908
SELECT + ( - + 94 ) / - + 27 + - + 13 + + NULLIF ( + COUNT ( * ), + - 12 * 10 ) * + - 94 - - - 1 AS col0
----
-105

query I rowsort
SELECT + 32 * - + 6 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL - 37 * + MAX( ALL + 44 ) + 23 + + - SUM( - 60 ) * - - 39
----
735

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - 37 * + MAX ( ALL + 44 ) + 23 + + - SUM ( - 60 ) * - - 39
----
735

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4911
SELECT - ( + COUNT( * ) ) DIV - COALESCE ( - - 44, - 63, 33 * CASE COALESCE ( AVG ( + - 94 ), - COUNT( DISTINCT 1 ) * - - 78 - + 0 + + CAST( + - 89 AS DECIMAL ) ) WHEN + - 32 THEN + 29 ELSE NULL END ) - NULLIF ( + 11, - 26 ) DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT - ( + COUNT ( * ) ) / - COALESCE ( - - 44, - 63, 33 * CASE COALESCE ( AVG ( + - 94 ), - COUNT ( DISTINCT 1 ) * - - 78 - + 0 + + CAST ( + - 89 AS REAL ) ) WHEN + - 32 THEN + 29 ELSE NULL END ) - NULLIF ( + 11, - 26 ) / 68 AS col0
----
0

query I rowsort
SELECT - 20 + - + 23
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT 85 * - 82 - + + 64 * 4 * + - 32 + - 25 * COUNT( ALL + 99 ) + - 79 + - 9 AS col1
----
1109

skipif mysql # not compatible
query I rowsort label-4913
SELECT 85 * - 82 - + + 64 * 4 * + - 32 + - 25 * COUNT ( ALL + 99 ) + - 79 + - 9 AS col1
----
1109

query II rowsort
SELECT ALL + 70, - 45 AS col2
----
70
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT - NULLIF ( + - COUNT( * ), - 39 ) * + 31 + ( 87 ) + - - 54 + - + COUNT( * ) + - NULLIF ( + CAST( + + 65 AS SIGNED ), - 66 )
----
106

skipif mysql # not compatible
query I rowsort label-4915
SELECT - NULLIF ( + - COUNT ( * ), - 39 ) * + 31 + ( 87 ) + - - 54 + - + COUNT ( * ) + - NULLIF ( + CAST ( + + 65 AS INTEGER ), - 66 )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT + COUNT( * ) * + 38 col2
----
38

skipif mysql # not compatible
query I rowsort label-4916
SELECT + COUNT ( * ) * + 38 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT SUM( DISTINCT - 34 ) * - + ( - 92 ) + 6 * - 79 AS col1
----
-3602

skipif mysql # not compatible
query I rowsort label-4917
SELECT SUM ( DISTINCT - 34 ) * - + ( - 92 ) + 6 * - 79 AS col1
----
-3602

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4918
SELECT - + CAST( + 31 AS DECIMAL ) * - CASE 42 WHEN + + 42 THEN NULL ELSE - + 40 END + - NULLIF ( + ( + + 2 ), + 6 * 1 + - 9 + + - 37 / - - 57 * + - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT - + CAST ( + 31 AS REAL ) * - CASE 42 WHEN + + 42 THEN NULL ELSE - + 40 END + - NULLIF ( + ( + + 2 ), + 6 * 1 + - 9 + + - 37 / - - 57 * + - 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL 73 * - SUM( ALL 54 ) AS col1
----
-3942

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL 73 * - SUM ( ALL 54 ) AS col1
----
-3942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT COALESCE ( - ( CAST( 41 AS SIGNED ) ), + 84 )
----
-41

skipif mysql # not compatible
query I rowsort label-4920
SELECT COALESCE ( - ( CAST ( 41 AS INTEGER ) ), + 84 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + + MIN( ALL + - 17 ) + - - 53 * + 73 + 67 * 19
----
5125

skipif mysql # not compatible
query I rowsort label-4921
SELECT + + MIN ( ALL + - 17 ) + - - 53 * + 73 + 67 * 19
----
5125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4922
SELECT + 60 DIV 78 + + 49 + 77 AS col2, COUNT( * )
----
126
1

skipif mysql # not compatible
query II rowsort label-4922
SELECT + 60 / 78 + + 49 + 77 AS col2, COUNT ( * )
----
126
1

query I rowsort
SELECT + ( 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + MIN( ALL + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4924
SELECT + MIN ( ALL + 93 ) AS col2
----
93

query II rowsort
SELECT ALL 63 AS col2, - 38 AS col1
----
63
-38

query I rowsort
SELECT + 5 - + + 96
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT - + MAX( 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4927
SELECT - + MAX ( 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT + 76 * - 89 DIV + COUNT( * ) col0
----
-6764

skipif mysql # not compatible
query I rowsort label-4928
SELECT + 76 * - 89 / + COUNT ( * ) col0
----
-6764

query I rowsort
SELECT DISTINCT + 1 * - + 12 * - - 12 * - 4
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT + 34 + - 93 + + 50 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT + 34 + - 93 + + 50 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 40 - - 28 AS col0
----
-12

query I rowsort
SELECT ALL NULLIF ( 57, - + ( - + 61 ) * + 89 + - 90 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL CASE - - 45 WHEN 55 THEN + 55 * + 34 + COUNT( * ) + + COALESCE ( + COALESCE ( - - 93, + 60, - 77 * COUNT( * ) + 45 * + - COUNT( * ) ), - + COUNT( * ) * + 61 - 88 * - 94 + + COUNT( * ) ) + 95 * - SUM( ALL ( + 84 ) ) ELSE 4 * - 15 END AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL CASE - - 45 WHEN 55 THEN + 55 * + 34 + COUNT ( * ) + + COALESCE ( + COALESCE ( - - 93, + 60, - 77 * COUNT ( * ) + 45 * + - COUNT ( * ) ), - + COUNT ( * ) * + 61 - 88 * - 94 + + COUNT ( * ) ) + 95 * - SUM ( ALL ( + 84 ) ) ELSE 4 * - 15 END AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT + ( + 41 ) * ( - COUNT( * ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4934
SELECT + ( + 41 ) * ( - COUNT ( * ) ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT + CAST( NULL AS SIGNED ) + + - AVG ( ALL - + 3 ) * - 86 + + 25 + + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT + CAST ( NULL AS INTEGER ) + + - AVG ( ALL - + 3 ) * - 86 + + 25 + + 9 AS col0
----
NULL

query I rowsort
SELECT ALL - CASE 62 WHEN + + 94 THEN 35 END + - 24 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4937
SELECT ALL MAX( ALL - CAST( - + 84 AS SIGNED ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL MAX ( ALL - CAST ( - + 84 AS INTEGER ) ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - 80 + + COUNT( * ) + + 25 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4938
SELECT - 80 + + COUNT ( * ) + + 25 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL + COUNT( * ) + + SUM( DISTINCT + - 99 ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + COUNT ( * ) + + SUM ( DISTINCT + - 99 ) col2
----
-98

query I rowsort
SELECT - 56 + 11
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL + 52 + - - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + 52 + - - COUNT ( * )
----
53

query I rowsort
SELECT + 44 * + 42 AS col0
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL - COUNT( + + 75 ) * + 23 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - COUNT ( + + 75 ) * + 23 AS col2
----
-23

query I rowsort
SELECT - ( 87 ) * - 11 AS col2
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT - 26 + + - COUNT( * ) * - 65
----
39

skipif mysql # not compatible
query I rowsort label-4945
SELECT - 26 + + - COUNT ( * ) * - 65
----
39

query I rowsort
SELECT ALL + 16 * + ( - ( 41 ) ) AS col2
----
-656

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4947
SELECT DISTINCT + 11 / + CASE CASE + - 88 WHEN + MAX( ALL 21 ) - + 0 + - - 53 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN 79 / - CASE + - 46 WHEN + ( - 56 ) / + 77 THEN + 17 * 23 * 63 * + 55 WHEN 92 + ( 45 ) THEN NULL WHEN - CASE ( 84 ) WHEN COALESCE ( + 59, - 48 * + COUNT( * ) ) + NULLIF ( ( - ( + 69 ) ), ( + ( - 40 ) ) ) THEN NULL WHEN - 11 * - 73 THEN NULL WHEN - 84 + - 37 * + 94 THEN NULL ELSE - SUM( - 55 ) END THEN - 10 ELSE - 79 END + - 52 / 50 ELSE 81 END WHEN - 99 THEN NULL WHEN - COUNT( * ) THEN ( 30 ) * ( MIN( DISTINCT - 42 ) + + 17 ) ELSE NULL END + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT + 11 / + CASE CASE + - 88 WHEN + MAX ( ALL 21 ) - + 0 + - - 53 THEN NULL WHEN CAST ( NULL AS REAL ) THEN 79 / - CASE + - 46 WHEN + ( - 56 ) / + 77 THEN + 17 * 23 * 63 * + 55 WHEN 92 + ( 45 ) THEN NULL WHEN - CASE ( 84 ) WHEN COALESCE ( + 59, - 48 * + COUNT ( * ) ) + NULLIF ( ( - ( + 69 ) ), ( + ( - 40 ) ) ) THEN NULL WHEN - 11 * - 73 THEN NULL WHEN - 84 + - 37 * + 94 THEN NULL ELSE - SUM ( - 55 ) END THEN - 10 ELSE - 79 END + - 52 / 50 ELSE 81 END WHEN - 99 THEN NULL WHEN - COUNT ( * ) THEN ( 30 ) * ( MIN ( DISTINCT - 42 ) + + 17 ) ELSE NULL END + 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT DISTINCT 58 DIV 52 + 42
----
43

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT 58 / 52 + 42
----
43

query I rowsort
SELECT - 90 * - + 19 * - NULLIF ( - 2, AVG ( + 52 ) ) AS col2
----
3420

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT 88 DIV 15 - + + ( - 48 ) + + + 55 * + 86 col1
----
4783

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT 88 / 15 - + + ( - 48 ) + + + 55 * + 86 col1
----
4783

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ( ( + MIN( ALL - + 84 ) ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4951
SELECT ( ( + MIN ( ALL - + 84 ) ) ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT + ( ( + MIN( DISTINCT 89 ) ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + ( ( + MIN ( DISTINCT 89 ) ) ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - - COUNT( * ) * + 89
----
89

skipif mysql # not compatible
query I rowsort label-4953
SELECT - - COUNT ( * ) * + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT + COUNT( + 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4954
SELECT + COUNT ( + 79 ) AS col1
----
1

query I rowsort
SELECT + - 79 * - NULLIF ( 54, + 45 ) + + + ( + 3 )
----
4269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT ALL - CAST( + - 97 AS SIGNED ) * - 21
----
-2037

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL - CAST ( + - 97 AS INTEGER ) * - 21
----
-2037

query I rowsort
SELECT - 67 * - - 37
----
-2479

query I rowsort
SELECT DISTINCT 6 * - - ( + ( 98 ) )
----
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT DISTINCT + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL 25 * 69 + + - COUNT( * ) + + 92 + - 47
----
1769

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL 25 * 69 + + - COUNT ( * ) + + 92 + - 47
----
1769

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT ALL - + 54 * 23 DIV - 99 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL - + 54 * 23 / - 99 AS col1
----
12

query I rowsort
SELECT 56 - + 79 col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT + ( + 97 ) DIV - 37 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4963
SELECT + ( + 97 ) / - 37 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT + 30 DIV + - 46
----
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT + 30 / + - 46
----
0

query I rowsort
SELECT + 70 * ( - + 69 ) * 87
----
-420210

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT 64 + + 33 AS col0, + 43 * - 26 * - COUNT( * ) AS col1
----
97
1118

skipif mysql # not compatible
query II rowsort label-4966
SELECT 64 + + 33 AS col0, + 43 * - 26 * - COUNT ( * ) AS col1
----
97
1118

query I rowsort
SELECT - ( + 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL NULLIF ( - + 12, + 80 * - ( - COALESCE ( + COUNT( * ), - NULLIF ( + NULLIF ( + 86, 73 ), - 48 + - - 30 ) ) ) )
----
-12

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL NULLIF ( - + 12, + 80 * - ( - COALESCE ( + COUNT ( * ), - NULLIF ( + NULLIF ( + 86, 73 ), - 48 + - - 30 ) ) ) )
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-4969
SELECT ALL + 97 DIV - 36 AS col2, 59
----
-2
59

skipif mysql # not compatible
query II rowsort label-4969
SELECT ALL + 97 / - 36 AS col2, 59
----
-2
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT COUNT( * ) + - 86 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4970
SELECT COUNT ( * ) + - 86 AS col1
----
-85

query I rowsort
SELECT ALL 22 + + 84 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL CASE + 97 WHEN + + 73 + 53 - - CASE + + 51 WHEN + + 78 / - 93 - - + MAX( DISTINCT - 54 ) * - COUNT( DISTINCT + + 4 ) / - 81 / - 79 THEN - 70 END / + ( + - 89 ) * + 64 * + 34 + + AVG ( ALL 17 ) THEN NULL WHEN 83 / 1 THEN + 9 * 26 ELSE COUNT( * ) + 74 END + ( + 78 )
----
153

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL CASE + 97 WHEN + + 73 + 53 - - CASE + + 51 WHEN + + 78 / - 93 - - + MAX ( DISTINCT - 54 ) * - COUNT ( DISTINCT + + 4 ) / - 81 / - 79 THEN - 70 END / + ( + - 89 ) * + 64 * + 34 + + AVG ( ALL 17 ) THEN NULL WHEN 83 / 1 THEN + 9 * 26 ELSE COUNT ( * ) + 74 END + ( + 78 )
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4973
SELECT - 87 AS col1, 33 * + - COUNT( ALL - - CAST( NULL AS SIGNED ) ) * SUM( ALL - 36 ) + 52 + - 89 * + 50 * COUNT( * ) AS col0
----
-87
-4398

skipif mysql # not compatible
query II rowsort label-4973
SELECT - 87 AS col1, 33 * + - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) * SUM ( ALL - 36 ) + 52 + - 89 * + 50 * COUNT ( * ) AS col0
----
-87
-4398

query II rowsort
SELECT 76, + ( - 85 ) AS col1
----
76
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT COUNT( * ) + + - 54 * 4 AS col1
----
-215

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT COUNT ( * ) + + - 54 * 4 AS col1
----
-215

query I rowsort
SELECT ( + 2 ) - - - ( - + 58 ) - + + 58 - 20 AS col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4977
SELECT MIN( + + 0 ) - - ( - + 49 ) DIV + ( - - 18 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4977
SELECT MIN ( + + 0 ) - - ( - + 49 ) / + ( - - 18 ) AS col1
----
-2

query I rowsort
SELECT ALL 15 * + 47 * + 31 * + - 62 * - 28
----
37940280

query I rowsort
SELECT 99 + - - 48 AS col0
----
147

query I rowsort
SELECT 35 * + 21 AS col0
----
735

query I rowsort
SELECT ALL + 21 + + + 29 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT ALL - CAST( - NULLIF ( + 17, COUNT( DISTINCT 7 ) ) AS SIGNED ) - 24 * + - CAST( NULL AS SIGNED ) / - - 26 + + SUM( + 92 ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - CAST ( - NULLIF ( + 17, COUNT ( DISTINCT 7 ) ) AS INTEGER ) - 24 * + - CAST ( NULL AS INTEGER ) / - - 26 + + SUM ( + 92 ) + + 21
----
NULL

query I rowsort
SELECT ALL - 31 * 74
----
-2294

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT ALL 49 DIV + 9 col1
----
5

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL 49 / + 9 col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4985
SELECT + 99 * + + COUNT( * ) + + 24 + + 86 * 43 DIV - 49
----
48

skipif mysql # not compatible
query I rowsort label-4985
SELECT + 99 * + + COUNT ( * ) + + 24 + + 86 * 43 / - 49
----
48

query II rowsort
SELECT + 96, 3 AS col1
----
96
3

query II rowsort
SELECT + 29 col0, + 29 * NULLIF ( + - 52, + - 23 )
----
29
-1508

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL - - SUM( ALL + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - - SUM ( ALL + 77 )
----
77

query I rowsort
SELECT ALL - - 32 * + - 60
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT + COUNT( * ) + 17 - ( - - 3 ) col2
----
15

skipif mysql # not compatible
query I rowsort label-4990
SELECT + COUNT ( * ) + 17 - ( - - 3 ) col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4991
SELECT - 15 DIV + + MAX( + 91 ) * - - 72 - - 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4991
SELECT - 15 / + + MAX ( + 91 ) * - - 72 - - 55 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT - 51 * + CASE - COUNT( * ) WHEN - + 87 THEN - - MAX( ALL - 72 ) + + ( 6 ) * + - MIN( - 49 ) + + 31 + - + CAST( NULL AS SIGNED ) WHEN - 23 THEN - COUNT( * ) ELSE NULL END * + ( + SUM( + 94 ) ) + CAST( NULL AS SIGNED ) - + 78 - MAX( - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT - 51 * + CASE - COUNT ( * ) WHEN - + 87 THEN - - MAX ( ALL - 72 ) + + ( 6 ) * + - MIN ( - 49 ) + + 31 + - + CAST ( NULL AS INTEGER ) WHEN - 23 THEN - COUNT ( * ) ELSE NULL END * + ( + SUM ( + 94 ) ) + CAST ( NULL AS INTEGER ) - + 78 - MAX ( - 74 )
----
NULL

query I rowsort
SELECT - 21 * + - 57
----
1197

query I rowsort
SELECT DISTINCT - 74 col1
----
-74

query I rowsort
SELECT 33 * - - 41 * - + 61
----
-82533

query I rowsort
SELECT ALL - + NULLIF ( 18, - 55 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT - 83 * + - COUNT( * ) + 37 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT - 83 * + - COUNT ( * ) + 37 AS col1
----
120

query I rowsort
SELECT + COALESCE ( - 24, 41 ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4999
SELECT 95 * ( + 68 ) + - 54 + - 45 * 74 * CAST( + CAST( + ( + 37 ) AS SIGNED ) AS SIGNED ) AS col2
----
-116804

skipif mysql # not compatible
query I rowsort label-4999
SELECT 95 * ( + 68 ) + - 54 + - 45 * 74 * CAST ( + CAST ( + ( + 37 ) AS INTEGER ) AS INTEGER ) AS col2
----
-116804

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5000
SELECT - 37 * - 82 - + CASE + 42 WHEN 75 THEN - 92 * - CAST( NULL AS SIGNED ) - 45 + - 50 ELSE + 2 END AS col0, 22
----
3032
22

skipif mysql # not compatible
query II rowsort label-5000
SELECT - 37 * - 82 - + CASE + 42 WHEN 75 THEN - 92 * - CAST ( NULL AS INTEGER ) - 45 + - 50 ELSE + 2 END AS col0, 22
----
3032
22

query I rowsort
SELECT ALL + 9 + + 25
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5002
SELECT ALL CAST( NULL AS SIGNED ) + - COALESCE ( + 36, + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL CAST ( NULL AS INTEGER ) + - COALESCE ( + 36, + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 3, - 6 ) + - + 87 + 26
----
-58

query I rowsort
SELECT 90 + - + 40 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5005
SELECT - 82 col1, CAST( 34 AS SIGNED ) AS col0
----
-82
34

skipif mysql # not compatible
query II rowsort label-5005
SELECT - 82 col1, CAST ( 34 AS INTEGER ) AS col0
----
-82
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5006
SELECT ALL 84 AS col2, 76 DIV - CAST( + 7 AS SIGNED )
----
84
-10

skipif mysql # not compatible
query II rowsort label-5006
SELECT ALL 84 AS col2, 76 / - CAST ( + 7 AS INTEGER )
----
84
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT 80 + - COUNT( * ) + ( + 88 ) * COUNT( ALL + 0 ) + - 4
----
163

skipif mysql # not compatible
query I rowsort label-5007
SELECT 80 + - COUNT ( * ) + ( + 88 ) * COUNT ( ALL + 0 ) + - 4
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT - 93 AS col2, COUNT( - + 90 ) * - 49 + + 13
----
-93
-36

skipif mysql # not compatible
query II rowsort label-5008
SELECT - 93 AS col2, COUNT ( - + 90 ) * - 49 + + 13
----
-93
-36

query II rowsort
SELECT 67 AS col1, + 69 AS col0
----
67
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5010
SELECT ALL 49 AS col0, + 90 * + - 71 + - MAX( ALL 91 )
----
49
-6481

skipif mysql # not compatible
query II rowsort label-5010
SELECT ALL 49 AS col0, + 90 * + - 71 + - MAX ( ALL 91 )
----
49
-6481

query I rowsort
SELECT 99 + - 23 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT COUNT( * ) + SUM( - + 76 ) + - 38 - 10 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-5012
SELECT COUNT ( * ) + SUM ( - + 76 ) + - 38 - 10 AS col0
----
-123

query I rowsort
SELECT 15 + + 98
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-5014
SELECT DISTINCT COUNT( * ) AS col2, 35
----
1
35

skipif mysql # not compatible
query II rowsort label-5014
SELECT DISTINCT COUNT ( * ) AS col2, 35
----
1
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5015
SELECT ALL + CASE ( + + 63 ) WHEN + CAST( - 17 AS SIGNED ) THEN - 95 + - 66 * + CAST( NULL AS SIGNED ) + - 30 * + - 18 WHEN - 71 DIV - 57 + - COUNT( * ) THEN - 17 WHEN + ( ( + COALESCE ( - 65, + + COUNT( * ) * + 88 * + 49 ) ) ) THEN NULLIF ( 64, - 73 * - 53 ) ELSE NULLIF ( COUNT( ALL - 53 ), - CASE WHEN ( - COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ) + - COUNT( * ) ) ) IS NULL THEN NULL WHEN NULL = + 83 * 29 THEN NULL ELSE 32 END * + NULLIF ( 60, + 74 ) ) * + 56 + 84 * + 20 END DIV 84
----
20

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + CASE ( + + 63 ) WHEN + CAST ( - 17 AS INTEGER ) THEN - 95 + - 66 * + CAST ( NULL AS INTEGER ) + - 30 * + - 18 WHEN - 71 / - 57 + - COUNT ( * ) THEN - 17 WHEN + ( ( + COALESCE ( - 65, + + COUNT ( * ) * + 88 * + 49 ) ) ) THEN NULLIF ( 64, - 73 * - 53 ) ELSE NULLIF ( COUNT ( ALL - 53 ), - CASE WHEN ( - COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) ) IS NULL THEN NULL WHEN NULL = + 83 * 29 THEN NULL ELSE 32 END * + NULLIF ( 60, + 74 ) ) * + 56 + 84 * + 20 END / 84
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT COUNT( * ) + - COALESCE ( + COUNT( * ), - 4 * + 90 + - + ( - 52 ) ) DIV 91 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5016
SELECT COUNT ( * ) + - COALESCE ( + COUNT ( * ), - 4 * + 90 + - + ( - 52 ) ) / 91 AS col0
----
1

query I rowsort
SELECT ALL 61 * + 10 * - + 27
----
-16470

query I rowsort
SELECT 34 + + 21 + 1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5019
SELECT ( 63 ) + + 30 DIV - + NULLIF ( - 39, - - 45 + - 53 ) DIV 29 * MAX( ALL - + 39 )
----
63

skipif mysql # not compatible
query I rowsort label-5019
SELECT ( 63 ) + + 30 / - + NULLIF ( - 39, - - 45 + - 53 ) / 29 * MAX ( ALL - + 39 )
----
63

query I rowsort
SELECT DISTINCT 8 * + 88 AS col0
----
704

query I rowsort
SELECT 59 + - 53 * + 90 AS col2
----
-4711

query I rowsort
SELECT 9 * + 73
----
657

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5023
SELECT 71 * 21 * - 44 + - 40 + - COUNT( * ) DIV - 71, - 7 * + COALESCE ( - + 82, 37, 14 ) AS col2
----
-65644
574

skipif mysql # not compatible
query II rowsort label-5023
SELECT 71 * 21 * - 44 + - 40 + - COUNT ( * ) / - 71, - 7 * + COALESCE ( - + 82, 37, 14 ) AS col2
----
-65644
574

onlyif mysql # aggregate syntax: 
query II rowsort label-5024
SELECT + - 51 / - 28 + + - 24 * - CASE - 78 WHEN - 18 THEN - COUNT( * ) * 8 * + 12 + + COUNT( DISTINCT + + 23 ) ELSE NULL END - COUNT( * ), - ( 36 ) AS col1
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-5024
SELECT + - 51 / - 28 + + - 24 * - CASE - 78 WHEN - 18 THEN - COUNT ( * ) * 8 * + 12 + + COUNT ( DISTINCT + + 23 ) ELSE NULL END - COUNT ( * ), - ( 36 ) AS col1
----
NULL
-36

query I rowsort
SELECT ALL - 46 * - - 62 AS col0
----
-2852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT + CAST( - 2 AS SIGNED ) + - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5026
SELECT + C