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 + CAST ( - 2 AS INTEGER ) + - + COUNT ( * )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5027
SELECT DISTINCT + - 41 AS col1, - 37 / - - CAST( NULL AS SIGNED ) AS col2
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-5027
SELECT DISTINCT + - 41 AS col1, - 37 / - - CAST ( NULL AS INTEGER ) AS col2
----
-41
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5028
SELECT ALL + 37, CAST( NULL AS DECIMAL ) AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5028
SELECT ALL + 37, CAST ( NULL AS REAL ) AS col2
----
37
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5029
SELECT + CAST( + + 33 AS SIGNED ) * - + MAX( + 24 ) + 1 + 26 + - CASE - + COUNT( * ) WHEN - + COUNT( * ) - COUNT( * ) THEN NULL ELSE 2 - - + COALESCE ( - - 46, - 97 * - 16 - + - 67 + - 94 DIV - - COUNT( ALL - - 72 ) ) END * 3 * 54 + - 31 AS col2
----
-8572

skipif mysql # not compatible
query I rowsort label-5029
SELECT + CAST ( + + 33 AS INTEGER ) * - + MAX ( + 24 ) + 1 + 26 + - CASE - + COUNT ( * ) WHEN - + COUNT ( * ) - COUNT ( * ) THEN NULL ELSE 2 - - + COALESCE ( - - 46, - 97 * - 16 - + - 67 + - 94 / - - COUNT ( ALL - - 72 ) ) END * 3 * 54 + - 31 AS col2
----
-8572

query I rowsort
SELECT + 43 - + + ( + + ( 10 ) )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT + + 24 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT + + 24 / + 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5032
SELECT - 70 * + COUNT( * ) + - 52 + SUM( + 15 ) DIV + ( - 88 ) - - + 40
----
-82

skipif mysql # not compatible
query I rowsort label-5032
SELECT - 70 * + COUNT ( * ) + - 52 + SUM ( + 15 ) / + ( - 88 ) - - + 40
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5033
SELECT + COALESCE ( 45, - CAST( + - 37 AS SIGNED ) * + 17 * 61, - COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-5033
SELECT + COALESCE ( 45, - CAST ( + - 37 AS INTEGER ) * + 17 * 61, - COUNT ( * ) )
----
45

query I rowsort
SELECT ALL + 69 * - 57 AS col2
----
-3933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT DISTINCT + 80 * + 84 + + + 77 + - 27 * - + CAST( - - 37 AS SIGNED )
----
7796

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT + 80 * + 84 + + + 77 + - 27 * - + CAST ( - - 37 AS INTEGER )
----
7796

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT - - COUNT( * ) - 80 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5036
SELECT - - COUNT ( * ) - 80 AS col1
----
-79

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

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

query I rowsort
SELECT ALL 22 * - - 94 + 0
----
2068

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

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

query II rowsort
SELECT DISTINCT + ( + 52 ) col1, 13 col2
----
52
13

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

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

query I rowsort
SELECT - 51 + + - 65
----
-116

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

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

query I rowsort
SELECT DISTINCT + 49 * + 49
----
2401

query I rowsort
SELECT ALL ( - 64 ) * + + 34 - + 80 AS col2
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL + CASE 41 WHEN - ( COUNT( * ) ) THEN - MIN( DISTINCT - 14 ) * 49 + - 15 ELSE NULL END * - NULLIF ( - 99, - 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL + CASE 41 WHEN - ( COUNT ( * ) ) THEN - MIN ( DISTINCT - 14 ) * 49 + - 15 ELSE NULL END * - NULLIF ( - 99, - 30 ) AS col2
----
NULL

query I rowsort
SELECT - 55 - - 67 AS col1
----
12

query I rowsort
SELECT DISTINCT ( 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT - 31 + - - COUNT( * ) * 68 - - MIN( 90 ) + - 21 - + 32 * + 13 - - 84 AS col0
----
-226

skipif mysql # not compatible
query I rowsort label-5049
SELECT - 31 + - - COUNT ( * ) * 68 - - MIN ( 90 ) + - 21 - + 32 * + 13 - - 84 AS col0
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - CASE 81 WHEN + 60 * 30 THEN - + COUNT( DISTINCT 36 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT - CASE 81 WHEN + 60 * 30 THEN - + COUNT ( DISTINCT 36 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - 8 + + MAX( + 99 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 8 + + MAX ( + 99 ) AS col0
----
91

query I rowsort
SELECT - COALESCE ( + ( + - 14 ), NULLIF ( + 3, - NULLIF ( + - 18, 51 ) ) ) AS col2
----
14

query I rowsort
SELECT - - 55 * - 56 + 44 AS col2
----
-3036

query I rowsort
SELECT - - 97 * - ( + 44 ) col0
----
-4268

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT CASE - 96 WHEN - + COUNT( * ) * - + 93 THEN - ( 49 ) + + 23 - + 26 + + + 89 * 78 / - ( + 85 ) * + 83 + - 76 WHEN - 56 THEN NULL WHEN + 82 - 80 THEN NULL END / 48 + - 68 / NULLIF ( + 71, - - SUM( - 55 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT CASE - 96 WHEN - + COUNT ( * ) * - + 93 THEN - ( 49 ) + + 23 - + 26 + + + 89 * 78 / - ( + 85 ) * + 83 + - 76 WHEN - 56 THEN NULL WHEN + 82 - 80 THEN NULL END / 48 + - 68 / NULLIF ( + 71, - - SUM ( - 55 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5056
SELECT + - CASE NULLIF ( NULLIF ( - CASE - 17 WHEN - - COUNT( * ) * - 35 + - 92 THEN + + COALESCE ( + 49, - + CASE + MAX( ALL 7 ) WHEN - 58 * - - 29 + - 12 THEN NULL WHEN - CAST( NULL AS DECIMAL ) + + 48 * 99 - - 33 THEN + 60 + + 69 * 47 ELSE - ( + CAST( NULL AS SIGNED ) ) END * - 8 ) * - 8 WHEN + 58 THEN NULL END, 95 + - 17 * - 88 ), + 54 / + 13 ) WHEN + 61 THEN + 90 + + 1 WHEN - 68 * COUNT( * ) THEN - 56 / - 53 - + 81 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT + - CASE NULLIF ( NULLIF ( - CASE - 17 WHEN - - COUNT ( * ) * - 35 + - 92 THEN + + COALESCE ( + 49, - + CASE + MAX ( ALL 7 ) WHEN - 58 * - - 29 + - 12 THEN NULL WHEN - CAST ( NULL AS REAL ) + + 48 * 99 - - 33 THEN + 60 + + 69 * 47 ELSE - ( + CAST ( NULL AS INTEGER ) ) END * - 8 ) * - 8 WHEN + 58 THEN NULL END, 95 + - 17 * - 88 ), + 54 / + 13 ) WHEN + 61 THEN + 90 + + 1 WHEN - 68 * COUNT ( * ) THEN - 56 / - 53 - + 81 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT 56 * - 33 + + 41 * AVG ( ALL - 49 ) / CAST( NULL AS SIGNED ) / - 9 * COUNT( * ) * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT 56 * - 33 + + 41 * AVG ( ALL - 49 ) / CAST ( NULL AS INTEGER ) / - 9 * COUNT ( * ) * + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT + - SUM( DISTINCT + + 11 ) + + 62
----
51

skipif mysql # not compatible
query I rowsort label-5058
SELECT + - SUM ( DISTINCT + + 11 ) + + 62
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5059
SELECT ALL COALESCE ( - ( - - 64 ), 9 + - 60 + + - 7 + 29 ) * COUNT( * ), + CAST( 81 AS SIGNED ) AS col1
----
-64
81

skipif mysql # not compatible
query II rowsort label-5059
SELECT ALL COALESCE ( - ( - - 64 ), 9 + - 60 + + - 7 + 29 ) * COUNT ( * ), + CAST ( 81 AS INTEGER ) AS col1
----
-64
81

query I rowsort
SELECT DISTINCT 93 * 20 * 24 * 99 + - ( + 65 ) + + - 91 + - - 15 AS col1
----
4419219

onlyif mysql # aggregate syntax: 
query II rowsort label-5061
SELECT DISTINCT COUNT( * ) * - 95 * - COUNT( * ) + - 21 - 93 * - + 29 * + COUNT( * ) * + - 21 AS col0, 63 AS col1
----
-56563
63

skipif mysql # not compatible
query II rowsort label-5061
SELECT DISTINCT COUNT ( * ) * - 95 * - COUNT ( * ) + - 21 - 93 * - + 29 * + COUNT ( * ) * + - 21 AS col0, 63 AS col1
----
-56563
63

query I rowsort
SELECT DISTINCT - ( 94 ) * + + 40 + + 52 * + 51
----
-1108

query I rowsort
SELECT + 90 + + 6 + 81 * - - 94 * - 86
----
-654708

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT ALL MIN( - 89 ) * 39 * - - 44 + - - COUNT( * ) + + + 9 - + - 92
----
-152622

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL MIN ( - 89 ) * 39 * - - 44 + - - COUNT ( * ) + + + 9 - + - 92
----
-152622

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

query I rowsort
SELECT - 34 * - - 58
----
-1972

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT - 51 DIV + + 48
----
-1

skipif mysql # not compatible
query I rowsort label-5068
SELECT - 51 / + + 48
----
-1

query II rowsort
SELECT NULLIF ( - 3, - 11 * + 58 ) col0, + 30 AS col2
----
-3
30

query I rowsort
SELECT ALL + ( - 3 ) * + 95 + - ( - 12 ) * + 86 AS col2
----
747

query I rowsort
SELECT + 98 * + + 89
----
8722

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

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL COUNT ( * ) / + - 78 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT + 15 + - - 77 - + + MAX( + 84 ) - + ( + 29 ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-5073
SELECT + 15 + - - 77 - + + MAX ( + 84 ) - + ( + 29 ) col1
----
-21

query I rowsort
SELECT NULLIF ( + + NULLIF ( + + 52, + 25 ), + 78 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL + COUNT( * ) * + 77 * + 91 - + 73
----
6934

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + COUNT ( * ) * + 77 * + 91 - + 73
----
6934

query I rowsort
SELECT - 68 + - + 49
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + 38 * - NULLIF ( - 60, MIN( ALL 30 ) )
----
2280

skipif mysql # not compatible
query I rowsort label-5077
SELECT + 38 * - NULLIF ( - 60, MIN ( ALL 30 ) )
----
2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5078
SELECT - NULLIF ( + CAST( + + COUNT( * ) AS SIGNED ), + - 4 ) * + + ( - NULLIF ( - 39, - 23 - - 11 + - 55 + - 77 + 96 * 74 * + MAX( ALL + - 6 ) / - + 58 ) ) / - 4 + + 91 + - 76 - - ( + CASE COUNT( * ) WHEN - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * - NULLIF ( COUNT( * ) - AVG ( ALL - 74 ) * + 45, - COUNT( * ) ) + 62 THEN 45 * 8 + 80 END ) + - 41 * ( + 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT - NULLIF ( + CAST ( + + COUNT ( * ) AS INTEGER ), + - 4 ) * + + ( - NULLIF ( - 39, - 23 - - 11 + - 55 + - 77 + 96 * 74 * + MAX ( ALL + - 6 ) / - + 58 ) ) / - 4 + + 91 + - 76 - - ( + CASE COUNT ( * ) WHEN - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - NULLIF ( COUNT ( * ) - AVG ( ALL - 74 ) * + 45, - COUNT ( * ) ) + 62 THEN 45 * 8 + 80 END ) + - 41 * ( + 91 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT + 56 + ( SUM( - 80 ) ) + - - 8
----
-16

skipif mysql # not compatible
query I rowsort label-5079
SELECT + 56 + ( SUM ( - 80 ) ) + - - 8
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT - COUNT( ALL + 64 ) * + 76 + 56
----
-20

skipif mysql # not compatible
query I rowsort label-5080
SELECT - COUNT ( ALL + 64 ) * + 76 + 56
----
-20

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

query I rowsort
SELECT - 32 + + 35 - 49 * + + 53 * + 29
----
-75310

query I rowsort
SELECT - 38 - + 39 + - 62 * - 71
----
4325

query I rowsort
SELECT - COALESCE ( - + 94, - + 62 - + - 58 ) + 58
----
152

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5086
SELECT ALL - CAST( NULL AS DECIMAL ) + 83 + + 65 * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL - CAST ( NULL AS REAL ) + 83 + + 65 * - 27 AS col2
----
NULL

query I rowsort
SELECT 49 + + 41
----
90

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

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

query I rowsort
SELECT - ( 3 ) + 48
----
45

query I rowsort
SELECT ALL 75 + 15
----
90

query I rowsort
SELECT 31 + 28
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT MIN( ALL + - 57 ) + - 27, - 20 * - 71 AS col2
----
-84
1420

skipif mysql # not compatible
query II rowsort label-5092
SELECT MIN ( ALL + - 57 ) + - 27, - 20 * - 71 AS col2
----
-84
1420

onlyif mysql # aggregate syntax: 
query II rowsort label-5093
SELECT - 4, + 85 * - + 24 / + - 81 * - MIN( DISTINCT - 5 ) * 40 + - 75 * + + CASE + 5 WHEN + SUM( - 41 ) * - + 10 * COUNT( * ) + 49 THEN 30 * 51 * - + ( - 26 ) WHEN + + COUNT( * ) THEN NULL END - 14 + - 88 AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-5093
SELECT - 4, + 85 * - + 24 / + - 81 * - MIN ( DISTINCT - 5 ) * 40 + - 75 * + + CASE + 5 WHEN + SUM ( - 41 ) * - + 10 * COUNT ( * ) + 49 THEN 30 * 51 * - + ( - 26 ) WHEN + + COUNT ( * ) THEN NULL END - 14 + - 88 AS col0
----
-4
NULL

query I rowsort
SELECT ALL - 5 + - 79 AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5095
SELECT 19 * - 0 - + + 91 - - + 96 + + 56 DIV + ( - 87 ) + - COUNT( * ) * + 76 + NULLIF ( 11, + - COUNT( + 85 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-5095
SELECT 19 * - 0 - + + 91 - - + 96 + + 56 / + ( - 87 ) + - COUNT ( * ) * + 76 + NULLIF ( 11, + - COUNT ( + 85 ) )
----
-60

query I rowsort
SELECT ALL 64 + - 0 AS col0
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5099
SELECT ALL - 53 DIV MAX( 68 )
----
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - 53 / MAX ( 68 )
----
0

query I rowsort
SELECT + 70 + - - 15 - + - 57 AS col2
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5101
SELECT 70, + COALESCE ( + 12, + + SUM( ALL + 52 ) ) + + - 43 DIV + + SUM( ALL 11 ) col0
----
70
9

skipif mysql # not compatible
query II rowsort label-5101
SELECT 70, + COALESCE ( + 12, + + SUM ( ALL + 52 ) ) + + - 43 / + + SUM ( ALL 11 ) col0
----
70
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT DISTINCT CASE + + NULLIF ( - 76, + COUNT( * ) * + 86 * 71 ) WHEN 48 * 72 * + 85 THEN - 71 WHEN + ( + - 32 ) THEN - + 25 ELSE - 67 END * CASE 7 WHEN 12 THEN + 14 + - + 51 WHEN COUNT( * ) THEN - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) ELSE - COUNT( * ) * 62 END + 96 AS col2
----
4250

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT CASE + + NULLIF ( - 76, + COUNT ( * ) * + 86 * 71 ) WHEN 48 * 72 * + 85 THEN - 71 WHEN + ( + - 32 ) THEN - + 25 ELSE - 67 END * CASE 7 WHEN 12 THEN + 14 + - + 51 WHEN COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) * 62 END + 96 AS col2
----
4250

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT + 70 * 4 - - - COALESCE ( + 96, - 44 ) + 69 * 44 / + COUNT( * ) + + + 71 - - COUNT( DISTINCT 86 ) / - 8 - 9 * - ( + CASE - CASE 44 WHEN + 0 THEN - AVG ( - 93 ) ELSE NULL END WHEN + 27 THEN + 47 END ) + 44 + - ( + 86 ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT + 70 * 4 - - - COALESCE ( + 96, - 44 ) + 69 * 44 / + COUNT ( * ) + + + 71 - - COUNT ( DISTINCT 86 ) / - 8 - 9 * - ( + CASE - CASE 44 WHEN + 0 THEN - AVG ( - 93 ) ELSE NULL END WHEN + 27 THEN + 47 END ) + 44 + - ( + 86 ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ( 58 ) * - - 61
----
3538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5105
SELECT - 20 DIV - 60 + + 52 - + 55 * + COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5105
SELECT - 20 / - 60 + + 52 - + 55 * + COUNT ( * ) AS col0
----
-3

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

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

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

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

query I rowsort
SELECT 8 * ( - 83 ) AS col0
----
-664

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT 44 * - COALESCE ( NULLIF ( - 72, + + 33 + - 81 ), - 49 ) * COUNT( * ) AS col0
----
3168

skipif mysql # not compatible
query I rowsort label-5109
SELECT 44 * - COALESCE ( NULLIF ( - 72, + + 33 + - 81 ), - 49 ) * COUNT ( * ) AS col0
----
3168

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

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT 85 / + 28
----
3

query I rowsort
SELECT 34 * - 75 AS col1
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT 31 * + SUM( 41 ) + + + COUNT( * ) + 15 * + 86 * + 51 + 65 - - + 61 * + 2 + - 43
----
67206

skipif mysql # not compatible
query I rowsort label-5112
SELECT 31 * + SUM ( 41 ) + + + COUNT ( * ) + 15 * + 86 * + 51 + 65 - - + 61 * + 2 + - 43
----
67206

query I rowsort
SELECT ( + 32 ) * - - 23 AS col1
----
736

query II rowsort
SELECT DISTINCT 49 + - + 85 + + + 36 + 47 AS col2, 94
----
47
94

query II rowsort
SELECT 59 * - + 8, - 7 + + 73 + 66 - - 22 AS col0
----
-472
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL 84 + + + CAST( + CASE - + 64 WHEN 62 + - + 22 THEN NULL ELSE + AVG ( DISTINCT - + 88 ) END AS SIGNED ) + COUNT( * ) + + COUNT( * ) + CAST( NULL AS SIGNED ) * - - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL 84 + + + CAST ( + CASE - + 64 WHEN 62 + - + 22 THEN NULL ELSE + AVG ( DISTINCT - + 88 ) END AS INTEGER ) + COUNT ( * ) + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - - 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT + 29 * + CASE + 74 WHEN COUNT( * ) THEN + 6 ELSE - + 88 END col1
----
-2552

skipif mysql # not compatible
query I rowsort label-5117
SELECT + 29 * + CASE + 74 WHEN COUNT ( * ) THEN + 6 ELSE - + 88 END col1
----
-2552

query I rowsort
SELECT DISTINCT 8 * - 32 col1
----
-256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - MIN( 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-5120
SELECT - MIN ( 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL 92 + NULLIF ( - + 83, - - 57 * + MAX( + 3 ) * + 78 + + - 50 + + COUNT( * ) + - 24 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL 92 + NULLIF ( - + 83, - - 57 * + MAX ( + 3 ) * + 78 + + - 50 + + COUNT ( * ) + - 24 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT - COUNT( * ) + + 42 + + 2 + + - 65 * 75 AS col1
----
-4832

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT - COUNT ( * ) + + 42 + + 2 + + - 65 * 75 AS col1
----
-4832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5123
SELECT + COUNT( * ) - + + 76 DIV 98
----
1

skipif mysql # not compatible
query I rowsort label-5123
SELECT + COUNT ( * ) - + + 76 / 98
----
1

query II rowsort
SELECT ALL - ( - - 10 ) AS col2, 86
----
-10
86

onlyif mysql # DIV for integer division: 
query II rowsort label-5125
SELECT DISTINCT - 23 * + 5 AS col1, 21 DIV + 84 * - 19 + - 33
----
-115
-33

skipif mysql # not compatible
query II rowsort label-5125
SELECT DISTINCT - 23 * + 5 AS col1, 21 / + 84 * - 19 + - 33
----
-115
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT CASE - - 2 WHEN - CASE - CASE - - 19 WHEN + - 58 + + - 68 + 46 + + - 20 * 27 / COUNT( ALL 5 ) * - COUNT( * ) * NULLIF ( - + 62, CASE - + 38 WHEN 21 THEN NULL WHEN NULLIF ( - 12, COUNT( DISTINCT + 94 ) ) THEN 63 * + 42 + 32 * NULLIF ( + 67, 80 ) END ) THEN 4 ELSE - COALESCE ( - 66, 48 * - MAX( - ( - 18 ) ) ) END WHEN + 62 THEN - 70 WHEN + ( 82 ) THEN NULL ELSE NULL END - COALESCE ( 90 + 95, 9 ) THEN 25 * - 65 END * 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT CASE - - 2 WHEN - CASE - CASE - - 19 WHEN + - 58 + + - 68 + 46 + + - 20 * 27 / COUNT ( ALL 5 ) * - COUNT ( * ) * NULLIF ( - + 62, CASE - + 38 WHEN 21 THEN NULL WHEN NULLIF ( - 12, COUNT ( DISTINCT + 94 ) ) THEN 63 * + 42 + 32 * NULLIF ( + 67, 80 ) END ) THEN 4 ELSE - COALESCE ( - 66, 48 * - MAX ( - ( - 18 ) ) ) END WHEN + 62 THEN - 70 WHEN + ( 82 ) THEN NULL ELSE NULL END - COALESCE ( 90 + 95, 9 ) THEN 25 * - 65 END * 30 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT + 5 DIV + + 88 + + 76 DIV - + 57
----
-1

skipif mysql # not compatible
query I rowsort label-5127
SELECT + 5 / + + 88 + + 76 / - + 57
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT - 16 DIV ( + 87 ) - - 97 * + + 83 * - 27 + - - NULLIF ( - 84, 62 )
----
-217461

skipif mysql # not compatible
query I rowsort label-5128
SELECT - 16 / ( + 87 ) - - 97 * + + 83 * - 27 + - - NULLIF ( - 84, 62 )
----
-217461

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT - MIN( - - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT - MIN ( - - 84 ) AS col0
----
-84

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

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

query I rowsort
SELECT 25 * + + 26
----
650

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT - 53 * - 20 + - 81 + 5 DIV 9 DIV + 18 AS col1
----
979

skipif mysql # not compatible
query I rowsort label-5132
SELECT - 53 * - 20 + - 81 + 5 / 9 / + 18 AS col1
----
979

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

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - CAST ( + 13 AS INTEGER ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT 37 + + 68 - + 45 + + - MAX( + 21 )
----
39

skipif mysql # not compatible
query I rowsort label-5134
SELECT 37 + + 68 - + 45 + + - MAX ( + 21 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5135
SELECT ALL - CASE WHEN NOT COUNT( * ) NOT IN ( - 41, + 18 * + 46 / - 47, CASE + + 89 WHEN - 95 * - - COUNT( * ) - 53 THEN NULL WHEN - MAX( + + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + + 86 + + 65 THEN 37 END + + - 68, + 77 * - - 70 * - 53 + + 50 * + COALESCE ( - + 30, + - 74 ) ) THEN - 79 - 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - CASE WHEN NOT COUNT ( * ) NOT IN ( - 41, + 18 * + 46 / - 47, CASE + + 89 WHEN - 95 * - - COUNT ( * ) - 53 THEN NULL WHEN - MAX ( + + CAST ( NULL AS REAL ) ) THEN NULL WHEN + + 86 + + 65 THEN 37 END + + - 68, + 77 * - - 70 * - 53 + + 50 * + COALESCE ( - + 30, + - 74 ) ) THEN - 79 - 28 ELSE NULL END
----
NULL

query I rowsort
SELECT 15 + + ( + + 3 ) * - 32 AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5137
SELECT 99 * CAST( - 61 AS SIGNED ) + - - 53 * - COUNT( * ) AS col0, MIN( DISTINCT 79 )
----
-6092
79

skipif mysql # not compatible
query II rowsort label-5137
SELECT 99 * CAST ( - 61 AS INTEGER ) + - - 53 * - COUNT ( * ) AS col0, MIN ( DISTINCT 79 )
----
-6092
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT - 33 * + MAX( DISTINCT + 34 ) + + 24
----
-1098

skipif mysql # not compatible
query I rowsort label-5138
SELECT - 33 * + MAX ( DISTINCT + 34 ) + + 24
----
-1098

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5140
SELECT ALL - NULLIF ( - 92, + ( CAST( NULL AS SIGNED ) ) / - + COUNT( * ) ) * + 93 AS col1
----
8556

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - NULLIF ( - 92, + ( CAST ( NULL AS INTEGER ) ) / - + COUNT ( * ) ) * + 93 AS col1
----
8556

query I rowsort
SELECT + 85 * - + 96 * + + 98 * - ( + 56 )
----
44782080

query I rowsort
SELECT ALL 96 + 92
----
188

query I rowsort
SELECT + 2 + + 23 * ( 71 ) * + 53 * + 24
----
2077178

query I rowsort
SELECT DISTINCT - 27 * - 52
----
1404

query I rowsort
SELECT - 66 * - 25 AS col2
----
1650

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

query I rowsort
SELECT - 63 + + 69 + 21 * - 41
----
-855

query I rowsort
SELECT DISTINCT 67 + 49
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL + 97 - + 56 + - 57 * 96 * - - NULLIF ( + 81, + COUNT( * ) * - 24 + CASE COUNT( * ) WHEN - + 21 + + 81 THEN NULL WHEN + 93 THEN NULL ELSE 73 / - - 54 + - - 72 + 62 END ) * 45 + - 15
----
-19945414

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + 97 - + 56 + - 57 * 96 * - - NULLIF ( + 81, + COUNT ( * ) * - 24 + CASE COUNT ( * ) WHEN - + 21 + + 81 THEN NULL WHEN + 93 THEN NULL ELSE 73 / - - 54 + - - 72 + 62 END ) * 45 + - 15
----
-19945414

query I rowsort
SELECT ALL - 86 * + 23
----
-1978

query I rowsort
SELECT + - 16 + + 95
----
79

query II rowsort
SELECT ALL + 4 AS col1, - NULLIF ( + - 95, 6 ) AS col2
----
4
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5153
SELECT DISTINCT CAST( NULL AS SIGNED ) * SUM( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT CAST ( NULL AS INTEGER ) * SUM ( 79 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT + ( + + 23 ) * - 79 + - CAST( 48 AS SIGNED ) AS col2
----
-1865

skipif mysql # not compatible
query I rowsort label-5154
SELECT + ( + + 23 ) * - 79 + - CAST ( 48 AS INTEGER ) AS col2
----
-1865

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - 79 + - 14 * - + CASE - - MAX( DISTINCT + 23 ) WHEN + + 25 THEN NULL WHEN - - 21 THEN NULL WHEN - - 99 THEN COALESCE ( - - 2, + 10 + + 9, + 77 * - 41 ) ELSE MAX( ALL 18 ) END AS col1
----
173

skipif mysql # not compatible
query I rowsort label-5155
SELECT - 79 + - 14 * - + CASE - - MAX ( DISTINCT + 23 ) WHEN + + 25 THEN NULL WHEN - - 21 THEN NULL WHEN - - 99 THEN COALESCE ( - - 2, + 10 + + 9, + 77 * - 41 ) ELSE MAX ( ALL 18 ) END AS col1
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT - + 90 * - COUNT( * ) - + + 40 AS col0, 91 + - 54
----
50
37

skipif mysql # not compatible
query II rowsort label-5156
SELECT - + 90 * - COUNT ( * ) - + + 40 AS col0, 91 + - 54
----
50
37

query I rowsort
SELECT DISTINCT - 79 * 51 AS col1
----
-4029

query I rowsort
SELECT ( - 45 ) col2
----
-45

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

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

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

query I rowsort
SELECT - 69 + 21
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL - 9 * + 67 + + 37 * MAX( 86 ) - + - ( + MIN( ALL - - 38 ) )
----
2617

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL - 9 * + 67 + + 37 * MAX ( 86 ) - + - ( + MIN ( ALL - - 38 ) )
----
2617

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

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

query I rowsort
SELECT - 33 * + - 51
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT 31 * + 72 * COUNT( DISTINCT - + NULLIF ( 90, - 37 ) ) + - - 16
----
2248

skipif mysql # not compatible
query I rowsort label-5166
SELECT 31 * + 72 * COUNT ( DISTINCT - + NULLIF ( 90, - 37 ) ) + - - 16
----
2248

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

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

query I rowsort
SELECT + 15 + - 18 + 90 + - ( - - 81 ) * - 27 + - - 61 AS col2
----
2335

query I rowsort
SELECT ALL + 32 * 35 + - + 47 AS col1
----
1073

query I rowsort
SELECT DISTINCT - 59 * + 57 AS col2
----
-3363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5171
SELECT + COUNT( * ) col0, 37 * - NULLIF ( ( - 10 ), + 83 * 81 + + CAST( + + 88 AS SIGNED ) * + 29 * - - 10 / + + NULLIF ( - - 8, - - 27 ) + 94 )
----
1
370

skipif mysql # not compatible
query II rowsort label-5171
SELECT + COUNT ( * ) col0, 37 * - NULLIF ( ( - 10 ), + 83 * 81 + + CAST ( + + 88 AS INTEGER ) * + 29 * - - 10 / + + NULLIF ( - - 8, - - 27 ) + 94 )
----
1
370

query I rowsort
SELECT ALL 49 * - 1 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - CASE - 18 WHEN + 13 * - 2 * + + 18 THEN COUNT( * ) WHEN + - ( + AVG ( ALL + 26 ) ) THEN NULL END / 92 * + ( - 60 ) * - 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT - CASE - 18 WHEN + 13 * - 2 * + + 18 THEN COUNT ( * ) WHEN + - ( + AVG ( ALL + 26 ) ) THEN NULL END / 92 * + ( - 60 ) * - 77 col0
----
NULL

query I rowsort
SELECT - 67 - 43
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT + COALESCE ( + ( - + ( - 95 ) ), - - 63 * + 72 * - - 72, + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-5175
SELECT + COALESCE ( + ( - + ( - 95 ) ), - - 63 * + 72 * - - 72, + COUNT ( * ) )
----
95

query I rowsort
SELECT - 43 * - + 28 AS col1
----
1204

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

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

query II rowsort
SELECT + 39 AS col1, 17 * - 68 AS col0
----
39
-1156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5179
SELECT ALL 8 * - CAST( + COUNT( * ) AS SIGNED ) * - 58 + COUNT( * ) * - CAST( - 19 AS SIGNED ) DIV 7 * + 94 + + 26
----
678

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL 8 * - CAST ( + COUNT ( * ) AS INTEGER ) * - 58 + COUNT ( * ) * - CAST ( - 19 AS INTEGER ) / 7 * + 94 + + 26
----
678

query II rowsort
SELECT + 61 AS col0, 56
----
61
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT 47 * + 27 * + NULLIF ( - 79, 93 ) * 22 + + 27 + - ( COALESCE ( + COUNT( * ), - 9 * + COUNT( * ) * + 81, + COUNT( * ) ) ) - + - 61 AS col1
----
-2205435

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT 47 * + 27 * + NULLIF ( - 79, 93 ) * 22 + + 27 + - ( COALESCE ( + COUNT ( * ), - 9 * + COUNT ( * ) * + 81, + COUNT ( * ) ) ) - + - 61 AS col1
----
-2205435

onlyif mysql # aggregate syntax: 
query II rowsort label-5182
SELECT DISTINCT - 90 * + - 76 AS col2, + COUNT( * ) AS col0
----
6840
1

skipif mysql # not compatible
query II rowsort label-5182
SELECT DISTINCT - 90 * + - 76 AS col2, + COUNT ( * ) AS col0
----
6840
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL - MAX( - + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - MAX ( - + 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT DISTINCT + 68 - + - 22 AS col0, COUNT( * ) col1
----
90
1

skipif mysql # not compatible
query II rowsort label-5184
SELECT DISTINCT + 68 - + - 22 AS col0, COUNT ( * ) col1
----
90
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL - + COUNT( * ) * - 68 * + + 57 * - 88 + - 32
----
-341120

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL - + COUNT ( * ) * - 68 * + + 57 * - 88 + - 32
----
-341120

query I rowsort
SELECT - 66 + - 9 col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) ) * + - 77 * + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + - 77 * + 73 AS col1
----
NULL

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

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

query I rowsort
SELECT - 80 + - + 59 + 15 AS col1
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT + - 79 DIV 44
----
-1

skipif mysql # not compatible
query I rowsort label-5190
SELECT + - 79 / 44
----
-1

query II rowsort
SELECT + + 10 + + 23 + + ( 29 ), + 9 AS col0
----
62
9

query I rowsort
SELECT ALL 37 * 86 AS col0
----
3182

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT + - 35 + COUNT( * ) + 97 * + 6
----
548

skipif mysql # not compatible
query I rowsort label-5193
SELECT + - 35 + COUNT ( * ) + 97 * + 6
----
548

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT ALL 86 DIV 62 * + 32 * - + ( - + 94 ) AS col0
----
3008

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL 86 / 62 * + 32 * - + ( - + 94 ) AS col0
----
3008

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

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL + NULLIF ( - 54, + 78 ) * - + COUNT ( * )
----
54

query I rowsort
SELECT + 30 - + 94
----
-64

query II rowsort
SELECT ALL + 77 AS col0, - 50
----
77
-50

query I rowsort
SELECT ALL - 80 * + + 7
----
-560

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT + 69 DIV - ( + 41 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5199
SELECT + 69 / - ( + 41 ) col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT - 45 DIV + - 92 + 82
----
82

skipif mysql # not compatible
query I rowsort label-5201
SELECT - 45 / + - 92 + 82
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5202
SELECT ALL + MAX( DISTINCT 71 ) AS col2, 26
----
71
26

skipif mysql # not compatible
query II rowsort label-5202
SELECT ALL + MAX ( DISTINCT 71 ) AS col2, 26
----
71
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ( + 12 ) * + COALESCE ( 52, + 44, - - 96 ) + - COUNT( * ) - - - COUNT( DISTINCT + - 75 ) - 69
----
553

skipif mysql # not compatible
query I rowsort label-5203
SELECT ( + 12 ) * + COALESCE ( 52, + 44, - - 96 ) + - COUNT ( * ) - - - COUNT ( DISTINCT + - 75 ) - 69
----
553

query I rowsort
SELECT DISTINCT - 99 + ( 71 ) AS col2
----
-28

query I rowsort
SELECT ALL - 37 + 83 + 93 AS col1
----
139

query I rowsort
SELECT ( + 52 ) + - + 92 * - - 83
----
-7584

query I rowsort
SELECT DISTINCT + 64 * - 74 * 73 * + + 4
----
-1382912

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL + 30 - - + SUM( DISTINCT ( + 98 ) )
----
128

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + 30 - - + SUM ( DISTINCT ( + 98 ) )
----
128

query I rowsort
SELECT + 89 * - 0 AS col1
----
0

query I rowsort
SELECT - 98 + + ( 56 ) * + 73 AS col2
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT 0 * - 37 + - 57 * - COUNT( * ) * + - ( ( - 70 ) ) AS col1
----
3990

skipif mysql # not compatible
query I rowsort label-5211
SELECT 0 * - 37 + - 57 * - COUNT ( * ) * + - ( ( - 70 ) ) AS col1
----
3990

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT - 55 DIV 89 * - + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5212
SELECT - 55 / 89 * - + 70 AS col1
----
0

query II rowsort
SELECT 46 + 20, + 69 - + + 85 AS col2
----
66
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT + 38 * - + 98, CASE - + 85 WHEN ( + 22 ) THEN + 61 END * + COUNT( * ) * + 38 AS col1
----
-3724
NULL

skipif mysql # not compatible
query II rowsort label-5214
SELECT + 38 * - + 98, CASE - + 85 WHEN ( + 22 ) THEN + 61 END * + COUNT ( * ) * + 38 AS col1
----
-3724
NULL

query I rowsort
SELECT + 47 + 85 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT 10 * - + CASE - COUNT( * ) WHEN - 33 THEN + 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT 10 * - + CASE - COUNT ( * ) WHEN - 33 THEN + 48 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT DISTINCT CAST( NULL AS SIGNED ) * 82 - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 82 - 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5218
SELECT DISTINCT + CAST( + 74 AS SIGNED ) + - - COUNT( 71 ) * - + 95 - 61 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT + CAST ( + 74 AS INTEGER ) + - - COUNT ( 71 ) * - + 95 - 61 AS col0
----
-82

query I rowsort
SELECT 95 * + NULLIF ( - 47, + - 18 + - 32 * - - ( - 64 ) * - - 70 )
----
-4465

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5221
SELECT 33 AS col2, + COALESCE ( 97, + 22 - + + 19 + - - 42 * 50, + 54 DIV 41 + - - COUNT( * ) * - 79 ) DIV + 7 * COUNT( * )
----
33
13

skipif mysql # not compatible
query II rowsort label-5221
SELECT 33 AS col2, + COALESCE ( 97, + 22 - + + 19 + - - 42 * 50, + 54 / 41 + - - COUNT ( * ) * - 79 ) / + 7 * COUNT ( * )
----
33
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT 24 + - 38 + - - ( + MIN( - 60 ) ) + + 18 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5222
SELECT 24 + - 38 + - - ( + MIN ( - 60 ) ) + + 18 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5223
SELECT CAST( + + 43 AS SIGNED ) + + 83 AS col2, 3 col0
----
126
3

skipif mysql # not compatible
query II rowsort label-5223
SELECT CAST ( + + 43 AS INTEGER ) + + 83 AS col2, 3 col0
----
126
3

query II rowsort
SELECT - 39, 4 * - - 84 AS col1
----
-39
336

query II rowsort
SELECT + 42, + 41 AS col1
----
42
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5227
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - 7 DIV 29 * - 13 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - 7 / 29 * - 13 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5228
SELECT ( - CAST( + 8 AS SIGNED ) ) * + COUNT( * ) + 45
----
37

skipif mysql # not compatible
query I rowsort label-5228
SELECT ( - CAST ( + 8 AS INTEGER ) ) * + COUNT ( * ) + 45
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT + 65 DIV - 96 + + 63
----
63

skipif mysql # not compatible
query I rowsort label-5229
SELECT + 65 / - 96 + + 63
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5230
SELECT DISTINCT 85 + - 49 - + 12 * 39 DIV + - 34 col1
----
49

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT 85 + - 49 - + 12 * 39 / + - 34 col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5231
SELECT 72 DIV - MAX( DISTINCT + 14 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5231
SELECT 72 / - MAX ( DISTINCT + 14 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL 20 - CASE 33 WHEN + + COUNT( * ) THEN + + 12 / + ( 91 ) + + 23 / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL 20 - CASE 33 WHEN + + COUNT ( * ) THEN + + 12 / + ( 91 ) + + 23 / - COUNT ( * ) END
----
NULL

query I rowsort
SELECT 43 * 60
----
2580

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

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

query II rowsort
SELECT 79, 72 AS col1
----
79
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + - SUM( ALL - 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5236
SELECT + - SUM ( ALL - 48 ) AS col0
----
48

query I rowsort
SELECT DISTINCT + + 9 * + 14
----
126

query II rowsort
SELECT ALL - 66 AS col0, 7 + + 7
----
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT MIN( DISTINCT 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5239
SELECT MIN ( DISTINCT 94 ) AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT CAST( ( + 31 ) AS SIGNED ) - + 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5240
SELECT CAST ( ( + 31 ) AS INTEGER ) - + 30 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL + - ( + + 35 ) * COALESCE ( + 33, + 54 * + 3 + + - 47 + + - COUNT( * ) * - - 93 ) * - 68 + 58 * - 50
----
75640

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + - ( + + 35 ) * COALESCE ( + 33, + 54 * + 3 + + - 47 + + - COUNT ( * ) * - - 93 ) * - 68 + 58 * - 50
----
75640

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5242
SELECT - 92 AS col1, + ( COUNT( * ) ) DIV - MIN( DISTINCT - 18 ) AS col1
----
-92
0

skipif mysql # not compatible
query II rowsort label-5242
SELECT - 92 AS col1, + ( COUNT ( * ) ) / - MIN ( DISTINCT - 18 ) AS col1
----
-92
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5243
SELECT ALL - 81, + CAST( ( + 80 ) AS SIGNED ) AS col2
----
-81
80

skipif mysql # not compatible
query II rowsort label-5243
SELECT ALL - 81, + CAST ( ( + 80 ) AS INTEGER ) AS col2
----
-81
80

query II rowsort
SELECT 50 AS col2, 9 AS col1
----
50
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT DISTINCT CASE - + 65 WHEN CAST( 67 AS SIGNED ) + + 78 + - NULLIF ( + 20, - CAST( + + 62 AS SIGNED ) ) / - + 1 THEN - 80 / - + 26 * - + 18 * - + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT CASE - + 65 WHEN CAST ( 67 AS INTEGER ) + + 78 + - NULLIF ( + 20, - CAST ( + + 62 AS INTEGER ) ) / - + 1 THEN - 80 / - + 26 * - + 18 * - + 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5246
SELECT ALL CAST( + - 84 AS SIGNED ) + - 5, 95 AS col1
----
-89
95

skipif mysql # not compatible
query II rowsort label-5246
SELECT ALL CAST ( + - 84 AS INTEGER ) + - 5, 95 AS col1
----
-89
95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT - 91 DIV 35 * 29 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - 91 / 35 * 29 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL + + 79 + + SUM( ALL 55 ) AS col0
----
134

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL + + 79 + + SUM ( ALL 55 ) AS col0
----
134

query I rowsort
SELECT ALL + + 62 + - 79 col0
----
-17

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

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT SUM ( DISTINCT - 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5252
SELECT SUM( - 47 ) + + COALESCE ( - - 64, CAST( + 31 AS SIGNED ) ) + + SUM( DISTINCT - 21 )
----
-4

skipif mysql # not compatible
query I rowsort label-5252
SELECT SUM ( - 47 ) + + COALESCE ( - - 64, CAST ( + 31 AS INTEGER ) ) + + SUM ( DISTINCT - 21 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT DISTINCT - - 49 DIV + 70 col2
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - - 49 / + 70 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5254
SELECT - MIN( - 48 ) + COALESCE ( + ( + 93 ), - - CAST( + 90 AS SIGNED ) ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-5254
SELECT - MIN ( - 48 ) + COALESCE ( + ( + 93 ), - - CAST ( + 90 AS INTEGER ) ) AS col2
----
141

query II rowsort
SELECT ALL + 81 + - 90 AS col0, - ( 5 )
----
-9
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT ALL + CAST( NULL AS SIGNED ) * + 11 / + ( + - 29 ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + CAST ( NULL AS INTEGER ) * + 11 / + ( + - 29 ) * 30
----
NULL

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 12, + + 50 ) col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + COUNT( * ) + + 61 * 34 + + 17
----
2092

skipif mysql # not compatible
query I rowsort label-5259
SELECT + COUNT ( * ) + + 61 * 34 + + 17
----
2092

query I rowsort
SELECT CASE + 34 WHEN - + NULLIF ( + 2, 77 ) THEN NULL ELSE + 35 END col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5261
SELECT ALL + NULLIF ( + 14, + 56 * + 58 / 40 * 29 / + + CASE + 85 WHEN 68 * - 64 THEN + 28 * - 52 + - 9 * + COUNT( - 15 ) ELSE 22 END * + COUNT( * ) - - + CASE + + 9 WHEN - 97 THEN + NULLIF ( + 68, - - 7 ) END + 46 + + 64 ) AS col2, ( - COALESCE ( CASE - - 0 WHEN - 54 THEN + 34 * - 24 END, COUNT( * ) + 6, CAST( 38 AS SIGNED ) - - 2 ) ) AS col1
----
14
-7

skipif mysql # not compatible
query II rowsort label-5261
SELECT ALL + NULLIF ( + 14, + 56 * + 58 / 40 * 29 / + + CASE + 85 WHEN 68 * - 64 THEN + 28 * - 52 + - 9 * + COUNT ( - 15 ) ELSE 22 END * + COUNT ( * ) - - + CASE + + 9 WHEN - 97 THEN + NULLIF ( + 68, - - 7 ) END + 46 + + 64 ) AS col2, ( - COALESCE ( CASE - - 0 WHEN - 54 THEN + 34 * - 24 END, COUNT ( * ) + 6, CAST ( 38 AS INTEGER ) - - 2 ) ) AS col1
----
14
-7

query I rowsort
SELECT + 8 * - - 32 * + 29
----
7424

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - MIN( + 86 ) + + - 87
----
-173

skipif mysql # not compatible
query I rowsort label-5263
SELECT - MIN ( + 86 ) + + - 87
----
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT + 16 DIV 9 + + + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5264
SELECT + 16 / 9 + + + 61 AS col2
----
62

query I rowsort
SELECT ALL + NULLIF ( + 15, 78 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL 35 * + + 42 - MAX( 99 ) + 38
----
1409

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL 35 * + + 42 - MAX ( 99 ) + 38
----
1409

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT ALL - 47 DIV + - 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL - 47 / + - 63 col0
----
0

query II rowsort
SELECT DISTINCT + ( - 55 ) AS col1, 68
----
-55
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT DISTINCT - 38 DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - 38 / - + 64
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5271
SELECT - COALESCE ( - 88, - COUNT( * ) ) DIV - COALESCE ( - - 15, - MAX( ALL 25 ) ) + + + COALESCE ( 17, 4, 95 ) DIV + CASE + CAST( + + 46 AS SIGNED ) WHEN - ( + 11 ) THEN NULL WHEN - 90 THEN - ( - + 73 ) ELSE + + 81 END AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5271
SELECT - COALESCE ( - 88, - COUNT ( * ) ) / - COALESCE ( - - 15, - MAX ( ALL 25 ) ) + + + COALESCE ( 17, 4, 95 ) / + CASE + CAST ( + + 46 AS INTEGER ) WHEN - ( + 11 ) THEN NULL WHEN - 90 THEN - ( - + 73 ) ELSE + + 81 END AS col2
----
-5

query I rowsort
SELECT ALL + 69 * - 62 AS col1
----
-4278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5273
SELECT - - 64 DIV CAST( SUM( DISTINCT - 45 ) AS SIGNED ) DIV - - 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT - - 64 / CAST ( SUM ( DISTINCT - 45 ) AS INTEGER ) / - - 79 col0
----
0

query I rowsort
SELECT - 19 + + - 58 + - 82 * - - 12
----
-1061

query I rowsort
SELECT ALL 63 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT + ( ( - CASE + CASE - - 9 WHEN 34 THEN + + COALESCE ( - 60, - 66 ) + + - 14 + 90 WHEN - - MIN( + + 68 ) * + + 30 THEN - 91 END WHEN 96 / - 28 * - 79 + - 77 * 86 - - 74 * + 2 * - ( CASE 62 WHEN + + 46 + + 61 + - CASE - 57 WHEN + 19 * COUNT( DISTINCT 11 ) THEN - 75 + + 73 END THEN NULL WHEN - COUNT( * ) THEN NULL WHEN ( 57 ) * 45 THEN NULL ELSE - ( + 89 ) END ) THEN + COUNT( ALL - 54 ) + COALESCE ( + MIN( ALL 52 ), 17 * 21 - 76 ) * 57 END ) ) + ( - ( + 94 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT + ( ( - CASE + CASE - - 9 WHEN 34 THEN + + COALESCE ( - 60, - 66 ) + + - 14 + 90 WHEN - - MIN ( + + 68 ) * + + 30 THEN - 91 END WHEN 96 / - 28 * - 79 + - 77 * 86 - - 74 * + 2 * - ( CASE 62 WHEN + + 46 + + 61 + - CASE - 57 WHEN + 19 * COUNT ( DISTINCT 11 ) THEN - 75 + + 73 END THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN ( 57 ) * 45 THEN NULL ELSE - ( + 89 ) END ) THEN + COUNT ( ALL - 54 ) + COALESCE ( + MIN ( ALL 52 ), 17 * 21 - 76 ) * 57 END ) ) + ( - ( + 94 ) ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT + 7 DIV + ( 71 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT + 7 / + ( 71 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT 97 * 79 - COUNT( * ) + - + 94 AS col2
----
7568

skipif mysql # not compatible
query I rowsort label-5279
SELECT 97 * 79 - COUNT ( * ) + - + 94 AS col2
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT ALL 23 * 29 + COUNT( DISTINCT - 99 ) + - SUM( + 87 ) + + COALESCE ( + - 11, + + 78, + 16, + 86 ) + + 8
----
578

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL 23 * 29 + COUNT ( DISTINCT - 99 ) + - SUM ( + 87 ) + + COALESCE ( + - 11, + + 78, + 16, + 86 ) + + 8
----
578

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5282
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 21 + COUNT( - 44 ) + - 14 + + MAX( ALL 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 21 + COUNT ( - 44 ) + - 14 + + MAX ( ALL 27 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL 93 + + 79 + - COUNT( * ) AS col1
----
171

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL 93 + + 79 + - COUNT ( * ) AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT + COUNT( - - 48 ) * - 1 * 54 - + ( 73 )
----
-127

skipif mysql # not compatible
query I rowsort label-5284
SELECT + COUNT ( - - 48 ) * - 1 * 54 - + ( 73 )
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT - CAST( ( + - COUNT( ALL 77 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5285
SELECT - CAST ( ( + - COUNT ( ALL 77 ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT COUNT( * ) - 59 + - 29 - 56 * - 89 * + - 74 AS col0
----
-368903

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT COUNT ( * ) - 59 + - 29 - 56 * - 89 * + - 74 AS col0
----
-368903

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT - 39 DIV + + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT - 39 / + + 54 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT - SUM( 83 ) * + 71 AS col0, + 93 + NULLIF ( + 49, 80 + + 22 + + COUNT( * ) ) AS col2
----
-5893
142

skipif mysql # not compatible
query II rowsort label-5289
SELECT - SUM ( 83 ) * + 71 AS col0, + 93 + NULLIF ( + 49, 80 + + 22 + + COUNT ( * ) ) AS col2
----
-5893
142

query I rowsort
SELECT DISTINCT NULLIF ( + 56, + 64 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT ALL - 23 DIV - 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - 23 / - 54 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT - COALESCE ( + + 24, 17, 40 * 85 * - ( COUNT( * ) ) + COUNT( * ) ) DIV - 26 col1
----
0

skipif mysql # not compatible
query I rowsort label-5292
SELECT - COALESCE ( + + 24, 17, 40 * 85 * - ( COUNT ( * ) ) + COUNT ( * ) ) / - 26 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT - COUNT( * ) * + COALESCE ( + 7, 74 + + - 80, 48 + 84 * + COUNT( DISTINCT - 72 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5293
SELECT - COUNT ( * ) * + COALESCE ( + 7, 74 + + - 80, 48 + 84 * + COUNT ( DISTINCT - 72 ) ) AS col0
----
-7

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

query I rowsort
SELECT DISTINCT - 33 * 66
----
-2178

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

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

query I rowsort
SELECT ALL - 51 * + 2 * 39
----
-3978

query I rowsort
SELECT - 66 + - 19
----
-85

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

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

query I rowsort
SELECT ALL + NULLIF ( + + ( - 4 ), 30 ) AS col1
----
-4

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

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

query I rowsort
SELECT + 78 * + 62 + - 47 AS col2
----
4789

query I rowsort
SELECT - - 1 * + - 32 AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5304
SELECT - COUNT( * ) + - 13 + - 28 DIV + 90
----
-14

skipif mysql # not compatible
query I rowsort label-5304
SELECT - COUNT ( * ) + - 13 + - 28 / + 90
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5305
SELECT - 71 DIV - - 59 + 33 * + - COUNT( * ) + - COUNT( * ) + + + COUNT( * ) + 79 + - 36 - MAX( ALL - 68 ) + + 86 + ( + CAST( + 28 AS SIGNED ) ) + - 69 * + COUNT( * ) + - COUNT( * ) + - 16 DIV + 91 * + 14
----
121

skipif mysql # not compatible
query I rowsort label-5305
SELECT - 71 / - - 59 + 33 * + - COUNT ( * ) + - COUNT ( * ) + + + COUNT ( * ) + 79 + - 36 - MAX ( ALL - 68 ) + + 86 + ( + CAST ( + 28 AS INTEGER ) ) + - 69 * + COUNT ( * ) + - COUNT ( * ) + - 16 / + 91 * + 14
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT ALL - ( - 39 ) DIV + ( + 69 )
----
0

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - ( - 39 ) / + ( + 69 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT - - 52 DIV - 11 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5307
SELECT - - 52 / - 11 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT DISTINCT - 42 DIV 95 DIV 34 + + 63 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT - 42 / 95 / 34 + + 63 AS col2
----
63

query II rowsort
SELECT + + 8 AS col1, ( 94 ) * - 4
----
8
-376

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

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL - + COUNT ( * ) / - + 76
----
0

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

skipif mysql # not compatible
query I rowsort label-5311
SELECT + COUNT ( ALL 78 ) / - + 86 * - 35 AS col0
----
0

query I rowsort
SELECT + 94 * + NULLIF ( - - 53, - + 98 )
----
4982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT ALL - - CAST( - + 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - - CAST ( - + 63 AS INTEGER ) AS col2
----
-63

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

skipif mysql # not compatible
query I rowsort label-5314
SELECT 34 / 47
----
0

query I rowsort
SELECT + 16 * 7 + - 68 AS col2
----
44

query I rowsort
SELECT DISTINCT 48 - 62
----
-14

query II rowsort
SELECT ALL 26, - 2 AS col2
----
26
-2

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

query II rowsort
SELECT ALL 28 col0, - 56
----
28
-56

query I rowsort
SELECT DISTINCT - 36 - + 58 AS col2
----
-94

query I rowsort
SELECT ALL 21 * - 30 AS col0
----
-630

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

query I rowsort
SELECT 78 * 40
----
3120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT ( 61 ) + - 23 + - 51 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT ( 61 ) + - 23 + - 51 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 3 * + ( + 42 ) * + - 97 AS col0
----
-12222

query II rowsort
SELECT ALL 2, + 29 + 93 col2
----
2
122

query I rowsort
SELECT 94 * - - 17
----
1598

query I rowsort
SELECT 97 + - 79 + 29
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5330
SELECT 81, CASE + 36 WHEN COALESCE ( + 17, 52 * 93 * - 74, 23, - + 70 * + 54 ) THEN - - 59 WHEN 94 THEN - MAX( DISTINCT ( + 76 ) ) ELSE - + 21 END AS col0
----
81
-21

skipif mysql # not compatible
query II rowsort label-5330
SELECT 81, CASE + 36 WHEN COALESCE ( + 17, 52 * 93 * - 74, 23, - + 70 * + 54 ) THEN - - 59 WHEN 94 THEN - MAX ( DISTINCT ( + 76 ) ) ELSE - + 21 END AS col0
----
81
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5331
SELECT - 16, CAST( + 46 AS SIGNED ) + 77 AS col0
----
-16
123

skipif mysql # not compatible
query II rowsort label-5331
SELECT - 16, CAST ( + 46 AS INTEGER ) + 77 AS col0
----
-16
123

query II rowsort
SELECT ALL - 47 + 75, 14 * 35 * + 46 * - 22 + + ( 82 ) AS col1
----
28
-495798

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

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

query II rowsort
SELECT 24 AS col0, 37
----
24
37

query I rowsort
SELECT + 15 * - 50 + + CASE - - 92 WHEN + 41 + - - 1 THEN + + 29 END
----
NULL

query II rowsort
SELECT 95 AS col2, 41 AS col2
----
95
41

query I rowsort
SELECT ALL 98 + - 17 AS col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT MIN( ALL - - ( - 86 ) ) - + - ( + 88 )
----
2

skipif mysql # not compatible
query I rowsort label-5339
SELECT MIN ( ALL - - ( - 86 ) ) - + - ( + 88 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT DISTINCT - - 31 + - + CAST( + 11 AS SIGNED ) * - 40 AS col2
----
471

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - - 31 + - + CAST ( + 11 AS INTEGER ) * - 40 AS col2
----
471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5341
SELECT 38 * + - COALESCE ( + 85, - 72 * + COUNT( * ) * + - 55 + + AVG ( + 98 ) DIV + COUNT( * ) * - COUNT( - + 27 ) ) * + - 94 - - + COALESCE ( + CASE CASE 32 WHEN COALESCE ( + 14, 40 ) THEN 32 * + + NULLIF ( + COALESCE ( 48, - - 9, + - 85 DIV + - 89 + - + AVG ( 73 ) + + 43 * - CAST( NULL AS SIGNED ) + - 14 ), - 13 + 52 * + 88 ) * + 57 + - 73 END WHEN 35 THEN NULL ELSE 36 END, 37 ) + + 47 * + 54 + 15 AS col1
----
306209

skipif mysql # not compatible
query I rowsort label-5341
SELECT 38 * + - COALESCE ( + 85, - 72 * + COUNT ( * ) * + - 55 + + AVG ( + 98 ) / + COUNT ( * ) * - COUNT ( - + 27 ) ) * + - 94 - - + COALESCE ( + CASE CASE 32 WHEN COALESCE ( + 14, 40 ) THEN 32 * + + NULLIF ( + COALESCE ( 48, - - 9, + - 85 / + - 89 + - + AVG ( 73 ) + + 43 * - CAST ( NULL AS INTEGER ) + - 14 ), - 13 + 52 * + 88 ) * + 57 + - 73 END WHEN 35 THEN NULL ELSE 36 END, 37 ) + + 47 * + 54 + 15 AS col1
----
306209

query II rowsort
SELECT 38 AS col1, 74
----
38
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL - - 55 + COUNT( * ) - - - 8 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - - 55 + COUNT ( * ) - - - 8 AS col0
----
48

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

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

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

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

query I rowsort
SELECT ( + + 48 ) - - + 84 * 68 col2
----
5760

onlyif mysql # aggregate syntax: 
query II rowsort label-5347
SELECT DISTINCT - 90 AS col1, + MIN( ALL + + ( + ( 2 ) ) ) AS col2
----
-90
2

skipif mysql # not compatible
query II rowsort label-5347
SELECT DISTINCT - 90 AS col1, + MIN ( ALL + + ( + ( 2 ) ) ) AS col2
----
-90
2

query II rowsort
SELECT ALL - + 75 AS col0, 5 AS col0
----
-75
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT + + 13 - + + CASE - COALESCE ( - 58, - CASE 47 WHEN + 27 THEN NULL ELSE + - 54 * - 59 END ) WHEN + 78 + + + 90 THEN + COALESCE ( - + 95, + 8, 96 ) * - MAX( - 86 ) * - - 54 + + ( + 42 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT + + 13 - + + CASE - COALESCE ( - 58, - CASE 47 WHEN + 27 THEN NULL ELSE + - 54 * - 59 END ) WHEN + 78 + + + 90 THEN + COALESCE ( - + 95, + 8, 96 ) * - MAX ( - 86 ) * - - 54 + + ( + 42 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL 11 * + COUNT( * ) * - COUNT( * ) * - 34
----
374

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL 11 * + COUNT ( * ) * - COUNT ( * ) * - 34
----
374

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT ALL + - 63 DIV - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL + - 63 / - 76 AS col2
----
0

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

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

query I rowsort
SELECT 37 * 15 col0
----
555

query I rowsort
SELECT + 49 * 66 * + 43 + + - 7 AS col0
----
139055

query I rowsort
SELECT ALL + 23 * + 27 * + + 75 col2
----
46575

query I rowsort
SELECT CASE 35 WHEN 7 - + 42 THEN 56 END * - 13
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT ALL - 60 * 54 col2, CASE 59 WHEN - 18 THEN NULL ELSE 74 END + - COUNT( * ) AS col0
----
-3240
73

skipif mysql # not compatible
query II rowsort label-5358
SELECT ALL - 60 * 54 col2, CASE 59 WHEN - 18 THEN NULL ELSE 74 END + - COUNT ( * ) AS col0
----
-3240
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5359
SELECT DISTINCT 73 + - 93 DIV - ( + - 51 )
----
72

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT 73 + - 93 / - ( + - 51 )
----
72

query I rowsort
SELECT NULLIF ( + 92, + 44 ) * + 26 AS col2
----
2392

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

query I rowsort
SELECT ALL 8 + - 40 * ( - 93 )
----
3728

query I rowsort
SELECT 77 - - 39 + + - 91 * - 28 AS col2
----
2664

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

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL COUNT ( * ) * - ( + + MIN ( + 99 ) ) AS col2
----
-99

query I rowsort
SELECT ALL - ( ( 2 ) ) + 3 AS col2
----
1

query I rowsort
SELECT DISTINCT + 57 * - + 31 * + 24 * + 46 col0
----
-1950768

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT DISTINCT MIN( DISTINCT 71 ), + 47 AS col0
----
71
47

skipif mysql # not compatible
query II rowsort label-5367
SELECT DISTINCT MIN ( DISTINCT 71 ), + 47 AS col0
----
71
47

query II rowsort
SELECT ALL 96 * 42 AS col1, - 18 + + + 31 AS col2
----
4032
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT - COUNT( * ) - 88 + - + 60 + - 10 AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-5369
SELECT - COUNT ( * ) - 88 + - + 60 + - 10 AS col1
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT 78 * - 90 + - - 44 + + - 77 * - 43 * - MAX( ALL - 55 ) - + 23 col1
----
175106

skipif mysql # not compatible
query I rowsort label-5370
SELECT 78 * - 90 + - - 44 + + - 77 * - 43 * - MAX ( ALL - 55 ) - + 23 col1
----
175106

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT ALL + COUNT( * ) * + COALESCE ( - 80, 62 ) - 50 + - 55 * + 52 * SUM( 34 ) * + COUNT( * ) * + CAST( 57 AS SIGNED ) + - 81 AS col0
----
-5542891

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + COUNT ( * ) * + COALESCE ( - 80, 62 ) - 50 + - 55 * + 52 * SUM ( 34 ) * + COUNT ( * ) * + CAST ( 57 AS INTEGER ) + - 81 AS col0
----
-5542891

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL + MAX( ALL - 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + MAX ( ALL - 90 ) AS col2
----
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL + SUM( - + 69 ) * + MAX( ALL 66 ) * + + 6 AS col1
----
-27324

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + SUM ( - + 69 ) * + MAX ( ALL 66 ) * + + 6 AS col1
----
-27324

onlyif mysql # aggregate syntax: 
query II rowsort label-5376
SELECT ALL + - COUNT( * ) * + + 39 + - 89, + 80 * - 90 col0
----
-128
-7200

skipif mysql # not compatible
query II rowsort label-5376
SELECT ALL + - COUNT ( * ) * + + 39 + - 89, + 80 * - 90 col0
----
-128
-7200

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5378
SELECT 55 * CASE 32 WHEN + MAX( - + NULLIF ( + 35, + + 76 + 80 ) ) THEN NULL ELSE MIN( DISTINCT - 34 ) * + 71 + + 85 END - + + 15 + - + CAST( NULL AS SIGNED ) * + NULLIF ( + + 93, + - 12 * 68 * + - COUNT( * ) + - 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT 55 * CASE 32 WHEN + MAX ( - + NULLIF ( + 35, + + 76 + 80 ) ) THEN NULL ELSE MIN ( DISTINCT - 34 ) * + 71 + + 85 END - + + 15 + - + CAST ( NULL AS INTEGER ) * + NULLIF ( + + 93, + - 12 * 68 * + - COUNT ( * ) + - 20 )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT MAX( DISTINCT - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-5381
SELECT MAX ( DISTINCT - 29 )
----
-29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5383
SELECT - ( + NULLIF ( - 19, NULLIF ( 48, + - 6 ) ) ) * COUNT( * ) * - 37 DIV + COUNT( * )
----
-703

skipif mysql # not compatible
query I rowsort label-5383
SELECT - ( + NULLIF ( - 19, NULLIF ( 48, + - 6 ) ) ) * COUNT ( * ) * - 37 / + COUNT ( * )
----
-703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5384
SELECT - CAST( CASE - + 47 WHEN + COUNT( * ) + COUNT( * ) THEN - 51 WHEN - 76 / + 57 + AVG ( ( - - 86 ) ) THEN + + COUNT( * ) ELSE NULL END AS SIGNED ) - - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT - CAST ( CASE - + 47 WHEN + COUNT ( * ) + COUNT ( * ) THEN - 51 WHEN - 76 / + 57 + AVG ( ( - - 86 ) ) THEN + + COUNT ( * ) ELSE NULL END AS INTEGER ) - - 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - COUNT( DISTINCT + 99 ) - - - ( - 72 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-5385
SELECT - COUNT ( DISTINCT + 99 ) - - - ( - 72 ) col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5386
SELECT ALL + 1 DIV + 27 col0
----
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL + 1 / + 27 col0
----
0

query I rowsort
SELECT DISTINCT + 47 + - 76 AS col2
----
-29

query II rowsort
SELECT 57 AS col1, + 73 AS col0
----
57
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5389
SELECT - COALESCE ( + 37, - 66 + - 43, - COUNT( * ) + - 53 DIV COUNT( * ) * - 34 ) + + 18
----
-19

skipif mysql # not compatible
query I rowsort label-5389
SELECT - COALESCE ( + 37, - 66 + - 43, - COUNT ( * ) + - 53 / COUNT ( * ) * - 34 ) + + 18
----
-19

query I rowsort
SELECT ALL + 20 * - CASE 35 WHEN - - 95 THEN + 48 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT + 96 - - MAX( + 72 ) AS col0
----
168

skipif mysql # not compatible
query I rowsort label-5391
SELECT + 96 - - MAX ( + 72 ) AS col0
----
168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - ( + 42 ) + + CASE 6 WHEN + ( + 89 ) - + 38 THEN - COUNT( * ) ELSE NULL END * + + 1 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT - ( + 42 ) + + CASE 6 WHEN + ( + 89 ) - + 38 THEN - COUNT ( * ) ELSE NULL END * + + 1 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT ALL + 29 + + 70 + + + ( - - 37 ) AS col1, - COALESCE ( + - 3, + 28 ) - + COUNT( * )
----
136
2

skipif mysql # not compatible
query II rowsort label-5394
SELECT ALL + 29 + + 70 + + + ( - - 37 ) AS col1, - COALESCE ( + - 3, + 28 ) - + COUNT ( * )
----
136
2

query I rowsort
SELECT DISTINCT - 75 * - - 89
----
-6675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5396
SELECT ALL 41 + - + 41 + - + COUNT( * ) * - + ( - NULLIF ( + 4, COUNT( * ) ) ) * + - CAST( NULL AS SIGNED ) * - + 68 + + 34 - - - AVG ( + 13 ) * + CASE ( - - 86 ) WHEN NULLIF ( - 39, + 12 ) * 95 / + MIN( 4 ) THEN + + 63 ELSE NULL END * + 74 * + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL 41 + - + 41 + - + COUNT ( * ) * - + ( - NULLIF ( + 4, COUNT ( * ) ) ) * + - CAST ( NULL AS INTEGER ) * - + 68 + + 34 - - - AVG ( + 13 ) * + CASE ( - - 86 ) WHEN NULLIF ( - 39, + 12 ) * 95 / + MIN ( 4 ) THEN + + 63 ELSE NULL END * + 74 * + 80 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT ALL + COALESCE ( + CAST( 72 AS SIGNED ), - 90 + COUNT( * ) + 67, 36, - 74, 32 )
----
72

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL + COALESCE ( + CAST ( 72 AS INTEGER ), - 90 + COUNT ( * ) + 67, 36, - 74, 32 )
----
72

query I rowsort
SELECT ALL NULLIF ( - 94, 82 + 55 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - - CASE 42 WHEN - + AVG ( - - 93 ) THEN - - 33 ELSE + + COUNT( * ) * + 14 + 83 END col1
----
97

skipif mysql # not compatible
query I rowsort label-5399
SELECT - - CASE 42 WHEN - + AVG ( - - 93 ) THEN - - 33 ELSE + + COUNT ( * ) * + 14 + 83 END col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT 3 + 34 + - COUNT( 62 ) * + ( - 3 ) + 49
----
89

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT 3 + 34 + - COUNT ( 62 ) * + ( - 3 ) + 49
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5401
SELECT 93 AS col0, COUNT( * ) * - 50 AS col1
----
93
-50

skipif mysql # not compatible
query II rowsort label-5401
SELECT 93 AS col0, COUNT ( * ) * - 50 AS col1
----
93
-50

query I rowsort
SELECT ALL - 34 - - - 60 AS col0
----
-94

query I rowsort
SELECT + 60 * 94 - + - 35
----
5675

query I rowsort
SELECT - 80 * - + 53 + 16 + + 81 AS col0
----
4337

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT + + MAX( ALL - 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + + MAX ( ALL - 94 ) AS col2
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-5406
SELECT ALL + + 10 AS col0, - 55 * + ( + 43 ) - + 65 + - 52 DIV - + 90 AS col2
----
10
-2430

skipif mysql # not compatible
query II rowsort label-5406
SELECT ALL + + 10 AS col0, - 55 * + ( + 43 ) - + 65 + - 52 / - + 90 AS col2
----
10
-2430

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT + + 13 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT + + 13 / - 74 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5408
SELECT DISTINCT + - CAST( NULL AS SIGNED ), 87 col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-5408
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), 87 col1
----
NULL
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5409
SELECT ALL + 99, - CASE 14 WHEN + + 26 + 48 THEN ( - 17 ) + - COUNT( * ) END * + - 72 / + + 97 + + ( + 78 ) * - AVG ( 43 ) * - 37 - - 83 + + - 37 * - 34 * 47 col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-5409
SELECT ALL + 99, - CASE 14 WHEN + + 26 + 48 THEN ( - 17 ) + - COUNT ( * ) END * + - 72 / + + 97 + + ( + 78 ) * - AVG ( 43 ) * - 37 - - 83 + + - 37 * - 34 * 47 col0
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT + ( 37 ) + + 7 + COUNT( * ) col1
----
45

skipif mysql # not compatible
query I rowsort label-5410
SELECT + ( 37 ) + + 7 + COUNT ( * ) col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5411
SELECT - 92 DIV 86 * + 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5411
SELECT - 92 / 86 * + 9 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5412
SELECT ALL 98 DIV - CAST( + + 60 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL 98 / - CAST ( + + 60 AS INTEGER )
----
-1

query I rowsort
SELECT 59 * 36 + + + 7 AS col1
----
2131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5414
SELECT - 10 - CASE + 14 WHEN - 77 THEN - 15 + COUNT( * ) * + 3 / + - 36 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END - COALESCE ( + 40, - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT - 10 - CASE + 14 WHEN - 77 THEN - 15 + COUNT ( * ) * + 3 / + - 36 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END - COALESCE ( + 40, - 15 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5416
SELECT ALL + MAX( - 50 ) * + ( + COUNT( * ) ) DIV + ( 62 ) + 6 col2
----
6

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + MAX ( - 50 ) * + ( + COUNT ( * ) ) / + ( 62 ) + 6 col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT ALL + COALESCE ( - ( - CASE 19 WHEN + + NULLIF ( + 79, 24 + - 47 * - + 68 ) THEN NULL WHEN 62 + 77 + + 50 + + 80 + + 60 DIV + 40 THEN - 23 DIV - - 27 ELSE NULL END ), + 21 + 39, 94 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL + COALESCE ( - ( - CASE 19 WHEN + + NULLIF ( + 79, 24 + - 47 * - + 68 ) THEN NULL WHEN 62 + 77 + + 50 + + 80 + + 60 / + 40 THEN - 23 / - - 27 ELSE NULL END ), + 21 + 39, 94 ) AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT + 56 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-5418
SELECT + 56 / - 44
----
-1

query I rowsort
SELECT - 74 + + 51 + 48
----
25

query I rowsort
SELECT DISTINCT + 13 col2
----
13

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5422
SELECT ALL + CAST( + 60 AS SIGNED ) AS col1, - 23
----
60
-23

skipif mysql # not compatible
query II rowsort label-5422
SELECT ALL + CAST ( + 60 AS INTEGER ) AS col1, - 23
----
60
-23

query I rowsort
SELECT ALL 9 * + 82 + 22
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT + COUNT( * ) * + 23 * - 64 col0
----
-1472

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT + COUNT ( * ) * + 23 * - 64 col0
----
-1472

query I rowsort
SELECT + 14 * - 93
----
-1302

query II rowsort
SELECT ALL ( + 36 ) AS col2, - 39
----
36
-39

query I rowsort
SELECT - 96 + + 88
----
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5428
SELECT - 67 * - 40 * + 2 DIV - COALESCE ( + - ( 1 ), - 81 * CAST( - ( - 28 ) AS SIGNED ) - 99 ) AS col2
----
5360

skipif mysql # not compatible
query I rowsort label-5428
SELECT - 67 * - 40 * + 2 / - COALESCE ( + - ( 1 ), - 81 * CAST ( - ( - 28 ) AS INTEGER ) - 99 ) AS col2
----
5360

query I rowsort
SELECT ALL NULLIF ( + 97, - 4 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL + SUM( 35 ) + - 91
----
-56

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL + SUM ( 35 ) + - 91
----
-56

query I rowsort
SELECT DISTINCT - 43 * - 34
----
1462

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5433
SELECT ALL CAST( NULL AS SIGNED ) * + + 86 * + - CASE - MAX( ALL - 42 ) WHEN + 33 THEN NULL WHEN - 95 THEN + 94 END * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL CAST ( NULL AS INTEGER ) * + + 86 * + - CASE - MAX ( ALL - 42 ) WHEN + 33 THEN NULL WHEN - 95 THEN + 94 END * - 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5434
SELECT - 17 + COUNT( * ) AS col2, 85 + 27 AS col0
----
-16
112

skipif mysql # not compatible
query II rowsort label-5434
SELECT - 17 + COUNT ( * ) AS col2, 85 + 27 AS col0
----
-16
112

query I rowsort
SELECT - 44 * + + 85
----
-3740

query I rowsort
SELECT ALL - 47 * 9 + - 19
----
-442

query I rowsort
SELECT ALL + 89 * - ( + CASE + 84 WHEN NULLIF ( + 36, + 46 ) * - 84 + + 34 THEN NULL ELSE + ( + 20 ) * - + ( - 10 ) END )
----
-17800

query I rowsort
SELECT DISTINCT + 45 * 14
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT + COUNT( * ) * 85 + + COUNT( * ) - + - 91 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-5439
SELECT + COUNT ( * ) * 85 + + COUNT ( * ) - + - 91 AS col0
----
177

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

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - + CAST ( - 72 AS INTEGER ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT 1 / - CASE 81 WHEN + 66 / - 23 THEN - 86 END + + + COUNT( * ) + - 42 - + COUNT( * ) + + 59 * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT 1 / - CASE 81 WHEN + 66 / - 23 THEN - 86 END + + + COUNT ( * ) + - 42 - + COUNT ( * ) + + 59 * - 67
----
NULL

query I rowsort
SELECT 93 - + + 67 + + - 67
----
-41

query I rowsort
SELECT ALL - - NULLIF ( - 94, - 33 / 14 * + 1 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT 26 * + + 77 + - - MIN( - 90 ), - COUNT( * ) AS col2
----
1912
-1

skipif mysql # not compatible
query II rowsort label-5444
SELECT 26 * + + 77 + - - MIN ( - 90 ), - COUNT ( * ) AS col2
----
1912
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + COALESCE ( + 95, + 79 * - 58, 9 * + MIN( + + 96 ) * + - NULLIF ( - 31, - 75 ), + 16 + + - 89 )
----
95

skipif mysql # not compatible
query I rowsort label-5445
SELECT + COALESCE ( + 95, + 79 * - 58, 9 * + MIN ( + + 96 ) * + - NULLIF ( - 31, - 75 ), + 16 + + - 89 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5446
SELECT - 10 * 65 + - ( - COUNT( * ) ) AS col2, CAST( - 87 AS SIGNED )
----
-649
-87

skipif mysql # not compatible
query II rowsort label-5446
SELECT - 10 * 65 + - ( - COUNT ( * ) ) AS col2, CAST ( - 87 AS INTEGER )
----
-649
-87

query I rowsort
SELECT 62 * + + 19
----
1178

query I rowsort
SELECT DISTINCT - 19 * - ( - ( - 41 ) )
----
779

query I rowsort
SELECT DISTINCT 27 + - - 74 * + + ( - 35 )
----
-2563

query I rowsort
SELECT ALL 39 + - 31
----
8

query I rowsort
SELECT DISTINCT 97 + - 82
----
15

query I rowsort
SELECT ALL 56 + - + 21 AS col0
----
35

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

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL COUNT ( * ) + 98 col1
----
99

query II rowsort
SELECT DISTINCT - 39 AS col1, + 97
----
-39
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5455
SELECT 13 * + 43 DIV COUNT( * ) AS col2, 57 + + 54 AS col1
----
559
111

skipif mysql # not compatible
query II rowsort label-5455
SELECT 13 * + 43 / COUNT ( * ) AS col2, 57 + + 54 AS col1
----
559
111

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT CAST( + 97 AS SIGNED ) + + 70 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-5457
SELECT CAST ( + 97 AS INTEGER ) + + 70 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL + COALESCE ( 38, ( - + MIN( DISTINCT - ( - 93 ) ) ) ) + + + 54
----
92

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + COALESCE ( 38, ( - + MIN ( DISTINCT - ( - 93 ) ) ) ) + + + 54
----
92

query I rowsort
SELECT COALESCE ( + 68, + + 98 ) * + 93 AS col1
----
6324

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT DISTINCT 90 DIV - - 4
----
22

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT 90 / - - 4
----
22

query I rowsort
SELECT 12 - 85 AS col2
----
-73

query I rowsort
SELECT DISTINCT - ( ( + + 6 ) ) * - + 82 AS col0
----
492

query II rowsort
SELECT 96 + 2 + + + 68, 27 * 29 col1
----
166
783

query I rowsort
SELECT 32 + 92
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT NULLIF ( - - COUNT( * ), - + 9 ) * - 83 * - 98 + + MIN( DISTINCT + - COALESCE ( + - 23, - 60 ) ) + + + 31 AS col2
----
8188

skipif mysql # not compatible
query I rowsort label-5465
SELECT NULLIF ( - - COUNT ( * ), - + 9 ) * - 83 * - 98 + + MIN ( DISTINCT + - COALESCE ( + - 23, - 60 ) ) + + + 31 AS col2
----
8188

query I rowsort
SELECT + 15 * - ( - 56 ) col2
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * + 6 col1
----
6

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * + 6 col1
----
6

query I rowsort
SELECT + 59 + - 74
----
-15

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

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL CAST ( + - 37 AS INTEGER ) col0
----
-37

query I rowsort
SELECT ( - 24 ) + 76
----
52

query I rowsort
SELECT + 42 - - 41 AS col1
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT - COALESCE ( + 18, ( + 23 ) - - 8 * - - ( - 69 ) + + CASE + - 3 WHEN - 40 * - 78 / ( ( 94 ) ) * - 91 * - ( - 31 ) THEN NULL ELSE MAX( + ( - 22 ) ) END )
----
-18

skipif mysql # not compatible
query I rowsort label-5473
SELECT - COALESCE ( + 18, ( + 23 ) - - 8 * - - ( - 69 ) + + CASE + - 3 WHEN - 40 * - 78 / ( ( 94 ) ) * - 91 * - ( - 31 ) THEN NULL ELSE MAX ( + ( - 22 ) ) END )
----
-18

query I rowsort
SELECT 8 + + 20 * - 97 col0
----
-1932

query I rowsort
SELECT ALL + 91 * + - 27 AS col2
----
-2457

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

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

query I rowsort
SELECT + 84 + 82 AS col0
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5478
SELECT - - 41 AS col2, - CAST( + - 50 AS SIGNED )
----
41
50

skipif mysql # not compatible
query II rowsort label-5478
SELECT - - 41 AS col2, - CAST ( + - 50 AS INTEGER )
----
41
50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT ( + 67 ) * - 47 + + ( + NULLIF ( + ( + 16 ), + CAST( + ( + 96 ) AS SIGNED ) / CASE - 25 WHEN 86 THEN NULL WHEN 70 THEN NULL WHEN - + 23 + + + 65 THEN - - 18 ELSE - - 52 END ) ) * 48
----
-2381

skipif mysql # not compatible
query I rowsort label-5480
SELECT ( + 67 ) * - 47 + + ( + NULLIF ( + ( + 16 ), + CAST ( + ( + 96 ) AS INTEGER ) / CASE - 25 WHEN 86 THEN NULL WHEN 70 THEN NULL WHEN - + 23 + + + 65 THEN - - 18 ELSE - - 52 END ) ) * 48
----
-2381

query II rowsort
SELECT - 48, + 17 * - CASE 44 WHEN + - 12 THEN + 80 ELSE NULL END col1
----
-48
NULL

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

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

query I rowsort
SELECT ALL 29 * - + 32 + + 43 + - + 15
----
-900

query I rowsort
SELECT ALL 14 * 27 + + 69 AS col0
----
447

query I rowsort
SELECT DISTINCT 83 * - + 19 + + 94 col0
----
-1483

query II rowsort
SELECT DISTINCT - 49 col2, + 69
----
-49
69

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

skipif mysql # not compatible
query I rowsort label-5487
SELECT 60 / + COUNT ( * ) + + COUNT ( * ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5488
SELECT ALL COUNT( * ) + + 71 + + 32 * - 36 DIV + 6
----
-120

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL COUNT ( * ) + + 71 + + 32 * - 36 / + 6
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5489
SELECT - 94 DIV + - 56 - + 80 + + 81 * + MAX( - - 55 ) * + 47, + 47 + + COALESCE ( - + ( - + 85 ), - 2 ) col2
----
209306
132

skipif mysql # not compatible
query II rowsort label-5489
SELECT - 94 / + - 56 - + 80 + + 81 * + MAX ( - - 55 ) * + 47, + 47 + + COALESCE ( - + ( - + 85 ), - 2 ) col2
----
209306
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT ALL 85 * + - CAST( + - 27 AS SIGNED )
----
2295

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL 85 * + - CAST ( + - 27 AS INTEGER )
----
2295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5491
SELECT COUNT( * ) - - 30 / + - 7 / - - 81 * + CASE 2 WHEN - - 28 THEN NULL WHEN 6 / - 34 THEN + CAST( 54 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT COUNT ( * ) - - 30 / + - 7 / - - 81 * + CASE 2 WHEN - - 28 THEN NULL WHEN 6 / - 34 THEN + CAST ( 54 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT MIN( + + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-5492
SELECT MIN ( + + 27 ) AS col1
----
27

query I rowsort
SELECT ALL + 70 * - 89 col1
----
-6230

query I rowsort
SELECT DISTINCT - 16 - 50 col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT DISTINCT CASE CASE MAX( ALL 98 ) WHEN ( CASE - ( 15 ) WHEN - 86 THEN NULL WHEN - NULLIF ( + + 7, - 0 + + - 54 + 22 ) THEN + 22 WHEN - 35 THEN NULL END ) + + NULLIF ( - + 30, 4 * - 74 ) THEN + + ( - 90 ) + 43 WHEN + ( + COALESCE ( COALESCE ( - 15, 0, - CAST( NULL AS SIGNED ) / + - 16 ), 44 ) ) THEN NULL END WHEN - - 12 + + + 46 THEN - + 78 WHEN + 78 * COUNT( * ) * MIN( 27 ) THEN NULL END - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT CASE CASE MAX ( ALL 98 ) WHEN ( CASE - ( 15 ) WHEN - 86 THEN NULL WHEN - NULLIF ( + + 7, - 0 + + - 54 + 22 ) THEN + 22 WHEN - 35 THEN NULL END ) + + NULLIF ( - + 30, 4 * - 74 ) THEN + + ( - 90 ) + 43 WHEN + ( + COALESCE ( COALESCE ( - 15, 0, - CAST ( NULL AS INTEGER ) / + - 16 ), 44 ) ) THEN NULL END WHEN - - 12 + + + 46 THEN - + 78 WHEN + 78 * COUNT ( * ) * MIN ( 27 ) THEN NULL END - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL COUNT( * ) * 60 * - 45 AS col2
----
-2700

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL COUNT ( * ) * 60 * - 45 AS col2
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT - 50 * + 5 + - - ( 32 ) * - COUNT( * )
----
-282

skipif mysql # not compatible
query I rowsort label-5497
SELECT - 50 * + 5 + - - ( 32 ) * - COUNT ( * )
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT + 25 DIV + + 80
----
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT + 25 / + + 80
----
0

query I rowsort
SELECT + - 53 * - 44 + - 22 AS col2
----
2310

onlyif mysql # DIV for integer division: 
query II rowsort label-5500
SELECT ALL - 47 DIV 30 AS col0, 94 AS col1
----
-1
94

skipif mysql # not compatible
query II rowsort label-5500
SELECT ALL - 47 / 30 AS col0, 94 AS col1
----
-1
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT - + CASE + 8 WHEN + 13 * CAST( NULL AS SIGNED ) THEN + 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT - + CASE + 8 WHEN + 13 * CAST ( NULL AS INTEGER ) THEN + 36 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + 36 + 42 + - + 87
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT ALL MAX( ALL + 34 ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL MAX ( ALL + 34 ) / - 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT + CAST( 59 AS SIGNED ) * - 93 + + + 7 * + - 38 AS col0
----
-5753

skipif mysql # not compatible
query I rowsort label-5504
SELECT + CAST ( 59 AS INTEGER ) * - 93 + + + 7 * + - 38 AS col0
----
-5753

query I rowsort
SELECT + 79 * + + ( + 99 )
----
7821

query II rowsort
SELECT ALL + 81, 54 + - 87 - - 68 AS col1
----
81
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5507
SELECT DISTINCT - COUNT( * ), CASE - 87 WHEN - 10 - 18 + + ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) * 63 THEN + NULLIF ( + 50, - + 57 ) ELSE NULL END + + COALESCE ( + COUNT( * ), 37 + - + 86 * + 24 ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5507
SELECT DISTINCT - COUNT ( * ), CASE - 87 WHEN - 10 - 18 + + ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * 63 THEN + NULLIF ( + 50, - + 57 ) ELSE NULL END + + COALESCE ( + COUNT ( * ), 37 + - + 86 * + 24 ) AS col2
----
-1
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5508
SELECT ALL + 64 * + + 84 * + 81 * + 39 / + - CAST( NULL AS DECIMAL ) + + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + 64 * + + 84 * + 81 * + 39 / + - CAST ( NULL AS REAL ) + + + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL - COUNT( * ) * - 91 * + 58
----
5278

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL - COUNT ( * ) * - 91 * + 58
----
5278

onlyif mysql # aggregate syntax: 
query II rowsort label-5510
SELECT DISTINCT + COUNT( * ), 74 + + - 2 AS col0
----
1
72

skipif mysql # not compatible
query II rowsort label-5510
SELECT DISTINCT + COUNT ( * ), 74 + + - 2 AS col0
----
1
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT - + 84 + + 92 DIV + COALESCE ( - 10, - 58 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-5511
SELECT - + 84 + + 92 / + COALESCE ( - 10, - 58 ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-5512
SELECT - 9 AS col0, - ( - 42 ) DIV 24 DIV - - 26 col2
----
-9
0

skipif mysql # not compatible
query II rowsort label-5512
SELECT - 9 AS col0, - ( - 42 ) / 24 / - - 26 col2
----
-9
0

query I rowsort
SELECT ALL - 45 + - 35 - - + 82 + - 87 * - 45 AS col2
----
3917

query I rowsort
SELECT + + 40 - + + 10
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL 65 + COUNT( * ) * 86 + + - 52 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL 65 + COUNT ( * ) * 86 + + - 52 AS col2
----
99

query I rowsort
SELECT ALL + 63 + 20 AS col0
----
83

query I rowsort
SELECT DISTINCT - 52 + 90 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT 85 * + NULLIF ( + COALESCE ( - COUNT( * ), - 33, - MAX( ALL 6 ) ), + - 44 - + - 19 + - 84 + 42 ) + + ( - MAX( 74 ) ) + - + 44
----
-203

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT 85 * + NULLIF ( + COALESCE ( - COUNT ( * ), - 33, - MAX ( ALL 6 ) ), + - 44 - + - 19 + - 84 + 42 ) + + ( - MAX ( 74 ) ) + - + 44
----
-203

query I rowsort
SELECT DISTINCT + 59 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ( - - CASE - 68 WHEN + - 27 * - + COUNT( + 31 ) THEN - + COUNT( * ) / + COUNT( * ) * + 9 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT ( - - CASE - 68 WHEN + - 27 * - + COUNT ( + 31 ) THEN - + COUNT ( * ) / + COUNT ( * ) * + 9 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5522
SELECT DISTINCT + 56 * - CASE - 97 WHEN + - COUNT( + + 2 ) THEN + 77 + - 21 + COALESCE ( NULLIF ( - 4, 43 - - CAST( NULL AS SIGNED ) ), 96 * - - 96 * COUNT( * ) ) * 62 / + + 99 WHEN 64 THEN 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + 56 * - CASE - 97 WHEN + - COUNT ( + + 2 ) THEN + 77 + - 21 + COALESCE ( NULLIF ( - 4, 43 - - CAST ( NULL AS INTEGER ) ), 96 * - - 96 * COUNT ( * ) ) * 62 / + + 99 WHEN 64 THEN 53 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5523
SELECT - 80 * + 95 * + COUNT( * ) AS col1, 60 - + 93 + - COUNT( * ) AS col0
----
-7600
-34

skipif mysql # not compatible
query II rowsort label-5523
SELECT - 80 * + 95 * + COUNT ( * ) AS col1, 60 - + 93 + - COUNT ( * ) AS col0
----
-7600
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5524
SELECT ( 32 ) AS col0, 29 + CASE + 69 WHEN 56 * 79 THEN NULL WHEN 97 + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + - 97 + + 26 + 52 * + CASE - - 56 WHEN NULLIF ( - - 60, + 67 ) THEN COALESCE ( + 29, + - 5 + COUNT( * ), + 67 DIV - 81, - COUNT( * ) ) * + ( - + 61 ) DIV 44 + + 17 * - + 22 - MIN( ALL 11 ) DIV - 8 * + 67 * - - 22 * NULLIF ( - - 15, + 25 + 90 ) WHEN 64 * + SUM( + 90 ) THEN NULL ELSE NULL END ELSE - 96 END col2
----
32
-67

skipif mysql # not compatible
query II rowsort label-5524
SELECT ( 32 ) AS col0, 29 + CASE + 69 WHEN 56 * 79 THEN NULL WHEN 97 + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + - 97 + + 26 + 52 * + CASE - - 56 WHEN NULLIF ( - - 60, + 67 ) THEN COALESCE ( + 29, + - 5 + COUNT ( * ), + 67 / - 81, - COUNT ( * ) ) * + ( - + 61 ) / 44 + + 17 * - + 22 - MIN ( ALL 11 ) / - 8 * + 67 * - - 22 * NULLIF ( - - 15, + 25 + 90 ) WHEN 64 * + SUM ( + 90 ) THEN NULL ELSE NULL END ELSE - 96 END col2
----
32
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5525
SELECT - ( + 11 ) * - - 53 + - CAST( - + 10 AS SIGNED ) AS col2, 67 AS col1
----
-573
67

skipif mysql # not compatible
query II rowsort label-5525
SELECT - ( + 11 ) * - - 53 + - CAST ( - + 10 AS INTEGER ) AS col2, 67 AS col1
----
-573
67

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

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

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

skipif mysql # not compatible
query II rowsort label-5527
SELECT ( 36 ) AS col2, - COUNT ( * ) AS col0
----
36
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - 44 * - 2 * - SUM( - 26 ) * 44
----
100672

skipif mysql # not compatible
query I rowsort label-5528
SELECT - 44 * - 2 * - SUM ( - 26 ) * 44
----
100672

query II rowsort
SELECT ALL + 39 * ( + 25 ) AS col2, 49
----
975
49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT DISTINCT 90 / - CAST( NULL AS SIGNED ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT 90 / - CAST ( NULL AS INTEGER ) * 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5532
SELECT DISTINCT + CASE + NULLIF ( - + CAST( - 68 AS SIGNED ), - 59 ) WHEN + + 99 THEN 94 WHEN + 94 THEN NULL END AS col0, 42 * + 79 AS col1
----
NULL
3318

skipif mysql # not compatible
query II rowsort label-5532
SELECT DISTINCT + CASE + NULLIF ( - + CAST ( - 68 AS INTEGER ), - 59 ) WHEN + + 99 THEN 94 WHEN + 94 THEN NULL END AS col0, 42 * + 79 AS col1
----
NULL
3318

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - 8 * + + COUNT( * ) - + + 18 * + 7 AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-5534
SELECT - 8 * + + COUNT ( * ) - + + 18 * + 7 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - 78 + NULLIF ( + COUNT( * ), 20 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5535
SELECT - 78 + NULLIF ( + COUNT ( * ), 20 ) AS col0
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT CASE - + COALESCE ( - + 75, 47 + 28, + AVG ( + 36 ) ) WHEN - MAX( ALL + + 65 ) * + 23 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5537
SELECT CASE - + COALESCE ( - + 75, 47 + 28, + AVG ( + 36 ) ) WHEN - MAX ( ALL + + 65 ) * + 23 THEN NULL ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5538
SELECT DISTINCT - 68 * + COUNT( * ), - 77 + - 81 col1
----
-68
-158

skipif mysql # not compatible
query II rowsort label-5538
SELECT DISTINCT - 68 * + COUNT ( * ), - 77 + - 81 col1
----
-68
-158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT DISTINCT + AVG ( DISTINCT + 71 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + AVG ( DISTINCT + 71 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL + MIN( DISTINCT - + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + MIN ( DISTINCT - + 82 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL - 69 * 45 + + - COUNT( * ) AS col2
----
-3106

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - 69 * 45 + + - COUNT ( * ) AS col2
----
-3106

query I rowsort
SELECT ALL - 24 * + + ( + 14 )
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT ALL 83 + + 66 - NULLIF ( + - 34, - MAX( ALL - 79 ) )
----
183

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL 83 + + 66 - NULLIF ( + - 34, - MAX ( ALL - 79 ) )
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5544
SELECT + 66 DIV + - COUNT( * ), 22 AS col2
----
-66
22

skipif mysql # not compatible
query II rowsort label-5544
SELECT + 66 / + - COUNT ( * ), 22 AS col2
----
-66
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT + 71 + - 23 DIV + MAX( DISTINCT + 31 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5545
SELECT + 71 + - 23 / + MAX ( DISTINCT + 31 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5546
SELECT + COALESCE ( 19, 14 + - 79 * - + 62 * 93, - + 57 ) - - - 1, - 23 + + CAST( + 1 AS SIGNED ) AS col1
----
18
-22

skipif mysql # not compatible
query II rowsort label-5546
SELECT + COALESCE ( 19, 14 + - 79 * - + 62 * 93, - + 57 ) - - - 1, - 23 + + CAST ( + 1 AS INTEGER ) AS col1
----
18
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL + SUM( DISTINCT - 24 ) + ( 8 )
----
-16

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL + SUM ( DISTINCT - 24 ) + ( 8 )
----
-16

query I rowsort
SELECT ALL + 34 + + 38 * 60 col1
----
2314

query I rowsort
SELECT + 16 * - 40 AS col1
----
-640

query I rowsort
SELECT + + 53 + + - 3 + - 59
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL MAX( ALL - - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL MAX ( ALL - - 93 )
----
93

query I rowsort
SELECT + 86 + + 44
----
130

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT DISTINCT - ( - 11 ) DIV 43 - - 78 + - - 12 * 23 * 6 col2
----
1734

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT - ( - 11 ) / 43 - - 78 + - - 12 * 23 * 6 col2
----
1734

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5556
SELECT + CAST( + 6 AS SIGNED ) + 50, 51 * - - 83 col2
----
56
4233

skipif mysql # not compatible
query II rowsort label-5556
SELECT + CAST ( + 6 AS INTEGER ) + 50, 51 * - - 83 col2
----
56
4233

onlyif mysql # DIV for integer division: 
query II rowsort label-5557
SELECT ALL 30 DIV - + 23 - - + ( 3 ), + 15 AS col1
----
2
15

skipif mysql # not compatible
query II rowsort label-5557
SELECT ALL 30 / - + 23 - - + ( 3 ), + 15 AS col1
----
2
15

query II rowsort
SELECT ALL + 77 col0, 25 AS col0
----
77
25

query I rowsort
SELECT - 61 + + 6
----
-55

query I rowsort
SELECT - 20 * + 22
----
-440

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5562
SELECT DISTINCT - COUNT( * ) DIV + COALESCE ( 55, - + 95 DIV + - 42 - - ( + 91 ), - 68 * + 64 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - COUNT ( * ) / + COALESCE ( 55, - + 95 / + - 42 - - ( + 91 ), - 68 * + 64 + - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT NULLIF ( - COUNT( * ), + + 30 ) + - 97
----
-98

skipif mysql # not compatible
query I rowsort label-5563
SELECT NULLIF ( - COUNT ( * ), + + 30 ) + - 97
----
-98

query I rowsort
SELECT 6 * + - 64 col0
----
-384

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

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

query I rowsort
SELECT - 41 * + + 48 + + 72
----
-1896

query I rowsort
SELECT 57 + - 28 - + + 15 * + 58
----
-841

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

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

query I rowsort
SELECT 31 * - 83 AS col0
----
-2573

query I rowsort
SELECT ALL 60 + + 70 AS col0
----
130

query I rowsort
SELECT + ( - - 49 ) * - - 52 AS col0
----
2548

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

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + + COUNT ( * ) + 54 AS col2
----
55

query I rowsort
SELECT + 61 + + + 25 - - + 77
----
163

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + ( + SUM( + 44 ) ) * + - NULLIF ( + 79, - 16 )
----
-3476

skipif mysql # not compatible
query I rowsort label-5576
SELECT + ( + SUM ( + 44 ) ) * + - NULLIF ( + 79, - 16 )
----
-3476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL + MAX( ALL CASE + 71 WHEN 69 THEN + 94 WHEN 24 THEN NULL WHEN - 54 THEN NULL END ) + 99 + CASE + 30 WHEN COALESCE ( - 89, + CAST( NULL AS SIGNED ) ) THEN COUNT( * ) * - + 21 + + 33 ELSE COUNT( * ) END + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + MAX ( ALL CASE + 71 WHEN 69 THEN + 94 WHEN 24 THEN NULL WHEN - 54 THEN NULL END ) + 99 + CASE + 30 WHEN COALESCE ( - 89, + CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) * - + 21 + + 33 ELSE COUNT ( * ) END + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL - - 47 + + 1 + - - 74 * + - COUNT( * ) * + 55 AS col0
----
-4022

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL - - 47 + + 1 + - - 74 * + - COUNT ( * ) * + 55 AS col0
----
-4022

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT ALL 93, - COUNT( ALL + 69 ) * 27 AS col0
----
93
-27

skipif mysql # not compatible
query II rowsort label-5579
SELECT ALL 93, - COUNT ( ALL + 69 ) * 27 AS col0
----
93
-27

query I rowsort
SELECT 93 * - - 96
----
8928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5581
SELECT ALL - CAST( NULL AS SIGNED ) * + NULLIF ( - + NULLIF ( - 37, 36 * + - CAST( - 94 AS SIGNED ) ), + + 95 + - - 66 + + COUNT( * ) * - + COALESCE ( + AVG ( + + 70 ), 71 * 25 + + 63 * + 55, COUNT( * ) * + 96, - - 46 ) ) + - COUNT( * ) + + 82 + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - CAST ( NULL AS INTEGER ) * + NULLIF ( - + NULLIF ( - 37, 36 * + - CAST ( - 94 AS INTEGER ) ), + + 95 + - - 66 + + COUNT ( * ) * - + COALESCE ( + AVG ( + + 70 ), 71 * 25 + + 63 * + 55, COUNT ( * ) * + 96, - - 46 ) ) + - COUNT ( * ) + + 82 + 10 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - + 56 + - 45
----
-101

query II rowsort
SELECT ALL - 63 + 40 * - - 85 col0, - 80
----
3337
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5585
SELECT ALL - + COUNT( * ) * + CAST( + 78 AS SIGNED ) * - 76
----
5928

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL - + COUNT ( * ) * + CAST ( + 78 AS INTEGER ) * - 76
----
5928

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - COALESCE ( + COUNT( * ), NULLIF ( NULLIF ( + 61, - 23 * - - 75 * - NULLIF ( 31, + + 44 ) ), - + 4 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5587
SELECT - COALESCE ( + COUNT ( * ), NULLIF ( NULLIF ( + 61, - 23 * - - 75 * - NULLIF ( 31, + + 44 ) ), - + 4 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT - 19 * - + MAX( 99 )
----
1881

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - 19 * - + MAX ( 99 )
----
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT SUM( + + 21 ) - + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5589
SELECT SUM ( + + 21 ) - + COUNT ( * ) AS col2
----
20

query I rowsort
SELECT 97 * + 53 AS col1
----
5141

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT ALL 80 DIV 31
----
2

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL 80 / 31
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5592
SELECT 16 DIV ( - 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT 16 / ( - 97 ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL 26 / COUNT ( * ) * - 46 AS col2
----
-1196

onlyif mysql # aggregate syntax: 
query II rowsort label-5594
SELECT ALL ( - 66 ) * - 77 + COUNT( * ) AS col2, 49
----
5083
49

skipif mysql # not compatible
query II rowsort label-5594
SELECT ALL ( - 66 ) * - 77 + COUNT ( * ) AS col2, 49
----
5083
49

query I rowsort
SELECT DISTINCT 55 * - 79
----
-4345

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT 51 * - 62 * CASE - COUNT( * ) WHEN - 27 THEN + 17 - - 79 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT 51 * - 62 * CASE - COUNT ( * ) WHEN - 27 THEN + 17 - - 79 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 84 + 52
----
136

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

query I rowsort
SELECT ALL + 40 + + NULLIF ( + 0, + 95 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL - 76 + - ( - 17 ) + + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - 76 + - ( - 17 ) + + COUNT ( * )
----
-58

query I rowsort
SELECT DISTINCT + 22 + ( + 68 ) * + 13 col0
----
906

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

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT + 41 + + COUNT ( * ) * + COUNT ( * ) AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5603
SELECT ALL 42 + - 68, - CAST( 55 AS SIGNED ) DIV 28 AS col0
----
-26
-1

skipif mysql # not compatible
query II rowsort label-5603
SELECT ALL 42 + - 68, - CAST ( 55 AS INTEGER ) / 28 AS col0
----
-26
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT + 87 * + + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) - + 2 * NULLIF ( + + 69, 7 * - 71 + - 51 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT + 87 * + + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - + 2 * NULLIF ( + + 69, 7 * - 71 + - 51 ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - COALESCE ( + 19, - 46 + + ( + - 71 ) + + - 85 + 63 + 37 ) AS col1
----
-19

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

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

query I rowsort
SELECT CASE ( + 5 ) WHEN - 64 THEN + 90 + + 41 END + + - 90
----
NULL

query II rowsort
SELECT ALL + 47 + 3, 74 AS col1
----
50
74

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

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

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

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

query I rowsort
SELECT ALL - 92 - - 11 AS col0
----
-81

query I rowsort
SELECT - 75 - - - 68 AS col0
----
-143

query I rowsort
SELECT DISTINCT NULLIF ( + + 33, 29 )
----
33

query I rowsort
SELECT ALL + 31 - + 21 + 46
----
56

query I rowsort
SELECT DISTINCT NULLIF ( - 31, - 76 ) col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT 90 + - - 73 + + NULLIF ( - COUNT( * ), 71 * - - 11 * - ( - 52 ) * - ( - - 56 ) * + 8 / - COUNT( * ) ) col0
----
162

skipif mysql # not compatible
query I rowsort label-5618
SELECT 90 + - - 73 + + NULLIF ( - COUNT ( * ), 71 * - - 11 * - ( - 52 ) * - ( - - 56 ) * + 8 / - COUNT ( * ) ) col0
----
162

query I rowsort
SELECT DISTINCT - 25 * + - 8
----
200

query I rowsort
SELECT ALL 39 * - 7 AS col2
----
-273

query I rowsort
SELECT 6 * + 77 AS col2
----
462

query I rowsort
SELECT DISTINCT 74 * + + 71
----
5254

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

query I rowsort
SELECT + 14 * 47 AS col0
----
658

query I rowsort
SELECT ALL - 7 * + 11
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL CASE WHEN - 89 IS NOT NULL THEN MIN( 31 ) ELSE - 8 / + NULLIF ( - + 36, 37 * 96 ) * + + 11 * + - 45 + + - COUNT( * ) END
----
31

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL CASE WHEN - 89 IS NOT NULL THEN MIN ( 31 ) ELSE - 8 / + NULLIF ( - + 36, 37 * 96 ) * + + 11 * + - 45 + + - COUNT ( * ) END
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT COALESCE ( - 97, + - 51 - + CASE + 51 WHEN 20 THEN NULL WHEN + 1 * + 98 - + COUNT( * ) + - 16 THEN - 82 WHEN + + 7 THEN NULL WHEN + COUNT( * ) THEN - + 4 END )
----
-97

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT COALESCE ( - 97, + - 51 - + CASE + 51 WHEN 20 THEN NULL WHEN + 1 * + 98 - + COUNT ( * ) + - 16 THEN - 82 WHEN + + 7 THEN NULL WHEN + COUNT ( * ) THEN - + 4 END )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT - 2 + 1 - 11 + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-5628
SELECT - 2 + 1 - 11 + - COUNT ( * )
----
-13

query II rowsort
SELECT ALL 48 col2, - 53 AS col0
----
48
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT 44 DIV + 12 + + + 57
----
60

skipif mysql # not compatible
query I rowsort label-5630
SELECT 44 / + 12 + + + 57
----
60

query I rowsort
SELECT ALL + 87 * + - 92 + 10 AS col1
----
-7994

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

query I rowsort
SELECT ALL 27 * 57 + 16 * - 59 * 80 AS col0
----
-73981

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT ALL 25 DIV + + 53
----
0

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL 25 / + + 53
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT CASE 25 WHEN + + 31 THEN + MAX( ALL + - 68 ) + 2 * + - CAST( + + CAST( 61 AS SIGNED ) AS SIGNED ) + + 37 WHEN + COUNT( * ) THEN + 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT CASE 25 WHEN + + 31 THEN + MAX ( ALL + - 68 ) + 2 * + - CAST ( + + CAST ( 61 AS INTEGER ) AS INTEGER ) + + 37 WHEN + COUNT ( * ) THEN + 43 END
----
NULL

query I rowsort
SELECT ALL - 87 * + 86 + + - 10 AS col0
----
-7492

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5638
SELECT ALL 39 * 28 + + 37 + - - 19 DIV - 96 AS col2, CASE 97 WHEN NULLIF ( + COUNT( * ), - 19 ) * - - 40 - - 21 THEN NULL WHEN - - MIN( - - 36 ) * ( 65 ) THEN - - 93 END
----
1129
NULL

skipif mysql # not compatible
query II rowsort label-5638
SELECT ALL 39 * 28 + + 37 + - - 19 / - 96 AS col2, CASE 97 WHEN NULLIF ( + COUNT ( * ), - 19 ) * - - 40 - - 21 THEN NULL WHEN - - MIN ( - - 36 ) * ( 65 ) THEN - - 93 END
----
1129
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT 45 * + COUNT( ALL + - 95 ) + + 1 + + 50 * - - 31 * 96
----
148846

skipif mysql # not compatible
query I rowsort label-5639
SELECT 45 * + COUNT ( ALL + - 95 ) + + 1 + + 50 * - - 31 * 96
----
148846

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL - 71 * + 92 * + 26 + COUNT( * ) + + + COUNT( * ) + + 97 AS col0
----
-169733

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - 71 * + 92 * + 26 + COUNT ( * ) + + + COUNT ( * ) + + 97 AS col0
----
-169733

onlyif mysql # aggregate syntax: 
query III rowsort label-5641
SELECT 45 AS col1, 32 * 22 AS col1, ( + COUNT( * ) ) - - 58 + - - 20
----
45
704
79

skipif mysql # not compatible
query III rowsort label-5641
SELECT 45 AS col1, 32 * 22 AS col1, ( + COUNT ( * ) ) - - 58 + - - 20
----
45
704
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - 85 * - - 21 + + + COUNT( * ) AS col2
----
-1784

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - 85 * - - 21 + + + COUNT ( * ) AS col2
----
-1784

onlyif mysql # aggregate syntax: 
query II rowsort label-5643
SELECT + + 53, 91 - 44 * - 1 - - COUNT( * ) + - MAX( + 91 ) - - 2 * + 47 col1
----
53
139

skipif mysql # not compatible
query II rowsort label-5643
SELECT + + 53, 91 - 44 * - 1 - - COUNT ( * ) + - MAX ( + 91 ) - - 2 * + 47 col1
----
53
139

query I rowsort
SELECT + + 56 + + - 96 - + 83
----
-123

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

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

query I rowsort
SELECT ALL 49 * ( + 38 )
----
1862

query I rowsort
SELECT DISTINCT + COALESCE ( + 95, - 15, + + 23 + + - 49 + - - 64 )
----
95

query I rowsort
SELECT ALL + ( 34 ) * 57 - - + 69
----
2007

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

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

query I rowsort
SELECT - + 24 * - 28
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5651
SELECT - ( - COALESCE ( 59, - CAST( + 10 AS SIGNED ) * + 65 + + 78, + CAST( NULL AS SIGNED ) + + + COALESCE ( - COUNT( * ), + ( - - 4 ) ) ) ) * + 41 + 82
----
2501

skipif mysql # not compatible
query I rowsort label-5651
SELECT - ( - COALESCE ( 59, - CAST ( + 10 AS INTEGER ) * + 65 + + 78, + CAST ( NULL AS INTEGER ) + + + COALESCE ( - COUNT ( * ), + ( - - 4 ) ) ) ) * + 41 + 82
----
2501

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5653
SELECT DISTINCT 61 / + AVG ( 16 ) * + CASE + 9 WHEN + ( 37 ) + - - CAST( + 6 AS SIGNED ) THEN - - 9 + 68 * + COUNT( * ) + + 72 + + 96 WHEN - 11 + - 87 THEN NULL WHEN - - 76 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT 61 / + AVG ( 16 ) * + CASE + 9 WHEN + ( 37 ) + - - CAST ( + 6 AS INTEGER ) THEN - - 9 + 68 * + COUNT ( * ) + + 72 + + 96 WHEN - 11 + - 87 THEN NULL WHEN - - 76 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - - 91 * 25
----
2275

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT - 9 DIV + ( 93 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT - 9 / + ( 93 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5656
SELECT - MAX( + - 57 ) * + COUNT( - 54 ) + - - 61 DIV + - COUNT( + + 56 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5656
SELECT - MAX ( + - 57 ) * + COUNT ( - 54 ) + - - 61 / + - COUNT ( + + 56 ) AS col2
----
-4

query I rowsort
SELECT ALL ( + CASE - 93 WHEN - 53 + + 23 * + 76 * - 84 + - 62 THEN + 39 * 89 / + - 54 + + - 60 END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5658
SELECT + CAST ( NULL AS INTEGER ) / + + 8
----
NULL

query I rowsort
SELECT DISTINCT CASE - 74 WHEN + + 54 THEN - - 60 - - - 83 - - 28 WHEN 45 THEN + 40 END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT - COUNT( - 8 ) + SUM( - + 65 ) + + - 65 + + 11 DIV - MAX( - + 85 ) AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT - COUNT ( - 8 ) + SUM ( - + 65 ) + + - 65 + + 11 / - MAX ( - + 85 ) AS col2
----
-131

query I rowsort
SELECT - 38 + - + 30 * + 29 AS col1
----
-908

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

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

query I rowsort
SELECT ALL - 76 + 80
----
4

query II rowsort
SELECT - 1, + 31 AS col1
----
-1
31

query I rowsort
SELECT ALL COALESCE ( - 69, + 39 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT DISTINCT + CAST( + 59 AS SIGNED ) + + 98 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + CAST ( + 59 AS INTEGER ) + + 98 AS col0
----
157

query II rowsort
SELECT 38 AS col0, + 17 * + 38
----
38
646

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5671
SELECT CAST( - 38 AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5671
SELECT CAST ( - 38 AS INTEGER ) AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5672
SELECT DISTINCT COUNT( ALL + - 32 ) DIV - + 90 + + 24 + + ( COUNT( ALL - - 83 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT COUNT ( ALL + - 32 ) / - + 90 + + 24 + + ( COUNT ( ALL - - 83 ) ) AS col2
----
25

query I rowsort
SELECT - 71 * 33 col1
----
-2343

query II rowsort
SELECT ALL + - 24 AS col0, - 37
----
-24
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT + CASE + + 80 WHEN + 13 THEN + 26 + + COUNT( * ) + 60 ELSE NULL END * + SUM( DISTINCT + 11 ) * + + NULLIF ( + 23, COUNT( * ) ) * + 73 * + 84 / - 40 * + ( - 77 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT + CASE + + 80 WHEN + 13 THEN + 26 + + COUNT ( * ) + 60 ELSE NULL END * + SUM ( DISTINCT + 11 ) * + + NULLIF ( + 23, COUNT ( * ) ) * + 73 * + 84 / - 40 * + ( - 77 ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5677
SELECT DISTINCT + CAST( + 83 AS SIGNED ), 10 AS col2
----
83
10

skipif mysql # not compatible
query II rowsort label-5677
SELECT DISTINCT + CAST ( + 83 AS INTEGER ), 10 AS col2
----
83
10

query I rowsort
SELECT DISTINCT + 73 col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT ALL 28 DIV - 41 - 1
----
-1

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL 28 / - 41 - 1
----
-1

query I rowsort
SELECT + - 80 * + 11 + - NULLIF ( + - 80, - + 99 ) - + - 30 - - 88 AS col0
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT - SUM( DISTINCT - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5681
SELECT - SUM ( DISTINCT - 45 ) AS col2
----
45

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

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

query I rowsort
SELECT 84 * + 71 + + 55
----
6019

query I rowsort
SELECT + 80 * - - 21 + 31 AS col0
----
1711

query II rowsort
SELECT ALL + - 54, - 97 AS col0
----
-54
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - 53 * - COALESCE ( 49, + COALESCE ( - + 29, + 2 ) * COUNT( * ) + + ( + - 50 ), 95 ) + - 88
----
2509

skipif mysql # not compatible
query I rowsort label-5686
SELECT - 53 * - COALESCE ( 49, + COALESCE ( - + 29, + 2 ) * COUNT ( * ) + + ( + - 50 ), 95 ) + - 88
----
2509

query II rowsort
SELECT + - 91 AS col2, 41 col2
----
-91
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT + NULLIF ( - + 68, 26 ) + + 38 - - MAX( ALL 67 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5688
SELECT + NULLIF ( - + 68, 26 ) + + 38 - - MAX ( ALL 67 ) AS col1
----
37

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

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

query I rowsort
SELECT + + 18 * - 19 AS col2
----
-342

query I rowsort
SELECT DISTINCT + 12 * - 4 * ( 5 )
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5692
SELECT DISTINCT - CASE 36 WHEN - + 88 THEN - CASE + COUNT( * ) WHEN - 38 THEN - - 67 * ( - COUNT( * ) ) + - NULLIF ( - - CASE - - 64 WHEN - 65 THEN - - COUNT( * ) + + 92 WHEN - 36 + + 50 DIV 92 THEN - SUM( ALL CAST( NULL AS SIGNED ) ) END, 69 ) + + - 96 + + ( + COALESCE ( 19, + - COUNT( * ) + ( + 97 ) * - - 66, - - 60 DIV 53 * + + 11 ) ) * - CAST( 6 AS SIGNED ) WHEN + MAX( + 98 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 4 ELSE 11 + - 54 * + COALESCE ( 19, 20 DIV - 4 ) + + COUNT( * ) END ELSE 85 + + 47 END
----
-132

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - CASE 36 WHEN - + 88 THEN - CASE + COUNT ( * ) WHEN - 38 THEN - - 67 * ( - COUNT ( * ) ) + - NULLIF ( - - CASE - - 64 WHEN - 65 THEN - - COUNT ( * ) + + 92 WHEN - 36 + + 50 / 92 THEN - SUM ( ALL CAST ( NULL AS INTEGER ) ) END, 69 ) + + - 96 + + ( + COALESCE ( 19, + - COUNT ( * ) + ( + 97 ) * - - 66, - - 60 / 53 * + + 11 ) ) * - CAST ( 6 AS INTEGER ) WHEN + MAX ( + 98 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 4 ELSE 11 + - 54 * + COALESCE ( 19, 20 / - 4 ) + + COUNT ( * ) END ELSE 85 + + 47 END
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT - 70 * - SUM( DISTINCT + 31 ) + + 77 AS col2
----
2247

skipif mysql # not compatible
query I rowsort label-5693
SELECT - 70 * - SUM ( DISTINCT + 31 ) + + 77 AS col2
----
2247

query II rowsort
SELECT 35 + + 57 AS col1, 99
----
92
99

query I rowsort
SELECT ALL 56 + 59 - + 99 + 71 * - 48 AS col2
----
-3392

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT 15 + 27 * + 5 * + + COUNT( * )
----
150

skipif mysql # not compatible
query I rowsort label-5696
SELECT 15 + 27 * + 5 * + + COUNT ( * )
----
150

query I rowsort
SELECT ALL + CASE - - 71 WHEN - 61 THEN - - 22 END * + + 44 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5698
SELECT ALL - 81 + - COUNT( * ) + + CAST( NULL AS SIGNED ) + + 7 * + - 94 AS col2, 1 * + 14 * + 5 + + 81 + + NULLIF ( - + 6, - - 2 + + ( - - 0 ) + - + 34 * COUNT( * ) + - + 61 * - 37 * + 81 ) AS col2
----
NULL
145

skipif mysql # not compatible
query II rowsort label-5698
SELECT ALL - 81 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 7 * + - 94 AS col2, 1 * + 14 * + 5 + + 81 + + NULLIF ( - + 6, - - 2 + + ( - - 0 ) + - + 34 * COUNT ( * ) + - + 61 * - 37 * + 81 ) AS col2
----
NULL
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5699
SELECT 60 + + CAST( NULL AS SIGNED ), MAX( 49 ) AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-5699
SELECT 60 + + CAST ( NULL AS INTEGER ), MAX ( 49 ) AS col2
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT 40 * + + COUNT( - 77 ) * + 50 AS col2
----
2000

skipif mysql # not compatible
query I rowsort label-5700
SELECT 40 * + + COUNT ( - 77 ) * + 50 AS col2
----
2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5701
SELECT + + COUNT( * ) / - 87 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5701
SELECT + + COUNT ( * ) / - 87 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 76 - - ( + 91 ) + + 75 + - 65 + - + 52 AS col1
----
125

query I rowsort
SELECT ALL - - ( - 34 ) col0
----
-34

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

skipif mysql # not compatible
query I rowsort label-5704
SELECT + 19 * - - CAST ( + COUNT ( 7 ) AS INTEGER )
----
19

query I rowsort
SELECT ALL + - COALESCE ( 5, - 77 + + + 69 ) * + + 73 + + 73 * + 95
----
6570

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5706
SELECT + CAST( NULL AS DECIMAL ) + - + 89 + - 26 * - + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT + CAST ( NULL AS REAL ) + - + 89 + - 26 * - + 20 AS col2
----
NULL

query I rowsort
SELECT ALL + - ( - 87 ) - - 94 * 63 col1
----
6009

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - COALESCE ( + - 82, - + COUNT( * ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5708
SELECT - COALESCE ( + - 82, - + COUNT ( * ) ) AS col2
----
82

query I rowsort
SELECT 99 * 22 + - 97
----
2081

query I rowsort
SELECT ALL + + 34 * 47
----
1598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5711
SELECT - + 4 / + 38 + + + 19 - + - 39 + - COUNT( * ) + CAST( NULL AS SIGNED ) / - COUNT( * ) + 96 * - 91 + - 97, - 82 + 69 * + ( CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5711
SELECT - + 4 / + 38 + + + 19 - + - 39 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 96 * - 91 + - 97, - 82 + 69 * + ( CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5712
SELECT 13 DIV - SUM( DISTINCT + + 97 ) * + 16
----
0

skipif mysql # not compatible
query I rowsort label-5712
SELECT 13 / - SUM ( DISTINCT + + 97 ) * + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT - 69 + + + 1 + MAX( - 13 )
----
-81

skipif mysql # not compatible
query I rowsort label-5713
SELECT - 69 + + + 1 + MAX ( - 13 )
----
-81

query I rowsort
SELECT DISTINCT - ( 4 ) col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT 75 / + + CAST( NULL AS SIGNED ) * + + 95 + 57 / + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT 75 / + + CAST ( NULL AS INTEGER ) * + + 95 + 57 / + 84 AS col1
----
NULL

query I rowsort
SELECT - 21 * - 44 + 17
----
941

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

skipif mysql # not compatible
query I rowsort label-5717
SELECT MAX ( + - 9 ) / + - COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL + + 29 + - 14
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5719
SELECT COUNT( CAST( + 84 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5719
SELECT COUNT ( CAST ( + 84 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL - COUNT( * ) + - - 64 + - 75 + + 28 * - MIN( + 52 ) - 47
----
-1515

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - COUNT ( * ) + - - 64 + - 75 + + 28 * - MIN ( + 52 ) - 47
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT DISTINCT - COUNT( + + CASE WHEN ( NULL ) IN ( + + 53, COALESCE ( 74, - ( 4 ) ) + - 87 + + 66 ) THEN NULL WHEN NOT 93 - + 35 - + 10 >= NULL THEN - 36 ELSE - - 32 END ) * - 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT - COUNT ( + + CASE WHEN ( NULL ) IN ( + + 53, COALESCE ( 74, - ( 4 ) ) + - 87 + + 66 ) THEN NULL WHEN NOT 93 - + 35 - + 10 >= NULL THEN - 36 ELSE - - 32 END ) * - 9 AS col2
----
9

query I rowsort
SELECT 6 * - 27 AS col0
----
-162

query II rowsort
SELECT - 23, 38 AS col1
----
-23
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT ALL ( + - 91 ) + - 68 + + 34 * CAST( 6 AS SIGNED ) + + 95 + 47
----
187

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL ( + - 91 ) + - 68 + + 34 * CAST ( 6 AS INTEGER ) + + 95 + 47
----
187

query II rowsort
SELECT - 76, - COALESCE ( - + 84, 92 ) col1
----
-76
84

query II rowsort
SELECT ALL 33 AS col2, ( + - 31 )
----
33
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-5727
SELECT - 34, - 39 DIV 52 * - + 89 + 99 AS col2
----
-34
99

skipif mysql # not compatible
query II rowsort label-5727
SELECT - 34, - 39 / 52 * - + 89 + 99 AS col2
----
-34
99

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

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL + 94 + COUNT ( * ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5729
SELECT 69 AS col0, - 11 * - 18 + COUNT( * ) * - - ( + + 10 ) + 60
----
69
268

skipif mysql # not compatible
query II rowsort label-5729
SELECT 69 AS col0, - 11 * - 18 + COUNT ( * ) * - - ( + + 10 ) + 60
----
69
268

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT MAX( + ( + 47 ) ) + 87 * 87 * + + CASE + 45 WHEN - - 95 + - COUNT( * ) THEN NULL WHEN + 15 THEN SUM( ALL - 32 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT MAX ( + ( + 47 ) ) + 87 * 87 * + + CASE + 45 WHEN - - 95 + - COUNT ( * ) THEN NULL WHEN + 15 THEN SUM ( ALL - 32 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT DISTINCT 61 AS col0, + NULLIF ( - COALESCE ( + 49, 65 * - 29 * - + COALESCE ( + 94, - 83, 0, 77 - - + 44 ), 89 ), + - 46 * - 96 + + ( COUNT( * ) ) )
----
61
-49

skipif mysql # not compatible
query II rowsort label-5732
SELECT DISTINCT 61 AS col0, + NULLIF ( - COALESCE ( + 49, 65 * - 29 * - + COALESCE ( + 94, - 83, 0, 77 - - + 44 ), 89 ), + - 46 * - 96 + + ( COUNT ( * ) ) )
----
61
-49

query I rowsort
SELECT DISTINCT 77 * - 58
----
-4466

query II rowsort
SELECT DISTINCT - + 11 * + 23 + + COALESCE ( 3, - 64 * 60 ), 90 AS col1
----
-250
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5736
SELECT ALL 86 * 57 + + COALESCE ( - 60, + - 59 * + 50 * + 43 * + CASE 22 WHEN + 92 + COALESCE ( + + 27, + 45, - 40 ) THEN - CAST( + CASE - 16 WHEN - COALESCE ( - 25, - + 24 * - 12 - - 9, - - 90 + + + 9 ) THEN 45 WHEN 58 THEN NULL ELSE - CASE + ( + 37 ) WHEN - 36 THEN - 80 * - - 76 END END AS SIGNED ) DIV + NULLIF ( - - 49, + 43 ) * + 5 END DIV 69 ) DIV COUNT( * ) AS col2
----
4842

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL 86 * 57 + + COALESCE ( - 60, + - 59 * + 50 * + 43 * + CASE 22 WHEN + 92 + COALESCE ( + + 27, + 45, - 40 ) THEN - CAST ( + CASE - 16 WHEN - COALESCE ( - 25, - + 24 * - 12 - - 9, - - 90 + + + 9 ) THEN 45 WHEN 58 THEN NULL ELSE - CASE + ( + 37 ) WHEN - 36 THEN - 80 * - - 76 END END AS INTEGER ) / + NULLIF ( - - 49, + 43 ) * + 5 END / 69 ) / COUNT ( * ) AS col2
----
4842

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT 51 * - 96 + + MAX( + 43 )
----
-4853

skipif mysql # not compatible
query I rowsort label-5737
SELECT 51 * - 96 + + MAX ( + 43 )
----
-4853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5738
SELECT ALL - + NULLIF ( + + COALESCE ( 0, 78 * + 68 * 41 - - 42 + - 60 * + CAST( + 41 AS SIGNED ) * + 22 ), 55 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL - + NULLIF ( + + COALESCE ( 0, 78 * + 68 * 41 - - 42 + - 60 * + CAST ( + 41 AS INTEGER ) * + 22 ), 55 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT - MAX( DISTINCT - - 60 ) DIV - 93 - - ( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-5739
SELECT - MAX ( DISTINCT - - 60 ) / - 93 - - ( 53 )
----
53

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

skipif mysql # not compatible
query I rowsort label-5740
SELECT - COUNT ( ALL + 44 ) * + + 52 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT DISTINCT - 15 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT - 15 / - 99
----
0

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

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

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

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

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

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

query I rowsort
SELECT ALL 90 * + - 8 + - - 82
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT DISTINCT NULLIF ( + COUNT( 5 ), COUNT( * ) + + ( - ( + 42 ) ) * - ( - 60 ) ) * 8 + - 86 + - 92
----
-170

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT NULLIF ( + COUNT ( 5 ), COUNT ( * ) + + ( - ( + 42 ) ) * - ( - 60 ) ) * 8 + - 86 + - 92
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT DISTINCT + + 46 * - 31 * - 54 + - - 12 + - COUNT( * ) * 99
----
76917

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT + + 46 * - 31 * - 54 + - - 12 + - COUNT ( * ) * 99
----
76917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT DISTINCT + + 14 * - 97 + + 40 * 27 * 65 + - + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT + + 14 * - 97 + + 40 * 27 * 65 + - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5749
SELECT ALL - 63 * 12 + + + 42 + - 91 DIV - + 11 * + COUNT( + 69 ) + - - 55 * 99 * + 70
----
380444

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL - 63 * 12 + + + 42 + - 91 / - + 11 * + COUNT ( + 69 ) + - - 55 * 99 * + 70
----
380444

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

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

query II rowsort
SELECT 68 AS col1, - 55
----
68
-55

query I rowsort
SELECT - 62 + + - 48
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT COUNT( ALL + 29 ) * + 68 - 95 * - 2 + + 15 * + 80
----
1458

skipif mysql # not compatible
query I rowsort label-5753
SELECT COUNT ( ALL + 29 ) * + 68 - 95 * - 2 + + 15 * + 80
----
1458

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT + ( + - COUNT( * ) ) + 75 * + CASE - ( - 94 ) WHEN COUNT( DISTINCT - 11 ) THEN 57 WHEN + 81 THEN NULL END * + 34 + - ( + COUNT( * ) ) + - COUNT( * ) * - AVG ( 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT + ( + - COUNT ( * ) ) + 75 * + CASE - ( - 94 ) WHEN COUNT ( DISTINCT - 11 ) THEN 57 WHEN + 81 THEN NULL END * + 34 + - ( + COUNT ( * ) ) + - COUNT ( * ) * - AVG ( 79 ) AS col2
----
NULL

query I rowsort
SELECT + 24 * - 92 + 33 * - 19
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT ALL CASE + 61 WHEN COUNT( - - 73 ) THEN NULL WHEN 72 THEN NULL ELSE 13 END
----
13

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL CASE + 61 WHEN COUNT ( - - 73 ) THEN NULL WHEN 72 THEN NULL ELSE 13 END
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5758
SELECT DISTINCT - ( - 88 ) DIV - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT - ( - 88 ) / - COUNT ( * ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + 85 + - 38 - - 81 + + 8 + SUM( ALL 7 ) * - 34 * + COALESCE ( - - 28, - + 2 + - 78 + 58, + 72 )
----
-6528

skipif mysql # not compatible
query I rowsort label-5759
SELECT + 85 + - 38 - - 81 + + 8 + SUM ( ALL 7 ) * - 34 * + COALESCE ( - - 28, - + 2 + - 78 + 58, + 72 )
----
-6528

query I rowsort
SELECT - 96 * + 91 AS col2
----
-8736

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

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

query I rowsort
SELECT ALL - 18 * - 73 * - 90 * 18
----
-2128680

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL + 63 - + MAX( + 85 )
----
-22

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL + 63 - + MAX ( + 85 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5764
SELECT - MAX( DISTINCT 56 ) * + - 88 * + - 25, 84 * 43 AS col1
----
-123200
3612

skipif mysql # not compatible
query II rowsort label-5764
SELECT - MAX ( DISTINCT 56 ) * + - 88 * + - 25, 84 * 43 AS col1
----
-123200
3612

query II rowsort
SELECT - 49 + - 7 * 55 + + 47 AS col0, - 75 + 1
----
-387
-74

query I rowsort
SELECT + 42 * - ( + - 17 )
----
714

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5768
SELECT + + 32 - - 40, - COALESCE ( - - 29, + + 45, - 74 + 40 - + 93 * - 90 * + + 40 * + 90 * COALESCE ( + + 8, + CAST( - 12 AS SIGNED ) ) * + + 52 ) DIV - 10 + - 27 AS col1
----
72
-25

skipif mysql # not compatible
query II rowsort label-5768
SELECT + + 32 - - 40, - COALESCE ( - - 29, + + 45, - 74 + 40 - + 93 * - 90 * + + 40 * + 90 * COALESCE ( + + 8, + CAST ( - 12 AS INTEGER ) ) * + + 52 ) / - 10 + - 27 AS col1
----
72
-25

query I rowsort
SELECT + 1 + 75 * + 47 + + - 81 AS col0
----
3445

onlyif mysql # aggregate syntax: 
query II rowsort label-5770
SELECT - 40 * - 65 AS col2, SUM( - COALESCE ( + 4, 11, + 65 ) )
----
2600
-4

skipif mysql # not compatible
query II rowsort label-5770
SELECT - 40 * - 65 AS col2, SUM ( - COALESCE ( + 4, 11, + 65 ) )
----
2600
-4

query I rowsort
SELECT + COALESCE ( + + 72, 39, - 68 * + ( 52 ) * - 81 ) + 82
----
154

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

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

query II rowsort
SELECT + - 71 + 49 col2, 51 AS col2
----
-22
51

query I rowsort
SELECT + - 8 * + 68 AS col2
----
-544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT DISTINCT COUNT( * ) * - - 87 + - ( - COUNT( + 10 ) )
----
88

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT COUNT ( * ) * - - 87 + - ( - COUNT ( + 10 ) )
----
88

query I rowsort
SELECT DISTINCT 55 + ( + - 65 ) AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5778
SELECT ALL 37 / + COUNT( * ) + + CASE ( 45 ) WHEN - 53 * + MIN( - - 88 ) / 51 THEN NULL WHEN - 3 + - 68 + 80 + - CAST( - 9 AS SIGNED ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL 37 / + COUNT ( * ) + + CASE ( 45 ) WHEN - 53 * + MIN ( - - 88 ) / 51 THEN NULL WHEN - 3 + - 68 + 80 + - CAST ( - 9 AS INTEGER ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT ALL + 53 * - 93 * 61 + CAST( 1 AS SIGNED ) col0
----
-300668

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL + 53 * - 93 * 61 + CAST ( 1 AS INTEGER ) col0
----
-300668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5780
SELECT + COUNT( * ) DIV 87 + - - 54 DIV + 56 AS col1, 20 + - - 20 + CAST( NULL AS SIGNED ) + 77 * + 90 * + - 64
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5780
SELECT + COUNT ( * ) / 87 + - - 54 / + 56 AS col1, 20 + - - 20 + CAST ( NULL AS INTEGER ) + 77 * + 90 * + - 64
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL - 45 / + COUNT( * ) + + 88 * 25 + + CASE COUNT( * ) WHEN 66 * 11 + - COUNT( * ) - + ( 93 ) THEN ( - 24 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - 45 / + COUNT ( * ) + + 88 * 25 + + CASE COUNT ( * ) WHEN 66 * 11 + - COUNT ( * ) - + ( 93 ) THEN ( - 24 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5782
SELECT + CAST( NULL AS SIGNED ) + + ( 0 ) - - - SUM( ALL + + 34 ) + + 98 / - 50 * + - MIN( - - 94 ) + + + ( ( - 9 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT + CAST ( NULL AS INTEGER ) + + ( 0 ) - - - SUM ( ALL + + 34 ) + + 98 / - 50 * + - MIN ( - - 94 ) + + + ( ( - 9 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 25 * 23
----
-575

onlyif mysql # DIV for integer division: 
query I rowsort label-5784
SELECT ALL - + 3 DIV - 62 + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - + 3 / - 62 + - 70
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5785
SELECT + 70 DIV + CAST( - + 51 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 70 / + CAST ( - + 51 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT - - 6 + 44 * + + 17 - + 48 * + - 69 * - - 52 * - 51 + - COUNT( ALL + - 29 ) + - 6 * + + 39 col1
----
-8782905

skipif mysql # not compatible
query I rowsort label-5786
SELECT - - 6 + 44 * + + 17 - + 48 * + - 69 * - - 52 * - 51 + - COUNT ( ALL + - 29 ) + - 6 * + + 39 col1
----
-8782905

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5788
SELECT + - 20 DIV - ( + 77 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5788
SELECT + - 20 / - ( + 77 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT ALL + ( 32 ) DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL + ( 32 ) / + 35
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5790
SELECT ALL - 83 * + SUM( + 3 ) * + 45 + - - 34 col0, 28 * - 91
----
-11171
-2548

skipif mysql # not compatible
query II rowsort label-5790
SELECT ALL - 83 * + SUM ( + 3 ) * + 45 + - - 34 col0, 28 * - 91
----
-11171
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT DISTINCT + CASE + 86 WHEN + 66 THEN COUNT( ALL - 86 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT + CASE + 86 WHEN + 66 THEN COUNT ( ALL - 86 ) END
----
NULL

query I rowsort
SELECT COALESCE ( - 61, + - 26 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT ALL 32 * - SUM( DISTINCT - - 45 ) * 50 + + - COUNT( * ) - + + CAST( + + 32 AS SIGNED ) * 61 - COALESCE ( - CAST( NULL AS SIGNED ), + MAX( DISTINCT - + 39 ) ) AS col2
----
-73914

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL 32 * - SUM ( DISTINCT - - 45 ) * 50 + + - COUNT ( * ) - + + CAST ( + + 32 AS INTEGER ) * 61 - COALESCE ( - CAST ( NULL AS INTEGER ), + MAX ( DISTINCT - + 39 ) ) AS col2
----
-73914

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL + MAX( - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + MAX ( - 31 ) AS col2
----
-31

query I rowsort
SELECT - 9 * + 95 * - 34 * - - 54
----
1569780

query I rowsort
SELECT + 20 * + 66 AS col2
----
1320

query I rowsort
SELECT CASE + 71 WHEN 32 * - 73 THEN NULL WHEN 11 THEN NULL WHEN - 62 * - + NULLIF ( 18, - 31 ) + - 33 * + 58 THEN + 77 WHEN - 59 + + 64 + - 11 THEN NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 31 * - - 1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT - 73 - + 5 DIV - - 99
----
-73

skipif mysql # not compatible
query I rowsort label-5800
SELECT - 73 - + 5 / - - 99
----
-73

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5803
SELECT - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + 61 ) col1
----
61

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

skipif mysql # not compatible
query I rowsort label-5805
SELECT - COUNT ( * ) / + - 42
----
0

query I rowsort
SELECT - 61 * 59
----
-3599

query I rowsort
SELECT + 30 + - - 64
----
94

query I rowsort
SELECT ALL - - 98 + 71
----
169

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

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

query I rowsort
SELECT ALL - 65 + 2
----
-63

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

query I rowsort
SELECT 91 * - 12
----
-1092

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - + MIN( - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-5814
SELECT - + MIN ( - 77 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5815
SELECT ALL + CAST( NULL AS SIGNED ) + - - 25 + MAX( - 76 ) - + + 58 / - + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 25 + MAX ( - 76 ) - + + 58 / - + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5816
SELECT DISTINCT - - COUNT( * ), - 96 + + 66 AS col2
----
1
-30

skipif mysql # not compatible
query II rowsort label-5816
SELECT DISTINCT - - COUNT ( * ), - 96 + + 66 AS col2
----
1
-30

query I rowsort
SELECT DISTINCT 68 * - 94 * - 22 AS col1
----
140624

query I rowsort
SELECT 26 * - 25 - - 40 AS col0
----
-610

onlyif mysql # aggregate syntax: 
query III rowsort label-5819
SELECT ALL - 76, + 93 * + 20 - COUNT( * ) col1, + + 98 AS col2
----
-76
1859
98

skipif mysql # not compatible
query III rowsort label-5819
SELECT ALL - 76, + 93 * + 20 - COUNT ( * ) col1, + + 98 AS col2
----
-76
1859
98

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

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

query II rowsort
SELECT 93, + 95 AS col2
----
93
95

query I rowsort
SELECT ALL 91 * + 81
----
7371

query I rowsort
SELECT 31 * - 46
----
-1426

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT COALESCE ( + ( COUNT( * ) ), + + 58 - - 83 ) * - - ( - + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5824
SELECT COALESCE ( + ( COUNT ( * ) ), + + 58 - - 83 ) * - - ( - + 95 ) AS col0
----
-95

query I rowsort
SELECT 70 * - + 3 * 48 AS col0
----
-10080

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT - COALESCE ( - 47, COUNT( ALL - 78 ) ) * + 58 + - NULLIF ( 50, - 83 ) * - + 17
----
3576

skipif mysql # not compatible
query I rowsort label-5826
SELECT - COALESCE ( - 47, COUNT ( ALL - 78 ) ) * + 58 + - NULLIF ( 50, - 83 ) * - + 17
----
3576

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT 76 DIV - 36
----
-2

skipif mysql # not compatible
query I rowsort label-5827
SELECT 76 / - 36
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT MIN( + 74 ) + + ( + 40 )
----
114

skipif mysql # not compatible
query I rowsort label-5828
SELECT MIN ( + 74 ) + + ( + 40 )
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5829
SELECT CAST( - 82 AS SIGNED ) + + - COALESCE ( 31, + - CAST( + 36 AS SIGNED ) * + - 46 + + + 76 + ( NULLIF ( + 54, 75 ) ) + + - 76, CASE - - CAST( + - COUNT( * ) AS SIGNED ) WHEN - MAX( 62 ) THEN - - NULLIF ( + - 33, - 21 ) END DIV 81 + + 23 ) * - - 81 AS col1
----
-2593

skipif mysql # not compatible
query I rowsort label-5829
SELECT CAST ( - 82 AS INTEGER ) + + - COALESCE ( 31, + - CAST ( + 36 AS INTEGER ) * + - 46 + + + 76 + ( NULLIF ( + 54, 75 ) ) + + - 76, CASE - - CAST ( + - COUNT ( * ) AS INTEGER ) WHEN - MAX ( 62 ) THEN - - NULLIF ( + - 33, - 21 ) END / 81 + + 23 ) * - - 81 AS col1
----
-2593

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL + 0 * + SUM( DISTINCT + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + 0 * + SUM ( DISTINCT + 37 )
----
0

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

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

query I rowsort
SELECT DISTINCT 19 + + - 77 AS col1
----
-58

query II rowsort
SELECT - - 59, 47 AS col2
----
59
47

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT - + MIN( DISTINCT - 48 ) AS col0, + 95 + + 23 col1
----
48
118

skipif mysql # not compatible
query II rowsort label-5835
SELECT - + MIN ( DISTINCT - 48 ) AS col0, + 95 + + 23 col1
----
48
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5836
SELECT 36 / + CAST( NULL AS SIGNED ) * - MIN( + - 49 ) + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5836
SELECT 36 / + CAST ( NULL AS INTEGER ) * - MIN ( + - 49 ) + + 30
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL - COUNT( * ) + ( - + 50 ) + - + 91 - + - 71 + 47 * - 73 * 53
----
-181914

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - COUNT ( * ) + ( - + 50 ) + - + 91 - + - 71 + 47 * - 73 * 53
----
-181914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT ALL + CASE - 8 WHEN - - 78 THEN + 36 * + + 1 WHEN - - 89 + + 51 THEN NULL ELSE + - SUM( + + 64 ) DIV + 65 END DIV + - ( + - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL + CASE - 8 WHEN - - 78 THEN + 36 * + + 1 WHEN - - 89 + + 51 THEN NULL ELSE + - SUM ( + + 64 ) / + 65 END / + - ( + - 19 )
----
0

query II rowsort
SELECT 8 * + + ( - + 66 ) * + - 34 + - 92 + + - 51, - 9 col2
----
17809
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - MIN( ALL 44 ) + 27 + + + 53 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5842
SELECT - MIN ( ALL 44 ) + 27 + + + 53 AS col1
----
36

query I rowsort
SELECT DISTINCT + 42 * - + 11 AS col2
----
-462

query II rowsort
SELECT ALL + 41, - 8 AS col1
----
41
-8

query I rowsort
SELECT 85 + 0 + - 45 * - 91
----
4180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5846
SELECT + 88 + 17, - COUNT( * ) * CAST( NULL AS SIGNED ) - - 59 / 96 AS col2
----
105
NULL

skipif mysql # not compatible
query II rowsort label-5846
SELECT + 88 + 17, - COUNT ( * ) * CAST ( NULL AS INTEGER ) - - 59 / 96 AS col2
----
105
NULL

query II rowsort
SELECT DISTINCT - 5 col0, 2
----
-5
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5849
SELECT + ( - 46 ) / + 18 + - - 52 * - COUNT( ALL - + 59 ) * - 55 + + CASE WHEN + CAST( NULL AS DECIMAL ) NOT BETWEEN - ( - 52 ) AND NULL THEN - 21 ELSE + 13 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT + ( - 46 ) / + 18 + - - 52 * - COUNT ( ALL - + 59 ) * - 55 + + CASE WHEN + CAST ( NULL AS REAL ) NOT BETWEEN - ( - 52 ) AND NULL THEN - 21 ELSE + 13 END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5850
SELECT ALL - CAST( - NULLIF ( + + ( 83 ), + - 51 ) AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - CAST ( - NULLIF ( + + ( 83 ), + - 51 ) AS INTEGER ) AS col0
----
83

query I rowsort
SELECT 70 + 96 AS col2
----
166

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

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

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

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

query I rowsort
SELECT ( - NULLIF ( + 76, - 23 * 25 ) ) * - 98 * - ( - + 97 ) AS col0
----
722456

onlyif mysql # aggregate syntax: 
query II rowsort label-5855
SELECT COUNT( ALL + 39 ), 11 * + + 90 + SUM( ALL + CASE 85 WHEN 97 - + 4 + - + 46 THEN NULL WHEN + 7 + - 23 + 15 * + 58 THEN - 51 END ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5855
SELECT COUNT ( ALL + 39 ), 11 * + + 90 + SUM ( ALL + CASE 85 WHEN 97 - + 4 + - + 46 THEN NULL WHEN + 7 + - 23 + 15 * + 58 THEN - 51 END ) AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT 59 DIV - + 71 * 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5856
SELECT 59 / - + 71 * 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT 95 * - 48 * + - COUNT( * )
----
4560

skipif mysql # not compatible
query I rowsort label-5857
SELECT 95 * - 48 * + - COUNT ( * )
----
4560

query I rowsort
SELECT ALL 78 + 78 AS col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT SUM( ALL - 82 ) - + + 31
----
-113

skipif mysql # not compatible
query I rowsort label-5859
SELECT SUM ( ALL - 82 ) - + + 31
----
-113

query I rowsort
SELECT DISTINCT - 79 + + - 72 AS col0
----
-151

query I rowsort
SELECT ALL + 20 + - 68
----
-48

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

query I rowsort
SELECT + + 51 * + 74
----
3774

query I rowsort
SELECT ALL NULLIF ( 32, + 2 )
----
32

query I rowsort
SELECT - 79 + - 40 AS col0
----
-119

query I rowsort
SELECT DISTINCT 49 + - - 24 + - - NULLIF ( - - 64, - ( 24 ) ) col0
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT + 50 * 41 + - CAST( COUNT( - CASE - 82 WHEN - 55 THEN - 98 ELSE NULL END ) AS SIGNED ) AS col2
----
2050

skipif mysql # not compatible
query I rowsort label-5867
SELECT + 50 * 41 + - CAST ( COUNT ( - CASE - 82 WHEN - 55 THEN - 98 ELSE NULL END ) AS INTEGER ) AS col2
----
2050

query I rowsort
SELECT - + 19 * + ( + 84 ) * + + 53 * 40
----
-3383520

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

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

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

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

query I rowsort
SELECT ALL 56 * + - 18
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT DISTINCT - 30 DIV - 97 - - ( 96 ) * + 25
----
2400

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT - 30 / - 97 - - ( 96 ) * + 25
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT + 80 * - 56 * COUNT( 81 ) AS col2
----
-4480

skipif mysql # not compatible
query I rowsort label-5873
SELECT + 80 * - 56 * COUNT ( 81 ) AS col2
----
-4480

query I rowsort
SELECT - 86 * + 70 AS col2
----
-6020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5875
SELECT SUM( - + 15 ) * + COUNT( - - 17 ) - + 88 + - NULLIF ( + + 17, + - 71 * + 38 + - + 0 - - 62 * MIN( DISTINCT - 55 ) + + + MAX( 94 ) ) * - - CAST( - 17 AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT SUM ( - + 15 ) * + COUNT ( - - 17 ) - + 88 + - NULLIF ( + + 17, + - 71 * + 38 + - + 0 - - 62 * MIN ( DISTINCT - 55 ) + + + MAX ( 94 ) ) * - - CAST ( - 17 AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5876
SELECT DISTINCT - 90 DIV + + MAX( ALL - 1 ) AS col2, 13 * - 51 AS col1
----
90
-663

skipif mysql # not compatible
query II rowsort label-5876
SELECT DISTINCT - 90 / + + MAX ( ALL - 1 ) AS col2, 13 * - 51 AS col1
----
90
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT + SUM( DISTINCT - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5877
SELECT + SUM ( DISTINCT - 5 ) AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT - 38 DIV ( - + 98 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5878
SELECT - 38 / ( - + 98 ) AS col2
----
0

query I rowsort
SELECT ALL - 72 * - 77 AS col0
----
5544

query I rowsort
SELECT - 50 + 55 + + + 5 AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5881
SELECT + 81 AS col2, COUNT( * ) + - 83 + 70 DIV + 19
----
81
-79

skipif mysql # not compatible
query II rowsort label-5881
SELECT + 81 AS col2, COUNT ( * ) + - 83 + 70 / + 19
----
81
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5882
SELECT + COUNT( * ) DIV 61 DIV + 42 - - 26 + 19
----
45

skipif mysql # not compatible
query I rowsort label-5882
SELECT + COUNT ( * ) / 61 / + 42 - - 26 + 19
----
45

query II rowsort
SELECT COALESCE ( 23, - 37 ) AS col2, 22
----
23
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT CASE - 51 WHEN - + 47 * + 7 + - 46 THEN NULL WHEN + + COUNT( * ) THEN NULL ELSE + + 71 END
----
71

skipif mysql # not compatible
query I rowsort label-5884
SELECT CASE - 51 WHEN - + 47 * + 7 + - 46 THEN NULL WHEN + + COUNT ( * ) THEN NULL ELSE + + 71 END
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT COALESCE ( COUNT( * ), - 61 * 90, + 54 * - + 95 * - - 64 * 28 ) * 10 + - 29 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5885
SELECT COALESCE ( COUNT ( * ), - 61 * 90, + 54 * - + 95 * - - 64 * 28 ) * 10 + - 29 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5886
SELECT ALL 62 * + - COUNT( * ) + - 42 + 31 DIV + 61 + + 50
----
-54

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL 62 * + - COUNT ( * ) + - 42 + 31 / + 61 + + 50
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5887
SELECT - COALESCE ( - 84, + 53 * + CAST( NULL AS SIGNED ) ) + + 56
----
140

skipif mysql # not compatible
query I rowsort label-5887
SELECT - COALESCE ( - 84, + 53 * + CAST ( NULL AS INTEGER ) ) + + 56
----
140

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

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

query II rowsort
SELECT 18 AS col1, 29 * + + 53 * + - 36 AS col0
----
18
-55332

query I rowsort
SELECT ALL - 50 * + 9 + - 29 + - 84 + - 68 AS col1
----
-631

query II rowsort
SELECT - 72 AS col2, 75 AS col2
----
-72
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL 37 * MIN( + 92 ) AS col2
----
3404

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL 37 * MIN ( + 92 ) AS col2
----
3404

query I rowsort
SELECT - - 3 * 75 AS col1
----
225

query I rowsort
SELECT + 81 + - 86
----
-5

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

skipif mysql # not compatible
query II rowsort label-5895
SELECT DISTINCT 67, COUNT ( * ) AS col0
----
67
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5896
SELECT ALL + CAST( NULL AS SIGNED ), 57 AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-5896
SELECT ALL + CAST ( NULL AS INTEGER ), 57 AS col2
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT + + 12 + + + 2 + COUNT( * ) * + 48 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5897
SELECT + + 12 + + + 2 + COUNT ( * ) * + 48 AS col0
----
62

query II rowsort
SELECT + - 48 * + 20 + - 42 AS col2, 18 * 7 * + - 35 col1
----
-1002
-4410

query I rowsort
SELECT + 43 + - 94
----
-51

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

query I rowsort
SELECT ALL + 73 * - 42
----
-3066

query I rowsort
SELECT DISTINCT - CASE - + 36 WHEN 93 * 29 * + - 12 THEN - - 87 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT + 70 DIV - - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT + 70 / - - 80 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT DISTINCT - CAST( 39 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - CAST ( 39 AS INTEGER )
----
-39

query II rowsort
SELECT ALL 41, 77 AS col0
----
41
77

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

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

query I rowsort
SELECT + - 10 + - NULLIF ( 58, 84 )
----
-68

query I rowsort
SELECT + - 52 * + + 92 * 67 + 93 AS col0
----
-320435

query II rowsort
SELECT - 62 * 37 AS col0, 96
----
-2294
96

query I rowsort
SELECT ALL 68 * 26
----
1768

query I rowsort
SELECT - 80 - - 13
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5912
SELECT ALL CASE + 17 WHEN - 45 THEN NULL ELSE - 0 END AS col1, - 90 * + - NULLIF ( SUM( 13 ), 13 ) - - 90
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5912
SELECT ALL CASE + 17 WHEN - 45 THEN NULL ELSE - 0 END AS col1, - 90 * + - NULLIF ( SUM ( 13 ), 13 ) - - 90
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5913
SELECT CAST( NULL AS DECIMAL ) * - 25 + - ( + 65 ) * 26 + ( - COUNT( * ) ) - + + 13 + - 67 * 60 + + 67 + - - 9 + + 0 * 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT CAST ( NULL AS REAL ) * - 25 + - ( + 65 ) * 26 + ( - COUNT ( * ) ) - + + 13 + - 67 * 60 + + 67 + - - 9 + + 0 * 62 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT ALL 71 DIV - + 86 + 79 col1
----
79

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL 71 / - + 86 + 79 col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT + MAX( + 88 ) DIV - 94 + + + 60 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT + MAX ( + 88 ) / - 94 + + + 60 / 78
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT ALL 84 DIV - + 35 + 26 + - 96 * - 72 - - - 56 + + + ( 5 )
----
6885

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL 84 / - + 35 + 26 + - 96 * - 72 - - - 56 + + + ( 5 )
----
6885

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT ALL - 69 * + COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL - 69 * + COUNT ( * ) AS col0
----
-69

query I rowsort
SELECT 0 * + 35 * + ( + + 57 )
----
0

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

query I rowsort
SELECT DISTINCT + + 26 - 33 * + 11 AS col1
----
-337

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + + CASE ( 66 ) WHEN ( 97 ) THEN NULL WHEN COUNT( * ) * - - 70 * 99 THEN + + 88 - - 80 WHEN COUNT( * ) * + - ( - COUNT( * ) ) + - 2 / - 11 + - - COUNT( * ) * 49 THEN NULL ELSE - + 67 END
----
-67

skipif mysql # not compatible
query I rowsort label-5924
SELECT + + CASE ( 66 ) WHEN ( 97 ) THEN NULL WHEN COUNT ( * ) * - - 70 * 99 THEN + + 88 - - 80 WHEN COUNT ( * ) * + - ( - COUNT ( * ) ) + - 2 / - 11 + - - COUNT ( * ) * 49 THEN NULL ELSE - + 67 END
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT CAST( NULL AS SIGNED ) + + MAX( DISTINCT - 42 ) + COUNT( * ) / - 15 * - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT - 42 ) + COUNT ( * ) / - 15 * - 86 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5927
SELECT 14 * + COUNT( * ) + + + 80 DIV - 70 DIV - ( COUNT( * ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5927
SELECT 14 * + COUNT ( * ) + + + 80 / - 70 / - ( COUNT ( * ) ) AS col2
----
15

query I rowsort
SELECT ( + 97 ) - 60 + + 62
----
99

query I rowsort
SELECT 8 * 53 - 86 AS col0
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL COUNT( ALL + 67 ) * - 6 - + 15 col1
----
-21

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL COUNT ( ALL + 67 ) * - 6 - + 15 col1
----
-21

query I rowsort
SELECT - 41 * + 11 + + 94 * - + 70 * + + 50 AS col0
----
-329451

query I rowsort
SELECT DISTINCT 89 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT DISTINCT - 53 DIV 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT - 53 / 36 AS col0
----
-1

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

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

query I rowsort
SELECT + 7 * - 47 * - 50 * + 92 AS col0
----
1513400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5936
SELECT CAST( 58 AS SIGNED ) + - MAX( 5 ) * MIN( + 38 )
----
-132

skipif mysql # not compatible
query I rowsort label-5936
SELECT CAST ( 58 AS INTEGER ) + - MAX ( 5 ) * MIN ( + 38 )
----
-132

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

query I rowsort
SELECT 39 * 29 + - - 77 + + 78 + 3 * 28 + + 84 * - 76 * + 24 * + + 0 col2
----
1370

query I rowsort
SELECT + 48 + + 17 + 63 + + 6 AS col2
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5940
SELECT DISTINCT + CAST( - + 7 AS SIGNED ) + - 55 + - + 58
----
-120

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT + CAST ( - + 7 AS INTEGER ) + - 55 + - + 58
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT ALL 21 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL 21 / 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT CASE 94 WHEN + - ( 19 ) THEN 36 / 87 + - - 96 * 22 + + 11 + - COUNT( * ) END / + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT CASE 94 WHEN + - ( 19 ) THEN 36 / 87 + - - 96 * 22 + + 11 + - COUNT ( * ) END / + 71
----
NULL

query I rowsort
SELECT ALL ( 18 ) + 25 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT DISTINCT 56 DIV + NULLIF ( + 20, - 40 )
----
2

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT 56 / + NULLIF ( + 20, - 40 )
----
2

query I rowsort
SELECT ALL 14 + 53 * 84 AS col2
----
4466

onlyif mysql # aggregate syntax: 
query II rowsort label-5946
SELECT ALL 32, + COUNT( * ) * + + 91 * 62 AS col1
----
32
5642

skipif mysql # not compatible
query II rowsort label-5946
SELECT ALL 32, + COUNT ( * ) * + + 91 * 62 AS col1
----
32
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT SUM( + ( 63 ) ) * ( - ( - 2 ) ) * - 48 * 56
----
-338688

skipif mysql # not compatible
query I rowsort label-5947
SELECT SUM ( + ( 63 ) ) * ( - ( - 2 ) ) * - 48 * 56
----
-338688

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT NULLIF ( - 5, - - 39 * + 26 + - 32 ) * - COUNT( * ) - - 37
----
42

skipif mysql # not compatible
query I rowsort label-5948
SELECT NULLIF ( - 5, - - 39 * + 26 + - 32 ) * - COUNT ( * ) - - 37
----
42

query I rowsort
SELECT ALL - 38 * - + 87 AS col0
----
3306

query I rowsort
SELECT DISTINCT 60 * + 88 * - 71 AS col1
----
-374880

query II rowsort
SELECT + 54, 83 * + + 80 AS col0
----
54
6640

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - 79 * - - 66 - - CASE COUNT( * ) WHEN - 31 THEN + 50 WHEN - 56 THEN + 16 * MIN( DISTINCT - 89 ) * - 85 WHEN 60 THEN NULL ELSE NULL END - - SUM( ALL + - NULLIF ( - 55, 47 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT - 79 * - - 66 - - CASE COUNT ( * ) WHEN - 31 THEN + 50 WHEN - 56 THEN + 16 * MIN ( DISTINCT - 89 ) * - 85 WHEN 60 THEN NULL ELSE NULL END - - SUM ( ALL + - NULLIF ( - 55, 47 ) ) AS col0
----
NULL

query I rowsort
SELECT 20 - - 95
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT - MIN( - 21 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT - MIN ( - 21 ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT 29 + + CASE + 92 + 18 * 65 WHEN - 37 / COUNT( * ) - 92 THEN NULL WHEN 14 THEN ( 13 ) ELSE 85 END
----
114

skipif mysql # not compatible
query I rowsort label-5955
SELECT 29 + + CASE + 92 + 18 * 65 WHEN - 37 / COUNT ( * ) - 92 THEN NULL WHEN 14 THEN ( 13 ) ELSE 85 END
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5956
SELECT ( + MIN( ALL 76 ) ) DIV + 6
----
12

skipif mysql # not compatible
query I rowsort label-5956
SELECT ( + MIN ( ALL 76 ) ) / + 6
----
12

query I rowsort
SELECT 35 * - 26 AS col1
----
-910

query I rowsort
SELECT 11 * 3 + - 51
----
-18

query I rowsort
SELECT 45 * + 72 AS col1
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5960
SELECT 19 + NULLIF ( CAST( - COUNT( * ) AS SIGNED ) + + 79, + MIN( ALL ( + 38 ) ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5960
SELECT 19 + NULLIF ( CAST ( - COUNT ( * ) AS INTEGER ) + + 79, + MIN ( ALL ( + 38 ) ) ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL + MIN( DISTINCT 8 ) * - COUNT( ALL - 66 )
----
-8

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL + MIN ( DISTINCT 8 ) * - COUNT ( ALL - 66 )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT 25 DIV 8
----
3

skipif mysql # not compatible
query I rowsort label-5962
SELECT 25 / 8
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT ALL NULLIF ( 60, 1 ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL NULLIF ( 60, 1 ) / - 68
----
0

query I rowsort
SELECT 54 + ( + ( + 77 ) ) * + 34
----
2672

query I rowsort
SELECT 25 * + 31
----
775

query I rowsort
SELECT 60 * - 75 AS col0
----
-4500

query I rowsort
SELECT 41 + + 93
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT ALL + COUNT( * ) * ( 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL + COUNT ( * ) * ( 24 ) AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT DISTINCT - CAST( 15 AS SIGNED ) + 47
----
32

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT - CAST ( 15 AS INTEGER ) + 47
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT ALL + COALESCE ( 8, 8 * 76 + - 18 DIV 33 ) + 76 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL + COALESCE ( 8, 8 * 76 + - 18 / 33 ) + 76 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL NULLIF ( - COUNT( + 2 ), 38 * + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL NULLIF ( - COUNT ( + 2 ), 38 * + 79 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT MAX( - 39 ) + - 59 * 89
----
-5290

skipif mysql # not compatible
query I rowsort label-5973
SELECT MAX ( - 39 ) + - 59 * 89
----
-5290

query I rowsort
SELECT DISTINCT + 68 + 52
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT 85 + ( COUNT( * ) ) * + 23 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-5975
SELECT 85 + ( COUNT ( * ) ) * + 23 AS col1
----
108

query I rowsort
SELECT DISTINCT NULLIF ( + 89, AVG ( DISTINCT + 29 ) * 94 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT ALL + 41 + CAST( - SUM( + 47 ) AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL + 41 + CAST ( - SUM ( + 47 ) AS INTEGER ) AS col1
----
-6

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

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

query I rowsort
SELECT 75 + - 17 AS col0
----
58

query I rowsort
SELECT + 67 - 12 AS col2
----
55

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

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

query I rowsort
SELECT DISTINCT - 96 * COALESCE ( 63 * + 86, 18 )
----
-520128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT ALL + 42 - 3 * + NULLIF ( 15 * 67, + 56 * + CAST( NULL AS SIGNED ) )
----
-2973

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL + 42 - 3 * + NULLIF ( 15 * 67, + 56 * + CAST ( NULL AS INTEGER ) )
----
-2973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT DISTINCT ( 74 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT ( 74 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 44 * + 34 - + 63 AS col1
----
1433

query I rowsort
SELECT DISTINCT + NULLIF ( 72, + 51 )
----
72

query I rowsort
SELECT ALL 1 * + 37 AS col2
----
37

query I rowsort
SELECT + 7 + 76 col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT ALL 13 DIV 15 col0
----
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL 13 / 15 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT - ( COALESCE ( 64, + 11, - 35 * - 41 ) ) * - CAST( NULL AS SIGNED ) + MIN( DISTINCT 43 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT - ( COALESCE ( 64, + 11, - 35 * - 41 ) ) * - CAST ( NULL AS INTEGER ) + MIN ( DISTINCT 43 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT CASE - 97 WHEN - 58 * - 21 THEN 9 WHEN - 50 * 0 + - MIN( + 18 - - 9 ) THEN NULL WHEN + 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT CASE - 97 WHEN - 58 * - 21 THEN 9 WHEN - 50 * 0 + - MIN ( + 18 - - 9 ) THEN NULL WHEN + 30 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT 16 DIV 34 + + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5992
SELECT 16 / 34 + + 1 AS col2
----
1

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

query I rowsort
SELECT + + 91 * 72 AS col1
----
6552

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

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

query I rowsort
SELECT ALL 93 * - 42
----
-3906

query I rowsort
SELECT ALL + COALESCE ( 42, - 68 - 46 * - 19 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT + 50 * - ( 99 + 46 ) + 10 * COALESCE ( + MAX( - 45 ), + COUNT( * ), - 70 * 55, - 46 )
----
-7700

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT + 50 * - ( 99 + 46 ) + 10 * COALESCE ( + MAX ( - 45 ), + COUNT ( * ), - 70 * 55, - 46 )
----
-7700

query I rowsort
SELECT - + 93 * 65 + + 72
----
-5973

query I rowsort
SELECT - 50 * 37 AS col1
----
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT - 59 + - MAX( - 29 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6001
SELECT - 59 + - MAX ( - 29 ) AS col0
----
-30

query I rowsort
SELECT ALL + 7 * + NULLIF ( - 84, + 49 ) + - 10 col0
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL + 71 * COUNT( * ) + 25 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL + 71 * COUNT ( * ) + 25 AS col1
----
96

query I rowsort
SELECT COALESCE ( 20, 66 + 21 * + 22 ) AS col2
----
20

query I rowsort
SELECT + - CASE 54 WHEN + 49 * - 6 + 75 * 22 THEN - 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT + COUNT( * ) - 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-6006
SELECT + COUNT ( * ) - 78 AS col0
----
-77

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

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

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

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

query I rowsort
SELECT ALL + ( + ( + 90 ) ) + 94 col1
----
184

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

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

query I rowsort
SELECT ALL COALESCE ( - 11, + 10 ) * 4 AS col2
----
-44

query I rowsort
SELECT - 21 + 29 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL + 82 * COALESCE ( - COALESCE ( + 70, COUNT( * ) ), - ( COUNT( * ) ), 50 * 58 ) col1
----
-5740

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + 82 * COALESCE ( - COALESCE ( + 70, COUNT ( * ) ), - ( COUNT ( * ) ), 50 * 58 ) col1
----
-5740

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

query I rowsort
SELECT - ( - 22 ) * + 80 AS col0
----
1760

query I rowsort
SELECT - 56 - - 8 + + 70 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL NULLIF ( - COALESCE ( NULLIF ( + 99, + 89 + ( + 96 ) ), 29 * 17 + MAX( ALL 52 ), - 23 * + 73 ), + 86 + + NULLIF ( 61, 46 / - 37 ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL NULLIF ( - COALESCE ( NULLIF ( + 99, + 89 + ( + 96 ) ), 29 * 17 + MAX ( ALL 52 ), - 23 * + 73 ), + 86 + + NULLIF ( 61, 46 / - 37 ) ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL + 55 - + COUNT( * ) + 39
----
93

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL + 55 - + COUNT ( * ) + 39
----
93

query I rowsort
SELECT ALL + 10 * 26 AS col1
----
260

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

skipif mysql # not compatible
query I rowsort label-6020
SELECT - 31 * - 46 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL NULLIF ( - ( MAX( 67 ) ), + 0 - 25 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL NULLIF ( - ( MAX ( 67 ) ), + 0 - 25 ) AS col0
----
-67

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT - CAST( 79 AS SIGNED ) + 14 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6024
SELECT - CAST ( 79 AS INTEGER ) + 14 AS col2
----
-65

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

skipif mysql # not compatible
query I rowsort label-6025
SELECT - 95 / + CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

query I rowsort
SELECT + 36 * + 8
----
288

query I rowsort
SELECT - + 95 + - - 47 * - 86
----
-4137

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT ALL 38 DIV 16 + 34
----
36

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL 38 / 16 + 34
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT ALL + - 80 DIV 76 + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL + - 80 / 76 + - 54
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT - 85 DIV + 82 - + ( 86 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6033
SELECT - 85 / + 82 - + ( 86 ) AS col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6034
SELECT DISTINCT + + 81 DIV + NULLIF ( 69, + COUNT( 81 ) DIV - 28 ) + - 50 + - 9 * NULLIF ( + 58, - 85 )
----
-571

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT + + 81 / + NULLIF ( 69, + COUNT ( 81 ) / - 28 ) + - 50 + - 9 * NULLIF ( + 58, - 85 )
----
-571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT - COUNT( * ) * - COALESCE ( - ( - 40 ), 26 ) * + ( 46 ) + - 46 + + CASE - 27 WHEN + 67 THEN - 5 + - 92 WHEN - 56 * NULLIF ( + 41, 67 - + 44 ) THEN NULL ELSE - 63 END DIV + NULLIF ( + 61, + 35 DIV + 5 - COUNT( + 1 ) * + COALESCE ( 15 + 39, - 82 + 42 ) ) AS col0
----
1793

skipif mysql # not compatible
query I rowsort label-6035
SELECT - COUNT ( * ) * - COALESCE ( - ( - 40 ), 26 ) * + ( 46 ) + - 46 + + CASE - 27 WHEN + 67 THEN - 5 + - 92 WHEN - 56 * NULLIF ( + 41, 67 - + 44 ) THEN NULL ELSE - 63 END / + NULLIF ( + 61, + 35 / + 5 - COUNT ( + 1 ) * + COALESCE ( 15 + 39, - 82 + 42 ) ) AS col0
----
1793

query I rowsort
SELECT + ( - ( - 65 ) ) - 16 AS col1
----
49

query I rowsort
SELECT + 48 + + 47
----
95

query I rowsort
SELECT ALL + 17 * - 97 * 73 + - 19 * + 8 AS col1
----
-120529

query I rowsort
SELECT - ( 89 ) * 28 + - 46 * 24
----
-3596

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT DISTINCT + - 95 * - 85 * CASE 96 * ( 98 * - 69 ) WHEN ( COUNT( * ) ) + 67 THEN ( 33 ) ELSE + COUNT( * ) END + 65 * ( 77 * - MAX( ALL - 49 ) ) AS col1
----
253320

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT + - 95 * - 85 * CASE 96 * ( 98 * - 69 ) WHEN ( COUNT ( * ) ) + 67 THEN ( 33 ) ELSE + COUNT ( * ) END + 65 * ( 77 * - MAX ( ALL - 49 ) ) AS col1
----
253320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT DISTINCT - 3 * - CAST( - 67 AS SIGNED ) + - 12 * + 23
----
-477

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - 3 * - CAST ( - 67 AS INTEGER ) + - 12 * + 23
----
-477

query I rowsort
SELECT + - 19 + 83
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - - 30 * + ( - COUNT( * ) ) + 89
----
59

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - - 30 * + ( - COUNT ( * ) ) + 89
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT ALL 14 * - 87 DIV - 82 + 31 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL 14 * - 87 / - 82 + 31 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT DISTINCT 11 * - - SUM( 78 ) * + 28 col1
----
24024

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT 11 * - - SUM ( 78 ) * + 28 col1
----
24024

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

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

query I rowsort
SELECT - 18 * - - 20 * + CASE - 37 WHEN - 20 THEN 26 / - 56 ELSE NULL END + - 37 * 46 AS col2
----
NULL

query I rowsort
SELECT + - 41 + + - 99
----
-140

query I rowsort
SELECT DISTINCT 81 * ( - 61 ) - + 45
----
-4986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6050
SELECT COALESCE ( - CAST( + 24 AS SIGNED ), 76 DIV 85, ( MIN( DISTINCT 59 ) ) + - COUNT( * ) * - CAST( NULL AS SIGNED ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6050
SELECT COALESCE ( - CAST ( + 24 AS INTEGER ), 76 / 85, ( MIN ( DISTINCT 59 ) ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) AS col0
----
-24

query I rowsort
SELECT ALL 56 * + 40 - 44
----
2196

query I rowsort
SELECT + 44 * + 59
----
2596

query I rowsort
SELECT 4 * + + 41 * + 68 AS col2
----
11152

query I rowsort
SELECT 75 + + 51 * - 55 AS col0
----
-2730

query I rowsort
SELECT DISTINCT 67 - 12 - + 6 AS col1
----
49

query I rowsort
SELECT ( - - 8 ) + + - 36 * - 52
----
1880

query II rowsort
SELECT ALL 77, - 95 AS col2
----
77
-95

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

query I rowsort
SELECT ALL - 79 * 4 AS col0
----
-316

query I rowsort
SELECT ALL + ( - - 73 ) * + 72 AS col0
----
5256

query II rowsort
SELECT - 85, + 28 + - 75 AS col0
----
-85
-47

query I rowsort
SELECT DISTINCT 55 * - - 27 * ( 81 )
----
120285

onlyif mysql # DIV for integer division: 
query I rowsort label-6063
SELECT 13 DIV - + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6063
SELECT 13 / - + 77 AS col2
----
0

query I rowsort
SELECT 20 + + + 61 + - 96 + 0 * - 43 AS col1
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6065
SELECT ALL 43 col2, + CAST( NULL AS DECIMAL ) AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-6065
SELECT ALL 43 col2, + CAST ( NULL AS REAL ) AS col1
----
43
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT DISTINCT 1 AS col0, - COUNT( * ) * - COALESCE ( 11, 60 ) * 41
----
1
451

skipif mysql # not compatible
query II rowsort label-6067
SELECT DISTINCT 1 AS col0, - COUNT ( * ) * - COALESCE ( 11, 60 ) * 41
----
1
451

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

query II rowsort
SELECT ALL 54, - 61 AS col0
----
54
-61

query I rowsort
SELECT 19 * 25 * - 82 * + 6 AS col2
----
-233700

query I rowsort
SELECT ALL 30 + - 13
----
17

query II rowsort
SELECT DISTINCT 87 AS col0, + ( + - ( - 8 ) ) * 17 AS col2
----
87
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL + 38 + + - MIN( + 64 )
----
-26

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL + 38 + + - MIN ( + 64 )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6074
SELECT ALL - 1 AS col2, - COUNT( * ) + + 57
----
-1
56

skipif mysql # not compatible
query II rowsort label-6074
SELECT ALL - 1 AS col2, - COUNT ( * ) + + 57
----
-1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT - COUNT( * ) * + + MAX( - NULLIF ( + 33, 99 ) ) - + 50
----
-17

skipif mysql # not compatible
query I rowsort label-6075
SELECT - COUNT ( * ) * + + MAX ( - NULLIF ( + 33, 99 ) ) - + 50
----
-17

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6078
SELECT DISTINCT - ( - + ( - CASE + CAST( 28 AS DECIMAL ) WHEN NULLIF ( - 88, 95 + ( + COALESCE ( COUNT( * ), 20 ) ) ) THEN NULL WHEN 84 THEN NULL ELSE ( COUNT( * ) ) END ) ) + 85
----
84

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - ( - + ( - CASE + CAST ( 28 AS REAL ) WHEN NULLIF ( - 88, 95 + ( + COALESCE ( COUNT ( * ), 20 ) ) ) THEN NULL WHEN 84 THEN NULL ELSE ( COUNT ( * ) ) END ) ) + 85
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT + + COALESCE ( + - MAX( DISTINCT - 34 ), 38 )
----
34

skipif mysql # not compatible
query I rowsort label-6079
SELECT + + COALESCE ( + - MAX ( DISTINCT - 34 ), 38 )
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-6080
SELECT 59 AS col0, + 83 DIV - 57
----
59
-1

skipif mysql # not compatible
query II rowsort label-6080
SELECT 59 AS col0, + 83 / - 57
----
59
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6081
SELECT + 71 DIV + COUNT( * ) + COUNT( * ) * 8 + - 19 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6081
SELECT + 71 / + COUNT ( * ) + COUNT ( * ) * 8 + - 19 AS col1
----
60

query I rowsort
SELECT ALL + + 58 + 81 - + 87 * 76 col1
----
-6473

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT DISTINCT + 84 * 80 DIV - 84 - - 63
----
-17

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT + 84 * 80 / - 84 - - 63
----
-17

query I rowsort
SELECT ALL 51 + + 15 - - 38 * 3 * 10
----
1206

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT DISTINCT 56 DIV - 9
----
-6

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT 56 / - 9
----
-6

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

skipif mysql # not compatible
query I rowsort label-6087
SELECT + COUNT ( * ) / + MIN ( 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT + CASE - 24 WHEN - 4 THEN NULL ELSE + COUNT( * ) END * + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6088
SELECT + CASE - 24 WHEN - 4 THEN NULL ELSE + COUNT ( * ) END * + 35 AS col2
----
35

query I rowsort
SELECT ( 93 ) + - ( 67 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT DISTINCT + + 45 / + + CASE - 77 WHEN - 54 THEN + 61 * + 90 WHEN - 21 THEN 50 + + 26 ELSE SUM( ALL + CAST( NULL AS SIGNED ) ) + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT + + 45 / + + CASE - 77 WHEN - 54 THEN + 61 * + 90 WHEN - 21 THEN 50 + + 26 ELSE SUM ( ALL + CAST ( NULL AS INTEGER ) ) + 79 END
----
NULL

query I rowsort
SELECT ALL + 1 - 54 - + + 80 * 43
----
-3493

query I rowsort
SELECT + - 31 col2
----
-31

query I rowsort
SELECT + + 75 col0
----
75

query II rowsort
SELECT DISTINCT - 37 * + - 0, 64 + 41 AS col1
----
0
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT 75 * + CASE 54 WHEN + + COUNT( * ) * + 21 + - 64 THEN 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT 75 * + CASE 54 WHEN + + COUNT ( * ) * + 21 + - 64 THEN 9 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 14 * + 21
----
294

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6098
SELECT 94 DIV + 65 AS col0, + 73 * - - 87 - + COUNT( * ) DIV ( - ( 44 ) ) col1
----
1
6351

skipif mysql # not compatible
query II rowsort label-6098
SELECT 94 / + 65 AS col0, + 73 * - - 87 - + COUNT ( * ) / ( - ( 44 ) ) col1
----
1
6351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6099
SELECT ALL CAST( NULL AS SIGNED ) + - + 7 AS col2, CAST( - MAX( ALL - 64 ) AS SIGNED ) + 61
----
NULL
125

skipif mysql # not compatible
query II rowsort label-6099
SELECT ALL CAST ( NULL AS INTEGER ) + - + 7 AS col2, CAST ( - MAX ( ALL - 64 ) AS INTEGER ) + 61
----
NULL
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6100
SELECT COUNT( * ) * 4 * - NULLIF ( + + 76, CAST( + 3 AS SIGNED ) )
----
-304

skipif mysql # not compatible
query I rowsort label-6100
SELECT COUNT ( * ) * 4 * - NULLIF ( + + 76, CAST ( + 3 AS INTEGER ) )
----
-304

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

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT COUNT ( * ) / + - ( + 27 )
----
0

query I rowsort
SELECT ALL 6 + - ( COALESCE ( + 1, - 35 ) ) AS col1
----
5

query I rowsort
SELECT DISTINCT + 30 * 44
----
1320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL - CASE + - 25 WHEN + 2 THEN NULL WHEN 1 THEN 62 END + SUM( DISTINCT 93 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL - CASE + - 25 WHEN + 2 THEN NULL WHEN 1 THEN 62 END + SUM ( DISTINCT 93 ) col2
----
NULL

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

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

query II rowsort
SELECT ALL - 82 + + 16 AS col1, ( - 26 ) * ( - 4 ) col0
----
-66
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT + NULLIF ( + 13, - 52 ) + MIN( ALL + 1 ) + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-6108
SELECT + NULLIF ( + 13, - 52 ) + MIN ( ALL + 1 ) + COUNT ( * )
----
15

query I rowsort
SELECT ALL ( - 67 ) + 7
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT DISTINCT - CAST( + + ( - - 27 ) AS SIGNED ) * COUNT( * ) * 53 AS col1
----
-1431

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - CAST ( + + ( - - 27 ) AS INTEGER ) * COUNT ( * ) * 53 AS col1
----
-1431

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT - MAX( + 94 ) + - 47 AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-6111
SELECT - MAX ( + 94 ) + - 47 AS col1
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT ALL - - COALESCE ( + 51, - - 39 DIV + 87 * + 97 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL - - COALESCE ( + 51, - - 39 / + 87 * + 97 ) AS col2
----
51

query I rowsort
SELECT 98 + + + 63 + - + COALESCE ( + 22, - 84 ) * + ( 63 * + COALESCE ( + 3, 24 ) ) * + ( 18 ) col1
----
-74683

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT + ( + COUNT( * ) ) * - ( + - ( 4 ) ) + 77 col2
----
81

skipif mysql # not compatible
query I rowsort label-6114
SELECT + ( + COUNT ( * ) ) * - ( + - ( 4 ) ) + 77 col2
----
81

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

query I rowsort
SELECT + 5 * - + 56 AS col0
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT - - COUNT( * ) * - CASE - 73 WHEN 6 THEN NULL WHEN - MAX( ALL 87 ) / NULLIF ( 78, 52 + - 38 ) - + 75 * 33 THEN + COUNT( ALL - 68 ) END * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT - - COUNT ( * ) * - CASE - 73 WHEN 6 THEN NULL WHEN - MAX ( ALL 87 ) / NULLIF ( 78, 52 + - 38 ) - + 75 * 33 THEN + COUNT ( ALL - 68 ) END * 85 AS col1
----
NULL

query I rowsort
SELECT + 49 + + 88
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6119
SELECT COALESCE ( 14, 54 DIV 8 ) * - 72 + 62 DIV CAST( MIN( 19 ) AS SIGNED ) AS col0
----
-1005

skipif mysql # not compatible
query I rowsort label-6119
SELECT COALESCE ( 14, 54 / 8 ) * - 72 + 62 / CAST ( MIN ( 19 ) AS INTEGER ) AS col0
----
-1005

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT ALL - 87 * 30 * - 79 - + 36 DIV 78
----
206190

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL - 87 * 30 * - 79 - + 36 / 78
----
206190

query I rowsort
SELECT - 72 * 30
----
-2160

query I rowsort
SELECT DISTINCT + + 18 * COALESCE ( + 9, + 67 )
----
162

query I rowsort
SELECT ALL + 96 * + 81 AS col2
----
7776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT - COALESCE ( 52, - - 79, + CAST( + COUNT( * ) AS SIGNED ) + - 96 ) * 4 AS col1
----
-208

skipif mysql # not compatible
query I rowsort label-6124
SELECT - COALESCE ( 52, - - 79, + CAST ( + COUNT ( * ) AS INTEGER ) + - 96 ) * 4 AS col1
----
-208

query I rowsort
SELECT DISTINCT + 6 * 92
----
552

query I rowsort
SELECT ALL - 51 * + + 53 AS col1
----
-2703

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT - 91 DIV 7
----
-13

skipif mysql # not compatible
query I rowsort label-6127
SELECT - 91 / 7
----
-13

query I rowsort
SELECT + 3 * - 92 * - 24 + + - 20 AS col0
----
6604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6129
SELECT - 8 * - COALESCE ( + + 3, CAST( NULL AS SIGNED ) * COALESCE ( 69, - 39 ) * 50 - - 3 * 41, - 87 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6129
SELECT - 8 * - COALESCE ( + + 3, CAST ( NULL AS INTEGER ) * COALESCE ( 69, - 39 ) * 50 - - 3 * 41, - 87 ) AS col2
----
24

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

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

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

query I rowsort
SELECT + 43 + + 63 / - - 17 / - + CASE 75 WHEN + 91 THEN 61 + + 59 * - 97 WHEN 43 * + 42 + - 71 THEN 91 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6133
SELECT - CAST( 12 AS SIGNED ) DIV 55 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6133
SELECT - CAST ( 12 AS INTEGER ) / 55 * COUNT ( * )
----
0

query I rowsort
SELECT - 72 + - + 56 col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL COUNT( * ) + + - 0 + - 22 * + + 75 * - 22
----
36301

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL COUNT ( * ) + + - 0 + - 22 * + + 75 * - 22
----
36301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6136
SELECT - 48 + CASE 96 WHEN - - CAST( NULL AS SIGNED ) + 95 + - 54 THEN + 80 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT - 48 + CASE 96 WHEN - - CAST ( NULL AS INTEGER ) + 95 + - 54 THEN + 80 WHEN COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 16 + ( + 83 ) + - - 18 * 92 AS col2
----
1723

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT - COUNT( * ) + CASE + 97 WHEN + + 91 THEN NULL WHEN + + 72 THEN 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT - COUNT ( * ) + CASE + 97 WHEN + + 91 THEN NULL WHEN + + 72 THEN 20 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6139
SELECT ALL + 89 + MIN( ALL - + CAST( 0 AS SIGNED ) )
----
89

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL + 89 + MIN ( ALL - + CAST ( 0 AS INTEGER ) )
----
89

query I rowsort
SELECT - NULLIF ( - 25, 33 ) AS col0
----
25

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

query I rowsort
SELECT + 94 + - 25
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT + MIN( ALL - - 90 ) + - + CASE - AVG ( DISTINCT + CASE - 92 WHEN ( - 20 ) - 93 * + 94 THEN 33 - 88 WHEN 11 - 87 THEN NULL END ) WHEN - 42 * + 34 THEN ( 90 ) + 74 WHEN + COUNT( * ) THEN NULL ELSE NULL END + + 23 / 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT + MIN ( ALL - - 90 ) + - + CASE - AVG ( DISTINCT + CASE - 92 WHEN ( - 20 ) - 93 * + 94 THEN 33 - 88 WHEN 11 - 87 THEN NULL END ) WHEN - 42 * + 34 THEN ( 90 ) + 74 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + + 23 / 96 AS col1
----
NULL

query II rowsort
SELECT 14 AS col2, 49 AS col1
----
14
49

query I rowsort
SELECT ALL 70 + - - COALESCE ( - - 70, 94 ) * + 31 AS col1
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT + 44 * - + COALESCE ( COUNT( * ), - - 96 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6147
SELECT + 44 * - + COALESCE ( COUNT ( * ), - - 96 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6148
SELECT + + COUNT( ALL - 96 ) DIV + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6148
SELECT + + COUNT ( ALL - 96 ) / + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT + CASE + 88 WHEN - 37 - 57 THEN + 40 * - 96 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT ALL + 26 DIV + 90 col2
----
0

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL + 26 / + 90 col2
----
0

query I rowsort
SELECT DISTINCT + 67 - 93 + 40 * ( - + 83 ) + + 38 AS col2
----
-3308

query I rowsort
SELECT DISTINCT - CASE 97 WHEN + 51 THEN ( 65 ) WHEN + 21 THEN NULL END * - 84
----
NULL

query I rowsort
SELECT ALL + - CASE + 22 WHEN + 11 THEN 21 + + 56 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6154
SELECT DISTINCT + CAST( - 87 AS SIGNED ) * ( - 30 ) * ( + 75 ) DIV - 97 + 46 * 33 AS col0
----
-500

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) * ( - 30 ) * ( + 75 ) / - 97 + 46 * 33 AS col0
----
-500

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT + - 90 DIV + - NULLIF ( 82, - COUNT( + 80 ) ) - + 53 + + 56 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6156
SELECT + - 90 / + - NULLIF ( 82, - COUNT ( + 80 ) ) - + 53 + + 56 AS col1
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - CASE 52 WHEN + 98 * 86 THEN + + COUNT( * ) WHEN 17 * + 58 THEN NULL ELSE ( - 45 ) END col0
----
45

skipif mysql # not compatible
query I rowsort label-6158
SELECT - CASE 52 WHEN + 98 * 86 THEN + + COUNT ( * ) WHEN 17 * + 58 THEN NULL ELSE ( - 45 ) END col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6159
SELECT - + 74 * - CASE + + 11 WHEN + MAX( 1 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT - + 74 * - CASE + + 11 WHEN + MAX ( 1 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6161
SELECT ALL + 33 col0, - 19 + + - COUNT( * ) col2
----
33
-20

skipif mysql # not compatible
query II rowsort label-6161
SELECT ALL + 33 col0, - 19 + + - COUNT ( * ) col2
----
33
-20

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

query I rowsort
SELECT COALESCE ( 61, + 96 ) AS col0
----
61

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

skipif mysql # not compatible
query I rowsort label-6164
SELECT + ( + COUNT ( * ) ) * - + MIN ( DISTINCT 82 ) AS col2
----
-82

query I rowsort
SELECT - 85 + + 63
----
-22

query II rowsort
SELECT + 25, 14 + 16 AS col1
----
25
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6167
SELECT + CAST( NULL AS DECIMAL ) AS col1, COUNT( ALL - - 20 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6167
SELECT + CAST ( NULL AS REAL ) AS col1, COUNT ( ALL - - 20 )
----
NULL
1

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

skipif mysql # not compatible
query II rowsort label-6168
SELECT + COUNT ( * ), + 15 col0
----
1
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL + 98 * - + 18 + 80 * + - COUNT( DISTINCT - + 86 ) * + 12 AS col2
----
-2724

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL + 98 * - + 18 + 80 * + - COUNT ( DISTINCT - + 86 ) * + 12 AS col2
----
-2724

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ALL - 15 * - - COUNT( * ) + - - 9 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL - 15 * - - COUNT ( * ) + - - 9 AS col0
----
-6

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

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

query I rowsort
SELECT - 7 - + 89 * 15
----
-1342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT ALL - 21 * - 29 + COUNT( - - 58 ) DIV + 56 AS col1
----
609

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - 21 * - 29 + COUNT ( - - 58 ) / + 56 AS col1
----
609

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6175
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, + NULLIF ( + + CAST( NULL AS SIGNED ), 1 * - CAST( - - MAX( ALL 28 ) AS SIGNED ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6175
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, + NULLIF ( + + CAST ( NULL AS INTEGER ), 1 * - CAST ( - - MAX ( ALL 28 ) AS INTEGER ) ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT + 88 * - 95 + + COUNT( * ) + + COUNT( * )
----
-8358

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT + 88 * - 95 + + COUNT ( * ) + + COUNT ( * )
----
-8358

query I rowsort
SELECT DISTINCT ( 59 ) AS col0
----
59

query II rowsort
SELECT - 95 * 49 AS col0, - 92 AS col2
----
-4655
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT DISTINCT - 49 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT - 49 / - 88
----
0

query I rowsort
SELECT - + 85 * 91
----
-7735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT DISTINCT 73 - + + 93 * 75 * + - CAST( NULL AS SIGNED ) - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT 73 - + + 93 * 75 * + - CAST ( NULL AS INTEGER ) - 93
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6182
SELECT ALL 39, 74 DIV 28 AS col2
----
39
2

skipif mysql # not compatible
query II rowsort label-6182
SELECT ALL 39, 74 / 28 AS col2
----
39
2

query I rowsort
SELECT + 60 * 17
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT - 8 * - 52 + - - COUNT( * )
----
417

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT - 8 * - 52 + - - COUNT ( * )
----
417

query I rowsort
SELECT - COALESCE ( + ( + + 26 ), - 28 ) + - 2 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT ALL - 64 - 96 * + ( - 86 ) * + CAST( + - 91 AS SIGNED ) AS col1
----
-751360

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL - 64 - 96 * + ( - 86 ) * + CAST ( + - 91 AS INTEGER ) AS col1
----
-751360

query I rowsort
SELECT - - 58 * ( - 14 ) AS col1
----
-812

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + CASE + COALESCE ( - + 24, + 56 * + + 14 ) WHEN 60 / 58 THEN 64 WHEN COUNT( ALL + 89 ) THEN - ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT + CASE + COALESCE ( - + 24, + 56 * + + 14 ) WHEN 60 / 58 THEN 64 WHEN COUNT ( ALL + 89 ) THEN - ( COUNT ( * ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT - - NULLIF ( + ( 14 ), - + 64 * 28 ) AS col2
----
14

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

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

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

query I rowsort
SELECT ALL ( + + 20 ) col1
----
20

query I rowsort
SELECT + 54 + - ( CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE + + 73 END ) + 10 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT COUNT( * ) DIV + SUM( - 8 ) * 52 + 63
----
63

skipif mysql # not compatible
query I rowsort label-6195
SELECT COUNT ( * ) / + SUM ( - 8 ) * 52 + 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT + 67 + - CASE - - 92 WHEN 49 + + COUNT( DISTINCT 92 ) + 29 * 5 THEN - 76 WHEN + 22 + 11 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT + 67 + - CASE - - 92 WHEN 49 + + COUNT ( DISTINCT 92 ) + 29 * 5 THEN - 76 WHEN + 22 + 11 THEN NULL END + COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - - 46, 12 AS col1
----
46
12

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6199
SELECT 6 DIV - + CAST( + 44 AS SIGNED ) * + + 70
----
0

skipif mysql # not compatible
query I rowsort label-6199
SELECT 6 / - + CAST ( + 44 AS INTEGER ) * + + 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6200
SELECT + CAST( NULL AS DECIMAL ) / + - MIN( ALL - 88 ) + ( ( CAST( NULL AS SIGNED ) ) ) + 95 * 74 * 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT + CAST ( NULL AS REAL ) / + - MIN ( ALL - 88 ) + ( ( CAST ( NULL AS INTEGER ) ) ) + 95 * 74 * 94 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT DISTINCT 38 DIV + 53 col2
----
0

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT 38 / + 53 col2
----
0

query I rowsort
SELECT 78 + NULLIF ( - - 88, - 15 )
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6203
SELECT ALL CASE WHEN NOT 63 NOT BETWEEN + 0 * + CAST( + + 83 AS SIGNED ) AND + 70 THEN 71 + 49 * COALESCE ( 63 * - COUNT( * ), + 36 DIV + 42, CASE + COUNT( * ) WHEN ( ( + COALESCE ( + COUNT( * ), COUNT( * ), 12 ) ) ) THEN 3 * 60 + + 70 * + 33 WHEN - 50 THEN NULL ELSE 25 END ) WHEN NOT ( 24 ) BETWEEN - ( - COUNT( NULLIF ( ( 4 ), + 6 ) ) ) * 21 AND ( + COUNT( * ) ) THEN NULL END + 10 * COUNT( * ) AS col2
----
-3006

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL CASE WHEN NOT 63 NOT BETWEEN + 0 * + CAST ( + + 83 AS INTEGER ) AND + 70 THEN 71 + 49 * COALESCE ( 63 * - COUNT ( * ), + 36 / + 42, CASE + COUNT ( * ) WHEN ( ( + COALESCE ( + COUNT ( * ), COUNT ( * ), 12 ) ) ) THEN 3 * 60 + + 70 * + 33 WHEN - 50 THEN NULL ELSE 25 END ) WHEN NOT ( 24 ) BETWEEN - ( - COUNT ( NULLIF ( ( 4 ), + 6 ) ) ) * 21 AND ( + COUNT ( * ) ) THEN NULL END + 10 * COUNT ( * ) AS col2
----
-3006

query I rowsort
SELECT 97 * + - 70 + 50 * 99
----
-1840

query I rowsort
SELECT ( 22 ) + + 8 + 73 AS col1
----
103

query I rowsort
SELECT ALL 90 + - + 46 + - 5 AS col0
----
39

query I rowsort
SELECT DISTINCT - ( + + 42 ) col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6208
SELECT ALL - 89 + + - 73 + + - 74 DIV + 41
----
-163

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - 89 + + - 73 + + - 74 / + 41
----
-163

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT 35 * 50 + - 38 + + COUNT( * )
----
1713

skipif mysql # not compatible
query I rowsort label-6210
SELECT 35 * 50 + - 38 + + COUNT ( * )
----
1713

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

query I rowsort
SELECT 28 * - 85 AS col1
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT 35 + - - 82 * + ( - COUNT( * ) ) * + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-6213
SELECT 35 + - - 82 * + ( - COUNT ( * ) ) * + COUNT ( * )
----
-47

query I rowsort
SELECT DISTINCT - 17 * + 95
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT - 36 + + CASE - 41 WHEN - + ( + COUNT( * ) ) / - 9 * - - 66 THEN NULL ELSE 92 END AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6215
SELECT - 36 + + CASE - 41 WHEN - + ( + COUNT ( * ) ) / - 9 * - - 66 THEN NULL ELSE 92 END AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6216
SELECT ALL COUNT( * ) * - 5 AS col0, NULLIF ( + 56, + - 40 * 20 * + - 46 / ( - 16 ) ) AS col1
----
-5
56

skipif mysql # not compatible
query II rowsort label-6216
SELECT ALL COUNT ( * ) * - 5 AS col0, NULLIF ( + 56, + - 40 * 20 * + - 46 / ( - 16 ) ) AS col1
----
-5
56

query I rowsort
SELECT DISTINCT + - 49 - - + 28 * ( + 13 ) + 51
----
366

query II rowsort
SELECT DISTINCT ( - 84 ) AS col1, - 30
----
-84
-30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT 42 DIV - - 51
----
0

skipif mysql # not compatible
query I rowsort label-6220
SELECT 42 / - - 51
----
0

query I rowsort
SELECT + 2 * 70 col0
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6222
SELECT SUM( ALL - 21 ) + + CAST( NULL AS SIGNED ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT SUM ( ALL - 21 ) + + CAST ( NULL AS INTEGER ) + - 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6223
SELECT + 85 + - + CASE CAST( NULL AS SIGNED ) WHEN - + 65 / + 85 - + 72 THEN COUNT( * ) ELSE 8 END
----
77

skipif mysql # not compatible
query I rowsort label-6223
SELECT + 85 + - + CASE CAST ( NULL AS INTEGER ) WHEN - + 65 / + 85 - + 72 THEN COUNT ( * ) ELSE 8 END
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-6224
SELECT COUNT( * ) DIV 4 AS col1, CAST( NULL AS DECIMAL ) * 41 - + 92 col2, + 70 AS col0
----
0
NULL
70

skipif mysql # not compatible
query III rowsort label-6224
SELECT COUNT ( * ) / 4 AS col1, CAST ( NULL AS REAL ) * 41 - + 92 col2, + 70 AS col0
----
0
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL CASE + 82 WHEN + 31 * + - 70 THEN + COALESCE ( + 50, - 5 - 28, 26 + ( 75 + NULLIF ( COALESCE ( 84, 33 * - 1 + - 52 * CASE - COUNT( * ) WHEN + 56 THEN 52 END ), - 67 - + 14 ) * COUNT( ALL 11 ) ) * - COUNT( * ) ) END * + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL CASE + 82 WHEN + 31 * + - 70 THEN + COALESCE ( + 50, - 5 - 28, 26 + ( 75 + NULLIF ( COALESCE ( 84, 33 * - 1 + - 52 * CASE - COUNT ( * ) WHEN + 56 THEN 52 END ), - 67 - + 14 ) * COUNT ( ALL 11 ) ) * - COUNT ( * ) ) END * + 7 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6226
SELECT - COALESCE ( + - 14, - 10 DIV - - 35 + + 85, 45 - - 87 ) col2
----
14

skipif mysql # not compatible
query I rowsort label-6226
SELECT - COALESCE ( + - 14, - 10 / - - 35 + + 85, 45 - - 87 ) col2
----
14

query I rowsort
SELECT 90 * - - 55 AS col1
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL COUNT( * ) + - 82 - + 62 * 25 AS col2
----
-1631

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL COUNT ( * ) + - 82 - + 62 * 25 AS col2
----
-1631

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT ALL + + 69 + - + 26 DIV + 27 * + + 99 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + + 69 + - + 26 / + 27 * + + 99 AS col2
----
69

query II rowsort
SELECT + 58, + 67 col1
----
58
67

query I rowsort
SELECT DISTINCT - 74 * - 20 * - 34
----
-50320

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT 23 * SUM( ALL - - 80 )
----
1840

skipif mysql # not compatible
query I rowsort label-6232
SELECT 23 * SUM ( ALL - - 80 )
----
1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6233
SELECT ALL 50 + - COALESCE ( + 77, 61 * + COUNT( * ) + + - CAST( NULL AS SIGNED ) - 66 DIV + 18 ) + 36 * ( 36 ) col0
----
1269

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL 50 + - COALESCE ( + 77, 61 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) - 66 / + 18 ) + 36 * ( 36 ) col0
----
1269

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT SUM( + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6235
SELECT SUM ( + 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT ALL NULLIF ( + - 50, - - 73 + - COUNT( * ) ) + 16 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL NULLIF ( + - 50, - - 73 + - COUNT ( * ) ) + 16 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL - NULLIF ( + + 87, COUNT( + + 10 ) / - + 32 * 78 - - + ( - MIN( 71 ) ) - 97 * 40 )
----
-87

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - NULLIF ( + + 87, COUNT ( + + 10 ) / - + 32 * 78 - - + ( - MIN ( 71 ) ) - 97 * 40 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT DISTINCT - COUNT( ALL + - 32 ) * - + 60 * + 89
----
5340

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT - COUNT ( ALL + - 32 ) * - + 60 * + 89
----
5340

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT DISTINCT + 20 + + SUM( DISTINCT - 49 ) * - 83 + + - 11 AS col1
----
4076

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + 20 + + SUM ( DISTINCT - 49 ) * - 83 + + - 11 AS col1
----
4076

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT ALL 20 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL 20 / + 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6241
SELECT ALL - 55, - 49 + + + CASE WHEN 81 = - AVG ( + CAST( NULL AS SIGNED ) ) * ( - 13 ) * + COUNT( * ) THEN COUNT( * ) * - 57 + COUNT( * ) * NULLIF ( 72, 98 - - 20 ) ELSE NULL END + - 30 / + 5 AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-6241
SELECT ALL - 55, - 49 + + + CASE WHEN 81 = - AVG ( + CAST ( NULL AS INTEGER ) ) * ( - 13 ) * + COUNT ( * ) THEN COUNT ( * ) * - 57 + COUNT ( * ) * NULLIF ( 72, 98 - - 20 ) ELSE NULL END + - 30 / + 5 AS col1
----
-55
NULL

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

query I rowsort
SELECT 38 * + 27
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT COUNT( * ) + - COUNT( * ) * + 73 - - 96 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6244
SELECT COUNT ( * ) + - COUNT ( * ) * + 73 - - 96 AS col1
----
24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT COUNT( * ) * - 36 * + 12
----
-432

skipif mysql # not compatible
query I rowsort label-6247
SELECT COUNT ( * ) * - 36 * + 12
----
-432

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT + COUNT( * ), NULLIF ( 62, - 98 ) AS col2
----
1
62

skipif mysql # not compatible
query II rowsort label-6248
SELECT + COUNT ( * ), NULLIF ( 62, - 98 ) AS col2
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT 38 - 91 + + + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-6249
SELECT 38 - 91 + + + COUNT ( * )
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-6250
SELECT + 33 * 34 * - 57, 1 DIV + + 46 AS col2
----
-63954
0

skipif mysql # not compatible
query II rowsort label-6250
SELECT + 33 * 34 * - 57, 1 / + + 46 AS col2
----
-63954
0

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

query I rowsort
SELECT 57 - + + 3 * 43 AS col0
----
-72

query II rowsort
SELECT + + 58 * - 69 + - 62 AS col2, + 4
----
-4064
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT - CASE - 88 WHEN - 37 + + + CASE - 69 WHEN - + 31 THEN NULL ELSE - 52 END + + + ( 22 ) * COUNT( * ) THEN NULL WHEN + 68 THEN + NULLIF ( 23, ( COUNT( * ) ) ) ELSE NULL END * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT - CASE - 88 WHEN - 37 + + + CASE - 69 WHEN - + 31 THEN NULL ELSE - 52 END + + + ( 22 ) * COUNT ( * ) THEN NULL WHEN + 68 THEN + NULLIF ( 23, ( COUNT ( * ) ) ) ELSE NULL END * 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT ALL 39 DIV 12 + + - COUNT( * ) DIV - + 76 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL 39 / 12 + + - COUNT ( * ) / - + 76 AS col0
----
3

query II rowsort
SELECT - 3 AS col0, - 80 + + + 89 AS col2
----
-3
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT - 14, NULLIF ( + + COUNT( DISTINCT - + 31 ), - 91 / + - SUM( - - 88 ) + 65 ) + 61 AS col0
----
-14
62

skipif mysql # not compatible
query II rowsort label-6257
SELECT - 14, NULLIF ( + + COUNT ( DISTINCT - + 31 ), - 91 / + - SUM ( - - 88 ) + 65 ) + 61 AS col0
----
-14
62

query I rowsort
SELECT + 22 - 47 + + 65 * 94 AS col2
----
6085

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL CASE 82 WHEN + - 51 THEN - 84 WHEN + 73 THEN + 20 WHEN + 90 - + 48 * + ( COUNT( * ) ) THEN 22 END / - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL CASE 82 WHEN + - 51 THEN - 84 WHEN + 73 THEN + 20 WHEN + 90 - + 48 * + ( COUNT ( * ) ) THEN 22 END / - 74 AS col1
----
NULL

query I rowsort
SELECT + ( 52 ) * - 7
----
-364

query I rowsort
SELECT ALL + 86 * - - 17
----
1462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6262
SELECT DISTINCT - CAST( - MAX( DISTINCT + 65 ) AS SIGNED ) + - 86 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT - CAST ( - MAX ( DISTINCT + 65 ) AS INTEGER ) + - 86 AS col0
----
-21

query I rowsort
SELECT ALL + - 96 + - ( + 19 )
----
-115

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

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

query I rowsort
SELECT ALL - 31 + - 79
----
-110

query I rowsort
SELECT ALL + 62 + + COALESCE ( - + 95, - 59 * 84 * + 83 ) AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT - 99 DIV - 5
----
19

skipif mysql # not compatible
query I rowsort label-6267
SELECT - 99 / - 5
----
19

query I rowsort
SELECT ALL + 71 + - 6 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT - CASE + SUM( - 15 ) WHEN + COALESCE ( 2, COUNT( * ) * - 17 + + - 24, + NULLIF ( + MIN( - 28 ), + 3 ) ) * MAX( + 71 ) + 12 THEN + 58 + - 82 / 70 END * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT - CASE + SUM ( - 15 ) WHEN + COALESCE ( 2, COUNT ( * ) * - 17 + + - 24, + NULLIF ( + MIN ( - 28 ), + 3 ) ) * MAX ( + 71 ) + 12 THEN + 58 + - 82 / 70 END * + 13
----
NULL

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

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

query I rowsort
SELECT ALL + 7 * 26
----
182

onlyif mysql # DIV for integer division: 
query II rowsort label-6272
SELECT ALL 49 * - + 38 + - + ( - 37 ) AS col0, 67 DIV + 84 AS col2
----
-1825
0

skipif mysql # not compatible
query II rowsort label-6272
SELECT ALL 49 * - + 38 + - + ( - 37 ) AS col0, 67 / + 84 AS col2
----
-1825
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT 7 * CASE + - 80 WHEN - 32 THEN - - 89 * - - 1 WHEN + 94 + + + COUNT( * ) THEN NULL END + - - 5 + 46 / COUNT( * ) * + AVG ( DISTINCT - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6274
SELECT 7 * CASE + - 80 WHEN - 32 THEN - - 89 * - - 1 WHEN + 94 + + + COUNT ( * ) THEN NULL END + - - 5 + 46 / COUNT ( * ) * + AVG ( DISTINCT - 80 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL + 17 * - ( + 99 ) + - ( - + COUNT( * ) ) AS col0
----
-1682

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + 17 * - ( + 99 ) + - ( - + COUNT ( * ) ) AS col0
----
-1682

query I rowsort
SELECT COALESCE ( - 47, + 81 * + 6 )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT + MAX( ALL 27 ) AS col2, + 38 AS col1
----
27
38

skipif mysql # not compatible
query II rowsort label-6278
SELECT + MAX ( ALL 27 ) AS col2, + 38 AS col1
----
27
38

query I rowsort
SELECT NULLIF ( - COALESCE ( - 68, + 83 - - 77 * + 59, 39 ), + 77 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT + 54 + + 59 + + ( + 46 ) + + - 40 * 93 * COUNT( 22 ) * - 17
----
63399

skipif mysql # not compatible
query I rowsort label-6280
SELECT + 54 + + 59 + + ( + 46 ) + + - 40 * 93 * COUNT ( 22 ) * - 17
----
63399

query I rowsort
SELECT - 66 * - 89 * + 23 AS col1
----
135102

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT - ( - - 75 ) * + + ( + - COALESCE ( - + 39, - + 61 * 68 + + + COUNT( * ) + - COUNT( * ) + - 50 * + 29 ) ) - CASE COUNT( * ) WHEN - 24 THEN NULL WHEN - 10 THEN 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT - ( - - 75 ) * + + ( + - COALESCE ( - + 39, - + 61 * 68 + + + COUNT ( * ) + - COUNT ( * ) + - 50 * + 29 ) ) - CASE COUNT ( * ) WHEN - 24 THEN NULL WHEN - 10 THEN 50 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6283
SELECT ALL - 90 * CAST( NULL AS SIGNED ) - AVG ( ALL - - 39 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - 90 * CAST ( NULL AS INTEGER ) - AVG ( ALL - - 39 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6284
SELECT - 19 DIV - - 11 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6284
SELECT - 19 / - - 11 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

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

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

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

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

query I rowsort
SELECT ALL 83 * + - 42
----
-3486

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT + MAX( DISTINCT - 76 ) * - - 29
----
-2204

skipif mysql # not compatible
query I rowsort label-6288
SELECT + MAX ( DISTINCT - 76 ) * - - 29
----
-2204

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

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL + + CAST ( + 25 AS INTEGER ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT + - 73 * + - 94 AS col1, + 2 * + + ( - MAX( 38 ) ) AS col0
----
6862
-76

skipif mysql # not compatible
query II rowsort label-6290
SELECT + - 73 * + - 94 AS col1, + 2 * + + ( - MAX ( 38 ) ) AS col0
----
6862
-76

query I rowsort
SELECT + + 98 + + 60 * + 74 AS col1
----
4538

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT - 84 DIV + 32
----
-2

skipif mysql # not compatible
query I rowsort label-6292
SELECT - 84 / + 32
----
-2

query I rowsort
SELECT + 54 * + + 60 + + 96 + 50
----
3386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT ALL 23 * - CAST( + - 23 AS SIGNED ) AS col0
----
529

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL 23 * - CAST ( + - 23 AS INTEGER ) AS col0
----
529

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL 28 * + 24 * - MAX( ALL 5 ) + 42 * - 45
----
-5250

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL 28 * + 24 * - MAX ( ALL 5 ) + 42 * - 45
----
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT + 60 * COUNT( * ) col2
----
60

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT + 60 * COUNT ( * ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT + + 96 + - + NULLIF ( - 2, + ( COUNT( * ) ) ) + + 73 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-6297
SELECT + + 96 + - + NULLIF ( - 2, + ( COUNT ( * ) ) ) + + 73 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT - MAX( + NULLIF ( + 54, + 33 + + 3 - + 71 + + NULLIF ( 1, + 50 * - 94 + - 58 ) * + 67 ) ) * + 57 AS col1
----
-3078

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT - MAX ( + NULLIF ( + 54, + 33 + + 3 - + 71 + + NULLIF ( 1, + 50 * - 94 + - 58 ) * + 67 ) ) * + 57 AS col1
----
-3078

query I rowsort
SELECT + - 21 + - + ( + 24 ) AS col1
----
-45

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT ALL + 66 + - 32 - CAST( COUNT( * ) AS SIGNED ) * - 30 * - 56 AS col0
----
-1646

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL + 66 + - 32 - CAST ( COUNT ( * ) AS INTEGER ) * - 30 * - 56 AS col0
----
-1646

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

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

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

skipif mysql # not compatible
query I rowsort label-6304
SELECT + 0 * + - CAST ( NULL AS INTEGER ) * + + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT + 70 + - NULLIF ( + 49, + ( + 15 ) ) * SUM( ALL - 26 ) + COUNT( * ) AS col2
----
1345

skipif mysql # not compatible
query I rowsort label-6305
SELECT + 70 + - NULLIF ( + 49, + ( + 15 ) ) * SUM ( ALL - 26 ) + COUNT ( * ) AS col2
----
1345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT ALL CAST( 25 AS SIGNED ) + - - CASE - - COUNT( * ) WHEN ( COUNT( * ) ) THEN + - SUM( DISTINCT - 7 ) + - 50 END + NULLIF ( + COUNT( ALL - 87 ), + 40 ) * + 66
----
48

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL CAST ( 25 AS INTEGER ) + - - CASE - - COUNT ( * ) WHEN ( COUNT ( * ) ) THEN + - SUM ( DISTINCT - 7 ) + - 50 END + NULLIF ( + COUNT ( ALL - 87 ), + 40 ) * + 66
----
48

query I rowsort
SELECT - 97 + 83
----
-14

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6309
SELECT ALL COALESCE ( + - CAST( NULL AS SIGNED ), - 71 - - 79 + 1, 85 - + + 83 - - + 35 DIV + 92 * + 70 + + 30 )
----
9

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL COALESCE ( + - CAST ( NULL AS INTEGER ), - 71 - - 79 + 1, 85 - + + 83 - - + 35 / + 92 * + 70 + + 30 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT + NULLIF ( + COUNT( * ), + AVG ( ALL - 1 ) / + 4 + - 18 + AVG ( - + 56 ) ) - - 45
----
46

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + NULLIF ( + COUNT ( * ), + AVG ( ALL - 1 ) / + 4 + - 18 + AVG ( - + 56 ) ) - - 45
----
46

query I rowsort
SELECT ALL NULLIF ( + + 11, - 41 ) * 25
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL + MIN( - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL + MIN ( - 92 )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6313
SELECT ALL + 95 DIV 98 * + 13 - - + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + 95 / 98 * + 13 - - + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 43 * 53
----
-2279

onlyif mysql # aggregate syntax: 
query II rowsort label-6315
SELECT + COUNT( * ) AS col1, 17 + - 72 - + 89 AS col1
----
1
-144

skipif mysql # not compatible
query II rowsort label-6315
SELECT + COUNT ( * ) AS col1, 17 + - 72 - + 89 AS col1
----
1
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - 57 * + 96 - - MIN( DISTINCT 6 )
----
-5466

skipif mysql # not compatible
query I rowsort label-6316
SELECT - 57 * + 96 - - MIN ( DISTINCT 6 )
----
-5466

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

skipif mysql # not compatible
query I rowsort label-6317
SELECT - COUNT ( * ) * 22
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6318
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( - COUNT( * ) ) * - - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( - COUNT ( * ) ) * - - 2 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 58 * - 52 AS col1
----
-3016

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6320
SELECT CAST( NULL AS DECIMAL ) AS col0, - 40 + + + 67 * ( 25 ) DIV - SUM( + 37 ) AS col2
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-6320
SELECT CAST ( NULL AS REAL ) AS col0, - 40 + + + 67 * ( 25 ) / - SUM ( + 37 ) AS col2
----
NULL
-85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT - 77 * - 57 * 65 * + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
285285

skipif mysql # not compatible
query I rowsort label-6322
SELECT - 77 * - 57 * 65 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
285285

query I rowsort
SELECT ALL + 47 * - 88 AS col1
----
-4136

query II rowsort
SELECT DISTINCT - 99, NULLIF ( 28, + 94 ) AS col2
----
-99
28

query I rowsort
SELECT ALL + 30 + - + 75
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT COUNT( + 23 ) * - 11 col2
----
-11

skipif mysql # not compatible
query I rowsort label-6326
SELECT COUNT ( + 23 ) * - 11 col2
----
-11

query I rowsort
SELECT DISTINCT + - 0 + + 92
----
92

query I rowsort
SELECT ALL + 56 + - + 62 AS col2
----
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL - COUNT( * ) + + 78 col2
----
77

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - COUNT ( * ) + + 78 col2
----
77

query I rowsort
SELECT DISTINCT 44 + + 72
----
116

query I rowsort
SELECT ALL 57 + + 55
----
112

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6334
SELECT DISTINCT - COALESCE ( 98, - 62 ) * - NULLIF ( + + 46, + 41 / - - 57 + - + 84 ) AS col0, COUNT( * ) AS col2
----
4508
1

skipif mysql # not compatible
query II rowsort label-6334
SELECT DISTINCT - COALESCE ( 98, - 62 ) * - NULLIF ( + + 46, + 41 / - - 57 + - + 84 ) AS col0, COUNT ( * ) AS col2
----
4508
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6335
SELECT DISTINCT + 37 + 23 + - CAST( + 74 AS SIGNED ) * - 19 * COUNT( * ) * + ( - 77 ) + - 42 col1
----
-108244

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + 37 + 23 + - CAST ( + 74 AS INTEGER ) * - 19 * COUNT ( * ) * + ( - 77 ) + - 42 col1
----
-108244

query I rowsort
SELECT - 11 * + - 45 AS col2
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ALL + 54 * + ( MIN( ALL + 25 ) )
----
1350

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + 54 * + ( MIN ( ALL + 25 ) )
----
1350

query I rowsort
SELECT + 20 - - 41
----
61

query II rowsort
SELECT ALL 56 AS col0, - 5 col1
----
56
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6340
SELECT - 8, - ( COUNT( * ) ) * + 9 + + + 59 AS col1
----
-8
50

skipif mysql # not compatible
query II rowsort label-6340
SELECT - 8, - ( COUNT ( * ) ) * + 9 + + + 59 AS col1
----
-8
50

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

query II rowsort
SELECT - 63, + 98 + + + 23 AS col0
----
-63
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT COALESCE ( - 89, - NULLIF ( COUNT( * ), - MAX( ALL - + 71 ) ) ) - 29
----
-118

skipif mysql # not compatible
query I rowsort label-6343
SELECT COALESCE ( - 89, - NULLIF ( COUNT ( * ), - MAX ( ALL - + 71 ) ) ) - 29
----
-118

query I rowsort
SELECT 13 + - 31 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT 48 - + ( - COALESCE ( - CASE - - 67 WHEN + ( + 52 ) THEN - - ( + 93 ) * - COUNT( * ) WHEN - 40 THEN NULL END, + 61 + + 48 ) )
----
157

skipif mysql # not compatible
query I rowsort label-6345
SELECT 48 - + ( - COALESCE ( - CASE - - 67 WHEN + ( + 52 ) THEN - - ( + 93 ) * - COUNT ( * ) WHEN - 40 THEN NULL END, + 61 + + 48 ) )
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6346
SELECT 99 AS col1, CAST( COALESCE ( - 41, - 57 * - + 99, - 3 ) AS SIGNED ) + - 83 AS col0
----
99
-124

skipif mysql # not compatible
query II rowsort label-6346
SELECT 99 AS col1, CAST ( COALESCE ( - 41, - 57 * - + 99, - 3 ) AS INTEGER ) + - 83 AS col0
----
99
-124

query I rowsort
SELECT NULLIF ( 40, + ( + - 0 ) + + 30 - 97 ) + - 37 AS col1
----
3

query I rowsort
SELECT 64 * 88 AS col1
----
5632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6349
SELECT DISTINCT CAST( - 27 AS SIGNED ) * - COALESCE ( - ( + + 0 ), - - NULLIF ( - 98, + COUNT( * ) * + 46 ) - - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT CAST ( - 27 AS INTEGER ) * - COALESCE ( - ( + + 0 ), - - NULLIF ( - 98, + COUNT ( * ) * + 46 ) - - 30 )
----
0

query II rowsort
SELECT DISTINCT 81 AS col0, 37 AS col2
----
81
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6351
SELECT ALL 32 AS col2, 89 + COALESCE ( COUNT( + - 71 ), + + 89 ) + + 27 + + + 82 DIV + NULLIF ( - 14, - 57 + + 20 )
----
32
112

skipif mysql # not compatible
query II rowsort label-6351
SELECT ALL 32 AS col2, 89 + COALESCE ( COUNT ( + - 71 ), + + 89 ) + + 27 + + + 82 / + NULLIF ( - 14, - 57 + + 20 )
----
32
112

query I rowsort
SELECT ALL + 81 * - + 51 AS col0
----
-4131

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

skipif mysql # not compatible
query I rowsort label-6353
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) - + + 4
----
NULL

query I rowsort
SELECT ALL + 72 * - 37 AS col2
----
-2664

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

skipif mysql # not compatible
query I rowsort label-6355
SELECT CAST ( + + 10 AS INTEGER ) * + COUNT ( * ) AS col2
----
10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT + 40 DIV 38 + + + 39 + + COALESCE ( 96, 95, 71 * + + COUNT( * ) + + 12 ) + 83 * + 57 * 1
----
4867

skipif mysql # not compatible
query I rowsort label-6357
SELECT + 40 / 38 + + + 39 + + COALESCE ( 96, 95, 71 * + + COUNT ( * ) + + 12 ) + 83 * + 57 * 1
----
4867

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

skipif mysql # not compatible
query I rowsort label-6358
SELECT CAST ( NULL AS INTEGER ) / + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT 79 * - NULLIF ( - - COUNT( * ), 73 ) AS col2, ( + 48 )
----
-79
48

skipif mysql # not compatible
query II rowsort label-6359
SELECT 79 * - NULLIF ( - - COUNT ( * ), 73 ) AS col2, ( + 48 )
----
-79
48

query I rowsort
SELECT DISTINCT 88 + - + 48 * + 71
----
-3320

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT + 27 + MAX( DISTINCT - ( 33 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-6361
SELECT + 27 + MAX ( DISTINCT - ( 33 ) )
----
-6

query II rowsort
SELECT DISTINCT - - NULLIF ( 76, - 5 - + 11 ) AS col0, - 12 AS col1
----
76
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6363
SELECT ALL - + 77 + - - ( COUNT( * ) ) + + CAST( NULL AS SIGNED ) AS col1, 38 col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-6363
SELECT ALL - + 77 + - - ( COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col1, 38 col1
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6364
SELECT 54 * - - 8 * - CAST( NULL AS SIGNED ) + - 28 + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT 54 * - - 8 * - CAST ( NULL AS INTEGER ) + - 28 + 22 col0
----
NULL

query I rowsort
SELECT DISTINCT 45 + + 40
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT ALL - MIN( DISTINCT - - 11 ) AS col2, - 73
----
-11
-73

skipif mysql # not compatible
query II rowsort label-6366
SELECT ALL - MIN ( DISTINCT - - 11 ) AS col2, - 73
----
-11
-73

query II rowsort
SELECT ALL - + 2 * - + 5 AS col2, 83 AS col1
----
10
83

query I rowsort
SELECT ALL + 35 * 60
----
2100

query I rowsort
SELECT DISTINCT + - 72 + 14 * + 85
----
1118

query I rowsort
SELECT ALL - + 85 + + ( - 28 ) * + 12
----
-421

query I rowsort
SELECT ALL + - 22 * - 53 + + + 18 AS col2
----
1184

query I rowsort
SELECT 75 + 93 * + + 92 AS col1
----
8631

onlyif mysql # aggregate syntax: 
query II rowsort label-6373
SELECT - COUNT( * ) col0, 48
----
-1
48

skipif mysql # not compatible
query II rowsort label-6373
SELECT - COUNT ( * ) col0, 48
----
-1
48

onlyif mysql # aggregate syntax: 
query II rowsort label-6374
SELECT ALL 50 AS col0, 97 * - + COUNT( * )
----
50
-97

skipif mysql # not compatible
query II rowsort label-6374
SELECT ALL 50 AS col0, 97 * - + COUNT ( * )
----
50
-97

query I rowsort
SELECT 21 + + 23 col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6376
SELECT ALL + + 30 * + COUNT( * ) * - 17 - - 65 + - - CAST( + + 14 AS SIGNED ) DIV + 24 + SUM( ALL - - 67 ) * 20
----
895

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + + 30 * + COUNT ( * ) * - 17 - - 65 + - - CAST ( + + 14 AS INTEGER ) / + 24 + SUM ( ALL - - 67 ) * 20
----
895

query I rowsort
SELECT - - 6 * 58 + + + 61 * 53 AS col1
----
3581

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6378
SELECT ALL 58 - + + COUNT( * ) + + 8 + - 2 DIV - 47
----
65

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL 58 - + + COUNT ( * ) + + 8 + - 2 / - 47
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-6379
SELECT 25 AS col0, 27 DIV - 19 - + 26 AS col0
----
25
-27

skipif mysql # not compatible
query II rowsort label-6379
SELECT 25 AS col0, 27 / - 19 - + 26 AS col0
----
25
-27

query I rowsort
SELECT ALL 56 * - + 56 * ( + 44 ) AS col2
----
-137984

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT 32 * - - COALESCE ( 90, + NULLIF ( - + 5, + + 52 / - + 63 - - COUNT( * ) ) )
----
2880

skipif mysql # not compatible
query I rowsort label-6381
SELECT 32 * - - COALESCE ( 90, + NULLIF ( - + 5, + + 52 / - + 63 - - COUNT ( * ) ) )
----
2880

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL - 85 * - COUNT( * ) * COUNT( * ) * + 27 AS col1
----
2295

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - 85 * - COUNT ( * ) * COUNT ( * ) * + 27 AS col1
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT 22 * CASE + 35 WHEN - 77 - + + ( 2 ) THEN NULL WHEN 31 * COUNT( * ) - - - COUNT( * ) * COUNT( - + 29 ) * 39 * + 40 + 74 THEN AVG ( 64 ) + CASE NULLIF ( COUNT( DISTINCT 48 ), ( 5 ) ) WHEN - 89 THEN 40 * + 39 + 32 WHEN + 42 THEN NULL ELSE NULL END * + COUNT( * ) WHEN 65 * + 92 THEN - ( + 16 ) + - ( COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT 22 * CASE + 35 WHEN - 77 - + + ( 2 ) THEN NULL WHEN 31 * COUNT ( * ) - - - COUNT ( * ) * COUNT ( - + 29 ) * 39 * + 40 + 74 THEN AVG ( 64 ) + CASE NULLIF ( COUNT ( DISTINCT 48 ), ( 5 ) ) WHEN - 89 THEN 40 * + 39 + 32 WHEN + 42 THEN NULL ELSE NULL END * + COUNT ( * ) WHEN 65 * + 92 THEN - ( + 16 ) + - ( COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT 64 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6386
SELECT 64 / + 88
----
0

query I rowsort
SELECT ALL 14 * 52 * 46 AS col0
----
33488

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL SUM( - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL SUM ( - 22 ) AS col1
----
-22

query I rowsort
SELECT DISTINCT - ( CASE - - 77 WHEN - 14 THEN NULL ELSE + 73 END ) * - + 29
----
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT 48 * - COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6390
SELECT 48 * - COUNT ( * ) AS col0
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-6391
SELECT 54 DIV - 68 AS col0, + 34 + + 82 AS col2
----
0
116

skipif mysql # not compatible
query II rowsort label-6391
SELECT 54 / - 68 AS col0, + 34 + + 82 AS col2
----
0
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT - 67 * - MIN( ALL - - 41 ) AS col2
----
2747

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT - 67 * - MIN ( ALL - - 41 ) AS col2
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL 54 + + + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL 54 + + + COUNT ( * ) AS col0
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL SUM( DISTINCT + 60 ) * + - MAX( - 3 ) + + 97 + + 96
----
373

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL SUM ( DISTINCT + 60 ) * + - MAX ( - 3 ) + + 97 + + 96
----
373

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT + MIN( ALL 25 )
----
25

skipif mysql # not compatible
query I rowsort label-6396
SELECT + MIN ( ALL 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT COALESCE ( + 20, - SUM( 65 ) * - 34 * SUM( + + 9 ) + 18, 62 ) * - ( COUNT( * ) ) + - 61 - + 19
----
-100

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT COALESCE ( + 20, - SUM ( 65 ) * - 34 * SUM ( + + 9 ) + 18, 62 ) * - ( COUNT ( * ) ) + - 61 - + 19
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6398
SELECT CASE - + 7 WHEN + COUNT( * ) THEN 54 / 21 WHEN + 84 THEN - 58 * - CAST( 2 AS SIGNED ) WHEN + 91 * + - 15 + + - 71 * 8 + COALESCE ( 80, 64, 55 ) THEN NULL ELSE 27 * - 12 END
----
-324

skipif mysql # not compatible
query I rowsort label-6398
SELECT CASE - + 7 WHEN + COUNT ( * ) THEN 54 / 21 WHEN + 84 THEN - 58 * - CAST ( 2 AS INTEGER ) WHEN + 91 * + - 15 + + - 71 * 8 + COALESCE ( 80, 64, 55 ) THEN NULL ELSE 27 * - 12 END
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT + CASE - + 28 WHEN CASE + 23 WHEN + 4 THEN 69 ELSE 97 END THEN NULL WHEN 66 * 9 * 93 THEN NULL WHEN - MAX( ALL 65 ) * 21 + 19 THEN - 56 + - ( + 54 ) * 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT + CASE - + 28 WHEN CASE + 23 WHEN + 4 THEN 69 ELSE 97 END THEN NULL WHEN 66 * 9 * 93 THEN NULL WHEN - MAX ( ALL 65 ) * 21 + 19 THEN - 56 + - ( + 54 ) * 27 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6400
SELECT - 66 * + CAST( NULL AS SIGNED ) - + 17 AS col0, 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-6400
SELECT - 66 * + CAST ( NULL AS INTEGER ) - + 17 AS col0, 13 AS col2
----
NULL
13

query I rowsort
SELECT ALL + - NULLIF ( 71, + 30 ) AS col0
----
-71

query I rowsort
SELECT DISTINCT - 67 * + - 40 + + 6
----
2686

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL CASE + 91 WHEN - 20 + + 10 / - ( - 46 ) THEN 66 + - 47 + COUNT( * ) ELSE NULL END * - ( COUNT( * ) ) + - - 52 + COALESCE ( + 6, - 93 ) * - 93 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL CASE + 91 WHEN - 20 + + 10 / - ( - 46 ) THEN 66 + - 47 + COUNT ( * ) ELSE NULL END * - ( COUNT ( * ) ) + - - 52 + COALESCE ( + 6, - 93 ) * - 93 col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 97, - 59 )
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT - 23 + + - 48 - + ( 49 ) * - + ( + ( + 94 ) ) * COUNT( * )
----
4535

skipif mysql # not compatible
query I rowsort label-6407
SELECT - 23 + + - 48 - + ( 49 ) * - + ( + ( + 94 ) ) * COUNT ( * )
----
4535

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT 9 * + + ( - + 64 ) - + 0 DIV - 85 col2
----
-576

skipif mysql # not compatible
query I rowsort label-6408
SELECT 9 * + + ( - + 64 ) - + 0 / - 85 col2
----
-576

query I rowsort
SELECT + - 98 * - 47 AS col2
----
4606

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6410
SELECT DISTINCT - 54 DIV CAST( + 45 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT - 54 / CAST ( + 45 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6411
SELECT DISTINCT + + COUNT( 46 ), 58 AS col1
----
1
58

skipif mysql # not compatible
query II rowsort label-6411
SELECT DISTINCT + + COUNT ( 46 ), 58 AS col1
----
1
58

query I rowsort
SELECT DISTINCT - 37 * - + 3 - - + ( - - 42 ) * 94 AS col1
----
4059

query I rowsort
SELECT DISTINCT - 4 * 22
----
-88

query I rowsort
SELECT + + 71 + + 40 AS col1
----
111

query I rowsort
SELECT - 44 - 88 AS col1
----
-132

query I rowsort
SELECT - 2 * - 62 AS col1
----
124

query I rowsort
SELECT - 20 - + NULLIF ( + 44, - ( + ( 67 ) ) ) AS col1
----
-64

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6420
SELECT 30 AS col2, + COUNT( * ) * - - 88 * + ( + ( + NULLIF ( - - 47, - 41 * 83 ) ) ) * - + ( - + 8 ) col2
----
30
33088

skipif mysql # not compatible
query II rowsort label-6420
SELECT 30 AS col2, + COUNT ( * ) * - - 88 * + ( + ( + NULLIF ( - - 47, - 41 * 83 ) ) ) * - + ( - + 8 ) col2
----
30
33088

query I rowsort
SELECT - 72 * 43 * - 10 AS col2
----
30960

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT - COUNT( ALL 50 ) + 21
----
20

skipif mysql # not compatible
query I rowsort label-6422
SELECT - COUNT ( ALL 50 ) + 21
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - ( + 68 ) - COUNT( * ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-6423
SELECT - ( + 68 ) - COUNT ( * ) col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT ALL - 54 DIV + 44
----
-1

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL - 54 / + 44
----
-1

query I rowsort
SELECT - 36 + + 16
----
-20

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6429
SELECT 67 AS col0, + MIN( - 44 ) AS col2
----
67
-44

skipif mysql # not compatible
query II rowsort label-6429
SELECT 67 AS col0, + MIN ( - 44 ) AS col2
----
67
-44

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

query I rowsort
SELECT DISTINCT ( - + NULLIF ( - 93, 85 * - 3 ) ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6432
SELECT DISTINCT 87 DIV + - 94 * + - 79 * + 91 * - COALESCE ( - - 39, - 31, - ( + CAST( NULL AS SIGNED ) ) DIV + - 99 * + + 1 - - 77 + - CAST( + 28 AS SIGNED ) ) * + 67 + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT 87 / + - 94 * + - 79 * + 91 * - COALESCE ( - - 39, - 31, - ( + CAST ( NULL AS INTEGER ) ) / + - 99 * + + 1 - - 77 + - CAST ( + 28 AS INTEGER ) ) * + 67 + 11 AS col0
----
11

query I rowsort
SELECT + + 85 * - - 99 + - - 81 AS col2
----
8496

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

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

query II rowsort
SELECT 63 * + + 85 * 97 * - - 3 + - 77 + - 41 AS col0, 93 * - 44
----
1558187
-4092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT ALL - + 37 DIV 1 - + 82 - + COUNT( * ) * COUNT( * ) * - 82 * 52 AS col0
----
4145

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL - + 37 / 1 - + 82 - + COUNT ( * ) * COUNT ( * ) * - 82 * 52 AS col0
----
4145

query I rowsort
SELECT + 64 * - - 19 AS col2
----
1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT + 22 * - 26 - 11 * - + 11 + + 23 + - + 57 * - CAST( - COUNT( * ) AS SIGNED ) + + 17 * 50 + - 86 AS col2
----
279

skipif mysql # not compatible
query I rowsort label-6438
SELECT + 22 * - 26 - 11 * - + 11 + + 23 + - + 57 * - CAST ( - COUNT ( * ) AS INTEGER ) + + 17 * 50 + - 86 AS col2
----
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6439
SELECT 36 col2, + COALESCE ( - 97, - 6 + 3 * + + 43, + CASE + + 61 WHEN - + CASE WHEN ( NULL ) IS NOT NULL THEN - COUNT( * ) END THEN NULL WHEN 54 THEN 53 * + CAST( NULL AS SIGNED ) ELSE NULL END ) + 7 * - 77 col1
----
36
-636

skipif mysql # not compatible
query II rowsort label-6439
SELECT 36 col2, + COALESCE ( - 97, - 6 + 3 * + + 43, + CASE + + 61 WHEN - + CASE WHEN ( NULL ) IS NOT NULL THEN - COUNT ( * ) END THEN NULL WHEN 54 THEN 53 * + CAST ( NULL AS INTEGER ) ELSE NULL END ) + 7 * - 77 col1
----
36
-636

onlyif mysql # aggregate syntax: 
query II rowsort label-6440
SELECT - COALESCE ( + 44, 0 ) * - ( + 25 ) + - - MIN( DISTINCT - ( + 69 ) ) * + 71 AS col0, - 81 * - 37 AS col0
----
-3799
2997

skipif mysql # not compatible
query II rowsort label-6440
SELECT - COALESCE ( + 44, 0 ) * - ( + 25 ) + - - MIN ( DISTINCT - ( + 69 ) ) * + 71 AS col0, - 81 * - 37 AS col0
----
-3799
2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6441
SELECT + + 86 * - 96 DIV - COUNT( * ) - + 0 + 92 + + + 28 * - - 41 + - 59 + + 36 + + 53 AS col0
----
9526

skipif mysql # not compatible
query I rowsort label-6441
SELECT + + 86 * - 96 / - COUNT ( * ) - + 0 + 92 + + + 28 * - - 41 + - 59 + + 36 + + 53 AS col0
----
9526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6442
SELECT ALL COUNT( * ) * - COALESCE ( COUNT( * ), + 92 * + 37 ) DIV - - 29 + + + ( 86 ) + + + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL COUNT ( * ) * - COALESCE ( COUNT ( * ), + 92 * + 37 ) / - - 29 + + + ( 86 ) + + + COUNT ( * ) AS col2
----
87

query I rowsort
SELECT DISTINCT 79 * - 52 * - + 48 * + 82
----
16169088

query II rowsort
SELECT DISTINCT + 71 AS col1, 19 + 1
----
71
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6445
SELECT ALL CAST( - - 20 AS SIGNED ) * - MAX( + NULLIF ( 81, - 1 ) ) * + + COUNT( * ) * + 2 + 76 * + 13 + + 45
----
-2207

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL CAST ( - - 20 AS INTEGER ) * - MAX ( + NULLIF ( 81, - 1 ) ) * + + COUNT ( * ) * + 2 + 76 * + 13 + + 45
----
-2207

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - - 4 * - - 98 + + - 18 * - COUNT( * ) AS col0
----
410

skipif mysql # not compatible
query I rowsort label-6446
SELECT - - 4 * - - 98 + + - 18 * - COUNT ( * ) AS col0
----
410

query I rowsort
SELECT CASE + + 28 WHEN - - 71 + + 9 + - 86 - 39 * - - 90 THEN ( + 43 ) ELSE - 69 END AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT NULLIF ( - 76, 8 * - - 39 * - 34 + - 12 * 68 * - 12 * - CAST( 58 AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-6448
SELECT NULLIF ( - 76, 8 * - - 39 * - 34 + - 12 * 68 * - 12 * - CAST ( 58 AS INTEGER ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT + 44 + - - CASE + COALESCE ( + COUNT( * ), 68 * 55 ) WHEN 89 THEN NULL WHEN + 50 + + - COUNT( * ) THEN + 19 ELSE NULL END + - - 85 * 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT + 44 + - - CASE + COALESCE ( + COUNT ( * ), 68 * 55 ) WHEN 89 THEN NULL WHEN + 50 + + - COUNT ( * ) THEN + 19 ELSE NULL END + - - 85 * 75 col0
----
NULL

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

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

query II rowsort
SELECT + 20 + - 8 AS col1, 23 AS col1
----
12
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT DISTINCT + 40 DIV + - 9 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT + 40 / + - 9 AS col2
----
-4

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

query I rowsort
SELECT ALL + 22 * - NULLIF ( 42, - + 88 ) AS col1
----
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT ALL 3 * - CAST( NULL AS SIGNED ) + - + 59 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL 3 * - CAST ( NULL AS INTEGER ) + - + 59 * + 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT - CASE - + CAST( NULL AS SIGNED ) WHEN ( + 91 ) + + 75 * 82 THEN - 96 + - + 74 WHEN ( - 37 ) THEN + + 15 + - 70 - - 71 * + 46 END + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT - CASE - + CAST ( NULL AS INTEGER ) WHEN ( + 91 ) + + 75 * 82 THEN - 96 + - + 74 WHEN ( - 37 ) THEN + + 15 + - 70 - - 71 * + 46 END + + 74
----
NULL

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

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

query I rowsort
SELECT 38 * - 79 * - + ( ( - 74 ) ) col1
----
-222148

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT - 68 + - COUNT( * ) + 80 * - MAX( ALL + + 68 )
----
-5509

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - 68 + - COUNT ( * ) + 80 * - MAX ( ALL + + 68 )
----
-5509

query I rowsort
SELECT 92 + + 80 AS col0
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6461
SELECT ALL COUNT( * ) * + + NULLIF ( - + ( 11 ), - COALESCE ( - ( - 4 ), - - 9 + - NULLIF ( + 64, + 32 + CASE + NULLIF ( - 19, + 32 / - NULLIF ( CAST( NULL AS DECIMAL ), 45 ) ) WHEN CAST( NULL AS SIGNED ) THEN NULLIF ( + 33, - 20 ) ELSE NULL END ) * 35 ) / - COUNT( * ) + 87 ) * + COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL COUNT ( * ) * + + NULLIF ( - + ( 11 ), - COALESCE ( - ( - 4 ), - - 9 + - NULLIF ( + 64, + 32 + CASE + NULLIF ( - 19, + 32 / - NULLIF ( CAST ( NULL AS REAL ), 45 ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULLIF ( + 33, - 20 ) ELSE NULL END ) * 35 ) / - COUNT ( * ) + 87 ) * + COUNT ( * ) AS col1
----
-11

query I rowsort
SELECT ALL - 23 - - + 42 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT - NULLIF ( + 79, - ( + 15 ) ) - - + CASE - 76 WHEN - 21 * 89 * - ( - 21 ) THEN NULL WHEN - 36 THEN - 85 WHEN + 39 + + + 29 THEN NULL WHEN COUNT( * ) + 47 * - 68 THEN NULL END / - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT - NULLIF ( + 79, - ( + 15 ) ) - - + CASE - 76 WHEN - 21 * 89 * - ( - 21 ) THEN NULL WHEN - 36 THEN - 85 WHEN + 39 + + + 29 THEN NULL WHEN COUNT ( * ) + 47 * - 68 THEN NULL END / - 94 AS col0
----
NULL

query I rowsort
SELECT 48 + + 78
----
126

query I rowsort
SELECT + CASE - 58 WHEN - 82 + - 15 + + 3 + 44 * 4 THEN + 95 WHEN - + 32 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT ALL - COALESCE ( - 50, + - CAST( NULL AS SIGNED ) ) col0
----
50

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - COALESCE ( - 50, + - CAST ( NULL AS INTEGER ) ) col0
----
50

query I rowsort
SELECT ALL + + ( - 17 ) * 18 AS col2
----
-306

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL + 96 * + COUNT( * ) * 85
----
8160

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL + 96 * + COUNT ( * ) * 85
----
8160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6470
SELECT - + 8 DIV + - 42 - + 74 - + - SUM( ALL - - 39 ) * + + 22 DIV - COUNT( - 46 ) AS col0
----
-932

skipif mysql # not compatible
query I rowsort label-6470
SELECT - + 8 / + - 42 - + 74 - + - SUM ( ALL - - 39 ) * + + 22 / - COUNT ( - 46 ) AS col0
----
-932

query I rowsort
SELECT ALL + 26 * - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT 19 DIV - + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6472
SELECT 19 / - + 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT ALL - - 11 * - - 88 * + COUNT( * )
----
968

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL - - 11 * - - 88 * + COUNT ( * )
----
968

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6475
SELECT 24 DIV + 65 + - 26 + - - 78 AS col2, + COUNT( * )
----
52
1

skipif mysql # not compatible
query II rowsort label-6475
SELECT 24 / + 65 + - 26 + - - 78 AS col2, + COUNT ( * )
----
52
1

query I rowsort
SELECT - 12 - + 12
----
-24

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

query I rowsort
SELECT + 65 * - + ( + - 80 )
----
5200

query II rowsort
SELECT ALL - 69 + + - 20 col0, ( - + ( + 17 ) )
----
-89
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT - 62 * - 62 + COUNT( ALL 32 ) col2
----
3845

skipif mysql # not compatible
query I rowsort label-6480
SELECT - 62 * - 62 + COUNT ( ALL 32 ) col2
----
3845

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

skipif mysql # not compatible
query I rowsort label-6481
SELECT COUNT ( * ) * - 69
----
-69

query I rowsort
SELECT ALL 84 + - NULLIF ( 32, 67 )
----
52

query I rowsort
SELECT ALL 55 * - - 21 * - 59 col2
----
-68145

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT COUNT( * ) + SUM( DISTINCT - + 46 )
----
-45

skipif mysql # not compatible
query I rowsort label-6484
SELECT COUNT ( * ) + SUM ( DISTINCT - + 46 )
----
-45

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

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

query I rowsort
SELECT DISTINCT 90 + 87 * + - 27 AS col1
----
-2259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT ALL 48 + 78 * + + 56 + + COALESCE ( - 40, 25, - CAST( - + 84 AS SIGNED ) ) AS col2
----
4376

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL 48 + 78 * + + 56 + + COALESCE ( - 40, 25, - CAST ( - + 84 AS INTEGER ) ) AS col2
----
4376

query II rowsort
SELECT - 81 AS col1, + 63
----
-81
63

query I rowsort
SELECT ALL 25 + - 76 AS col1
----
-51

query II rowsort
SELECT ( - - 52 ) - 23, ( - + 20 ) AS col0
----
29
-20

query I rowsort
SELECT ALL 89 - 31 AS col2
----
58

query I rowsort
SELECT DISTINCT + 73 * + + 84 col2
----
6132

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL - NULLIF ( - + COALESCE ( 81, - + 71 ), + 8 / + - 86 + 94 ) - - 90 + ( - NULLIF ( COUNT( * ), - 57 ) ) + + 74 AS col0
----
244

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL - NULLIF ( - + COALESCE ( 81, - + 71 ), + 8 / + - 86 + 94 ) - - 90 + ( - NULLIF ( COUNT ( * ), - 57 ) ) + + 74 AS col0
----
244

onlyif mysql # DIV for integer division: 
query I rowsort label-6494
SELECT ALL 41 DIV - - 1 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL 41 / - - 1 AS col1
----
41

query I rowsort
SELECT 72 + + 31 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT 85 - + 54 + 30 + - - 65 * + 53 * + COUNT( * ) - - 49 * + COUNT( * ) * - 59 * 52
----
-146826

skipif mysql # not compatible
query I rowsort label-6496
SELECT 85 - + 54 + 30 + - - 65 * + 53 * + COUNT ( * ) - - 49 * + COUNT ( * ) * - 59 * 52
----
-146826

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

skipif mysql # not compatible
query I rowsort label-6497
SELECT + SUM ( 80 )
----
80

query I rowsort
SELECT - ( 61 ) + - 67
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT + 80 - - - 18 DIV - 69 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6499
SELECT + 80 - - - 18 / - 69 AS col1
----
80

query I rowsort
SELECT ALL + + CASE + 72 WHEN - 66 * - - 25 THEN - 20 WHEN NULLIF ( + 94, + - 43 + - ( + 8 ) ) + 84 THEN NULL ELSE NULL END - + 88
----
NULL

query I rowsort
SELECT 62 * + 98
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT - COALESCE ( COUNT( * ), + - 10 * - ( MIN( - ( - - 10 ) ) ), + 27 - COUNT( * ), + ( - 62 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6502
SELECT - COALESCE ( COUNT ( * ), + - 10 * - ( MIN ( - ( - - 10 ) ) ), + 27 - COUNT ( * ), + ( - 62 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT CASE + COUNT( * ) WHEN 51 THEN NULL WHEN - + 33 THEN - 91 * - COALESCE ( 93, + + 45 * - 81 + + 12, - CASE 5 WHEN + 87 THEN NULL WHEN - ( - - 51 ) THEN + COUNT( * ) ELSE NULLIF ( 6, - 99 - 59 ) END ) + 9 ELSE NULL END + - COUNT( * ) * + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6503
SELECT CASE + COUNT ( * ) WHEN 51 THEN NULL WHEN - + 33 THEN - 91 * - COALESCE ( 93, + + 45 * - 81 + + 12, - CASE 5 WHEN + 87 THEN NULL WHEN - ( - - 51 ) THEN + COUNT ( * ) ELSE NULLIF ( 6, - 99 - 59 ) END ) + 9 ELSE NULL END + - COUNT ( * ) * + 7 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 47 * + 24 AS col1
----
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT + 46 + + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-6505
SELECT + 46 + + + COUNT ( * )
----
47

query I rowsort
SELECT 42 * - 69 + - 92 AS col2
----
-2990

onlyif mysql # aggregate syntax: 
query II rowsort label-6507
SELECT + MIN( ALL - COALESCE ( + 2, 15 ) ) * - 72 + + + COUNT( DISTINCT - 62 ) * - - 24, MIN( DISTINCT + 17 ) + - 68 + + 14 AS col1
----
168
-37

skipif mysql # not compatible
query II rowsort label-6507
SELECT + MIN ( ALL - COALESCE ( + 2, 15 ) ) * - 72 + + + COUNT ( DISTINCT - 62 ) * - - 24, MIN ( DISTINCT + 17 ) + - 68 + + 14 AS col1
----
168
-37

query I rowsort
SELECT ALL - - 29 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT + 97 * - CASE - 81 WHEN + + 76 THEN - + 23 END * - COUNT( * ) / + 36 + - 22 + + + 60 * - + COUNT( * ) * COUNT( * ) + - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT + 97 * - CASE - 81 WHEN + + 76 THEN - + 23 END * - COUNT ( * ) / + 36 + - 22 + + + 60 * - + COUNT ( * ) * COUNT ( * ) + - - 82
----
NULL

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

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

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

query II rowsort
SELECT CASE + - 80 WHEN + 12 THEN NULL WHEN + 13 THEN NULL ELSE 33 END col0, 91
----
33
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6513
SELECT ALL + COALESCE ( - 2, - + 90 + + 46 * - COUNT( * ) ) DIV + 20
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + COALESCE ( - 2, - + 90 + + 46 * - COUNT ( * ) ) / + 20
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6514
SELECT + COUNT( * ) / ( + ( + - 95 ) ) * + + 45 * + - 69 - 29 - - 59 + + 10 - + + 78 / - CAST( NULL AS DECIMAL ) / - 67 * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT + COUNT ( * ) / ( + ( + - 95 ) ) * + + 45 * + - 69 - 29 - - 59 + + 10 - + + 78 / - CAST ( NULL AS REAL ) / - 67 * - 65
----
NULL

query I rowsort
SELECT ALL + - 34 * - 4 * + + 18 + - NULLIF ( 31, + 13 ) AS col0
----
2417

query I rowsort
SELECT + COALESCE ( + NULLIF ( + 33, + - 43 ), 71 * + + 56 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6517
SELECT ALL 83 * 88 + 17 * - 41 * + COUNT( * ) - + 13, - NULLIF ( - + 53, ( - - 50 ) * + COUNT( * ) + - 23 ) + CAST( NULL AS SIGNED ) / - NULLIF ( + 46, + 53 * 99 ) col1
----
6594
NULL

skipif mysql # not compatible
query II rowsort label-6517
SELECT ALL 83 * 88 + 17 * - 41 * + COUNT ( * ) - + 13, - NULLIF ( - + 53, ( - - 50 ) * + COUNT ( * ) + - 23 ) + CAST ( NULL AS INTEGER ) / - NULLIF ( + 46, + 53 * 99 ) col1
----
6594
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6518
SELECT DISTINCT - 10 * + 90 + 6 + - COUNT( * ) * - CAST( - 58 AS SIGNED ) AS col1
----
-952

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT - 10 * + 90 + 6 + - COUNT ( * ) * - CAST ( - 58 AS INTEGER ) AS col1
----
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT ALL - + 96 * + COUNT( * ) * + MIN( - - 94 ) * - 48 AS col0, - 23
----
433152
-23

skipif mysql # not compatible
query II rowsort label-6519
SELECT ALL - + 96 * + COUNT ( * ) * + MIN ( - - 94 ) * - 48 AS col0, - 23
----
433152
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6520
SELECT DISTINCT 52 * 89 + + + COUNT( * ) * + 21 + - 8 * - 20 * ( + NULLIF ( - + COUNT( * ), + 58 * ( - MAX( + + COALESCE ( CASE - - 85 WHEN - 55 THEN 4 WHEN - 40 * 4 - 5 * 94 THEN NULL WHEN 68 THEN 24 ELSE 76 END, CAST( 59 AS SIGNED ) * 32 ) ) ) + + 67 / + COUNT( * ) ) )
----
4489

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT 52 * 89 + + + COUNT ( * ) * + 21 + - 8 * - 20 * ( + NULLIF ( - + COUNT ( * ), + 58 * ( - MAX ( + + COALESCE ( CASE - - 85 WHEN - 55 THEN 4 WHEN - 40 * 4 - 5 * 94 THEN NULL WHEN 68 THEN 24 ELSE 76 END, CAST ( 59 AS INTEGER ) * 32 ) ) ) + + 67 / + COUNT ( * ) ) )
----
4489

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

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

query I rowsort
SELECT ALL 85 + + - 71 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT 95 * SUM( - 70 ) * - 54 * 14 - - ( - 30 ) AS col2
----
5027370

skipif mysql # not compatible
query I rowsort label-6523
SELECT 95 * SUM ( - 70 ) * - 54 * 14 - - ( - 30 ) AS col2
----
5027370

query II rowsort
SELECT + 13 AS col1, 68 col1
----
13
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6525
SELECT ALL + 2 AS col0, + 65 * CAST( NULL AS SIGNED ) - - 25
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6525
SELECT ALL + 2 AS col0, + 65 * CAST ( NULL AS INTEGER ) - - 25
----
2
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6527
SELECT ALL + 50 + + 30 DIV - 72
----
50

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + 50 + + 30 / - 72
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT - AVG ( - - CAST( NULL AS SIGNED ) ) + 82 + 21 + - + NULLIF ( - 1, + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT - AVG ( - - CAST ( NULL AS INTEGER ) ) + 82 + 21 + - + NULLIF ( - 1, + 16 )
----
NULL

query I rowsort
SELECT + 19 + + 78 col0
----
97

query I rowsort
SELECT - 31 + - 79 AS col1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT NULLIF ( + 8, SUM( - 96 ) * - + 65 )
----
8

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT NULLIF ( + 8, SUM ( - 96 ) * - + 65 )
----
8

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

query I rowsort
SELECT DISTINCT NULLIF ( - ( 78 ), - - 24 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT - NULLIF ( + ( - + 65 ), - COUNT( * ) ) col0
----
65

skipif mysql # not compatible
query I rowsort label-6534
SELECT - NULLIF ( + ( - + 65 ), - COUNT ( * ) ) col0
----
65

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

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT COUNT ( * ) * + 39 AS col1
----
39

query I rowsort
SELECT + 23 * + 9
----
207

query I rowsort
SELECT + 29 + 37
----
66

query I rowsort
SELECT ALL - 20 * 16 AS col2
----
-320

query II rowsort
SELECT - - 80, + ( - - 55 ) col2
----
80
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT + + 48 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-6540
SELECT + + 48 / + 60
----
0

query II rowsort
SELECT ALL + 13 AS col2, 13
----
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT CASE 63 WHEN + COUNT( ( + - 28 ) ) / + 90 THEN ( + + 27 ) / - AVG ( - ( + 53 ) ) ELSE - 39 + + 59 END
----
20

skipif mysql # not compatible
query I rowsort label-6542
SELECT CASE 63 WHEN + COUNT ( ( + - 28 ) ) / + 90 THEN ( + + 27 ) / - AVG ( - ( + 53 ) ) ELSE - 39 + + 59 END
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT + - 30 + - 51 + + 21 * - 83 * + - 74 - NULLIF ( + + 64, 59 + + CASE + + 83 WHEN + + 71 * - + ( 98 ) THEN NULL WHEN + AVG ( - 44 ) THEN MIN( - 17 ) * 46 + - 17 ELSE + 38 END + + 84 / 59 )
----
128837

skipif mysql # not compatible
query I rowsort label-6543
SELECT + - 30 + - 51 + + 21 * - 83 * + - 74 - NULLIF ( + + 64, 59 + + CASE + + 83 WHEN + + 71 * - + ( 98 ) THEN NULL WHEN + AVG ( - 44 ) THEN MIN ( - 17 ) * 46 + - 17 ELSE + 38 END + + 84 / 59 )
----
128837

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT - + 42 * + COUNT( * ) + + 23 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6544
SELECT - + 42 * + COUNT ( * ) + + 23 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6545
SELECT - - 74 * + - COUNT( * ) AS col2, 73 AS col1
----
-74
73

skipif mysql # not compatible
query II rowsort label-6545
SELECT - - 74 * + - COUNT ( * ) AS col2, 73 AS col1
----
-74
73

query I rowsort
SELECT + 47 - - 43 * 32 AS col2
----
1423

query I rowsort
SELECT DISTINCT - 56 * + 24 + + 7 + 82 + + + 69 AS col1
----
-1186

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

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

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

query I rowsort
SELECT - 54 * 60 + 47 AS col0
----
-3193

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

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

query II rowsort
SELECT ( + + 75 ), + 17 AS col1
----
75
17

query II rowsort
SELECT DISTINCT ( - 66 ) * - 90 + - 46 + + 48 * 52 * - + 38, 44 * 54 + - COALESCE ( - + 88, 68 * + ( - 82 ) + - 36, - 55 ) col0
----
-88954
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT NULLIF ( - + 59, + NULLIF ( - MIN( ALL + 41 ), - + 58 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-6554
SELECT NULLIF ( - + 59, + NULLIF ( - MIN ( ALL + 41 ), - + 58 ) )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT ALL + NULLIF ( + + ( 4 ), - MAX( DISTINCT + CAST( - 18 AS SIGNED ) ) ) col2
----
4

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + NULLIF ( + + ( 4 ), - MAX ( DISTINCT + CAST ( - 18 AS INTEGER ) ) ) col2
----
4

query I rowsort
SELECT COALESCE ( + 58, 19 ) col2
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL - 91 * - CASE 87 WHEN - + 87 THEN COUNT( * ) * + - 12 / 9 * - NULLIF ( - 70, + 94 / - 8 + COUNT( * ) + 83 ) - + 82 * - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - 91 * - CASE 87 WHEN - + 87 THEN COUNT ( * ) * + - 12 / 9 * - NULLIF ( - 70, + 94 / - 8 + COUNT ( * ) + 83 ) - + 82 * - 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT NULLIF ( + COUNT( * ), 82 / 53 + - - SUM( DISTINCT - 62 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6559
SELECT NULLIF ( + COUNT ( * ), 82 / 53 + - - SUM ( DISTINCT - 62 ) ) AS col1
----
1

query II rowsort
SELECT ALL 59 * + - 77 - + + 25, 64 AS col0
----
-4568
64

query II rowsort
SELECT ALL + COALESCE ( ( 53 ), + - 78, - 26 ) AS col2, + 74 - 66 AS col2
----
53
8

query I rowsort
SELECT ALL + 29 * - - 36 - 29 * - - 85
----
-1421

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6564
SELECT - MAX( DISTINCT - ( + 94 ) ) * - 91 * + 43, 23 DIV 99 AS col1
----
-367822
0

skipif mysql # not compatible
query II rowsort label-6564
SELECT - MAX ( DISTINCT - ( + 94 ) ) * - 91 * + 43, 23 / 99 AS col1
----
-367822
0

query I rowsort
SELECT ALL - 91 * + 97
----
-8827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6566
SELECT - 36 * + COUNT( * ) AS col0, - 35 + - - 84 + + + CASE - 51 WHEN 23 * + AVG ( + 41 ) THEN + COUNT( * ) + - + ( + + 84 ) + - 19 + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) + + + 19 / + 32 WHEN 52 * 4 THEN - 62 ELSE NULL END
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-6566
SELECT - 36 * + COUNT ( * ) AS col0, - 35 + - - 84 + + + CASE - 51 WHEN 23 * + AVG ( + 41 ) THEN + COUNT ( * ) + - + ( + + 84 ) + - 19 + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + + + 19 / + 32 WHEN 52 * 4 THEN - 62 ELSE NULL END
----
-36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT - ( - ( 99 ) ) + + NULLIF ( - + 38, + ( - COUNT( * ) ) * - + 38 / 65 * - + COUNT( * ) - + COUNT( + + 93 ) + + CASE - + 74 WHEN - ( + 22 ) THEN + + 9 + 28 * 1 WHEN 13 THEN NULL WHEN 68 THEN + 39 ELSE NULL END + 75 ) * 77 AS col2
----
-2827

skipif mysql # not compatible
query I rowsort label-6567
SELECT - ( - ( 99 ) ) + + NULLIF ( - + 38, + ( - COUNT ( * ) ) * - + 38 / 65 * - + COUNT ( * ) - + COUNT ( + + 93 ) + + CASE - + 74 WHEN - ( + 22 ) THEN + + 9 + 28 * 1 WHEN 13 THEN NULL WHEN 68 THEN + 39 ELSE NULL END + 75 ) * 77 AS col2
----
-2827

query II rowsort
SELECT ALL ( + 94 ) AS col2, - 95
----
94
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6569
SELECT - COUNT( * ) + - - 10 + CAST( NULL AS SIGNED ) - + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT - COUNT ( * ) + - - 10 + CAST ( NULL AS INTEGER ) - + - 26 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT DISTINCT CAST( - COALESCE ( - + ( + CASE + ( + + 0 ) WHEN - - 17 THEN NULL WHEN ( 49 ) THEN - 11 / + + 99 + + 97 + + 78 WHEN - 2 * CAST( NULL AS SIGNED ) * - MAX( DISTINCT + 27 ) + - 2 * - 19 THEN + 65 + - COUNT( * ) END ), - 8 * 15 ) AS SIGNED ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT CAST ( - COALESCE ( - + ( + CASE + ( + + 0 ) WHEN - - 17 THEN NULL WHEN ( 49 ) THEN - 11 / + + 99 + + 97 + + 78 WHEN - 2 * CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 27 ) + - 2 * - 19 THEN + 65 + - COUNT ( * ) END ), - 8 * 15 ) AS INTEGER ) AS col0
----
120

query I rowsort
SELECT - NULLIF ( + ( + NULLIF ( - - 2, - - 32 ) ), - - 4 + - - 10 )
----
-2

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

query I rowsort
SELECT - 15 + - - 1 + 38
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT + + 19 + - COALESCE ( + COUNT( * ), + + 41 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6574
SELECT + + 19 + - COALESCE ( + COUNT ( * ), + + 41 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL + COALESCE ( - - 6, + COUNT( * ) ) * + 10 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL + COALESCE ( - - 6, + COUNT ( * ) ) * + 10 AS col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6576
SELECT ALL + 39 + + ( - COUNT( DISTINCT + 6 ) ) + + 27 AS col0, - MIN( DISTINCT - + 96 ) AS col1
----
65
96

skipif mysql # not compatible
query II rowsort label-6576
SELECT ALL + 39 + + ( - COUNT ( DISTINCT + 6 ) ) + + 27 AS col0, - MIN ( DISTINCT - + 96 ) AS col1
----
65
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6577
SELECT - - 34 + - - 81 + 38 AS col1, NULLIF ( + - 49, - 17 ) * + 70 * 25 DIV COUNT( DISTINCT ( + + 18 ) ) AS col0
----
153
-85750

skipif mysql # not compatible
query II rowsort label-6577
SELECT - - 34 + - - 81 + 38 AS col1, NULLIF ( + - 49, - 17 ) * + 70 * 25 / COUNT ( DISTINCT ( + + 18 ) ) AS col0
----
153
-85750

onlyif mysql # aggregate syntax: 
query II rowsort label-6578
SELECT ALL 34 * NULLIF ( + 10, - COUNT( * ) ) * - 32 AS col0, 19 AS col1
----
-10880
19

skipif mysql # not compatible
query II rowsort label-6578
SELECT ALL 34 * NULLIF ( + 10, - COUNT ( * ) ) * - 32 AS col0, 19 AS col1
----
-10880
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT - - 84 + + 53 AS col0, + 10 * COUNT( * ) + + + 19 - COUNT( * ) AS col1
----
137
28

skipif mysql # not compatible
query II rowsort label-6579
SELECT - - 84 + + 53 AS col0, + 10 * COUNT ( * ) + + + 19 - COUNT ( * ) AS col1
----
137
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + SUM( 6 ) + + - 97 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6580
SELECT + SUM ( 6 ) + + - 97 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT - ( ( - MIN( 44 ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - ( ( - MIN ( 44 ) ) )
----
44

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

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

query II rowsort
SELECT DISTINCT + 45 + - 52, + 53 AS col2
----
-7
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT + + 76 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-6584
SELECT + + 76 / + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + COUNT( * ) + COUNT( * ) + 43
----
45

skipif mysql # not compatible
query I rowsort label-6585
SELECT + COUNT ( * ) + COUNT ( * ) + 43
----
45

query I rowsort
SELECT ALL + 12 + - ( 44 ) + 73
----
41

query II rowsort
SELECT + 67 * - 54 AS col2, 44 AS col0
----
-3618
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT - 4 * + 43 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT - 4 * + 43 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 3 col0, + 91
----
3
91

query I rowsort
SELECT DISTINCT 73 - - - 95 AS col2
----
-22

query II rowsort
SELECT + 57 AS col1, - 73
----
57
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT 86 + - COUNT( - 49 ) col1
----
85

skipif mysql # not compatible
query I rowsort label-6592
SELECT 86 + - COUNT ( - 49 ) col1
----
85

query I rowsort
SELECT 86 * + 1 + + 87 + + 40 AS col1
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT 37 - - ( - - 48 ) * - 43 - + COUNT( * ) + + 91 * + - 53 AS col0
----
-6851

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT 37 - - ( - - 48 ) * - 43 - + COUNT ( * ) + + 91 * + - 53 AS col0
----
-6851

onlyif mysql # aggregate syntax: 
query II rowsort label-6595
SELECT ALL - COUNT( * ), - 18 col1
----
-1
-18

skipif mysql # not compatible
query II rowsort label-6595
SELECT ALL - COUNT ( * ), - 18 col1
----
-1
-18

query I rowsort
SELECT 76 * + ( - - 63 ) AS col2
----
4788

query I rowsort
SELECT ALL 72 * 12 * - 58 AS col1
----
-50112

query I rowsort
SELECT 82 + + ( - 79 ) * 52 AS col2
----
-4026

onlyif mysql # aggregate syntax: 
query II rowsort label-6599
SELECT ALL - CASE + + 9 WHEN + COUNT( * ) THEN NULL ELSE + - 48 END AS col2, 47 + - 0
----
48
47

skipif mysql # not compatible
query II rowsort label-6599
SELECT ALL - CASE + + 9 WHEN + COUNT ( * ) THEN NULL ELSE + - 48 END AS col2, 47 + - 0
----
48
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6600
SELECT 24 * 30 + - 89 + - 64 DIV + COUNT( 39 )
----
567

skipif mysql # not compatible
query I rowsort label-6600
SELECT 24 * 30 + - 89 + - 64 / + COUNT ( 39 )
----
567

query II rowsort
SELECT ALL - NULLIF ( + 23, + - 95 ) AS col0, 55 + - 38 + - 46 AS col0
----
-23
-29

query I rowsort
SELECT - 36 * 60 * + 58 + + 12 + 17 AS col0
----
-125251

query I rowsort
SELECT ALL - 60 + - 96 AS col2
----
-156

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

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

query I rowsort
SELECT ALL - - 44 * - 20 AS col1
----
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - ( COALESCE ( - 90, + + 18 ) ) * - 97 + + + 67 * - 2 + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - ( COALESCE ( - 90, + + 18 ) ) * - 97 + + + 67 * - 2 + + 85
----
NULL

query I rowsort
SELECT ALL + 37 + - 85 * + 84 + - 97 - 44 col2
----
-7244

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT + + 15 + COUNT( * ) * + - 56 - COALESCE ( - + COUNT( * ), - 1 )
----
-40

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT + + 15 + COUNT ( * ) * + - 56 - COALESCE ( - + COUNT ( * ), - 1 )
----
-40

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

skipif mysql # not compatible
query I rowsort label-6609
SELECT - 79 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT - COALESCE ( - 36, - 24 ) + - COUNT( * ) * 32
----
4

skipif mysql # not compatible
query I rowsort label-6610
SELECT - COALESCE ( - 36, - 24 ) + - COUNT ( * ) * 32
----
4

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

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL + - 64 + - COUNT ( * ) AS col1
----
-65

query I rowsort
SELECT 88 * - 87 * + NULLIF ( 81, - + 85 + - 24 + 30 * - - 67 ) + - 22 * + 71
----
-621698

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT - 62 + - - COUNT( DISTINCT 93 ) - + 81 * 17 AS col0
----
-1438

skipif mysql # not compatible
query I rowsort label-6613
SELECT - 62 + - - COUNT ( DISTINCT 93 ) - + 81 * 17 AS col0
----
-1438

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT DISTINCT NULLIF ( - + 35, + COUNT( ALL 65 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT NULLIF ( - + 35, + COUNT ( ALL 65 ) ) AS col2
----
-35

query I rowsort
SELECT ALL + - 89 + + - 23 AS col0
----
-112

query II rowsort
SELECT 66 AS col0, - ( + - ( 95 ) ) AS col2
----
66
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT + 29 * - SUM( DISTINCT 30 ) + - 69 AS col0
----
-939

skipif mysql # not compatible
query I rowsort label-6617
SELECT + 29 * - SUM ( DISTINCT 30 ) + - 69 AS col0
----
-939

query II rowsort
SELECT + 77 AS col0, + COALESCE ( + 64, - 78 + + + 2 )
----
77
64

query I rowsort
SELECT ALL 82 + + 86 * 26 AS col0
----
2318

query I rowsort
SELECT DISTINCT - NULLIF ( - 79, - 57 ) * + 44 - 48 col1
----
3428

query I rowsort
SELECT 37 + 31 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6622
SELECT - 12 AS col0, CASE - 35 WHEN - + 28 * + 42 + + 3 / - NULLIF ( 21, CAST( - + COUNT( * ) AS SIGNED ) ) * 88 * - - 90 + - 8 + - CAST( + + CASE - ( - 56 ) WHEN - 10 THEN - COUNT( * ) ELSE 63 END AS SIGNED ) THEN CAST( 89 AS DECIMAL ) + NULLIF ( CAST( + 90 AS SIGNED ), - 10 ) END AS col2
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6622
SELECT - 12 AS col0, CASE - 35 WHEN - + 28 * + 42 + + 3 / - NULLIF ( 21, CAST ( - + COUNT ( * ) AS INTEGER ) ) * 88 * - - 90 + - 8 + - CAST ( + + CASE - ( - 56 ) WHEN - 10 THEN - COUNT ( * ) ELSE 63 END AS INTEGER ) THEN CAST ( 89 AS REAL ) + NULLIF ( CAST ( + 90 AS INTEGER ), - 10 ) END AS col2
----
-12
NULL

query I rowsort
SELECT DISTINCT 52 * + 95
----
4940

query I rowsort
SELECT 57 * 54
----
3078

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT + 70 * - ( + + 10 ) - + 54 * - - MIN( ALL - - 77 )
----
-4858

skipif mysql # not compatible
query I rowsort label-6626
SELECT + 70 * - ( + + 10 ) - + 54 * - - MIN ( ALL - - 77 )
----
-4858

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT DISTINCT 25 DIV + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT 25 / + 71 AS col2
----
0

query I rowsort
SELECT + 7 * 3 + - 61 AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT ( 98 ) DIV - 85 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6629
SELECT ( 98 ) / - 85 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT MIN( + ( + 74 ) ) * + COUNT( * ) + + - 59 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6630
SELECT MIN ( + ( + 74 ) ) * + COUNT ( * ) + + - 59 AS col1
----
15

query I rowsort
SELECT ( - 50 ) * - ( - 34 ) * - - 34 AS col2
----
-57800

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL NULLIF ( 91, + NULLIF ( - + 17, + MIN( - ( 78 ) ) ) ) + + 39 * 9 AS col1
----
442

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL NULLIF ( 91, + NULLIF ( - + 17, + MIN ( - ( 78 ) ) ) ) + + 39 * 9 AS col1
----
442

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

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

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

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

query I rowsort
SELECT NULLIF ( - 60, + 76 ) col2
----
-60

query I rowsort
SELECT + 19 * - 5 * - 14 AS col0
----
1330

query I rowsort
SELECT ALL + CASE WHEN NULL NOT BETWEEN NULL AND NULL THEN ( + 62 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT MAX( 86 )
----
86

skipif mysql # not compatible
query I rowsort label-6638
SELECT MAX ( 86 )
----
86

query I rowsort
SELECT - + 1 * 85 + 0
----
-85

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

skipif mysql # not compatible
query I rowsort label-6640
SELECT + CAST ( COUNT ( * ) AS INTEGER ) - 31
----
-30

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6642
SELECT ALL - 56 + - 59 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL - 56 + - 59 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT + MIN( - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-6643
SELECT + MIN ( - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT + 79 + + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-6644
SELECT + 79 + + + COUNT ( * )
----
80

query I rowsort
SELECT - 49 - + 26 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT + 93 + + NULLIF ( + + 83, - MIN( DISTINCT - 51 ) * - CASE 67 WHEN + COUNT( + CAST( + 37 AS SIGNED ) ) THEN 15 WHEN MAX( 83 ) THEN NULL ELSE 26 * + - 37 END + + 80 + + - 11 )
----
176

skipif mysql # not compatible
query I rowsort label-6646
SELECT + 93 + + NULLIF ( + + 83, - MIN ( DISTINCT - 51 ) * - CASE 67 WHEN + COUNT ( + CAST ( + 37 AS INTEGER ) ) THEN 15 WHEN MAX ( 83 ) THEN NULL ELSE 26 * + - 37 END + + 80 + + - 11 )
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - + COUNT( * ) + - - 95 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6647
SELECT - + COUNT ( * ) + - - 95 AS col1
----
94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6649
SELECT - COALESCE ( ( - 61 ), + 11 + + - 29 + - + MAX( 37 ) DIV ( 76 ), + + 51 * 28 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6649
SELECT - COALESCE ( ( - 61 ), + 11 + + - 29 + - + MAX ( 37 ) / ( 76 ), + + 51 * 28 ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT - SUM( DISTINCT + - 85 ) + CAST( NULL AS SIGNED ) * - + CASE - - 74 WHEN + + 11 THEN - + 91 - + - 54 - - 16 + 40 * - - 79 * 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT - SUM ( DISTINCT + - 85 ) + CAST ( NULL AS INTEGER ) * - + CASE - - 74 WHEN + + 11 THEN - + 91 - + - 54 - - 16 + 40 * - - 79 * 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6651
SELECT 33, COUNT( ALL - + 15 ) * 11 * + 26 + 89 * + ( - + 90 ) + + ( - 42 ) AS col0
----
33
-7766

skipif mysql # not compatible
query II rowsort label-6651
SELECT 33, COUNT ( ALL - + 15 ) * 11 * + 26 + 89 * + ( - + 90 ) + + ( - 42 ) AS col0
----
33
-7766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6652
SELECT ALL COUNT( * ), CAST( NULL AS SIGNED ) * - 80 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6652
SELECT ALL COUNT ( * ), CAST ( NULL AS INTEGER ) * - 80 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6653
SELECT NULLIF ( - 69, + 83 * - 39 - + 8 + - - MAX( 55 ) * + 88 ), 99 col0
----
-69
99

skipif mysql # not compatible
query II rowsort label-6653
SELECT NULLIF ( - 69, + 83 * - 39 - + 8 + - - MAX ( 55 ) * + 88 ), 99 col0
----
-69
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6654
SELECT - 48 + 52 DIV - MIN( 51 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-6654
SELECT - 48 + 52 / - MIN ( 51 ) col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6655
SELECT - ( COUNT( * ) ) DIV - 12 AS col1, - 94 AS col1
----
0
-94

skipif mysql # not compatible
query II rowsort label-6655
SELECT - ( COUNT ( * ) ) / - 12 AS col1, - 94 AS col1
----
0
-94

query I rowsort
SELECT + 30 * + - 99 AS col0
----
-2970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6657
SELECT ALL - 70 * 38 * + 95 * - + 50 + - 20 AS col1, - CAST( NULL AS SIGNED ) + + MIN( + - 50 ) / - 1 + + 22 - - 37 AS col0
----
12634980
NULL

skipif mysql # not compatible
query II rowsort label-6657
SELECT ALL - 70 * 38 * + 95 * - + 50 + - 20 AS col1, - CAST ( NULL AS INTEGER ) + + MIN ( + - 50 ) / - 1 + + 22 - - 37 AS col0
----
12634980
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6658
SELECT + 30 AS col2, COUNT( 90 ) + - - 7
----
30
8

skipif mysql # not compatible
query II rowsort label-6658
SELECT + 30 AS col2, COUNT ( 90 ) + - - 7
----
30
8

query II rowsort
SELECT 60 * + 44 + - 22, - 34 AS col0
----
2618
-34

query I rowsort
SELECT + 71 + + 14
----
85

query I rowsort
SELECT DISTINCT - 60 * + 86 + - 11 AS col2
----
-5171

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

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT 70 / COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT - 93 * + - 76 + - 31 + 71 + + MIN( ALL 98 ) + + 49 AS col0
----
7255

skipif mysql # not compatible
query I rowsort label-6663
SELECT - 93 * + - 76 + - 31 + 71 + + MIN ( ALL 98 ) + + 49 AS col0
----
7255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6664
SELECT 66 * - 13 + + + MAX( - 15 ) + - 21 DIV 26 + COALESCE ( 2, + + ( + 4 ) ) + - ( - - 7 )
----
-878

skipif mysql # not compatible
query I rowsort label-6664
SELECT 66 * - 13 + + + MAX ( - 15 ) + - 21 / 26 + COALESCE ( 2, + + ( + 4 ) ) + - ( - - 7 )
----
-878

query I rowsort
SELECT ALL - ( + 58 ) * + 77 + 56
----
-4410

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT + 70 DIV + + 6 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6666
SELECT + 70 / + + 6 AS col0
----
11

query I rowsort
SELECT + 84 * - 26 AS col1
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT DISTINCT 23 * + MIN( + - 76 )
----
-1748

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT 23 * + MIN ( + - 76 )
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT CASE 77 WHEN - - 89 * + 42 - + - 97 * + ( - + 41 ) / - + 60 + 15 THEN + NULLIF ( MAX( DISTINCT 62 ), 49 ) / + 43 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT CASE 77 WHEN - - 89 * + 42 - + - 97 * + ( - + 41 ) / - + 60 + 15 THEN + NULLIF ( MAX ( DISTINCT 62 ), 49 ) / + 43 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + + 39 + - 23
----
16

query I rowsort
SELECT - - 64 + 44
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT + 86 * - - 44 + COUNT( - 9 ) AS col2
----
3785

skipif mysql # not compatible
query I rowsort label-6672
SELECT + 86 * - - 44 + COUNT ( - 9 ) AS col2
----
3785

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

query II rowsort
SELECT ALL 7 col0, - 42 * - 72 - + + 5 AS col2
----
7
3019

query I rowsort
SELECT ALL + + NULLIF ( 56, 66 ) * 80 AS col2
----
4480

query I rowsort
SELECT + + 87 + + - 36
----
51

query I rowsort
SELECT DISTINCT - 46 * 49 * + + 34 AS col1
----
-76636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6678
SELECT - 43 * NULLIF ( + 71, + + 8 ) * + CAST( - - 31 AS SIGNED ) + - 81 AS col0
----
-94724

skipif mysql # not compatible
query I rowsort label-6678
SELECT - 43 * NULLIF ( + 71, + + 8 ) * + CAST ( - - 31 AS INTEGER ) + - 81 AS col0
----
-94724

query I rowsort
SELECT ALL 49 * - + 68 AS col2
----
-3332

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

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

query I rowsort
SELECT + 73 * 37 AS col1
----
2701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6682
SELECT + COUNT( * ) + + - 96 * + CASE 72 WHEN 67 / + - 42 + - 99 THEN NULL WHEN - + 45 THEN 96 END * + 35 - + 71 * CAST( NULL AS SIGNED ) * - 26 / + - 98 + - - CASE + 45 WHEN - 58 + + - 17 + + 15 THEN 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT + COUNT ( * ) + + - 96 * + CASE 72 WHEN 67 / + - 42 + - 99 THEN NULL WHEN - + 45 THEN 96 END * + 35 - + 71 * CAST ( NULL AS INTEGER ) * - 26 / + - 98 + - - CASE + 45 WHEN - 58 + + - 17 + + 15 THEN 63 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 1 * - - 4 AS col2
----
4

query I rowsort
SELECT - 55 + + 11 + 46 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT ALL + CAST( NULL AS SIGNED ) / 82 + NULLIF ( + 11, 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL + CAST ( NULL AS INTEGER ) / 82 + NULLIF ( + 11, 9 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6686
SELECT ALL 7 * - NULLIF ( + 45, - 7 ) DIV + COUNT( * ) * COUNT( * ) + NULLIF ( - 84, - - COUNT( * ) ) + - 43
----
-442

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL 7 * - NULLIF ( + 45, - 7 ) / + COUNT ( * ) * COUNT ( * ) + NULLIF ( - 84, - - COUNT ( * ) ) + - 43
----
-442

query I rowsort
SELECT 74 * - 29 - + - 98 AS col0
----
-2048

onlyif mysql # aggregate syntax: 
query II rowsort label-6688
SELECT ALL + 72 AS col0, 70 * + ( + - COUNT( * ) ) AS col2
----
72
-70

skipif mysql # not compatible
query II rowsort label-6688
SELECT ALL + 72 AS col0, 70 * + ( + - COUNT ( * ) ) AS col2
----
72
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6689
SELECT ALL 67 DIV + COUNT( DISTINCT + - 14 ) + + 60
----
127

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL 67 / + COUNT ( DISTINCT + - 14 ) + + 60
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT + MAX( ALL + - ( 86 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT + MAX ( ALL + - ( 86 ) )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6691
SELECT ALL + 10 / - + 49 + + AVG ( DISTINCT 4 ) + - 88 * + CASE + + 68 WHEN COUNT( * ) THEN + + 8 * 14 - + COUNT( * ) WHEN + 69 THEN NULL END + CASE 97 WHEN - 40 + - CAST( - + 62 AS SIGNED ) THEN NULL WHEN + - CAST( NULL AS SIGNED ) * 83 + SUM( ALL 59 ) + + 82 THEN COALESCE ( + 16, CAST( + ( - 14 ) AS SIGNED ), 15, + COUNT( DISTINCT - 93 ) ) * + 77 + 92 ELSE NULL END * + ( - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + 10 / - + 49 + + AVG ( DISTINCT 4 ) + - 88 * + CASE + + 68 WHEN COUNT ( * ) THEN + + 8 * 14 - + COUNT ( * ) WHEN + 69 THEN NULL END + CASE 97 WHEN - 40 + - CAST ( - + 62 AS INTEGER ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) * 83 + SUM ( ALL 59 ) + + 82 THEN COALESCE ( + 16, CAST ( + ( - 14 ) AS INTEGER ), 15, + COUNT ( DISTINCT - 93 ) ) * + 77 + 92 ELSE NULL END * + ( - 61 )
----
NULL

query I rowsort
SELECT ALL + 38 * + - 44 * 94 col1
----
-157168

query I rowsort
SELECT ALL - 20 * - - 23 AS col0
----
-460

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

skipif mysql # not compatible
query I rowsort label-6694
SELECT - AVG ( ALL + 57 ) / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - + 51, + 70 AS col0
----
-51
70

query II rowsort
SELECT + - 63 col2, 74 * + 4 + + 55
----
-63
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT CAST( + 74 AS SIGNED ) / + 63 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT CAST ( + 74 AS INTEGER ) / + 63 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 97 + - 1 * + - 84
----
181

onlyif mysql # aggregate syntax: 
query II rowsort label-6699
SELECT + + 40, CASE + 38 WHEN + + 74 THEN + 32 WHEN COUNT( * ) - 23 * + - 30 * - 48 THEN NULL ELSE NULL END + - 92 AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-6699
SELECT + + 40, CASE + 38 WHEN + + 74 THEN + 32 WHEN COUNT ( * ) - 23 * + - 30 * - 48 THEN NULL ELSE NULL END + - 92 AS col0
----
40
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6700
SELECT MAX( 78 ) DIV - + 20 + 12 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6700
SELECT MAX ( 78 ) / - + 20 + 12 AS col1
----
9

query I rowsort
SELECT ( - NULLIF ( - 19, - 99 ) ) + 97 AS col2
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT + + 63 * 26 DIV MAX( ALL 96 ) + - - 56 col2
----
73

skipif mysql # not compatible
query I rowsort label-6702
SELECT + + 63 * 26 / MAX ( ALL 96 ) + - - 56 col2
----
73

query I rowsort
SELECT - 84 + - + 85 AS col0
----
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT ALL - + 11 DIV - COUNT( * ) - - 25
----
36

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL - + 11 / - COUNT ( * ) - - 25
----
36

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT ALL 25 AS col2, 7 * + COUNT( * ) + - + 61
----
25
-54

skipif mysql # not compatible
query II rowsort label-6706
SELECT ALL 25 AS col2, 7 * + COUNT ( * ) + - + 61
----
25
-54

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

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

query I rowsort
SELECT 12 + 26 col0
----
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6710
SELECT + 25 + - - NULLIF ( - 12, - + CAST( NULL AS SIGNED ) + + - SUM( DISTINCT - + 62 ) )
----
13

skipif mysql # not compatible
query I rowsort label-6710
SELECT + 25 + - - NULLIF ( - 12, - + CAST ( NULL AS INTEGER ) + + - SUM ( DISTINCT - + 62 ) )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6711
SELECT DISTINCT 8 * - COUNT( * ) AS col2, 7 * + - 61 + 28 AS col2
----
-8
-399

skipif mysql # not compatible
query II rowsort label-6711
SELECT DISTINCT 8 * - COUNT ( * ) AS col2, 7 * + - 61 + 28 AS col2
----
-8
-399

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

skipif mysql # not compatible
query I rowsort label-6712
SELECT 66 + + + 71 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT 72 * + ( 25 ) AS col1
----
1800

query I rowsort
SELECT DISTINCT 61 + - 9
----
52

query I rowsort
SELECT ALL 96 + + - 68
----
28

query I rowsort
SELECT ( - - 24 ) + - 52 col0
----
-28

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT DISTINCT - CAST( + - 43 AS SIGNED ) + - COALESCE ( - + ( - 89 ), 76 + - 69, + 65 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - CAST ( + - 43 AS INTEGER ) + - COALESCE ( - + ( - 89 ), 76 + - 69, + 65 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT 95 * SUM( 46 )
----
4370

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT 95 * SUM ( 46 )
----
4370

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL - MIN( ALL - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL - MIN ( ALL - 41 ) AS col2
----
41

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

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

query I rowsort
SELECT 36 * - 35
----
-1260

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6725
SELECT DISTINCT - MIN( ALL + + 40 ) - 84 + - 53 * + - 3, 52 AS col2
----
35
52

skipif mysql # not compatible
query II rowsort label-6725
SELECT DISTINCT - MIN ( ALL + + 40 ) - 84 + - 53 * + - 3, 52 AS col2
----
35
52

query I rowsort
SELECT DISTINCT ( - 47 ) * - - 70 + + 37
----
-3253

query I rowsort
SELECT DISTINCT - 33 - - 59
----
26

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6729
SELECT 32 + + - 75 DIV - COUNT( * ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-6729
SELECT 32 + + - 75 / - COUNT ( * ) AS col0
----
107

query I rowsort
SELECT - 88 + + 49 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT CASE + MAX( ALL + 4 ) WHEN + + 60 THEN - 40 ELSE NULL END * - - 41 + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT CASE + MAX ( ALL + 4 ) WHEN + + 60 THEN - 40 ELSE NULL END * - - 41 + + 23
----
NULL

query II rowsort
SELECT + ( + 84 ), 16 AS col1
----
84
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT COUNT( * ) + + + 61 + - 34 col2
----
28

skipif mysql # not compatible
query I rowsort label-6734
SELECT COUNT ( * ) + + + 61 + - 34 col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6735
SELECT ALL + 93 + COUNT( * ) * + 13 + + COALESCE ( + + 99, 75, COUNT( * ) + + 14 DIV - - 13 * - 98 * + 66 ) AS col2
----
205

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL + 93 + COUNT ( * ) * + 13 + + COALESCE ( + + 99, 75, COUNT ( * ) + + 14 / - - 13 * - 98 * + 66 ) AS col2
----
205

query II rowsort
SELECT 81 * + 61 AS col0, - 79 * + 83 AS col0
----
4941
-6557

query I rowsort
SELECT ALL - 82 * + + 17 AS col2
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - MAX( - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-6738
SELECT - MAX ( - 28 )
----
28

query I rowsort
SELECT ALL - 32 + + 84 * 9 - + 21
----
703

query I rowsort
SELECT 66 * - ( 66 )
----
-4356

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

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

query II rowsort
SELECT - 52 AS col1, 84 * 95
----
-52
7980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6743
SELECT DISTINCT + 28 + - MIN( ALL + - 15 ) DIV + 57 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT + 28 + - MIN ( ALL + - 15 ) / + 57 AS col1
----
28

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

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

query I rowsort
SELECT 92 * - NULLIF ( + 97, + - 21 ) * + - ( - - 55 ) AS col0
----
490820

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6747
SELECT DISTINCT 7 + - + 52 + - 12 + - CAST( COALESCE ( - - 34, + - NULLIF ( + - 47, - 11 ) ) AS SIGNED ) * - CASE 58 WHEN - + 9 THEN 71 + - 27 WHEN - ( + - 35 ) THEN NULL ELSE + CASE - - ( - CASE - - 93 WHEN COUNT( * ) THEN + 55 WHEN + 76 THEN NULL ELSE NULL END ) WHEN - 36 + 97 THEN 32 WHEN 76 THEN COUNT( * ) * + COUNT( * ) END - ( + 1 ) END / + 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT 7 + - + 52 + - 12 + - CAST ( COALESCE ( - - 34, + - NULLIF ( + - 47, - 11 ) ) AS INTEGER ) * - CASE 58 WHEN - + 9 THEN 71 + - 27 WHEN - ( + - 35 ) THEN NULL ELSE + CASE - - ( - CASE - - 93 WHEN COUNT ( * ) THEN + 55 WHEN + 76 THEN NULL ELSE NULL END ) WHEN - 36 + 97 THEN 32 WHEN 76 THEN COUNT ( * ) * + COUNT ( * ) END - ( + 1 ) END / + 6 col1
----
NULL

query I rowsort
SELECT DISTINCT - 56 * + 21 col2
----
-1176

query I rowsort
SELECT 91 + + 41 AS col1
----
132

query I rowsort
SELECT ALL 54 * NULLIF ( - 60, - 51 )
----
-3240

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT COUNT( * ) + - 12 + COUNT( * ) - - COUNT( DISTINCT 74 ) * + - 83
----
-93

skipif mysql # not compatible
query I rowsort label-6752
SELECT COUNT ( * ) + - 12 + COUNT ( * ) - - COUNT ( DISTINCT 74 ) * + - 83
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ( + + 35 ) - 94 * ( + COALESCE ( - ( SUM( + 67 ) ), + - 68 ) )
----
6333

skipif mysql # not compatible
query I rowsort label-6753
SELECT ( + + 35 ) - 94 * ( + COALESCE ( - ( SUM ( + 67 ) ), + - 68 ) )
----
6333

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

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

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

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

query II rowsort
SELECT ALL 37 AS col1, + 63 AS col0
----
37
63

query I rowsort
SELECT 48 * + - 86 + ( + 14 ) + - ( - 44 )
----
-4070

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT DISTINCT + SUM( DISTINCT 21 ) * - - 16 + - - 15 AS col1
----
351

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT + SUM ( DISTINCT 21 ) * - - 16 + - - 15 AS col1
----
351

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT DISTINCT + 71 DIV + + ( - 70 ) + - 49 col1
----
-50

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT + 71 / + + ( - 70 ) + - 49 col1
----
-50

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

skipif mysql # not compatible
query I rowsort label-6760
SELECT + 7 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 47 * + 85
----
3995

query I rowsort
SELECT + 16 * - 82 * - + 63 * 42 AS col2
----
3471552

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL - COALESCE ( - 27, + MIN( ALL 2 ) + ( - 78 ) ) * - 44 + + 14 + - 25
----
-1199

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - COALESCE ( - 27, + MIN ( ALL 2 ) + ( - 78 ) ) * - 44 + + 14 + - 25
----
-1199

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT DISTINCT NULLIF ( + + COUNT( * ), + 36 * + 42 ) * - - 29 * + + 16 * + 92 * + 57 AS col0
----
2433216

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT NULLIF ( + + COUNT ( * ), + 36 * + 42 ) * - - 29 * + + 16 * + 92 * + 57 AS col0
----
2433216

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT + 14, + COUNT( * ) * - - 9 * 25 + - 89 + + - 86 AS col0
----
14
50

skipif mysql # not compatible
query II rowsort label-6765
SELECT + 14, + COUNT ( * ) * - - 9 * 25 + - 89 + + - 86 AS col0
----
14
50

query I rowsort
SELECT ALL 36 * - - 17 * - ( - - 79 ) AS col2
----
-48348

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6767
SELECT 30 * + 7 + - + CAST( NULL AS SIGNED ) + 66 AS col0, 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-6767
SELECT 30 * + 7 + - + CAST ( NULL AS INTEGER ) + 66 AS col0, 31
----
NULL
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6768
SELECT + 46 + CAST( + - 17 AS SIGNED ), - 39 AS col1
----
29
-39

skipif mysql # not compatible
query II rowsort label-6768
SELECT + 46 + CAST ( + - 17 AS INTEGER ), - 39 AS col1
----
29
-39

query I rowsort
SELECT - - 75 * + ( - - 15 )
----
1125

onlyif mysql # aggregate syntax: 
query II rowsort label-6770
SELECT DISTINCT 49 + COUNT( * ) + + SUM( DISTINCT - 77 ) AS col0, - 57 * + 76 AS col0
----
-27
-4332

skipif mysql # not compatible
query II rowsort label-6770
SELECT DISTINCT 49 + COUNT ( * ) + + SUM ( DISTINCT - 77 ) AS col0, - 57 * + 76 AS col0
----
-27
-4332

query I rowsort
SELECT DISTINCT COALESCE ( + 29, + + 72 - + ( 46 ) )
----
29

query I rowsort
SELECT - 54 + 86
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6773
SELECT ALL COALESCE ( - 97, CAST( NULL AS SIGNED ), 51 ) AS col2, 27 AS col2
----
-97
27

skipif mysql # not compatible
query II rowsort label-6773
SELECT ALL COALESCE ( - 97, CAST ( NULL AS INTEGER ), 51 ) AS col2, 27 AS col2
----
-97
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT - ( + 9 ) DIV - 21 * + - 16
----
0

skipif mysql # not compatible
query I rowsort label-6774
SELECT - ( + 9 ) / - 21 * + - 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT - 48 * MIN( DISTINCT + + 60 ) AS col1
----
-2880

skipif mysql # not compatible
query I rowsort label-6775
SELECT - 48 * MIN ( DISTINCT + + 60 ) AS col1
----
-2880

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6777
SELECT ALL + 79 - - + CAST( - 5 AS SIGNED ) + + - 32
----
42

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + 79 - - + CAST ( - 5 AS INTEGER ) + + - 32
----
42

query I rowsort
SELECT - 12 * + 97 AS col0
----
-1164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6779
SELECT + NULLIF ( + 13, NULLIF ( - CAST( + - ( + CAST( - 91 AS SIGNED ) ) AS DECIMAL ), ( - + COUNT( * ) ) * - 97 ) ) * 70 AS col0
----
910

skipif mysql # not compatible
query I rowsort label-6779
SELECT + NULLIF ( + 13, NULLIF ( - CAST ( + - ( + CAST ( - 91 AS INTEGER ) ) AS REAL ), ( - + COUNT ( * ) ) * - 97 ) ) * 70 AS col0
----
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6780
SELECT ALL COALESCE ( - COUNT( * ), - - COALESCE ( - COUNT( * ), - - 19 - 96 + 75 * - - 68 ), COUNT( * ), - 18 DIV + + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL COALESCE ( - COUNT ( * ), - - COALESCE ( - COUNT ( * ), - - 19 - 96 + 75 * - - 68 ), COUNT ( * ), - 18 / + + 32 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6781
SELECT DISTINCT + 98 - + - ( + ( - COUNT( * ) ) ) AS col2, + 86 AS col0
----
97
86

skipif mysql # not compatible
query II rowsort label-6781
SELECT DISTINCT + 98 - + - ( + ( - COUNT ( * ) ) ) AS col2, + 86 AS col0
----
97
86

query I rowsort
SELECT DISTINCT ( - ( - COALESCE ( - COALESCE ( 33, + - 90 + + 49 + - - 4 ), 1 ) ) )
----
-33

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

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

query I rowsort
SELECT + 48 * 54
----
2592

query I rowsort
SELECT ALL - 41 * + 41
----
-1681

query I rowsort
SELECT - - COALESCE ( - 0, 59 + 10 ) + - 20
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6787
SELECT + CAST( + 25 AS SIGNED ) DIV + 40 - - - 37
----
-37

skipif mysql # not compatible
query I rowsort label-6787
SELECT + CAST ( + 25 AS INTEGER ) / + 40 - - - 37
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6788
SELECT - 63 DIV 4 DIV - 43 + + COUNT( * ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT - 63 / 4 / - 43 + + COUNT ( * ) / 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6789
SELECT - MIN( ALL - - 42 ) * - CASE WHEN NOT + 39 NOT BETWEEN - COALESCE ( - 57, + 44 / + 52 ) + + 28 + - + 47 * + 35 + COUNT( * ) AND NULL THEN NULL WHEN 34 IS NULL THEN - COUNT( * ) * - 2 * + + CAST( NULL AS SIGNED ) * 88 END - + - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT - MIN ( ALL - - 42 ) * - CASE WHEN NOT + 39 NOT BETWEEN - COALESCE ( - 57, + 44 / + 52 ) + + 28 + - + 47 * + 35 + COUNT ( * ) AND NULL THEN NULL WHEN 34 IS NULL THEN - COUNT ( * ) * - 2 * + + CAST ( NULL AS INTEGER ) * 88 END - + - 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT - - 86 * - COUNT( * ) * 25 AS col0
----
-2150

skipif mysql # not compatible
query I rowsort label-6790
SELECT - - 86 * - COUNT ( * ) * 25 AS col0
----
-2150

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6792
SELECT + + 22 + COUNT( * ), - CASE - 97 WHEN 99 THEN 87 * + 70 - - 72 - + 41 * 9 WHEN - NULLIF ( + - CAST( - 59 AS SIGNED ), + 93 ) * 64 THEN 53 + + + 48 + 43 + + 72 * 75 END * + - 1 AS col2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-6792
SELECT + + 22 + COUNT ( * ), - CASE - 97 WHEN 99 THEN 87 * + 70 - - 72 - + 41 * 9 WHEN - NULLIF ( + - CAST ( - 59 AS INTEGER ), + 93 ) * 64 THEN 53 + + + 48 + 43 + + 72 * 75 END * + - 1 AS col2
----
23
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT + 8 / - COUNT ( * ) + 14 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6795
SELECT + + 22 * + 94 + + + 60 + + 92 col2, ( - COUNT( * ) ) + + - 35 AS col2
----
2220
-36

skipif mysql # not compatible
query II rowsort label-6795
SELECT + + 22 * + 94 + + + 60 + + 92 col2, ( - COUNT ( * ) ) + + - 35 AS col2
----
2220
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6796
SELECT ALL 67 DIV + 5 + - COALESCE ( - 32, 17 * 49 - + + 99 * + COUNT( * ) * + + 19 * - COUNT( * ) * - 0 * + 29 + SUM( DISTINCT - - 72 ) )
----
45

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL 67 / + 5 + - COALESCE ( - 32, 17 * 49 - + + 99 * + COUNT ( * ) * + + 19 * - COUNT ( * ) * - 0 * + 29 + SUM ( DISTINCT - - 72 ) )
----
45

query I rowsort
SELECT ALL 71 * 18 + 75 AS col1
----
1353

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL MIN( ALL + + 77 ) * 41 + - COUNT( 80 ) + 56
----
3212

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL MIN ( ALL + + 77 ) * 41 + - COUNT ( 80 ) + 56
----
3212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6799
SELECT + - CAST( + - AVG ( + 75 ) AS SIGNED ) + + 70
----
145

skipif mysql # not compatible
query I rowsort label-6799
SELECT + - CAST ( + - AVG ( + 75 ) AS INTEGER ) + + 70
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT + 7 * 80 + - 16 - - 10 + - + 82 + CASE - CASE 92 WHEN - 87 + + 87 + + ( ( - 70 ) ) THEN - - 15 + 50 - + COUNT( * ) ELSE NULL END WHEN + + 81 * + 54 THEN NULL ELSE + + COUNT( * ) * + - COUNT( * ) - + 3 END * + ( 14 ) * + 73 * - 96 * - COUNT( * ) AS col0
----
-391976

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT + 7 * 80 + - 16 - - 10 + - + 82 + CASE - CASE 92 WHEN - 87 + + 87 + + ( ( - 70 ) ) THEN - - 15 + 50 - + COUNT ( * ) ELSE NULL END WHEN + + 81 * + 54 THEN NULL ELSE + + COUNT ( * ) * + - COUNT ( * ) - + 3 END * + ( 14 ) * + 73 * - 96 * - COUNT ( * ) AS col0
----
-391976

query I rowsort
SELECT DISTINCT + 61 col2
----
61

query I rowsort
SELECT ALL 8 * - - 36
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6803
SELECT ALL 39 * - COUNT( * ) * CAST( - 58 AS SIGNED ) * 68 - - 58 col2
----
153874

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL 39 * - COUNT ( * ) * CAST ( - 58 AS INTEGER ) * 68 - - 58 col2
----
153874

query I rowsort
SELECT DISTINCT 43 * - + 47 * + 39 AS col0
----
-78819

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6806
SELECT - 60, 52 * + COUNT( * ) DIV SUM( 88 ) AS col2
----
-60
0

skipif mysql # not compatible
query II rowsort label-6806
SELECT - 60, 52 * + COUNT ( * ) / SUM ( 88 ) AS col2
----
-60
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT - CAST( + - 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6807
SELECT - CAST ( + - 26 AS INTEGER ) AS col2
----
26

query I rowsort
SELECT - 25 * 3
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT + 36 * - + COUNT( * ) * + - ( + + 53 ) col0
----
1908

skipif mysql # not compatible
query I rowsort label-6809
SELECT + 36 * - + COUNT ( * ) * + - ( + + 53 ) col0
----
1908

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT MAX( - + 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6810
SELECT MAX ( - + 89 ) AS col1
----
-89

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

skipif mysql # not compatible
query I rowsort label-6811
SELECT MAX ( - + ( - ( 57 ) ) )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6812
SELECT - 89 - + COALESCE ( + CAST( NULL AS SIGNED ), - 52 )
----
-37

skipif mysql # not compatible
query I rowsort label-6812
SELECT - 89 - + COALESCE ( + CAST ( NULL AS INTEGER ), - 52 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6813
SELECT ALL CASE 85 WHEN + + MIN( + 16 ) + + - NULLIF ( - + 4, - - 17 + - + 47 + - ( - ( + COALESCE ( + CAST( NULL AS SIGNED ), + 38, - 93, - - 86 + - ( + 52 ) + MIN( DISTINCT + 18 ) + COUNT( * ) ) ) ) + COUNT( * ) ) THEN COUNT( * ) ELSE NULL END * - 42 * - - ( + - 79 ) * - NULLIF ( 74, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL CASE 85 WHEN + + MIN ( + 16 ) + + - NULLIF ( - + 4, - - 17 + - + 47 + - ( - ( + COALESCE ( + CAST ( NULL AS INTEGER ), + 38, - 93, - - 86 + - ( + 52 ) + MIN ( DISTINCT + 18 ) + COUNT ( * ) ) ) ) + COUNT ( * ) ) THEN COUNT ( * ) ELSE NULL END * - 42 * - - ( + - 79 ) * - NULLIF ( 74, + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + 94 * + 78
----
7332

onlyif mysql # aggregate syntax: 
query II rowsort label-6815
SELECT ALL 44 AS col1, - 25 * - + 87 + - 95 * + COUNT( * ) AS col1
----
44
2080

skipif mysql # not compatible
query II rowsort label-6815
SELECT ALL 44 AS col1, - 25 * - + 87 + - 95 * + COUNT ( * ) AS col1
----
44
2080

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT COUNT( + - 92 ) + - + COUNT( * ) * + 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6817
SELECT COUNT ( + - 92 ) + - + COUNT ( * ) * + 74 AS col0
----
-73

query I rowsort
SELECT + 59 - + + 22 - 69
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6819
SELECT ALL CASE + COUNT( * ) WHEN + + 16 * + 19 + - - 70 THEN + 3 END, + 9 * CAST( + - 40 AS SIGNED ) AS col2
----
NULL
-360

skipif mysql # not compatible
query II rowsort label-6819
SELECT ALL CASE + COUNT ( * ) WHEN + + 16 * + 19 + - - 70 THEN + 3 END, + 9 * CAST ( + - 40 AS INTEGER ) AS col2
----
NULL
-360

onlyif mysql # DIV for integer division: 
query II rowsort label-6820
SELECT 17 DIV - + ( 64 ) AS col1, + ( 68 ) * 90 - - + 65
----
0
6185

skipif mysql # not compatible
query II rowsort label-6820
SELECT 17 / - + ( 64 ) AS col1, + ( 68 ) * 90 - - + 65
----
0
6185

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

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

query I rowsort
SELECT DISTINCT + - 15 + 79 AS col1
----
64

query I rowsort
SELECT ALL - CASE 78 WHEN + 38 THEN + 80 + + - 22 END / - 98 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT + 34 DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6824
SELECT + 34 / 74 AS col0
----
0

query I rowsort
SELECT ALL - - COALESCE ( - 7, + + 41 * - 93 )
----
-7

query I rowsort
SELECT ALL + - 40 + + 39 AS col2
----
-1

query I rowsort
SELECT ALL - 94 + - 28 * 98 - ( + - 1 ) AS col2
----
-2837

query I rowsort
SELECT - ( 13 )
----
-13

query I rowsort
SELECT - 84 * 0 + 56 + + 33
----
89

query I rowsort
SELECT ALL 54 + + 43 AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6831
SELECT ALL - + 58, - 14 + - CASE ( - + COUNT( * ) ) WHEN - 3 THEN + NULLIF ( SUM( - ( - - 19 ) ), + 4 ) / - + 87 - - + 47 + + 0 + 62 + - - 73 * - 29 - - 44 * + 78 * - - COUNT( * ) - - ( - - 16 ) WHEN + - 94 THEN - COUNT( * ) END + + 15 * - 5 AS col1
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-6831
SELECT ALL - + 58, - 14 + - CASE ( - + COUNT ( * ) ) WHEN - 3 THEN + NULLIF ( SUM ( - ( - - 19 ) ), + 4 ) / - + 87 - - + 47 + + 0 + 62 + - - 73 * - 29 - - 44 * + 78 * - - COUNT ( * ) - - ( - - 16 ) WHEN + - 94 THEN - COUNT ( * ) END + + 15 * - 5 AS col1
----
-58
NULL

query II rowsort
SELECT + + 58, 38 AS col2
----
58
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6833
SELECT ALL 81 - + 11 * - COUNT( * ), - 68 AS col2
----
92
-68

skipif mysql # not compatible
query II rowsort label-6833
SELECT ALL 81 - + 11 * - COUNT ( * ), - 68 AS col2
----
92
-68

query I rowsort
SELECT ALL + 42 * CASE 81 WHEN - 48 THEN + - 7 END + + 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6835
SELECT COALESCE ( + + 77, + MAX( 58 ) ) - + + NULLIF ( + 9, + 39 * + 99 + + 31 - - + CASE 29 WHEN + 1 THEN NULL ELSE - COUNT( * ) + + CASE 30 WHEN + 51 / + 34 THEN + MAX( + + 99 ) END END * COUNT( * ) ) AS col1, 72 AS col1
----
68
72

skipif mysql # not compatible
query II rowsort label-6835
SELECT COALESCE ( + + 77, + MAX ( 58 ) ) - + + NULLIF ( + 9, + 39 * + 99 + + 31 - - + CASE 29 WHEN + 1 THEN NULL ELSE - COUNT ( * ) + + CASE 30 WHEN + 51 / + 34 THEN + MAX ( + + 99 ) END END * COUNT ( * ) ) AS col1, 72 AS col1
----
68
72

query II rowsort
SELECT 17 * - + 8 AS col2, 93 AS col1
----
-136
93

query II rowsort
SELECT + 55, 52 AS col0
----
55
52

query I rowsort
SELECT 91 + - 12 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT - COUNT( * ) * - 83 - - SUM( 64 ) * - 39
----
-2413

skipif mysql # not compatible
query I rowsort label-6839
SELECT - COUNT ( * ) * - 83 - - SUM ( 64 ) * - 39
----
-2413

query I rowsort
SELECT 1 + + 97
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6841
SELECT 15 * - 27 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT 15 * - 27 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 31 * - + 57
----
-1767

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT 7 * - 87 DIV 62 DIV ( + + 63 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6843
SELECT 7 * - 87 / 62 / ( + + 63 ) AS col1
----
0

query II rowsort
SELECT ALL 22 AS col1, + 29 - + 87
----
22
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6845
SELECT 16 * COUNT( * ) * + 13 + + - ( CAST( + 78 AS SIGNED ) ) * - + 21, + 53 * - 30 + + 53 AS col2
----
1846
-1537

skipif mysql # not compatible
query II rowsort label-6845
SELECT 16 * COUNT ( * ) * + 13 + + - ( CAST ( + 78 AS INTEGER ) ) * - + 21, + 53 * - 30 + + 53 AS col2
----
1846
-1537

query I rowsort
SELECT ( 95 ) + + 94
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT COUNT( * ) + - - MAX( - - 54 ) * 43 * 85 + - 71
----
197300

skipif mysql # not compatible
query I rowsort label-6847
SELECT COUNT ( * ) + - - MAX ( - - 54 ) * 43 * 85 + - 71
----
197300

query II rowsort
SELECT 97, - NULLIF ( + 93, 89 + + 73 ) AS col2
----
97
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6849
SELECT 55 + - - 0 AS col2, - 97 * - 74 * COUNT( * ) + - 88 DIV + 1
----
55
7090

skipif mysql # not compatible
query II rowsort label-6849
SELECT 55 + - - 0 AS col2, - 97 * - 74 * COUNT ( * ) + - 88 / + 1
----
55
7090

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6850
SELECT ALL CAST( NULL AS DECIMAL ) + - 45 + - ( - - 14 ) * - COUNT( - 73 ) + + - 71 + - COUNT( * ) + + + ( + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL CAST ( NULL AS REAL ) + - 45 + - ( - - 14 ) * - COUNT ( - 73 ) + + - 71 + - COUNT ( * ) + + + ( + 58 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT - 90 AS col0, 76 * - SUM( + 81 )
----
-90
-6156

skipif mysql # not compatible
query II rowsort label-6851
SELECT - 90 AS col0, 76 * - SUM ( + 81 )
----
-90
-6156

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT ALL 91 AS col0, COUNT( * ) + + + 15
----
91
16

skipif mysql # not compatible
query II rowsort label-6852
SELECT ALL 91 AS col0, COUNT ( * ) + + + 15
----
91
16

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

query I rowsort
SELECT DISTINCT + 63 + - 87 * - - 88
----
-7593

query I rowsort
SELECT 1 * + 25
----
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6856
SELECT ALL - 59 + - CAST( 5 AS SIGNED ) DIV + - 66
----
-59

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL - 59 + - CAST ( 5 AS INTEGER ) / + - 66
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6857
SELECT ALL - COUNT( * ) AS col0, + 1 + + 88 * - 84 + + 49 + - - COUNT( 45 ) DIV + 86 * - NULLIF ( + 38, - 50 )
----
-1
-7342

skipif mysql # not compatible
query II rowsort label-6857
SELECT ALL - COUNT ( * ) AS col0, + 1 + + 88 * - 84 + + 49 + - - COUNT ( 45 ) / + 86 * - NULLIF ( + 38, - 50 )
----
-1
-7342

query I rowsort
SELECT + 23 * 18
----
414

query II rowsort
SELECT DISTINCT 27 col1, - 13
----
27
-13

query I rowsort
SELECT ALL + - 37 + - - COALESCE ( 8, 17 + 79, - + 77 + - 45, ( + 39 ) ) + 79
----
50

query I rowsort
SELECT + 90 - 75 AS col1
----
15

query I rowsort
SELECT - 59 * - 45
----
2655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6863
SELECT - COALESCE ( + 90, - - 76 ) DIV + 27 + - SUM( + - 26 )
----
23

skipif mysql # not compatible
query I rowsort label-6863
SELECT - COALESCE ( + 90, - - 76 ) / + 27 + - SUM ( + - 26 )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6864
SELECT ALL - - NULLIF ( COUNT( * ), + 34 ) DIV 86, + 50 col2
----
0
50

skipif mysql # not compatible
query II rowsort label-6864
SELECT ALL - - NULLIF ( COUNT ( * ), + 34 ) / 86, + 50 col2
----
0
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + 16 * + 46 - COUNT( * ) + + 86 AS col0
----
821

skipif mysql # not compatible
query I rowsort label-6865
SELECT + 16 * + 46 - COUNT ( * ) + + 86 AS col0
----
821

onlyif mysql # DIV for integer division: 
query II rowsort label-6866
SELECT DISTINCT - 55 DIV + + 69, 51 AS col0
----
0
51

skipif mysql # not compatible
query II rowsort label-6866
SELECT DISTINCT - 55 / + + 69, 51 AS col0
----
0
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6867
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * COUNT( * ), 0 * + ( - 7 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6867
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * COUNT ( * ), 0 * + ( - 7 ) AS col1
----
NULL
0

query I rowsort
SELECT ALL + 33 * 48
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6869
SELECT CAST( + + 50 AS SIGNED ) + 9 DIV 8 - - - 39 - + 96 - - - 92 * COUNT( * ) AS col0
----
-176

skipif mysql # not compatible
query I rowsort label-6869
SELECT CAST ( + + 50 AS INTEGER ) + 9 / 8 - - - 39 - + 96 - - - 92 * COUNT ( * ) AS col0
----
-176

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT DISTINCT - COUNT( * ) * 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT - COUNT ( * ) * 58 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL - CASE - 61 WHEN + 77 THEN + MIN( ALL 62 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - CASE - 61 WHEN + 77 THEN + MIN ( ALL 62 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6873
SELECT 20 * + COALESCE ( - - 81, - 74 - 54 + - - 34 DIV - + 19 * 45 ) + + 65 - + 46 + + - NULLIF ( - 13, + COUNT( * ) ) + 76 DIV - COUNT( * )
----
1576

skipif mysql # not compatible
query I rowsort label-6873
SELECT 20 * + COALESCE ( - - 81, - 74 - 54 + - - 34 / - + 19 * 45 ) + + 65 - + 46 + + - NULLIF ( - 13, + COUNT ( * ) ) + 76 / - COUNT ( * )
----
1576

onlyif mysql # DIV for integer division: 
query I rowsort label-6874
SELECT ALL 77 DIV 8 col2
----
9

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL 77 / 8 col2
----
9

query I rowsort
SELECT DISTINCT - ( - 43 ) + - 15
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6876
SELECT DISTINCT COALESCE ( + 66, - 69 * + 42 * + 38 DIV + CAST( + + 54 AS SIGNED ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT COALESCE ( + 66, - 69 * + 42 * + 38 / + CAST ( + + 54 AS INTEGER ) ) AS col0
----
66

query I rowsort
SELECT + 18 * + - 4
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL COUNT( * ) * 24 * 23
----
552

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL COUNT ( * ) * 24 * 23
----
552

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT - 47 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6879
SELECT - 47 / 78 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT + ( + COUNT( * ) ) + + + 8 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6881
SELECT + ( + COUNT ( * ) ) + + + 8 AS col0
----
9

query I rowsort
SELECT DISTINCT 35 + 24 * 92
----
2243

query I rowsort
SELECT ALL - 49 * + + 81 * - 71 / - NULLIF ( CASE + 42 WHEN + 63 + 94 THEN - + 88 ELSE NULL END, + 97 * 93 + NULLIF ( 33, + 19 + - AVG ( ALL 95 ) ) * + 27 ) * - 61 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 60 * 20 AS col1, 97 * - 66 + + 11
----
-1200
-6391

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + MIN( ALL - + 87 ) * - CASE + 34 WHEN - COUNT( + 0 ) THEN NULL ELSE 34 * 23 + + + 44 END * - - NULLIF ( + 33, 95 * + 79 * + 84 / - 8 ) + - ( 41 ) AS col1
----
2371405

skipif mysql # not compatible
query I rowsort label-6886
SELECT + MIN ( ALL - + 87 ) * - CASE + 34 WHEN - COUNT ( + 0 ) THEN NULL ELSE 34 * 23 + + + 44 END * - - NULLIF ( + 33, 95 * + 79 * + 84 / - 8 ) + - ( 41 ) AS col1
----
2371405

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

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

query I rowsort
SELECT - 57 - 76 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT - CASE 61 WHEN + + 97 * + COALESCE ( - ( + - 94 ), + - 5 ) + + - 13 THEN NULL WHEN + SUM( ALL - 47 ) * - 40 + - + 68 + + 55 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT - CASE 61 WHEN + + 97 * + COALESCE ( - ( + - 94 ), + - 5 ) + + - 13 THEN NULL WHEN + SUM ( ALL - 47 ) * - 40 + - + 68 + + 55 THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT ALL 2 * 77 DIV - 41 + - + COALESCE ( + 2, + 19 + + 58 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL 2 * 77 / - 41 + - + COALESCE ( + 2, + 19 + + 58 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT ALL - 29 * COUNT( * ) - - + MIN( ALL - 74 ) - + 39 * + 63 * + + COUNT( * ) + 7 AS col1
----
-2553

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - 29 * COUNT ( * ) - - + MIN ( ALL - 74 ) - + 39 * + 63 * + + COUNT ( * ) + 7 AS col1
----
-2553

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT + 99 + - 86 - + + 4 DIV - - 65 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6893
SELECT + 99 + - 86 - + + 4 / - - 65 AS col2
----
13

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

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

skipif mysql # not compatible
query I rowsort label-6895
SELECT ( + NULLIF ( + COUNT ( * ), + + ( + + 29 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6896
SELECT + 51, - CAST( NULL AS SIGNED ) + - ( 46 ) + + 65 * 27 col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-6896
SELECT + 51, - CAST ( NULL AS INTEGER ) + - ( 46 ) + + 65 * 27 col2
----
51
NULL

query I rowsort
SELECT - 96 * 83
----
-7968

query I rowsort
SELECT - 2 * + 76 col2
----
-152

query I rowsort
SELECT NULLIF ( - 80, - ( + - 49 ) ) AS col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6900
SELECT 52 DIV 15 - + 95 col2
----
-92

skipif mysql # not compatible
query I rowsort label-6900
SELECT 52 / 15 - + 95 col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL + MIN( DISTINCT 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL + MIN ( DISTINCT 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL - 62 * SUM( DISTINCT 93 ) AS col0
----
-5766

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL - 62 * SUM ( DISTINCT 93 ) AS col0
----
-5766

query II rowsort
SELECT - 42 * - NULLIF ( + 23, + - 8 ) AS col1, 57 - + 73 AS col0
----
966
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL - 14 * - - COUNT( * ) + 45
----
31

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - 14 * - - COUNT ( * ) + 45
----
31

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

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

query II rowsort
SELECT DISTINCT + 87 col1, + 7 AS col2
----
87
7

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

skipif mysql # not compatible
query I rowsort label-6907
SELECT - 30 + + 21 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT + 57 * + 7 - - 98 + + COUNT( * )
----
498

skipif mysql # not compatible
query I rowsort label-6908
SELECT + 57 * + 7 - - 98 + + COUNT ( * )
----
498

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

query I rowsort
SELECT ALL 38 * COALESCE ( - COALESCE ( - - 99, 21 ), + 30 - - 25 ) + + 19 col0
----
-3743

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT - 6 + - CASE - - 90 WHEN + + 38 THEN COUNT( * ) * + + 55 + + 70 END + 29 * - 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT - 6 + - CASE - - 90 WHEN + + 38 THEN COUNT ( * ) * + + 55 + + 70 END + 29 * - 66 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT + 12 - COUNT( * ) * 49
----
-37

skipif mysql # not compatible
query I rowsort label-6912
SELECT + 12 - COUNT ( * ) * 49
----
-37

query I rowsort
SELECT + ( 18 ) - - 73 - 66 + - 21 * + + 85 * + 76 AS col1
----
-135635

onlyif mysql # aggregate syntax: 
query II rowsort label-6914
SELECT ALL + NULLIF ( - 82, ( COALESCE ( + ( 64 ), + 4 * + 2 ) ) ) * - NULLIF ( - 10, 68 ) + + SUM( - 15 ) AS col0, 45
----
-835
45

skipif mysql # not compatible
query II rowsort label-6914
SELECT ALL + NULLIF ( - 82, ( COALESCE ( + ( 64 ), + 4 * + 2 ) ) ) * - NULLIF ( - 10, 68 ) + + SUM ( - 15 ) AS col0, 45
----
-835
45

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

query I rowsort
SELECT DISTINCT + 48 * - 9 * 81 + - 36
----
-35028

query II rowsort
SELECT + 44 AS col0, 10 col1
----
44
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6918
SELECT ALL + + CAST( NULLIF ( MAX( + 83 ), - 75 ) AS SIGNED ) - + + 14
----
69

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL + + CAST ( NULLIF ( MAX ( + 83 ), - 75 ) AS INTEGER ) - + + 14
----
69

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

skipif mysql # not compatible
query I rowsort label-6919
SELECT - CAST ( NULL AS INTEGER ) * - 41 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6920
SELECT + + 87 * 97 * + 49 / + + CASE + + 92 WHEN - - 65 THEN - 21 * - + CAST( - - COUNT( * ) AS SIGNED ) * - - COUNT( * ) + 87 + + 98 WHEN - + SUM( DISTINCT - 38 ) THEN NULL END * - 24 + COUNT( * ) * 68 * - CAST( - 73 AS SIGNED ) - + + CASE - + ( + 40 ) WHEN - 45 THEN + 53 + MAX( - - 94 ) - - 25 END + + - COUNT( ALL 25 ) + ( 97 ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT + + 87 * 97 * + 49 / + + CASE + + 92 WHEN - - 65 THEN - 21 * - + CAST ( - - COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) + 87 + + 98 WHEN - + SUM ( DISTINCT - 38 ) THEN NULL END * - 24 + COUNT ( * ) * 68 * - CAST ( - 73 AS INTEGER ) - + + CASE - + ( + 40 ) WHEN - 45 THEN + 53 + MAX ( - - 94 ) - - 25 END + + - COUNT ( ALL 25 ) + ( 97 ) * - 44
----
NULL

query II rowsort
SELECT ALL - 82 AS col1, 37 AS col1
----
-82
37

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

skipif mysql # not compatible
query I rowsort label-6922
SELECT - COALESCE ( - - COUNT ( * ), + 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT ALL MAX( ALL - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL MAX ( ALL - 14 )
----
-14

query I rowsort
SELECT - + NULLIF ( - 12, - 79 ) + - ( - 6 ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT + COUNT( ALL - NULLIF ( 84, - + NULLIF ( 69, + 12 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6925
SELECT + COUNT ( ALL - NULLIF ( 84, - + NULLIF ( 69, + 12 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6926
SELECT DISTINCT 20 * + COUNT( - - 35 ), + 10 + - - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
20
9

skipif mysql # not compatible
query II rowsort label-6926
SELECT DISTINCT 20 * + COUNT ( - - 35 ), + 10 + - - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
20
9

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT + - ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) * - 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT + 17 + - MIN( DISTINCT + 86 )
----
-69

skipif mysql # not compatible
query I rowsort label-6930
SELECT + 17 + - MIN ( DISTINCT + 86 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6931
SELECT DISTINCT - COUNT( * ) DIV 27 * 24 + + + ( + 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT - COUNT ( * ) / 27 * 24 + + + ( + 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL SUM( + 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL SUM ( + 78 ) AS col0
----
78

query I rowsort
SELECT + + 0 + - ( + 22 ) - - 62 col0
----
40

query II rowsort
SELECT ALL + + 27, 31 AS col0
----
27
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6935
SELECT ( - + 28 ) DIV + 38 + + 68 - COUNT( * ) * + 97 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6935
SELECT ( - + 28 ) / + 38 + + 68 - COUNT ( * ) * + 97 AS col0
----
-29

query I rowsort
SELECT 19 * + - 41 * + - 21 + - + 54 + - + 63 - - 36 * - 37 + - 36 AS col1
----
14874

query I rowsort
SELECT 17 + + ( 18 )
----
35

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6939
SELECT ALL COUNT( + 50 ) + + + ( - - 46 ) AS col2, CASE WHEN NOT NULL NOT IN ( 32, COUNT( ALL - 36 ) ) THEN NULL ELSE + 4 END AS col1
----
47
4

skipif mysql # not compatible
query II rowsort label-6939
SELECT ALL COUNT ( + 50 ) + + + ( - - 46 ) AS col2, CASE WHEN NOT NULL NOT IN ( 32, COUNT ( ALL - 36 ) ) THEN NULL ELSE + 4 END AS col1
----
47
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL - 93 + + COUNT( * ) - ( + 71 ) AS col2
----
-163

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - 93 + + COUNT ( * ) - ( + 71 ) AS col2
----
-163

query II rowsort
SELECT 57 * + 1 * 62 + - 15 AS col1, + 82
----
3519
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL 72 + + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL 72 + + COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL COALESCE ( + 24, - + 30 * + 33 + + 0 + + 80, + + 34 + 59 ) * + + 23 * + COUNT( * ) AS col1
----
552

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL COALESCE ( + 24, - + 30 * + 33 + + 0 + + 80, + + 34 + 59 ) * + + 23 * + COUNT ( * ) AS col1
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT 45 + + 76 * - + 17 * 72 - - CASE - + 68 WHEN 92 * + 0 + + 48 THEN + - 74 * - + 43 * - + 64 ELSE NULL END + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT 45 + + 76 * - + 17 * 72 - - CASE - + 68 WHEN 92 * + 0 + + 48 THEN + - 74 * - + 43 * - + 64 ELSE NULL END + - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6945
SELECT COALESCE ( + + 40, + - COALESCE ( - 63, + CAST( 15 AS SIGNED ) - + NULLIF ( - 53, + 17 ) + COUNT( * ) + - 11 * - 96 * - 39 * + + 48 ) ) * 17 * + 53 * + 89 col0
----
3207560

skipif mysql # not compatible
query I rowsort label-6945
SELECT COALESCE ( + + 40, + - COALESCE ( - 63, + CAST ( 15 AS INTEGER ) - + NULLIF ( - 53, + 17 ) + COUNT ( * ) + - 11 * - 96 * - 39 * + + 48 ) ) * 17 * + 53 * + 89 col0
----
3207560

query I rowsort
SELECT 61 + - 33 + - + 64
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT ( - 47 ) DIV 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6947
SELECT ( - 47 ) / 56 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6948
SELECT + 91 * - + 34 * COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT + 91 * - + 34 * COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL + 21 + CAST ( 33 AS INTEGER )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT CAST( 17 AS SIGNED ) * - + 71 + - - 1 + + + 54 * 59 AS col0
----
1980

skipif mysql # not compatible
query I rowsort label-6950
SELECT CAST ( 17 AS INTEGER ) * - + 71 + - - 1 + + + 54 * 59 AS col0
----
1980

query I rowsort
SELECT ALL - 58 + + 35 + 98
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT DISTINCT + 4 DIV + + ( 75 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT + 4 / + + ( 75 ) AS col0
----
0

query I rowsort
SELECT ALL + 86 * - + 80 * - 39
----
268320

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

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

query I rowsort
SELECT ALL - 59 - 16 * 50
----
-859

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT DISTINCT + 4 DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT + 4 / 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT DISTINCT - 80 * - MIN( - 32 ) - + - 58
----
-2502

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT - 80 * - MIN ( - 32 ) - + - 58
----
-2502

query I rowsort
SELECT + 29 - - 76
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT + 12 * + COUNT( * ) * - NULLIF ( + 3, - ( - 39 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-6959
SELECT + 12 * + COUNT ( * ) * - NULLIF ( + 3, - ( - 39 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT MAX( ALL 55 ) * - 29 + 21 * - COUNT( * ) * + 10
----
-1805

skipif mysql # not compatible
query I rowsort label-6960
SELECT MAX ( ALL 55 ) * - 29 + 21 * - COUNT ( * ) * + 10
----
-1805

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT - 35 + + SUM( 33 )
----
-2

skipif mysql # not compatible
query I rowsort label-6961
SELECT - 35 + + SUM ( 33 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT ALL - CASE + 7 WHEN COUNT( * ) - + - 3 THEN + 24 / ( + 92 ) WHEN + 87 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - CASE + 7 WHEN COUNT ( * ) - + - 3 THEN + 24 / ( + 92 ) WHEN + 87 THEN NULL END AS col0
----
NULL

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

query II rowsort
SELECT ALL COALESCE ( + - ( - - 95 ), + 99 ) AS col2, - 93 AS col0
----
-95
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-6965
SELECT COUNT( * ) + + ( + COUNT( + 53 ) ) * COUNT( * ) * 25 + - 63 + - - COUNT( * ) + 45 * + 23 AS col0, 41
----
999
41

skipif mysql # not compatible
query II rowsort label-6965
SELECT COUNT ( * ) + + ( + COUNT ( + 53 ) ) * COUNT ( * ) * 25 + - 63 + - - COUNT ( * ) + 45 * + 23 AS col0, 41
----
999
41

query I rowsort
SELECT 35 * + - 61 AS col2
----
-2135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6967
SELECT - CAST( - CAST( - 26 AS SIGNED ) AS SIGNED ) + + 7 AS col2, ( + 66 ) col1
----
-19
66

skipif mysql # not compatible
query II rowsort label-6967
SELECT - CAST ( - CAST ( - 26 AS INTEGER ) AS INTEGER ) + + 7 AS col2, ( + 66 ) col1
----
-19
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT DISTINCT 20 * COUNT( 55 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT 20 * COUNT ( 55 ) AS col1
----
20

query I rowsort
SELECT ALL ( 78 ) * - - 18 AS col2
----
1404

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6971
SELECT COALESCE ( - + 12, NULLIF ( - + 80, + 89 * 29 * - - CAST( NULL AS SIGNED ) ) + - 37 - - - 53, 22 ) * 5 DIV - SUM( + 12 ) AS col1, MIN( ALL + 27 ) + + 6 * + + CAST( NULL AS SIGNED ) AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-6971
SELECT COALESCE ( - + 12, NULLIF ( - + 80, + 89 * 29 * - - CAST ( NULL AS INTEGER ) ) + - 37 - - - 53, 22 ) * 5 / - SUM ( + 12 ) AS col1, MIN ( ALL + 27 ) + + 6 * + + CAST ( NULL AS INTEGER ) AS col1
----
5
NULL

query I rowsort
SELECT ALL 61 + + 6
----
67

query I rowsort
SELECT ALL - 34 * + 30 AS col0
----
-1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT 89 / - + 60 - - + 44 + + 27 * + + 58 / + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT 89 / - + 60 - - + 44 + + 27 * + + 58 / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + 61 AS col2, 54 + 73
----
61
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL COALESCE ( - - COUNT( DISTINCT 11 ), - - 39 ) + + - 69 * - 19
----
1312

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL COALESCE ( - - COUNT ( DISTINCT 11 ), - - 39 ) + + - 69 * - 19
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT COUNT( * ) + + 36 - + 60
----
-23

skipif mysql # not compatible
query I rowsort label-6977
SELECT COUNT ( * ) + + 36 - + 60
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT + 49 * 68 * + 12 - - 31 / CAST( NULL AS SIGNED ) * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT + 49 * 68 * + 12 - - 31 / CAST ( NULL AS INTEGER ) * 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6979
SELECT DISTINCT 12 * - COUNT( * ) DIV + - 68 col2, + 88 * 25
----
0
2200

skipif mysql # not compatible
query II rowsort label-6979
SELECT DISTINCT 12 * - COUNT ( * ) / + - 68 col2, + 88 * 25
----
0
2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6980
SELECT DISTINCT CAST( NULL AS SIGNED ) - 57 * - ( + 76 ) + + - CASE - 38 WHEN + 3 + 48 THEN + - 51 WHEN - 91 THEN NULL END AS col2, + MAX( ALL - 41 ) - + - COUNT( * ), 74 + - 82 * + 32 AS col2
----
NULL
-40
-2550

skipif mysql # not compatible
query III rowsort label-6980
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 57 * - ( + 76 ) + + - CASE - 38 WHEN + 3 + 48 THEN + - 51 WHEN - 91 THEN NULL END AS col2, + MAX ( ALL - 41 ) - + - COUNT ( * ), 74 + - 82 * + 32 AS col2
----
NULL
-40
-2550

query I rowsort
SELECT ALL + 99 * + 56 * 29 * + + 11
----
1768536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6982
SELECT CAST( - - 49 AS SIGNED ) + - - ( ( - 40 ) ), + COUNT( * ) AS col2
----
9
1

skipif mysql # not compatible
query II rowsort label-6982
SELECT CAST ( - - 49 AS INTEGER ) + - - ( ( - 40 ) ), + COUNT ( * ) AS col2
----
9
1

query I rowsort
SELECT ALL 59 - 97
----
-38

query I rowsort
SELECT DISTINCT 76 * 7
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT 27 * + - 58 * + COUNT( * ) + 31 AS col0
----
-1535

skipif mysql # not compatible
query I rowsort label-6985
SELECT 27 * + - 58 * + COUNT ( * ) + 31 AS col0
----
-1535

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT + COUNT( * ) + + ( + + ( - 12 ) ) * + 61 AS col2
----
-731

skipif mysql # not compatible
query I rowsort label-6987
SELECT + COUNT ( * ) + + ( + + ( - 12 ) ) * + 61 AS col2
----
-731

query I rowsort
SELECT 24 + - + 76 AS col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT - 10 - - + 44 DIV 90 * + 3 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 10 - - + 44 / 90 * + 3 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6990
SELECT ALL 23 * 32 * - CAST( + 35 AS SIGNED ) * - + CASE - 21 WHEN - - CAST( NULL AS DECIMAL ) * - NULLIF ( + 1, - CAST( + 21 AS DECIMAL ) ) + + 20 THEN 44 ELSE - + 99 END + COUNT( * )
----
-2550239

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL 23 * 32 * - CAST ( + 35 AS INTEGER ) * - + CASE - 21 WHEN - - CAST ( NULL AS REAL ) * - NULLIF ( + 1, - CAST ( + 21 AS REAL ) ) + + 20 THEN 44 ELSE - + 99 END + COUNT ( * )
----
-2550239

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT ALL - 99 DIV - 46 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL - 99 / - 46 AS col2
----
2

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

skipif mysql # not compatible
query I rowsort label-6993
SELECT + 76 + - - COUNT ( * ) - + 30 * 21 AS col1
----
-553

query I rowsort
SELECT ALL - + 15 * - 94
----
1410

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

skipif mysql # not compatible
query I rowsort label-6995
SELECT + 99 / - COUNT ( * ) + + COUNT ( * )
----
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6996
SELECT - ( - COALESCE ( CAST( NULL AS SIGNED ), 58, - 6 DIV - 70 ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6996
SELECT - ( - COALESCE ( CAST ( NULL AS INTEGER ), 58, - 6 / - 70 ) ) AS col0
----
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6998
SELECT - 65 + + COUNT( * ) DIV SUM( ALL - - 2 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6998
SELECT - 65 + + COUNT ( * ) / SUM ( ALL - - 2 ) AS col2
----
-65

query I rowsort
SELECT DISTINCT - + 73 + - 32 AS col0
----
-105

query I rowsort
SELECT ALL + - 11 * + 67
----
-737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT DISTINCT - - 48 + - + CAST( - + MIN( ALL - 26 ) AS SIGNED ) - - COUNT( 95 ) * - + 95 col0
----
-73

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT - - 48 + - + CAST ( - + MIN ( ALL - 26 ) AS INTEGER ) - - COUNT ( 95 ) * - + 95 col0
----
-73

query I rowsort
SELECT ALL 53 + - 65 AS col2
----
-12

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

query I rowsort
SELECT DISTINCT - + 81 + 97
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL + + COUNT( * ) * - + 32 col2
----
-32

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + + COUNT ( * ) * - + 32 col2
----
-32

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

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

query I rowsort
SELECT - 55 + - 34 + + 29
----
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7008
SELECT ALL COALESCE ( 39, + CAST( 55 AS SIGNED ) DIV + + 5 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL COALESCE ( 39, + CAST ( 55 AS INTEGER ) / + + 5 ) AS col1
----
39

query II rowsort
SELECT + 37 + + - 13 + ( 18 ) AS col1, - 19
----
42
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT DISTINCT - COUNT( * ) / + 22 / - AVG ( + 80 ) / - CAST( NULL AS SIGNED ) + - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT - COUNT ( * ) / + 22 / - AVG ( + 80 ) / - CAST ( NULL AS INTEGER ) + - 62 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7011
SELECT + 45 * ( 36 ) + + + ( + CAST( + + ( + 79 ) AS SIGNED ) ) * 53 AS col2
----
5807

skipif mysql # not compatible
query I rowsort label-7011
SELECT + 45 * ( 36 ) + + + ( + CAST ( + + ( + 79 ) AS INTEGER ) ) * 53 AS col2
----
5807

query I rowsort
SELECT ALL 58 * + 69 + 99 AS col0
----
4101

query I rowsort
SELECT ALL - 3 * 37 AS col2
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7014
SELECT ALL - CAST( NULL AS SIGNED ) / + 78 * + + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL - CAST ( NULL AS INTEGER ) / + 78 * + + 27 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 72 * 72 - 24 - 88 + - - 36 AS col2
----
-5260

query II rowsort
SELECT ALL + 25 AS col0, 69 * - + 89 + - 92 AS col1
----
25
-6233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT + CAST( NULLIF ( - 86, - 30 ) AS SIGNED ) * + + 66 * + - COUNT( * ) * - + 70 + - - 60
----
-397260

skipif mysql # not compatible
query I rowsort label-7017
SELECT + CAST ( NULLIF ( - 86, - 30 ) AS INTEGER ) * + + 66 * + - COUNT ( * ) * - + 70 + - - 60
----
-397260

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

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

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

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

query I rowsort
SELECT ALL + 31 * 86 AS col2
----
2666

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

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

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

skipif mysql # not compatible
query I rowsort label-7022
SELECT + COUNT ( * ) + - 0 * 15 * - 68 AS col2
----
1

query I rowsort
SELECT COALESCE ( - + 36, - 61 ) AS col1
----
-36

query II rowsort
SELECT ALL + + ( - + 72 ), 69 * 62 col2
----
-72
4278

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7025
SELECT + + 14 * 67 * + ( CAST( NULL AS DECIMAL ) ) AS col0, - SUM( DISTINCT - - 12 ) AS col2
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-7025
SELECT + + 14 * 67 * + ( CAST ( NULL AS REAL ) ) AS col0, - SUM ( DISTINCT - - 12 ) AS col2
----
NULL
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT ALL + + 8 AS col1, - COUNT( + 30 ) AS col1
----
8
-1

skipif mysql # not compatible
query II rowsort label-7026
SELECT ALL + + 8 AS col1, - COUNT ( + 30 ) AS col1
----
8
-1

query II rowsort
SELECT DISTINCT + 98, 99 * + 34 AS col1
----
98
3366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT ALL + ( 32 ) * - CAST( - 47 AS SIGNED )
----
1504

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + ( 32 ) * - CAST ( - 47 AS INTEGER )
----
1504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7029
SELECT + - ( COALESCE ( ( 95 ), - - SUM( DISTINCT + 96 ) ) ), CAST( COUNT( * ) AS SIGNED ) * - + 7 AS col2
----
-95
-7

skipif mysql # not compatible
query II rowsort label-7029
SELECT + - ( COALESCE ( ( 95 ), - - SUM ( DISTINCT + 96 ) ) ), CAST ( COUNT ( * ) AS INTEGER ) * - + 7 AS col2
----
-95
-7

query II rowsort
SELECT ALL + + ( 43 ), 94 AS col2
----
43
94

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

query I rowsort
SELECT DISTINCT + 26 * + 85 * - 2 * ( 7 )
----
-30940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT DISTINCT COUNT( * ) * - 60 * + 65 / CAST( NULL AS SIGNED ) + + - COUNT( - 91 ) + 3 - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT COUNT ( * ) * - 60 * + 65 / CAST ( NULL AS INTEGER ) + + - COUNT ( - 91 ) + 3 - 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT + 41 - MIN( + + 83 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7034
SELECT + 41 - MIN ( + + 83 ) AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7035
SELECT 36 AS col0, MAX( + ( - 42 ) ) DIV + NULLIF ( 73, - 42 + + 7 - - 54 DIV + - 76 ) + + + 51
----
36
51

skipif mysql # not compatible
query II rowsort label-7035
SELECT 36 AS col0, MAX ( + ( - 42 ) ) / + NULLIF ( 73, - 42 + + 7 - - 54 / + - 76 ) + + + 51
----
36
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7036
SELECT ALL CASE 34 WHEN - CAST( NULL AS DECIMAL ) * - 95 + - 26 THEN 66 ELSE + 11 + MAX( ALL - 28 ) END, 26 * + 50 AS col0
----
-17
1300

skipif mysql # not compatible
query II rowsort label-7036
SELECT ALL CASE 34 WHEN - CAST ( NULL AS REAL ) * - 95 + - 26 THEN 66 ELSE + 11 + MAX ( ALL - 28 ) END, 26 * + 50 AS col0
----
-17
1300

onlyif mysql # aggregate syntax: 
query II rowsort label-7037
SELECT + 54 + - 5 * ( - 22 ), COUNT( * ) AS col2
----
164
1

skipif mysql # not compatible
query II rowsort label-7037
SELECT + 54 + - 5 * ( - 22 ), COUNT ( * ) AS col2
----
164
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7038
SELECT ALL - 75 AS col0, 50 DIV - SUM( DISTINCT + - 27 ) AS col2
----
-75
1

skipif mysql # not compatible
query II rowsort label-7038
SELECT ALL - 75 AS col0, 50 / - SUM ( DISTINCT + - 27 ) AS col2
----
-75
1

query I rowsort
SELECT DISTINCT + 26 + + NULLIF ( - 91, - 47 / + 2 ) AS col0
----
-65

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

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 62 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT ALL + 52 + + 53 + - 11 + - 46 DIV - 8 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL + 52 + + 53 + - 11 + - 46 / - 8 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ALL - 93 + + + MIN( - 77 ) AS col1
----
-170

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL - 93 + + + MIN ( - 77 ) AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT CASE 74 WHEN - 89 * 7 THEN COUNT( * ) + - 96 + - AVG ( DISTINCT + 35 ) + + 29 * - 16 * + ( + 50 ) * + - 12 + - - COUNT( * ) + + NULLIF ( 6, - 76 * + 21 - 18 ) * - - 6 WHEN + - 34 THEN NULL WHEN + 43 + + + 76 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT CASE 74 WHEN - 89 * 7 THEN COUNT ( * ) + - 96 + - AVG ( DISTINCT + 35 ) + + 29 * - 16 * + ( + 50 ) * + - 12 + - - COUNT ( * ) + + NULLIF ( 6, - 76 * + 21 - 18 ) * - - 6 WHEN + - 34 THEN NULL WHEN + 43 + + + 76 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7044
SELECT ALL COUNT( + - 85 ) AS col1, - 3, + 21 * + 96 AS col2
----
1
-3
2016

skipif mysql # not compatible
query III rowsort label-7044
SELECT ALL COUNT ( + - 85 ) AS col1, - 3, + 21 * + 96 AS col2
----
1
-3
2016

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT ALL COUNT( * ) + - - 20 AS col0, 39
----
21
39

skipif mysql # not compatible
query II rowsort label-7045
SELECT ALL COUNT ( * ) + - - 20 AS col0, 39
----
21
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7046
SELECT + 14 * - - COUNT( * ), + 30 * - ( - COUNT( - 69 ) ) * + + 43 + 49 AS col2
----
14
1339

skipif mysql # not compatible
query II rowsort label-7046
SELECT + 14 * - - COUNT ( * ), + 30 * - ( - COUNT ( - 69 ) ) * + + 43 + 49 AS col2
----
14
1339

query I rowsort
SELECT - 19 * ( 87 )
----
-1653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7048
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 86 + + + 74 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 86 + + + 74 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT + 90 + COALESCE ( 15, + - MIN( ALL ( ( 69 ) ) ), - + 12 + 20, + ( 52 ) DIV - COALESCE ( 11, - 85 * - + SUM( ALL + 95 ) ) ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-7049
SELECT + 90 + COALESCE ( 15, + - MIN ( ALL ( ( 69 ) ) ), - + 12 + 20, + ( 52 ) / - COALESCE ( 11, - 85 * - + SUM ( ALL + 95 ) ) ) AS col2
----
105

query I rowsort
SELECT ALL - 35 * - 71 col2
----
2485

query I rowsort
SELECT ALL CASE - 73 WHEN 69 / - 88 * - + 39 + - 23 + - 58 THEN + 11 * - 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT 48 - - CASE 95 WHEN - COUNT( * ) + + 34 THEN NULL ELSE - - 38 * + COUNT( * ) END + 83 + + COUNT( * ) * 54 - 99 * 11 + + 54
----
-812

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT 48 - - CASE 95 WHEN - COUNT ( * ) + + 34 THEN NULL ELSE - - 38 * + COUNT ( * ) END + 83 + + COUNT ( * ) * 54 - 99 * 11 + + 54
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT DISTINCT COUNT( 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT COUNT ( 69 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT - 17 * - COUNT( - ( - - 82 ) )
----
17

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT - 17 * - COUNT ( - ( - - 82 ) )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT ALL 41 DIV - - 66 - + - 37
----
37

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL 41 / - - 66 - + - 37
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7056
SELECT 63 DIV - 93 + + 64 * - NULLIF ( + 19, + 62 - + 90 * - MAX( ALL + 24 ) ) AS col0
----
-1216

skipif mysql # not compatible
query I rowsort label-7056
SELECT 63 / - 93 + + 64 * - NULLIF ( + 19, + 62 - + 90 * - MAX ( ALL + 24 ) ) AS col0
----
-1216

query I rowsort
SELECT - 47 * ( - + 10 ) AS col0
----
470

onlyif mysql # aggregate syntax: 
query II rowsort label-7058
SELECT + COUNT( 58 ), - 55 AS col0
----
1
-55

skipif mysql # not compatible
query II rowsort label-7058
SELECT + COUNT ( 58 ), - 55 AS col0
----
1
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7059
SELECT - COUNT( * ) DIV COUNT( * ), COUNT( * ) + 14 col2
----
-1
15

skipif mysql # not compatible
query II rowsort label-7059
SELECT - COUNT ( * ) / COUNT ( * ), COUNT ( * ) + 14 col2
----
-1
15

query II rowsort
SELECT DISTINCT - 55 * - 14 AS col2, 73 + 60 AS col1
----
770
133

query II rowsort
SELECT + 3 * 71 - + - 60, + 96 AS col0
----
273
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT - - 10 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT - - 10 / - 64
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7063
SELECT ALL + + 58 DIV + + 20 + + - 74 + - 52 * - NULLIF ( NULLIF ( COUNT( * ), 49 ), - 30 ) + + - 90, 4 - - + 56 AS col1
----
-110
60

skipif mysql # not compatible
query II rowsort label-7063
SELECT ALL + + 58 / + + 20 + + - 74 + - 52 * - NULLIF ( NULLIF ( COUNT ( * ), 49 ), - 30 ) + + - 90, 4 - - + 56 AS col1
----
-110
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - COUNT( * ) + 51 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7064
SELECT - COUNT ( * ) + 51 AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT ALL - - 7 * - + ( + + 7 ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - - 7 * - + ( + + 7 ) / - 83
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT DISTINCT - ( + + COUNT( * ) ) * 48 + - 27 + + 78 + + + 82 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT - ( + + COUNT ( * ) ) * 48 + - 27 + + 78 + + + 82 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7068
SELECT - + 16 * 41 + + 27 + 56 - + 80 AS col1, CAST( NULL AS SIGNED )
----
-653
NULL

skipif mysql # not compatible
query II rowsort label-7068
SELECT - + 16 * 41 + + 27 + 56 - + 80 AS col1, CAST ( NULL AS INTEGER )
----
-653
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ALL - 58 * COUNT( * ) + 91 + 45 * + 33 - + 53 * - 78 - + 95
----
5557

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - 58 * COUNT ( * ) + 91 + 45 * + 33 - + 53 * - 78 - + 95
----
5557

query I rowsort
SELECT + - 1 * - 39 + - 48 + + 53 + 24 * - + 45 * ( + 70 )
----
-75556

query I rowsort
SELECT - - 58 + - 98 + + 1 * - - 16
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT CASE + MAX( DISTINCT + - 47 ) WHEN - 37 - + 76 - - COALESCE ( - 39, - 20 * - 7 + + 73 + - + 98 - 45 + 76 + - COUNT( * ) ) + 1 * - 81 * 28 THEN NULL WHEN - 88 THEN 9 WHEN 32 * + 36 + + - 37 + 73 / - + 35 THEN NULL ELSE + 34 END * + - 59 - + 29
----
-2035

skipif mysql # not compatible
query I rowsort label-7072
SELECT CASE + MAX ( DISTINCT + - 47 ) WHEN - 37 - + 76 - - COALESCE ( - 39, - 20 * - 7 + + 73 + - + 98 - 45 + 76 + - COUNT ( * ) ) + 1 * - 81 * 28 THEN NULL WHEN - 88 THEN 9 WHEN 32 * + 36 + + - 37 + 73 / - + 35 THEN NULL ELSE + 34 END * + - 59 - + 29
----
-2035

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + COUNT( * ) + - COUNT( * ) * + - 21 * + - 47 + + - 20 * + COUNT( * ) * + 51 * - - 60 * - 30 + - 67 * - 16 + - + ( - 99 ) AS col1
----
1836185

skipif mysql # not compatible
query I rowsort label-7073
SELECT + COUNT ( * ) + - COUNT ( * ) * + - 21 * + - 47 + + - 20 * + COUNT ( * ) * + 51 * - - 60 * - 30 + - 67 * - 16 + - + ( - 99 ) AS col1
----
1836185

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7074
SELECT NULLIF ( - - 3, SUM( ALL - CAST( - 52 AS DECIMAL ) ) ) - 19
----
-16

skipif mysql # not compatible
query I rowsort label-7074
SELECT NULLIF ( - - 3, SUM ( ALL - CAST ( - 52 AS REAL ) ) ) - 19
----
-16

query I rowsort
SELECT 2 * - 12 + + 20 + - + 78 * + 2 AS col2
----
-160

query I rowsort
SELECT ALL - 3 + + 24
----
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7078
SELECT ALL + 22 + COUNT( * ) AS col0, - MIN( ALL + - 31 ) - - - 35
----
23
-4

skipif mysql # not compatible
query II rowsort label-7078
SELECT ALL + 22 + COUNT ( * ) AS col0, - MIN ( ALL + - 31 ) - - - 35
----
23
-4

query I rowsort
SELECT ALL 27 * + 41 + + 6 AS col2
----
1113

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT ALL + 20 * - COUNT( * ) * + 64 + + 22
----
-1258

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL + 20 * - COUNT ( * ) * + 64 + + 22
----
-1258

query I rowsort
SELECT ALL 71 - + - 88 * - - 17
----
1567

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT NULLIF ( 10, - 88 - COALESCE ( MIN( ALL - NULLIF ( + - 80, + 71 ) ), + 83 ) ) + - 59 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7082
SELECT NULLIF ( 10, - 88 - COALESCE ( MIN ( ALL - NULLIF ( + - 80, + 71 ) ), + 83 ) ) + - 59 AS col2
----
-49

query I rowsort
SELECT 29 * + + CASE - 3 WHEN + - 2 THEN + 57 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT ALL 54 - - ( + - 6 ) DIV + 94
----
54

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL 54 - - ( + - 6 ) / + 94
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT CASE + + 26 WHEN 5 + + + 17 * 21 THEN + 80 - - NULLIF ( - COUNT( * ), - COUNT( * ) + 73 * - 4 ) ELSE + - 46 + + - 20 END * - 74
----
4884

skipif mysql # not compatible
query I rowsort label-7085
SELECT CASE + + 26 WHEN 5 + + + 17 * 21 THEN + 80 - - NULLIF ( - COUNT ( * ), - COUNT ( * ) + 73 * - 4 ) ELSE + - 46 + + - 20 END * - 74
----
4884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT DISTINCT + SUM( ALL + 47 ) / COUNT( * ) + + CAST( CASE 5 WHEN - + 28 THEN NULL WHEN - SUM( - 19 ) + 97 THEN NULL WHEN + NULLIF ( 85, - 56 - - COUNT( * ) ) - 18 / - 10 THEN 79 ELSE NULL END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT + SUM ( ALL + 47 ) / COUNT ( * ) + + CAST ( CASE 5 WHEN - + 28 THEN NULL WHEN - SUM ( - 19 ) + 97 THEN NULL WHEN + NULLIF ( 85, - 56 - - COUNT ( * ) ) - 18 / - 10 THEN 79 ELSE NULL END AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 40 * - 93 AS col0
----
-3720

query I rowsort
SELECT 80 + + 23 col0
----
103

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7089
SELECT 54 * - 78 * CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7089
SELECT 54 * - 78 * CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7090
SELECT 99 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7090
SELECT 99 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7091
SELECT ALL + COUNT( * ) * + - CAST( NULL AS SIGNED ) / - - NULLIF ( - 23, - AVG ( DISTINCT 36 ) + - CAST( - + COUNT( * ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / - - NULLIF ( - 23, - AVG ( DISTINCT 36 ) + - CAST ( - + COUNT ( * ) AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7092
SELECT - 99 / + + CAST( NULL AS SIGNED ) + 2 col2, + 49 * + 9 AS col1
----
NULL
441

skipif mysql # not compatible
query II rowsort label-7092
SELECT - 99 / + + CAST ( NULL AS INTEGER ) + 2 col2, + 49 * + 9 AS col1
----
NULL
441

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT SUM( + 75 ) * + 64 AS col1
----
4800

skipif mysql # not compatible
query I rowsort label-7093
SELECT SUM ( + 75 ) * + 64 AS col1
----
4800

query I rowsort
SELECT 86 + + 29
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7095
SELECT DISTINCT 93 * - + 72 / CAST( NULL AS SIGNED ) AS col1, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-7095
SELECT DISTINCT 93 * - + 72 / CAST ( NULL AS INTEGER ) AS col1, 84 AS col0
----
NULL
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT DISTINCT - + 68, + 50 - - MIN( DISTINCT - - 66 ) AS col1
----
-68
116

skipif mysql # not compatible
query II rowsort label-7096
SELECT DISTINCT - + 68, + 50 - - MIN ( DISTINCT - - 66 ) AS col1
----
-68
116

query I rowsort
SELECT ALL - - 79 + - + 19 AS col0
----
60

query II rowsort
SELECT + 87, + 59 + + 98 AS col0
----
87
157

query I rowsort
SELECT ALL - 67 + - 25 AS col0
----
-92

query I rowsort
SELECT - NULLIF ( - - ( 29 ), - 16 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT 85, ( + 70 ) + ( - MAX( ALL + + 4 ) ) AS col2
----
85
66

skipif mysql # not compatible
query II rowsort label-7101
SELECT 85, ( + 70 ) + ( - MAX ( ALL + + 4 ) ) AS col2
----
85
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7102
SELECT + 79 + COUNT( * ) + - 65 DIV - 26 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7102
SELECT + 79 + COUNT ( * ) + - 65 / - 26 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT MAX( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-7103
SELECT MAX ( - 57 )
----
-57

query II rowsort
SELECT + - 56, 58 col0
----
-56
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7105
SELECT ALL + 15 DIV + ( + 48 ) AS col0, CAST( + 6 AS SIGNED ) AS col2
----
0
6

skipif mysql # not compatible
query II rowsort label-7105
SELECT ALL + 15 / + ( + 48 ) AS col0, CAST ( + 6 AS INTEGER ) AS col2
----
0
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT + 93 + - 9 + - COUNT( - 1 ) * 33
----
51

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + 93 + - 9 + - COUNT ( - 1 ) * 33
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT + ( + + SUM( + 96 ) ) + + 21 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-7108
SELECT + ( + + SUM ( + 96 ) ) + + 21 AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT 94 DIV + + 14 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7109
SELECT 94 / + + 14 AS col1
----
6

query I rowsort
SELECT ALL + 66 - + 60 + - NULLIF ( + - 34, - + 45 ) - 51 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT COUNT( * ) * + - MIN( - 55 ) * + 45 * - 93 + 31 + 76 AS col2
----
-230068

skipif mysql # not compatible
query I rowsort label-7111
SELECT COUNT ( * ) * + - MIN ( - 55 ) * + 45 * - 93 + 31 + 76 AS col2
----
-230068

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL - + COALESCE ( - 29, NULLIF ( - 27, + + 3 + ( - 77 ) * COALESCE ( - 76, + COUNT( * ) ) + + - 98 ) ) - + 88
----
-59

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - + COALESCE ( - 29, NULLIF ( - 27, + + 3 + ( - 77 ) * COALESCE ( - 76, + COUNT ( * ) ) + + - 98 ) ) - + 88
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7113
SELECT NULLIF ( + 16, + 91 + + COUNT( * ) DIV + CASE + ( + + ( 86 ) ) WHEN + 18 + - - 76 THEN - 6 + + COUNT( * ) - + - ( + 17 ) + - 79 * + 55 * - - AVG ( ALL 55 ) DIV + - 35 * + ( 41 ) DIV 5 + 77 + - 74 - + + COUNT( * ) * - 26 END ) - 3 + + 12 DIV + 34 * COUNT( * ) * - 40
----
13

skipif mysql # not compatible
query I rowsort label-7113
SELECT NULLIF ( + 16, + 91 + + COUNT ( * ) / + CASE + ( + + ( 86 ) ) WHEN + 18 + - - 76 THEN - 6 + + COUNT ( * ) - + - ( + 17 ) + - 79 * + 55 * - - AVG ( ALL 55 ) / + - 35 * + ( 41 ) / 5 + 77 + - 74 - + + COUNT ( * ) * - 26 END ) - 3 + + 12 / + 34 * COUNT ( * ) * - 40
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7114
SELECT ALL COUNT( * ), - 63 + - ( 46 ) + 91 col1
----
1
-18

skipif mysql # not compatible
query II rowsort label-7114
SELECT ALL COUNT ( * ), - 63 + - ( 46 ) + 91 col1
----
1
-18

query II rowsort
SELECT ALL 50 AS col0, 50 AS col1
----
50
50

query I rowsort
SELECT 4 * ( + 48 )
----
192

query I rowsort
SELECT ALL 48 * + 82 AS col1
----
3936

query I rowsort
SELECT CASE 37 WHEN - - 32 THEN - 69 * + 46 + 92 + - 23 - + + 98 * + - 59 * - 41 * - + 51 END * - NULLIF ( + + AVG ( + 74 ), 24 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7119
SELECT ALL 12 * + 41 DIV - COUNT( * )
----
-492

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL 12 * + 41 / - COUNT ( * )
----
-492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7120
SELECT 63 + + + COUNT( * ) * CAST( + 97 AS SIGNED ) + - 65 AS col1, + 26 * + 69 + + 2 + + COUNT( * ) DIV 66
----
95
1796

skipif mysql # not compatible
query II rowsort label-7120
SELECT 63 + + + COUNT ( * ) * CAST ( + 97 AS INTEGER ) + - 65 AS col1, + 26 * + 69 + + 2 + + COUNT ( * ) / 66
----
95
1796

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT DISTINCT 47 + MIN( DISTINCT + - 17 ) + + - 38 * - CASE + 80 WHEN + 93 THEN NULL ELSE 66 END AS col2
----
2538

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT 47 + MIN ( DISTINCT + - 17 ) + + - 38 * - CASE + 80 WHEN + 93 THEN NULL ELSE 66 END AS col2
----
2538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT CAST( NULL AS SIGNED ) - + 2 * 24 / - 31 * - AVG ( 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT CAST ( NULL AS INTEGER ) - + 2 * 24 / - 31 * - AVG ( 94 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7124
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( + + 97, - ( + + CAST( NULL AS SIGNED ) ) ) * MIN( + 59 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( + + 97, - ( + + CAST ( NULL AS INTEGER ) ) ) * MIN ( + 59 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7125
SELECT COUNT( * ) * 98, 36 AS col1
----
98
36

skipif mysql # not compatible
query II rowsort label-7125
SELECT COUNT ( * ) * 98, 36 AS col1
----
98
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7126
SELECT 1 + - + 10 DIV COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7126
SELECT 1 + - + 10 / COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7127
SELECT ALL + + COUNT( DISTINCT ( + 3 ) ) * + COUNT( * ) * 27 + 84 + - + NULLIF ( - CAST( - COUNT( ALL 55 ) AS SIGNED ), + 62 )
----
110

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + + COUNT ( DISTINCT ( + 3 ) ) * + COUNT ( * ) * 27 + 84 + - + NULLIF ( - CAST ( - COUNT ( ALL 55 ) AS INTEGER ), + 62 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + 56 * - + 77 + - SUM( ALL - - 6 ) * ( + - 39 ) + + + 14 + - 69 + 28 AS col2
----
-4105

skipif mysql # not compatible
query I rowsort label-7128
SELECT + 56 * - + 77 + - SUM ( ALL - - 6 ) * ( + - 39 ) + + + 14 + - 69 + 28 AS col2
----
-4105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7129
SELECT + MIN( DISTINCT + CAST( 78 AS SIGNED ) ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-7129
SELECT + MIN ( DISTINCT + CAST ( 78 AS INTEGER ) ) AS col2
----
78

query I rowsort
SELECT - 93 * - 23 + - 32 col1
----
2107

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT + - 15 + - + COUNT( DISTINCT + 97 ) + + 8 + + 31 * - COUNT( * ) * COALESCE ( - + 38, + ( 2 ) + - 81, + + 67, 29 )
----
1170

skipif mysql # not compatible
query I rowsort label-7131
SELECT + - 15 + - + COUNT ( DISTINCT + 97 ) + + 8 + + 31 * - COUNT ( * ) * COALESCE ( - + 38, + ( 2 ) + - 81, + + 67, 29 )
----
1170

query II rowsort
SELECT - 79 * 76 AS col2, + 18 * + 23 AS col1
----
-6004
414

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7134
SELECT + COUNT( * ) + - 7 + - MIN( DISTINCT + CASE - ( - 58 ) WHEN + CAST( - 55 AS SIGNED ) * + 47 THEN 53 WHEN - - 16 / - 20 THEN NULL ELSE NULL END ) * 1 * CAST( + 76 AS SIGNED ) - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT + COUNT ( * ) + - 7 + - MIN ( DISTINCT + CASE - ( - 58 ) WHEN + CAST ( - 55 AS INTEGER ) * + 47 THEN 53 WHEN - - 16 / - 20 THEN NULL ELSE NULL END ) * 1 * CAST ( + 76 AS INTEGER ) - 7 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT - 6 + + - 71 * - CAST( - + 32 AS SIGNED ) + 92 * - 36 * 31 * 46
----
-4725190

skipif mysql # not compatible
query I rowsort label-7135
SELECT - 6 + + - 71 * - CAST ( - + 32 AS INTEGER ) + 92 * - 36 * 31 * 46
----
-4725190

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL + + MAX( - + 28 ) - - ( + 71 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL + + MAX ( - + 28 ) - - ( + 71 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - 46 * COUNT( * ) + + 69
----
23

skipif mysql # not compatible
query I rowsort label-7137
SELECT - 46 * COUNT ( * ) + + 69
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7138
SELECT ALL NULLIF ( + 80, - 91 * - MIN( - + CAST( NULL AS SIGNED ) ) + - 56 + COUNT( * ) + - CAST( NULL AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) + 18 )
----
80

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL NULLIF ( + 80, - 91 * - MIN ( - + CAST ( NULL AS INTEGER ) ) + - 56 + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) + 18 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7139
SELECT ALL NULLIF ( + 54, ( - - 61 ) + - - CAST( NULL AS SIGNED ) )
----
54

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL NULLIF ( + 54, ( - - 61 ) + - - CAST ( NULL AS INTEGER ) )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT - ( + 65 ) + + 53 * - 50 * - 41 * + 52 * 95 - + - CASE WHEN NOT + 34 IS NULL THEN NULL WHEN NOT + 81 IN ( CAST( 52 AS SIGNED ), + 9, 61 + - - ( + + 32 ), 60, + + 72, - COALESCE ( + + SUM( DISTINCT - + 44 ), + COALESCE ( - 23, CASE + 33 WHEN - + NULLIF ( - MIN( ALL - + 25 ), ( + - 69 ) ) THEN + COUNT( * ) - - - COUNT( * ) * - 79 * + 81 WHEN 67 THEN - 3 ELSE 98 END / - COUNT( * ) ) + 64 ) ) THEN + 28 / - 55 ELSE COUNT( - 43 ) END + MAX( DISTINCT + 92 ) * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT - ( + 65 ) + + 53 * - 50 * - 41 * + 52 * 95 - + - CASE WHEN NOT + 34 IS NULL THEN NULL WHEN NOT + 81 IN ( CAST ( 52 AS INTEGER ), + 9, 61 + - - ( + + 32 ), 60, + + 72, - COALESCE ( + + SUM ( DISTINCT - + 44 ), + COALESCE ( - 23, CASE + 33 WHEN - + NULLIF ( - MIN ( ALL - + 25 ), ( + - 69 ) ) THEN + COUNT ( * ) - - - COUNT ( * ) * - 79 * + 81 WHEN 67 THEN - 3 ELSE 98 END / - COUNT ( * ) ) + 64 ) ) THEN + 28 / - 55 ELSE COUNT ( - 43 ) END + MAX ( DISTINCT + 92 ) * + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT - 54 * + 38 * COUNT( ALL - 49 )
----
-2052

skipif mysql # not compatible
query I rowsort label-7141
SELECT - 54 * + 38 * COUNT ( ALL - 49 )
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT - 67 * + 97 * - + COUNT( * ) * + 34 AS col0
----
220966

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT - 67 * + 97 * - + COUNT ( * ) * + 34 AS col0
----
220966

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT DISTINCT CASE + + ( + 98 ) WHEN + - 71 * + SUM( ALL + 3 ) * AVG ( 22 ) * - 36 THEN - MIN( - - 90 ) * + ( + 54 ) + + 17 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT CASE + + ( + 98 ) WHEN + - 71 * + SUM ( ALL + 3 ) * AVG ( 22 ) * - 36 THEN - MIN ( - - 90 ) * + ( + 54 ) + + 17 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT - 18 + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-7144
SELECT - 18 + - COUNT ( * )
----
-19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7146
SELECT ALL - COUNT( * ) DIV 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - COUNT ( * ) / 11 AS col0
----
0

query I rowsort
SELECT ALL - 41 + - 17 col0
----
-58

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

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

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

skipif mysql # not compatible
query I rowsort label-7149
SELECT - COUNT ( - 52 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7150
SELECT - CAST( + 7 AS SIGNED ) + + NULLIF ( - + ( - + 57 ), 78 * - 19 * + + 60 * - 90 ) - + - ( - 22 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7150
SELECT - CAST ( + 7 AS INTEGER ) + + NULLIF ( - + ( - + 57 ), 78 * - 19 * + + 60 * - 90 ) - + - ( - 22 ) AS col2
----
28

query I rowsort
SELECT ALL + 69 + 84 + + + 87
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT + 41 + + COALESCE ( + - 15, - COUNT( * ), 76 + - - 69 + - + 45 ) * - 7 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-7152
SELECT + 41 + + COALESCE ( + - 15, - COUNT ( * ), 76 + - - 69 + - + 45 ) * - 7 AS col0
----
146

query I rowsort
SELECT ALL - 5 + + - 44
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-7154
SELECT ALL + 51 + 30 DIV + 18 AS col0, 37 + + + ( 47 ) * + 16 + 73
----
52
862

skipif mysql # not compatible
query II rowsort label-7154
SELECT ALL + 51 + 30 / + 18 AS col0, 37 + + + ( 47 ) * + 16 + 73
----
52
862

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT DISTINCT ( COALESCE ( + COUNT( * ), + 13 * - MAX( DISTINCT 56 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT ( COALESCE ( + COUNT ( * ), + 13 * - MAX ( DISTINCT 56 ) ) ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT + 34 + + NULLIF ( + 82, - 70 + + COUNT( * ) + - + 84 + - 96 )
----
116

skipif mysql # not compatible
query I rowsort label-7157
SELECT + 34 + + NULLIF ( + 82, - 70 + + COUNT ( * ) + - + 84 + - 96 )
----
116

query I rowsort
SELECT DISTINCT + 93 + - - 84 + 77 + - 92 * - 18 AS col1
----
1910

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7159
SELECT + 52 * - - 49 * + 38 AS col1, + 52 + - + CAST( NULL AS DECIMAL ) AS col1
----
96824
NULL

skipif mysql # not compatible
query II rowsort label-7159
SELECT + 52 * - - 49 * + 38 AS col1, + 52 + - + CAST ( NULL AS REAL ) AS col1
----
96824
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7160
SELECT 65 DIV + 20 + - + 10 + + 19
----
12

skipif mysql # not compatible
query I rowsort label-7160
SELECT 65 / + 20 + - + 10 + + 19
----
12

query II rowsort
SELECT + + 54 * 28 + + 46 - + 12 * 47 AS col2, + 21 * - 4
----
994
-84

query I rowsort
SELECT + - 21 * - + 38 AS col1
----
798

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7164
SELECT ALL + + 56 DIV ( + - 55 ) - + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + + 56 / ( + - 55 ) - + COUNT ( * ) AS col1
----
-2

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

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT - 77 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + + SUM( DISTINCT 55 ) * + 38
----
2090

skipif mysql # not compatible
query I rowsort label-7166
SELECT + + SUM ( DISTINCT 55 ) * + 38
----
2090

onlyif mysql # DIV for integer division: 
query I rowsort label-7167
SELECT + 63 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-7167
SELECT + 63 / 34
----
1

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

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

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

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

query I rowsort
SELECT + COALESCE ( + 49, + + 38 ) * + 32 * - - 30
----
47040

onlyif mysql # aggregate syntax: 
query II rowsort label-7171
SELECT 89 * - SUM( + CASE + 8 WHEN + + 96 * 55 * - 32 THEN NULL WHEN + 86 THEN + - 33 ELSE NULL END ) + + 95, 51 * - 2 * - 33 + - + 10 * + 2 + - 94 AS col1
----
NULL
3252

skipif mysql # not compatible
query II rowsort label-7171
SELECT 89 * - SUM ( + CASE + 8 WHEN + + 96 * 55 * - 32 THEN NULL WHEN + 86 THEN + - 33 ELSE NULL END ) + + 95, 51 * - 2 * - 33 + - + 10 * + 2 + - 94 AS col1
----
NULL
3252

query I rowsort
SELECT ALL - 83 * 96 AS col2
----
-7968

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT + - 78 DIV 49 * + - 8 * + 12 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7173
SELECT + - 78 / 49 * + - 8 * + 12 AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7174
SELECT ALL - MAX( ALL + 17 ) DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL - MAX ( ALL + 17 ) / 57
----
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7177
SELECT ALL 19 * - - 34 AS col2, + CAST( NULL AS DECIMAL ) * 78 + + + COUNT( * ) AS col0
----
646
NULL

skipif mysql # not compatible
query II rowsort label-7177
SELECT ALL 19 * - - 34 AS col2, + CAST ( NULL AS REAL ) * 78 + + + COUNT ( * ) AS col0
----
646
NULL

query I rowsort
SELECT ALL 44 * + 94 + - 26 AS col2
----
4110

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + COUNT( * ) - - 46 col0
----
47

skipif mysql # not compatible
query I rowsort label-7179
SELECT + COUNT ( * ) - - 46 col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT COALESCE ( - COUNT( * ), - 67, - 75 ) AS col1, 48
----
-1
48

skipif mysql # not compatible
query II rowsort label-7180
SELECT COALESCE ( - COUNT ( * ), - 67, - 75 ) AS col1, 48
----
-1
48

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

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

query I rowsort
SELECT + 95 * + 53
----
5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7183
SELECT DISTINCT 93 * - - CASE + 60 WHEN + 1 * + 48 / - - 52 THEN - COALESCE ( - 79, + NULLIF ( SUM( ALL + + 98 ), + + 24 ), CAST( NULL AS SIGNED ) - - - CAST( 45 AS SIGNED ) ) - + - CAST( - 53 AS SIGNED ) WHEN + COALESCE ( - 94, 67 ) THEN - - COALESCE ( - MIN( DISTINCT ( - 71 ) ), 80 * - 24 ) WHEN - 41 + + 82 + - + 28 / - 54 THEN + NULLIF ( - 19, - CASE 92 WHEN - 28 - - 4 THEN - 85 + 48 WHEN + CAST( 42 AS SIGNED ) + + 68 * COUNT( * ) THEN - 72 ELSE NULL END + + 9 / 79 ) END * - 52 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT 93 * - - CASE + 60 WHEN + 1 * + 48 / - - 52 THEN - COALESCE ( - 79, + NULLIF ( SUM ( ALL + + 98 ), + + 24 ), CAST ( NULL AS INTEGER ) - - - CAST ( 45 AS INTEGER ) ) - + - CAST ( - 53 AS INTEGER ) WHEN + COALESCE ( - 94, 67 ) THEN - - COALESCE ( - MIN ( DISTINCT ( - 71 ) ), 80 * - 24 ) WHEN - 41 + + 82 + - + 28 / - 54 THEN + NULLIF ( - 19, - CASE 92 WHEN - 28 - - 4 THEN - 85 + 48 WHEN + CAST ( 42 AS INTEGER ) + + 68 * COUNT ( * ) THEN - 72 ELSE NULL END + + 9 / 79 ) END * - 52 + 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7184
SELECT COUNT( * ) col1, - 49 * + + 92 * + ( + 52 )
----
1
-234416

skipif mysql # not compatible
query II rowsort label-7184
SELECT COUNT ( * ) col1, - 49 * + + 92 * + ( + 52 )
----
1
-234416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT ALL 87 * - - 80 + + CAST( 82 AS SIGNED )
----
7042

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL 87 * - - 80 + + CAST ( 82 AS INTEGER )
----
7042

query I rowsort
SELECT - 65 * - - 85
----
-5525

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL CASE 28 WHEN - 69 THEN COUNT( * ) WHEN + - 23 / - 70 * + COUNT( DISTINCT 95 ) THEN - ( - - 74 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL CASE 28 WHEN - 69 THEN COUNT ( * ) WHEN + - 23 / - 70 * + COUNT ( DISTINCT 95 ) THEN - ( - - 74 ) ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 19 + + 66 - - 88 col1
----
135

query I rowsort
SELECT + 11 * - + 26
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL - 10 * COUNT( * ) * + + 58 col1
----
-580

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL - 10 * COUNT ( * ) * + + 58 col1
----
-580

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT DISTINCT + 38 + + + CAST( NULL AS SIGNED ) + - + 24 * AVG ( 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + 38 + + + CAST ( NULL AS INTEGER ) + - + 24 * AVG ( 74 )
----
NULL

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

query I rowsort
SELECT ALL - 89 - + 94 * - - 91 + - - 96
----
-8547

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT - MAX( DISTINCT + - 3 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - MAX ( DISTINCT + - 3 ) col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7198
SELECT DISTINCT ( + 71 ) AS col2, - 85 - - CAST( NULL AS SIGNED ) * + 77 AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-7198
SELECT DISTINCT ( + 71 ) AS col2, - 85 - - CAST ( NULL AS INTEGER ) * + 77 AS col1
----
71
NULL

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

query II rowsort
SELECT DISTINCT - 74, 90 * - 49 + - 13 - + 75 col0
----
-74
-4498

onlyif mysql # aggregate syntax: 
query II rowsort label-7201
SELECT 33 + + COUNT( * ) * + 91 * + - 38 AS col1, - 21
----
-3425
-21

skipif mysql # not compatible
query II rowsort label-7201
SELECT 33 + + COUNT ( * ) * + 91 * + - 38 AS col1, - 21
----
-3425
-21

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

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

query I rowsort
SELECT ALL - 87 * - + 17
----
1479

query I rowsort
SELECT - 22 * 52 * 35 + + 40 + - - 46
----
-39954

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ( + - 86 ) + + COUNT( * ) AS col0
----
-85

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7207
SELECT DISTINCT - 30 col1, + 27 + + 52 * - - 20 + 62 * - - CASE - 51 WHEN - 30 THEN NULL WHEN - COALESCE ( 4, + - 27 * 25 + + - COUNT( + + 57 ) - + 39, ( - + 3 ), 4 ) THEN NULL ELSE - 59 + - - CAST( NULL AS SIGNED ) END - + 70
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-7207
SELECT DISTINCT - 30 col1, + 27 + + 52 * - - 20 + 62 * - - CASE - 51 WHEN - 30 THEN NULL WHEN - COALESCE ( 4, + - 27 * 25 + + - COUNT ( + + 57 ) - + 39, ( - + 3 ), 4 ) THEN NULL ELSE - 59 + - - CAST ( NULL AS INTEGER ) END - + 70
----
-30
NULL

query I rowsort
SELECT ALL 71 + COALESCE ( 51, 18 ) col0
----
122

query I rowsort
SELECT 48 + ( + + 51 ) col1
----
99

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

query II rowsort
SELECT ALL 37 + + 97 AS col2, - 93
----
134
-93

query I rowsort
SELECT 60 * 53 AS col1
----
3180

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT SUM( DISTINCT 73 ) * - 55 col1
----
-4015

skipif mysql # not compatible
query I rowsort label-7213
SELECT SUM ( DISTINCT 73 ) * - 55 col1
----
-4015

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7214
SELECT 5 DIV CAST( - 22 AS SIGNED ) * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT 5 / CAST ( - 22 AS INTEGER ) * + 0 AS col1
----
0

query I rowsort
SELECT ALL 66 + - 11 + + 83 * 25 * + 4 AS col1
----
8355

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT DISTINCT COUNT( * ) * + NULLIF ( - 97, + + 58 + + 10 - + 36 ) * ( - 4 )
----
388

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT COUNT ( * ) * + NULLIF ( - 97, + + 58 + + 10 - + 36 ) * ( - 4 )
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL 83 + - + COUNT( * ) col2
----
82

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL 83 + - + COUNT ( * ) col2
----
82

query I rowsort
SELECT DISTINCT 95 + 27 * 67
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL - 23 + - + COUNT( DISTINCT + 24 ) + - 49 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL - 23 + - + COUNT ( DISTINCT + 24 ) + - 49 AS col2
----
-73

query I rowsort
SELECT ( + 7 ) + + + 25 AS col0
----
32

query I rowsort
SELECT 89 * + ( - 69 )
----
-6141

onlyif mysql # aggregate syntax: 
query II rowsort label-7222
SELECT 95 + + SUM( ALL + 6 ) AS col2, 59 - + 16 + + - 5 + - ( + ( - 58 ) ) AS col2
----
101
96

skipif mysql # not compatible
query II rowsort label-7222
SELECT 95 + + SUM ( ALL + 6 ) AS col2, 59 - + 16 + + - 5 + - ( + ( - 58 ) ) AS col2
----
101
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7223
SELECT - CASE 75 WHEN COUNT( * ) THEN NULL WHEN - 98 THEN NULL WHEN + - 12 - 20 * CASE - 25 WHEN + 13 - - MIN( ALL - 2 ) THEN - - CAST( NULL AS DECIMAL ) ELSE NULL END + + 26 THEN COALESCE ( + + 53, - 24 * 26 * - - COUNT( * ), - + 78 ) * COUNT( ALL - + 25 ) / + 65 * 96 * - COALESCE ( + NULLIF ( - 52, + 87 ), 99 - + - 4 * + ( 78 ) * 35 + 1 / + 56 * - 72 ) + + ( - 21 ) + COUNT( * ) * - MAX( ALL - 28 + 45 ) + + 62 * 36 WHEN 56 THEN + COUNT( * ) ELSE NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT - CASE 75 WHEN COUNT ( * ) THEN NULL WHEN - 98 THEN NULL WHEN + - 12 - 20 * CASE - 25 WHEN + 13 - - MIN ( ALL - 2 ) THEN - - CAST ( NULL AS REAL ) ELSE NULL END + + 26 THEN COALESCE ( + + 53, - 24 * 26 * - - COUNT ( * ), - + 78 ) * COUNT ( ALL - + 25 ) / + 65 * 96 * - COALESCE ( + NULLIF ( - 52, + 87 ), 99 - + - 4 * + ( 78 ) * 35 + 1 / + 56 * - 72 ) + + ( - 21 ) + COUNT ( * ) * - MAX ( ALL - 28 + 45 ) + + 62 * 36 WHEN 56 THEN + COUNT ( * ) ELSE NULL END * 48
----
NULL

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

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

query I rowsort
SELECT 76 + - ( 86 )
----
-10

query II rowsort
SELECT - 96 + + 64, 78 col1
----
-32
78

query I rowsort
SELECT 68 + - - 46
----
114

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7229
SELECT + 36 DIV + 2 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7229
SELECT + 36 / + 2 AS col0
----
18

query I rowsort
SELECT + ( + 47 ) + - 81
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT ALL 59 * - NULLIF ( - - 66, - MIN( ALL - 12 ) / - ( + 49 ) + 86 + + COUNT( * ) + - 67 ) AS col2
----
-3894

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL 59 * - NULLIF ( - - 66, - MIN ( ALL - 12 ) / - ( + 49 ) + 86 + + COUNT ( * ) + - 67 ) AS col2
----
-3894

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT DISTINCT - MAX( - 22 ) * 88 * - 76 + 20
----
-147116

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT - MAX ( - 22 ) * 88 * - 76 + 20
----
-147116

query I rowsort
SELECT + 52 * + 50 * + - 94 * 61
----
-14908400

query I rowsort
SELECT ALL - 54 + - 54 AS col1
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-7237
SELECT + 41 AS col2, 83 + + COUNT( * ) AS col0
----
41
84

skipif mysql # not compatible
query II rowsort label-7237
SELECT + 41 AS col2, 83 + + COUNT ( * ) AS col0
----
41
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT MIN( ALL + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-7238
SELECT MIN ( ALL + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT - 36 + + 34 + + + 14 + + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - 36 + + 34 + + + 14 + + COUNT ( * ) AS col1
----
13

query I rowsort
SELECT DISTINCT 48 * - 44 AS col0
----
-2112

query I rowsort
SELECT 73 * + - 11
----
-803

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL + 54 + 51 + - - COUNT( - 68 )
----
106

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL + 54 + 51 + - - COUNT ( - 68 )
----
106

query II rowsort
SELECT DISTINCT - 47, - 77 col2
----
-47
-77

query I rowsort
SELECT ALL 42 + 46
----
88

query I rowsort
SELECT 89 - 18 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL COUNT( * ) + + 63
----
64

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL COUNT ( * ) + + 63
----
64

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

query I rowsort
SELECT + 94 * 86
----
8084

query I rowsort
SELECT ALL NULLIF ( 85, + - 8 ) AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT ALL + 92 DIV ( - 91 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL + 92 / ( - 91 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7251
SELECT ALL CAST( - - 18 AS SIGNED ) * - 30 + - NULLIF ( - 48, 18 * 42 + + MIN( - 52 ) / + - 18 + + + 62 * - 81 + - COUNT( * ) ) * - + 92
----
-4956

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL CAST ( - - 18 AS INTEGER ) * - 30 + - NULLIF ( - 48, 18 * 42 + + MIN ( - 52 ) / + - 18 + + + 62 * - 81 + - COUNT ( * ) ) * - + 92
----
-4956

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

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

query I rowsort
SELECT + 33 - - 52 AS col1
----
85

query I rowsort
SELECT + - 48 * 32 AS col1
----
-1536

onlyif mysql # aggregate syntax: 
query II rowsort label-7255
SELECT DISTINCT - COUNT( * ) col2, + COUNT( ALL + 35 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-7255
SELECT DISTINCT - COUNT ( * ) col2, + COUNT ( ALL + 35 )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT + + CASE - - 4 WHEN + - 64 THEN NULL WHEN - - 57 THEN NULL WHEN 15 THEN NULL ELSE + COUNT( * ) END + + 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7256
SELECT + + CASE - - 4 WHEN + - 64 THEN NULL WHEN - - 57 THEN NULL WHEN 15 THEN NULL ELSE + COUNT ( * ) END + + 32 AS col1
----
33

query II rowsort
SELECT ALL + 19, - 32 + + - 0 AS col2
----
19
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7258
SELECT + + CAST( + 44 AS SIGNED ) - + - 13 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7258
SELECT + + CAST ( + 44 AS INTEGER ) - + - 13 AS col0
----
57

query I rowsort
SELECT DISTINCT + 54 * 25 * + + 38
----
51300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7260
SELECT + - MAX( DISTINCT + 30 ) - - + 28 AS col0, COALESCE ( - 27, + COALESCE ( 9, - CAST( - 6 AS SIGNED ) - + 95, - - ( 1 ) * - - 94 + - 58 * - 23 ), COUNT( * ) + + + 84 - - COUNT( DISTINCT - + 42 ) DIV - + 69 + COUNT( * ), 62 * - 7 - - COALESCE ( CASE - 46 WHEN + NULLIF ( - + MIN( ALL 91 ), + 76 ) THEN - 55 WHEN - + 39 - + COUNT( * ) - 89 THEN + ( + 90 ) + - + 26 + + 62 + 87 * - COUNT( * ) WHEN - 46 THEN + 5 ELSE NULL END, + 93, + ( 75 ) ) * - 92 ) AS col0
----
-2
-27

skipif mysql # not compatible
query II rowsort label-7260
SELECT + - MAX ( DISTINCT + 30 ) - - + 28 AS col0, COALESCE ( - 27, + COALESCE ( 9, - CAST ( - 6 AS INTEGER ) - + 95, - - ( 1 ) * - - 94 + - 58 * - 23 ), COUNT ( * ) + + + 84 - - COUNT ( DISTINCT - + 42 ) / - + 69 + COUNT ( * ), 62 * - 7 - - COALESCE ( CASE - 46 WHEN + NULLIF ( - + MIN ( ALL 91 ), + 76 ) THEN - 55 WHEN - + 39 - + COUNT ( * ) - 89 THEN + ( + 90 ) + - + 26 + + 62 + 87 * - COUNT ( * ) WHEN - 46 THEN + 5 ELSE NULL END, + 93, + ( 75 ) ) * - 92 ) AS col0
----
-2
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT ALL - SUM( ALL + + 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL - SUM ( ALL + + 51 ) AS col2
----
-51

query I rowsort
SELECT - + 15 * + 73 + + + COALESCE ( - 28, + 4 ) + + 53
----
-1070

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7264
SELECT - 38 DIV + ( SUM( ALL + 78 ) ) + NULLIF ( + ( - CAST( - 25 AS SIGNED ) ), - 69 ) + 99
----
124

skipif mysql # not compatible
query I rowsort label-7264
SELECT - 38 / + ( SUM ( ALL + 78 ) ) + NULLIF ( + ( - CAST ( - 25 AS INTEGER ) ), - 69 ) + 99
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-7265
SELECT - 76 AS col0, SUM( ALL - 21 ) AS col1
----
-76
-21

skipif mysql # not compatible
query II rowsort label-7265
SELECT - 76 AS col0, SUM ( ALL - 21 ) AS col1
----
-76
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT + + CAST( 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7266
SELECT + + CAST ( 86 AS INTEGER ) AS col2
----
86

query I rowsort
SELECT + 76 + + 41 + - 28 * - 46 * - + 1 AS col2
----
-1171

onlyif mysql # DIV for integer division: 
query I rowsort label-7268
SELECT + 42 DIV + + 57 - - 84 - + 31 - - + 68 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-7268
SELECT + 42 / + + 57 - - 84 - + 31 - - + 68 AS col0
----
121

query I rowsort
SELECT ALL + 44 * - 33
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT - COUNT( + ( - NULLIF ( - 47, - 66 ) ) ) - 23
----
-24

skipif mysql # not compatible
query I rowsort label-7270
SELECT - COUNT ( + ( - NULLIF ( - 47, - 66 ) ) ) - 23
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT + COUNT( * ) DIV ( 80 ) + - - 59 * 66 + 8 + + + 77 * + + ( 25 ) * 45 * - 83 * + + COALESCE ( COUNT( * ), + - 11 ) AS col1
----
-7185973

skipif mysql # not compatible
query I rowsort label-7271
SELECT + COUNT ( * ) / ( 80 ) + - - 59 * 66 + 8 + + + 77 * + + ( 25 ) * 45 * - 83 * + + COALESCE ( COUNT ( * ), + - 11 ) AS col1
----
-7185973

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT ALL - 88 * + 57 * + COUNT( * ) + - 85 col1
----
-5101

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL - 88 * + 57 * + COUNT ( * ) + - 85 col1
----
-5101

query II rowsort
SELECT - 24 + + 66 AS col2, 77 + + 70 col2
----
42
147

query I rowsort
SELECT NULLIF ( 68, - 79 / + + 17 + + 87 ) AS col0
----
68

query I rowsort
SELECT - 74 * 34 * 42 + - 24 * 21 AS col2
----
-106176

query II rowsort
SELECT ALL 87 * + 61 * + 44 - - 90 * - 84 + - 49 + 92 AS col1, - 43 * + - 54 AS col2
----
225991
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT COALESCE ( + 17, + + 27 * - - 67 + - SUM( DISTINCT 76 ) * 99 * + 73 - + - COUNT( * ), 45 * + 52 * + - COUNT( * ) * - + 19 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7278
SELECT COALESCE ( + 17, + + 27 * - - 67 + - SUM ( DISTINCT 76 ) * 99 * + 73 - + - COUNT ( * ), 45 * + 52 * + - COUNT ( * ) * - + 19 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT NULLIF ( - NULLIF ( - 44, 8 ), + - 58 / 4 * + + COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-7279
SELECT NULLIF ( - NULLIF ( - 44, 8 ), + - 58 / 4 * + + COUNT ( * ) )
----
44

query I rowsort
SELECT + 70 + 66 + 98 + - 82
----
152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7281
SELECT ALL + CASE + - 7 WHEN - - 46 THEN NULL WHEN CASE - - 17 WHEN + 47 * - 78 * SUM( - - 85 ) * - 25 + 87 + - 22 * 89 THEN + - CASE + - CAST( NULL AS DECIMAL ) WHEN - - 93 + + COUNT( * ) THEN 20 * - 66 END WHEN 57 THEN NULL ELSE NULL END * + - 6 + 8 * - COUNT( * ) THEN NULL ELSE + ( - ( - + COUNT( * ) ) ) END * 34 * - SUM( ALL - 85 ) AS col2
----
2890

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL + CASE + - 7 WHEN - - 46 THEN NULL WHEN CASE - - 17 WHEN + 47 * - 78 * SUM ( - - 85 ) * - 25 + 87 + - 22 * 89 THEN + - CASE + - CAST ( NULL AS REAL ) WHEN - - 93 + + COUNT ( * ) THEN 20 * - 66 END WHEN 57 THEN NULL ELSE NULL END * + - 6 + 8 * - COUNT ( * ) THEN NULL ELSE + ( - ( - + COUNT ( * ) ) ) END * 34 * - SUM ( ALL - 85 ) AS col2
----
2890

query I rowsort
SELECT - 82 * - - CASE - 6 WHEN + - ( + 30 ) THEN - - 53 ELSE - 91 * - 7 + 30 * - 0 END
----
-52234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT DISTINCT + CAST( + 29 AS SIGNED ) * + 58 col0
----
1682

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT + CAST ( + 29 AS INTEGER ) * + 58 col0
----
1682

query I rowsort
SELECT ALL + 88 * + 58
----
5104

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT NULLIF ( - COUNT( * ), + CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7288
SELECT NULLIF ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7289
SELECT + + 80 - 0 + 15 * CASE - - 1 WHEN + COUNT( * ) THEN MAX( DISTINCT + 67 ) + + 83 WHEN + 37 THEN - 76 ELSE NULL END * - 33 + CAST( + 55 AS SIGNED ) + - COALESCE ( - 75, + + COUNT( * ) ) * 33 + 14 * - ( + 52 )
----
-72368

skipif mysql # not compatible
query I rowsort label-7289
SELECT + + 80 - 0 + 15 * CASE - - 1 WHEN + COUNT ( * ) THEN MAX ( DISTINCT + 67 ) + + 83 WHEN + 37 THEN - 76 ELSE NULL END * - 33 + CAST ( + 55 AS INTEGER ) + - COALESCE ( - 75, + + COUNT ( * ) ) * 33 + 14 * - ( + 52 )
----
-72368

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL 88 * - SUM( DISTINCT + - 17 )
----
1496

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL 88 * - SUM ( DISTINCT + - 17 )
----
1496

onlyif mysql # DIV for integer division: 
query II rowsort label-7291
SELECT + 58 DIV 60 AS col0, 70
----
0
70

skipif mysql # not compatible
query II rowsort label-7291
SELECT + 58 / 60 AS col0, 70
----
0
70

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

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL - 0 + - COUNT ( * ) * SUM ( ALL 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7293
SELECT DISTINCT - - MIN( DISTINCT 44 ) DIV + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT - - MIN ( DISTINCT 44 ) / + 6 AS col1
----
7

query I rowsort
SELECT ALL + 25 + + - 73 * 38
----
-2749

query I rowsort
SELECT + 7 + - 38
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT DISTINCT - NULLIF ( - 70, 10 + + - ( + + 71 ) ) + - 47 * 19 * ( 21 ) DIV - + 42 AS col2
----
516

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT - NULLIF ( - 70, 10 + + - ( + + 71 ) ) + - 47 * 19 * ( 21 ) / - + 42 AS col2
----
516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7297
SELECT + ( CAST( 87 AS SIGNED ) ) + + 69 * + 27 * - - COUNT( * ) * + + 80 AS col2
----
149127

skipif mysql # not compatible
query I rowsort label-7297
SELECT + ( CAST ( 87 AS INTEGER ) ) + + 69 * + 27 * - - COUNT ( * ) * + + 80 AS col2
----
149127

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

skipif mysql # not compatible
query I rowsort label-7298
SELECT + 74 * CAST ( NULL AS INTEGER ) * - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7299
SELECT - - 4 + - CASE - COUNT( * ) WHEN - - 60 + + + 28 THEN - ( + 31 ) WHEN COUNT( * ) + CAST( NULL AS DECIMAL ) - - 23 + + 9 + + 65 * 26 * + AVG ( + - 39 ) * - 40 * 41 + COUNT( DISTINCT - 67 ) * + 35 THEN 99 * + 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT - - 4 + - CASE - COUNT ( * ) WHEN - - 60 + + + 28 THEN - ( + 31 ) WHEN COUNT ( * ) + CAST ( NULL AS REAL ) - - 23 + + 9 + + 65 * 26 * + AVG ( + - 39 ) * - 40 * 41 + COUNT ( DISTINCT - 67 ) * + 35 THEN 99 * + 54 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7300
SELECT ALL COUNT( 61 ) DIV + - 53 + - + 94 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL COUNT ( 61 ) / + - 53 + - + 94 AS col1
----
-94

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

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

query I rowsort
SELECT ALL + 91 * - 27
----
-2457

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

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

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

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

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

query I rowsort
SELECT 79 - 23 + - 6 AS col2
----
50

query I rowsort
SELECT 15 * 83
----
1245

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7308
SELECT + CAST( NULL AS SIGNED ) * - + 90 - - + COALESCE ( + 60, + - 18 ), 55 * 27 col2
----
NULL
1485

skipif mysql # not compatible
query II rowsort label-7308
SELECT + CAST ( NULL AS INTEGER ) * - + 90 - - + COALESCE ( + 60, + - 18 ), 55 * 27 col2
----
NULL
1485

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7309
SELECT + 15, - CAST( NULL AS SIGNED ) AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7309
SELECT + 15, - CAST ( NULL AS INTEGER ) AS col0
----
15
NULL

query I rowsort
SELECT 5 * - 11
----
-55

query I rowsort
SELECT 14 * + 12
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL MAX( DISTINCT 17 ) * - 63 * - 94 AS col2
----
100674

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL MAX ( DISTINCT 17 ) * - 63 * - 94 AS col2
----
100674

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT ALL - 29 DIV - + 32 * + + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL - 29 / - + 32 * + + 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT 24 - - 1 + + 56 * + COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7314
SELECT 24 - - 1 + + 56 * + COUNT ( * ) AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7315
SELECT ALL - NULLIF ( 81, - 38 ) DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL - NULLIF ( 81, - 38 ) / - 84
----
0

query I rowsort
SELECT 30 + - 84 * 5
----
-390

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

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

query I rowsort
SELECT 54 * - 58
----
-3132

query I rowsort
SELECT 13 - - - 89 + + ( - 38 ) col0
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7320
SELECT ALL - 70 + + - ( - 47 ) * - 92 DIV COUNT( * ) - 35 AS col1, - 54
----
-4429
-54

skipif mysql # not compatible
query II rowsort label-7320
SELECT ALL - 70 + + - ( - 47 ) * - 92 / COUNT ( * ) - 35 AS col1, - 54
----
-4429
-54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT - MIN( ALL + 6 ) * + 22
----
-132

skipif mysql # not compatible
query I rowsort label-7322
SELECT - MIN ( ALL + 6 ) * + 22
----
-132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT + COALESCE ( 46, - 99 + + 93, - - COUNT( * ), + + ( + - ( 19 ) ) ) - + 62
----
-16

skipif mysql # not compatible
query I rowsort label-7324
SELECT + COALESCE ( 46, - 99 + + 93, - - COUNT ( * ), + + ( + - ( 19 ) ) ) - + 62
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7325
SELECT 24 AS col0, + ( COUNT( 78 ) )
----
24
1

skipif mysql # not compatible
query II rowsort label-7325
SELECT 24 AS col0, + ( COUNT ( 78 ) )
----
24
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT 2 + - MAX( DISTINCT + 41 ) AS col2, 75 * - - 55 * + COUNT( * )
----
-39
4125

skipif mysql # not compatible
query II rowsort label-7326
SELECT 2 + - MAX ( DISTINCT + 41 ) AS col2, 75 * - - 55 * + COUNT ( * )
----
-39
4125

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT - ( - NULLIF ( - - 79, + NULLIF ( + MIN( + 16 ), - - 62 ) * + + 63 + 5 - - + 87 * + 8 + 28 ) )
----
79

skipif mysql # not compatible
query I rowsort label-7327
SELECT - ( - NULLIF ( - - 79, + NULLIF ( + MIN ( + 16 ), - - 62 ) * + + 63 + 5 - - + 87 * + 8 + 28 ) )
----
79

query I rowsort
SELECT 61 * 59 col1
----
3599

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT ALL + 44 DIV + 9
----
4

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + 44 / + 9
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - + COALESCE ( - ( 46 ), - - COUNT( * ) * + 36 * - 33 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7330
SELECT - + COALESCE ( - ( 46 ), - - COUNT ( * ) * + 36 * - 33 ) AS col1
----
46

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7332
SELECT 71 - + 59 DIV + - 60 * MAX( - - 30 ) + 48 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-7332
SELECT 71 - + 59 / + - 60 * MAX ( - - 30 ) + 48 AS col2
----
119

query I rowsort
SELECT ALL ( - 68 ) * 98 AS col0
----
-6664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7334
SELECT ALL COUNT( * ) - + + 38 - 35 DIV - ( 98 ) * - ( - 10 ) + - 58
----
-95

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL COUNT ( * ) - + + 38 - 35 / - ( 98 ) * - ( - 10 ) + - 58
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT 23 / - + CAST( NULL AS SIGNED ) + + CASE + 98 WHEN + + 42 THEN + + 74 ELSE NULL END + + 80 * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT 23 / - + CAST ( NULL AS INTEGER ) + + CASE + 98 WHEN + + 42 THEN + + 74 ELSE NULL END + + 80 * - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT 89 + + + CASE - - AVG ( DISTINCT 76 ) WHEN - COUNT( * ) THEN - 22 + + 12 * - COUNT( * ) + + COUNT( * ) END * - - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT 89 + + + CASE - - AVG ( DISTINCT 76 ) WHEN - COUNT ( * ) THEN - 22 + + 12 * - COUNT ( * ) + + COUNT ( * ) END * - - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT + ( 4 ) * - 17 + + 10 + - COUNT( * ) + + 5 * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-7337
SELECT + ( 4 ) * - 17 + + 10 + - COUNT ( * ) + + 5 * - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT COALESCE ( - COALESCE ( 8, + - MIN( DISTINCT + - 80 ), 87 ), + NULLIF ( + 15, + 18 ) * MIN( + + 66 ), - + 89 ) - - 44 + 70 * 84 + - + 2 AS col2
----
5914

skipif mysql # not compatible
query I rowsort label-7338
SELECT COALESCE ( - COALESCE ( 8, + - MIN ( DISTINCT + - 80 ), 87 ), + NULLIF ( + 15, + 18 ) * MIN ( + + 66 ), - + 89 ) - - 44 + 70 * 84 + - + 2 AS col2
----
5914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT 33 DIV + + 83 + - - COALESCE ( + NULLIF ( - SUM( - - ( + 35 ) ), + + 80 ), - 34 - + 27, + 92 * - 6 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7339
SELECT 33 / + + 83 + - - COALESCE ( + NULLIF ( - SUM ( - - ( + 35 ) ), + + 80 ), - 34 - + 27, + 92 * - 6 ) AS col1
----
-35

query II rowsort
SELECT ALL - 79 col0, 82 * 0
----
-79
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7341
SELECT ALL - 50 AS col0, + COUNT( * ) * - + 29 DIV + ( + 77 )
----
-50
0

skipif mysql # not compatible
query II rowsort label-7341
SELECT ALL - 50 AS col0, + COUNT ( * ) * - + 29 / + ( + 77 )
----
-50
0

query II rowsort
SELECT ALL - 53, + 42 AS col2
----
-53
42

query I rowsort
SELECT ( - 64 ) + + 44 + - 91
----
-111

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

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

query II rowsort
SELECT ALL - 34 * 49 col1, + 10
----
-1666
10

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

skipif mysql # not compatible
query I rowsort label-7346
SELECT 33 + COUNT ( * ) AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT ALL 17 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL 17 / - 84
----
0

query I rowsort
SELECT 39 * 6
----
234

onlyif mysql # aggregate syntax: 
query II rowsort label-7349
SELECT + 81, - 83 + - COUNT( * ) AS col2
----
81
-84

skipif mysql # not compatible
query II rowsort label-7349
SELECT + 81, - 83 + - COUNT ( * ) AS col2
----
81
-84

query I rowsort
SELECT ALL - AVG ( DISTINCT - CASE - 13 WHEN + - 75 THEN + 67 WHEN + + ( 89 ) / - 20 + 96 THEN NULL END )
----
NULL

query I rowsort
SELECT 23 * + - 59
----
-1357

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7352
SELECT + 13 DIV - 22 * - - CAST( - 97 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7352
SELECT + 13 / - 22 * - - CAST ( - 97 AS INTEGER ) AS col0
----
0

query II rowsort
SELECT + 87 + - 35 AS col1, + 15 AS col1
----
52
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT DISTINCT 91 * 17 + - + COUNT( * ) col1
----
1546

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT 91 * 17 + - + COUNT ( * ) col1
----
1546

query I rowsort
SELECT ALL - + 44 + 42
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7356
SELECT + 76, CASE + 91 WHEN - - 3 * + 26 THEN + 8 WHEN + 9 * + 26 / + 48 * + - 67 * - 3 + 23 + + COALESCE ( - + 28, + CAST( NULL AS SIGNED ) ) + + - 49 THEN + + NULLIF ( + + 68, 12 + - ( + COALESCE ( + 6, ( 36 ) * AVG ( DISTINCT + - 91 ) + 70 + 76 * 82 * - - COUNT( DISTINCT + 10 ) * + COALESCE ( - 50, - - 45, + 92 ) * + + 76 - - + 1 ) ) / + - 6 + + + COUNT( * ) / - - ( - - 66 ) * 5 ) ELSE + SUM( ALL + 72 ) + - MIN( + 57 ) * COUNT( CASE - 90 WHEN 34 + + 48 THEN - 38 * 12 END - - 80 ) END + COUNT( * ) AS col0
----
76
73

skipif mysql # not compatible
query II rowsort label-7356
SELECT + 76, CASE + 91 WHEN - - 3 * + 26 THEN + 8 WHEN + 9 * + 26 / + 48 * + - 67 * - 3 + 23 + + COALESCE ( - + 28, + CAST ( NULL AS INTEGER ) ) + + - 49 THEN + + NULLIF ( + + 68, 12 + - ( + COALESCE ( + 6, ( 36 ) * AVG ( DISTINCT + - 91 ) + 70 + 76 * 82 * - - COUNT ( DISTINCT + 10 ) * + COALESCE ( - 50, - - 45, + 92 ) * + + 76 - - + 1 ) ) / + - 6 + + + COUNT ( * ) / - - ( - - 66 ) * 5 ) ELSE + SUM ( ALL + 72 ) + - MIN ( + 57 ) * COUNT ( CASE - 90 WHEN 34 + + 48 THEN - 38 * 12 END - - 80 ) END + COUNT ( * ) AS col0
----
76
73

query II rowsort
SELECT - 26 AS col1, 5 AS col2
----
-26
5

query I rowsort
SELECT DISTINCT + 97 + - 27 + + 65
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT ALL NULLIF ( 15, + 85 ) DIV 65 + + 79 * 65 + - + 45 AS col2
----
5090

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL NULLIF ( 15, + 85 ) / 65 + + 79 * 65 + - + 45 AS col2
----
5090

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL - COALESCE ( + - 39, + ( + NULLIF ( + + 64, 5 ) ) * + MAX( ALL 14 ) )
----
39

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL - COALESCE ( + - 39, + ( + NULLIF ( + + 64, 5 ) ) * + MAX ( ALL 14 ) )
----
39

query I rowsort
SELECT + ( - 20 ) + + 14
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - 99 - - + MAX( 97 )
----
-2

skipif mysql # not compatible
query I rowsort label-7362
SELECT - 99 - - + MAX ( 97 )
----
-2

query II rowsort
SELECT - + 30, 73 AS col2
----
-30
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - 12 + - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7364
SELECT - 12 + - COUNT ( * ) AS col0
----
-13

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

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

query I rowsort
SELECT DISTINCT - 65 * - 1 + 64 + - - 66 AS col2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT - + 97 * - 52 + COUNT( * )
----
5045

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT - + 97 * - 52 + COUNT ( * )
----
5045

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT 86 + + + COUNT( * ), 37 + 56 AS col0
----
87
93

skipif mysql # not compatible
query II rowsort label-7368
SELECT 86 + + + COUNT ( * ), 37 + 56 AS col0
----
87
93

query I rowsort
SELECT ALL - 21 * + 56 - - 32
----
-1144

query II rowsort
SELECT 70 * 39 col2, 71 AS col2
----
2730
71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7371
SELECT - 1 + 33 + - 97 * + + CAST( NULL AS DECIMAL ) + - + ( - 14 ) * CAST( 73 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT - 1 + 33 + - 97 * + + CAST ( NULL AS REAL ) + - + ( - 14 ) * CAST ( 73 AS INTEGER )
----
NULL

query I rowsort
SELECT + 78 * + 43 AS col2
----
3354

query I rowsort
SELECT + 95 + - - ( + 39 ) AS col0
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT DISTINCT + 47 DIV + 4 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT + 47 / + 4 AS col1
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7375
SELECT - 42 * CAST( NULL AS DECIMAL ) * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT - 42 * CAST ( NULL AS REAL ) * - 26 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT COALESCE ( + - COALESCE ( - CAST( - + NULLIF ( 44, + + CASE - - 84 WHEN - 29 THEN NULL WHEN 52 * + 24 * 7 + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) THEN - 82 - - - 77 * 51 ELSE NULL END * + 62 ) AS SIGNED ), + - COALESCE ( + - 69, + 83 + 55 + 93 ), 16 ), - 3 )
----
-44

skipif mysql # not compatible
query I rowsort label-7376
SELECT COALESCE ( + - COALESCE ( - CAST ( - + NULLIF ( 44, + + CASE - - 84 WHEN - 29 THEN NULL WHEN 52 * + 24 * 7 + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - 82 - - - 77 * 51 ELSE NULL END * + 62 ) AS INTEGER ), + - COALESCE ( + - 69, + 83 + 55 + 93 ), 16 ), - 3 )
----
-44

query I rowsort
SELECT - 18 * 92 AS col1
----
-1656

query I rowsort
SELECT ALL 47 * + - 60
----
-2820

query I rowsort
SELECT + 12 * - - ( + 5 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL + 29 * + - ( - 45 ) * - COUNT( * )
----
-1305

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL + 29 * + - ( - 45 ) * - COUNT ( * )
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT COALESCE ( + COUNT( * ), 52, + - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-7381
SELECT COALESCE ( + COUNT ( * ), 52, + - 17 )
----
1

query I rowsort
SELECT + 88 * - 99 AS col2
----
-8712

query I rowsort
SELECT ALL 11 * - + 90
----
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT ALL + 87 * + CAST( NULL AS SIGNED ) + - + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + 87 * + CAST ( NULL AS INTEGER ) + - + 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT CASE + COUNT( * ) WHEN 54 THEN - 85 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT CASE + COUNT ( * ) WHEN 54 THEN - 85 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 52 * 42
----
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT DISTINCT + CAST( + 71 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + CAST ( + 71 AS INTEGER ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT + MIN( ALL 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT + MIN ( ALL 12 ) AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT DISTINCT + 80 * - + CAST( CAST( - + 81 AS SIGNED ) AS SIGNED ) * 15 + + 94 AS col2
----
97294

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + 80 * - + CAST ( CAST ( - + 81 AS INTEGER ) AS INTEGER ) * 15 + + 94 AS col2
----
97294

query I rowsort
SELECT ALL 12 * 43 + 41 AS col1
----
557

onlyif mysql # DIV for integer division: 
query I rowsort label-7391
SELECT DISTINCT 25 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT 25 / + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + - 88 * 41 + MIN( DISTINCT 18 ) AS col2
----
-3590

skipif mysql # not compatible
query I rowsort label-7392
SELECT + - 88 * 41 + MIN ( DISTINCT 18 ) AS col2
----
-3590

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ALL 43 * - 39 * - + COUNT( ALL - + 35 ) + - 48
----
1629

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL 43 * - 39 * - + COUNT ( ALL - + 35 ) + - 48
----
1629

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT - 96 + + 42 DIV + 28 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7394
SELECT - 96 + + 42 / + 28 AS col0
----
-95

query I rowsort
SELECT - NULLIF ( + 32, + 50 ) AS col0
----
-32

query I rowsort
SELECT DISTINCT - 25 - - + 57 * 87
----
4934

query I rowsort
SELECT + - 86 * 79 * + + 83
----
-563902

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT + COUNT( * ) - - 34 AS col2, 97 AS col0
----
35
97

skipif mysql # not compatible
query II rowsort label-7398
SELECT + COUNT ( * ) - - 34 AS col2, 97 AS col0
----
35
97

query II rowsort
SELECT 86 col0, + 3
----
86
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7400
SELECT + CAST( - + ( - SUM( DISTINCT - 89 ) ) AS SIGNED ) + + 65 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7400
SELECT + CAST ( - + ( - SUM ( DISTINCT - 89 ) ) AS INTEGER ) + + 65 AS col1
----
-24

query II rowsort
SELECT - 92, 74 AS col0
----
-92
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7402
SELECT + CASE - SUM( DISTINCT + 41 ) WHEN + 43 THEN 6 * + 62 - - + 77 - + 96 DIV + - COUNT( ALL - 75 ) + 85 + + COUNT( * ) WHEN - 0 + - CASE + 77 WHEN - 51 + 20 THEN + + COUNT( * ) + - + 69 * + CAST( NULL AS SIGNED ) END THEN + 10 + - - 12 * + + 19 * - COUNT( * ) * + - COUNT( * ) ELSE + ( COUNT( * ) ) DIV + 13 END * - - 35 col1
----
0

skipif mysql # not compatible
query I rowsort label-7402
SELECT + CASE - SUM ( DISTINCT + 41 ) WHEN + 43 THEN 6 * + 62 - - + 77 - + 96 / + - COUNT ( ALL - 75 ) + 85 + + COUNT ( * ) WHEN - 0 + - CASE + 77 WHEN - 51 + 20 THEN + + COUNT ( * ) + - + 69 * + CAST ( NULL AS INTEGER ) END THEN + 10 + - - 12 * + + 19 * - COUNT ( * ) * + - COUNT ( * ) ELSE + ( COUNT ( * ) ) / + 13 END * - - 35 col1
----
0

query I rowsort
SELECT ALL - CASE + 81 WHEN + 73 - COALESCE ( - 38, - 5 + - + 80 + - - 93 * + 94 * + - 75, + 46 ) THEN 31 END * 3
----
NULL

query I rowsort
SELECT ALL 48 + - 89 AS col1
----
-41

query II rowsort
SELECT - 18 * 0 * + 8 AS col1, 44
----
0
44

query I rowsort
SELECT ALL + 33 + - 67 * - NULLIF ( + 65, + + 77 - - 84 ) - - + 52 AS col0
----
4440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7407
SELECT - 36 - + - 85 DIV - - 7 + + 20 * + ( 40 ) AS col2, + 77 * COUNT( * ) AS col2
----
776
77

skipif mysql # not compatible
query II rowsort label-7407
SELECT - 36 - + - 85 / - - 7 + + 20 * + ( 40 ) AS col2, + 77 * COUNT ( * ) AS col2
----
776
77

query I rowsort
SELECT ALL + 61 * + 20
----
1220

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL - 70 + - COALESCE ( + + NULLIF ( - - 70, 7 * + 84 ), + ( - 81 ) * COUNT( * ) )
----
-140

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - 70 + - COALESCE ( + + NULLIF ( - - 70, 7 * + 84 ), + ( - 81 ) * COUNT ( * ) )
----
-140

query II rowsort
SELECT 2 AS col0, 80
----
2
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7411
SELECT - 0 + 63 + + + 42 DIV + CAST( + ( COUNT( * ) ) AS SIGNED )
----
105

skipif mysql # not compatible
query I rowsort label-7411
SELECT - 0 + 63 + + + 42 / + CAST ( + ( COUNT ( * ) ) AS INTEGER )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT + MIN( - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7412
SELECT + MIN ( - - 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL + 43 / - 51 / + ( - - CAST( NULL AS SIGNED ) ) + - 20 - 18 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL + 43 / - 51 / + ( - - CAST ( NULL AS INTEGER ) ) + - 20 - 18 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 76 + - - 37 col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7415
SELECT CAST( NULL AS SIGNED ) AS col2, 24 col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-7415
SELECT CAST ( NULL AS INTEGER ) AS col2, 24 col2
----
NULL
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7416
SELECT - COUNT( * ) * 91 + + COUNT( * ) + 40 DIV - SUM( - + 50 )
----
-90

skipif mysql # not compatible
query I rowsort label-7416
SELECT - COUNT ( * ) * 91 + + COUNT ( * ) + 40 / - SUM ( - + 50 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7417
SELECT ALL ( - ( - 37 ) ) DIV + + 2 * COUNT( * ) + + - 37 col1
----
-19

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL ( - ( - 37 ) ) / + + 2 * COUNT ( * ) + + - 37 col1
----
-19

query II rowsort
SELECT + 80, - 56 AS col1
----
80
-56

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7420
SELECT ALL + ( + - 43 ) DIV + - NULLIF ( 38, - - 72 * + - 67 ) + ( - 45 ) AS col0, 87 AS col1
----
-44
87

skipif mysql # not compatible
query II rowsort label-7420
SELECT ALL + ( + - 43 ) / + - NULLIF ( 38, - - 72 * + - 67 ) + ( - 45 ) AS col0, 87 AS col1
----
-44
87

query I rowsort
SELECT - - 78 + 41 AS col1
----
119

query I rowsort
SELECT ALL + 8 * + - 38
----
-304

query I rowsort
SELECT + + 3 + + 80
----
83

query II rowsort
SELECT + 11, 64 col2
----
11
64

query I rowsort
SELECT ALL - 81 * NULLIF ( + 95, - 47 / - + 82 ) col2
----
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT + 58 * - ( - MAX( ALL 62 ) ) + - 74 + + 8 * - + 49 AS col2
----
3130

skipif mysql # not compatible
query I rowsort label-7426
SELECT + 58 * - ( - MAX ( ALL 62 ) ) + - 74 + + 8 * - + 49 AS col2
----
3130

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT - 2 * - MAX( ALL 29 )
----
58

skipif mysql # not compatible
query I rowsort label-7427
SELECT - 2 * - MAX ( ALL 29 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT + 72 * + COUNT( * ) + + SUM( + - 69 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-7428
SELECT + 72 * + COUNT ( * ) + + SUM ( + - 69 ) col2
----
3

query I rowsort
SELECT - 11 + 78 + + + 19 * - 18 + + 38 + - + 40
----
-277

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL + MIN( DISTINCT - 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + MIN ( DISTINCT - 36 ) AS col2
----
-36

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7432
SELECT + - 76 * - + CAST( NULL AS SIGNED ) - - SUM( + 89 ) * - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT + - 76 * - + CAST ( NULL AS INTEGER ) - - SUM ( + 89 ) * - 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT + - MIN( ALL 33 ) * - + COUNT( * ) + + 47 + + 61 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-7433
SELECT + - MIN ( ALL 33 ) * - + COUNT ( * ) + + 47 + + 61 AS col0
----
141

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ( - + 24 ) * + MAX( + + 33 ) AS col0
----
-792

skipif mysql # not compatible
query I rowsort label-7435
SELECT ( - + 24 ) * + MAX ( + + 33 ) AS col0
----
-792

query I rowsort
SELECT 69 * - - 99 + - 49 + 43 + - + 6 * - 60
----
7185

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

query I rowsort
SELECT - 27 + 59 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7439
SELECT ( 39 ) * 82 - - 81 + - 97 DIV 77 * 43 + - SUM( DISTINCT - - 87 ) AS col0, - 63 - + 63 + + 62 + COUNT( * ) AS col1
----
3149
-63

skipif mysql # not compatible
query II rowsort label-7439
SELECT ( 39 ) * 82 - - 81 + - 97 / 77 * 43 + - SUM ( DISTINCT - - 87 ) AS col0, - 63 - + 63 + + 62 + COUNT ( * ) AS col1
----
3149
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT DISTINCT NULLIF ( COUNT( * ), - + 41 * - - 12 ) + + 58 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT NULLIF ( COUNT ( * ), - + 41 * - - 12 ) + + 58 AS col0
----
59

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

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

query I rowsort
SELECT ALL 42 + + 47
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT 43 DIV - 7 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7443
SELECT 43 / - 7 AS col0
----
-6

query I rowsort
SELECT ALL 94 + + 52 AS col2
----
146

query I rowsort
SELECT 14 * 94 AS col1
----
1316

onlyif mysql # aggregate syntax: 
query II rowsort label-7446
SELECT COALESCE ( - 0, - COUNT( * ) ) * - - MIN( DISTINCT 41 ) AS col1, - ( + 15 ) * - 68 col2
----
0
1020

skipif mysql # not compatible
query II rowsort label-7446
SELECT COALESCE ( - 0, - COUNT ( * ) ) * - - MIN ( DISTINCT 41 ) AS col1, - ( + 15 ) * - 68 col2
----
0
1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7447
SELECT 59 + + 62 * CAST( + 24 AS SIGNED ) * + - 30 * SUM( 65 ), 61 AS col0
----
-2901541
61

skipif mysql # not compatible
query II rowsort label-7447
SELECT 59 + + 62 * CAST ( + 24 AS INTEGER ) * + - 30 * SUM ( 65 ), 61 AS col0
----
-2901541
61

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

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

query I rowsort
SELECT DISTINCT 93 + - ( - + 19 )
----
112

query I rowsort
SELECT DISTINCT + 85 - 14
----
71

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

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

query I rowsort
SELECT - 59 * - 21 AS col2
----
1239

onlyif mysql # aggregate syntax: 
query II rowsort label-7453
SELECT COUNT( * ) * 65, CASE COUNT( * ) WHEN - 81 THEN NULL WHEN - - 82 * + 5 THEN 15 ELSE NULL END AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-7453
SELECT COUNT ( * ) * 65, CASE COUNT ( * ) WHEN - 81 THEN NULL WHEN - - 82 * + 5 THEN 15 ELSE NULL END AS col0
----
65
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7454
SELECT COUNT( * ) * 11 * COUNT( * ) - - - 20, + SUM( - 91 ) DIV 84 AS col2
----
-9
-1

skipif mysql # not compatible
query II rowsort label-7454
SELECT COUNT ( * ) * 11 * COUNT ( * ) - - - 20, + SUM ( - 91 ) / 84 AS col2
----
-9
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7455
SELECT + + MAX( DISTINCT - 77 ) DIV 83 - + + 77 DIV + 18 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7455
SELECT + + MAX ( DISTINCT - 77 ) / 83 - + + 77 / + 18 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT 15 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-7456
SELECT 15 / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT + - 63 * COUNT( * ) * 48 - NULLIF ( - 78, + + 3 ) + - - 81 * - - ( - 56 ) + + + 8 AS col2
----
-7474

skipif mysql # not compatible
query I rowsort label-7457
SELECT + - 63 * COUNT ( * ) * 48 - NULLIF ( - 78, + + 3 ) + - - 81 * - - ( - 56 ) + + + 8 AS col2
----
-7474

query II rowsort
SELECT 55 * + 25 - 21 - - 3 AS col2, ( + 3 ) + + 77
----
1357
80

onlyif mysql # DIV for integer division: 
query II rowsort label-7459
SELECT 94 DIV - 59, - 42 AS col1
----
-1
-42

skipif mysql # not compatible
query II rowsort label-7459
SELECT 94 / - 59, - 42 AS col1
----
-1
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7460
SELECT - 58 DIV 12 + - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7460
SELECT - 58 / 12 + - COUNT ( * ) AS col0
----
-5

query I rowsort
SELECT ALL - 33 * 44
----
-1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7462
SELECT ALL + + 78 * - 30 * 2 * - + CASE + COUNT( * ) WHEN + 34 - COUNT( * ) + - 62 * - + 32 * + MAX( - 62 ) / - 37 + + 51 THEN NULL WHEN - 37 THEN + 29 * - + ( + 7 ) + + 11 + + + CAST( + 8 AS SIGNED ) WHEN - ( - - NULLIF ( + 80, COUNT( * ) ) ) * - 51 THEN + 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + + 78 * - 30 * 2 * - + CASE + COUNT ( * ) WHEN + 34 - COUNT ( * ) + - 62 * - + 32 * + MAX ( - 62 ) / - 37 + + 51 THEN NULL WHEN - 37 THEN + 29 * - + ( + 7 ) + + 11 + + + CAST ( + 8 AS INTEGER ) WHEN - ( - - NULLIF ( + 80, COUNT ( * ) ) ) * - 51 THEN + 76 ELSE NULL END
----
NULL

query I rowsort
SELECT 40 + - 64
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT SUM( DISTINCT - 65 ) * + 85 * - COUNT( * ) - + 15 + - 49
----
5461

skipif mysql # not compatible
query I rowsort label-7464
SELECT SUM ( DISTINCT - 65 ) * + 85 * - COUNT ( * ) - + 15 + - 49
----
5461

query I rowsort
SELECT - + NULLIF ( 49, + 41 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT ALL - + ( + COUNT( DISTINCT + 45 ) ) + COALESCE ( - 84, - 81 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - + ( + COUNT ( DISTINCT + 45 ) ) + COALESCE ( - 84, - 81 ) col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7467
SELECT ALL + + 86 + - 93 + - + CAST( + COUNT( * ) AS SIGNED ) * - 79 - - 17 * + + 56 + - - 91 * + 69
----
7303

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + + 86 + - 93 + - + CAST ( + COUNT ( * ) AS INTEGER ) * - 79 - - 17 * + + 56 + - - 91 * + 69
----
7303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7468
SELECT DISTINCT COUNT( - - CAST( NULL AS SIGNED ) ) + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT COUNT ( - - CAST ( NULL AS INTEGER ) ) + - 19
----
-19

query II rowsort
SELECT ( + 11 ) + - 85 AS col2, - 4
----
-74
-4

query I rowsort
SELECT 4 - + 16
----
-12

query I rowsort
SELECT 14 + - 1 AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT 23 + - COALESCE ( - 28, 58 ) + - - CASE 1 WHEN 10 THEN + + 59 * + + 22 + - CAST( NULL AS SIGNED ) / - 48 END * - - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT 23 + - COALESCE ( - 28, 58 ) + - - CASE 1 WHEN 10 THEN + + 59 * + + 22 + - CAST ( NULL AS INTEGER ) / - 48 END * - - 5 AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7474
SELECT COUNT ( * ) + - 72 AS col0
----
-71

query I rowsort
SELECT DISTINCT 17 + 97
----
114

query I rowsort
SELECT ALL 41 - - - 36
----
5

query I rowsort
SELECT 49 - - ( - 54 ) AS col2
----
-5

query II rowsort
SELECT ALL 28 col0, - 79
----
28
-79

query I rowsort
SELECT 68 + 91
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7480
SELECT 39 DIV COALESCE ( - 17, - + 42 + + 80, - MAX( - 90 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7480
SELECT 39 / COALESCE ( - 17, - + 42 + + 80, - MAX ( - 90 ) ) AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ( COUNT( * ) ) * + 72 * 68 AS col2
----
4896

skipif mysql # not compatible
query I rowsort label-7482
SELECT ( COUNT ( * ) ) * + 72 * 68 AS col2
----
4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7483
SELECT - 31 * - SUM( DISTINCT - 0 ) DIV + + 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7483
SELECT - 31 * - SUM ( DISTINCT - 0 ) / + + 11 AS col0
----
0

query I rowsort
SELECT + 40 - + 14
----
26

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

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

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

query I rowsort
SELECT 37 * - ( 36 )
----
-1332

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

query I rowsort
SELECT DISTINCT - + 72 col2
----
-72

query I rowsort
SELECT - 20 + 36
----
16

query II rowsort
SELECT + 31, + 67 AS col1
----
31
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7492
SELECT - CAST( NULL AS SIGNED ) * - + COUNT( * ) - + 49 * + 69 + - MAX( + + 5 ) + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) - + 49 * + 69 + - MAX ( + + 5 ) + 77 AS col0
----
NULL

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

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

query I rowsort
SELECT - 9 + - 76 - 59 + + + 20 * + 8 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7495
SELECT ALL COUNT( * ) * 45 + 88 + - 59 * + - 16 col0, - CASE + COUNT( * ) WHEN + + 16 THEN COUNT( * ) * - 6 / - 18 WHEN - - COUNT( * ) THEN NULL END AS col2
----
1077
NULL

skipif mysql # not compatible
query II rowsort label-7495
SELECT ALL COUNT ( * ) * 45 + 88 + - 59 * + - 16 col0, - CASE + COUNT ( * ) WHEN + + 16 THEN COUNT ( * ) * - 6 / - 18 WHEN - - COUNT ( * ) THEN NULL END AS col2
----
1077
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL - - 13 + - + 41 * COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - - 13 + - + 41 * COUNT ( * )
----
-28

query II rowsort
SELECT ALL + 63 + - NULLIF ( ( 62 ), + + 95 ) col1, + 13 * - 16
----
1
-208

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT ALL + CASE + 13 WHEN - 68 THEN NULL WHEN + 53 + + 25 + - 49 - - 33 * 25 * - 5 - - CAST( NULL AS SIGNED ) * 22 - - + COUNT( * ) THEN - CAST( NULL AS SIGNED ) - 97 * - COUNT( DISTINCT 84 ) WHEN - + 77 * + 80 THEN + MIN( + 64 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + CASE + 13 WHEN - 68 THEN NULL WHEN + 53 + + 25 + - 49 - - 33 * 25 * - 5 - - CAST ( NULL AS INTEGER ) * 22 - - + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) - 97 * - COUNT ( DISTINCT 84 ) WHEN - + 77 * + 80 THEN + MIN ( + 64 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 95 * + ( - 85 )
----
8075

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) + + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) + + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7504
SELECT - COUNT( * ) AS col2, - 56 + - - 78 AS col2
----
-1
22

skipif mysql # not compatible
query II rowsort label-7504
SELECT - COUNT ( * ) AS col2, - 56 + - - 78 AS col2
----
-1
22

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

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

query II rowsort
SELECT DISTINCT ( + + 34 ) AS col2, 38
----
34
38

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

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT - ( + COUNT ( * ) ) * + 93 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT - COUNT( * ) + + 17 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7508
SELECT - COUNT ( * ) + + 17 AS col0
----
16

query I rowsort
SELECT ALL COALESCE ( NULLIF ( + 31, 34 ), 63 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7510
SELECT + 23 + - 70, + COUNT( * ) AS col0
----
-47
1

skipif mysql # not compatible
query II rowsort label-7510
SELECT + 23 + - 70, + COUNT ( * ) AS col0
----
-47
1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT 31 AS col0, MAX( DISTINCT 24 ) + + 79 col0
----
31
103

skipif mysql # not compatible
query II rowsort label-7513
SELECT 31 AS col0, MAX ( DISTINCT 24 ) + + 79 col0
----
31
103

query I rowsort
SELECT - 70 * 15
----
-1050

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

query I rowsort
SELECT + 93 * - ( - + 92 )
----
8556

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + ( + COUNT( * ) ) + + 41 + + 71 * + - 91 AS col2
----
-6419

skipif mysql # not compatible
query I rowsort label-7517
SELECT + ( + COUNT ( * ) ) + + 41 + + 71 * + - 91 AS col2
----
-6419

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7518
SELECT - 13 col2, CAST( NULL AS SIGNED ) col0
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-7518
SELECT - 13 col2, CAST ( NULL AS INTEGER ) col0
----
-13
NULL

query II rowsort
SELECT ALL + 96 AS col0, 52 * - 82 AS col0
----
96
-4264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7520
SELECT ALL 65 * - 97 - - - 68 DIV + COALESCE ( - 69, - 31 + + + COUNT( * ) )
----
-6305

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL 65 * - 97 - - - 68 / + COALESCE ( - 69, - 31 + + + COUNT ( * ) )
----
-6305

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7522
SELECT ALL + SUM( 12 ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + SUM ( 12 ) / + 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7523
SELECT DISTINCT + COUNT( * ) DIV - 28 + + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT + COUNT ( * ) / - 28 + + - 56
----
-56

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

skipif mysql # not compatible
query I rowsort label-7524
SELECT + + COUNT ( * ) / - 88
----
0

query I rowsort
SELECT + + 25 * 91 * - - 40 - - 61 + + 48 col1
----
91109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7526
SELECT COUNT( + CAST( ( 42 ) AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-7526
SELECT COUNT ( + CAST ( ( 42 ) AS REAL ) )
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7528
SELECT + 80 DIV 33 + - + 35 * + - 6 * 14 + - + 20, - 61 AS col0
----
2922
-61

skipif mysql # not compatible
query II rowsort label-7528
SELECT + 80 / 33 + - + 35 * + - 6 * 14 + - + 20, - 61 AS col0
----
2922
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7529
SELECT 53 DIV COUNT( * ) - 84 + + 5 + - 63
----
-89

skipif mysql # not compatible
query I rowsort label-7529
SELECT 53 / COUNT ( * ) - 84 + + 5 + - 63
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT DISTINCT - 68 * + NULLIF ( - - COUNT( * ), + - COUNT( * ) ) * 74 + + COUNT( ALL ( + 84 ) )
----
-5031

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT - 68 * + NULLIF ( - - COUNT ( * ), + - COUNT ( * ) ) * 74 + + COUNT ( ALL ( + 84 ) )
----
-5031

query I rowsort
SELECT + + ( + - 57 ) + 84 - - 0
----
27

query II rowsort
SELECT ALL + 44 AS col2, ( + 35 ) AS col1
----
44
35

query II rowsort
SELECT ALL - + 16 * 60 + ( 59 ) + 19 * + 49, 81 AS col1
----
30
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT - - 25 * + 23 + + NULLIF ( - CAST( MAX( DISTINCT - 36 ) AS SIGNED ), - 71 * + - 30 ) - - 99 col2
----
710

skipif mysql # not compatible
query I rowsort label-7534
SELECT - - 25 * + 23 + + NULLIF ( - CAST ( MAX ( DISTINCT - 36 ) AS INTEGER ), - 71 * + - 30 ) - - 99 col2
----
710

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7535
SELECT ALL - ( + 28 ) * + AVG ( 2 ) + + + COUNT( * ) + 26 + - CASE 21 WHEN + 90 * 85 + 60 THEN + 22 END, 94 + + 20 DIV - 49 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-7535
SELECT ALL - ( + 28 ) * + AVG ( 2 ) + + + COUNT ( * ) + 26 + - CASE 21 WHEN + 90 * 85 + 60 THEN + 22 END, 94 + + 20 / - 49 AS col1
----
NULL
94

query I rowsort
SELECT ALL + 83 * - + 65 * + 55 * + + 48 + 65 AS col2
----
-14242735

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT CASE - + 55 WHEN + + 68 + + 9 THEN NULL WHEN + 48 - - 85 + 7 THEN MIN( DISTINCT 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT CASE - + 55 WHEN + + 68 + + 9 THEN NULL WHEN + 48 - - 85 + 7 THEN MIN ( DISTINCT 75 ) END
----
NULL

query II rowsort
SELECT + 1 * - - 82 AS col0, 80 AS col0
----
82
80

query I rowsort
SELECT + 60 + + 12
----
72

query I rowsort
SELECT ALL + CASE 75 WHEN 89 THEN - 21 ELSE - - 34 END
----
34

query I rowsort
SELECT CASE 92 WHEN + - 7 THEN NULL ELSE - ( + 40 ) END
----
-40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7543
SELECT ALL CASE - 82 WHEN + ( + 51 ) THEN + + 96 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE 6 END * + 73 - - - COUNT( * ) + + + 15 + - SUM( 94 )
----
358

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL CASE - 82 WHEN + ( + 51 ) THEN + + 96 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 6 END * + 73 - - - COUNT ( * ) + + + 15 + - SUM ( 94 )
----
358

query I rowsort
SELECT ALL 29 * + ( 94 ) - + + 96 AS col2
----
2630

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL CASE + CAST( + 30 AS SIGNED ) WHEN COUNT( * ) THEN + 57 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL CASE + CAST ( + 30 AS INTEGER ) WHEN COUNT ( * ) THEN + 57 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 68, - - ( - 47 ) )
----
68

query I rowsort
SELECT - 82 + + - 90
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-7549
SELECT ALL ( - 26 ), - SUM( - 88 ) + 33 AS col0
----
-26
121

skipif mysql # not compatible
query II rowsort label-7549
SELECT ALL ( - 26 ), - SUM ( - 88 ) + 33 AS col0
----
-26
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7550
SELECT DISTINCT + 35 * CAST( NULL AS SIGNED ) AS col2, 72 DIV - COUNT( * ) AS col2
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-7550
SELECT DISTINCT + 35 * CAST ( NULL AS INTEGER ) AS col2, 72 / - COUNT ( * ) AS col2
----
NULL
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-7551
SELECT ALL - 81 * 31 * - CASE + 99 WHEN + + 73 THEN - 12 ELSE + + 17 END AS col0, 17 DIV + + 97 AS col2
----
42687
0

skipif mysql # not compatible
query II rowsort label-7551
SELECT ALL - 81 * 31 * - CASE + 99 WHEN + + 73 THEN - 12 ELSE + + 17 END AS col0, 17 / + + 97 AS col2
----
42687
0

query I rowsort
SELECT - + 92 - - 54 + ( + 72 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT MAX( 89 ) * 13 AS col1
----
1157

skipif mysql # not compatible
query I rowsort label-7553
SELECT MAX ( 89 ) * 13 AS col1
----
1157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT 59 + + - MIN( - 87 ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-7555
SELECT 59 + + - MIN ( - 87 ) AS col2
----
146

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT + NULLIF ( + COUNT( * ), 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7558
SELECT + NULLIF ( + COUNT ( * ), 56 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7559
SELECT - 62 DIV - COALESCE ( + + NULLIF ( + + MIN( 98 ), - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ), - 41 * - 12 + - + 73, + 70 - - 63 + AVG ( ALL 23 ) * + 55 * + 41 ) + - 95 + + SUM( ALL - - 95 ) DIV - 87 + 74
----
-22

skipif mysql # not compatible
query I rowsort label-7559
SELECT - 62 / - COALESCE ( + + NULLIF ( + + MIN ( 98 ), - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ), - 41 * - 12 + - + 73, + 70 - - 63 + AVG ( ALL 23 ) * + 55 * + 41 ) + - 95 + + SUM ( ALL - - 95 ) / - 87 + 74
----
-22

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7561
SELECT DISTINCT ( + ( + - CAST( 2 AS SIGNED ) ) ) + 62 DIV + + 65 + + + 28 * 57 AS col1
----
1594

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT ( + ( + - CAST ( 2 AS INTEGER ) ) ) + 62 / + + 65 + + + 28 * 57 AS col1
----
1594

query I rowsort
SELECT ALL - 61 - + COALESCE ( - 13, 82 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT 95 * + + ( - + ( - COUNT( * ) ) ) * 49 * - - COUNT( * ) + + 42
----
4697

skipif mysql # not compatible
query I rowsort label-7563
SELECT 95 * + + ( - + ( - COUNT ( * ) ) ) * 49 * - - COUNT ( * ) + + 42
----
4697

query I rowsort
SELECT 23 + + 24 + - + 80 * - 7 + - 22 AS col0
----
585

query I rowsort
SELECT 62 + ( + 94 ) * NULLIF ( - 86, + - 38 * 69 ) + - 64 AS col1
----
-8086

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT COUNT( * ) * 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7566
SELECT COUNT ( * ) * 55 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7567
SELECT NULLIF ( + COUNT( * ), + CAST( + 34 AS SIGNED ) ) + - - 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7567
SELECT NULLIF ( + COUNT ( * ), + CAST ( + 34 AS INTEGER ) ) + - - 25 AS col1
----
26

query I rowsort
SELECT ( + 37 ) + + 50 + 99 col2
----
186

query II rowsort
SELECT 70 AS col1, - 9
----
70
-9

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7571
SELECT 7, - ( + + 17 ) * 35 + - + 11 DIV + - 92 * 61 AS col0
----
7
-595

skipif mysql # not compatible
query II rowsort label-7571
SELECT 7, - ( + + 17 ) * 35 + - + 11 / + - 92 * 61 AS col0
----
7
-595

onlyif mysql # aggregate syntax: 
query II rowsort label-7572
SELECT - 18, - 68 * + SUM( DISTINCT NULLIF ( + + 69, - 34 ) ) * + - SUM( + COALESCE ( - - 48, + - 77 ) ) AS col1
----
-18
225216

skipif mysql # not compatible
query II rowsort label-7572
SELECT - 18, - 68 * + SUM ( DISTINCT NULLIF ( + + 69, - 34 ) ) * + - SUM ( + COALESCE ( - - 48, + - 77 ) ) AS col1
----
-18
225216

query I rowsort
SELECT ( - - 28 ) * 17 * + 10 * + - 47 * - 52 col2
----
11633440

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT 93 + - COUNT( * ) - COUNT( DISTINCT - 99 ) + + 49 + + - 36 * COUNT( * ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-7574
SELECT 93 + - COUNT ( * ) - COUNT ( DISTINCT - 99 ) + + 49 + + - 36 * COUNT ( * ) AS col0
----
104

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

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

query II rowsort
SELECT ALL 29, 65 AS col0
----
29
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7577
SELECT 77 DIV 76 * - COUNT( * ) AS col0, 34
----
-1
34

skipif mysql # not compatible
query II rowsort label-7577
SELECT 77 / 76 * - COUNT ( * ) AS col0, 34
----
-1
34

query I rowsort
SELECT DISTINCT 81 + - 65 + + 84 * + 43 AS col1
----
3628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( - 21 ) * + 18 * 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( - 21 ) * + 18 * 69 col0
----
NULL

query I rowsort
SELECT ALL - + 11 + - 65 + - 20
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7581
SELECT ALL - + 94 + + 90 / - 37 * + CAST( NULL AS DECIMAL ) / - 19 - 54 * - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - + 94 + + 90 / - 37 * + CAST ( NULL AS REAL ) / - 19 - 54 * - 9 AS col0
----
NULL

query I rowsort
SELECT ALL + CASE + 41 WHEN 58 THEN + 76 ELSE NULL END / + + ( + + 53 ) - - - 93 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT + 17 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7583
SELECT + 17 / - 76 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT + 9 + + - MIN( ALL + - 56 )
----
65

skipif mysql # not compatible
query I rowsort label-7585
SELECT + 9 + + - MIN ( ALL + - 56 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7586
SELECT ALL - 17 * + 36 * - COUNT( * ) + + COALESCE ( COALESCE ( - COUNT( * ), ( 36 ) * - + 27 ), 94 DIV - COUNT( * ) + - 70 * - 13 * 66 * - + MIN( + 75 ) + CAST( NULL AS SIGNED ) ) AS col1
----
611

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - 17 * + 36 * - COUNT ( * ) + + COALESCE ( COALESCE ( - COUNT ( * ), ( 36 ) * - + 27 ), 94 / - COUNT ( * ) + - 70 * - 13 * 66 * - + MIN ( + 75 ) + CAST ( NULL AS INTEGER ) ) AS col1
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT COUNT( * ) + 40 + + 78
----
119

skipif mysql # not compatible
query I rowsort label-7587
SELECT COUNT ( * ) + 40 + + 78
----
119

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT - - COUNT( - 16 ) * 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - - COUNT ( - 16 ) * 7 AS col2
----
7

query I rowsort
SELECT ALL + 26 + + 22
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT MAX( CAST( 4 AS SIGNED ) )
----
4

skipif mysql # not compatible
query I rowsort label-7591
SELECT MAX ( CAST ( 4 AS INTEGER ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT ALL + COUNT( * ) * CASE - 61 WHEN - + 53 + CAST( - 54 AS SIGNED ) THEN - 97 * + 53 + + - 78 + 31 + - + 34 WHEN + 42 - - ( - COUNT( - + 58 ) ) - - 13 THEN - 85 ELSE 43 * + NULLIF ( 43, + - 69 ) + + - 10 END
----
1839

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + COUNT ( * ) * CASE - 61 WHEN - + 53 + CAST ( - 54 AS INTEGER ) THEN - 97 * + 53 + + - 78 + 31 + - + 34 WHEN + 42 - - ( - COUNT ( - + 58 ) ) - - 13 THEN - 85 ELSE 43 * + NULLIF ( 43, + - 69 ) + + - 10 END
----
1839

query II rowsort
SELECT ALL - + 33 AS col1, 67
----
-33
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7594
SELECT - 2 * - MAX( DISTINCT - 84 ) AS col1, - 71
----
-168
-71

skipif mysql # not compatible
query II rowsort label-7594
SELECT - 2 * - MAX ( DISTINCT - 84 ) AS col1, - 71
----
-168
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7595
SELECT - 56 * + ( - 10 ) * + + 43 + - + COALESCE ( + 97, + 39 * - CAST( NULLIF ( 39, - 7 ) AS SIGNED ) + - 28 - - ( + 55 ) DIV - 8 ) + + 19 AS col2
----
24002

skipif mysql # not compatible
query I rowsort label-7595
SELECT - 56 * + ( - 10 ) * + + 43 + - + COALESCE ( + 97, + 39 * - CAST ( NULLIF ( 39, - 7 ) AS INTEGER ) + - 28 - - ( + 55 ) / - 8 ) + + 19 AS col2
----
24002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7596
SELECT - 43 * - + 6 + - 47 - COUNT( * ) - - 12 + 39 - 27 * - 19 + 31 DIV + - ( + 41 ) AS col2
----
774

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 43 * - + 6 + - 47 - COUNT ( * ) - - 12 + 39 - 27 * - 19 + 31 / + - ( + 41 ) AS col2
----
774

onlyif mysql # aggregate syntax: 
query II rowsort label-7597
SELECT MAX( + 30 ) * 68 AS col0, ( - COUNT( * ) ) + 98
----
2040
97

skipif mysql # not compatible
query II rowsort label-7597
SELECT MAX ( + 30 ) * 68 AS col0, ( - COUNT ( * ) ) + 98
----
2040
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT - MAX( - + 91 ) col1
----
91

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT - MAX ( - + 91 ) col1
----
91

query I rowsort
SELECT ALL - 52 - + + NULLIF ( + - 31, - - AVG ( DISTINCT + 95 ) )
----
-21

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

query I rowsort
SELECT ALL 24 - 8 * - 80
----
664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT DISTINCT + CASE + - 38 WHEN - + 3 THEN 12 WHEN - 24 + + COUNT( * ) + CAST( NULL AS SIGNED ) + + ( + 36 ) + + - 82 * 10 * + 90 THEN NULL ELSE NULL END * - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT + CASE + - 38 WHEN - + 3 THEN 12 WHEN - 24 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + ( + 36 ) + + - 82 * 10 * + 90 THEN NULL ELSE NULL END * - + 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7603
SELECT 32 DIV - + ( 15 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7603
SELECT 32 / - + ( 15 ) AS col0
----
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7605
SELECT + SUM( ALL - + 17 ) col2, - NULLIF ( 0, + 41 / + 81 - + 3 ) col1
----
-17
0

skipif mysql # not compatible
query II rowsort label-7605
SELECT + SUM ( ALL - + 17 ) col2, - NULLIF ( 0, + 41 / + 81 - + 3 ) col1
----
-17
0

query I rowsort
SELECT 58 * + CASE - - 46 WHEN - - 86 THEN + 31 END
----
NULL

query I rowsort
SELECT 93 * - 40 * + 69
----
-256680

onlyif mysql # DIV for integer division: 
query I rowsort label-7608
SELECT DISTINCT 76 DIV 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT 76 / 30 AS col2
----
2

query I rowsort
SELECT DISTINCT NULLIF ( + 84, - 11 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL + 81 + 70 + + COUNT( * ) * - COUNT( * ) * + 84 + + 52
----
119

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL + 81 + 70 + + COUNT ( * ) * - COUNT ( * ) * + 84 + + 52
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7611
SELECT DISTINCT MAX( + - CAST( NULL AS SIGNED ) ) * - 92 / - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT MAX ( + - CAST ( NULL AS INTEGER ) ) * - 92 / - 92 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 81 + 73 * 0 col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7613
SELECT DISTINCT 40 + - 44 AS col1, + CAST( NULL AS SIGNED ) AS col2
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-7613
SELECT DISTINCT 40 + - 44 AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
-4
NULL

query I rowsort
SELECT ALL NULLIF ( - 72, + - 45 + - 14 ) + 30
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT DISTINCT + MAX( DISTINCT - 69 ) * - 34
----
2346

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT + MAX ( DISTINCT - 69 ) * - 34
----
2346

query I rowsort
SELECT ALL - 21 + - 73 AS col1
----
-94

query I rowsort
SELECT + + 15 + - 1 * + 92 AS col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT - + 10 - + - CAST( + + AVG ( - 29 ) AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7619
SELECT - + 10 - + - CAST ( + + AVG ( - 29 ) AS INTEGER ) AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7620
SELECT COUNT( - 40 ) AS col2, MAX( DISTINCT 13 ) * - + CAST( + 91 AS SIGNED ) AS col0
----
1
-1183

skipif mysql # not compatible
query II rowsort label-7620
SELECT COUNT ( - 40 ) AS col2, MAX ( DISTINCT 13 ) * - + CAST ( + 91 AS INTEGER ) AS col0
----
1
-1183

query I rowsort
SELECT + 60 * - NULLIF ( - 73, + - 39 - - 40 + + 4 + + - 93 ) + - 42 * 83 * + - 24 + + + 18 * - 96
----
86316

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT DISTINCT - COUNT( * ) - + 71 + - - 78
----
6

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT - COUNT ( * ) - + 71 + - - 78
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT ALL - + 4 * 39 DIV - 49 + + + 32
----
35

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL - + 4 * 39 / - 49 + + + 32
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + - 89 * - + ( + MAX( DISTINCT - 67 ) ) AS col1
----
-5963

skipif mysql # not compatible
query I rowsort label-7625
SELECT + - 89 * - + ( + MAX ( DISTINCT - 67 ) ) AS col1
----
-5963

query I rowsort
SELECT + + 14 + + 78 * + 93 * + 4 col1
----
29030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7627
SELECT - - CASE + AVG ( - - 66 ) WHEN + ( - 19 ) THEN NULL WHEN + 1 THEN NULL WHEN - - MAX( - 90 ) * - + COUNT( 54 ) * + COUNT( * ) * - + COALESCE ( - 65, 53 ) + - + CAST( NULL AS SIGNED ) THEN - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT - - CASE + AVG ( - - 66 ) WHEN + ( - 19 ) THEN NULL WHEN + 1 THEN NULL WHEN - - MAX ( - 90 ) * - + COUNT ( 54 ) * + COUNT ( * ) * - + COALESCE ( - 65, 53 ) + - + CAST ( NULL AS INTEGER ) THEN - 44 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7628
SELECT - CAST( NULL AS SIGNED ) + - 78 * COUNT( - - 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT - CAST ( NULL AS INTEGER ) + - 78 * COUNT ( - - 98 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - 62 * + MAX( ALL - 93 ) + 29 AS col1
----
5795

skipif mysql # not compatible
query I rowsort label-7630
SELECT - 62 * + MAX ( ALL - 93 ) + 29 AS col1
----
5795

onlyif mysql # aggregate syntax: 
query II rowsort label-7631
SELECT ALL 19 * + 26 * 28, + COUNT( * ) + - + CASE + 56 WHEN + ( + 60 ) - + COUNT( * ) THEN - COUNT( * ) + + + 40 WHEN - - 85 THEN + - ( - COALESCE ( + 50, 7 - 66 - + 61 * + - COUNT( * ) + - 64 + 24 / + + COALESCE ( - 38, + - 22 ) * - 61 ) ) WHEN + ( - 0 ) THEN NULL END AS col1
----
13832
NULL

skipif mysql # not compatible
query II rowsort label-7631
SELECT ALL 19 * + 26 * 28, + COUNT ( * ) + - + CASE + 56 WHEN + ( + 60 ) - + COUNT ( * ) THEN - COUNT ( * ) + + + 40 WHEN - - 85 THEN + - ( - COALESCE ( + 50, 7 - 66 - + 61 * + - COUNT ( * ) + - 64 + 24 / + + COALESCE ( - 38, + - 22 ) * - 61 ) ) WHEN + ( - 0 ) THEN NULL END AS col1
----
13832
NULL

query II rowsort
SELECT DISTINCT + 84 AS col2, ( - 35 )
----
84
-35

query I rowsort
SELECT ALL + COALESCE ( 78, + 53 * + + 77 - + 53 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7634
SELECT - MIN( - 14 ) + + 10, - 72 * 58 AS col2
----
24
-4176

skipif mysql # not compatible
query II rowsort label-7634
SELECT - MIN ( - 14 ) + + 10, - 72 * 58 AS col2
----
24
-4176

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

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

query II rowsort
SELECT + 48, 3 + + 7 + - 62 AS col0
----
48
-52

query I rowsort
SELECT NULLIF ( + 64, 26 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7638
SELECT - 77 * + CASE CAST( NULL AS SIGNED ) WHEN - 56 - + COUNT( 37 ) THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE - 17 + - 39 * + + 39 END, 33 col1
----
118426
33

skipif mysql # not compatible
query II rowsort label-7638
SELECT - 77 * + CASE CAST ( NULL AS INTEGER ) WHEN - 56 - + COUNT ( 37 ) THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE - 17 + - 39 * + + 39 END, 33 col1
----
118426
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL MIN( + - 3 ) * + COALESCE ( 63, - + COUNT( - 19 ) ) + - 28
----
-217

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL MIN ( + - 3 ) * + COALESCE ( 63, - + COUNT ( - 19 ) ) + - 28
----
-217

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL - 22 * - + MIN( ALL - 42 )
----
-924

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - 22 * - + MIN ( ALL - 42 )
----
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-7642
SELECT - 41 DIV - 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7642
SELECT - 41 / - 29 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL 91 * - + 62 + - 66 + - NULLIF ( - + 14, + 19 ) + + COUNT( * ) AS col2
----
-5693

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL 91 * - + 62 + - 66 + - NULLIF ( - + 14, + 19 ) + + COUNT ( * ) AS col2
----
-5693

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL 41 * COUNT( * ) + + NULLIF ( - + 95, 70 + 50 ) + 83 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL 41 * COUNT ( * ) + + NULLIF ( - + 95, 70 + 50 ) + 83 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - ( MAX( ALL + 63 ) ) + - 6 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7645
SELECT - ( MAX ( ALL + 63 ) ) + - 6 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT DISTINCT MIN( DISTINCT - 54 ) * - 95 * - - 59 + + 86
----
302756

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT MIN ( DISTINCT - 54 ) * - 95 * - - 59 + + 86
----
302756

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT 50 * + 46 + - COUNT( - 81 ) * + - CASE - + 51 WHEN + - 92 THEN + + 16 - + COUNT( * ) END * ( + + 41 ) + - + 68 - 95 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT 50 * + 46 + - COUNT ( - 81 ) * + - CASE - + 51 WHEN + - 92 THEN + + 16 - + COUNT ( * ) END * ( + + 41 ) + - + 68 - 95 * + 18
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7649
SELECT SUM ( DISTINCT 83 )
----
83

query I rowsort
SELECT + 87 + - 57 * + - 31 + + 86 AS col2
----
1940

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

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

query I rowsort
SELECT - 57 * + 99 AS col1
----
-5643

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - NULLIF ( + 47, COUNT( DISTINCT 4 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-7653
SELECT - NULLIF ( + 47, COUNT ( DISTINCT 4 ) )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7654
SELECT - MIN( ALL ( ( 58 ) ) ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT - MIN ( ALL ( ( 58 ) ) ) / - 83
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT ALL ( + 5 ) + - ( 89 - + 11 * COALESCE ( - COUNT( * ) * - COUNT( * ) + 46, COUNT( * ) ) ) AS col1
----
433

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL ( + 5 ) + - ( 89 - + 11 * COALESCE ( - COUNT ( * ) * - COUNT ( * ) + 46, COUNT ( * ) ) ) AS col1
----
433

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

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL COUNT ( * ) / + 65
----
0

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

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT + COUNT ( * ) - 51 * + 96 AS col2
----
-4895

query I rowsort
SELECT - NULLIF ( 87, 91 ) AS col1
----
-87

query I rowsort
SELECT ALL 15 * - ( ( + 22 ) ) AS col0
----
-330

query I rowsort
SELECT + 21 * + 57
----
1197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7663
SELECT - ( COALESCE ( + 29, + ( + CASE - 11 WHEN - 83 * - CAST( + 17 AS SIGNED ) THEN NULL ELSE SUM( 36 ) + - 89 DIV - NULLIF ( 77 DIV MIN( ALL 63 ) + - 88, - 21 + 87 ) END ) + + 96 ) ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-7663
SELECT - ( COALESCE ( + 29, + ( + CASE - 11 WHEN - 83 * - CAST ( + 17 AS INTEGER ) THEN NULL ELSE SUM ( 36 ) + - 89 / - NULLIF ( 77 / MIN ( ALL 63 ) + - 88, - 21 + 87 ) END ) + + 96 ) ) col2
----
-29

query I rowsort
SELECT DISTINCT 61 * - 45 AS col0
----
-2745

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - NULLIF ( CASE - 39 WHEN 78 THEN NULL WHEN 24 + COUNT( * ) THEN NULL ELSE ( 56 ) + COUNT( * ) END, - 69 )
----
-57

skipif mysql # not compatible
query I rowsort label-7665
SELECT - NULLIF ( CASE - 39 WHEN 78 THEN NULL WHEN 24 + COUNT ( * ) THEN NULL ELSE ( 56 ) + COUNT ( * ) END, - 69 )
----
-57

query I rowsort
SELECT ALL 79 * + 54
----
4266

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + 85 - 86 * - COUNT( DISTINCT + NULLIF ( 62, 58 + - ( 59 ) * 87 ) + 50 )
----
171

skipif mysql # not compatible
query I rowsort label-7667
SELECT + 85 - 86 * - COUNT ( DISTINCT + NULLIF ( 62, 58 + - ( 59 ) * 87 ) + 50 )
----
171

query I rowsort
SELECT + 91 * 44 AS col0
----
4004

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

query I rowsort
SELECT + 55 * 24 AS col0
----
1320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT DISTINCT 60 * + COALESCE ( + 36, - 35, CAST( NULL AS SIGNED ) * - CASE 89 WHEN + 80 THEN 16 ELSE 14 * - 81 END + - 27 * - CASE 5 / - 28 WHEN 19 THEN + 4 ELSE + 90 END ) col0
----
2160

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT 60 * + COALESCE ( + 36, - 35, CAST ( NULL AS INTEGER ) * - CASE 89 WHEN + 80 THEN 16 ELSE 14 * - 81 END + - 27 * - CASE 5 / - 28 WHEN 19 THEN + 4 ELSE + 90 END ) col0
----
2160

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

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - 25 / COUNT ( * )
----
-25

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7674
SELECT DISTINCT 48 DIV 21 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT 48 / 21 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7675
SELECT DISTINCT 6 DIV COUNT( * ) + 37 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT 6 / COUNT ( * ) + 37 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT ALL 75 DIV + ( + 59 ) + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL 75 / + ( + 59 ) + 13 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7677
SELECT 26 * - 92 + 28 * ( - 44 * + NULLIF ( + SUM( CAST( NULL AS DECIMAL ) ), ( AVG ( - 82 ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT 26 * - 92 + 28 * ( - 44 * + NULLIF ( + SUM ( CAST ( NULL AS REAL ) ), ( AVG ( - 82 ) ) ) ) AS col2
----
NULL

query I rowsort
SELECT + 65 * 72 col2
----
4680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7679
SELECT ALL 18 DIV NULLIF ( 58, 47 ) + COUNT( * ) * 51
----
51

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL 18 / NULLIF ( 58, 47 ) + COUNT ( * ) * 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL - 18 + MIN( 41 + 84 ) * - COUNT( * ) AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - 18 + MIN ( 41 + 84 ) * - COUNT ( * ) AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL + CASE 0 WHEN + 34 * + 61 THEN COUNT( * ) + MIN( 95 + + 0 ) END + COALESCE ( - 98, + ( + 85 ) ) / - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL + CASE 0 WHEN + 34 * + 61 THEN COUNT ( * ) + MIN ( 95 + + 0 ) END + COALESCE ( - 98, + ( + 85 ) ) / - 27 AS col1
----
NULL

query I rowsort
SELECT + 49 * 51 - 0
----
2499

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT ( - 19 ) * NULLIF ( COUNT( * ) * - COUNT( + 62 ), + 96 ) + - 63
----
-44

skipif mysql # not compatible
query I rowsort label-7683
SELECT ( - 19 ) * NULLIF ( COUNT ( * ) * - COUNT ( + 62 ), + 96 ) + - 63
----
-44

query I rowsort
SELECT DISTINCT - NULLIF ( 24, - 65 )
----
-24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7686
SELECT CAST( + 82 AS SIGNED ) * - 92 - COUNT( * ) AS col2
----
-7545

skipif mysql # not compatible
query I rowsort label-7686
SELECT CAST ( + 82 AS INTEGER ) * - 92 - COUNT ( * ) AS col2
----
-7545

query I rowsort
SELECT 80 * - 71
----
-5680

query I rowsort
SELECT 59 * 33 AS col1
----
1947

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7690
SELECT DISTINCT COUNT( 96 ) - - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT COUNT ( 96 ) - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT ALL - NULLIF ( 87, 47 + - ( + CAST( - 40 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL - NULLIF ( 87, 47 + - ( + CAST ( - 40 AS INTEGER ) ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + COUNT( ( - 14 ) ) * 85 col0
----
85

skipif mysql # not compatible
query I rowsort label-7693
SELECT + COUNT ( ( - 14 ) ) * 85 col0
----
85

query I rowsort
SELECT DISTINCT - - 57 - - 7
----
64

query I rowsort
SELECT - 22 + 29
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT 59 - + 89 DIV 84 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7696
SELECT 59 - + 89 / 84 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT - MAX( ALL 12 ) / NULLIF ( - 87 + + CAST( NULL AS SIGNED ), - MAX( NULLIF ( - ( 78 ), 26 * - 8 ) ) + + COUNT( DISTINCT 91 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT - MAX ( ALL 12 ) / NULLIF ( - 87 + + CAST ( NULL AS INTEGER ), - MAX ( NULLIF ( - ( 78 ), 26 * - 8 ) ) + + COUNT ( DISTINCT 91 ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT + 44 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-7698
SELECT + 44 / 69
----
0

query I rowsort
SELECT 8 + 28
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT DISTINCT + + 78 DIV 25 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT + + 78 / 25 AS col0
----
3

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

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

query I rowsort
SELECT ALL + 62 + ( + ( 79 ) ) * 30 AS col1
----
2432

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

query I rowsort
SELECT 26 * - + ( - 50 ) AS col1
----
1300

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

skipif mysql # not compatible
query I rowsort label-7705
SELECT 68 * 40 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 7 + - 40 AS col1
----
-33

query I rowsort
SELECT ALL 66 + + 91
----
157

query I rowsort
SELECT DISTINCT 24 * 96
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT MAX( DISTINCT - 50 ) + + MAX( ALL 24 )
----
-26

skipif mysql # not compatible
query I rowsort label-7709
SELECT MAX ( DISTINCT - 50 ) + + MAX ( ALL 24 )
----
-26

query I rowsort
SELECT DISTINCT 18 + 46 AS col1
----
64

query I rowsort
SELECT DISTINCT 53 + 59 * + 36 col1
----
2177

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT DISTINCT + 77 DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT + 77 / 28
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT DISTINCT 17 + + 37 + + ( + 59 + MIN( ALL 0 + + 53 ) * + COALESCE ( ( - 77 ), 41 * - 82, 2 + 58 ) )
----
-3968

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT 17 + + 37 + + ( + 59 + MIN ( ALL 0 + + 53 ) * + COALESCE ( ( - 77 ), 41 * - 82, 2 + 58 ) )
----
-3968

query I rowsort
SELECT ALL 52 - - 9 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT COUNT( * ) * + CASE 27 WHEN + 97 - 79 THEN 62 * 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT COUNT ( * ) * + CASE 27 WHEN + 97 - 79 THEN 62 * 72 ELSE NULL END
----
NULL

query I rowsort
SELECT 21 * - 94
----
-1974

query I rowsort
SELECT ALL + 60 * + ( 28 ) AS col1
----
1680

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT ALL 57 DIV + - 73 col1
----
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL 57 / + - 73 col1
----
0

query I rowsort
SELECT ALL 16 - 67 + 46 * - 74 AS col1
----
-3455

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7721
SELECT DISTINCT 78 * - MAX( ALL NULLIF ( + CAST( NULL AS DECIMAL ), - 21 - 46 ) ) - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT 78 * - MAX ( ALL NULLIF ( + CAST ( NULL AS REAL ), - 21 - 46 ) ) - + 95
----
NULL

query I rowsort
SELECT ALL + ( - 92 ) * 74 AS col0
----
-6808

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT - - COUNT( * ) * 16 + + 84 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-7723
SELECT - - COUNT ( * ) * 16 + + 84 AS col2
----
100

query I rowsort
SELECT 74 * 67 * 97 AS col1
----
480926

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT - 53 + - + 3 + + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7726
SELECT - 53 + - + 3 + + COUNT ( * ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT 53 * - ( 72 ) * COUNT( * ) AS col2
----
-3816

skipif mysql # not compatible
query I rowsort label-7727
SELECT 53 * - ( 72 ) * COUNT ( * ) AS col2
----
-3816

query I rowsort
SELECT + 76 + + 19
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7729
SELECT DISTINCT + 99 * - COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT + 99 * - COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT ALL - 96 + + ( 56 )
----
-40

query I rowsort
SELECT DISTINCT + 33 * - 25 + - 17
----
-842

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT ALL + - 26 * - + 97 - 91 DIV + 68 AS col0
----
2521

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL + - 26 * - + 97 - 91 / + 68 AS col0
----
2521

query I rowsort
SELECT + 99 * 51 AS col2
----
5049

query I rowsort
SELECT - 69 * - NULLIF ( 96, + 67 )
----
6624

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT 42 - COUNT( DISTINCT - - 65 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7737
SELECT 42 - COUNT ( DISTINCT - - 65 ) AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7738
SELECT 54, COUNT( * ) DIV 33 - 80 AS col2
----
54
-80

skipif mysql # not compatible
query II rowsort label-7738
SELECT 54, COUNT ( * ) / 33 - 80 AS col2
----
54
-80

query I rowsort
SELECT 52 * 41 AS col1
----
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL CASE MIN( - 0 ) WHEN - 39 + 29 THEN COUNT( * ) * - 68 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL CASE MIN ( - 0 ) WHEN - 39 + 29 THEN COUNT ( * ) * - 68 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT + ( COALESCE ( - COUNT( * ), COUNT( * ) ) ) + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + ( COALESCE ( - COUNT ( * ), COUNT ( * ) ) ) + - 66
----
-67

query I rowsort
SELECT DISTINCT 53 + 23 + + 93
----
169

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT - CAST( NULL AS SIGNED ) * - SUM( - ( COALESCE ( 10, 12 + 88 ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT - CAST ( NULL AS INTEGER ) * - SUM ( - ( COALESCE ( 10, 12 + 88 ) ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7745
SELECT ALL - 90 DIV COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - 90 / COUNT ( * ) AS col1
----
-90

query I rowsort
SELECT ALL CASE - 75 WHEN + 19 THEN NULL WHEN - 91 THEN + 81 + + CASE - 22 WHEN 59 THEN NULL ELSE 24 END END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT + ( COALESCE ( - 59, + 71 DIV 3 ) ) * 25 - + 16
----
-1491

skipif mysql # not compatible
query I rowsort label-7747
SELECT + ( COALESCE ( - 59, + 71 / 3 ) ) * 25 - + 16
----
-1491

query I rowsort
SELECT + 41 * + 8 + + ( 5 ) AS col2
----
333

query I rowsort
SELECT ALL 28 * - 12 - + + NULLIF ( 68, 74 ) col1
----
-404

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT + COUNT( * ) * 58 + - - 7 - + CASE 92 WHEN 83 + - 84 THEN 54 * 26 END * - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT + COUNT ( * ) * 58 + - - 7 - + CASE 92 WHEN 83 + - 84 THEN 54 * 26 END * - 68 AS col2
----
NULL

query I rowsort
SELECT + 64 * 15 AS col2
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT COALESCE ( + 4, + + 57 * - 42, + 45 DIV - 50 - 43 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7752
SELECT COALESCE ( + 4, + + 57 * - 42, + 45 / - 50 - 43 ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7753
SELECT COUNT( * ) DIV 65 * - 26 + + 63
----
63

skipif mysql # not compatible
query I rowsort label-7753
SELECT COUNT ( * ) / 65 * - 26 + + 63
----
63

query I rowsort
SELECT + ( + 85 ) + 32 * + 77
----
2549

query I rowsort
SELECT ALL 65 * + NULLIF ( + 27, ( 15 ) ) - 14 AS col1
----
1741

query II rowsort
SELECT DISTINCT + 34 AS col2, - ( 61 ) * 35 AS col1
----
34
-2135

onlyif mysql # aggregate syntax: 
query II rowsort label-7757
SELECT ALL + 40 AS col2, 80 * + ( 86 ) * - 86 + COUNT( * )
----
40
-591679

skipif mysql # not compatible
query II rowsort label-7757
SELECT ALL + 40 AS col2, 80 * + ( 86 ) * - 86 + COUNT ( * )
----
40
-591679

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7759
SELECT - 62 * CAST( NULL AS DECIMAL ) + - - 29 + - MIN( DISTINCT - 32 ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT - 62 * CAST ( NULL AS REAL ) + - - 29 + - MIN ( DISTINCT - 32 ) * - 81
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT + 54 * 66 * + CAST( NULL AS SIGNED ) / + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT + 54 * 66 * + CAST ( NULL AS INTEGER ) / + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT + + 30 - + MIN( - 13 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7761
SELECT + + 30 - + MIN ( - 13 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL - 61 * + + MAX( + 41 ) AS col2
----
-2501

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - 61 * + + MAX ( + 41 ) AS col2
----
-2501

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + - CASE SUM( + 35 ) WHEN 15 THEN 62 * - 4 WHEN + 37 THEN NULL WHEN 37 THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT + - CASE SUM ( + 35 ) WHEN 15 THEN 62 * - 4 WHEN + 37 THEN NULL WHEN 37 THEN NULL END * COUNT ( * )
----
NULL

query II rowsort
SELECT - 63, 36 AS col1
----
-63
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7765
SELECT DISTINCT + 31 * - CASE + 52 WHEN - 5 THEN NULL WHEN - 76 * 96 THEN ( 17 ) WHEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL ELSE + 46 END + + COUNT( * ) AS col1
----
-1425

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT + 31 * - CASE + 52 WHEN - 5 THEN NULL WHEN - 76 * 96 THEN ( 17 ) WHEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL ELSE + 46 END + + COUNT ( * ) AS col1
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT ALL + MIN( ALL + 3 ) * + - 16
----
-48

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL + MIN ( ALL + 3 ) * + - 16
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT + - 6 DIV - 3 + - - 42 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7767
SELECT + - 6 / - 3 + - - 42 AS col2
----
44

query I rowsort
SELECT DISTINCT 96 * - 92 AS col1
----
-8832

query I rowsort
SELECT DISTINCT - 67 + + 57 + 67 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT ALL + 34 + - 10 + 11 * - COALESCE ( 29, 12, COUNT( * ) * - ( 61 ) ) * - 50 AS col0
----
15974

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL + 34 + - 10 + 11 * - COALESCE ( 29, 12, COUNT ( * ) * - ( 61 ) ) * - 50 AS col0
----
15974

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

query II rowsort
SELECT 32, + 74 AS col2
----
32
74

query I rowsort
SELECT - 67 * + - 3
----
201

query I rowsort
SELECT + - 54 + + 64 * + ( 76 ) * 9 AS col1
----
43722

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT - 54 - + COUNT( * ) DIV + COUNT( * ) + - NULLIF ( + 99, - 35 ) + 75
----
-79

skipif mysql # not compatible
query I rowsort label-7777
SELECT - 54 - + COUNT ( * ) / + COUNT ( * ) + - NULLIF ( + 99, - 35 ) + 75
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL CASE 37 WHEN - 75 + + 23 * + 15 THEN COALESCE ( AVG ( ALL 77 ), 46 ) + - COUNT( * ) * + COUNT( * ) WHEN - 22 + 32 * 14 THEN NULL WHEN - 42 * + 13 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL CASE 37 WHEN - 75 + + 23 * + 15 THEN COALESCE ( AVG ( ALL 77 ), 46 ) + - COUNT ( * ) * + COUNT ( * ) WHEN - 22 + 32 * 14 THEN NULL WHEN - 42 * + 13 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) - + 33 AS col1
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7780
SELECT ALL + 94 + + 59 - - + 65 + - 12 * CAST( NULL AS DECIMAL ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + 94 + + 59 - - + 65 + - 12 * CAST ( NULL AS REAL ) * 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT ALL - 31 + + 78 AS col0, - COUNT( * ) + + 60
----
47
59

skipif mysql # not compatible
query II rowsort label-7781
SELECT ALL - 31 + + 78 AS col0, - COUNT ( * ) + + 60
----
47
59

query I rowsort
SELECT ALL + 4 * 16 AS col0
----
64

query I rowsort
SELECT + ( + 3 ) * - + 69
----
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7784
SELECT - CAST( + COALESCE ( + - COUNT( * ), + - 2 + + 52 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7784
SELECT - CAST ( + COALESCE ( + - COUNT ( * ), + - 2 + + 52 ) AS INTEGER )
----
1

query I rowsort
SELECT - CASE + 76 WHEN + 47 * - - 16 THEN 76 * 3 WHEN 70 THEN NULL END + + 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7786
SELECT - 47 + - - NULLIF ( + + 51, + ( + 58 ) - + CASE 43 WHEN 95 THEN NULL ELSE ( - 15 ) DIV - 97 + 48 END ) - SUM( 38 + - 4 DIV - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7786
SELECT - 47 + - - NULLIF ( + + 51, + ( + 58 ) - + CASE 43 WHEN 95 THEN NULL ELSE ( - 15 ) / - 97 + 48 END ) - SUM ( 38 + - 4 / - 34 ) AS col0
----
-34

query I rowsort
SELECT - 64 * + - 78
----
4992

query I rowsort
SELECT ALL ( 4 ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT + ( + ( MAX( ALL + 26 ) ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT + ( + ( MAX ( ALL + 26 ) ) ) AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT ALL - 32 DIV 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL - 32 / 36 AS col2
----
0

query I rowsort
SELECT - 28 * - + 9
----
252

query I rowsort
SELECT - 4 * - 74 * + + 2
----
592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7793
SELECT DISTINCT - COUNT( * ) DIV 26 * 31
----
0

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT - COUNT ( * ) / 26 * 31
----
0

query II rowsort
SELECT DISTINCT + ( + 35 ) AS col2, - 80
----
35
-80

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

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

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

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

query I rowsort
SELECT - - 76 * + 37 AS col2
----
2812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7799
SELECT + - 70 * + COUNT( * ) - NULLIF ( + 30, 12 + 94 ) - MIN( DISTINCT CAST( NULL AS SIGNED ) ) * 85 * + COALESCE ( + 19 * - CAST( NULL AS SIGNED ), - 89, COUNT( * ) * - 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7799
SELECT + - 70 * + COUNT ( * ) - NULLIF ( + 30, 12 + 94 ) - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * 85 * + COALESCE ( + 19 * - CAST ( NULL AS INTEGER ), - 89, COUNT ( * ) * - 62 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT MIN( DISTINCT 40 )
----
40

skipif mysql # not compatible
query I rowsort label-7800
SELECT MIN ( DISTINCT 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT + - NULLIF ( 48, + COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-7801
SELECT + - NULLIF ( 48, + COUNT ( * ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT - ( 22 ) * - 71 + + COUNT( * ) * - 82
----
1480

skipif mysql # not compatible
query I rowsort label-7802
SELECT - ( 22 ) * - 71 + + COUNT ( * ) * - 82
----
1480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL - - 60 * + NULLIF ( - ( - 78 ), - COUNT( * ) ) + 27 * + 97
----
7299

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - - 60 * + NULLIF ( - ( - 78 ), - COUNT ( * ) ) + 27 * + 97
----
7299

query I rowsort
SELECT + - 18 + - 25 + - + 52 * - + 94 * 19
----
92829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT ALL - - 28 * + CASE + - 60 WHEN + CAST( NULL AS SIGNED ) THEN - 28 * 27 END - + 53 + - 36 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - - 28 * + CASE + - 60 WHEN + CAST ( NULL AS INTEGER ) THEN - 28 * 27 END - + 53 + - 36 * 60
----
NULL

query II rowsort
SELECT + - 69 + + 21, 46 col1
----
-48
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL + 5 * SUM( 96 ) + + + 40 + 20 AS col1
----
540

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + 5 * SUM ( 96 ) + + + 40 + 20 AS col1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + + ( - 0 ) * + ( - - 21 ) + COALESCE ( 22, NULLIF ( - 97, - ( 65 ) ) * + ( 10 + + 44 ) ) * + MAX( ALL - 51 )
----
-1122

skipif mysql # not compatible
query I rowsort label-7809
SELECT + + ( - 0 ) * + ( - - 21 ) + COALESCE ( 22, NULLIF ( - 97, - ( 65 ) ) * + ( 10 + + 44 ) ) * + MAX ( ALL - 51 )
----
-1122

query II rowsort
SELECT + 60 * - 7 AS col1, - 96
----
-420
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT DISTINCT 30 DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT 30 / - 25
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT - CASE + - COUNT( * ) WHEN + COUNT( * ) THEN - ( 24 ) * - 85 WHEN - ( 1 ) THEN NULL WHEN 63 THEN 24 + + 40 END * + 37 + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT - CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN - ( 24 ) * - 85 WHEN - ( 1 ) THEN NULL WHEN 63 THEN 24 + + 40 END * + 37 + + 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT ALL + ( - COUNT( * ) ) / - 40 + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL + ( - COUNT ( * ) ) / - 40 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 36 - 7
----
29

query I rowsort
SELECT 68 * 54 AS col0
----
3672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7816
SELECT DISTINCT 48 * + CAST( 82 AS SIGNED ) col1, + COUNT( * ) * + 30 + 62
----
3936
92

skipif mysql # not compatible
query II rowsort label-7816
SELECT DISTINCT 48 * + CAST ( 82 AS INTEGER ) col1, + COUNT ( * ) * + 30 + 62
----
3936
92

query I rowsort
SELECT ALL 83 * - + 48
----
-3984

query I rowsort
SELECT DISTINCT 42 * 47 AS col1
----
1974

query I rowsort
SELECT ALL 0 - - 37 * + + 95
----
3515

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT 3 col1, + COUNT( * ) + - 21 - + 69 + + - ( 46 ) + COUNT( * ) AS col2
----
3
-134

skipif mysql # not compatible
query II rowsort label-7820
SELECT 3 col1, + COUNT ( * ) + - 21 - + 69 + + - ( 46 ) + COUNT ( * ) AS col2
----
3
-134

query II rowsort
SELECT DISTINCT 99, 14 col0
----
99
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7822
SELECT ALL 5 AS col2, 14 * - 92 + + - NULLIF ( + + ( - CASE COALESCE ( - 65, 49 ) WHEN 99 + CASE - 5 + - ( 70 + 88 ) * SUM( DISTINCT - 29 ) WHEN - 3 * 5 THEN NULL WHEN 82 THEN - 37 END THEN 5 * - 72 ELSE 25 END ), 91 * 15 ) * CAST( - 48 AS SIGNED ) AS col2
----
5
-2488

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL 5 AS col2, 14 * - 92 + + - NULLIF ( + + ( - CASE COALESCE ( - 65, 49 ) WHEN 99 + CASE - 5 + - ( 70 + 88 ) * SUM ( DISTINCT - 29 ) WHEN - 3 * 5 THEN NULL WHEN 82 THEN - 37 END THEN 5 * - 72 ELSE 25 END ), 91 * 15 ) * CAST ( - 48 AS INTEGER ) AS col2
----
5
-2488

query I rowsort
SELECT 93 * - 40 AS col0
----
-3720

query II rowsort
SELECT DISTINCT 13, COALESCE ( - + 0, + 22 ) AS col0
----
13
0

query II rowsort
SELECT DISTINCT - ( - - 94 ) * - 32 AS col2, 2
----
3008
2

query I rowsort
SELECT ALL - 28 * + 45 col0
----
-1260

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7830
SELECT ALL - - CAST( + 96 AS SIGNED ) + - COUNT( * ) + 48 DIV COUNT( - 1 )
----
143

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - - CAST ( + 96 AS INTEGER ) + - COUNT ( * ) + 48 / COUNT ( - 1 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT - + 80 * + 88 + + ( - - MIN( + 59 ) ) + - 71 * 14
----
-7975

skipif mysql # not compatible
query I rowsort label-7831
SELECT - + 80 * + 88 + + ( - - MIN ( + 59 ) ) + - 71 * 14
----
-7975

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7833
SELECT - COUNT( * ) DIV - + NULLIF ( - 70, - 12 + - 65 * 64 ) DIV + 9 + - ( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-7833
SELECT - COUNT ( * ) / - + NULLIF ( - 70, - 12 + - 65 * 64 ) / + 9 + - ( 22 )
----
-22

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

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

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

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

query I rowsort
SELECT DISTINCT - 28 + + 98 - + 10 * - CASE + 94 WHEN + 3 THEN + 32 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT DISTINCT - - 19 + 66 - + COALESCE ( - 19, - COUNT( * ) )
----
104

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT - - 19 + 66 - + COALESCE ( - 19, - COUNT ( * ) )
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7838
SELECT COUNT( - ( + 48 ) ) AS col2, 13 DIV + 17 + + 1 * - 81 AS col0
----
1
-81

skipif mysql # not compatible
query II rowsort label-7838
SELECT COUNT ( - ( + 48 ) ) AS col2, 13 / + 17 + + 1 * - 81 AS col0
----
1
-81

query I rowsort
SELECT ALL - 78 + + ( + 50 ) * - ( - 9 )
----
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT 38 - + SUM( - 82 ) + + CAST( NULLIF ( - 10, AVG ( 89 ) ) AS SIGNED ) + ( - 11 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7840
SELECT 38 - + SUM ( - 82 ) + + CAST ( NULLIF ( - 10, AVG ( 89 ) ) AS INTEGER ) + ( - 11 ) AS col0
----
99

query II rowsort
SELECT - 83 AS col0, - 60 * - + 56 * - 22 AS col1
----
-83
-73920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT DISTINCT - 26 * + + COUNT( * ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT - 26 * + + COUNT ( * ) col1
----
-26

query I rowsort
SELECT DISTINCT - + 64 * - 87 + 74 - - 75 * 5
----
6017

query I rowsort
SELECT DISTINCT + 49 - + 36
----
13

query II rowsort
SELECT 59 col2, 58 AS col0
----
59
58

query I rowsort
SELECT ALL + 31 - - - 94
----
-63

query II rowsort
SELECT ALL 37, - 66 AS col2
----
37
-66

query II rowsort
SELECT 45 AS col2, 29 AS col1
----
45
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT CASE 6 WHEN 25 THEN CASE 13 WHEN - 69 * COUNT( * ) THEN NULL WHEN 13 THEN - 61 END ELSE 57 END + + CASE + 38 WHEN ( 68 ) THEN NULL WHEN 41 * 11 THEN 18 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT CASE 6 WHEN 25 THEN CASE 13 WHEN - 69 * COUNT ( * ) THEN NULL WHEN 13 THEN - 61 END ELSE 57 END + + CASE + 38 WHEN ( 68 ) THEN NULL WHEN 41 * 11 THEN 18 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT NULLIF ( - + 95, + + 55 * - 91 ) * NULLIF ( + 62, 28 - - COUNT( DISTINCT - 39 ) ) * 14
----
-82460

skipif mysql # not compatible
query I rowsort label-7851
SELECT NULLIF ( - + 95, + + 55 * - 91 ) * NULLIF ( + 62, 28 - - COUNT ( DISTINCT - 39 ) ) * 14
----
-82460

query I rowsort
SELECT ALL 29 * - 87 AS col2
----
-2523

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL COUNT( * ) * ( 94 ) * 93 + + SUM( DISTINCT - + 48 ) AS col1
----
8694

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL COUNT ( * ) * ( 94 ) * 93 + + SUM ( DISTINCT - + 48 ) AS col1
----
8694

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT MIN( DISTINCT + - 77 ) * 67 AS col1
----
-5159

skipif mysql # not compatible
query I rowsort label-7854
SELECT MIN ( DISTINCT + - 77 ) * 67 AS col1
----
-5159

query I rowsort
SELECT ALL 23 * + + 83 * 42
----
80178

query I rowsort
SELECT 2 * 70 col0
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7857
SELECT DISTINCT 40 * + COALESCE ( CASE 83 WHEN - 31 + + + 32 * + ( + COUNT( * ) + MIN( 50 - - 54 ) * 90 ) THEN + COUNT( * ) WHEN - CAST( 35 AS SIGNED ) THEN NULL END, + 75 + COUNT( * ) * - 55, + 70 - 96 ) * - NULLIF ( 51 * 75 + + 87 * COALESCE ( 63 DIV + 97 - - 37 DIV + 79, + COUNT( * ) * + 14 + + CASE + 81 WHEN COUNT( * ) THEN NULL WHEN - 39 THEN COUNT( * ) WHEN - CASE 36 WHEN ( + 63 ) THEN - 69 WHEN - 59 - 31 THEN NULL END THEN 30 ELSE NULL END ), + 59 ) AS col2
----
-3060000

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT 40 * + COALESCE ( CASE 83 WHEN - 31 + + + 32 * + ( + COUNT ( * ) + MIN ( 50 - - 54 ) * 90 ) THEN + COUNT ( * ) WHEN - CAST ( 35 AS INTEGER ) THEN NULL END, + 75 + COUNT ( * ) * - 55, + 70 - 96 ) * - NULLIF ( 51 * 75 + + 87 * COALESCE ( 63 / + 97 - - 37 / + 79, + COUNT ( * ) * + 14 + + CASE + 81 WHEN COUNT ( * ) THEN NULL WHEN - 39 THEN COUNT ( * ) WHEN - CASE 36 WHEN ( + 63 ) THEN - 69 WHEN - 59 - 31 THEN NULL END THEN 30 ELSE NULL END ), + 59 ) AS col2
----
-3060000

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7859
SELECT 21 + - + COUNT( * ) AS col2, + 68 AS col0
----
20
68

skipif mysql # not compatible
query II rowsort label-7859
SELECT 21 + - + COUNT ( * ) AS col2, + 68 AS col0
----
20
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL 87 * + COALESCE ( + 80, + 14, + ( - CASE 49 WHEN MIN( + 35 ) THEN NULL ELSE - CASE 53 WHEN 81 THEN COUNT( * ) + + 35 WHEN COUNT( * ) * 31 THEN 9 + 70 * 26 END END ) ) AS col0
----
6960

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL 87 * + COALESCE ( + 80, + 14, + ( - CASE 49 WHEN MIN ( + 35 ) THEN NULL ELSE - CASE 53 WHEN 81 THEN COUNT ( * ) + + 35 WHEN COUNT ( * ) * 31 THEN 9 + 70 * 26 END END ) ) AS col0
----
6960

query I rowsort
SELECT 92 * - 45
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT 27 * + - COUNT( * ) * - COALESCE ( 98, 52, + MAX( ALL 76 ) * ( 65 * 8 ) ) col1
----
2646

skipif mysql # not compatible
query I rowsort label-7862
SELECT 27 * + - COUNT ( * ) * - COALESCE ( 98, 52, + MAX ( ALL 76 ) * ( 65 * 8 ) ) col1
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ( + - ( + 42 ) ) + - + COALESCE ( + + SUM( + 77 ), - 32, 39 - 88 * - 87 )
----
-119

skipif mysql # not compatible
query I rowsort label-7863
SELECT ( + - ( + 42 ) ) + - + COALESCE ( + + SUM ( + 77 ), - 32, 39 - 88 * - 87 )
----
-119

query II rowsort
SELECT - 73, 6 col0
----
-73
6

query I rowsort
SELECT ALL 39 + + - 74 + + 12 AS col2
----
-23

query I rowsort
SELECT + 43 + - - ( + 73 ) AS col2
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-7867
SELECT 28, - ( - SUM( DISTINCT + - 42 ) ) AS col2
----
28
-42

skipif mysql # not compatible
query II rowsort label-7867
SELECT 28, - ( - SUM ( DISTINCT + - 42 ) ) AS col2
----
28
-42

query I rowsort
SELECT ALL - - 59 * - + 49 AS col0
----
-2891

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + COALESCE ( 6, ( MIN( ALL + 1 ) ) + + 35 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7869
SELECT + COALESCE ( 6, ( MIN ( ALL + 1 ) ) + + 35 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL 34 * 20 + + 37 + - COUNT( * )
----
716

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL 34 * 20 + + 37 + - COUNT ( * )
----
716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT - 11 * + ( 32 ) * COALESCE ( + COUNT( * ), + - 48 ) + + 42 + + CAST( NULL AS SIGNED ) + + 97 * COALESCE ( 38 + 97, - 88, CASE COUNT( * ) WHEN - 5 THEN NULL WHEN + 56 * ( 80 / COUNT( * ) ) THEN NULL ELSE + 87 END + + COUNT( * ) * 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - 11 * + ( 32 ) * COALESCE ( + COUNT ( * ), + - 48 ) + + 42 + + CAST ( NULL AS INTEGER ) + + 97 * COALESCE ( 38 + 97, - 88, CASE COUNT ( * ) WHEN - 5 THEN NULL WHEN + 56 * ( 80 / COUNT ( * ) ) THEN NULL ELSE + 87 END + + COUNT ( * ) * 23 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7872
SELECT + 38 DIV + 78 + - 76
----
-76

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 38 / + 78 + - 76
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT NULLIF ( + COALESCE ( + 88, + - 0 * + + 71 * - CASE 26 WHEN COUNT( * ) THEN NULL WHEN - 40 DIV ( - 83 * + 20 ) THEN NULL ELSE + 44 END DIV CASE - COUNT( * ) * 61 WHEN - NULLIF ( COUNT( * ), + ( 48 ) + - 23 * - SUM( - 17 + - 34 ) ) + 43 THEN + 27 ELSE NULL END + COUNT( * ) DIV 24 ), 78 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7873
SELECT NULLIF ( + COALESCE ( + 88, + - 0 * + + 71 * - CASE 26 WHEN COUNT ( * ) THEN NULL WHEN - 40 / ( - 83 * + 20 ) THEN NULL ELSE + 44 END / CASE - COUNT ( * ) * 61 WHEN - NULLIF ( COUNT ( * ), + ( 48 ) + - 23 * - SUM ( - 17 + - 34 ) ) + 43 THEN + 27 ELSE NULL END + COUNT ( * ) / 24 ), 78 ) AS col0
----
88

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

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

query II rowsort
SELECT + - 76 AS col0, + 86 * - ( + + 4 )
----
-76
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL - COUNT( CASE - - NULLIF ( - 11, 25 * - 73 ) WHEN 53 THEN 59 * 12 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - COUNT ( CASE - - NULLIF ( - 11, 25 * - 73 ) WHEN 53 THEN 59 * 12 END ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT 41 * 13 * + COUNT( * ) + ( 44 )
----
577

skipif mysql # not compatible
query I rowsort label-7877
SELECT 41 * 13 * + COUNT ( * ) + ( 44 )
----
577

query I rowsort
SELECT 66 * + 58 + + - 87 + 78 + - 73 * + + 87 * + 2
----
-8883

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT - CASE + 44 WHEN - 16 THEN NULL WHEN ( + + 92 ) * + 49 THEN 83 ELSE + 60 END - + 72 * - NULLIF ( + 48 DIV 96, + 25 + 45 * + 24 )
----
-60

skipif mysql # not compatible
query I rowsort label-7879
SELECT - CASE + 44 WHEN - 16 THEN NULL WHEN ( + + 92 ) * + 49 THEN 83 ELSE + 60 END - + 72 * - NULLIF ( + 48 / 96, + 25 + 45 * + 24 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT - COALESCE ( - + 0, - - 36 DIV - + 4 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT - COALESCE ( - + 0, - - 36 / - + 4 ) AS col2
----
0

query II rowsort
SELECT ALL + 43 col1, + ( + 11 ) AS col0
----
43
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7882
SELECT - + 17 * - - COUNT( * ) * - 43 * + + 98 + + COALESCE ( + COALESCE ( + 76, - NULLIF ( - ( - COUNT( * ) ), 8 * - 28 ) ), CASE + 32 WHEN - 1 / + CASE + 45 WHEN 78 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 74 END + 97 * 85 THEN NULL WHEN 49 * - CAST( NULL AS DECIMAL ) THEN 80 * COALESCE ( + 99, + 90, 92 ) + ( - ( + 61 ) ) END ) - 32 AS col0
----
71682

skipif mysql # not compatible
query I rowsort label-7882
SELECT - + 17 * - - COUNT ( * ) * - 43 * + + 98 + + COALESCE ( + COALESCE ( + 76, - NULLIF ( - ( - COUNT ( * ) ), 8 * - 28 ) ), CASE + 32 WHEN - 1 / + CASE + 45 WHEN 78 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 74 END + 97 * 85 THEN NULL WHEN 49 * - CAST ( NULL AS REAL ) THEN 80 * COALESCE ( + 99, + 90, 92 ) + ( - ( + 61 ) ) END ) - 32 AS col0
----
71682

onlyif mysql # DIV for integer division: 
query I rowsort label-7883
SELECT ALL + - 66 DIV - 71 * + 24
----
0

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + - 66 / - 71 * + 24
----
0

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

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

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

query II rowsort
SELECT ALL + - 52, 50 AS col0
----
-52
50

query I rowsort
SELECT 25 * - 45 + - 49 AS col1
----
-1174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT - CAST( + + 25 AS SIGNED ) + + + 57 * + 64
----
3623

skipif mysql # not compatible
query I rowsort label-7888
SELECT - CAST ( + + 25 AS INTEGER ) + + + 57 * + 64
----
3623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT ALL NULLIF ( + 72, - 96 * 23 * - - COALESCE ( 20, - - 53 * CAST( NULL AS SIGNED ) + + 62 * 9, - 82 * 25 ) + + 63 * 24 )
----
72

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL NULLIF ( + 72, - 96 * 23 * - - COALESCE ( 20, - - 53 * CAST ( NULL AS INTEGER ) + + 62 * 9, - 82 * 25 ) + + 63 * 24 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT DISTINCT CASE + 46 WHEN + + 40 THEN - 14 ELSE + 90 + - + 44 + + + SUM( ALL + 91 ) + ( - NULLIF ( 72, + ( NULLIF ( + ( 61 ), COALESCE ( AVG ( ALL 23 ), 36 * 50 ) ) ) + + CAST( 82 AS SIGNED ) ) ) * ( + 17 ) * 0 * 0 END AS col2
----
137

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT CASE + 46 WHEN + + 40 THEN - 14 ELSE + 90 + - + 44 + + + SUM ( ALL + 91 ) + ( - NULLIF ( 72, + ( NULLIF ( + ( 61 ), COALESCE ( AVG ( ALL 23 ), 36 * 50 ) ) ) + + CAST ( 82 AS INTEGER ) ) ) * ( + 17 ) * 0 * 0 END AS col2
----
137

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - 76 * - - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - 76 * - - 55 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT ALL CASE - - 73 WHEN 17 * + 53 + - 16 / COUNT( - + 67 ) / SUM( 42 * + 78 ) THEN CAST( NULL AS SIGNED ) ELSE NULL END + 21 * 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL CASE - - 73 WHEN 17 * + 53 + - 16 / COUNT ( - + 67 ) / SUM ( 42 * + 78 ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END + 21 * 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT - MAX( DISTINCT 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7896
SELECT - MAX ( DISTINCT 21 ) AS col0
----
-21

query II rowsort
SELECT DISTINCT ( 76 ) AS col2, 58 AS col1
----
76
58

query I rowsort
SELECT - NULLIF ( + 42, - 0 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL NULLIF ( COUNT( * ), - COUNT( * ) ) + 32 * - 44 + + 39 * - 37 * - 82 col1
----
116919

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL NULLIF ( COUNT ( * ), - COUNT ( * ) ) + 32 * - 44 + + 39 * - 37 * - 82 col1
----
116919

query I rowsort
SELECT - 46 - + 78 * + 80 + 50 AS col2
----
-6236

query III rowsort
SELECT + 22 - - + ( - - 57 ), + ( - - 54 ) AS col1, + + 87 AS col2
----
79
54
87

query II rowsort
SELECT DISTINCT 76 * 73 AS col0, 63 + - 97
----
5548
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7903
SELECT + - COUNT( * ) / - ( - 77 ) * ( - CASE - - COUNT( * ) WHEN - 15 - 54 THEN 17 * + ( - 70 ) + 59 WHEN - CAST( 98 AS DECIMAL ) + COALESCE ( MAX( - CAST( NULL AS SIGNED ) ) + - 84, - 19 ) * 65 THEN NULL END ) + - 0 + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT + - COUNT ( * ) / - ( - 77 ) * ( - CASE - - COUNT ( * ) WHEN - 15 - 54 THEN 17 * + ( - 70 ) + 59 WHEN - CAST ( 98 AS REAL ) + COALESCE ( MAX ( - CAST ( NULL AS INTEGER ) ) + - 84, - 19 ) * 65 THEN NULL END ) + - 0 + + 4
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT ALL + 53 + - ( + - ( + + COUNT( - ( - + 95 ) ) ) ) col1
----
54

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL + 53 + - ( + - ( + + COUNT ( - ( - + 95 ) ) ) ) col1
----
54

query II rowsort
SELECT ( 25 ), 49 * - 25 + - 55 col0
----
25
-1280

query II rowsort
SELECT + 81 - - - 53 AS col1, - 13 AS col0
----
28
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL SUM( - 24 ) * - ( + - 68 )
----
-1632

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL SUM ( - 24 ) * - ( + - 68 )
----
-1632

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7910
SELECT + - COALESCE ( + 61, - COUNT( * ) * 66 DIV - 35 * - 2 * 85 * - ( - CAST( NULL AS SIGNED ) * + 27 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-7910
SELECT + - COALESCE ( + 61, - COUNT ( * ) * 66 / - 35 * - 2 * 85 * - ( - CAST ( NULL AS INTEGER ) * + 27 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT + 95 * - COUNT( - 63 )
----
-95

skipif mysql # not compatible
query I rowsort label-7911
SELECT + 95 * - COUNT ( - 63 )
----
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7912
SELECT ALL 52 DIV - CAST( + 78 AS SIGNED ) - + 11
----
-11

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL 52 / - CAST ( + 78 AS INTEGER ) - + 11
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7913
SELECT + 43 * + 76 + + 53 + + 78 * + COUNT( * ) + - COUNT( * ) * + - 84 * 52 + - NULLIF ( + 90, - CASE CAST( 5 AS SIGNED ) WHEN + 57 THEN NULL WHEN 64 + - 18 THEN CAST( - 94 AS SIGNED ) ELSE 85 END )
----
7677

skipif mysql # not compatible
query I rowsort label-7913
SELECT + 43 * + 76 + + 53 + + 78 * + COUNT ( * ) + - COUNT ( * ) * + - 84 * 52 + - NULLIF ( + 90, - CASE CAST ( 5 AS INTEGER ) WHEN + 57 THEN NULL WHEN 64 + - 18 THEN CAST ( - 94 AS INTEGER ) ELSE 85 END )
----
7677

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT + 56 DIV - 59 + 68 * + 12 AS col2
----
816

skipif mysql # not compatible
query I rowsort label-7914
SELECT + 56 / - 59 + 68 * + 12 AS col2
----
816

query I rowsort
SELECT ALL 60 * - 64 * 6 - 61 AS col1
----
-23101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT DISTINCT + 93 * + 42 + - CAST( + - 8 AS SIGNED ) * 54 * - COUNT( * ) * 5 * - 61
----
135666

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT + 93 * + 42 + - CAST ( + - 8 AS INTEGER ) * 54 * - COUNT ( * ) * 5 * - 61
----
135666

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT 96 * - + 16 * + 3 * COUNT( * ) * 44 * + COUNT( * ) + - 26 + 63 + - 96
----
-202811

skipif mysql # not compatible
query I rowsort label-7918
SELECT 96 * - + 16 * + 3 * COUNT ( * ) * 44 * + COUNT ( * ) + - 26 + 63 + - 96
----
-202811

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT + NULLIF ( - + 14, 23 + + COUNT( * ) ) * + - 60 * - COUNT( * ) + + - 96 * + ( + 39 ) AS col1
----
-4584

skipif mysql # not compatible
query I rowsort label-7919
SELECT + NULLIF ( - + 14, 23 + + COUNT ( * ) ) * + - 60 * - COUNT ( * ) + + - 96 * + ( + 39 ) AS col1
----
-4584

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT - 48 * + + CASE + 12 WHEN - ( - COUNT( * ) ) THEN - NULLIF ( 4, + 65 * + 16 - COALESCE ( + 51, COALESCE ( - 70, 95 / 0 ) + 16 ) ) WHEN 75 THEN - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT - 48 * + + CASE + 12 WHEN - ( - COUNT ( * ) ) THEN - NULLIF ( 4, + 65 * + 16 - COALESCE ( + 51, COALESCE ( - 70, 95 / 0 ) + 16 ) ) WHEN 75 THEN - 83 END
----
NULL

query I rowsort
SELECT ALL + 41 * - 80
----
-3280

query I rowsort
SELECT + ( + 54 ) + + 63 * - - 16
----
1062

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

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

query I rowsort
SELECT ALL 2 * - 32 + 59 * + 69 * + NULLIF ( 38, - 93 + + + 76 )
----
154634

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

query I rowsort
SELECT NULLIF ( 84, - - 89 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT ALL - 97 * + - CAST( COUNT( * ) AS SIGNED ) + ( - + CASE - AVG ( + 37 ) WHEN + COUNT( * ) THEN + 87 + COUNT( * ) * + 11 END ) * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL - 97 * + - CAST ( COUNT ( * ) AS INTEGER ) + ( - + CASE - AVG ( + 37 ) WHEN + COUNT ( * ) THEN + 87 + COUNT ( * ) * + 11 END ) * 47 AS col2
----
NULL

query I rowsort
SELECT - 6 - - 86
----
80

query I rowsort
SELECT ALL CASE + 88 WHEN 10 * + ( + - 86 ) * ( - + 10 ) THEN + - 53 ELSE 99 END
----
99

query I rowsort
SELECT + 76 + 11
----
87

query I rowsort
SELECT - 82 - + 38
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT ALL ( - ( + - ( ( - CAST( + - CASE - 61 WHEN + + 2 THEN 13 ELSE + CASE 93 WHEN 64 * ( - COUNT( * ) / 52 ) + 26 THEN 99 + 26 * ( - SUM( 9 ) ) ELSE 83 * 88 END END AS SIGNED ) ) ) ) )
----
7304

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL ( - ( + - ( ( - CAST ( + - CASE - 61 WHEN + + 2 THEN 13 ELSE + CASE 93 WHEN 64 * ( - COUNT ( * ) / 52 ) + 26 THEN 99 + 26 * ( - SUM ( 9 ) ) ELSE 83 * 88 END END AS INTEGER ) ) ) ) )
----
7304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7933
SELECT ALL + 20 * - + CASE SUM( ALL + 9 ) WHEN - ( 88 ) THEN NULL WHEN + 61 THEN NULL ELSE - 68 DIV COUNT( * ) + + 48 * - 26 END + 63
----
26383

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + 20 * - + CASE SUM ( ALL + 9 ) WHEN - ( 88 ) THEN NULL WHEN + 61 THEN NULL ELSE - 68 / COUNT ( * ) + + 48 * - 26 END + 63
----
26383

query I rowsort
SELECT - 70 * + 76 * - - CASE - - 27 WHEN - CASE - 70 WHEN + - 43 THEN + 4 + + 91 WHEN + 2 THEN NULL END THEN - 42 * 11 WHEN - 13 THEN NULL ELSE NULL END + 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT - 34 DIV 12 * 7
----
-14

skipif mysql # not compatible
query I rowsort label-7935
SELECT - 34 / 12 * 7
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL - SUM( ALL 34 ) + + - COUNT( * ) * 50 + 44 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - SUM ( ALL 34 ) + + - COUNT ( * ) * 50 + 44 AS col2
----
-40

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL - 79 + + 37 + - + CAST( 3 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - 79 + + 37 + - + CAST ( 3 AS INTEGER )
----
-45

query II rowsort
SELECT - - 67, - 5 * 17 AS col1
----
67
-85

query I rowsort
SELECT + CASE + 97 WHEN + 92 THEN + 86 WHEN + ( - + 82 ) * + 43 THEN NULL END AS col2
----
NULL

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

query I rowsort
SELECT - + 16 * + + 29
----
-464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7946
SELECT + - COALESCE ( - ( SUM( ALL + 61 ) ), + COUNT( * ) ) * 2 * + + 23 + + COALESCE ( + 71, NULLIF ( MIN( 57 ), - MAX( 34 ) ) DIV 61, CAST( NULL AS SIGNED ) ) * COUNT( * )
----
2877

skipif mysql # not compatible
query I rowsort label-7946
SELECT + - COALESCE ( - ( SUM ( ALL + 61 ) ), + COUNT ( * ) ) * 2 * + + 23 + + COALESCE ( + 71, NULLIF ( MIN ( 57 ), - MAX ( 34 ) ) / 61, CAST ( NULL AS INTEGER ) ) * COUNT ( * )
----
2877

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT - ( + ( - 56 ) ) + - NULLIF ( - 23, - 67 ) + - COUNT( * ) * - + ( + COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-7947
SELECT - ( + ( - 56 ) ) + - NULLIF ( - 23, - 67 ) + - COUNT ( * ) * - + ( + COUNT ( * ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT ALL 85 * + MAX( - - ( 7 ) ) * - 94 + - + 51 + 22
----
-55959

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL 85 * + MAX ( - - ( 7 ) ) * - 94 + - + 51 + 22
----
-55959

query I rowsort
SELECT 36 * + 50 AS col2
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT 94 * 37 - - COUNT( * )
----
3479

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT 94 * 37 - - COUNT ( * )
----
3479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7951
SELECT ALL ( + 24 ) * + MAX( CAST( NULL AS SIGNED ) ) * + + 84 * + - 86 / 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL ( + 24 ) * + MAX ( CAST ( NULL AS INTEGER ) ) * + + 84 * + - 86 / 80
----
NULL

query I rowsort
SELECT DISTINCT - + 47 col2
----
-47

query I rowsort
SELECT ALL 51 * - 60 col0
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT 16 * 79 - + + 25 DIV + - 97
----
1264

skipif mysql # not compatible
query I rowsort label-7954
SELECT 16 * 79 - + + 25 / + - 97
----
1264

query I rowsort
SELECT 6 + - 8 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT + 48 DIV 59 DIV ( - 86 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT + 48 / 59 / ( - 86 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT - 99 * + NULLIF ( - + 65, NULLIF ( COALESCE ( + CAST( NULL AS SIGNED ), - ( COALESCE ( - ( - COALESCE ( 65, 29 ) ), CAST( 29 AS SIGNED ) ) ) - 56 ), + CASE 12 WHEN 79 / + 40 THEN + COUNT( * ) END + + CAST( NULL AS SIGNED ) ) ) + 10 AS col0
----
6445

skipif mysql # not compatible
query I rowsort label-7957
SELECT - 99 * + NULLIF ( - + 65, NULLIF ( COALESCE ( + CAST ( NULL AS INTEGER ), - ( COALESCE ( - ( - COALESCE ( 65, 29 ) ), CAST ( 29 AS INTEGER ) ) ) - 56 ), + CASE 12 WHEN 79 / + 40 THEN + COUNT ( * ) END + + CAST ( NULL AS INTEGER ) ) ) + 10 AS col0
----
6445

query I rowsort
SELECT DISTINCT - 27 + 32
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7959
SELECT ALL 42 + COUNT( * ) AS col2, + COALESCE ( + + 5, - - 41 + - ( - - 28 ) ) + + COUNT( DISTINCT - 63 ) AS col1
----
43
6

skipif mysql # not compatible
query II rowsort label-7959
SELECT ALL 42 + COUNT ( * ) AS col2, + COALESCE ( + + 5, - - 41 + - ( - - 28 ) ) + + COUNT ( DISTINCT - 63 ) AS col1
----
43
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT DISTINCT CASE + COALESCE ( + 25, - - 90 * + AVG ( + ( - 52 ) ) - 96 ) WHEN + 21 THEN - 44 * + 65 END + - CASE WHEN NOT COUNT( * ) + 66 BETWEEN NULL AND NULL THEN COUNT( * ) ELSE 23 END * + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT CASE + COALESCE ( + 25, - - 90 * + AVG ( + ( - 52 ) ) - 96 ) WHEN + 21 THEN - 44 * + 65 END + - CASE WHEN NOT COUNT ( * ) + 66 BETWEEN NULL AND NULL THEN COUNT ( * ) ELSE 23 END * + 69 AS col0
----
NULL

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

query I rowsort
SELECT - 60 * - 89 + - 65
----
5275

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT DISTINCT + 1 * + 32 DIV 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + 1 * + 32 / 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT NULLIF ( + + ( - 60 ), ( + + 34 ) ) + + SUM( + 44 ) + + - 86 * + 11 AS col1
----
-962

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT NULLIF ( + + ( - 60 ), ( + + 34 ) ) + + SUM ( + 44 ) + + - 86 * + 11 AS col1
----
-962

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT 2 * + - COUNT( + 23 ) * + 28 + 77 * + + 88 + - - 11 AS col2
----
6731

skipif mysql # not compatible
query I rowsort label-7966
SELECT 2 * + - COUNT ( + 23 ) * + 28 + 77 * + + 88 + - - 11 AS col2
----
6731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT DISTINCT - CAST( + + AVG ( + - 41 ) AS SIGNED ) + + 96 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - CAST ( + + AVG ( + - 41 ) AS INTEGER ) + + 96 AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL 28 + - - ( + + ( + 54 ) ) + + MIN( DISTINCT - - 3 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL 28 + - - ( + + ( + 54 ) ) + + MIN ( DISTINCT - - 3 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL + 11 - + 86 + 81 + + + 31 + + 27 * - CASE - 43 WHEN 37 THEN - 61 ELSE 28 * + 53 END + COUNT( * )
----
-40030

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + 11 - + 86 + 81 + + + 31 + + 27 * - CASE - 43 WHEN 37 THEN - 61 ELSE 28 * + 53 END + COUNT ( * )
----
-40030

query I rowsort
SELECT ALL - 48 - + + 22 AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7971
SELECT 46 DIV - SUM( 86 )
----
0

skipif mysql # not compatible
query I rowsort label-7971
SELECT 46 / - SUM ( 86 )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT ALL - 39 DIV - + ( - - 44 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - 39 / - + ( - - 44 ) AS col2
----
0

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

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

query I rowsort
SELECT 72 * + - 43 * - 36 + - + 43
----
111413

query I rowsort
SELECT ALL + 59 * 16 * + + 57 AS col1
----
53808

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

skipif mysql # not compatible
query I rowsort label-7978
SELECT - COUNT ( * ) - + 22 / + COUNT ( * )
----
-23

query I rowsort
SELECT ALL - 10 * - - ( + - ( 95 ) ) * + - 5 AS col1
----
-4750

query II rowsort
SELECT 51 * - + 90 AS col1, 53
----
-4590
53

query I rowsort
SELECT ALL - 99 * + 80 AS col1
----
-7920

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT DISTINCT - 66 * 62 DIV - 59
----
69

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT - 66 * 62 / - 59
----
69

query II rowsort
SELECT 0 + + 83, + 97 AS col1
----
83
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7985
SELECT ALL - - 55 + + COALESCE ( + 20, 1 ) AS col2, COUNT( * ) + CASE 48 WHEN 68 THEN NULL ELSE + + CASE - 13 WHEN - ( 84 ) THEN COUNT( * ) WHEN 41 + + ( COUNT( * ) ) THEN NULL END END AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-7985
SELECT ALL - - 55 + + COALESCE ( + 20, 1 ) AS col2, COUNT ( * ) + CASE 48 WHEN 68 THEN NULL ELSE + + CASE - 13 WHEN - ( 84 ) THEN COUNT ( * ) WHEN 41 + + ( COUNT ( * ) ) THEN NULL END END AS col1
----
75
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7986
SELECT - COALESCE ( - + 46, + ( - 72 ) DIV - 70 - + COUNT( * ) * - SUM( ALL - 50 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7986
SELECT - COALESCE ( - + 46, + ( - 72 ) / - 70 - + COUNT ( * ) * - SUM ( ALL - 50 ) ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT - CASE - 45 WHEN - + 28 THEN + 61 + - COUNT( * ) WHEN + - 43 THEN NULL END * + 91 + COUNT( * ) + + ( + NULLIF ( + 13, - 15 - 65 ) ) * 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT - CASE - 45 WHEN - + 28 THEN + 61 + - COUNT ( * ) WHEN + - 43 THEN NULL END * + 91 + COUNT ( * ) + + ( + NULLIF ( + 13, - 15 - 65 ) ) * 3 AS col2
----
NULL

query I rowsort
SELECT ALL - + 63 + - 76 * - 82
----
6169

query I rowsort
SELECT DISTINCT 65 + 26 AS col0
----
91

query I rowsort
SELECT ALL 83 * - 8
----
-664

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7992
SELECT ALL - COUNT( * ) + + 73 + - ( COUNT( ALL - - 32 ) ) - - - 17 DIV 39 - - 78 * COUNT( * ) AS col2
----
149

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - COUNT ( * ) + + 73 + - ( COUNT ( ALL - - 32 ) ) - - - 17 / 39 - - 78 * COUNT ( * ) AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT 12 * - SUM( - CASE WHEN NOT NULL IS NULL THEN + ( + 82 ) ELSE + - 97 END )
----
-1164

skipif mysql # not compatible
query I rowsort label-7993
SELECT 12 * - SUM ( - CASE WHEN NOT NULL IS NULL THEN + ( + 82 ) ELSE + - 97 END )
----
-1164

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

skipif mysql # not compatible
query I rowsort label-7994
SELECT COUNT ( - 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT 42 * - 67 - + + 14 * - COALESCE ( 73, - + ( - COALESCE ( + - ( + + ( - 45 ) ), - CASE - COUNT( DISTINCT 99 ) WHEN + 2 THEN COUNT( * ) + 85 ELSE NULL END ) ) * - ( + 10 * 44 ) ) * - 41
----
-44716

skipif mysql # not compatible
query I rowsort label-7995
SELECT 42 * - 67 - + + 14 * - COALESCE ( 73, - + ( - COALESCE ( + - ( + + ( - 45 ) ), - CASE - COUNT ( DISTINCT 99 ) WHEN + 2 THEN COUNT ( * ) + 85 ELSE NULL END ) ) * - ( + 10 * 44 ) ) * - 41
----
-44716

query I rowsort
SELECT - 37 * 38 + - 68 + - 80
----
-1554

query I rowsort
SELECT ALL + 79 - + 16 - 48 AS col1
----
15

query I rowsort
SELECT 37 * 23
----
851

query II rowsort
SELECT ALL - 75 AS col1, 81
----
-75
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT COALESCE ( - 18, 51, + 61 ) - - CAST( NULL AS SIGNED ) + - 33 * 98 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT COALESCE ( - 18, 51, + 61 ) - - CAST ( NULL AS INTEGER ) + - 33 * 98 * 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8001
SELECT 52 * - - MAX( - NULLIF ( 56, - 59 ) ) + - 59 + 69 + + 0 AS col2, 70 + - 44
----
-2902
26

skipif mysql # not compatible
query II rowsort label-8001
SELECT 52 * - - MAX ( - NULLIF ( 56, - 59 ) ) + - 59 + 69 + + 0 AS col2, 70 + - 44
----
-2902
26

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

query I rowsort
SELECT ALL 75 - + 63 AS col0
----
12

query II rowsort
SELECT 63 AS col2, 64 + + 46
----
63
110

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT - 70 DIV - - 23 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8005
SELECT - 70 / - - 23 AS col2
----
-3

query II rowsort
SELECT + 14 + + + CASE + 13 WHEN - + 98 * + 60 THEN + 94 END AS col2, + 18 AS col0
----
NULL
18

query I rowsort
SELECT DISTINCT 88 * + + 97 AS col1
----
8536

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + COALESCE ( - - 84, + 59 ) + + CASE 82 WHEN 25 THEN NULL WHEN 0 * COUNT( * ) - + 57 * 2 THEN 92 END * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT + COALESCE ( - - 84, + 59 ) + + CASE 82 WHEN 25 THEN NULL WHEN 0 * COUNT ( * ) - + 57 * 2 THEN 92 END * 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ALL SUM( + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL SUM ( + 0 ) AS col0
----
0

query II rowsort
SELECT + + ( + 43 ) * - - 85 AS col0, 2
----
3655
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8011
SELECT - 73 DIV - - 90
----
0

skipif mysql # not compatible
query I rowsort label-8011
SELECT - 73 / - - 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT - - COALESCE ( - COUNT( ALL - - 84 ), 71, 94 * 90 * + 20 ) + - CAST( - - 74 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-8012
SELECT - - COALESCE ( - COUNT ( ALL - - 84 ), 71, 94 * 90 * + 20 ) + - CAST ( - - 74 AS INTEGER )
----
-75

query I rowsort
SELECT ALL - 3 + + - 29 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT ALL - - NULLIF ( + CAST( NULL AS SIGNED ), 96 / - + CAST( 56 AS SIGNED ) + + 65 ) + + NULLIF ( SUM( DISTINCT 53 ), + + 29 ) + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL - - NULLIF ( + CAST ( NULL AS INTEGER ), 96 / - + CAST ( 56 AS INTEGER ) + + 65 ) + + NULLIF ( SUM ( DISTINCT 53 ), + + 29 ) + 3 AS col0
----
NULL

query I rowsort
SELECT - 30 * + 88
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL + NULLIF ( 36, - COUNT( * ) ) * 89
----
3204

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL + NULLIF ( 36, - COUNT ( * ) ) * 89
----
3204

query I rowsort
SELECT - - 7 + - 77
----
-70

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-8019
SELECT DISTINCT + 97, 82 * + 76 AS col1, - ( ( + + 57 ) ) * + COUNT( * ) AS col1
----
97
6232
-57

skipif mysql # not compatible
query III rowsort label-8019
SELECT DISTINCT + 97, 82 * + 76 AS col1, - ( ( + + 57 ) ) * + COUNT ( * ) AS col1
----
97
6232
-57

query I rowsort
SELECT ALL - - 89 * - + 97 * 64 * + 91 + 40
----
-50278552

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT ALL + + 22 * - 49 - - + 23 + + - 60 + 18 + 74 + - 39 DIV + 57
----
-1023

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL + + 22 * - 49 - - + 23 + + - 60 + 18 + 74 + - 39 / + 57
----
-1023

query I rowsort
SELECT ALL + COALESCE ( - - 99, - - 98 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT DISTINCT 59 * + - 53 * - COUNT( ALL - 60 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT 59 * + - 53 * - COUNT ( ALL - 60 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT ( - CAST( - + 43 AS SIGNED ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8024
SELECT ( - CAST ( - + 43 AS INTEGER ) ) AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8025
SELECT ALL + 38 * - 73 + - ( COALESCE ( - 26, - + 58, 41 * - CASE 20 WHEN + 9 DIV - MIN( 12 ) + 87 + 96 * - 70 THEN 54 + ( 64 ) WHEN 5 + 30 THEN NULL ELSE NULL END ) ) + - ( + 57 ) DIV + 91 * COALESCE ( + ( + 97 ) * 12, 63, 8 DIV + COUNT( * ) )
----
-2748

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL + 38 * - 73 + - ( COALESCE ( - 26, - + 58, 41 * - CASE 20 WHEN + 9 / - MIN ( 12 ) + 87 + 96 * - 70 THEN 54 + ( 64 ) WHEN 5 + 30 THEN NULL ELSE NULL END ) ) + - ( + 57 ) / + 91 * COALESCE ( + ( + 97 ) * 12, 63, 8 / + COUNT ( * ) )
----
-2748

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ALL + ( + MIN( DISTINCT 11 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL + ( + MIN ( DISTINCT 11 ) ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-8027
SELECT + 88 AS col0, 90 DIV - 71
----
88
-1

skipif mysql # not compatible
query II rowsort label-8027
SELECT + 88 AS col0, 90 / - 71
----
88
-1

query I rowsort
SELECT - 59 + - + 86
----
-145

query I rowsort
SELECT - 52 * - + 8 + - - ( + 15 ) + - - 57 col1
----
488

query I rowsort
SELECT - 29 * - - 53 AS col2
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ALL + MIN( ALL 28 )
----
28

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL + MIN ( ALL 28 )
----
28

query I rowsort
SELECT 47 * - + 53 + - 46 + + - ( + + 68 )
----
-2605

query I rowsort
SELECT 10 * + + 33 * + 87 + - - 11 - 89 AS col1
----
28632

query I rowsort
SELECT NULLIF ( - 57, + 74 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL - 22 * COUNT( * ) - + + 80
----
-102

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL - 22 * COUNT ( * ) - + + 80
----
-102

query I rowsort
SELECT COALESCE ( + 32, - 11 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8037
SELECT ALL + 75 AS col0, 29 + - COUNT( * ) DIV + 51
----
75
29

skipif mysql # not compatible
query II rowsort label-8037
SELECT ALL + 75 AS col0, 29 + - COUNT ( * ) / + 51
----
75
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8038
SELECT DISTINCT + MIN( + 6 ) DIV + - 31 - 36 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT + MIN ( + 6 ) / + - 31 - 36 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + COUNT( DISTINCT - + 73 ) * - 49
----
-49

skipif mysql # not compatible
query I rowsort label-8039
SELECT + COUNT ( DISTINCT - + 73 ) * - 49
----
-49

query I rowsort
SELECT - 63 * + 53
----
-3339

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT + ( + - 81 ) * + - 27 + - + 50 * - + COUNT( * ) + - COUNT( * ) + 5 * + 7 AS col1
----
2271

skipif mysql # not compatible
query I rowsort label-8041
SELECT + ( + - 81 ) * + - 27 + - + 50 * - + COUNT ( * ) + - COUNT ( * ) + 5 * + 7 AS col1
----
2271

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT - 81 DIV 34 * + 82 col2
----
-164

skipif mysql # not compatible
query I rowsort label-8042
SELECT - 81 / 34 * + 82 col2
----
-164

query I rowsort
SELECT + 63 * + 27 AS col1
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT + COALESCE ( - COUNT( * ), - 9 * ( - + 53 ) + - 74 + - 79 * - 15 ) * 8 col1
----
-8

skipif mysql # not compatible
query I rowsort label-8044
SELECT + COALESCE ( - COUNT ( * ), - 9 * ( - + 53 ) + - 74 + - 79 * - 15 ) * 8 col1
----
-8

query II rowsort
SELECT - 57, 66 AS col0
----
-57
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8046
SELECT DISTINCT 2 AS col1, - 33 * + COUNT( * )
----
2
-33

skipif mysql # not compatible
query II rowsort label-8046
SELECT DISTINCT 2 AS col1, - 33 * + COUNT ( * )
----
2
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8047
SELECT - 41 AS col2, COUNT( * ) + + 66 AS col1
----
-41
67

skipif mysql # not compatible
query II rowsort label-8047
SELECT - 41 AS col2, COUNT ( * ) + + 66 AS col1
----
-41
67

query I rowsort
SELECT + + 4 * + 37 * 12 * + 30 col0
----
53280

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT - + 35, 73 + - COUNT( * ) AS col1
----
-35
72

skipif mysql # not compatible
query II rowsort label-8049
SELECT - + 35, 73 + - COUNT ( * ) AS col1
----
-35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - 74 * + ( - - ( + + CASE 87 WHEN + - COUNT( ALL + - 31 ) THEN - 0 - 41 + + + 81 - COUNT( * ) * + COUNT( ALL + 34 ) ELSE 82 END ) ) AS col1
----
-6068

skipif mysql # not compatible
query I rowsort label-8050
SELECT - 74 * + ( - - ( + + CASE 87 WHEN + - COUNT ( ALL + - 31 ) THEN - 0 - 41 + + + 81 - COUNT ( * ) * + COUNT ( ALL + 34 ) ELSE 82 END ) ) AS col1
----
-6068

query I rowsort
SELECT DISTINCT 22 * - 63
----
-1386

query I rowsort
SELECT + 1 - 33 AS col0
----
-32

query II rowsort
SELECT 62, 54 AS col2
----
62
54

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

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

query I rowsort
SELECT ALL 45 + + 53 AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8056
SELECT + + 52 - - 82 + + - 39 - 33 + - - 61 + - + COUNT( * ) DIV - - 49
----
123

skipif mysql # not compatible
query I rowsort label-8056
SELECT + + 52 - - 82 + + - 39 - 33 + - - 61 + - + COUNT ( * ) / - - 49
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT 58 + + COUNT( * ) + - COUNT( * ) + - 48
----
10

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT 58 + + COUNT ( * ) + - COUNT ( * ) + - 48
----
10

query I rowsort
SELECT + - 77 + - 47
----
-124

query I rowsort
SELECT - NULLIF ( + 62, - 59 ) AS col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT ALL COALESCE ( + 3, + NULLIF ( - 28, 70 ) ) * 35 DIV - - 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL COALESCE ( + 3, + NULLIF ( - 28, 70 ) ) * 35 / - - 80 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8061
SELECT ALL - - CAST( NULL AS SIGNED ) + COUNT( * ) * + 41 / - + 4 * - - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL - - CAST ( NULL AS INTEGER ) + COUNT ( * ) * + 41 / - + 4 * - - 51 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 22 + - + 20 AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT DISTINCT - 64 + + COALESCE ( - 82, + - 30, 31 ) + 70 DIV - - 33
----
-144

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT - 64 + + COALESCE ( - 82, + - 30, 31 ) + 70 / - - 33
----
-144

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8065
SELECT DISTINCT COALESCE ( - NULLIF ( + 21, - - 46 * CAST( + 44 AS SIGNED ) ), + ( + MIN( ALL - 49 ) ) ) DIV + 11 + 56 * - + COUNT( * ) * + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT COALESCE ( - NULLIF ( + 21, - - 46 * CAST ( + 44 AS INTEGER ) ), + ( + MIN ( ALL - 49 ) ) ) / + 11 + 56 * - + COUNT ( * ) * + COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-8066
SELECT - COUNT( * ) * + 46 AS col0, 59 * + COUNT( 69 ) AS col2
----
-46
59

skipif mysql # not compatible
query II rowsort label-8066
SELECT - COUNT ( * ) * + 46 AS col0, 59 * + COUNT ( 69 ) AS col2
----
-46
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8067
SELECT DISTINCT - COUNT( * ) DIV 6 - - + COALESCE ( - 80, 0, - 75 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - COUNT ( * ) / 6 - - + COALESCE ( - 80, 0, - 75 ) AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT 60 / - - 53 * ( 97 ) + - - CAST( NULL AS SIGNED ) + + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT 60 / - - 53 * ( 97 ) + - - CAST ( NULL AS INTEGER ) + + - 85 AS col0
----
NULL

query I rowsort
SELECT ALL + 61 * - 59
----
-3599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8070
SELECT - 76 * + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT DISTINCT + COALESCE ( - 45, - 25 ) DIV + - 13 - + - 32
----
35

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + COALESCE ( - 45, - 25 ) / + - 13 - + - 32
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT 89 * COUNT( * ) + + 12
----
101

skipif mysql # not compatible
query I rowsort label-8072
SELECT 89 * COUNT ( * ) + + 12
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT - 40 * MAX( - 44 )
----
1760

skipif mysql # not compatible
query I rowsort label-8073
SELECT - 40 * MAX ( - 44 )
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - COUNT( * ) * + COALESCE ( - - 40, + 69 - + 12, + - 23 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8074
SELECT - COUNT ( * ) * + COALESCE ( - - 40, + 69 - + 12, + - 23 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8075
SELECT 36 + - 24 + CASE - CAST( + 90 AS DECIMAL ) WHEN + 7 THEN - 34 END / - 93 + + COUNT( * ) * + 99 - NULLIF ( - 69, 55 + + ( 95 + 84 ) ) * - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT 36 + - 24 + CASE - CAST ( + 90 AS REAL ) WHEN + 7 THEN - 34 END / - 93 + + COUNT ( * ) * + 99 - NULLIF ( - 69, 55 + + ( 95 + 84 ) ) * - 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8076
SELECT DISTINCT - COALESCE ( - 18, COALESCE ( + COUNT( * ), - + 25 * + 88 * + NULLIF ( - 45, 73 ) ) * - + 99 + - 43 DIV + 25 DIV - 12, + COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT - COALESCE ( - 18, COALESCE ( + COUNT ( * ), - + 25 * + 88 * + NULLIF ( - 45, 73 ) ) * - + 99 + - 43 / + 25 / - 12, + COUNT ( * ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT 46 + + - COUNT( + 28 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8077
SELECT 46 + + - COUNT ( + 28 ) AS col2
----
45

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

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

query I rowsort
SELECT + 90 * 73 * 90 + + 74 + - 63 + - - 80 * 64 * - - 46 * - 7
----
-1057329

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL - + NULLIF ( + 81, COALESCE ( - - COUNT( * ), 5, - 91 ) + SUM( + - 6 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - + NULLIF ( + 81, COALESCE ( - - COUNT ( * ), 5, - 91 ) + SUM ( + - 6 ) )
----
-81

query I rowsort
SELECT - 70 * - 88 * 26 + + 34 AS col1
----
160194

query I rowsort
SELECT ALL - + 61 + 96 - 86
----
-51

query I rowsort
SELECT + 45 * - 72 - - + 27
----
-3213

onlyif mysql # DIV for integer division: 
query II rowsort label-8084
SELECT - 10 DIV 18 + + 68 AS col0, + 12
----
68
12

skipif mysql # not compatible
query II rowsort label-8084
SELECT - 10 / 18 + + 68 AS col0, + 12
----
68
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL 49 + SUM( DISTINCT - - 86 )
----
135

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL 49 + SUM ( DISTINCT - - 86 )
----
135

query I rowsort
SELECT - 19 + - 55
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8087
SELECT ALL + - 49 * - COUNT( * ) AS col0, - NULLIF ( 40, + + COUNT( * ) ) AS col1
----
49
-40

skipif mysql # not compatible
query II rowsort label-8087
SELECT ALL + - 49 * - COUNT ( * ) AS col0, - NULLIF ( 40, + + COUNT ( * ) ) AS col1
----
49
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT + CASE WHEN NOT - 56 >= ( + CASE - 74 WHEN - 2 + + 46 THEN + + 41 ELSE NULL END ) THEN 6 ELSE NULLIF ( + 33, 12 - + COUNT( * ) ) END
----
33

skipif mysql # not compatible
query I rowsort label-8088
SELECT + CASE WHEN NOT - 56 >= ( + CASE - 74 WHEN - 2 + + 46 THEN + + 41 ELSE NULL END ) THEN 6 ELSE NULLIF ( + 33, 12 - + COUNT ( * ) ) END
----
33

query I rowsort
SELECT DISTINCT + 78 * + ( + 10 )
----
780

query I rowsort
SELECT + ( + ( - 46 ) ) + - + 9 + - + 62 + ( + 63 )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT ALL - 87 + 70 - + 88 DIV 79 * - - 56
----
-73

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - 87 + 70 - + 88 / 79 * - - 56
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT DISTINCT - ( - + COALESCE ( + + 99, + 15 * + 26, + 6 ) ) * - CAST( NULL AS SIGNED ) * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT - ( - + COALESCE ( + + 99, + 15 * + 26, + 6 ) ) * - CAST ( NULL AS INTEGER ) * + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8093
SELECT ALL ( - 80 ) DIV + + COUNT( ALL + 58 )
----
-80

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL ( - 80 ) / + + COUNT ( ALL + 58 )
----
-80

query I rowsort
SELECT ALL + ( + 37 ) + 58 AS col2
----
95

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

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT MAX ( DISTINCT 17 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8096
SELECT ALL CASE - + 58 WHEN - MIN( + 78 ) THEN NULL ELSE + 4 END AS col1, + COUNT( * ) + 1 + + 80 + - CAST( NULL AS SIGNED ) * - - 66 + - - ( 24 ) - SUM( + 35 )
----
4
NULL

skipif mysql # not compatible
query II rowsort label-8096
SELECT ALL CASE - + 58 WHEN - MIN ( + 78 ) THEN NULL ELSE + 4 END AS col1, + COUNT ( * ) + 1 + + 80 + - CAST ( NULL AS INTEGER ) * - - 66 + - - ( 24 ) - SUM ( + 35 )
----
4
NULL

query II rowsort
SELECT ( + 21 ), 52 AS col2
----
21
52

query I rowsort
SELECT 44 + - 71 * - ( - + 27 ) AS col2
----
-1873

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8099
SELECT 82 AS col0, 89 + CAST( NULL AS SIGNED ) AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-8099
SELECT 82 AS col0, 89 + CAST ( NULL AS INTEGER ) AS col1
----
82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8100
SELECT ALL CASE WHEN NOT + COUNT( * ) < ( + COALESCE ( - COUNT( * ), NULLIF ( - CAST( 87 AS DECIMAL ), + 78 * 94 ) ) + ( + CASE - - 21 WHEN - 76 DIV - 93 THEN + AVG ( ALL + 12 ) WHEN - ( - 69 ) DIV 47 THEN + 79 * + ( COUNT( * ) ) WHEN COALESCE ( 69, 33 * CAST( NULL AS SIGNED ) - - 82 ) * 85 THEN NULL END ) ) THEN + COUNT( * ) WHEN NOT ( - NULLIF ( 51, NULLIF ( 53, 96 ) ) ) IS NULL THEN - 90 + 80 ELSE 97 DIV COUNT( + 74 * - 38 ) END * 29
----
-290

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL CASE WHEN NOT + COUNT ( * ) < ( + COALESCE ( - COUNT ( * ), NULLIF ( - CAST ( 87 AS REAL ), + 78 * 94 ) ) + ( + CASE - - 21 WHEN - 76 / - 93 THEN + AVG ( ALL + 12 ) WHEN - ( - 69 ) / 47 THEN + 79 * + ( COUNT ( * ) ) WHEN COALESCE ( 69, 33 * CAST ( NULL AS INTEGER ) - - 82 ) * 85 THEN NULL END ) ) THEN + COUNT ( * ) WHEN NOT ( - NULLIF ( 51, NULLIF ( 53, 96 ) ) ) IS NULL THEN - 90 + 80 ELSE 97 / COUNT ( + 74 * - 38 ) END * 29
----
-290

query I rowsort
SELECT 11 + 59 * + NULLIF ( 90, - + 96 )
----
5321

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT ALL + 92 DIV + - 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + 92 / + - 10 AS col1
----
-9

query I rowsort
SELECT ( - - 84 ) + - 32 + 99 AS col2
----
151

query II rowsort
SELECT - 39, 4 col0
----
-39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT - MIN( 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT - MIN ( 82 ) AS col0
----
-82

query I rowsort
SELECT ALL ( 12 ) * - - 79 AS col1
----
948

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

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

query II rowsort
SELECT 62 AS col1, 30
----
62
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT 30 DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT 30 / 96 AS col0
----
0

query I rowsort
SELECT 65 + - ( + 27 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT ALL 52 DIV - COALESCE ( 22, 63 * - 81 - + 26 * - - 26 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL 52 / - COALESCE ( 22, 63 * - 81 - + 26 * - - 26 ) AS col2
----
-2

query II rowsort
SELECT + 10, 88 * - 74 AS col2
----
10
-6512

onlyif mysql # DIV for integer division: 
query II rowsort label-8113
SELECT 79 AS col0, + 81 DIV - 76 AS col0
----
79
-1

skipif mysql # not compatible
query II rowsort label-8113
SELECT 79 AS col0, + 81 / - 76 AS col0
----
79
-1

query I rowsort
SELECT 75 * 32 AS col2
----
2400

query I rowsort
SELECT DISTINCT - 3 * - 51
----
153

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

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

query I rowsort
SELECT 55 * 24 * - 81 * - ( 98 )
----
10478160

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

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

query I rowsort
SELECT + - 41 AS col2
----
-41

query I rowsort
SELECT ALL - - 26 + - - 88 AS col1
----
114

query I rowsort
SELECT ALL - 40 + - 33
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL + 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + 82 * - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT + COUNT( * ) * - + COUNT( * ) * - MIN( ALL + 2 ) * + - 41 + - 3 * + 93 - + 37 AS col1
----
-398

skipif mysql # not compatible
query I rowsort label-8123
SELECT + COUNT ( * ) * - + COUNT ( * ) * - MIN ( ALL + 2 ) * + - 41 + - 3 * + 93 - + 37 AS col1
----
-398

query I rowsort
SELECT + 16 * - - 77 AS col1
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL COUNT( + 38 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL COUNT ( + 38 ) AS col2
----
1

query II rowsort
SELECT DISTINCT 21 col0, 18 + - 43
----
21
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL + 25 + - - 50 + + COUNT( * ) + - + 85 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL + 25 + - - 50 + + COUNT ( * ) + - + 85 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8128
SELECT DISTINCT 83 AS col0, 87 + - + 26 + - - ( - 24 ) * - COUNT( * ) + + - COALESCE ( 68, - - 97 * - 41 - - - MAX( ALL + + 90 ) + + 78 * 63 ) * - 46
----
83
3213

skipif mysql # not compatible
query II rowsort label-8128
SELECT DISTINCT 83 AS col0, 87 + - + 26 + - - ( - 24 ) * - COUNT ( * ) + + - COALESCE ( 68, - - 97 * - 41 - - - MAX ( ALL + + 90 ) + + 78 * 63 ) * - 46
----
83
3213

query I rowsort
SELECT DISTINCT - 33 * 98 + - 88
----
-3322

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT + 63 + COUNT( * ) + + ( - 26 ) * + 71 * + 65 + + + ( + + 89 ) AS col0
----
-119837

skipif mysql # not compatible
query I rowsort label-8130
SELECT + 63 + COUNT ( * ) + + ( - 26 ) * + 71 * + 65 + + + ( + + 89 ) AS col0
----
-119837

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT - + MAX( DISTINCT + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8131
SELECT - + MAX ( DISTINCT + 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ALL - NULLIF ( + COALESCE ( + COUNT( * ), 59, + 42 ), + 45 * - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL - NULLIF ( + COALESCE ( + COUNT ( * ), 59, + 42 ), + 45 * - 14 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT - + CAST( ( - 42 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-8133
SELECT - + CAST ( ( - 42 ) AS INTEGER )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT COUNT( * ) * + 63 + + - 80 + - 78 * + NULLIF ( - + 39, 48 * 99 * - MAX( 98 ) + + 12 )
----
3025

skipif mysql # not compatible
query I rowsort label-8134
SELECT COUNT ( * ) * + 63 + + - 80 + - 78 * + NULLIF ( - + 39, 48 * 99 * - MAX ( 98 ) + + 12 )
----
3025

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - 55 * - ( + - COUNT( DISTINCT + 64 ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8135
SELECT - 55 * - ( + - COUNT ( DISTINCT + 64 ) ) AS col0
----
-55

query I rowsort
SELECT DISTINCT - + 29 * - 82 * + + 14 - - - ( - 61 )
----
33353

query II rowsort
SELECT 15 + + 9, - 62 * + - 70 AS col1
----
24
4340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8138
SELECT DISTINCT + COUNT( * ) * + 18 DIV - - MIN( ALL - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT + COUNT ( * ) * + 18 / - - MIN ( ALL - 88 )
----
0

query I rowsort
SELECT DISTINCT - 51 * + 29
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT 14 + - COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8140
SELECT 14 + - COUNT ( * ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT COUNT( * ) * - + 88, 5 AS col0
----
-88
5

skipif mysql # not compatible
query II rowsort label-8141
SELECT COUNT ( * ) * - + 88, 5 AS col0
----
-88
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - MIN( DISTINCT + + 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-8142
SELECT - MIN ( DISTINCT + + 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + SUM( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-8143
SELECT + SUM ( 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT COALESCE ( + 51, - 1 DIV + COUNT( + + ( - 0 ) ) + - 34 )
----
51

skipif mysql # not compatible
query I rowsort label-8144
SELECT COALESCE ( + 51, - 1 / + COUNT ( + + ( - 0 ) ) + - 34 )
----
51

query I rowsort
SELECT + 22 * - + 16 AS col2
----
-352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT + 34 * - + CAST( - 52 AS SIGNED ) AS col1
----
1768

skipif mysql # not compatible
query I rowsort label-8146
SELECT + 34 * - + CAST ( - 52 AS INTEGER ) AS col1
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT - COUNT( * ) / + 31 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT - COUNT ( * ) / + 31 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8148
SELECT + 1 DIV 68 + - 96 col1
----
-96

skipif mysql # not compatible
query I rowsort label-8148
SELECT + 1 / 68 + - 96 col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8149
SELECT SUM( + 83 ) * + + 40 + - COALESCE ( - 31, - 91 ) DIV 15 + + ( + 25 ) + + 91 * - + 94 * 20 * ( - 78 ) AS col2
----
13347587

skipif mysql # not compatible
query I rowsort label-8149
SELECT SUM ( + 83 ) * + + 40 + - COALESCE ( - 31, - 91 ) / 15 + + ( + 25 ) + + 91 * - + 94 * 20 * ( - 78 ) AS col2
----
13347587

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL + 98 * - ( + SUM( - COALESCE ( + - 6, + - 61 * + - 29 * 34 ) ) ) + 79 * + 64 + + 91 col0
----
4559

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + 98 * - ( + SUM ( - COALESCE ( + - 6, + - 61 * + - 29 * 34 ) ) ) + 79 * + 64 + + 91 col0
----
4559

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT + 54 + 7 AS col0, - ( - + ( - + SUM( ALL + 86 ) ) ) - - 49
----
61
-37

skipif mysql # not compatible
query II rowsort label-8151
SELECT + 54 + 7 AS col0, - ( - + ( - + SUM ( ALL + 86 ) ) ) - - 49
----
61
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT + + MAX( NULLIF ( + CAST( NULL AS SIGNED ), - NULLIF ( - 48, - ( - 69 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT + + MAX ( NULLIF ( + CAST ( NULL AS INTEGER ), - NULLIF ( - 48, - ( - 69 ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8153
SELECT DISTINCT + 18 DIV - COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + 18 / - COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT ALL + 69 * 11 - 49 AS col0
----
710

query I rowsort
SELECT + NULLIF ( - + 30, 15 + - 79 * 42 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT + - CASE + 86 WHEN - + 48 * CAST( NULL AS SIGNED ) THEN + - CASE - 7 WHEN + 79 THEN NULL WHEN - 29 / 47 - 35 THEN + - CAST( NULL AS SIGNED ) ELSE - + 1 END ELSE + - 28 END + - + 16 - 69 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8156
SELECT + - CASE + 86 WHEN - + 48 * CAST ( NULL AS INTEGER ) THEN + - CASE - 7 WHEN + 79 THEN NULL WHEN - 29 / 47 - 35 THEN + - CAST ( NULL AS INTEGER ) ELSE - + 1 END ELSE + - 28 END + - + 16 - 69 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL + 4 * 78 - + 55 - + NULLIF ( COUNT( * ), + - 95 * - 80 ) + + 5 col0
----
261

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + 4 * 78 - + 55 - + NULLIF ( COUNT ( * ), + - 95 * - 80 ) + + 5 col0
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8158
SELECT - - CAST( NULL AS SIGNED ) * - - 5 + + 73 * - + COUNT( * ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT - - CAST ( NULL AS INTEGER ) * - - 5 + + 73 * - + COUNT ( * ) * 93
----
NULL

query I rowsort
SELECT ALL + - 73 col2
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8160
SELECT DISTINCT 95 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT 95 * + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 68 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8162
SELECT 49 * ( - + 46 ) * + COALESCE ( + 10, CAST( 99 AS SIGNED ) DIV COUNT( * ) DIV + + 94 * + MIN( 38 ) + + + 63 + - 88 ) + 97
----
-22443

skipif mysql # not compatible
query I rowsort label-8162
SELECT 49 * ( - + 46 ) * + COALESCE ( + 10, CAST ( 99 AS INTEGER ) / COUNT ( * ) / + + 94 * + MIN ( 38 ) + + + 63 + - 88 ) + 97
----
-22443

query I rowsort
SELECT + 83 + + 81 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT - MAX( 12 ) * + 68
----
-816

skipif mysql # not compatible
query I rowsort label-8164
SELECT - MAX ( 12 ) * + 68
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT COALESCE ( + SUM( DISTINCT 94 ), + - COUNT( - 76 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT COALESCE ( + SUM ( DISTINCT 94 ), + - COUNT ( - 76 ) ) AS col1
----
94

query I rowsort
SELECT - 83 + + 68
----
-15

query I rowsort
SELECT - 0 * + 24 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT - 20 * 71 * - COUNT( * ) AS col1
----
1420

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT - 20 * 71 * - COUNT ( * ) AS col1
----
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL SUM( DISTINCT 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL SUM ( DISTINCT 35 ) AS col2
----
35

query I rowsort
SELECT - ( + + 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT - 53 + COUNT( * ) * - COALESCE ( + 56, - + 22, 7 ) * + 5 + - 17 + 33 + - - ( + + ( - 98 ) ) * + 48 - + 51 AS col1
----
-5072

skipif mysql # not compatible
query I rowsort label-8171
SELECT - 53 + COUNT ( * ) * - COALESCE ( + 56, - + 22, 7 ) * + 5 + - 17 + 33 + - - ( + + ( - 98 ) ) * + 48 - + 51 AS col1
----
-5072

query I rowsort
SELECT - 70 * - 34
----
2380

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT DISTINCT - ( + ( - - 18 ) ) + + 17 DIV + 82
----
-18

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - ( + ( - - 18 ) ) + + 17 / + 82
----
-18

query I rowsort
SELECT ALL - 2 + - - 35 + - + 5 + 40 + 74 + 43 AS col0
----
185

query I rowsort
SELECT DISTINCT + 48 * - 41
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT - ( + COUNT( * ) ) + - - 42 col0
----
41

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT - ( + COUNT ( * ) ) + - - 42 col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT - 11 + + 81 DIV - 84 * 88 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8177
SELECT - 11 + + 81 / - 84 * 88 AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8178
SELECT ALL - 57 + - COUNT( * ) + 97 / - 92 * - CAST( NULL AS DECIMAL ) + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - 57 + - COUNT ( * ) + 97 / - 92 * - CAST ( NULL AS REAL ) + 3 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT ALL + CAST( NULL AS SIGNED ) + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + CAST ( NULL AS INTEGER ) + + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - SUM( ALL + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8180
SELECT - SUM ( ALL + 12 )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT ALL 72 DIV - 40 + 74 * 11 AS col0
----
813

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL 72 / - 40 + 74 * 11 AS col0
----
813

onlyif mysql # aggregate syntax: 
query II rowsort label-8182
SELECT + COUNT( * ) AS col2, 92 + + - 88
----
1
4

skipif mysql # not compatible
query II rowsort label-8182
SELECT + COUNT ( * ) AS col2, 92 + + - 88
----
1
4

query I rowsort
SELECT - 75 * - ( - 76 ) AS col1
----
-5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8184
SELECT ( MIN( DISTINCT 71 ) ) DIV 84 + - + 72 * 91 + - 91
----
-6643

skipif mysql # not compatible
query I rowsort label-8184
SELECT ( MIN ( DISTINCT 71 ) ) / 84 + - + 72 * 91 + - 91
----
-6643

query I rowsort
SELECT + ( - + 41 ) + + - 75 AS col1
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT ALL COUNT( * ) DIV + + 31 + - 43 * + 22
----
-946

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL COUNT ( * ) / + + 31 + - 43 * + 22
----
-946

query I rowsort
SELECT + 99 + + 53 * + - 68
----
-3505

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - - COUNT( * ) * ( + + NULLIF ( - 89, + 14 ) ) + + MAX( DISTINCT + 91 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8188
SELECT - - COUNT ( * ) * ( + + NULLIF ( - 89, + 14 ) ) + + MAX ( DISTINCT + 91 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8189
SELECT + ( + SUM( ALL CAST( - + 3 AS SIGNED ) ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8189
SELECT + ( + SUM ( ALL CAST ( - + 3 AS INTEGER ) ) ) AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8190
SELECT ALL - SUM( CAST( - + 29 AS SIGNED ) ) * + - 83 col0
----
-2407

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL - SUM ( CAST ( - + 29 AS INTEGER ) ) * + - 83 col0
----
-2407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8191
SELECT DISTINCT 0 * + + ( + SUM( DISTINCT - - 57 ) ) - - - CAST( NULL AS SIGNED ) + 83 + - + COALESCE ( - 45, + COUNT( * ) + 94, - COUNT( * ) * ( + 85 ) + - 62 ) * - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT 0 * + + ( + SUM ( DISTINCT - - 57 ) ) - - - CAST ( NULL AS INTEGER ) + 83 + - + COALESCE ( - 45, + COUNT ( * ) + 94, - COUNT ( * ) * ( + 85 ) + - 62 ) * - 49 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT NULLIF ( + 62, + COALESCE ( + 17, + - CAST( 14 AS SIGNED ) ) ) col0
----
62

skipif mysql # not compatible
query I rowsort label-8192
SELECT NULLIF ( + 62, + COALESCE ( + 17, + - CAST ( 14 AS INTEGER ) ) ) col0
----
62

query I rowsort
SELECT + - ( + 17 ) * 90 + 55 * + 63
----
1935

query I rowsort
SELECT ALL + 39 * - 49
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL + - MIN( ALL 97 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + - MIN ( ALL 97 ) col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + - MAX( 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-8196
SELECT + - MAX ( 32 )
----
-32

query I rowsort
SELECT + ( - - 20 ) * + 49 - - - 25
----
955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8198
SELECT - 79 col1, - MIN( 30 ) * + 21 * - CAST( NULL AS SIGNED ) + - - AVG ( 29 ) AS col1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-8198
SELECT - 79 col1, - MIN ( 30 ) * + 21 * - CAST ( NULL AS INTEGER ) + - - AVG ( 29 ) AS col1
----
-79
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT + + CAST( NULL AS SIGNED ) * + 31 * - 78 / - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT + + CAST ( NULL AS INTEGER ) * + 31 * - 78 / - 79
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8200
SELECT ALL - 12 DIV + 65 - 29 AS col0, + 10
----
-29
10

skipif mysql # not compatible
query II rowsort label-8200
SELECT ALL - 12 / + 65 - 29 AS col0, + 10
----
-29
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL - 33 * - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL - 33 * - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT MAX( 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8202
SELECT MAX ( 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT ALL 28 col0, - NULLIF ( - + CASE - 9 WHEN - + 9 THEN + - MAX( + - 75 ) END, + + 50 ) * + 18
----
28
1350

skipif mysql # not compatible
query II rowsort label-8203
SELECT ALL 28 col0, - NULLIF ( - + CASE - 9 WHEN - + 9 THEN + - MAX ( + - 75 ) END, + + 50 ) * + 18
----
28
1350

query I rowsort
SELECT + 47 + 39 + 2
----
88

query II rowsort
SELECT - 81 AS col0, 37
----
-81
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8206
SELECT - ( + - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT - ( + - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL COUNT( * ) * - ( - ( 84 ) ) col1
----
84

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL COUNT ( * ) * - ( - ( 84 ) ) col1
----
84

query I rowsort
SELECT 66 * + ( + - 70 ) AS col1
----
-4620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT CAST( NULL AS SIGNED ) + + + ( - + 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT CAST ( NULL AS INTEGER ) + + + ( - + 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT MIN( 77 ) + - - 47
----
124

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT MIN ( 77 ) + - - 47
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8211
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 71 * - + NULLIF ( COUNT( * ), - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 71 * - + NULLIF ( COUNT ( * ), - 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT 59 + + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8212
SELECT 59 + + COUNT ( * ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL - COUNT( * ) + + + 48 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - COUNT ( * ) + + + 48 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT ALL + 72 + - 17 + 44 / + 33 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + 72 + - 17 + 44 / + 33 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 64 * 4
----
256

onlyif mysql # DIV for integer division: 
query II rowsort label-8216
SELECT - 70, - 32 * + 21 + 63 DIV + 7 AS col1
----
-70
-663

skipif mysql # not compatible
query II rowsort label-8216
SELECT - 70, - 32 * + 21 + 63 / + 7 AS col1
----
-70
-663

query I rowsort
SELECT 71 - + 33 AS col2
----
38

query I rowsort
SELECT DISTINCT + 62 * - 20 * - 0 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8219
SELECT ALL - 60 AS col2, AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-8219
SELECT ALL - 60 AS col2, AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0
----
-60
NULL

query II rowsort
SELECT ALL - - 10 - + 45 + - - 39 * - 40 * ( - 3 ) + - 82 AS col0, ( - 16 )
----
4563
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT ALL + COUNT( * ) - + - 7 + - - 95 DIV - 7 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + COUNT ( * ) - + - 7 + - - 95 / - 7 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8222
SELECT - SUM( ALL CASE 8 WHEN + 23 / 22 * 89 THEN NULL WHEN - 88 THEN + + 37 END ) / - MIN( - + 81 ) * 67 * - + CAST( NULL AS SIGNED ) - + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT - SUM ( ALL CASE 8 WHEN + 23 / 22 * 89 THEN NULL WHEN - 88 THEN + + 37 END ) / - MIN ( - + 81 ) * 67 * - + CAST ( NULL AS INTEGER ) - + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT ALL - 85, MIN( + 9 ) * COALESCE ( + - 14, + - 41 ) AS col1
----
-85
-126

skipif mysql # not compatible
query II rowsort label-8223
SELECT ALL - 85, MIN ( + 9 ) * COALESCE ( + - 14, + - 41 ) AS col1
----
-85
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT NULLIF ( CAST( NULL AS SIGNED ), - MAX( DISTINCT + 47 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - MAX ( DISTINCT + 47 ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT + 51 DIV + 14 + + 86
----
89

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 51 / + 14 + + 86
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8226
SELECT + 79, + CASE + ( 51 ) WHEN - 8 THEN + 6 * 59 / - COUNT( * ) END AS col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-8226
SELECT + 79, + CASE + ( 51 ) WHEN - 8 THEN + 6 * 59 / - COUNT ( * ) END AS col0
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL - + CASE + 88 WHEN 7 THEN NULL WHEN - 17 * + - 59 - - + ( + MIN( - + 52 ) ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL - + CASE + 88 WHEN 7 THEN NULL WHEN - 17 * + - 59 - - + ( + MIN ( - + 52 ) ) THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 26 * 37 + + + 31
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT - - COUNT( 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - - COUNT ( 96 )
----
1

query I rowsort
SELECT ALL + COALESCE ( - 39, 64 ) * + + 93 AS col1
----
-3627

query I rowsort
SELECT 98 + + - ( 45 )
----
53

query I rowsort
SELECT DISTINCT - - 57
----
57

query II rowsort
SELECT ALL - 77, 70 AS col1
----
-77
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT ALL - + ( - 9 ) + + MAX( - CASE 38 WHEN 64 + + 49 THEN + - 27 WHEN - + 9 + 19 THEN - CAST( + 56 AS SIGNED ) + - 32 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL - + ( - 9 ) + + MAX ( - CASE 38 WHEN 64 + + 49 THEN + - 27 WHEN - + 9 + 19 THEN - CAST ( + 56 AS INTEGER ) + - 32 END )
----
NULL

query I rowsort
SELECT DISTINCT ( - - 52 ) + - 96 + 99 + + + 83 * - 29 AS col0
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT COUNT( * ) * - NULLIF ( - + 67, + 20 )
----
67

skipif mysql # not compatible
query I rowsort label-8236
SELECT COUNT ( * ) * - NULLIF ( - + 67, + 20 )
----
67

query I rowsort
SELECT ( 33 ) + ( 96 )
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT ALL CAST( NULL AS SIGNED ) + - SUM( - + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL CAST ( NULL AS INTEGER ) + - SUM ( - + 82 )
----
NULL

query I rowsort
SELECT ( + 9 ) * 95
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL + 3 + - MIN( DISTINCT - 0 )
----
3

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + 3 + - MIN ( DISTINCT - 0 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL 82 + CASE - COALESCE ( 74, + - 82 * + 30, - 66 ) WHEN + 50 - - - 75 + - - 88 * + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) - ( + 49 ) THEN + - 22 / - COUNT( * ) * + + ( + 56 ) + - ( - 52 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL 82 + CASE - COALESCE ( 74, + - 82 * + 30, - 66 ) WHEN + 50 - - - 75 + - - 88 * + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) - ( + 49 ) THEN + - 22 / - COUNT ( * ) * + + ( + 56 ) + - ( - 52 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT 75 * - + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-8242
SELECT 75 * - + COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT COUNT( * ) * - 64 col1
----
-64

skipif mysql # not compatible
query I rowsort label-8243
SELECT COUNT ( * ) * - 64 col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT CASE + MIN( 97 ) WHEN ( - - 38 ) * + 9 + - + 11 / + 2 THEN - 87 WHEN - 5 THEN NULL ELSE NULL END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT CASE + MIN ( 97 ) WHEN ( - - 38 ) * + 9 + - + 11 / + 2 THEN - 87 WHEN - 5 THEN NULL ELSE NULL END * 90
----
NULL

query I rowsort
SELECT ALL 22 - 3 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT DISTINCT 81 * - COALESCE ( - - 76, + 19 * + CASE + 61 WHEN + + 80 / 92 - + + 15 + - 6 - + COUNT( * ) + - + 25 THEN NULL WHEN 51 THEN COUNT( * ) + - MIN( + 30 ) * - + 88 ELSE 27 END ) AS col1
----
-6156

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT 81 * - COALESCE ( - - 76, + 19 * + CASE + 61 WHEN + + 80 / 92 - + + 15 + - 6 - + COUNT ( * ) + - + 25 THEN NULL WHEN 51 THEN COUNT ( * ) + - MIN ( + 30 ) * - + 88 ELSE 27 END ) AS col1
----
-6156

query I rowsort
SELECT 71 + 54 * + 66
----
3635

query I rowsort
SELECT ( - - 18 ) + ( - + 94 ) AS col1
----
-76

query I rowsort
SELECT 64 * 18
----
1152

query I rowsort
SELECT ALL - - 17 col2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT - ( + ( - 70 ) ) DIV - 59 + ( - 72 )
----
-73

skipif mysql # not compatible
query I rowsort label-8251
SELECT - ( + ( - 70 ) ) / - 59 + ( - 72 )
----
-73

query II rowsort
SELECT 43 * 89, 26 AS col0
----
3827
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8253
SELECT + AVG ( - - CAST( NULL AS SIGNED ) ) + + 92 AS col0, 45 * - MAX( ALL + 34 )
----
NULL
-1530

skipif mysql # not compatible
query II rowsort label-8253
SELECT + AVG ( - - CAST ( NULL AS INTEGER ) ) + + 92 AS col0, 45 * - MAX ( ALL + 34 )
----
NULL
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL - + MIN( 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL - + MIN ( 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - COUNT( * ) * + + 49 + - + 54 - - - 99 + 51 * - 84 * 34 * + COUNT( * ) * - 81 * + - CASE + + 8 WHEN - - 67 THEN - 71 + CASE - MAX( ALL + 91 ) WHEN - - 72 THEN NULL ELSE CASE - 18 WHEN AVG ( 67 ) / + SUM( 67 ) THEN - COUNT( * ) * - COALESCE ( + COUNT( * ), 77, - 75 ) + - 24 END * 73 END WHEN COUNT( * ) THEN NULL ELSE NULL END * + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT - COUNT ( * ) * + + 49 + - + 54 - - - 99 + 51 * - 84 * 34 * + COUNT ( * ) * - 81 * + - CASE + + 8 WHEN - - 67 THEN - 71 + CASE - MAX ( ALL + 91 ) WHEN - - 72 THEN NULL ELSE CASE - 18 WHEN AVG ( 67 ) / + SUM ( 67 ) THEN - COUNT ( * ) * - COALESCE ( + COUNT ( * ), 77, - 75 ) + - 24 END * 73 END WHEN COUNT ( * ) THEN NULL ELSE NULL END * + 8 AS col2
----
NULL

query II rowsort
SELECT - 6 + - - 20 AS col0, 60 AS col2
----
14
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT - MIN( + 14 ) * + 42 + + - 0
----
-588

skipif mysql # not compatible
query I rowsort label-8257
SELECT - MIN ( + 14 ) * + 42 + + - 0
----
-588

query I rowsort
SELECT ALL 19 * 24
----
456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8259
SELECT DISTINCT + + 90 * CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT + + 90 * CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ( - SUM( 95 ) ) * + 64 + + 70 + + 19 + 5 * - 76
----
-6371

skipif mysql # not compatible
query I rowsort label-8260
SELECT ( - SUM ( 95 ) ) * + 64 + + 70 + + 19 + 5 * - 76
----
-6371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8261
SELECT 92 * CAST( COALESCE ( + 71, 76 + - SUM( 21 ), + + 72 * + 21 + - AVG ( ALL + 83 ) ) AS SIGNED )
----
6532

skipif mysql # not compatible
query I rowsort label-8261
SELECT 92 * CAST ( COALESCE ( + 71, 76 + - SUM ( 21 ), + + 72 * + 21 + - AVG ( ALL + 83 ) ) AS INTEGER )
----
6532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8262
SELECT MAX( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT + 1 AS col1, 48
----
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT COUNT( ALL + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8264
SELECT COUNT ( ALL + 12 ) AS col1
----
1

query I rowsort
SELECT ALL - 43 + 42
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8266
SELECT 33, 42 * + COUNT( * ) DIV + + 65 AS col2
----
33
0

skipif mysql # not compatible
query II rowsort label-8266
SELECT 33, 42 * + COUNT ( * ) / + + 65 AS col2
----
33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT COUNT( ALL - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT COUNT ( ALL - 40 )
----
1

query II rowsort
SELECT 47 col1, 30
----
47
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8269
SELECT ALL + 98 * - + COUNT( + ( - 16 ) ) AS col0, 22 AS col1
----
-98
22

skipif mysql # not compatible
query II rowsort label-8269
SELECT ALL + 98 * - + COUNT ( + ( - 16 ) ) AS col0, 22 AS col1
----
-98
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL NULLIF ( - COUNT( * ), 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL NULLIF ( - COUNT ( * ), 91 ) AS col0
----
-1

query I rowsort
SELECT - NULLIF ( + 18, + NULLIF ( + + 21, - 25 * + 17 ) ) + - + 19
----
-37

query I rowsort
SELECT + 40 * 76
----
3040

query I rowsort
SELECT ALL - 72 * - + 2
----
144

query I rowsort
SELECT - 52 * 54 AS col0
----
-2808

query II rowsort
SELECT 71 AS col1, + ( - 12 ) + - 98
----
71
-110

query II rowsort
SELECT ALL 59, - 56 AS col1
----
59
-56

query I rowsort
SELECT - 4 + + 7 AS col1
----
3

query II rowsort
SELECT DISTINCT 65, 64 AS col1
----
65
64

query I rowsort
SELECT ALL + 9 - + + ( - 46 ) + + 86 AS col2
----
141

query I rowsort
SELECT DISTINCT ( + 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL 68 * - 14 * + 46 * MIN( ALL - 94 )
----
4116448

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL 68 * - 14 * + 46 * MIN ( ALL - 94 )
----
4116448

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT + + 7 DIV - + 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT + + 7 / - + 49 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT ALL + 1 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + 1 / - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT + - COUNT( * ) * + + 96 * + ( - + ( + - COUNT( * ) ) ) * + 18 + + 11 * - - 15
----
-1563

skipif mysql # not compatible
query I rowsort label-8284
SELECT + - COUNT ( * ) * + + 96 * + ( - + ( + - COUNT ( * ) ) ) * + 18 + + 11 * - - 15
----
-1563

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT 23 * COUNT( * ) * - + 27 AS col0
----
-621

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT 23 * COUNT ( * ) * - + 27 AS col0
----
-621

query I rowsort
SELECT + 11 * + - 13 AS col1
----
-143

query I rowsort
SELECT - 81 * + + 42 col0
----
-3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8288
SELECT + COALESCE ( - - 29, 61, 37 * + 24 + - CAST( - COUNT( DISTINCT - 44 ) AS SIGNED ) + - 28 ) - 39
----
-10

skipif mysql # not compatible
query I rowsort label-8288
SELECT + COALESCE ( - - 29, 61, 37 * + 24 + - CAST ( - COUNT ( DISTINCT - 44 ) AS INTEGER ) + - 28 ) - 39
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT + - 4, + COALESCE ( - 47, - COUNT( * ), + MIN( ALL 75 ), 21 ) col2
----
-4
-47

skipif mysql # not compatible
query II rowsort label-8289
SELECT + - 4, + COALESCE ( - 47, - COUNT ( * ), + MIN ( ALL 75 ), 21 ) col2
----
-4
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8290
SELECT ALL + 48 col0, CAST( - AVG ( DISTINCT 70 ) AS SIGNED ) col0
----
48
-70

skipif mysql # not compatible
query II rowsort label-8290
SELECT ALL + 48 col0, CAST ( - AVG ( DISTINCT 70 ) AS INTEGER ) col0
----
48
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8291
SELECT DISTINCT + - 21 / - SUM( + 86 ) + + - COALESCE ( + NULLIF ( - 32, - 5 + - 14 ), COUNT( * ) * - - CASE WHEN COUNT( * ) <> NULL THEN - MAX( + 9 ) * + 74 - - 75 END ) * - 36 + 62 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + - 21 / - SUM ( + 86 ) + + - COALESCE ( + NULLIF ( - 32, - 5 + - 14 ), COUNT ( * ) * - - CASE WHEN COUNT ( * ) <> NULL THEN - MAX ( + 9 ) * + 74 - - 75 END ) * - 36 + 62 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 12 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8293
SELECT ALL + 84 AS col0, + 38 * + - NULLIF ( + + 83, + + CAST( - CAST( - 70 AS SIGNED ) AS SIGNED ) + + + 98 * + 97 ) + 8 - + 57 + - - 38 AS col0
----
84
-3165

skipif mysql # not compatible
query II rowsort label-8293
SELECT ALL + 84 AS col0, + 38 * + - NULLIF ( + + 83, + + CAST ( - CAST ( - 70 AS INTEGER ) AS INTEGER ) + + + 98 * + 97 ) + 8 - + 57 + - - 38 AS col0
----
84
-3165

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT + 92 * + - COUNT( ALL + - 10 ) + - 7 + - COUNT( * ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-8294
SELECT + 92 * + - COUNT ( ALL + - 10 ) + - 7 + - COUNT ( * ) AS col1
----
-100

query I rowsort
SELECT - 83 - - 8 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL + - 36 * COUNT( 71 ) + - 88 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL + - 36 * COUNT ( 71 ) + - 88 AS col0
----
-124

query II rowsort
SELECT + 48 col2, + 6 AS col0
----
48
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8298
SELECT - 80 DIV - 87 + 45 DIV + 84 * 34 + 32 AS col0, + 94 * - MIN( + 40 ) * 40 + 37 * + 36 * + CAST( NULL AS DECIMAL )
----
32
NULL

skipif mysql # not compatible
query II rowsort label-8298
SELECT - 80 / - 87 + 45 / + 84 * 34 + 32 AS col0, + 94 * - MIN ( + 40 ) * 40 + 37 * + 36 * + CAST ( NULL AS REAL )
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + COUNT( - ( - 66 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8299
SELECT + COUNT ( - ( - 66 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8300
SELECT DISTINCT + COALESCE ( 4, 58 * COUNT( * ) * 15 + - - 87 + COUNT( * ) + + + COUNT( * ) * 68 DIV + - CAST( NULL AS SIGNED ) - - 38 + - - ( 98 ) * - CAST( + 73 AS SIGNED ) )
----
4

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT + COALESCE ( 4, 58 * COUNT ( * ) * 15 + - - 87 + COUNT ( * ) + + + COUNT ( * ) * 68 / + - CAST ( NULL AS INTEGER ) - - 38 + - - ( 98 ) * - CAST ( + 73 AS INTEGER ) )
----
4

query I rowsort
SELECT ALL 26 * 8 + - - 28
----
236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT + 18 + - ( + 68 ) + - - CAST( - - 54 AS SIGNED ) + + MIN( DISTINCT + - 35 )
----
-31

skipif mysql # not compatible
query I rowsort label-8302
SELECT + 18 + - ( + 68 ) + - - CAST ( - - 54 AS INTEGER ) + + MIN ( DISTINCT + - 35 )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8303
SELECT ALL 24 DIV + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL 24 / + 56 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT - CAST( NULL AS SIGNED ) * - 39 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT - CAST ( NULL AS INTEGER ) * - 39 + + 40
----
NULL

query II rowsort
SELECT ALL + ( 46 ) AS col2, 62
----
46
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT - 88 * CAST( + 44 AS SIGNED )
----
-3872

skipif mysql # not compatible
query I rowsort label-8306
SELECT - 88 * CAST ( + 44 AS INTEGER )
----
-3872

query I rowsort
SELECT COALESCE ( 50, + 23 + - - 96 * - 78 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8308
SELECT DISTINCT 38 * - 70 * 9 - - 66 + 56 * - CAST( NULL AS SIGNED ) * - 35 + NULLIF ( - 40, - MIN( ALL 47 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT 38 * - 70 * 9 - - 66 + 56 * - CAST ( NULL AS INTEGER ) * - 35 + NULLIF ( - 40, - MIN ( ALL 47 ) )
----
NULL

query I rowsort
SELECT CASE 90 WHEN - + 12 THEN + - 87 * - - 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT - COUNT( * ) + + - 43 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8310
SELECT - COUNT ( * ) + + - 43 AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT ALL 12 * - + 4 - - - 40 + 12 / CASE + + CAST( - + 37 AS SIGNED ) WHEN + 47 - + 83 THEN 18 WHEN - 16 * + CASE - 97 WHEN + 33 THEN 59 WHEN - + 49 + - 81 THEN 95 / COUNT( * ) ELSE NULL END - 13 - 3 * - 94 THEN 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL 12 * - + 4 - - - 40 + 12 / CASE + + CAST ( - + 37 AS INTEGER ) WHEN + 47 - + 83 THEN 18 WHEN - 16 * + CASE - 97 WHEN + 33 THEN 59 WHEN - + 49 + - 81 THEN 95 / COUNT ( * ) ELSE NULL END - 13 - 3 * - 94 THEN 15 END
----
NULL

query I rowsort
SELECT DISTINCT ( + ( - 4 ) ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - 28 * - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8313
SELECT - 28 * - COUNT ( * )
----
28

query I rowsort
SELECT - 34 * - ( 59 ) AS col1
----
2006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8315
SELECT ALL CAST( + 52 AS SIGNED ), + 32 AS col2
----
52
32

skipif mysql # not compatible
query II rowsort label-8315
SELECT ALL CAST ( + 52 AS INTEGER ), + 32 AS col2
----
52
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8316
SELECT DISTINCT CAST( - + 83 AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT CAST ( - + 83 AS INTEGER ) AS col1
----
-83

query I rowsort
SELECT ALL - COALESCE ( 96, + 28 ) * - + 2 AS col1
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT - 98 * 48 AS col2, COUNT( * ) AS col0
----
-4704
1

skipif mysql # not compatible
query II rowsort label-8318
SELECT - 98 * 48 AS col2, COUNT ( * ) AS col0
----
-4704
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT - MIN( 77 ) * - CAST( NULL AS SIGNED ) + + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT - MIN ( 77 ) * - CAST ( NULL AS INTEGER ) + + - 86 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8320
SELECT + CAST( NULL AS SIGNED ) + - - 37 AS col0, - 45 AS col1
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-8320
SELECT + CAST ( NULL AS INTEGER ) + - - 37 AS col0, - 45 AS col1
----
NULL
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT + 56 * - COUNT( * ) * + 10
----
-560

skipif mysql # not compatible
query I rowsort label-8321
SELECT + 56 * - COUNT ( * ) * + 10
----
-560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8322
SELECT + ( - 21 ) DIV - NULLIF ( - 17, - COUNT( * ) * + 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-8322
SELECT + ( - 21 ) / - NULLIF ( - 17, - COUNT ( * ) * + 97 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL - 89 + SUM( 30 )
----
-59

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL - 89 + SUM ( 30 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT - - 84 + - - 28 + - CAST( CAST( 21 AS SIGNED ) AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-8324
SELECT - - 84 + - - 28 + - CAST ( CAST ( 21 AS INTEGER ) AS INTEGER )
----
91

query I rowsort
SELECT DISTINCT - 78 * + 89 - 71
----
-7013

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT DISTINCT - - CASE COUNT( * ) WHEN - 22 THEN NULL ELSE - - 99 * + 7 END + NULLIF ( - 33, + 73 ) AS col1
----
660

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT - - CASE COUNT ( * ) WHEN - 22 THEN NULL ELSE - - 99 * + 7 END + NULLIF ( - 33, + 73 ) AS col1
----
660

query I rowsort
SELECT + 23 * + - 66 col0
----
-1518

onlyif mysql # DIV for integer division: 
query I rowsort label-8328
SELECT ALL - 40 DIV + + 37 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - 40 / + + 37 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8329
SELECT + - 34 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-8329
SELECT + - 34 / - 53
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8330
SELECT ALL - 29 + + 68 + + - 36 + CAST( + ( + NULLIF ( - CAST( NULL AS SIGNED ), + NULLIF ( COUNT( * ), + 82 ) * + 71 * CAST( NULL AS DECIMAL ) - - - AVG ( DISTINCT - - 97 ) ) ) AS SIGNED ) + - CASE + + COUNT( * ) WHEN - 51 / - + 84 * 37 + - 93 * + COUNT( * ) + 34 THEN + 42 * - COUNT( * ) ELSE - NULLIF ( + 73, - 73 * 60 - - 35 ) END * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - 29 + + 68 + + - 36 + CAST ( + ( + NULLIF ( - CAST ( NULL AS INTEGER ), + NULLIF ( COUNT ( * ), + 82 ) * + 71 * CAST ( NULL AS REAL ) - - - AVG ( DISTINCT - - 97 ) ) ) AS INTEGER ) + - CASE + + COUNT ( * ) WHEN - 51 / - + 84 * 37 + - 93 * + COUNT ( * ) + 34 THEN + 42 * - COUNT ( * ) ELSE - NULLIF ( + 73, - 73 * 60 - - 35 ) END * - 95
----
NULL

query II rowsort
SELECT - + ( 5 ) AS col2, 60
----
-5
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8332
SELECT ALL + 4 DIV + + NULLIF ( + 38, ( - CASE - + 58 WHEN + - 88 DIV + 35 THEN NULL WHEN 91 * ( 66 ) THEN + 52 - - ( - - 45 ) + - COUNT( - + CAST( NULL AS DECIMAL ) ) END ) + + 93 ) + + + 24
----
24

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL + 4 / + + NULLIF ( + 38, ( - CASE - + 58 WHEN + - 88 / + 35 THEN NULL WHEN 91 * ( 66 ) THEN + 52 - - ( - - 45 ) + - COUNT ( - + CAST ( NULL AS REAL ) ) END ) + + 93 ) + + + 24
----
24

query I rowsort
SELECT 43 * 72 + - 17 AS col2
----
3079

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL 42 * 23 + + COUNT( * ) AS col0
----
967

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL 42 * 23 + + COUNT ( * ) AS col0
----
967

query I rowsort
SELECT DISTINCT - + NULLIF ( + - 8, 56 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT MAX( - NULLIF ( - 50, - CASE - ( - 18 ) WHEN + 80 THEN - 43 END + 18 ) )
----
50

skipif mysql # not compatible
query I rowsort label-8336
SELECT MAX ( - NULLIF ( - 50, - CASE - ( - 18 ) WHEN + 80 THEN - 43 END + 18 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT 69 + 86 + + ( + + COUNT( * ) ) * + - NULLIF ( - 5, + 65 * - 78 )
----
160

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT 69 + 86 + + ( + + COUNT ( * ) ) * + - NULLIF ( - 5, + 65 * - 78 )
----
160

query I rowsort
SELECT DISTINCT - - 13 AS col0
----
13

query I rowsort
SELECT DISTINCT 18 * - 41
----
-738

query I rowsort
SELECT DISTINCT - NULLIF ( 79, - + 65 )
----
-79

query I rowsort
SELECT ALL - 44 * + 44 AS col1
----
-1936

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT DISTINCT 5 DIV - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT 5 / - 53 AS col1
----
0

query I rowsort
SELECT ALL - COALESCE ( - 23, + 78 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT + 64 * - 13 - + NULLIF ( - 60, + CAST( + - 2 AS SIGNED ) ) + CAST( NULL AS SIGNED ) / + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT + 64 * - 13 - + NULLIF ( - 60, + CAST ( + - 2 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) / + 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT DISTINCT 69 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT 69 / - 96
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8346
SELECT 96 col2, + 29 + - 78 DIV - 99
----
96
29

skipif mysql # not compatible
query II rowsort label-8346
SELECT 96 col2, + 29 + - 78 / - 99
----
96
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT 90 DIV + 70
----
1

skipif mysql # not compatible
query I rowsort label-8347
SELECT 90 / + 70
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT DISTINCT 4 * 95 * + COALESCE ( COUNT( * ), - ( 19 ) )
----
380

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT 4 * 95 * + COALESCE ( COUNT ( * ), - ( 19 ) )
----
380

query II rowsort
SELECT ALL 8, 87 + + 48 AS col2
----
8
135

query I rowsort
SELECT 0 * - + ( + + 38 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT 9 - + COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-8351
SELECT 9 - + COUNT ( * ) col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT ( + CAST( NULL AS SIGNED ) ) / 60 + + + 5 * 26 * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT ( + CAST ( NULL AS INTEGER ) ) / 60 + + + 5 * 26 * 94
----
NULL

query I rowsort
SELECT 19 - - 58 + + 93
----
170

query I rowsort
SELECT + 36 * + 81
----
2916

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8355
SELECT 94 AS col0, + NULLIF ( - + 69, - 73 + + - CAST( NULL AS SIGNED ) ) + 64
----
94
-5

skipif mysql # not compatible
query II rowsort label-8355
SELECT 94 AS col0, + NULLIF ( - + 69, - 73 + + - CAST ( NULL AS INTEGER ) ) + 64
----
94
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT + MIN( 32 ) + - + MIN( + ( + - 96 ) ) * - 98
----
-9376

skipif mysql # not compatible
query I rowsort label-8356
SELECT + MIN ( 32 ) + - + MIN ( + ( + - 96 ) ) * - 98
----
-9376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8357
SELECT ALL 69 + - ( + 66 ) AS col2, COUNT( DISTINCT 86 ) * + + COUNT( * ) * CAST( + - NULLIF ( - - 82, - 65 ) AS SIGNED ) + + - 66 * - 21 + + - 3 AS col0
----
3
1301

skipif mysql # not compatible
query II rowsort label-8357
SELECT ALL 69 + - ( + 66 ) AS col2, COUNT ( DISTINCT 86 ) * + + COUNT ( * ) * CAST ( + - NULLIF ( - - 82, - 65 ) AS INTEGER ) + + - 66 * - 21 + + - 3 AS col0
----
3
1301

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT MAX( DISTINCT + 89 ) * 84
----
7476

skipif mysql # not compatible
query I rowsort label-8358
SELECT MAX ( DISTINCT + 89 ) * 84
----
7476

query I rowsort
SELECT DISTINCT - - 84 + - 58
----
26

query I rowsort
SELECT 57 + 12 AS col2
----
69

query I rowsort
SELECT ALL + - 8 + - 32 AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT CAST( 83 AS SIGNED ) - + ( - 9 )
----
92

skipif mysql # not compatible
query I rowsort label-8362
SELECT CAST ( 83 AS INTEGER ) - + ( - 9 )
----
92

query I rowsort
SELECT + 18 - + + 90
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8364
SELECT COUNT( * ) * ( + 78 ) + - 48 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT COUNT ( * ) * ( + 78 ) + - 48 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL + - 17 - - + MIN( ALL - 25 ) - - 70 * - ( + 58 ) * 41 + + 98 AS col0
----
-166404

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + - 17 - - + MIN ( ALL - 25 ) - - 70 * - ( + 58 ) * 41 + + 98 AS col0
----
-166404

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT DISTINCT - ( + NULLIF ( - 63, + + 50 ) ) * - - 51 * + - 36 * COUNT( * ) AS col2
----
-115668

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - ( + NULLIF ( - 63, + + 50 ) ) * - - 51 * + - 36 * COUNT ( * ) AS col2
----
-115668

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT MIN( ALL 53 ) * - 3 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-8367
SELECT MIN ( ALL 53 ) * - 3 AS col0
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-8368
SELECT ALL + 39 DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + 39 / - 94 AS col0
----
0

query I rowsort
SELECT 55 * - 22 AS col2
----
-1210

query I rowsort
SELECT ( + - 67 ) * - - 80 - - - 15 AS col2
----
-5375

query I rowsort
SELECT 74 + + 80
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT DISTINCT - 68 * CAST( + + 28 AS SIGNED )
----
-1904

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - 68 * CAST ( + + 28 AS INTEGER )
----
-1904

query II rowsort
SELECT 70 col1, + 7 * + ( + + 68 ) col2
----
70
476

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT + COALESCE ( - 26, - 53 * 26 ) * - 26 + + - COUNT( DISTINCT 12 ) AS col0
----
675

skipif mysql # not compatible
query I rowsort label-8374
SELECT + COALESCE ( - 26, - 53 * 26 ) * - 26 + + - COUNT ( DISTINCT 12 ) AS col0
----
675

query I rowsort
SELECT ALL 63 * - + 81
----
-5103

onlyif mysql # aggregate syntax: 
query II rowsort label-8376
SELECT DISTINCT - 32, + NULLIF ( + 8, 48 * 36 + - + MIN( 39 ) ) AS col2
----
-32
8

skipif mysql # not compatible
query II rowsort label-8376
SELECT DISTINCT - 32, + NULLIF ( + 8, 48 * 36 + - + MIN ( 39 ) ) AS col2
----
-32
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8377
SELECT ALL - 35 AS col1, - 54 - + CAST( - - 32 AS SIGNED ) + COUNT( * ) * + 59 AS col0
----
-35
-27

skipif mysql # not compatible
query II rowsort label-8377
SELECT ALL - 35 AS col1, - 54 - + CAST ( - - 32 AS INTEGER ) + COUNT ( * ) * + 59 AS col0
----
-35
-27

query II rowsort
SELECT 51, + 96 AS col1
----
51
96

query I rowsort
SELECT 9 + - 47 + - 37
----
-75

query II rowsort
SELECT 57, + ( + 53 ) - 0 + + 16 col2
----
57
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8381
SELECT MAX( ALL - - 52 ) * - + CAST( - 81 AS SIGNED ) * + COUNT( * ) + 30
----
4242

skipif mysql # not compatible
query I rowsort label-8381
SELECT MAX ( ALL - - 52 ) * - + CAST ( - 81 AS INTEGER ) * + COUNT ( * ) + 30
----
4242

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT - COUNT( - 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-8382
SELECT - COUNT ( - 94 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8383
SELECT 25 DIV COUNT( * ) * ( + 86 ) AS col0
----
2150

skipif mysql # not compatible
query I rowsort label-8383
SELECT 25 / COUNT ( * ) * ( + 86 ) AS col0
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT + 78 * + + COUNT( * ) - 66
----
12

skipif mysql # not compatible
query I rowsort label-8384
SELECT + 78 * + + COUNT ( * ) - 66
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8385
SELECT ALL + + 61 * + 25 col1, - CAST( + 78 AS SIGNED ) * + 70 + - COALESCE ( - 90, + COALESCE ( + MIN( DISTINCT 9 ), 70, - + 98 + SUM( + + ( - - 4 ) ) + + - ( 10 ) - - 50 + 65 + COUNT( * ) + 95 + + 59 DIV + 38 * 40 ), COUNT( * ) ) AS col1
----
1525
-5370

skipif mysql # not compatible
query II rowsort label-8385
SELECT ALL + + 61 * + 25 col1, - CAST ( + 78 AS INTEGER ) * + 70 + - COALESCE ( - 90, + COALESCE ( + MIN ( DISTINCT 9 ), 70, - + 98 + SUM ( + + ( - - 4 ) ) + + - ( 10 ) - - 50 + 65 + COUNT ( * ) + 95 + + 59 / + 38 * 40 ), COUNT ( * ) ) AS col1
----
1525
-5370

onlyif mysql # aggregate syntax: 
query II rowsort label-8386
SELECT 41 + 10 * 16 + - - 63 AS col0, - COUNT( * ) + - 1 * - 5 + + 91 * - 11 * + 99 * + 80
----
264
-7927916

skipif mysql # not compatible
query II rowsort label-8386
SELECT 41 + 10 * 16 + - - 63 AS col0, - COUNT ( * ) + - 1 * - 5 + + 91 * - 11 * + 99 * + 80
----
264
-7927916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT DISTINCT CAST( - + ( + 14 ) AS SIGNED ) + + 45 col1
----
31

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT CAST ( - + ( + 14 ) AS INTEGER ) + + 45 col1
----
31

query I rowsort
SELECT ALL 61 + 77
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT - + COUNT( * ) + - 37 - - 94
----
56

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT - + COUNT ( * ) + - 37 - - 94
----
56

query II rowsort
SELECT ALL 43, - 43 AS col1
----
43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT MIN( DISTINCT - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8391
SELECT MIN ( DISTINCT - 59 ) AS col1
----
-59

query I rowsort
SELECT - + 26 + - ( - + COALESCE ( + 45, + 25 ) ) + + 11 * 80
----
899

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT + - 57 * + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-8393
SELECT + - 57 * + - COUNT ( * )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8394
SELECT - CAST( NULL AS SIGNED ) AS col0, 4 + 7
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8394
SELECT - CAST ( NULL AS INTEGER ) AS col0, 4 + 7
----
NULL
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT ALL + 46 / + CAST( CASE + - 60 WHEN 85 THEN - 33 WHEN + + ( - 77 ) / + 36 + ( 41 ) THEN + 69 END AS SIGNED ) * + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + 46 / + CAST ( CASE + - 60 WHEN 85 THEN - 33 WHEN + + ( - 77 ) / + 36 + ( 41 ) THEN + 69 END AS INTEGER ) * + - 28
----
NULL

query II rowsort
SELECT - 66, 45 AS col2
----
-66
45

query II rowsort
SELECT ALL 50 col2, - 34 + - 60
----
50
-94

query II rowsort
SELECT + 89 AS col2, 13 * + 12
----
89
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT CASE - COUNT( * ) WHEN + 84 THEN NULL WHEN + - 42 THEN NULL ELSE + - 82 * + + MIN( DISTINCT - 82 ) * - COUNT( * ) - COUNT( * ) END
----
-6725

skipif mysql # not compatible
query I rowsort label-8399
SELECT CASE - COUNT ( * ) WHEN + 84 THEN NULL WHEN + - 42 THEN NULL ELSE + - 82 * + + MIN ( DISTINCT - 82 ) * - COUNT ( * ) - COUNT ( * ) END
----
-6725

query I rowsort
SELECT ALL + 53 * - 80
----
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT - COUNT( * ) * + 12 * - 45
----
540

skipif mysql # not compatible
query I rowsort label-8401
SELECT - COUNT ( * ) * + 12 * - 45
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-8402
SELECT - 17 + + 25 + 68 DIV - 81
----
8

skipif mysql # not compatible
query I rowsort label-8402
SELECT - 17 + + 25 + 68 / - 81
----
8

query I rowsort
SELECT + 94 * + ( + + 52 ) AS col0
----
4888

query I rowsort
SELECT DISTINCT + 7 col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8405
SELECT DISTINCT + ( - + 31 ) AS col2, ( + - 32 ) - + - 1 + - + CAST( NULL AS SIGNED ) * - 41 AS col2
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-8405
SELECT DISTINCT + ( - + 31 ) AS col2, ( + - 32 ) - + - 1 + - + CAST ( NULL AS INTEGER ) * - 41 AS col2
----
-31
NULL

query I rowsort
SELECT ALL ( - 2 ) * 87 AS col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT COALESCE ( COUNT( * ), 85 - + + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-8407
SELECT COALESCE ( COUNT ( * ), 85 - + + 18 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8408
SELECT - COUNT( * ) - 87 AS col2, + 45 - 12 AS col1
----
-88
33

skipif mysql # not compatible
query II rowsort label-8408
SELECT - COUNT ( * ) - 87 AS col2, + 45 - 12 AS col1
----
-88
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT - 22 DIV + 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8409
SELECT - 22 / + 34 AS col0
----
0

query I rowsort
SELECT NULLIF ( - 8, 26 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT + NULLIF ( MAX( - 19 ), ( - 60 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-8411
SELECT + NULLIF ( MAX ( - 19 ), ( - 60 ) )
----
-19

query I rowsort
SELECT + 4 * + 5 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT - ( MIN( 18 ) ) - + 2 + + - 79 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-8413
SELECT - ( MIN ( 18 ) ) - + 2 + + - 79 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT SUM( ( - 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-8414
SELECT SUM ( ( - 31 ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT DISTINCT 61 * - - ( - MAX( DISTINCT - 82 ) ) + + 50 * 11
----
5552

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT 61 * - - ( - MAX ( DISTINCT - 82 ) ) + + 50 * 11
----
5552

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL + 92 * 58 - - 58 + + 43 * COUNT( * ) AS col1
----
5437

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL + 92 * 58 - - 58 + + 43 * COUNT ( * ) AS col1
----
5437

query I rowsort
SELECT ALL + 78 * - - ( + - 99 ) * 64 + - 83 + - - 57 * + - 7 - + + 43
----
-494733

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT COUNT( DISTINCT 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8418
SELECT COUNT ( DISTINCT 91 ) AS col2
----
1

query I rowsort
SELECT ALL + 13 * + + 70 + 73 AS col1
----
983

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8420
SELECT - + 77 + + 19 + 72 AS col0, CAST( NULL AS SIGNED ) * + 6 AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-8420
SELECT - + 77 + + 19 + 72 AS col0, CAST ( NULL AS INTEGER ) * + 6 AS col0
----
14
NULL

query I rowsort
SELECT + + 72 - + + 11 - - 16 * - - 47
----
813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT + CAST( + - NULLIF ( - 0, 61 / 25 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8422
SELECT + CAST ( + - NULLIF ( - 0, 61 / 25 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8423
SELECT ALL - 17 - - 31 * + CASE + + SUM( ALL - 26 ) WHEN + 98 * - 15 * - 66 + + + 16 * 97 THEN - NULLIF ( NULLIF ( + 47, 29 ), 1 ) WHEN + 42 + NULLIF ( - - 11, - 75 * - ( COALESCE ( + 74, + 50 - CAST( + 96 + 41 AS SIGNED ), - 90 * 28 ) ) * 79 - 56 + + 87 ) + COUNT( * ) * + ( + 7 * - 6 ) THEN ( + 84 ) ELSE ( + 81 ) * - 90 + 82 DIV + 3 END * + 21
----
-4728230

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - 17 - - 31 * + CASE + + SUM ( ALL - 26 ) WHEN + 98 * - 15 * - 66 + + + 16 * 97 THEN - NULLIF ( NULLIF ( + 47, 29 ), 1 ) WHEN + 42 + NULLIF ( - - 11, - 75 * - ( COALESCE ( + 74, + 50 - CAST ( + 96 + 41 AS INTEGER ), - 90 * 28 ) ) * 79 - 56 + + 87 ) + COUNT ( * ) * + ( + 7 * - 6 ) THEN ( + 84 ) ELSE ( + 81 ) * - 90 + 82 / + 3 END * + 21
----
-4728230

query I rowsort
SELECT + 78 * 37 AS col2
----
2886

query I rowsort
SELECT - 48 * 61
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT - MIN( + - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT - MIN ( + - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - - NULLIF ( + + COUNT( * ), - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-8427
SELECT - - NULLIF ( + + COUNT ( * ), - 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + 5 + + 29 * + - 47 * - SUM( DISTINCT - + 98 ) * 80 + SUM( + 64 ) + - 81 AS col1
----
-10685932

skipif mysql # not compatible
query I rowsort label-8428
SELECT + 5 + + 29 * + - 47 * - SUM ( DISTINCT - + 98 ) * 80 + SUM ( + 64 ) + - 81 AS col1
----
-10685932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8429
SELECT ALL 75 - - + 42 * + ( 10 ) * 94 + + + CAST( NULL AS SIGNED ) + + - 9 * + 20 * - + SUM( 30 ) AS col1, - 73
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-8429
SELECT ALL 75 - - + 42 * + ( 10 ) * 94 + + + CAST ( NULL AS INTEGER ) + + - 9 * + 20 * - + SUM ( 30 ) AS col1, - 73
----
NULL
-73

query I rowsort
SELECT + - 45 * - - 49 AS col2
----
-2205

query I rowsort
SELECT ALL - ( - - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL - SUM( ALL + 8 ) * - - 69 + - 76
----
-628

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL - SUM ( ALL + 8 ) * - - 69 + - 76
----
-628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8433
SELECT - - 96 DIV - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-8433
SELECT - - 96 / - COUNT ( * )
----
-96

query I rowsort
SELECT + + 84 * - 74 AS col1
----
-6216

query I rowsort
SELECT - ( 55 ) * - 80 AS col0
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + NULLIF ( - - 22, + COUNT( * ) + + 35 ) - 3 * 97 * + 55 + COUNT( ALL 97 )
----
-15982

skipif mysql # not compatible
query I rowsort label-8436
SELECT + NULLIF ( - - 22, + COUNT ( * ) + + 35 ) - 3 * 97 * + 55 + COUNT ( ALL 97 )
----
-15982

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT + 88 DIV - + 71
----
-1

skipif mysql # not compatible
query I rowsort label-8437
SELECT + 88 / - + 71
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8438
SELECT DISTINCT 79, ( SUM( DISTINCT + + 44 ) ) - 98 + - + 54 AS col0
----
79
-108

skipif mysql # not compatible
query II rowsort label-8438
SELECT DISTINCT 79, ( SUM ( DISTINCT + + 44 ) ) - 98 + - + 54 AS col0
----
79
-108

query I rowsort
SELECT ALL + ( + - ( - 82 ) )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT ALL CASE 45 WHEN COUNT( * ) - - - ( - + NULLIF ( COALESCE ( ( + - 38 ), + MAX( + 91 ) - - 80 + - + 37 * - ( - COALESCE ( 93, + 71 + - - 28 ) ), + ( - + 82 ) * - 25 + - 95 * - - 18 + 16 ), - 68 + COALESCE ( 89, COALESCE ( 49, - 27, - COUNT( * ) + + 95 ) / COUNT( * ), CAST( + AVG ( - ( 10 ) ) AS SIGNED ) + ( + COUNT( * ) ) ) ) ) + - 61 THEN - 85 + 44 * - 47 END / - CASE 45 / + 25 WHEN - 12 + - 79 THEN NULL WHEN + COUNT( * ) * + 73 + COALESCE ( 37, - 13, 91 ) THEN 23 END + - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL CASE 45 WHEN COUNT ( * ) - - - ( - + NULLIF ( COALESCE ( ( + - 38 ), + MAX ( + 91 ) - - 80 + - + 37 * - ( - COALESCE ( 93, + 71 + - - 28 ) ), + ( - + 82 ) * - 25 + - 95 * - - 18 + 16 ), - 68 + COALESCE ( 89, COALESCE ( 49, - 27, - COUNT ( * ) + + 95 ) / COUNT ( * ), CAST ( + AVG ( - ( 10 ) ) AS INTEGER ) + ( + COUNT ( * ) ) ) ) ) + - 61 THEN - 85 + 44 * - 47 END / - CASE 45 / + 25 WHEN - 12 + - 79 THEN NULL WHEN + COUNT ( * ) * + 73 + COALESCE ( 37, - 13, 91 ) THEN 23 END + - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8441
SELECT ALL + COUNT( * ) DIV - 36 * 79 + + - COUNT( * ) AS col0, - 22 - + 64 DIV + 84 * 6 AS col0
----
-1
-22

skipif mysql # not compatible
query II rowsort label-8441
SELECT ALL + COUNT ( * ) / - 36 * 79 + + - COUNT ( * ) AS col0, - 22 - + 64 / + 84 * 6 AS col0
----
-1
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT 13 DIV - - 84 * + 34 - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8442
SELECT 13 / - - 84 * + 34 - 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT - 8 * MAX( 77 ) + + 12 + - 60
----
-664

skipif mysql # not compatible
query I rowsort label-8443
SELECT - 8 * MAX ( 77 ) + + 12 + - 60
----
-664

query I rowsort
SELECT - 4 * 43 col0
----
-172

query I rowsort
SELECT - 16 + - 87
----
-103

query I rowsort
SELECT + NULLIF ( + 37, 81 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8447
SELECT DISTINCT + 70, + MAX( - 32 ) * - 87 - - + 61 col0
----
70
2845

skipif mysql # not compatible
query II rowsort label-8447
SELECT DISTINCT + 70, + MAX ( - 32 ) * - 87 - - + 61 col0
----
70
2845

query II rowsort
SELECT ALL + 83 AS col2, 23 * + 51
----
83
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT 24 * - - 92 + COUNT( * ) AS col2
----
2209

skipif mysql # not compatible
query I rowsort label-8449
SELECT 24 * - - 92 + COUNT ( * ) AS col2
----
2209

query I rowsort
SELECT DISTINCT + CASE 49 WHEN + 1 / 82 - - 22 / - + 72 THEN 91 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 23 * + 63 AS col2
----
1449

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8452
SELECT ALL - 12 DIV - ( - - COUNT( * ) ), - COUNT( * ) AS col0
----
12
-1

skipif mysql # not compatible
query II rowsort label-8452
SELECT ALL - 12 / - ( - - COUNT ( * ) ), - COUNT ( * ) AS col0
----
12
-1

query I rowsort
SELECT - 96 + + 28 AS col2
----
-68

query I rowsort
SELECT + ( NULLIF ( - 19, 7 ) )
----
-19

query I rowsort
SELECT 63 + - 1 - + - 60 AS col1
----
122

query II rowsort
SELECT + 17 AS col0, 95 AS col1
----
17
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8457
SELECT - ( + + 59 ) DIV - 87 AS col0, - CASE + 10 WHEN - 17 THEN NULL WHEN - ( + COUNT( * ) ) THEN - 67 ELSE NULL END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8457
SELECT - ( + + 59 ) / - 87 AS col0, - CASE + 10 WHEN - 17 THEN NULL WHEN - ( + COUNT ( * ) ) THEN - 67 ELSE NULL END AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT + COUNT( * ) * 19
----
19

skipif mysql # not compatible
query I rowsort label-8458
SELECT + COUNT ( * ) * 19
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8459
SELECT ALL + MAX( - 37 ) * - + 83 AS col1, 54
----
3071
54

skipif mysql # not compatible
query II rowsort label-8459
SELECT ALL + MAX ( - 37 ) * - + 83 AS col1, 54
----
3071
54

query I rowsort
SELECT ALL - COALESCE ( - ( 76 ), - 75 * 12 + + 80 )
----
76

query I rowsort
SELECT DISTINCT - - 72 * + - 66 + + 9 * - 5 AS col0
----
-4797

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + COUNT( * ) * - 67 * - 65 * + 2 * + + 60
----
522600

skipif mysql # not compatible
query I rowsort label-8462
SELECT + COUNT ( * ) * - 67 * - 65 * + 2 * + + 60
----
522600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT DISTINCT CAST( + - 38 AS SIGNED ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT CAST ( + - 38 AS INTEGER ) AS col2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8464
SELECT + ( + COUNT( * ) ) - + - COUNT( * ) + - - 28 DIV + + 4 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8464
SELECT + ( + COUNT ( * ) ) - + - COUNT ( * ) + - - 28 / + + 4 AS col1
----
9

query II rowsort
SELECT 24, 45 AS col2
----
24
45

query I rowsort
SELECT + 87 + + + 9 AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8467
SELECT DISTINCT 41 * CASE MIN( 50 ) WHEN - + 69 THEN - + 71 + 37 * - 83 ELSE + + NULLIF ( + + ( - ( - COUNT( * ) ) ), - 81 ) + 10 DIV 25 * - COUNT( * ) END
----
41

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT 41 * CASE MIN ( 50 ) WHEN - + 69 THEN - + 71 + 37 * - 83 ELSE + + NULLIF ( + + ( - ( - COUNT ( * ) ) ), - 81 ) + 10 / 25 * - COUNT ( * ) END
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT ALL 71 DIV - 76 * + 38
----
0

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL 71 / - 76 * + 38
----
0

query I rowsort
SELECT 84 * + - NULLIF ( 63, - - ( - ( - 12 ) ) ) col2
----
-5292

query I rowsort
SELECT ALL 94 + ( + - 86 ) AS col1
----
8

query I rowsort
SELECT DISTINCT 5 * 57 * + + 39
----
11115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8472
SELECT ALL 64 + + COALESCE ( - 20, - CAST( 55 AS SIGNED ), - COUNT( * ), - 51 * + 72 - 36 + - COUNT( * ) + 8 * 59 * 23 DIV - 40 * + 15 - 75 + - 97 + - 32 * - NULLIF ( 4, 57 * 49 ) * + 42 ) + 6 * - 33 * - 55 col2
----
10934

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL 64 + + COALESCE ( - 20, - CAST ( 55 AS INTEGER ), - COUNT ( * ), - 51 * + 72 - 36 + - COUNT ( * ) + 8 * 59 * 23 / - 40 * + 15 - 75 + - 97 + - 32 * - NULLIF ( 4, 57 * 49 ) * + 42 ) + 6 * - 33 * - 55 col2
----
10934

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8473
SELECT CAST( NULL AS DECIMAL ) + + 64, - 17 * - 85 * - + SUM( ALL 66 ) + + - 22 * - 8 AS col1
----
NULL
-95194

skipif mysql # not compatible
query II rowsort label-8473
SELECT CAST ( NULL AS REAL ) + + 64, - 17 * - 85 * - + SUM ( ALL 66 ) + + - 22 * - 8 AS col1
----
NULL
-95194

query I rowsort
SELECT ALL 40 + + 83
----
123

onlyif mysql # DIV for integer division: 
query II rowsort label-8475
SELECT 74 DIV - 74 col2, 60 * + + 22 AS col0
----
-1
1320

skipif mysql # not compatible
query II rowsort label-8475
SELECT 74 / - 74 col2, 60 * + + 22 AS col0
----
-1
1320

query I rowsort
SELECT ( + + 38 ) * - ( + + 54 ) + + 59 AS col2
----
-1993

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT 19 + + COUNT( * ) + COUNT( * ) col2
----
21

skipif mysql # not compatible
query I rowsort label-8477
SELECT 19 + + COUNT ( * ) + COUNT ( * ) col2
----
21

query I rowsort
SELECT ALL NULLIF ( ( + + 48 ), - - 35 / + 75 ) + + 93 AS col2
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-8479
SELECT 35 * - COUNT( * ) col2, - 60 + - 68 AS col1
----
-35
-128

skipif mysql # not compatible
query II rowsort label-8479
SELECT 35 * - COUNT ( * ) col2, - 60 + - 68 AS col1
----
-35
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT DISTINCT + 46 DIV + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT + 46 / + 88 AS col0
----
0

query I rowsort
SELECT ALL - 73 col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT - MAX( DISTINCT + 39 ) AS col0, 97
----
-39
97

skipif mysql # not compatible
query II rowsort label-8482
SELECT - MAX ( DISTINCT + 39 ) AS col0, 97
----
-39
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8483
SELECT NULLIF ( 21, CAST( 92 AS SIGNED ) ) * + 25 * + 29 + - MAX( - 58 ) - - + COUNT( * ) + - + 80 + + - 37
----
15167

skipif mysql # not compatible
query I rowsort label-8483
SELECT NULLIF ( 21, CAST ( 92 AS INTEGER ) ) * + 25 * + 29 + - MAX ( - 58 ) - - + COUNT ( * ) + - + 80 + + - 37
----
15167

query I rowsort
SELECT + NULLIF ( - 76, + 75 ) * + 88 * + 5
----
-33440

query I rowsort
SELECT DISTINCT - - 50 * ( - 8 ) + - 65 + 6
----
-459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT - - COALESCE ( + 58, - - CAST( NULL AS SIGNED ) ) * - + 77 - 9
----
-4475

skipif mysql # not compatible
query I rowsort label-8486
SELECT - - COALESCE ( + 58, - - CAST ( NULL AS INTEGER ) ) * - + 77 - 9
----
-4475

query I rowsort
SELECT ALL - + 86 col2
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8488
SELECT - ( - + CASE - + 30 WHEN 57 THEN + 66 * 6 * - 11 - + NULLIF ( 91, - - 55 ) END ) * - + 77 / + CAST( NULL AS DECIMAL ) * + + 34 - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT - ( - + CASE - + 30 WHEN 57 THEN + 66 * 6 * - 11 - + NULLIF ( 91, - - 55 ) END ) * - + 77 / + CAST ( NULL AS REAL ) * + + 34 - + 71
----
NULL

query I rowsort
SELECT - 69 * + + 33 * - 85 AS col2
----
193545

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT 57 + - COUNT( + + ( + 35 ) ) - 56 + 5
----
5

skipif mysql # not compatible
query I rowsort label-8490
SELECT 57 + - COUNT ( + + ( + 35 ) ) - 56 + 5
----
5

query I rowsort
SELECT - COALESCE ( + 84, + - 56 ) - - 44 + 54 + + - 40 col1
----
-26

query I rowsort
SELECT 26 - - 79 AS col2
----
105

query I rowsort
SELECT ALL + ( 76 ) * + 84
----
6384

query I rowsort
SELECT ALL + - 82 + + 0 col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8495
SELECT ALL - 82 + + CAST( NULL AS SIGNED ) * - + 7 * - 71 AS col2, 89
----
NULL
89

skipif mysql # not compatible
query II rowsort label-8495
SELECT ALL - 82 + + CAST ( NULL AS INTEGER ) * - + 7 * - 71 AS col2, 89
----
NULL
89

query I rowsort
SELECT DISTINCT - 71 + - - 72 * + 10
----
649

query I rowsort
SELECT DISTINCT - 40 + + + 5 AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT DISTINCT MIN( + 28 ) + + - 60 + + + 62 DIV - 15 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT MIN ( + 28 ) + + - 60 + + + 62 / - 15 AS col1
----
-36

query I rowsort
SELECT DISTINCT + 68 + - + 88 * + 69 AS col2
----
-6004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT 74 + CAST( - 29 AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8500
SELECT 74 + CAST ( - 29 AS INTEGER ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8501
SELECT 64 AS col2, - ( + - 87 ) + - 24 * 95 * + - CAST( NULL AS SIGNED ) AS col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8501
SELECT 64 AS col2, - ( + - 87 ) + - 24 * 95 * + - CAST ( NULL AS INTEGER ) AS col1
----
64
NULL

query I rowsort
SELECT DISTINCT + 50 + - 63 AS col1
----
-13

query I rowsort
SELECT 19 * 9 AS col1
----
171

query II rowsort
SELECT 45 col2, + 65 * + - 80 * + 33
----
45
-171600

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8505
SELECT CASE + 53 WHEN 24 THEN NULL ELSE + 41 END + + + 38 * + COALESCE ( 47, + 36 DIV + + ( 32 ), + CAST( NULL AS SIGNED ) ), ( + + 94 ) * ( + COALESCE ( - 84, + 27 ) ) DIV - - 6 AS col2
----
1827
-1316

skipif mysql # not compatible
query II rowsort label-8505
SELECT CASE + 53 WHEN 24 THEN NULL ELSE + 41 END + + + 38 * + COALESCE ( 47, + 36 / + + ( 32 ), + CAST ( NULL AS INTEGER ) ), ( + + 94 ) * ( + COALESCE ( - 84, + 27 ) ) / - - 6 AS col2
----
1827
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT DISTINCT MAX( + - 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT MAX ( + - 82 ) AS col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8507
SELECT ALL SUM( DISTINCT - - 50 ) * - 46 * MAX( - 91 ) col2, - NULLIF ( COUNT( * ), + 51 ) DIV + 25
----
209300
0

skipif mysql # not compatible
query II rowsort label-8507
SELECT ALL SUM ( DISTINCT - - 50 ) * - 46 * MAX ( - 91 ) col2, - NULLIF ( COUNT ( * ), + 51 ) / + 25
----
209300
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8508
SELECT DISTINCT + 78 DIV 48 DIV + - 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + 78 / 48 / + - 9 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( - 65, - 3 * + - 77 ) * - 7
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL SUM( - 46 ) * - 50 AS col1
----
2300

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL SUM ( - 46 ) * - 50 AS col1
----
2300

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT DISTINCT - 0 * - 93 * 83 - + + 29 DIV + + NULLIF ( 62, + 76 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - 0 * - 93 * 83 - + + 29 / + + NULLIF ( 62, + 76 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT + 39 - + - 84 + + MAX( ALL 81 ) + + 33 * + ( - + 67 )
----
-2007

skipif mysql # not compatible
query I rowsort label-8512
SELECT + 39 - + - 84 + + MAX ( ALL 81 ) + + 33 * + ( - + 67 )
----
-2007

query I rowsort
SELECT ALL 45 * + 61 AS col1
----
2745

query I rowsort
SELECT + COALESCE ( + 12, 29 ) * ( 25 ) + 9
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + ( - - 46 ) * - + COUNT( * ) + + - 33
----
-79

skipif mysql # not compatible
query I rowsort label-8515
SELECT + ( - - 46 ) * - + COUNT ( * ) + + - 33
----
-79

query I rowsort
SELECT - - 68 * - 29
----
-1972

query II rowsort
SELECT DISTINCT + 74 AS col1, + ( 49 ) - + 20
----
74
29

query I rowsort
SELECT ALL + + ( + - 39 ) AS col0
----
-39

query II rowsort
SELECT + + 99 + ( + - 54 ) AS col0, + 91 AS col1
----
45
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT ALL - 29 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL - 29 / - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT + - COUNT( * ) + + 97
----
96

skipif mysql # not compatible
query I rowsort label-8521
SELECT + - COUNT ( * ) + + 97
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - MIN( - 60 ) * + - 82 + + 66 * + 74 * NULLIF ( - 93, - 57 ) + - 84 - - - 78 + 67 * - ( - - 30 )
----
-461304

skipif mysql # not compatible
query I rowsort label-8522
SELECT - MIN ( - 60 ) * + - 82 + + 66 * + 74 * NULLIF ( - 93, - 57 ) + - 84 - - - 78 + 67 * - ( - - 30 )
----
-461304

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT ALL + 13 AS col0, 7 - - 88 + + COALESCE ( + COUNT( * ), - 71 + + - 91, - SUM( ALL + - 36 ) ) * + 2 * 45
----
13
185

skipif mysql # not compatible
query II rowsort label-8523
SELECT ALL + 13 AS col0, 7 - - 88 + + COALESCE ( + COUNT ( * ), - 71 + + - 91, - SUM ( ALL + - 36 ) ) * + 2 * 45
----
13
185

query I rowsort
SELECT ALL + - 41 col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT + NULLIF ( - - 7, - + SUM( ALL 47 ) )
----
7

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT + NULLIF ( - - 7, - + SUM ( ALL 47 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + + 47 + + MAX( - 64 ) + - 79 - 30
----
-126

skipif mysql # not compatible
query I rowsort label-8526
SELECT + + 47 + + MAX ( - 64 ) + - 79 - 30
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT - - 66 * - ( ( - - 66 ) ) + - + 12 + - 32 * + - NULLIF ( - + 97, + - 29 + 66 * + ( ( 16 ) ) + + 77 + - MIN( ALL - + 10 ) / - MIN( DISTINCT + 39 ) * + 86 + - - 84 * - + 2 ) + - 88
----
-7560

skipif mysql # not compatible
query I rowsort label-8527
SELECT - - 66 * - ( ( - - 66 ) ) + - + 12 + - 32 * + - NULLIF ( - + 97, + - 29 + 66 * + ( ( 16 ) ) + + 77 + - MIN ( ALL - + 10 ) / - MIN ( DISTINCT + 39 ) * + 86 + - - 84 * - + 2 ) + - 88
----
-7560

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT - + 8 + + - 79 - + 35 * - + COUNT( * ) + - - 23 * - + 27 AS col2
----
-673

skipif mysql # not compatible
query I rowsort label-8528
SELECT - + 8 + + - 79 - + 35 * - + COUNT ( * ) + - - 23 * - + 27 AS col2
----
-673

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT + + COUNT( * ) * - + 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT + + COUNT ( * ) * - + 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL - ( - 92 ) + + - 50 * + COUNT( DISTINCT - - 32 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - ( - 92 ) + + - 50 * + COUNT ( DISTINCT - - 32 ) AS col0
----
42

query I rowsort
SELECT + ( + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL COUNT( * ) * 38 + - 1
----
37

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL COUNT ( * ) * 38 + - 1
----
37

query I rowsort
SELECT DISTINCT - 84 * - 12 * - 57 AS col2
----
-57456

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL 52 + - COUNT( * ) + + + ( 30 )
----
81

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL 52 + - COUNT ( * ) + + + ( 30 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL MAX( DISTINCT + - 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL MAX ( DISTINCT + - 60 ) AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL - 36 + CASE + 87 WHEN - - COUNT( * ) THEN NULL WHEN AVG ( DISTINCT + 7 ) THEN COALESCE ( + CASE - 68 WHEN - ( 31 ) THEN NULL WHEN - 18 THEN - - ( + MAX( ALL - NULLIF ( CAST( NULLIF ( + 2, - + 65 ) AS SIGNED ), - 71 ) ) ) ELSE NULL END, - 36 + - 16 * CAST( NULL AS SIGNED ) * 88 + + 35 + 33, - 91 ) END + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - 36 + CASE + 87 WHEN - - COUNT ( * ) THEN NULL WHEN AVG ( DISTINCT + 7 ) THEN COALESCE ( + CASE - 68 WHEN - ( 31 ) THEN NULL WHEN - 18 THEN - - ( + MAX ( ALL - NULLIF ( CAST ( NULLIF ( + 2, - + 65 ) AS INTEGER ), - 71 ) ) ) ELSE NULL END, - 36 + - 16 * CAST ( NULL AS INTEGER ) * 88 + + 35 + 33, - 91 ) END + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 29 - + 88
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8538
SELECT - 53 + + 25 + 55 * + COUNT( * ) / + + CAST( NULL AS SIGNED ) * COALESCE ( - 6, 64 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT - 53 + + 25 + 55 * + COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * COALESCE ( - 6, 64 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT ALL + 64 DIV + - 41
----
-1

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL + 64 / + - 41
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8540
SELECT - 29 + COUNT( * ) + + - 49 DIV - 67 * + ( - + 26 ) + + COUNT( * ), 21 AS col2
----
-27
21

skipif mysql # not compatible
query II rowsort label-8540
SELECT - 29 + COUNT ( * ) + + - 49 / - 67 * + ( - + 26 ) + + COUNT ( * ), 21 AS col2
----
-27
21

query II rowsort
SELECT - 34 col2, COALESCE ( + 40, + 33 * 78 + 81 * 1 + + 79 + - 4 )
----
-34
40

query I rowsort
SELECT - 5 + - 95
----
-100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8543
SELECT ALL ( + ( - + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL ( + ( - + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - COUNT( * ) + - + 37 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8544
SELECT - COUNT ( * ) + - + 37 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT DISTINCT - 19 - + + 73 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT - 19 - + + 73 + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL ( + MAX( DISTINCT - 40 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL ( + MAX ( DISTINCT - 40 ) )
----
-40

query I rowsort
SELECT DISTINCT + 74 * 34 AS col2
----
2516

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8548
SELECT + 39 + 15 - + + COUNT( * ) DIV + 7 AS col2, 72
----
54
72

skipif mysql # not compatible
query II rowsort label-8548
SELECT + 39 + 15 - + + COUNT ( * ) / + 7 AS col2, 72
----
54
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT ALL - COALESCE ( 55, + - 15 ) DIV - + 73 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - COALESCE ( 55, + - 15 ) / - + 73 - + + COUNT ( * )
----
-1

query I rowsort
SELECT + 15 + + + 92 AS col0
----
107

query I rowsort
SELECT - 86 * 74
----
-6364

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT + SUM( ALL + - 44 ) * + - 34
----
1496

skipif mysql # not compatible
query I rowsort label-8552
SELECT + SUM ( ALL + - 44 ) * + - 34
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT DISTINCT + + SUM( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT + + SUM ( 98 )
----
98

query II rowsort
SELECT ALL + 61 AS col0, 88 * - + 4
----
61
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT DISTINCT + 0 * - - 54 DIV - + 43 + 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + 0 * - - 54 / - + 43 + 27 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8556
SELECT ALL + + 68, COUNT( * ) * - 29 * - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-8556
SELECT ALL + + 68, COUNT ( * ) * - 29 * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
68
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8557
SELECT ALL + 73 DIV 20 * - 58
----
-174

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + 73 / 20 * - 58
----
-174

query I rowsort
SELECT 92 * - ( + 44 ) * 85 + + 11
----
-344069

query II rowsort
SELECT ALL + + 34 AS col0, + 41 AS col0
----
34
41

query I rowsort
SELECT - + 18 + + 5 + + + 12
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL + COUNT( * ) * 20
----
20

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + COUNT ( * ) * 20
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8562
SELECT DISTINCT + ( - 14 ), + COUNT( * ) AS col1
----
-14
1

skipif mysql # not compatible
query II rowsort label-8562
SELECT DISTINCT + ( - 14 ), + COUNT ( * ) AS col1
----
-14
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT + - 43 + COUNT( * ) + + CASE + + 96 WHEN - NULLIF ( - 97, + 13 * - 55 * 46 + 91 + + - ( + + COUNT( * ) ) ) / + - 57 THEN 36 WHEN + 4 THEN + + 38 ELSE NULL END / + 70 AS col0, + 92 * - + 65 * - - SUM( DISTINCT 37 )
----
NULL
-221260

skipif mysql # not compatible
query II rowsort label-8563
SELECT + - 43 + COUNT ( * ) + + CASE + + 96 WHEN - NULLIF ( - 97, + 13 * - 55 * 46 + 91 + + - ( + + COUNT ( * ) ) ) / + - 57 THEN 36 WHEN + 4 THEN + + 38 ELSE NULL END / + 70 AS col0, + 92 * - + 65 * - - SUM ( DISTINCT 37 )
----
NULL
-221260

query I rowsort
SELECT - ( - NULLIF ( + - 92, + + AVG ( ALL 17 ) ) ) AS col0
----
-92

query II rowsort
SELECT - 42 AS col0, 37 + + 40 + - 83 * + 56 AS col2
----
-42
-4571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT DISTINCT 3 * + + COUNT( * ) / - + COUNT( * ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) + 53 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT 3 * + + COUNT ( * ) / - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 53 * + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT ALL + 30 * ( + 0 ) + 17 + - NULLIF ( + 12, 12 ) - + + AVG ( - + 12 ) * + 29 / + 52 * + MIN( DISTINCT - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL + 30 * ( + 0 ) + 17 + - NULLIF ( + 12, 12 ) - + + AVG ( - + 12 ) * + 29 / + 52 * + MIN ( DISTINCT - 55 )
----
NULL

query I rowsort
SELECT + 32 * + 90 - - 18 + + 80
----
2978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8569
SELECT DISTINCT - 88 * + 40 * + SUM( + 99 ) * + 68 / + CAST( NULL AS SIGNED ) + - NULLIF ( 84, - - 99 ) AS col2, 47 col0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-8569
SELECT DISTINCT - 88 * + 40 * + SUM ( + 99 ) * + 68 / + CAST ( NULL AS INTEGER ) + - NULLIF ( 84, - - 99 ) AS col2, 47 col0
----
NULL
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8570
SELECT + COALESCE ( COUNT( * ), 42 DIV + 24 + - 22 + + 74 * + CASE + 37 WHEN - - CAST( 1 AS SIGNED ) * 97 + - 44 - + + 2 + - + ( 1 ) + + 32 * 85 * - CASE + - 45 WHEN 24 THEN NULL ELSE + 72 - 69 * + 21 END * + 76 + CAST( + MAX( - 20 ) AS SIGNED ) THEN + MAX( DISTINCT - 53 ) END ) * 17 - + 60 * 16 AS col2
----
-943

skipif mysql # not compatible
query I rowsort label-8570
SELECT + COALESCE ( COUNT ( * ), 42 / + 24 + - 22 + + 74 * + CASE + 37 WHEN - - CAST ( 1 AS INTEGER ) * 97 + - 44 - + + 2 + - + ( 1 ) + + 32 * 85 * - CASE + - 45 WHEN 24 THEN NULL ELSE + 72 - 69 * + 21 END * + 76 + CAST ( + MAX ( - 20 ) AS INTEGER ) THEN + MAX ( DISTINCT - 53 ) END ) * 17 - + 60 * 16 AS col2
----
-943

query II rowsort
SELECT DISTINCT + - 32, 47 AS col1
----
-32
47

query I rowsort
SELECT + ( + 10 )
----
10

query II rowsort
SELECT 74 col0, - 0 - - 8 col1
----
74
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8574
SELECT ALL MAX( 26 ), + 34 AS col2
----
26
34

skipif mysql # not compatible
query II rowsort label-8574
SELECT ALL MAX ( 26 ), + 34 AS col2
----
26
34

query II rowsort
SELECT - ( + 92 ) AS col2, - 83
----
-92
-83

query I rowsort
SELECT - 53 * - 90 AS col2
----
4770

onlyif mysql # aggregate syntax: 
query II rowsort label-8577
SELECT - 12 - + 62 * - + CASE - - 31 WHEN - + 11 + + + 37 + - 46 + + - ( 97 ) THEN + + 25 WHEN 10 THEN + 97 + 16 / - 9 ELSE NULL END + - COUNT( * ) + 70 * 69 + AVG ( ( COALESCE ( 31, 46 + - 18 * 49, + + 5 ) ) ) AS col1, 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-8577
SELECT - 12 - + 62 * - + CASE - - 31 WHEN - + 11 + + + 37 + - 46 + + - ( 97 ) THEN + + 25 WHEN 10 THEN + 97 + 16 / - 9 ELSE NULL END + - COUNT ( * ) + 70 * 69 + AVG ( ( COALESCE ( 31, 46 + - 18 * 49, + + 5 ) ) ) AS col1, 2 AS col0
----
NULL
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8578
SELECT MAX( ALL 11 ), COUNT( * ) AS col0
----
11
1

skipif mysql # not compatible
query II rowsort label-8578
SELECT MAX ( ALL 11 ), COUNT ( * ) AS col0
----
11
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8579
SELECT + CAST( NULL AS SIGNED ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8579
SELECT + CAST ( NULL AS INTEGER ) * - 97
----
NULL

query I rowsort
SELECT ALL + 59 * 65 AS col0
----
3835

query I rowsort
SELECT DISTINCT ( + + 23 ) col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT COUNT( * ) * + + 19
----
19

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT COUNT ( * ) * + + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL CASE COUNT( * ) WHEN + - 66 THEN - 81 ELSE MIN( + 66 ) + MIN( ALL + 2 ) END * + 38
----
2584

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL CASE COUNT ( * ) WHEN + - 66 THEN - 81 ELSE MIN ( + 66 ) + MIN ( ALL + 2 ) END * + 38
----
2584

query II rowsort
SELECT ALL 34 - - 55, + 44 col1
----
89
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT CAST( NULL AS SIGNED ) / - - 59 * - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT CAST ( NULL AS INTEGER ) / - - 59 * - - 25
----
NULL

query I rowsort
SELECT 37 * 49
----
1813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT 8 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT 8 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT 24 + SUM( DISTINCT CAST( - 80 AS SIGNED ) )
----
-56

skipif mysql # not compatible
query I rowsort label-8588
SELECT 24 + SUM ( DISTINCT CAST ( - 80 AS INTEGER ) )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8589
SELECT DISTINCT - 88 * - 21, COUNT( - 99 ) + - + 12 - 94 AS col1
----
1848
-105

skipif mysql # not compatible
query II rowsort label-8589
SELECT DISTINCT - 88 * - 21, COUNT ( - 99 ) + - + 12 - 94 AS col1
----
1848
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-8590
SELECT DISTINCT - 16 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT - 16 / - 81
----
0

query I rowsort
SELECT ALL - 2 + - - 28 + - CASE 27 WHEN - 49 THEN + 61 ELSE + NULLIF ( + 68, - 39 * - 78 ) END * - 94 * 54 col1
----
345194

onlyif mysql # DIV for integer division: 
query II rowsort label-8592
SELECT + 40 + - 52 AS col1, 70 DIV + 41 AS col2
----
-12
1

skipif mysql # not compatible
query II rowsort label-8592
SELECT + 40 + - 52 AS col1, 70 / + 41 AS col2
----
-12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT - COUNT( * ) - - + 49 col1
----
48

skipif mysql # not compatible
query I rowsort label-8593
SELECT - COUNT ( * ) - - + 49 col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT ALL + + 63 * - 92, + COUNT( * ) * 24 AS col0
----
-5796
24

skipif mysql # not compatible
query II rowsort label-8594
SELECT ALL + + 63 * - 92, + COUNT ( * ) * 24 AS col0
----
-5796
24

query I rowsort
SELECT ALL - 52 + + - 43
----
-95

query I rowsort
SELECT - 62 + ( 11 ) * + ( - 5 ) - 11
----
-128

query I rowsort
SELECT - ( - 38 ) * 14 col1
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + CASE + 82 WHEN ( - 41 ) - - - SUM( - - 75 ) + 92 + 1 THEN - + 85 * + + 11 ELSE NULL END * 25 + 94 * - 60 * + + COUNT( * ) + + CASE + - ( 60 ) WHEN - 30 * + 97 / + COALESCE ( + 55, - 34 / COUNT( * ) + 97 * - 17, - 88 * - 93 ) + 38 + 98 THEN 28 + + ( 99 ) WHEN ( 62 ) THEN NULL WHEN 84 THEN + 15 * 47 + - 62 * - 79 END * ( 62 + - 67 * 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT + CASE + 82 WHEN ( - 41 ) - - - SUM ( - - 75 ) + 92 + 1 THEN - + 85 * + + 11 ELSE NULL END * 25 + 94 * - 60 * + + COUNT ( * ) + + CASE + - ( 60 ) WHEN - 30 * + 97 / + COALESCE ( + 55, - 34 / COUNT ( * ) + 97 * - 17, - 88 * - 93 ) + 38 + 98 THEN 28 + + ( 99 ) WHEN ( 62 ) THEN NULL WHEN 84 THEN + 15 * 47 + - 62 * - 79 END * ( 62 + - 67 * 84 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8599
SELECT ( - + 54 ) DIV + SUM( ALL + 35 ) + - 34 * + 99 AS col0
----
-3367

skipif mysql # not compatible
query I rowsort label-8599
SELECT ( - + 54 ) / + SUM ( ALL + 35 ) + - 34 * + 99 AS col0
----
-3367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL 59 + - - 52 - + - 84 * - COUNT( ALL CAST( NULL AS SIGNED ) )
----
111

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL 59 + - - 52 - + - 84 * - COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8601
SELECT - COUNT( * ) + - - COUNT( * ) DIV - 90 * - 41 * 70 AS col1, + ( MIN( DISTINCT - 57 ) )
----
-1
-57

skipif mysql # not compatible
query II rowsort label-8601
SELECT - COUNT ( * ) + - - COUNT ( * ) / - 90 * - 41 * 70 AS col1, + ( MIN ( DISTINCT - 57 ) )
----
-1
-57

query I rowsort
SELECT ALL - + 98 col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8603
SELECT DISTINCT - - 59 + - 29 * + COUNT( * ) DIV - 95 + - 83 + - + 20 - - 19 * - 33 * - ( 35 ) * SUM( 79 ) - - - COALESCE ( COUNT( * ), 80 ) * - 12 * + 6
----
1733683

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT - - 59 + - 29 * + COUNT ( * ) / - 95 + - 83 + - + 20 - - 19 * - 33 * - ( 35 ) * SUM ( 79 ) - - - COALESCE ( COUNT ( * ), 80 ) * - 12 * + 6
----
1733683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT + + 4 * + 72 + + 45 DIV + - 78 DIV - + COUNT( * ) + - 37 * - 66
----
2730

skipif mysql # not compatible
query I rowsort label-8604
SELECT + + 4 * + 72 + + 45 / + - 78 / - + COUNT ( * ) + - 37 * - 66
----
2730

query I rowsort
SELECT ALL + - 9 + ( ( 13 ) )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT 91 * + 91 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT 91 * + 91 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 34 * - 20 * 4 AS col0
----
-2720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8608
SELECT ALL COUNT( * ) * - 44 DIV + 37 + + MAX( + + 34 )
----
33

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL COUNT ( * ) * - 44 / + 37 + + MAX ( + + 34 )
----
33

query I rowsort
SELECT 21 + - 78 AS col2
----
-57

query I rowsort
SELECT 80 + + 79 * + 79
----
6321

query I rowsort
SELECT DISTINCT 77 * 11
----
847

onlyif mysql # DIV for integer division: 
query II rowsort label-8612
SELECT DISTINCT - 54, - 92 DIV - 61 AS col0
----
-54
1

skipif mysql # not compatible
query II rowsort label-8612
SELECT DISTINCT - 54, - 92 / - 61 AS col0
----
-54
1

query I rowsort
SELECT 93 * 96 AS col0
----
8928

query I rowsort
SELECT 29 * 76 * - 14
----
-30856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8615
SELECT COALESCE ( + NULLIF ( - 80, - 50 ), 6 * + - 14 + MIN( - 29 ) ) * - CAST( NULL AS SIGNED ) + + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT COALESCE ( + NULLIF ( - 80, - 50 ), 6 * + - 14 + MIN ( - 29 ) ) * - CAST ( NULL AS INTEGER ) + + + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8616
SELECT ALL + COUNT( * ) * - COALESCE ( - - ( COUNT( * ) ), - CAST( - - 75 AS SIGNED ) + - CAST( NULL AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL + COUNT ( * ) * - COALESCE ( - - ( COUNT ( * ) ), - CAST ( - - 75 AS INTEGER ) + - CAST ( NULL AS INTEGER ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT ALL 64 DIV 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL 64 / 48 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8618
SELECT 18 + 7 * COUNT( * ) DIV - 35
----
18

skipif mysql # not compatible
query I rowsort label-8618
SELECT 18 + 7 * COUNT ( * ) / - 35
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT DISTINCT COUNT( - + 97 ) * NULLIF ( 1, 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT COUNT ( - + 97 ) * NULLIF ( 1, 45 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT CAST( NULL AS SIGNED ) * - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT CAST ( NULL AS INTEGER ) * - 45 col1
----
NULL

query II rowsort
SELECT - 90 AS col0, 30 AS col0
----
-90
30

query I rowsort
SELECT 2 - + + 11
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT NULLIF ( 14, MIN( + - 29 ) ) + + + 5 + + - 7 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8623
SELECT NULLIF ( 14, MIN ( + - 29 ) ) + + + 5 + + - 7 AS col0
----
12

query I rowsort
SELECT 53 + 32
----
85

query I rowsort
SELECT 63 + 36 AS col1
----
99

query I rowsort
SELECT DISTINCT - 11 * - 16 AS col2
----
176

query I rowsort
SELECT ALL 68 * 77 * + ( + 43 ) * 14 AS col1
----
3152072

onlyif mysql # aggregate syntax: 
query II rowsort label-8628
SELECT ALL 86 + SUM( DISTINCT - - 40 ), 71 AS col2
----
126
71

skipif mysql # not compatible
query II rowsort label-8628
SELECT ALL 86 + SUM ( DISTINCT - - 40 ), 71 AS col2
----
126
71

onlyif mysql # DIV for integer division: 
query II rowsort label-8629
SELECT 98 AS col0, 43 DIV 60 * + 80 AS col1
----
98
0

skipif mysql # not compatible
query II rowsort label-8629
SELECT 98 AS col0, 43 / 60 * + 80 AS col1
----
98
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT ALL + - 28 + 80 + + 59 DIV 39 * 13 * - + 80 AS col0
----
-988

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + - 28 + 80 + + 59 / 39 * 13 * - + 80 AS col0
----
-988

query I rowsort
SELECT - 63 * - + 14 * + 68 + + - 9
----
59967

query I rowsort
SELECT 8 * + 36 AS col2
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8633
SELECT - CAST( NULL AS SIGNED ) AS col2, + ( - + 97 ) * CAST( + + COUNT( * ) AS SIGNED ) * - + COALESCE ( 81, ( 33 ), 17 DIV + CASE + NULLIF ( ( + - SUM( ALL 24 ) ), 68 DIV + 68 * + - 89 ) WHEN - - AVG ( DISTINCT + 16 ) THEN NULL WHEN 39 + + 42 THEN + 63 + + ( + + 23 ) END ) AS col2
----
NULL
7857

skipif mysql # not compatible
query II rowsort label-8633
SELECT - CAST ( NULL AS INTEGER ) AS col2, + ( - + 97 ) * CAST ( + + COUNT ( * ) AS INTEGER ) * - + COALESCE ( 81, ( 33 ), 17 / + CASE + NULLIF ( ( + - SUM ( ALL 24 ) ), 68 / + 68 * + - 89 ) WHEN - - AVG ( DISTINCT + 16 ) THEN NULL WHEN 39 + + 42 THEN + 63 + + ( + + 23 ) END ) AS col2
----
NULL
7857

query I rowsort
SELECT DISTINCT - + 99 + - 20 + - 71 * + + CASE + 11 WHEN - 39 * - 75 - - 79 - + 65 / - 11 - - 92 THEN 60 ELSE - + 32 END AS col0
----
2153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT + CAST( NULL AS SIGNED ) * - 89 - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT + CAST ( NULL AS INTEGER ) * - 89 - + 17
----
NULL

query I rowsort
SELECT ALL + 99 * 31 * ( 72 )
----
220968

query I rowsort
SELECT ALL - 40 * - 66 + - 25 AS col0
----
2615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8638
SELECT - 36 * CASE 56 WHEN - SUM( + 50 ) DIV COUNT( * ) THEN - CASE + CAST( + 52 AS SIGNED ) WHEN 89 * - 90 + 97 THEN NULL ELSE COUNT( * ) END * + 94 ELSE - COUNT( * ) END DIV - + 50 + + COUNT( * ) + 38 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8638
SELECT - 36 * CASE 56 WHEN - SUM ( + 50 ) / COUNT ( * ) THEN - CASE + CAST ( + 52 AS INTEGER ) WHEN 89 * - 90 + 97 THEN NULL ELSE COUNT ( * ) END * + 94 ELSE - COUNT ( * ) END / - + 50 + + COUNT ( * ) + 38 AS col2
----
39

query I rowsort
SELECT DISTINCT + - 86 * - 84 + + 74 + 71 - 71 AS col1
----
7298

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL + - 20 * - COUNT( + - 82 ) - ( - 34 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL + - 20 * - COUNT ( + - 82 ) - ( - 34 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT ALL - 38 * COALESCE ( + 30, - 73 + CAST( NULL AS SIGNED ) - + ( - 18 ) )
----
-1140

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL - 38 * COALESCE ( + 30, - 73 + CAST ( NULL AS INTEGER ) - + ( - 18 ) )
----
-1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT + + NULLIF ( + 1, + - 39 ) / + 4 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT + + NULLIF ( + 1, + - 39 ) / + 4 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 89, - 62 * 16 col1
----
89
-992

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT ALL - 46, MAX( DISTINCT - 91 ) * 29 AS col2
----
-46
-2639

skipif mysql # not compatible
query II rowsort label-8644
SELECT ALL - 46, MAX ( DISTINCT - 91 ) * 29 AS col2
----
-46
-2639

query I rowsort
SELECT 5 + - + 61 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT 49 * + MIN( 94 ) + - NULLIF ( - + ( - 86 ), - 68 ) AS col2
----
4520

skipif mysql # not compatible
query I rowsort label-8646
SELECT 49 * + MIN ( 94 ) + - NULLIF ( - + ( - 86 ), - 68 ) AS col2
----
4520

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT COUNT( * ) * + 50 + + - 39
----
11

skipif mysql # not compatible
query I rowsort label-8647
SELECT COUNT ( * ) * + 50 + + - 39
----
11

query I rowsort
SELECT + ( + - 84 ) col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8649
SELECT COUNT( * ) col0, 19
----
1
19

skipif mysql # not compatible
query II rowsort label-8649
SELECT COUNT ( * ) col0, 19
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT - COALESCE ( + MIN( + 38 ), - - 49 * - 29 * + 79 * ( + 50 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8650
SELECT - COALESCE ( + MIN ( + 38 ), - - 49 * - 29 * + 79 * ( + 50 ) ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT SUM( - 11 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-8651
SELECT SUM ( - 11 ) col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT ALL 88 DIV 70
----
1

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL 88 / 70
----
1

query I rowsort
SELECT - 53 + + 6 + - 9
----
-56

query I rowsort
SELECT ALL + 5 - + 55
----
-50

query I rowsort
SELECT DISTINCT 23 * - 31
----
-713

query I rowsort
SELECT + 46 * - - 52 * 8
----
19136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8657
SELECT ALL - COUNT( * ) * + SUM( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL - COUNT ( * ) * + SUM ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8658
SELECT - COUNT( + 72 ) * + ( 64 ) AS col2, + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-8658
SELECT - COUNT ( + 72 ) * + ( 64 ) AS col2, + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
-64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT - 15 * + COUNT( * ) + + NULLIF ( + + 52, COUNT( DISTINCT - 93 ) + 5 ) * - - 87 + + - 13 AS col0
----
4496

skipif mysql # not compatible
query I rowsort label-8659
SELECT - 15 * + COUNT ( * ) + + NULLIF ( + + 52, COUNT ( DISTINCT - 93 ) + 5 ) * - - 87 + + - 13 AS col0
----
4496

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT - MAX( + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-8660
SELECT - MAX ( + 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL CASE + 71 WHEN + - 42 * + 74 + 74 / + COUNT( * ) THEN + - 83 * 69 WHEN - MIN( - 73 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL CASE + 71 WHEN + - 42 * + 74 + 74 / + COUNT ( * ) THEN + - 83 * 69 WHEN - MIN ( - 73 ) THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - ( COALESCE ( 59, + - 30 ) ) * + 3 * + + 71 + + 34 + 2 * - 45 AS col0, 97
----
-12623
97

query II rowsort
SELECT - 93 + - - NULLIF ( - 74, 44 ), + 78 AS col0
----
-167
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8664
SELECT NULLIF ( 20, + + 24 ) * - 61 - + + NULLIF ( + 52, 34 - - 11 ) DIV - 66 + - COUNT( * )
----
-1221

skipif mysql # not compatible
query I rowsort label-8664
SELECT NULLIF ( 20, + + 24 ) * - 61 - + + NULLIF ( + 52, 34 - - 11 ) / - 66 + - COUNT ( * )
----
-1221

onlyif mysql # DIV for integer division: 
query I rowsort label-8665
SELECT - 10 DIV + - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8665
SELECT - 10 / + - 66 AS col2
----
0

query I rowsort
SELECT ALL 74 + + ( + ( 11 ) ) / + + 8 * CASE - - 69 WHEN - - 5 THEN 31 / + 68 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT + 80 DIV 27 * + 5
----
10

skipif mysql # not compatible
query I rowsort label-8667
SELECT + 80 / 27 * + 5
----
10

query I rowsort
SELECT ALL + ( + 10 ) + - + 29
----
-19

query I rowsort
SELECT ALL ( - 26 )
----
-26

query I rowsort
SELECT + 56 * - 28 * 62
----
-97216

query I rowsort
SELECT ALL 27 * - 93 AS col2
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT ALL ( + COALESCE ( - 83, + CAST( + + AVG ( 52 ) AS SIGNED ) ) ) + + 2 + 55 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL ( + COALESCE ( - 83, + CAST ( + + AVG ( 52 ) AS INTEGER ) ) ) + + 2 + 55 AS col1
----
-26

query I rowsort
SELECT - 44 + - + 93 + - - ( + 78 ) * + 53 AS col2
----
3997

query I rowsort
SELECT + CASE + - 56 WHEN + + 27 THEN NULL ELSE + 9 END AS col1
----
9

onlyif mysql # aggregate syntax: 
query III rowsort label-8675
SELECT + - 99 * + COUNT( * ) * ( - - 39 ) col1, SUM( ALL 84 ) + - + 42 AS col1, + - COUNT( * ) + - 91 AS col0
----
-3861
42
-92

skipif mysql # not compatible
query III rowsort label-8675
SELECT + - 99 * + COUNT ( * ) * ( - - 39 ) col1, SUM ( ALL 84 ) + - + 42 AS col1, + - COUNT ( * ) + - 91 AS col0
----
-3861
42
-92

query I rowsort
SELECT ALL + 19 + - 61 - - + 62 * + 60 AS col1
----
3678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT DISTINCT 62 + - COUNT( * ) * 31 + 4 * + + COALESCE ( + COUNT( * ), - + 30 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT 62 + - COUNT ( * ) * 31 + 4 * + + COALESCE ( + COUNT ( * ), - + 30 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 65
----
NULL

query I rowsort
SELECT + 11 + ( - ( + + 62 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL 80 - + 98 + + + COUNT( * ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL 80 - + 98 + + + COUNT ( * ) col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8681
SELECT DISTINCT - 0 * - + COUNT( * ) * + 12 - - 70 + + COUNT( - + 29 ) DIV + + 90
----
70

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT - 0 * - + COUNT ( * ) * + 12 - - 70 + + COUNT ( - + 29 ) / + + 90
----
70

query I rowsort
SELECT + + 73 * 15
----
1095

query I rowsort
SELECT - 38 + + 44 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8684
SELECT - - MAX( + + 63 ) + + - 78 + - + NULLIF ( + 19, COUNT( * ) + CASE 93 WHEN - CAST( 72 AS SIGNED ) THEN - 40 * 3 / - + CASE WHEN NOT - 9 IS NOT NULL THEN - 6 * - 52 - + ( + 65 ) * - + 52 END + - - 36 END )
----
-34

skipif mysql # not compatible
query I rowsort label-8684
SELECT - - MAX ( + + 63 ) + + - 78 + - + NULLIF ( + 19, COUNT ( * ) + CASE 93 WHEN - CAST ( 72 AS INTEGER ) THEN - 40 * 3 / - + CASE WHEN NOT - 9 IS NOT NULL THEN - 6 * - 52 - + ( + 65 ) * - + 52 END + - - 36 END )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT + - 12 * - 61 * - ( - CAST( - 59 AS SIGNED ) )
----
-43188

skipif mysql # not compatible
query I rowsort label-8685
SELECT + - 12 * - 61 * - ( - CAST ( - 59 AS INTEGER ) )
----
-43188

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT COALESCE ( + - COUNT( * ), COUNT( * ) ) * 46 + 17 * 95
----
1569

skipif mysql # not compatible
query I rowsort label-8686
SELECT COALESCE ( + - COUNT ( * ), COUNT ( * ) ) * 46 + 17 * 95
----
1569

onlyif mysql # aggregate syntax: 
query II rowsort label-8687
SELECT DISTINCT + - MAX( + 88 ), 40 + - 83 AS col2
----
-88
-43

skipif mysql # not compatible
query II rowsort label-8687
SELECT DISTINCT + - MAX ( + 88 ), 40 + - 83 AS col2
----
-88
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8688
SELECT 10 * COUNT( * ) * + MIN( ALL - CAST( + 82 AS SIGNED ) ) DIV - + ( + ( 1 ) ) + + 66 AS col2
----
886

skipif mysql # not compatible
query I rowsort label-8688
SELECT 10 * COUNT ( * ) * + MIN ( ALL - CAST ( + 82 AS INTEGER ) ) / - + ( + ( 1 ) ) + + 66 AS col2
----
886

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT COUNT( * ) * ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT COUNT ( * ) * ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + ( + ( 47 ) ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL + COUNT( * ) * + MAX( + 10 ) * + + 93
----
930

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL + COUNT ( * ) * + MAX ( + 10 ) * + + 93
----
930

query I rowsort
SELECT ALL - 46 * - 51
----
2346

query I rowsort
SELECT ALL + ( + - 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL + COUNT( - 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL + COUNT ( - 21 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8695
SELECT + 41, 61 * + COUNT( * ) * + - 79 AS col1
----
41
-4819

skipif mysql # not compatible
query II rowsort label-8695
SELECT + 41, 61 * + COUNT ( * ) * + - 79 AS col1
----
41
-4819

query I rowsort
SELECT ALL + 47 * 25 + - 59 * 89 AS col2
----
-4076

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + COUNT( * ) * - - ( + - 84 ) + + - 76
----
-160

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + COUNT ( * ) * - - ( + - 84 ) + + - 76
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT ( + - MIN( ALL - 56 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT ( + - MIN ( ALL - 56 ) ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL 68 + 42 + + ( + SUM( ALL 5 ) ) * - - 51
----
365

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL 68 + 42 + + ( + SUM ( ALL 5 ) ) * - - 51
----
365

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8700
SELECT DISTINCT + CAST( 78 AS SIGNED ) DIV 6 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT + CAST ( 78 AS INTEGER ) / 6 AS col1
----
13

query I rowsort
SELECT ALL ( 18 ) AS col0
----
18

query I rowsort
SELECT DISTINCT + 84 + + 20 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - 3 - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-8703
SELECT - 3 - COUNT ( * )
----
-4

query II rowsort
SELECT 23 AS col1, - 87
----
23
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT + NULLIF ( + 46, - + 44 * - MIN( ALL 32 ) + + - 74 * 37 ) + 69
----
115

skipif mysql # not compatible
query I rowsort label-8705
SELECT + NULLIF ( + 46, - + 44 * - MIN ( ALL 32 ) + + - 74 * 37 ) + 69
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8706
SELECT ALL + COUNT( * ) + - - 10 + - NULLIF ( 61, 66 + + 72 ) DIV + COUNT( * ) + SUM( DISTINCT - 97 ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL + COUNT ( * ) + - - 10 + - NULLIF ( 61, 66 + + 72 ) / + COUNT ( * ) + SUM ( DISTINCT - 97 ) AS col1
----
-147

query II rowsort
SELECT ALL + 62 - - 45 * - 57 - + - 11 * 53, 37 AS col2
----
-1920
37

query I rowsort
SELECT ALL - + ( - 5 ) - - + 17
----
22

query I rowsort
SELECT ALL + 82 - - - 17 + + ( 69 ) AS col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL - 7 - - NULLIF ( - - 1, COUNT( * ) * - 31 + - + 40 + + 9 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL - 7 - - NULLIF ( - - 1, COUNT ( * ) * - 31 + - + 40 + + 9 ) AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT + + 2 DIV + 69 + - - 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8711
SELECT + + 2 / + 69 + - - 91 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8712
SELECT DISTINCT + SUM( + 29 ) DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT + SUM ( + 29 ) / + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT - COUNT( ALL 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-8713
SELECT - COUNT ( ALL 27 )
----
-1

query I rowsort
SELECT + - 27 * + 94
----
-2538

query I rowsort
SELECT - ( ( + 57 ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - COUNT( - 83 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8716
SELECT - COUNT ( - 83 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL 14 - + 10 * - + CASE - 38 WHEN + COUNT( * ) THEN NULL ELSE - COUNT( * ) + + 86 + - 6 END + + 33
----
837

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL 14 - + 10 * - + CASE - 38 WHEN + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) + + 86 + - 6 END + + 33
----
837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT + - CAST( - 80 AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8718
SELECT + - CAST ( - 80 AS INTEGER ) AS col0
----
80

query I rowsort
SELECT ( 94 ) col2
----
94

query II rowsort
SELECT + ( - 81 ) * 28 - 44 * - 11 col0, 62 * - 2 AS col2
----
-1784
-124

query I rowsort
SELECT DISTINCT + + ( 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL 94 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL 94 * - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT - - MIN( - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - - MIN ( - - 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL NULLIF ( 78, - + 92 - + 44 + 2 * 79 ) + - + 33 + - 10 + + 39 * - + COALESCE ( + 66, + - 48, + 96 + - - 51 + - - MIN( + 50 ) ) + + 31 - - + 37
----
-2471

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL NULLIF ( 78, - + 92 - + 44 + 2 * 79 ) + - + 33 + - 10 + + 39 * - + COALESCE ( + 66, + - 48, + 96 + - - 51 + - - MIN ( + 50 ) ) + + 31 - - + 37
----
-2471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT NULLIF ( - CAST( - MAX( - - ( + + 33 ) ) AS SIGNED ), + COUNT( ALL + 31 ) * - 62 ) + + 92 * + 61 + - + 87 AS col2
----
5558

skipif mysql # not compatible
query I rowsort label-8725
SELECT NULLIF ( - CAST ( - MAX ( - - ( + + 33 ) ) AS INTEGER ), + COUNT ( ALL + 31 ) * - 62 ) + + 92 * + 61 + - + 87 AS col2
----
5558

query I rowsort
SELECT - 82 * - 20 - - 33
----
1673

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT 12 + + - CASE - 12 WHEN + COUNT( * ) * - 82 + + + ( - 63 ) * + ( 33 ) * + 49 THEN NULL ELSE - 72 END
----
84

skipif mysql # not compatible
query I rowsort label-8727
SELECT 12 + + - CASE - 12 WHEN + COUNT ( * ) * - 82 + + + ( - 63 ) * + ( 33 ) * + 49 THEN NULL ELSE - 72 END
----
84

query I rowsort
SELECT 57 * - 10 AS col0
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL - 15 + MAX( 7 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - 15 + MAX ( 7 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT COUNT( * ) * + 8 * + 77
----
616

skipif mysql # not compatible
query I rowsort label-8730
SELECT COUNT ( * ) * + 8 * + 77
----
616

query I rowsort
SELECT 47 + + 3
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL + 43 * - + COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + 43 * - + COUNT ( * ) AS col1
----
-43

query II rowsort
SELECT 14 AS col1, ( - 64 ) AS col1
----
14
-64

query I rowsort
SELECT NULLIF ( CASE 21 WHEN 24 THEN + 55 ELSE + 78 END, + 78 ) * - 70
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8735
SELECT 16 * - - 71 * - COALESCE ( - 8, - - 86, + 2 + + 53 ) + + 83 * + - 3 - + CASE + 6 WHEN - 7 THEN NULL WHEN 74 THEN COALESCE ( + 47, 5 * 99 ) ELSE - 70 END DIV COUNT( + 40 ) * - 89 * - 5 AS col0
----
39989

skipif mysql # not compatible
query I rowsort label-8735
SELECT 16 * - - 71 * - COALESCE ( - 8, - - 86, + 2 + + 53 ) + + 83 * + - 3 - + CASE + 6 WHEN - 7 THEN NULL WHEN 74 THEN COALESCE ( + 47, 5 * 99 ) ELSE - 70 END / COUNT ( + 40 ) * - 89 * - 5 AS col0
----
39989

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT DISTINCT COALESCE ( + 85, 73 DIV + + ( - 74 ) )
----
85

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT COALESCE ( + 85, 73 / + + ( - 74 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + MAX( DISTINCT - NULLIF ( 88, + 36 * - + 81 + 38 - 53 - + ( + 14 ) / - + 72 ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8737
SELECT + MAX ( DISTINCT - NULLIF ( 88, + 36 * - + 81 + 38 - 53 - + ( + 14 ) / - + 72 ) ) AS col2
----
-88

query I rowsort
SELECT DISTINCT + 11 - - + 59
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8739
SELECT ALL CASE - 24 WHEN 20 * + + 34 + 69 + COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + - 5 * - - 22 * CAST( - - 51 AS SIGNED ) ) * + 22 * CAST( 10 AS SIGNED ) THEN - 50 * - 24 WHEN - COUNT( * ) THEN + - 51 + - 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL CASE - 24 WHEN 20 * + + 34 + 69 + COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + - 5 * - - 22 * CAST ( - - 51 AS INTEGER ) ) * + 22 * CAST ( 10 AS INTEGER ) THEN - 50 * - 24 WHEN - COUNT ( * ) THEN + - 51 + - 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8740
SELECT - MAX( ALL - 35 ) AS col0, 3
----
35
3

skipif mysql # not compatible
query II rowsort label-8740
SELECT - MAX ( ALL - 35 ) AS col0, 3
----
35
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT ALL 84 AS col1, - 42 + COUNT( * ) AS col0
----
84
-41

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL 84 AS col1, - 42 + COUNT ( * ) AS col0
----
84
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-8742
SELECT 34 * 86 + - 38 - COUNT( * ) AS col2, 6 AS col2
----
2885
6

skipif mysql # not compatible
query II rowsort label-8742
SELECT 34 * 86 + - 38 - COUNT ( * ) AS col2, 6 AS col2
----
2885
6

query II rowsort
SELECT + 6 * + 5 AS col0, 8 AS col0
----
30
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT ALL + 67 DIV - 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL + 67 / - 27 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8745
SELECT CASE + 16 WHEN 85 + - COUNT( * ) THEN NULL WHEN + 56 THEN - + CAST( - 30 AS DECIMAL ) * + ( + CASE 95 WHEN + AVG ( - - 80 ) THEN + 85 - + 76 END ) * ( - SUM( ALL 28 ) ) * - + 63 * - 78 * + 85 WHEN + 24 THEN NULL END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT CASE + 16 WHEN 85 + - COUNT ( * ) THEN NULL WHEN + 56 THEN - + CAST ( - 30 AS REAL ) * + ( + CASE 95 WHEN + AVG ( - - 80 ) THEN + 85 - + 76 END ) * ( - SUM ( ALL 28 ) ) * - + 63 * - 78 * + 85 WHEN + 24 THEN NULL END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT 11 + - + 73 + COUNT( * ) * 28 * - ( - NULLIF ( + - 15, 2 ) ) + - 64 * - 54 * + 94 AS col0
----
324382

skipif mysql # not compatible
query I rowsort label-8746
SELECT 11 + - + 73 + COUNT ( * ) * 28 * - ( - NULLIF ( + - 15, 2 ) ) + - 64 * - 54 * + 94 AS col0
----
324382

query II rowsort
SELECT ALL 18 col1, - 44 * - CASE - 16 WHEN 54 THEN + - 75 ELSE NULL END
----
18
NULL

query II rowsort
SELECT - 29, - 45 * - 46 AS col1
----
-29
2070

query II rowsort
SELECT - 73 * + 49 + - - 4 + + 26 AS col1, + 69 AS col0
----
-3547
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT 1 * 24 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT 1 * 24 / 72
----
0

query I rowsort
SELECT 34 + + 85 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL + COALESCE ( - 62, MAX( DISTINCT + + 71 ) ) * 86 * - COUNT( * ) AS col2
----
5332

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL + COALESCE ( - 62, MAX ( DISTINCT + + 71 ) ) * 86 * - COUNT ( * ) AS col2
----
5332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8753
SELECT ALL - COUNT( * ) DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL - COUNT ( * ) / + 24
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8754
SELECT 11 DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8754
SELECT 11 / 69 AS col0
----
0

query II rowsort
SELECT ALL + ( - 49 ) + + 63 + 15 AS col0, 78 AS col0
----
29
78

query II rowsort
SELECT + 64 AS col1, 17
----
64
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT 2 * + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8757
SELECT 2 * + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT 38 + + 92
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT - 15 * - + COUNT( * ) * + - 27 * + 7 + - + 33 AS col1
----
-2868

skipif mysql # not compatible
query I rowsort label-8759
SELECT - 15 * - + COUNT ( * ) * + - 27 * + 7 + - + 33 AS col1
----
-2868

query I rowsort
SELECT ALL ( 53 ) + 17 + 2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + - 92
----
NULL

query I rowsort
SELECT ALL 58 + + + 11 * - + 47
----
-459

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8763
SELECT ALL CAST( NULL AS DECIMAL ) + + 3 * - 27 * - + 96 + 55 AS col2, + 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-8763
SELECT ALL CAST ( NULL AS REAL ) + + 3 * - 27 * - + 96 + 55 AS col2, + 67
----
NULL
67

query I rowsort
SELECT NULLIF ( - - 32, + 13 - - 42 ) - - 44
----
76

query I rowsort
SELECT 82 * + 39 * - + 5 AS col0
----
-15990

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT ALL 9 DIV 40 col2
----
0

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL 9 / 40 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT DISTINCT 21 - - 97 - 67 + + 43 DIV + 50 + + ( + 44 ) * + - 61 + 64
----
-2569

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT 21 - - 97 - 67 + + 43 / + 50 + + ( + 44 ) * + - 61 + 64
----
-2569

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8768
SELECT + 55 DIV - 16, COUNT( DISTINCT + 69 ) * - - 19 AS col0
----
-3
19

skipif mysql # not compatible
query II rowsort label-8768
SELECT + 55 / - 16, COUNT ( DISTINCT + 69 ) * - - 19 AS col0
----
-3
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT ALL + 62 DIV 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + 62 / 34 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT DISTINCT COUNT( + 92 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT COUNT ( + 92 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 40 - 54 col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT ALL + 82 * - ( - + ( 61 ) ) + 80 * - MAX( DISTINCT + 55 ), SUM( ALL - + 30 ) * 32 * - - ( + - 63 ) AS col0
----
602
60480

skipif mysql # not compatible
query II rowsort label-8772
SELECT ALL + 82 * - ( - + ( 61 ) ) + 80 * - MAX ( DISTINCT + 55 ), SUM ( ALL - + 30 ) * 32 * - - ( + - 63 ) AS col0
----
602
60480

onlyif mysql # aggregate syntax: 
query II rowsort label-8773
SELECT DISTINCT + COUNT( * ) * 99, 53 AS col1
----
99
53

skipif mysql # not compatible
query II rowsort label-8773
SELECT DISTINCT + COUNT ( * ) * 99, 53 AS col1
----
99
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8774
SELECT + 21 DIV + 64 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8774
SELECT + 21 / + 64 * + COUNT ( * )
----
0

query I rowsort
SELECT 77 + 91 AS col2
----
168

query I rowsort
SELECT - 4 * 35
----
-140

query I rowsort
SELECT ALL + 21 * + 99
----
2079

query I rowsort
SELECT - + ( - + 45 ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-8779
SELECT ALL COALESCE ( + - 46, + 71 * + - 16 * + 2 - + 14 * + - 31 * 9 DIV 20 DIV - 4 ), + 3 col1
----
-46
3

skipif mysql # not compatible
query II rowsort label-8779
SELECT ALL COALESCE ( + - 46, + 71 * + - 16 * + 2 - + 14 * + - 31 * 9 / 20 / - 4 ), + 3 col1
----
-46
3

query I rowsort
SELECT DISTINCT 58 + - + 34 + + 65
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT - + 0 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8781
SELECT - + 0 * - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8782
SELECT ALL - - CAST( NULL AS SIGNED ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8783
SELECT DISTINCT + COALESCE ( - + 64, NULLIF ( - - 19, - CAST( NULL AS SIGNED ) * - CASE - 28 WHEN - NULLIF ( 62, - + 31 + + + 73 * - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) + - 47 THEN NULL ELSE + COALESCE ( + 55, + 82 + + 32 - - - 22 * + - 1 * 38 + - - 70 + MAX( 35 ) + - 8 / 7 ) * + 68 END * + + COALESCE ( + MIN( + 1 ), + - COUNT( * ) * - COALESCE ( 0, ( + 63 ), ( 11 ) ) ) + + ( 26 ) + + 46 ), + 2 * COUNT( DISTINCT - 87 ) ) + - 88 * 73 AS col0
----
-6488

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + COALESCE ( - + 64, NULLIF ( - - 19, - CAST ( NULL AS INTEGER ) * - CASE - 28 WHEN - NULLIF ( 62, - + 31 + + + 73 * - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - 47 THEN NULL ELSE + COALESCE ( + 55, + 82 + + 32 - - - 22 * + - 1 * 38 + - - 70 + MAX ( 35 ) + - 8 / 7 ) * + 68 END * + + COALESCE ( + MIN ( + 1 ), + - COUNT ( * ) * - COALESCE ( 0, ( + 63 ), ( 11 ) ) ) + + ( 26 ) + + 46 ), + 2 * COUNT ( DISTINCT - 87 ) ) + - 88 * 73 AS col0
----
-6488

query I rowsort
SELECT DISTINCT - - ( + + 6 ) + + 7
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL - - 67 * 60 - - NULLIF ( - CASE COUNT( * ) WHEN 46 THEN - - ( - 14 ) WHEN + 71 THEN NULL END, - 95 ) + + 12 + - 29 - + - 35 * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - - 67 * 60 - - NULLIF ( - CASE COUNT ( * ) WHEN 46 THEN - - ( - 14 ) WHEN + 71 THEN NULL END, - 95 ) + + 12 + - 29 - + - 35 * 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - 94 * - + COUNT( * ) col1
----
94

skipif mysql # not compatible
query I rowsort label-8786
SELECT - 94 * - + COUNT ( * ) col1
----
94

query I rowsort
SELECT - 0 * 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT NULLIF ( 80, + - CASE 76 WHEN - - 93 THEN COUNT( * ) WHEN + 80 THEN - 77 ELSE + 28 * - SUM( ALL 32 ) END + + CAST( 83 AS SIGNED ) )
----
80

skipif mysql # not compatible
query I rowsort label-8788
SELECT NULLIF ( 80, + - CASE 76 WHEN - - 93 THEN COUNT ( * ) WHEN + 80 THEN - 77 ELSE + 28 * - SUM ( ALL 32 ) END + + CAST ( 83 AS INTEGER ) )
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8789
SELECT ALL + 82 * CAST( NULL AS DECIMAL ) + - 24 * + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + 82 * CAST ( NULL AS REAL ) + - 24 * + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL MAX( ALL + - 98 ) * - 24 + - 47 + 87 + + + CASE + + 62 WHEN - 69 THEN - + 81 ELSE 49 END * - 99 * 26 + 69 AS col1
----
-123665

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL MAX ( ALL + - 98 ) * - 24 + - 47 + 87 + + + CASE + + 62 WHEN - 69 THEN - + 81 ELSE 49 END * - 99 * 26 + 69 AS col1
----
-123665

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT - 64 * + COUNT( ALL 13 )
----
-64

skipif mysql # not compatible
query I rowsort label-8791
SELECT - 64 * + COUNT ( ALL 13 )
----
-64

query II rowsort
SELECT ALL + 8 AS col1, - 63
----
8
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT DISTINCT - ( - + 21 ) * - - MAX( DISTINCT + - 69 ) * - 41 * - COUNT( * ) AS col2, 30
----
-59409
30

skipif mysql # not compatible
query II rowsort label-8793
SELECT DISTINCT - ( - + 21 ) * - - MAX ( DISTINCT + - 69 ) * - 41 * - COUNT ( * ) AS col2, 30
----
-59409
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8794
SELECT + COUNT( * ) AS col2, 13 * - - 61 / + - 94 + + 26 + - 70 * - + 17 * 79 + + 14 + + COUNT( * ) * - CAST( NULL AS SIGNED ) * - 65
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8794
SELECT + COUNT ( * ) AS col2, 13 * - - 61 / + - 94 + + 26 + - 70 * - + 17 * 79 + + 14 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 65
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL - 55 * MAX( 1 ) + - 79 + ( - 70 ) * - 79 * - 14 * - 20 * 93
----
144001066

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - 55 * MAX ( 1 ) + - 79 + ( - 70 ) * - 79 * - 14 * - 20 * 93
----
144001066

query I rowsort
SELECT + 34 * - - 59 AS col2
----
2006

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - COUNT( * ) + - 44 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8797
SELECT - COUNT ( * ) + - 44 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT + 35 * - COUNT( * ) - - - 25 + - 49
----
-109

skipif mysql # not compatible
query I rowsort label-8798
SELECT + 35 * - COUNT ( * ) - - - 25 + - 49
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT DISTINCT + COALESCE ( - + 56, MIN( ( + 67 ) ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT + COALESCE ( - + 56, MIN ( ( + 67 ) ) ) AS col1
----
-56

query I rowsort
SELECT - 80 + + 96
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8801
SELECT CASE + COUNT( * ) WHEN - + 24 THEN 86 WHEN - 49 THEN 40 * + 99 + + 15 + NULLIF ( - 21, + 62 ) + 24 + + 35 + ( - 75 ) * - 73 * + 88 * COUNT( - + 55 ) + - 15 + - 18 END, + 47 AS col0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-8801
SELECT CASE + COUNT ( * ) WHEN - + 24 THEN 86 WHEN - 49 THEN 40 * + 99 + + 15 + NULLIF ( - 21, + 62 ) + 24 + + 35 + ( - 75 ) * - 73 * + 88 * COUNT ( - + 55 ) + - 15 + - 18 END, + 47 AS col0
----
NULL
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8802
SELECT ALL MAX( - ( - ( 71 ) ) ) * + 57 - + - 12 AS col0, 52
----
4059
52

skipif mysql # not compatible
query II rowsort label-8802
SELECT ALL MAX ( - ( - ( 71 ) ) ) * + 57 - + - 12 AS col0, 52
----
4059
52

query I rowsort
SELECT - 74 * + COALESCE ( - 59, - + 3 + + 50 ) AS col2
----
4366

query II rowsort
SELECT ALL + 98 col1, + 81 col2
----
98
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT CASE MIN( + + 46 ) WHEN - COUNT( * ) / + COUNT( * ) + - 63 THEN - - NULLIF ( 9, - 38 * - + 21 / + 57 + - 65 + + MIN( - CAST( - 82 AS SIGNED ) ) + 1 ) * 70 / - 21 * + 50 WHEN - 2 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT CASE MIN ( + + 46 ) WHEN - COUNT ( * ) / + COUNT ( * ) + - 63 THEN - - NULLIF ( 9, - 38 * - + 21 / + 57 + - 65 + + MIN ( - CAST ( - 82 AS INTEGER ) ) + 1 ) * 70 / - 21 * + 50 WHEN - 2 THEN NULL END
----
NULL

query II rowsort
SELECT ALL + 43 AS col0, 83 AS col2
----
43
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + SUM( ALL + - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8807
SELECT + SUM ( ALL + - 19 ) AS col1
----
-19

query I rowsort
SELECT ALL + ( - + 38 )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8809
SELECT ALL + 25 AS col1, + NULLIF ( + + 73, - - COUNT( * ) ) + - 48 DIV 99
----
25
73

skipif mysql # not compatible
query II rowsort label-8809
SELECT ALL + 25 AS col1, + NULLIF ( + + 73, - - COUNT ( * ) ) + - 48 / 99
----
25
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8810
SELECT ALL + 56, + 72 + + COUNT( * ) AS col1
----
56
73

skipif mysql # not compatible
query II rowsort label-8810
SELECT ALL + 56, + 72 + + COUNT ( * ) AS col1
----
56
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT - 84 * + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - 84 * + COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT + - 45 * + - 73 * - NULLIF ( COUNT( * ), + 3 ) col1
----
-3285

skipif mysql # not compatible
query I rowsort label-8812
SELECT + - 45 * + - 73 * - NULLIF ( COUNT ( * ), + 3 ) col1
----
-3285

onlyif mysql # aggregate syntax: 
query II rowsort label-8813
SELECT DISTINCT 63 AS col1, 7 * + MIN( 80 ) * - 81 AS col0
----
63
-45360

skipif mysql # not compatible
query II rowsort label-8813
SELECT DISTINCT 63 AS col1, 7 * + MIN ( 80 ) * - 81 AS col0
----
63
-45360

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL + ( + COUNT( * ) ) + - 64 + - + 75
----
-138

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + ( + COUNT ( * ) ) + - 64 + - + 75
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT + SUM( DISTINCT - ( - 78 ) ) - + 67 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8815
SELECT + SUM ( DISTINCT - ( - 78 ) ) - + 67 AS col1
----
11

query I rowsort
SELECT - ( 61 ) AS col2
----
-61

query I rowsort
SELECT ALL - 35 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + COUNT( * ) + 87 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8818
SELECT + COUNT ( * ) + 87 AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8819
SELECT - - 38 - - + 45 + 37 * 16 DIV - + 70 - - COUNT( * ) DIV 98
----
75

skipif mysql # not compatible
query I rowsort label-8819
SELECT - - 38 - - + 45 + 37 * 16 / - + 70 - - COUNT ( * ) / 98
----
75

query I rowsort
SELECT ALL - ( 65 ) * - - 43
----
-2795

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8821
SELECT ALL + 99 AS col2, 90 / - - 80 - - 90 + + + CAST( NULL AS DECIMAL ) / + 15 AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-8821
SELECT ALL + 99 AS col2, 90 / - - 80 - - 90 + + + CAST ( NULL AS REAL ) / + 15 AS col0
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT + + 69 + - - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-8822
SELECT + + 69 + - - COUNT ( * )
----
70

query I rowsort
SELECT - ( + ( + 93 ) )
----
-93

query I rowsort
SELECT - 76 * - NULLIF ( + 12, - 59 * + + 93 )
----
912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT ALL - CAST( 91 AS SIGNED ) + - 67 col2
----
-158

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - CAST ( 91 AS INTEGER ) + - 67 col2
----
-158

query I rowsort
SELECT + 88 + 4
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL 94 * + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL 94 * + COUNT ( * )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8828
SELECT - 64 + + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT - 64 + + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 49 ) AS col0
----
49

query I rowsort
SELECT ALL 46 - + 41
----
5

query II rowsort
SELECT ALL - 48 * + - 48 AS col1, 34 * - 16 AS col2
----
2304
-544

query I rowsort
SELECT - 22 * - 92 AS col0
----
2024

query I rowsort
SELECT DISTINCT - 39 * - 55
----
2145

query I rowsort
SELECT ALL - 21 * + - 53
----
1113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8835
SELECT ALL - CAST( NULL AS SIGNED ) * + - 73 * ( - - 97 ), + 39 col1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-8835
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 73 * ( - - 97 ), + 39 col1
----
NULL
39

query I rowsort
SELECT DISTINCT + NULLIF ( - 41, - - 26 ) AS col2
----
-41

query I rowsort
SELECT ( 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT - - ( - + 73 ) + CAST( COUNT( 2 ) AS SIGNED ) * - CAST( + - 74 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8838
SELECT - - ( - + 73 ) + CAST ( COUNT ( 2 ) AS INTEGER ) * - CAST ( + - 74 AS INTEGER )
----
1

query I rowsort
SELECT - + 74 / CASE + 28 WHEN 61 THEN NULL WHEN - 40 - + 95 THEN + ( 13 ) ELSE NULL END * - - 49 / COALESCE ( + 38, + + 59 ) + + 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT DISTINCT COUNT( * ) * - - 19 * - - 29 + 6 - 69 + + - 77 DIV 29 AS col0
----
486

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT COUNT ( * ) * - - 19 * - - 29 + 6 - 69 + + - 77 / 29 AS col0
----
486

query I rowsort
SELECT + 95 * + 17
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL + + COUNT( * ) * - 2 + + + 28 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + + COUNT ( * ) * - 2 + + + 28 AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8843
SELECT DISTINCT + ( - + 49 ) * 0 DIV + 72 AS col2, 98 + + + ( - COUNT( - 19 ) )
----
0
97

skipif mysql # not compatible
query II rowsort label-8843
SELECT DISTINCT + ( - + 49 ) * 0 / + 72 AS col2, 98 + + + ( - COUNT ( - 19 ) )
----
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL + - 88 + + COUNT( ALL 24 )
----
-87

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL + - 88 + + COUNT ( ALL 24 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT - MAX( DISTINCT + + ( + + 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-8845
SELECT - MAX ( DISTINCT + + ( + + 55 ) )
----
-55

query I rowsort
SELECT ALL + 78 * - + 25
----
-1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8847
SELECT CAST( - - SUM( ALL + + 23 ) AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8847
SELECT CAST ( - - SUM ( ALL + + 23 ) AS INTEGER ) AS col1
----
23

query I rowsort
SELECT - - ( 76 ) AS col2
----
76

query I rowsort
SELECT - 25 + + 61
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT MAX( - ( 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8850
SELECT MAX ( - ( 1 ) )
----
-1

query II rowsort
SELECT ALL 15, + 92 AS col1
----
15
92

query I rowsort
SELECT ALL 35 * - 58
----
-2030

query II rowsort
SELECT DISTINCT 18, - 93 AS col0
----
18
-93

query I rowsort
SELECT ( 45 ) * 76 AS col2
----
3420

query I rowsort
SELECT DISTINCT + 7 * + 15
----
105

query I rowsort
SELECT 27 - + + 97
----
-70

query I rowsort
SELECT 63 * + 40 * + + 26 AS col2
----
65520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT CAST( 78 AS SIGNED ) * + 44 + 98
----
3530

skipif mysql # not compatible
query I rowsort label-8858
SELECT CAST ( 78 AS INTEGER ) * + 44 + 98
----
3530

query I rowsort
SELECT ALL 99 * 72
----
7128

query II rowsort
SELECT 8, - 35 + + - 20 col0
----
8
-55

query I rowsort
SELECT ALL 93 * - - 40
----
3720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8862
SELECT COUNT( + - 69 ) * + 91 DIV - SUM( + 18 ) - - 57 + - - ( + + 45 ) DIV - + 37
----
51

skipif mysql # not compatible
query I rowsort label-8862
SELECT COUNT ( + - 69 ) * + 91 / - SUM ( + 18 ) - - 57 + - - ( + + 45 ) / - + 37
----
51

query I rowsort
SELECT 88 * + 19
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL - COALESCE ( COUNT( * ), - COALESCE ( + + 37, 0 + + NULLIF ( - + 64, + 84 + + ( - SUM( - 85 ) ) ), COALESCE ( - 45, + 73 ) + - ( + - COUNT( - - 58 ) ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL - COALESCE ( COUNT ( * ), - COALESCE ( + + 37, 0 + + NULLIF ( - + 64, + 84 + + ( - SUM ( - 85 ) ) ), COALESCE ( - 45, + 73 ) + - ( + - COUNT ( - - 58 ) ) ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8865
SELECT MAX( - 92 ) DIV + COALESCE ( 14, CASE + - 25 WHEN - + ( AVG ( + 7 ) ) THEN NULL WHEN + - SUM( 43 ) THEN + - 24 - - - 62 + - CAST( + + 37 AS SIGNED ) END ) - 80
----
-86

skipif mysql # not compatible
query I rowsort label-8865
SELECT MAX ( - 92 ) / + COALESCE ( 14, CASE + - 25 WHEN - + ( AVG ( + 7 ) ) THEN NULL WHEN + - SUM ( 43 ) THEN + - 24 - - - 62 + - CAST ( + + 37 AS INTEGER ) END ) - 80
----
-86

query I rowsort
SELECT 91 * 36
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT 90 * + - CAST( - + 84 AS SIGNED ) - COUNT( * ) AS col1
----
7559

skipif mysql # not compatible
query I rowsort label-8867
SELECT 90 * + - CAST ( - + 84 AS INTEGER ) - COUNT ( * ) AS col1
----
7559

query I rowsort
SELECT DISTINCT + 51 + + ( - + 15 ) * - 94
----
1461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8869
SELECT + 45 * MAX( + - 11 ) + - 39 + + CASE + ( - + 69 ) WHEN 49 THEN + 38 * + 77 / - CAST( 82 AS SIGNED ) + 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT + 45 * MAX ( + - 11 ) + - 39 + + CASE + ( - + 69 ) WHEN 49 THEN + 38 * + 77 / - CAST ( 82 AS INTEGER ) + 59 END AS col0
----
NULL

query I rowsort
SELECT ALL + + 28 * + - 46
----
-1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8871
SELECT 75 DIV - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8871
SELECT 75 / - - COUNT ( * )
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8872
SELECT ALL - 59 + + + 16 * - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL - 59 + + + 16 * - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT DISTINCT + COUNT( * ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT + COUNT ( * ) * - 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL - COUNT( * ) + + 83 + - ( - - ( - - 31 ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - COUNT ( * ) + + 83 + - ( - - ( - - 31 ) ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT 55 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-8875
SELECT 55 / 41
----
1

query I rowsort
SELECT ALL - 99 + - + 82
----
-181

query I rowsort
SELECT - ( - + 86 ) + + 75 col1
----
161

query I rowsort
SELECT + 73 * - 14 col2
----
-1022

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - 27 * MIN( NULLIF ( + + 1, 34 + + 41 ) ) + - 42 * + COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8879
SELECT - 27 * MIN ( NULLIF ( + + 1, 34 + + 41 ) ) + - 42 * + COUNT ( * ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - - CASE + 92 WHEN COUNT( * ) THEN 40 * COUNT( * ) * + AVG ( - 37 ) * - 19 + - AVG ( - 77 ) WHEN 21 THEN - + 22 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT - - CASE + 92 WHEN COUNT ( * ) THEN 40 * COUNT ( * ) * + AVG ( - 37 ) * - 19 + - AVG ( - 77 ) WHEN 21 THEN - + 22 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT COALESCE ( 28, + + 60, + - ( + 22 ) * - - 67 - + - COUNT( * ) - - - 27 * - + 37 )
----
28

skipif mysql # not compatible
query I rowsort label-8881
SELECT COALESCE ( 28, + + 60, + - ( + 22 ) * - - 67 - + - COUNT ( * ) - - - 27 * - + 37 )
----
28

query I rowsort
SELECT ( - + 11 )
----
-11

query I rowsort
SELECT ALL 92 * - + 50 AS col0
----
-4600

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT 3 + COUNT( * ) * - 76 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-8884
SELECT 3 + COUNT ( * ) * - 76 AS col2
----
-73

query I rowsort
SELECT ALL + 55 - + - 95
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8886
SELECT DISTINCT 10 * 24 + COUNT( * ) * + ( + + CAST( 57 AS SIGNED ) ) DIV + 13 + CAST( + 9 AS SIGNED ) + + 35, - 39 AS col2
----
288
-39

skipif mysql # not compatible
query II rowsort label-8886
SELECT DISTINCT 10 * 24 + COUNT ( * ) * + ( + + CAST ( 57 AS INTEGER ) ) / + 13 + CAST ( + 9 AS INTEGER ) + + 35, - 39 AS col2
----
288
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8887
SELECT ALL 53 - 14 DIV + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL 53 - 14 / + COUNT ( * ) AS col2
----
39

query I rowsort
SELECT 27 + - + 0 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8889
SELECT MAX( ALL - 69 ) - 62 - - ( - COUNT( * ) ) DIV 61
----
-131

skipif mysql # not compatible
query I rowsort label-8889
SELECT MAX ( ALL - 69 ) - 62 - - ( - COUNT ( * ) ) / 61
----
-131

query II rowsort
SELECT 63, - 25 AS col0
----
63
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT ALL COUNT( * ), - 49 * + - 51 + - + 90 AS col2
----
1
2409

skipif mysql # not compatible
query II rowsort label-8891
SELECT ALL COUNT ( * ), - 49 * + - 51 + - + 90 AS col2
----
1
2409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8892
SELECT COUNT( * ) + + 20 + 83 DIV + 25 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8892
SELECT COUNT ( * ) + + 20 + 83 / + 25 AS col0
----
24

query I rowsort
SELECT ( - 99 ) + - - 87 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8894
SELECT ALL COUNT( * ) col0, + 20 AS col1
----
1
20

skipif mysql # not compatible
query II rowsort label-8894
SELECT ALL COUNT ( * ) col0, + 20 AS col1
----
1
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8895
SELECT 62 + - - CASE + 61 WHEN - MIN( DISTINCT - 8 ) + - SUM( + + 0 ) + - - 37 / + 8 * - + CAST( - 18 AS SIGNED ) THEN NULL WHEN + 20 * 55 THEN NULL ELSE - 53 END + + 2 * - + 74 + + 99 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8895
SELECT 62 + - - CASE + 61 WHEN - MIN ( DISTINCT - 8 ) + - SUM ( + + 0 ) + - - 37 / + 8 * - + CAST ( - 18 AS INTEGER ) THEN NULL WHEN + 20 * 55 THEN NULL ELSE - 53 END + + 2 * - + 74 + + 99 AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT ALL COUNT( * ) DIV - + ( + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL COUNT ( * ) / - + ( + 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL CASE + 58 WHEN - + 81 * + - 80 - 94 THEN NULL WHEN + 41 THEN 51 + + 5 WHEN COUNT( * ) THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL CASE + 58 WHEN - + 81 * + - 80 - 94 THEN NULL WHEN + 41 THEN 51 + + 5 WHEN COUNT ( * ) THEN - 74 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT DISTINCT 92 DIV 79
----
1

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT 92 / 79
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT CASE + COUNT( * ) WHEN - - 89 THEN + - 99 END * + + 82 + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT CASE + COUNT ( * ) WHEN - - 89 THEN + - 99 END * + + 82 + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL 91 * 17 + - + 22 * - + 75 * - 73 + - + SUM( - - 88 )
----
-118991

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL 91 * 17 + - + 22 * - + 75 * - 73 + - + SUM ( - - 88 )
----
-118991

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + SUM( ( - - 46 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8901
SELECT + SUM ( ( - - 46 ) ) AS col2
----
46

query I rowsort
SELECT ALL + 14 * - 12 + 95 col2
----
-73

query I rowsort
SELECT DISTINCT 29 * + 70
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL + 88 * - 51 + + + ( - COUNT( DISTINCT + + 82 ) ) + 50 * - 19 + - COUNT( * )
----
-5440

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL + 88 * - 51 + + + ( - COUNT ( DISTINCT + + 82 ) ) + 50 * - 19 + - COUNT ( * )
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + MIN( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-8905
SELECT + MIN ( - 35 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8906
SELECT ALL + + COUNT( * ) AS col2, 79 - - + MAX( - + CAST( 71 AS SIGNED ) ) AS col0
----
1
8

skipif mysql # not compatible
query II rowsort label-8906
SELECT ALL + + COUNT ( * ) AS col2, 79 - - + MAX ( - + CAST ( 71 AS INTEGER ) ) AS col0
----
1
8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8907
SELECT + - 66 + - - 52 - - 7 + - 0 * 6 + + CAST( NULL AS SIGNED ) + 16 * + 71 + CAST( NULL AS DECIMAL ) + - - 56 + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT + - 66 + - - 52 - - 7 + - 0 * 6 + + CAST ( NULL AS INTEGER ) + 16 * + 71 + CAST ( NULL AS REAL ) + - - 56 + 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8908
SELECT DISTINCT CASE 35 WHEN + 87 * + - 91 * + + 27 + 1 THEN - CASE + ( + COUNT( * ) ) WHEN - COUNT( * ) THEN 64 * + - CASE + 15 WHEN - 72 THEN + COUNT( * ) ELSE + COALESCE ( + 27, + 37, + 70 ) END * + 10 + - 91 ELSE - 84 END ELSE + 89 * - - COUNT( * ) END * - 77 + 23 DIV - - 76 AS col2
----
-6853

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT CASE 35 WHEN + 87 * + - 91 * + + 27 + 1 THEN - CASE + ( + COUNT ( * ) ) WHEN - COUNT ( * ) THEN 64 * + - CASE + 15 WHEN - 72 THEN + COUNT ( * ) ELSE + COALESCE ( + 27, + 37, + 70 ) END * + 10 + - 91 ELSE - 84 END ELSE + 89 * - - COUNT ( * ) END * - 77 + 23 / - - 76 AS col2
----
-6853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8909
SELECT CASE - 37 WHEN + 88 * + - COUNT( * ) THEN NULL WHEN + - 52 THEN NULL ELSE - CAST( - 40 AS SIGNED ) * - 39 + COUNT( * ) + ( COUNT( ALL + + 62 ) ) - + - 88 * ( - + 66 ) * + COUNT( * ) END
----
-7366

skipif mysql # not compatible
query I rowsort label-8909
SELECT CASE - 37 WHEN + 88 * + - COUNT ( * ) THEN NULL WHEN + - 52 THEN NULL ELSE - CAST ( - 40 AS INTEGER ) * - 39 + COUNT ( * ) + ( COUNT ( ALL + + 62 ) ) - + - 88 * ( - + 66 ) * + COUNT ( * ) END
----
-7366

query I rowsort
SELECT + + 33 * + 16 AS col1
----
528

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT DISTINCT + 98, + COUNT( * ) AS col1
----
98
1

skipif mysql # not compatible
query II rowsort label-8911
SELECT DISTINCT + 98, + COUNT ( * ) AS col1
----
98
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8912
SELECT + + 73 * + + COUNT( * ) + - ( - CAST( - 53 AS SIGNED ) ) + - SUM( + - CAST( - 63 AS SIGNED ) ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-8912
SELECT + + 73 * + + COUNT ( * ) + - ( - CAST ( - 53 AS INTEGER ) ) + - SUM ( + - CAST ( - 63 AS INTEGER ) ) col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT + - ( - 10 ) - + CASE + + 14 WHEN - + 98 THEN 74 WHEN - 47 * + - 68 THEN + - 1 * - 38 ELSE NULL END + - COUNT( * ) * - + 42 * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT + - ( - 10 ) - + CASE + + 14 WHEN - + 98 THEN 74 WHEN - 47 * + - 68 THEN + - 1 * - 38 ELSE NULL END + - COUNT ( * ) * - + 42 * 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8914
SELECT 33 AS col0, - COUNT( * ) AS col1
----
33
-1

skipif mysql # not compatible
query II rowsort label-8914
SELECT 33 AS col0, - COUNT ( * ) AS col1
----
33
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT - 79 * 70 + + 93 + + 5 DIV - - ( - + 19 ) + + 40 + 23 AS col1
----
-5374

skipif mysql # not compatible
query I rowsort label-8915
SELECT - 79 * 70 + + 93 + + 5 / - - ( - + 19 ) + + 40 + 23 AS col1
----
-5374

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT - 51 * + 69 * + + COUNT( * ) - - - 93
----
-3612

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - 51 * + 69 * + + COUNT ( * ) - - - 93
----
-3612

query II rowsort
SELECT + - 8 AS col1, - 34
----
-8
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + + MAX( ALL - 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8918
SELECT + + MAX ( ALL - 80 ) AS col0
----
-80

query I rowsort
SELECT ALL + COALESCE ( 10, 96 ) AS col1
----
10

query I rowsort
SELECT - - 6 * 29 * + + 30 AS col0
----
5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL 16 * + 69 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL 16 * + 69 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8922
SELECT DISTINCT + 92, - 83 + COALESCE ( + 46, + + 74 - + COALESCE ( 72, CASE WHEN 88 IS NOT NULL THEN 87 ELSE + 0 * - - 60 END * ( + + COUNT( * ) ), - COALESCE ( + 39, 64 ) * - 83 - - + 19 ) + - 40 DIV 62 * 25 + 40, - 82 + - COUNT( * ) + + 14 * 80 * 2 ) AS col0
----
92
-37

skipif mysql # not compatible
query II rowsort label-8922
SELECT DISTINCT + 92, - 83 + COALESCE ( + 46, + + 74 - + COALESCE ( 72, CASE WHEN 88 IS NOT NULL THEN 87 ELSE + 0 * - - 60 END * ( + + COUNT ( * ) ), - COALESCE ( + 39, 64 ) * - 83 - - + 19 ) + - 40 / 62 * 25 + 40, - 82 + - COUNT ( * ) + + 14 * 80 * 2 ) AS col0
----
92
-37

query I rowsort
SELECT - ( + 3 ) col2
----
-3

query I rowsort
SELECT DISTINCT NULLIF ( - 80, - NULLIF ( - 83, - 94 * 38 ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT - 82 * - 29 AS col2, + COUNT( * ) - 28 AS col0
----
2378
-27

skipif mysql # not compatible
query II rowsort label-8925
SELECT - 82 * - 29 AS col2, + COUNT ( * ) - 28 AS col0
----
2378
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT - COUNT( - 67 ) * + 25 * + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8926
SELECT - COUNT ( - 67 ) * + 25 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT + COUNT( * ) * 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT + COUNT ( * ) * 70 col1
----
70

query I rowsort
SELECT ALL ( + ( + 87 ) ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8929
SELECT DISTINCT COUNT( * ) * + 72 AS col1, 42 AS col0
----
72
42

skipif mysql # not compatible
query II rowsort label-8929
SELECT DISTINCT COUNT ( * ) * + 72 AS col1, 42 AS col0
----
72
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), + - 11 ) * 7 + - 32 + + 94 * - 14
----
-1425

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), + - 11 ) * 7 + - 32 + + 94 * - 14
----
-1425

query I rowsort
SELECT - ( + ( + ( 74 ) ) ) + + + 18
----
-56

query I rowsort
SELECT + 98 * - 52 AS col0
----
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT DISTINCT + 4 DIV - 58 + + ( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT + 4 / - 58 + + ( 17 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8934
SELECT DISTINCT 24 DIV + 29 + + - COUNT( ALL - 33 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT 24 / + 29 + + - COUNT ( ALL - 33 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT ALL 31 DIV + 11
----
2

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL 31 / + 11
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT ALL 57 DIV - + 41 + - + ( + 53 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL 57 / - + 41 + - + ( + 53 ) AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8937
SELECT + - 62 DIV - 91 * 60 AS col2, 44 + + COUNT( * ) + - + 65 AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-8937
SELECT + - 62 / - 91 * 60 AS col2, 44 + + COUNT ( * ) + - + 65 AS col0
----
0
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT + 28 * + COUNT( DISTINCT + 71 )
----
28

skipif mysql # not compatible
query I rowsort label-8938
SELECT + 28 * + COUNT ( DISTINCT + 71 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8939
SELECT ALL ( + 59 ) DIV + - COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL ( + 59 ) / + - COUNT ( * ) AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8940
SELECT ALL + 91 * + + 33 - + 33 / CASE - - CAST( - + 64 AS DECIMAL ) WHEN - 52 THEN NULL WHEN - 36 THEN + 62 * + - ( + + 92 ) * 62 - ( CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) ) WHEN + COUNT( * ) - + 79 THEN + CAST( - COUNT( * ) AS SIGNED ) END / - COUNT( * ) + - - 57 / 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + 91 * + + 33 - + 33 / CASE - - CAST ( - + 64 AS REAL ) WHEN - 52 THEN NULL WHEN - 36 THEN + 62 * + - ( + + 92 ) * 62 - ( CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) ) WHEN + COUNT ( * ) - + 79 THEN + CAST ( - COUNT ( * ) AS INTEGER ) END / - COUNT ( * ) + - - 57 / 9 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT + COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8941
SELECT + COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) col0
----
1

query I rowsort
SELECT + 69 - + 11 AS col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8943
SELECT + - 61 + - 76 DIV - + SUM( ALL - - 83 )
----
-61

skipif mysql # not compatible
query I rowsort label-8943
SELECT + - 61 + - 76 / - + SUM ( ALL - - 83 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8944
SELECT ALL + 55 * - + 10 * + MAX( ALL + + CAST( NULL AS SIGNED ) ) * 35 + + + COUNT( * ) / - 66 col0, 1 + + 25
----
NULL
26

skipif mysql # not compatible
query II rowsort label-8944
SELECT ALL + 55 * - + 10 * + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) * 35 + + + COUNT ( * ) / - 66 col0, 1 + + 25
----
NULL
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT DISTINCT + NULLIF ( - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ), - - 92 * 11 + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + NULLIF ( - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), - - 92 * 11 + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + - 88 col1
----
-88

query I rowsort
SELECT + 81 * - - 63 * - 98 + 98 AS col1
----
-499996

query I rowsort
SELECT + 41 * + ( 89 ) + 17
----
3666

query I rowsort
SELECT + 58 * + 11
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL ( + - 72 ) * + MIN( + NULLIF ( + - 32, 28 + + 32 ) ) + - + COUNT( ALL 13 )
----
2303

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL ( + - 72 ) * + MIN ( + NULLIF ( + - 32, 28 + + 32 ) ) + - + COUNT ( ALL 13 )
----
2303

query I rowsort
SELECT + 76 + 23 + 91 + - 55
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT DISTINCT 81 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT 81 / 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL 3 * + COUNT( * ) + + 41
----
44

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL 3 * + COUNT ( * ) + + 41
----
44

query I rowsort
SELECT ALL 16 * - 86
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT DISTINCT 75 + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT 75 + + COUNT ( * )
----
76

query I rowsort
SELECT ALL - 58 + - + 28 + + 62
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT - CAST( NULL AS SIGNED ) * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT - CAST ( NULL AS INTEGER ) * - 22
----
NULL

query I rowsort
SELECT ALL + 31 + - 84 * + ( + - 10 ) + - NULLIF ( - + 3, + - 71 * 87 / + 64 - - 79 + - CASE 10 WHEN 25 - - 62 - + ( - 5 ) THEN + 60 WHEN - - 27 / 65 * + 64 THEN 5 ELSE NULL END ) + + - 26
----
848

query I rowsort
SELECT ALL - 58 + + + 47 * - ( 50 ) + - 61 col1
----
-2469

onlyif mysql # aggregate syntax: 
query II rowsort label-8960
SELECT - 44 AS col2, 76 - - ( + 96 ) + - MAX( DISTINCT - ( + 31 ) ) AS col2
----
-44
203

skipif mysql # not compatible
query II rowsort label-8960
SELECT - 44 AS col2, 76 - - ( + 96 ) + - MAX ( DISTINCT - ( + 31 ) ) AS col2
----
-44
203

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT COUNT( * ) + - + 29 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8961
SELECT COUNT ( * ) + - + 29 AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8962
SELECT 12 AS col0, + CAST( + 75 AS SIGNED )
----
12
75

skipif mysql # not compatible
query II rowsort label-8962
SELECT 12 AS col0, + CAST ( + 75 AS INTEGER )
----
12
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8963
SELECT 97 + + + ( - + NULLIF ( + - 20, + 1 ) ) * 14 + + + ( + CAST( + 0 AS SIGNED ) ) * + COUNT( * ) + + 40 * 0 col0
----
377

skipif mysql # not compatible
query I rowsort label-8963
SELECT 97 + + + ( - + NULLIF ( + - 20, + 1 ) ) * 14 + + + ( + CAST ( + 0 AS INTEGER ) ) * + COUNT ( * ) + + 40 * 0 col0
----
377

query II rowsort
SELECT ALL 54, 19 AS col0
----
54
19

query I rowsort
SELECT ALL - 68 * 10
----
-680

query I rowsort
SELECT ALL 43 - 56
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8967
SELECT CAST( NULL AS DECIMAL ) + - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT CAST ( NULL AS REAL ) + - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT + + SUM( + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8968
SELECT + + SUM ( + 74 ) AS col1
----
74

query I rowsort
SELECT - 50 * - 46 + - ( - ( - ( + 96 ) ) ) AS col1
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT - MIN( + + 74 ) * MIN( ALL + - 89 ) * - COUNT( * )
----
-6586

skipif mysql # not compatible
query I rowsort label-8970
SELECT - MIN ( + + 74 ) * MIN ( ALL + - 89 ) * - COUNT ( * )
----
-6586

query I rowsort
SELECT ALL - + 36 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT COUNT( * ) + 54 + 16
----
71

skipif mysql # not compatible
query I rowsort label-8972
SELECT COUNT ( * ) + 54 + 16
----
71

query I rowsort
SELECT + 28 + + - 13 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + CASE 40 WHEN 61 THEN 6 - + + 59 * - 73 WHEN 82 THEN NULL ELSE ( + SUM( DISTINCT - + NULLIF ( + + 0, + 84 ) ) ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8974
SELECT + CASE 40 WHEN 61 THEN 6 - + + 59 * - 73 WHEN 82 THEN NULL ELSE ( + SUM ( DISTINCT - + NULLIF ( + + 0, + 84 ) ) ) END AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT ALL 16 DIV 36 + - 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL 16 / 36 + - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8976
SELECT - 86 - + - 23 + + 0 AS col1, - CASE - + COALESCE ( + 50, + + 7, + + 63 / + 94 + - - 0 - - 42 * - ( + - 45 ) + + 24 ) WHEN - NULLIF ( + 81, 1 ) THEN + CASE + - 96 WHEN NULLIF ( - COUNT( * ), 88 ) THEN - 7 END ELSE NULL END
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-8976
SELECT - 86 - + - 23 + + 0 AS col1, - CASE - + COALESCE ( + 50, + + 7, + + 63 / + 94 + - - 0 - - 42 * - ( + - 45 ) + + 24 ) WHEN - NULLIF ( + 81, 1 ) THEN + CASE + - 96 WHEN NULLIF ( - COUNT ( * ), 88 ) THEN - 7 END ELSE NULL END
----
-63
NULL

query II rowsort
SELECT + 95 * - 72 * 18, 19 + - - 0 - + 63 + - 9 AS col2
----
-123120
-53

query I rowsort
SELECT ALL + 43 * + + 70 AS col1
----
3010

query I rowsort
SELECT + 8 * 33 * - 36 * + 77 AS col1
----
-731808

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT - 78 + - - 54 + + COUNT( * ) * + - 45 * + + 31 + 99
----
-1320

skipif mysql # not compatible
query I rowsort label-8980
SELECT - 78 + - - 54 + + COUNT ( * ) * + - 45 * + + 31 + 99
----
-1320

query I rowsort
SELECT ALL 70 + - 67
----
3

query I rowsort
SELECT ALL 40 * + 61
----
2440

onlyif mysql # aggregate syntax: 
query II rowsort label-8983
SELECT 72 + - 3, NULLIF ( - ( SUM( DISTINCT - - 97 ) ), + 56 + - 93 ) AS col1
----
69
-97

skipif mysql # not compatible
query II rowsort label-8983
SELECT 72 + - 3, NULLIF ( - ( SUM ( DISTINCT - - 97 ) ), + 56 + - 93 ) AS col1
----
69
-97

query II rowsort
SELECT DISTINCT 75 + + + 5 AS col0, + 44 - ( + 2 )
----
80
42

query I rowsort
SELECT 62 * - 33 * 77 col0
----
-157542

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT MAX( - + 95 ) + + + 46
----
-49

skipif mysql # not compatible
query I rowsort label-8986
SELECT MAX ( - + 95 ) + + + 46
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8987
SELECT 7 + + MAX( 24 ) * + 42, - 60 AS col1
----
1015
-60

skipif mysql # not compatible
query II rowsort label-8987
SELECT 7 + + MAX ( 24 ) * + 42, - 60 AS col1
----
1015
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT ALL 63 * + ( - 87 ) * 88 * + CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
-482328

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL 63 * + ( - 87 ) * 88 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
-482328

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT COUNT( - - 31 ) * 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT COUNT ( - - 31 ) * 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL + COUNT( * ) + ( + SUM( - 38 ) ) - + - COUNT( ALL + ( - 0 ) ) + 23
----
-13

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + COUNT ( * ) + ( + SUM ( - 38 ) ) - + - COUNT ( ALL + ( - 0 ) ) + 23
----
-13

query II rowsort
SELECT ALL 27 * - 21, 16 AS col0
----
-567
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8992
SELECT NULLIF ( + 18, + 45 + - - 9 ) DIV + MAX( - 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT NULLIF ( + 18, + 45 + - - 9 ) / + MAX ( - 86 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 62 * + 40 * + ( + 64 )
----
158720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT ALL 20 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL 20 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 87 - + + 92
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT - + CASE + 41 WHEN + 5 THEN 93 + + + COUNT( * ) + + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT - + CASE + 41 WHEN + 5 THEN 93 + + + COUNT ( * ) + + 60 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT + 10 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-8997
SELECT + 10 / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT COALESCE ( + ( - - 71 ), + 67 ) + + NULLIF ( - MIN( DISTINCT 93 ), 36 / 75 )
----
-22

skipif mysql # not compatible
query I rowsort label-8998
SELECT COALESCE ( + ( - - 71 ), + 67 ) + + NULLIF ( - MIN ( DISTINCT 93 ), 36 / 75 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8999
SELECT - - CAST( - CASE - - 58 WHEN + 2 - - 16 THEN + - 70 WHEN + 89 THEN NULL END AS SIGNED ) AS col0, NULLIF ( 14, + COUNT( * ) + - 36 ) * - + 64, + + 67 AS col0
----
NULL
-896
67

skipif mysql # not compatible
query III rowsort label-8999
SELECT - - CAST ( - CASE - - 58 WHEN + 2 - - 16 THEN + - 70 WHEN + 89 THEN NULL END AS INTEGER ) AS col0, NULLIF ( 14, + COUNT ( * ) + - 36 ) * - + 64, + + 67 AS col0
----
NULL
-896
67

query I rowsort
SELECT DISTINCT - 21 - + 85
----
-106

query II rowsort
SELECT 93 - + 37, 87 AS col0
----
56
87

query I rowsort
SELECT DISTINCT - + 39 * + ( + + 75 ) AS col0
----
-2925

query I rowsort
SELECT 44 * 87 + - + 51
----
3777

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT 93 * + - MIN( ALL 90 ) AS col1
----
-8370

skipif mysql # not compatible
query I rowsort label-9004
SELECT 93 * + - MIN ( ALL 90 ) AS col1
----
-8370

query I rowsort
SELECT ALL + - 97 + + + ( 98 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 45 * - 40
----
-1800

query I rowsort
SELECT + 32 * - + 42 + + 77 col1
----
-1267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT ALL - NULLIF ( 95, + CAST( + ( + 27 ) AS SIGNED ) )
----
-95

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - NULLIF ( 95, + CAST ( + ( + 27 ) AS INTEGER ) )
----
-95

query I rowsort
SELECT DISTINCT - 48 + ( + 88 ) + + - 5 - 44 + - 30
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT 75 + - ( - + COALESCE ( - 36, + 97 DIV + 11 ) )
----
39

skipif mysql # not compatible
query I rowsort label-9010
SELECT 75 + - ( - + COALESCE ( - 36, + 97 / + 11 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT 52 + 77 * - 61 * - - 90 + - 28 * - MAX( - + 26 ) + + - NULLIF ( 96, + 59 ) AS col1
----
-423502

skipif mysql # not compatible
query I rowsort label-9011
SELECT 52 + 77 * - 61 * - - 90 + - 28 * - MAX ( - + 26 ) + + - NULLIF ( 96, + 59 ) AS col1
----
-423502

query II rowsort
SELECT 57 AS col0, + 64
----
57
64

query I rowsort
SELECT 62 + 17
----
79

query I rowsort
SELECT DISTINCT + 58 * 52 AS col1
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ( - + MAX( ALL + - 7 ) ) * - + 27 + - + 45 + ( + + 7 ) AS col2
----
-227

skipif mysql # not compatible
query I rowsort label-9015
SELECT ( - + MAX ( ALL + - 7 ) ) * - + 27 + - + 45 + ( + + 7 ) AS col2
----
-227

query I rowsort
SELECT ALL CASE + 81 WHEN + 0 - + 72 + + 5 THEN + + 15 WHEN - 50 THEN - 51 END + + - 77 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT DISTINCT + 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT + 59 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 21 * - - 65
----
1365

query I rowsort
SELECT ALL + 41 * + 95
----
3895

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9020
SELECT ALL 48 AS col1, CAST( + 78 AS SIGNED )
----
48
78

skipif mysql # not compatible
query II rowsort label-9020
SELECT ALL 48 AS col1, CAST ( + 78 AS INTEGER )
----
48
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT + 15 + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9021
SELECT + 15 + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + 3 + - + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9022
SELECT + 3 + - + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT + 9 - + 19 + 66 * + + 36 + - 73 + 23
----
2316

query I rowsort
SELECT + 67 * + - 11 AS col2
----
-737

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9025
SELECT + 38 + + 96 * COUNT( * ) AS col1, + 94 + - 39 DIV + + 11 AS col2
----
134
91

skipif mysql # not compatible
query II rowsort label-9025
SELECT + 38 + + 96 * COUNT ( * ) AS col1, + 94 + - 39 / + + 11 AS col2
----
134
91

query I rowsort
SELECT + 8 + - 4 * - 68 * + + 72
----
19592

query I rowsort
SELECT DISTINCT + 62 * 25
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT COALESCE ( + 53, + SUM( ALL - 37 ), + 48 - - + 60 ) col1
----
53

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT COALESCE ( + 53, + SUM ( ALL - 37 ), + 48 - - + 60 ) col1
----
53

query I rowsort
SELECT + + 23 + 69
----
92

query I rowsort
SELECT ALL + - 49 * + 39
----
-1911

query I rowsort
SELECT DISTINCT 53 * - COALESCE ( + + 49, + - 20 * 75 * 90 + - 32 * + + 42, + 34 ) AS col2
----
-2597

query I rowsort
SELECT + + 73 + + 17 AS col2
----
90

query II rowsort
SELECT 98 AS col1, + 85
----
98
85

query I rowsort
SELECT + - 41 col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT + CASE - + 67 WHEN + 57 + 7 THEN NULL ELSE + - 34 END * - MIN( ALL + 25 ) + + 54 + + 52 * - 38 AS col0
----
-1072

skipif mysql # not compatible
query I rowsort label-9035
SELECT + CASE - + 67 WHEN + 57 + 7 THEN NULL ELSE + - 34 END * - MIN ( ALL + 25 ) + + 54 + + 52 * - 38 AS col0
----
-1072

query I rowsort
SELECT + ( 44 ) * + 5 * + 98
----
21560

query I rowsort
SELECT + 91 * 57 + + - 54
----
5133

query I rowsort
SELECT + - 18 col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9039
SELECT - - SUM( DISTINCT - - 39 ) DIV + NULLIF ( + 39, COUNT( * ) * 76 DIV CASE - NULLIF ( + + COUNT( * ), + 74 ) WHEN + - SUM( ALL + 77 ) THEN 11 END * ( + NULLIF ( + - 60, 18 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9039
SELECT - - SUM ( DISTINCT - - 39 ) / + NULLIF ( + 39, COUNT ( * ) * 76 / CASE - NULLIF ( + + COUNT ( * ), + 74 ) WHEN + - SUM ( ALL + 77 ) THEN 11 END * ( + NULLIF ( + - 60, 18 ) ) )
----
1

query I rowsort
SELECT DISTINCT 57 * + + 18 + + 50 + - 24
----
1052

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT + SUM( ALL - ( + - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9041
SELECT + SUM ( ALL - ( + - 1 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9042
SELECT ALL + COALESCE ( CAST( + MAX( ALL - 83 ) AS SIGNED ), 60, + 32 )
----
-83

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + COALESCE ( CAST ( + MAX ( ALL - 83 ) AS INTEGER ), 60, + 32 )
----
-83

query I rowsort
SELECT - - 47 * + 76 AS col1
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - - 30 + + + CASE NULLIF ( - NULLIF ( - - 71, + COUNT( * ) ), ( - 66 ) + NULLIF ( + 63, 8 ) * - + 32 + 45 ) WHEN 78 THEN NULL WHEN - 51 THEN + 21 * - COUNT( - 49 ) + + - 47 * 73 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT - - 30 + + + CASE NULLIF ( - NULLIF ( - - 71, + COUNT ( * ) ), ( - 66 ) + NULLIF ( + 63, 8 ) * - + 32 + 45 ) WHEN 78 THEN NULL WHEN - 51 THEN + 21 * - COUNT ( - 49 ) + + - 47 * 73 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT + 68 * - COUNT( - - 10 ) + + 13
----
-55

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT + 68 * - COUNT ( - - 10 ) + + 13
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL MAX( 97 ) * + 67 - - + 92 + - 22
----
6569

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL MAX ( 97 ) * + 67 - - + 92 + - 22
----
6569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9047
SELECT CASE + 97 WHEN - - CAST( - 22 AS SIGNED ) / MIN( + - 47 ) THEN ( - 36 ) WHEN 21 THEN + 82 / + - 43 - 43 * - MIN( - 83 ) + + - 55 ELSE + 97 END, ( 72 ) AS col0
----
97
72

skipif mysql # not compatible
query II rowsort label-9047
SELECT CASE + 97 WHEN - - CAST ( - 22 AS INTEGER ) / MIN ( + - 47 ) THEN ( - 36 ) WHEN 21 THEN + 82 / + - 43 - 43 * - MIN ( - 83 ) + + - 55 ELSE + 97 END, ( 72 ) AS col0
----
97
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9048
SELECT CASE + 70 WHEN + 87 THEN - - 62 * + - 33 + CASE COUNT( 64 ) WHEN - 65 THEN NULL ELSE CAST( - 53 AS SIGNED ) END + 84 WHEN - 82 + + 98 THEN NULL ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9048
SELECT CASE + 70 WHEN + 87 THEN - - 62 * + - 33 + CASE COUNT ( 64 ) WHEN - 65 THEN NULL ELSE CAST ( - 53 AS INTEGER ) END + 84 WHEN - 82 + + 98 THEN NULL ELSE - COUNT ( * ) END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT + COUNT( * ) * - + 51 - - - 48 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9049
SELECT + COUNT ( * ) * - + 51 - - - 48 AS col1
----
-99

query I rowsort
SELECT COALESCE ( + - 82, - 31, - 70 ) col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL + MAX( - - ( 51 ) ) * + 19
----
969

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL + MAX ( - - ( 51 ) ) * + 19
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT COALESCE ( + + COUNT( * ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9052
SELECT COALESCE ( + + COUNT ( * ), COUNT ( * ) )
----
1

query I rowsort
SELECT NULLIF ( + 86, 62 ) AS col0
----
86

query I rowsort
SELECT - 75 + + 38 AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9055
SELECT ALL + CAST( 16 AS SIGNED ) * + + 80 + + CAST( NULL AS DECIMAL ) + 79 * 57 / 21 * + 2 * - + 59 - - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + CAST ( 16 AS INTEGER ) * + + 80 + + CAST ( NULL AS REAL ) + 79 * 57 / 21 * + 2 * - + 59 - - + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL - 11 * - COUNT( * ) - - 64 col2
----
75

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - 11 * - COUNT ( * ) - - 64 col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT - CAST( NULL AS SIGNED ) * + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT - CAST ( NULL AS INTEGER ) * + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL + 72 * - COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL + 72 * - COUNT ( * ) AS col1
----
-72

query II rowsort
SELECT + 84 AS col2, + 97
----
84
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9060
SELECT DISTINCT 43 AS col1, 37 * - + CAST( NULL AS SIGNED ) AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-9060
SELECT DISTINCT 43 AS col1, 37 * - + CAST ( NULL AS INTEGER ) AS col1
----
43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT - 95 AS col0, + MAX( 78 )
----
-95
78

skipif mysql # not compatible
query II rowsort label-9061
SELECT - 95 AS col0, + MAX ( 78 )
----
-95
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9062
SELECT DISTINCT + 28 / - + ( - - CAST( NULL AS SIGNED ) ) * 26 * - NULLIF ( + + ( - - COUNT( ALL + 56 ) ), + 21 ) * - 89 + - 60 - + + 44 / + - CAST( + 44 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT + 28 / - + ( - - CAST ( NULL AS INTEGER ) ) * 26 * - NULLIF ( + + ( - - COUNT ( ALL + 56 ) ), + 21 ) * - 89 + - 60 - + + 44 / + - CAST ( + 44 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL - NULLIF ( COUNT( ALL 52 ), 90 ) * COUNT( * ) * - - 28
----
-28

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL - NULLIF ( COUNT ( ALL 52 ), 90 ) * COUNT ( * ) * - - 28
----
-28

query II rowsort
SELECT - 79 * - 59 AS col0, - 20
----
4661
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT COUNT( * ) * + 91 + 93
----
184

skipif mysql # not compatible
query I rowsort label-9065
SELECT COUNT ( * ) * + 91 + 93
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT - 97 DIV + ( 71 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9066
SELECT - 97 / + ( 71 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT ALL + CAST( NULL AS SIGNED ) * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 26
----
NULL

query I rowsort
SELECT ALL + ( - 89 )
----
-89

query I rowsort
SELECT ALL - + 43 * + - 24
----
1032

onlyif mysql # aggregate syntax: 
query III rowsort label-9070
SELECT - COUNT( * ) AS col0, 21 AS col0, + 67 * + + 47 AS col0
----
-1
21
3149

skipif mysql # not compatible
query III rowsort label-9070
SELECT - COUNT ( * ) AS col0, 21 AS col0, + 67 * + + 47 AS col0
----
-1
21
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT DISTINCT - + 93 * - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT - + 93 * - COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9072
SELECT - 13 AS col1, COUNT( DISTINCT 85 ) AS col0
----
-13
1

skipif mysql # not compatible
query II rowsort label-9072
SELECT - 13 AS col1, COUNT ( DISTINCT 85 ) AS col0
----
-13
1

query I rowsort
SELECT - 38 + - 22 AS col1
----
-60

query I rowsort
SELECT + - 0 * - 26 AS col0
----
0

query II rowsort
SELECT + 52 + NULLIF ( + 67, 88 ), 4 + + + 62 AS col1
----
119
66

query I rowsort
SELECT + 66 + 84 * + - 26 AS col2
----
-2118

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL - MIN( + 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL - MIN ( + 2 ) AS col1
----
-2

query II rowsort
SELECT ALL + 66, 95 AS col2
----
66
95

query II rowsort
SELECT + + 10 AS col2, - 83
----
10
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9080
SELECT ALL + ( COUNT( * ) ) DIV 26 * + - 18 + COUNT( 61 ) + NULLIF ( 48, - 67 ) * - - 22
----
1057

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL + ( COUNT ( * ) ) / 26 * + - 18 + COUNT ( 61 ) + NULLIF ( 48, - 67 ) * - - 22
----
1057

query II rowsort
SELECT - 54 AS col1, 95
----
-54
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT + - 28 * 91 + CAST( + 29 AS SIGNED ) + 45 * - + 65
----
-5444

skipif mysql # not compatible
query I rowsort label-9082
SELECT + - 28 * 91 + CAST ( + 29 AS INTEGER ) + 45 * - + 65
----
-5444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT CAST( + 34 AS SIGNED ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9083
SELECT CAST ( + 34 AS INTEGER ) AS col1
----
34

query II rowsort
SELECT + 76 + 0 AS col1, 71 * - - 99
----
76
7029

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT - 82 * - + COUNT( * ) AS col2, 86 + - + 84
----
82
2

skipif mysql # not compatible
query II rowsort label-9085
SELECT - 82 * - + COUNT ( * ) AS col2, 86 + - + 84
----
82
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9086
SELECT - 49 DIV 50 * + 4 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9086
SELECT - 49 / 50 * + 4 - + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT 91 * ( + ( - COUNT( * ) ) )
----
-91

skipif mysql # not compatible
query I rowsort label-9087
SELECT 91 * ( + ( - COUNT ( * ) ) )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9088
SELECT DISTINCT - ( COUNT( * ) ) * NULLIF ( 18, + - CAST( 97 AS SIGNED ) * + + 3 * + 54 ) AS col2, - MAX( 87 ) * 5
----
-18
-435

skipif mysql # not compatible
query II rowsort label-9088
SELECT DISTINCT - ( COUNT ( * ) ) * NULLIF ( 18, + - CAST ( 97 AS INTEGER ) * + + 3 * + 54 ) AS col2, - MAX ( 87 ) * 5
----
-18
-435

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT ALL 4 / CASE 30 WHEN - - 4 / - 62 THEN NULL WHEN + + ( 7 ) * - + 25 THEN NULL ELSE COUNT( * ) / ( - 59 ) + - COUNT( * ) + - - 78 * - + 15 - - + CASE - 49 WHEN - 76 THEN + + 90 ELSE NULL END END col2, + 53 + + ( + 48 )
----
NULL
101

skipif mysql # not compatible
query II rowsort label-9089
SELECT ALL 4 / CASE 30 WHEN - - 4 / - 62 THEN NULL WHEN + + ( 7 ) * - + 25 THEN NULL ELSE COUNT ( * ) / ( - 59 ) + - COUNT ( * ) + - - 78 * - + 15 - - + CASE - 49 WHEN - 76 THEN + + 90 ELSE NULL END END col2, + 53 + + ( + 48 )
----
NULL
101

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9090
SELECT CAST( - + AVG ( ALL CAST( NULL AS DECIMAL ) ) AS SIGNED ) * + + 27 * + + ( + 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT CAST ( - + AVG ( ALL CAST ( NULL AS REAL ) ) AS INTEGER ) * + + 27 * + + ( + 24 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT ALL + ( 85 ) * + COUNT( * ) AS col2, 30 * SUM( 48 )
----
85
1440

skipif mysql # not compatible
query II rowsort label-9091
SELECT ALL + ( 85 ) * + COUNT ( * ) AS col2, 30 * SUM ( 48 )
----
85
1440

query I rowsort
SELECT + 60 * + 53 + 3 col0
----
3183

query I rowsort
SELECT 15 * + + 41
----
615

query II rowsort
SELECT ALL 62 * + 9 col1, - 12
----
558
-12

query I rowsort
SELECT DISTINCT - + 41 + + + 61 * + 99 AS col2
----
5998

query I rowsort
SELECT 99 + - - 34 + - 85 * + - ( + - 27 )
----
-2162

query I rowsort
SELECT ALL - 1 + 42 * 49 + 87 AS col2
----
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT - MAX( - 54 ) + - 18 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9098
SELECT - MAX ( - 54 ) + - 18 AS col1
----
36

query I rowsort
SELECT - COALESCE ( + + 96, 38 ) AS col2
----
-96

query I rowsort
SELECT 78 + + 6 + + 13 - - - ( - 39 ) AS col1
----
136

query I rowsort
SELECT ALL + 60 + - 26
----
34

query I rowsort
SELECT ALL - - 24 + - 7 AS col2
----
17

query I rowsort
SELECT 1 + - ( - 0 ) * + 16 - - - 36 + - 94 * 69 * + 3 AS col2
----
-19493

onlyif mysql # aggregate syntax: 
query II rowsort label-9104
SELECT DISTINCT - COUNT( DISTINCT - 66 ) AS col0, COUNT( DISTINCT 2 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-9104
SELECT DISTINCT - COUNT ( DISTINCT - 66 ) AS col0, COUNT ( DISTINCT 2 )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT - SUM( ALL + 36 ) + 33
----
-3

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT - SUM ( ALL + 36 ) + 33
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9106
SELECT 27 * - 13, COUNT( * ) * - 29 AS col0
----
-351
-29

skipif mysql # not compatible
query II rowsort label-9106
SELECT 27 * - 13, COUNT ( * ) * - 29 AS col0
----
-351
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9107
SELECT CAST( + + 21 AS SIGNED ) + - + 19 AS col1, ( 26 )
----
2
26

skipif mysql # not compatible
query II rowsort label-9107
SELECT CAST ( + + 21 AS INTEGER ) + - + 19 AS col1, ( 26 )
----
2
26

query I rowsort
SELECT 17 + - 88 col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9109
SELECT ALL - 17 AS col2, COUNT( * ) AS col0
----
-17
1

skipif mysql # not compatible
query II rowsort label-9109
SELECT ALL - 17 AS col2, COUNT ( * ) AS col0
----
-17
1

query II rowsort
SELECT DISTINCT - 32 AS col2, + NULLIF ( 79, + + 45 ) AS col0
----
-32
79

query I rowsort
SELECT 7 + - + 49 AS col2
----
-42

query I rowsort
SELECT DISTINCT 51 * 44
----
2244

query I rowsort
SELECT ALL 98 * - 45
----
-4410

query I rowsort
SELECT 96 * + 46
----
4416

query II rowsort
SELECT 97 AS col2, + 9 / - + 36 + + 81 * 78 - + + CASE WHEN + 33 <= + - 82 THEN + + 62 END
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL - COUNT( 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - COUNT ( 62 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT COUNT( * ) DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-9117
SELECT COUNT ( * ) / - 49
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9118
SELECT ALL - 51 AS col1, 22 * + COUNT( * ) AS col0
----
-51
22

skipif mysql # not compatible
query II rowsort label-9118
SELECT ALL - 51 AS col1, 22 * + COUNT ( * ) AS col0
----
-51
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL - COUNT( * ) + + + 96
----
95

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - COUNT ( * ) + + + 96
----
95

query II rowsort
SELECT ALL - 67 AS col1, 64 AS col2
----
-67
64

query I rowsort
SELECT ALL + + 43 + - ( - ( + + 52 ) ) * + 87
----
4567

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT DISTINCT - 14 DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - 14 / + 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - MIN( ALL + 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9123
SELECT - MIN ( ALL + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9124
SELECT ALL + 80 + + COUNT( * ) * - + 93 col0, COALESCE ( 34, 52 DIV 46 * - 77 * 3 + - 42 - - 28 * 81 * - NULLIF ( - + 87, 55 + - 39 DIV + CASE 3 WHEN + + 38 THEN - 40 END * + COALESCE ( + + MAX( 28 ), + 70 ) ) + - COUNT( * ) )
----
-13
34

skipif mysql # not compatible
query II rowsort label-9124
SELECT ALL + 80 + + COUNT ( * ) * - + 93 col0, COALESCE ( 34, 52 / 46 * - 77 * 3 + - 42 - - 28 * 81 * - NULLIF ( - + 87, 55 + - 39 / + CASE 3 WHEN + + 38 THEN - 40 END * + COALESCE ( + + MAX ( 28 ), + 70 ) ) + - COUNT ( * ) )
----
-13
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT - 22 + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT - 22 + COUNT ( * )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9126
SELECT CASE - 67 WHEN - 45 THEN NULL WHEN - 6 * + 53 THEN NULL ELSE - 41 END * - COALESCE ( + + CAST( - 63 AS SIGNED ), COUNT( * ) )
----
-2583

skipif mysql # not compatible
query I rowsort label-9126
SELECT CASE - 67 WHEN - 45 THEN NULL WHEN - 6 * + 53 THEN NULL ELSE - 41 END * - COALESCE ( + + CAST ( - 63 AS INTEGER ), COUNT ( * ) )
----
-2583

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL - + CASE + 20 WHEN - 17 + - 90 THEN 30 + + 85 WHEN + COUNT( * ) THEN NULL ELSE - + 12 END + + + MAX( 35 ) + - 57 + - - 21 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - + CASE + 20 WHEN - 17 + - 90 THEN 30 + + 85 WHEN + COUNT ( * ) THEN NULL ELSE - + 12 END + + + MAX ( 35 ) + - 57 + - - 21 AS col2
----
11

query I rowsort
SELECT ALL 4 + + - 10
----
-6

query I rowsort
SELECT DISTINCT - 62 + - 45 AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL - + COUNT( ALL ( - 37 ) ) + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - + COUNT ( ALL ( - 37 ) ) + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT COUNT( * ) * - - 96 * + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9131
SELECT COUNT ( * ) * - - 96 * + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL + 28 + - + 30 * MAX( + 94 ) AS col0
----
-2792

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + 28 + - + 30 * MAX ( + 94 ) AS col0
----
-2792

query I rowsort
SELECT DISTINCT - 6 - 21
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - COUNT( ALL + 11 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9134
SELECT - COUNT ( ALL + 11 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT - + COALESCE ( 10, + - COUNT( * ) DIV - 83 + - - 29, 54 - + COUNT( * ) ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9135
SELECT - + COALESCE ( 10, + - COUNT ( * ) / - 83 + - - 29, 54 - + COUNT ( * ) ) AS col2
----
-10

query I rowsort
SELECT 95 + - + 31 AS col1
----
64

query I rowsort
SELECT + 93 * + 51 AS col1
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL + SUM( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL + SUM ( + 99 ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9139
SELECT - + 99 + - 45 - - CAST( NULL AS SIGNED ), COUNT( DISTINCT + 88 ) - - 30 AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-9139
SELECT - + 99 + - 45 - - CAST ( NULL AS INTEGER ), COUNT ( DISTINCT + 88 ) - - 30 AS col1
----
NULL
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - NULLIF ( - 36, 5 + + CASE - + 60 WHEN - 29 THEN + + 97 ELSE - - 22 / + + 58 END ) + 92 AS col0
----
56

query I rowsort
SELECT ALL + ( + 92 ) - + 35 + - 78 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT ALL - COUNT( * ) * - + 99 col1
----
99

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - COUNT ( * ) * - + 99 col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT - 40 DIV 26 + - 94
----
-95

skipif mysql # not compatible
query I rowsort label-9144
SELECT - 40 / 26 + - 94
----
-95

query I rowsort
SELECT ALL + 13 * + 56 AS col1
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT - MAX( DISTINCT - 70 ) * + COUNT( * ) * - 61 * + 23
----
-98210

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT - MAX ( DISTINCT - 70 ) * + COUNT ( * ) * - 61 * + 23
----
-98210

onlyif mysql # aggregate syntax: 
query II rowsort label-9147
SELECT - 99 + 23 * - 78 * - COUNT( * ), + 30 AS col2
----
1695
30

skipif mysql # not compatible
query II rowsort label-9147
SELECT - 99 + 23 * - 78 * - COUNT ( * ), + 30 AS col2
----
1695
30

query I rowsort
SELECT DISTINCT + ( 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + CASE WHEN NULL IS NOT NULL THEN + 19 END / + SUM( ALL + 71 ) / 50 + - 63 + - CASE + 98 WHEN - + 51 THEN - - COUNT( * ) + + 44 + COUNT( * ) * + - 10 WHEN + + 25 THEN NULL WHEN + 46 - - 11 THEN 19 - + ( + + 69 ) * + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT + CASE WHEN NULL IS NOT NULL THEN + 19 END / + SUM ( ALL + 71 ) / 50 + - 63 + - CASE + 98 WHEN - + 51 THEN - - COUNT ( * ) + + 44 + COUNT ( * ) * + - 10 WHEN + + 25 THEN NULL WHEN + 46 - - 11 THEN 19 - + ( + + 69 ) * + 86 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT - 63 + - 12 DIV 23 DIV - 44 * + 50 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9150
SELECT - 63 + - 12 / 23 / - 44 * + 50 AS col2
----
-63

query I rowsort
SELECT - 80 * - ( + + 8 ) AS col1
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT + 86 * SUM( ALL 68 )
----
5848

skipif mysql # not compatible
query I rowsort label-9152
SELECT + 86 * SUM ( ALL 68 )
----
5848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9153
SELECT + COUNT( * ) - - + COUNT( * ) AS col0, 53 - - 73 * + - COUNT( * ) * - - CASE 35 WHEN - 82 THEN NULL WHEN - + 82 + MIN( DISTINCT - 89 ) * - + 86 THEN + - MAX( ALL 1 ) WHEN - 62 + + 76 + - - 68 + + AVG ( + + 83 ) * + COUNT( + CAST( + 97 AS SIGNED ) ) / - 88 + - 55 + 48 + + 14 * 22 * CASE + 66 WHEN + + 19 THEN 71 END * + - 14 THEN NULL END AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-9153
SELECT + COUNT ( * ) - - + COUNT ( * ) AS col0, 53 - - 73 * + - COUNT ( * ) * - - CASE 35 WHEN - 82 THEN NULL WHEN - + 82 + MIN ( DISTINCT - 89 ) * - + 86 THEN + - MAX ( ALL 1 ) WHEN - 62 + + 76 + - - 68 + + AVG ( + + 83 ) * + COUNT ( + CAST ( + 97 AS INTEGER ) ) / - 88 + - 55 + 48 + + 14 * 22 * CASE + 66 WHEN + + 19 THEN 71 END * + - 14 THEN NULL END AS col1
----
2
NULL

query I rowsort
SELECT COALESCE ( + 51, + NULLIF ( + - 18, + + 88 ) + 45 + + - 18, 9 - - 46 ) col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT DISTINCT + CAST( - ( 45 ) AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + CAST ( - ( 45 ) AS INTEGER ) AS col0
----
-45

query I rowsort
SELECT + 50 * 40
----
2000

query I rowsort
SELECT DISTINCT + 92 * 3 * - CASE + 27 WHEN - - 95 * + 79 THEN NULLIF ( 57, 62 * - + 98 ) ELSE ( - 97 ) * + - 80 END + + ( ( - 22 ) ) col1
----
-2141782

query I rowsort
SELECT DISTINCT 1 * - 71 + + 76 + + + 80 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT ALL - CAST( 60 AS SIGNED ) * - COUNT( * ) * + 29 + - CASE + - SUM( - 47 ) WHEN + 42 / + + 39 THEN NULL WHEN - NULLIF ( - - 87, - COUNT( 39 ) ) THEN NULL WHEN 92 THEN NULL ELSE + 19 END
----
1721

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL - CAST ( 60 AS INTEGER ) * - COUNT ( * ) * + 29 + - CASE + - SUM ( - 47 ) WHEN + 42 / + + 39 THEN NULL WHEN - NULLIF ( - - 87, - COUNT ( 39 ) ) THEN NULL WHEN 92 THEN NULL ELSE + 19 END
----
1721

query I rowsort
SELECT - 78 + - 45 col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - 28 * - 77 * COUNT( * ) * - 56 + - 70 + 67 * 10 * + 34 * + + 21 col1
----
357574

skipif mysql # not compatible
query I rowsort label-9161
SELECT - 28 * - 77 * COUNT ( * ) * - 56 + - 70 + 67 * 10 * + 34 * + + 21 col1
----
357574

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL COUNT( * ) * - + 46 * - 34 + - - COUNT( * ) + 5 + - 6 AS col1
----
1564

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL COUNT ( * ) * - + 46 * - 34 + - - COUNT ( * ) + 5 + - 6 AS col1
----
1564

query I rowsort
SELECT - - 67 * - COALESCE ( + + 98, - 12 ) + 97 * 3 + + ( 83 ) + + - 58 * 46 col1
----
-8860

onlyif mysql # DIV for integer division: 
query II rowsort label-9164
SELECT + 74 DIV 91 AS col1, 78 AS col0
----
0
78

skipif mysql # not compatible
query II rowsort label-9164
SELECT + 74 / 91 AS col1, 78 AS col0
----
0
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT - CASE 63 WHEN + - COUNT( * ) / + + 54 THEN 94 WHEN - - ( - - 64 ) + - 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT - CASE 63 WHEN + - COUNT ( * ) / + + 54 THEN 94 WHEN - - ( - - 64 ) + - 39 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT ALL - CAST( + 84 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL - CAST ( + 84 AS INTEGER ) AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9167
SELECT ALL - MIN( - ( + 67 ) ) DIV - 98 * 83
----
0

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL - MIN ( - ( + 67 ) ) / - 98 * 83
----
0

query I rowsort
SELECT ALL - 58 - - + 71 AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT ALL - 77 - - + CAST( + 18 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL - 77 - - + CAST ( + 18 AS INTEGER )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT + - COUNT( * ) * - 20 * 68
----
1360

skipif mysql # not compatible
query I rowsort label-9170
SELECT + - COUNT ( * ) * - 20 * 68
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT + - COALESCE ( - 8, - COUNT( * ) + + 79 ) + + + 50 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9171
SELECT + - COALESCE ( - 8, - COUNT ( * ) + + 79 ) + + + 50 AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT ALL + 8 DIV - - 81
----
0

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL + 8 / - - 81
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9173
SELECT + COUNT( * ) DIV - 64 col1
----
0

skipif mysql # not compatible
query I rowsort label-9173
SELECT + COUNT ( * ) / - 64 col1
----
0

query II rowsort
SELECT DISTINCT ( - + 76 ) AS col2, + 8
----
-76
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL 18 * + 99 + - COUNT( * )
----
1781

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL 18 * + 99 + - COUNT ( * )
----
1781

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT ALL + 56 * - - 54, + COUNT( * ) AS col2
----
3024
1

skipif mysql # not compatible
query II rowsort label-9176
SELECT ALL + 56 * - - 54, + COUNT ( * ) AS col2
----
3024
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL COALESCE ( + 17, - + 93 * COUNT( 90 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL COALESCE ( + 17, - + 93 * COUNT ( 90 ) ) AS col1
----
17

query I rowsort
SELECT DISTINCT 87 * 67 AS col1
----
5829

query II rowsort
SELECT 84 AS col2, + 50 AS col0
----
84
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT - 16 * - COUNT( * ) * + + 85 * + ( + - 80 )
----
-108800

skipif mysql # not compatible
query I rowsort label-9180
SELECT - 16 * - COUNT ( * ) * + + 85 * + ( + - 80 )
----
-108800

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL CASE + COUNT( * ) WHEN + 2 + 86 + - - 2 * - 49 THEN MAX( + 85 ) + - - 68 * - - 98 - - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL CASE + COUNT ( * ) WHEN + 2 + 86 + - - 2 * - 49 THEN MAX ( + 85 ) + - - 68 * - - 98 - - 45 END
----
NULL

query II rowsort
SELECT ALL COALESCE ( - 85, - - 65 ) AS col2, + 79 AS col0
----
-85
79

query II rowsort
SELECT 92, - 47 AS col1
----
92
-47

query I rowsort
SELECT + 4 + + + 66 AS col1
----
70

query I rowsort
SELECT - 63 * - - 33
----
-2079

query I rowsort
SELECT - 69 + - 13
----
-82

query I rowsort
SELECT DISTINCT + 64 * 10 AS col1
----
640

query I rowsort
SELECT ( - + 25 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT + MIN( - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9189
SELECT + MIN ( - 72 ) AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT - 14 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-9190
SELECT - 14 / 43
----
0

query I rowsort
SELECT - 73 - + 91 + 5 AS col0
----
-159

query II rowsort
SELECT - 91 * 99 * - 82 AS col2, + NULLIF ( - 45, + 68 )
----
738738
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9193
SELECT + 80 * - COUNT( * ) * + - CAST( NULL AS SIGNED ) + - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT + 80 * - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - 70 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT DISTINCT - 6 * - 60 + + 43 + - MAX( + 44 ) + 22 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT - 6 * - 60 + + 43 + - MAX ( + 44 ) + 22 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 81 col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9196
SELECT - CASE ( - ( + 58 ) ) WHEN 49 THEN NULL ELSE COUNT( ALL - 23 ) + + 68 + - - CAST( NULL AS SIGNED ) + + 40 - + - COUNT( ALL + 83 ) * + + CAST( - 25 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT - CASE ( - ( + 58 ) ) WHEN 49 THEN NULL ELSE COUNT ( ALL - 23 ) + + 68 + - - CAST ( NULL AS INTEGER ) + + 40 - + - COUNT ( ALL + 83 ) * + + CAST ( - 25 AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9197
SELECT CASE + - COUNT( + ( + - 9 ) ) WHEN - 41 * - - 73 * - CAST( NULL AS SIGNED ) THEN 85 WHEN - 87 THEN NULL ELSE + 85 END
----
85

skipif mysql # not compatible
query I rowsort label-9197
SELECT CASE + - COUNT ( + ( + - 9 ) ) WHEN - 41 * - - 73 * - CAST ( NULL AS INTEGER ) THEN 85 WHEN - 87 THEN NULL ELSE + 85 END
----
85

query I rowsort
SELECT DISTINCT - 79 - 44
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + SUM( + - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-9199
SELECT + SUM ( + - 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9200
SELECT ALL + COUNT( * ) * + COUNT( * ) / - 26 + 14 * - 68 * - 87 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + COUNT ( * ) * + COUNT ( * ) / - 26 + 14 * - 68 * - 87 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9201
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 24 + - CASE + 45 WHEN 63 THEN - 61 * + + 32 + - 30 / - - 10 WHEN - + 38 THEN + - 50 + - ( 29 ) ELSE + + 64 / + 18 * + + CAST( NULL AS DECIMAL ) * 92 END * - 53 - - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT + CAST ( NULL AS REAL ) * 24 + - CASE + 45 WHEN 63 THEN - 61 * + + 32 + - 30 / - - 10 WHEN - + 38 THEN + - 50 + - ( 29 ) ELSE + + 64 / + 18 * + + CAST ( NULL AS REAL ) * 92 END * - 53 - - 47 AS col0
----
NULL

query I rowsort
SELECT 10 * - + 9 * + 96
----
-8640

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT ALL 5 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL 5 / - 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT 16 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT 16 / - 35
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9205
SELECT ( - NULLIF ( - ( + + 95 ), MAX( 76 ) * + ( - - 65 ) + 59 + CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) ) ) * 97 + - 43 - - NULLIF ( - + COUNT( * ), + 56 ) DIV COUNT( * ) col0, 47 DIV COUNT( * ) col0
----
9171
47

skipif mysql # not compatible
query II rowsort label-9205
SELECT ( - NULLIF ( - ( + + 95 ), MAX ( 76 ) * + ( - - 65 ) + 59 + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) ) ) * 97 + - 43 - - NULLIF ( - + COUNT ( * ), + 56 ) / COUNT ( * ) col0, 47 / COUNT ( * ) col0
----
9171
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT COUNT( ALL - + 49 ) + + 25 * + + 36 AS col0
----
901

skipif mysql # not compatible
query I rowsort label-9206
SELECT COUNT ( ALL - + 49 ) + + 25 * + + 36 AS col0
----
901

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT - 65, COALESCE ( - 25, COALESCE ( + + COUNT( * ), - + ( - COUNT( * ) ) ), - 85 ) + - 40
----
-65
-65

skipif mysql # not compatible
query II rowsort label-9207
SELECT - 65, COALESCE ( - 25, COALESCE ( + + COUNT ( * ), - + ( - COUNT ( * ) ) ), - 85 ) + - 40
----
-65
-65

query I rowsort
SELECT 0 + + 23
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9209
SELECT ALL 21 AS col1, - COUNT( * )
----
21
-1

skipif mysql # not compatible
query II rowsort label-9209
SELECT ALL 21 AS col1, - COUNT ( * )
----
21
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT ( 68 ) + + 52 DIV - - 12 + - + 30
----
42

skipif mysql # not compatible
query I rowsort label-9210
SELECT ( 68 ) + + 52 / - - 12 + - + 30
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9211
SELECT 13 AS col0, + 70 * - 0 * + - SUM( DISTINCT - 96 )
----
13
0

skipif mysql # not compatible
query II rowsort label-9211
SELECT 13 AS col0, + 70 * - 0 * + - SUM ( DISTINCT - 96 )
----
13
0

query I rowsort
SELECT ALL + ( - - 86 ) + + ( + 37 ) AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT COUNT( * ) + + + 20 - 5
----
16

skipif mysql # not compatible
query I rowsort label-9213
SELECT COUNT ( * ) + + + 20 - 5
----
16

query II rowsort
SELECT ALL 32 AS col0, 45
----
32
45

query I rowsort
SELECT - 94 / - CASE + 26 WHEN - 17 / 49 THEN + 10 + 82 + 98 * + 0 * + - 98 ELSE NULL END + - - COALESCE ( + 44, - + 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL ( - + NULLIF ( - 1, MIN( ALL - + ( 43 ) ) ) ) + - 71 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL ( - + NULLIF ( - 1, MIN ( ALL - + ( 43 ) ) ) ) + - 71 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT ALL MAX( + ( - + 40 ) ) + - 79 AS col1, COUNT( + + 33 )
----
-119
1

skipif mysql # not compatible
query II rowsort label-9217
SELECT ALL MAX ( + ( - + 40 ) ) + - 79 AS col1, COUNT ( + + 33 )
----
-119
1

query I rowsort
SELECT ALL + ( + - 79 ) + - 95 AS col2
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT 60 * + + CAST( 71 AS SIGNED )
----
4260

skipif mysql # not compatible
query I rowsort label-9219
SELECT 60 * + + CAST ( 71 AS INTEGER )
----
4260

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT 66 DIV + - 75
----
0

skipif mysql # not compatible
query I rowsort label-9220
SELECT 66 / + - 75
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9221
SELECT DISTINCT - 34 DIV 45, - 57 AS col2
----
0
-57

skipif mysql # not compatible
query II rowsort label-9221
SELECT DISTINCT - 34 / 45, - 57 AS col2
----
0
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL - 24 - + MIN( + ( + 42 ) ) * + 46 AS col1
----
-1956

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL - 24 - + MIN ( + ( + 42 ) ) * + 46 AS col1
----
-1956

query II rowsort
SELECT ALL - + 70, + 99 AS col2
----
-70
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9224
SELECT ALL - - 53 AS col1, - 83 DIV 96
----
53
0

skipif mysql # not compatible
query II rowsort label-9224
SELECT ALL - - 53 AS col1, - 83 / 96
----
53
0

query II rowsort
SELECT + 0 AS col2, 31 + - 22 AS col1
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + 62 + - + 26 + - - COUNT( * ) * - 99
----
-63

skipif mysql # not compatible
query I rowsort label-9226
SELECT + 62 + - + 26 + - - COUNT ( * ) * - 99
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9227
SELECT + - 71 col0, - 88 DIV - COUNT( * ) + + 94 AS col0
----
-71
182

skipif mysql # not compatible
query II rowsort label-9227
SELECT + - 71 col0, - 88 / - COUNT ( * ) + + 94 AS col0
----
-71
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9228
SELECT + COUNT( * ) - 81 + + + 40 + - 58 * - - 51 + - 66 * + 40 + - 80 + 94 DIV - - SUM( + 5 ) + ( - 76 ) AS col2
----
-5776

skipif mysql # not compatible
query I rowsort label-9228
SELECT + COUNT ( * ) - 81 + + + 40 + - 58 * - - 51 + - 66 * + 40 + - 80 + 94 / - - SUM ( + 5 ) + ( - 76 ) AS col2
----
-5776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT DISTINCT - CAST( - 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - CAST ( - 22 AS INTEGER )
----
22

query I rowsort
SELECT 91 - 4 * - 4
----
107

query I rowsort
SELECT - 64 * + 54
----
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL - MAX( - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - MAX ( - 13 )
----
13

query I rowsort
SELECT + ( - 80 ) + 13 - 91 + - 3 col1
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9234
SELECT + + CAST( NULL AS SIGNED ) AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9234
SELECT + + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * )
----
NULL
-1

query II rowsort
SELECT + + 24, + 93 * + 10 AS col0
----
24
930

query II rowsort
SELECT DISTINCT - 68 col0, 84 AS col0
----
-68
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9237
SELECT 70 + + COUNT( ALL 35 ) - + - COUNT( * ) + - 83 * - CAST( - 6 AS SIGNED ) AS col2
----
-426

skipif mysql # not compatible
query I rowsort label-9237
SELECT 70 + + COUNT ( ALL 35 ) - + - COUNT ( * ) + - 83 * - CAST ( - 6 AS INTEGER ) AS col2
----
-426

query II rowsort
SELECT ALL + 14 AS col2, 48
----
14
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT DISTINCT - 98 + - ( COALESCE ( - 14, + 30, + COUNT( * ) * + 88 + + 40 + MIN( DISTINCT 14 ) - ( - + MIN( ALL - 73 ) ) ) )
----
-84

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT - 98 + - ( COALESCE ( - 14, + 30, + COUNT ( * ) * + 88 + + 40 + MIN ( DISTINCT 14 ) - ( - + MIN ( ALL - 73 ) ) ) )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9240
SELECT DISTINCT - + 60 + - - 45 + 65 + - 93 - + + 6 * - COUNT( * ) * - 49 + - CAST( NULL AS SIGNED ) * - 58 + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - + 60 + - - 45 + 65 + - 93 - + + 6 * - COUNT ( * ) * - 49 + - CAST ( NULL AS INTEGER ) * - 58 + + 46
----
NULL

query I rowsort
SELECT ALL + - 97 + - COALESCE ( - 70, NULLIF ( + 51, - 79 + - 69 / + 3 ) ) * - 90
----
-6397

query I rowsort
SELECT DISTINCT - - 34 * - 17 AS col1
----
-578

query I rowsort
SELECT 19 + 89 col2
----
108

query I rowsort
SELECT 90 * + - 24
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL MAX( DISTINCT + - 48 ) + + 6
----
-42

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL MAX ( DISTINCT + - 48 ) + + 6
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-9246
SELECT 9 DIV 99 AS col2, ( 74 ) AS col1
----
0
74

skipif mysql # not compatible
query II rowsort label-9246
SELECT 9 / 99 AS col2, ( 74 ) AS col1
----
0
74

query I rowsort
SELECT 45 + + 21 * + - 11 AS col2
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT MIN( + 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT MIN ( + 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL SUM( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL SUM ( 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT ALL 21 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL 21 / - 76
----
0

query I rowsort
SELECT ( + 66 ) * + 37 AS col2
----
2442

query I rowsort
SELECT ALL ( + - 97 ) + - 7
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT DISTINCT MAX( 84 ) DIV ( 98 ) - - + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT MAX ( 84 ) / ( 98 ) - - + 15 AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9254
SELECT 25 DIV + COUNT( * ) col1
----
25

skipif mysql # not compatible
query I rowsort label-9254
SELECT 25 / + COUNT ( * ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT COUNT( DISTINCT 29 ) * + MAX( - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9255
SELECT COUNT ( DISTINCT 29 ) * + MAX ( - 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL MAX( ALL - 20 ) * 90 * + 38
----
-68400

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL MAX ( ALL - 20 ) * 90 * + 38
----
-68400

query I rowsort
SELECT ( ( - 61 ) ) * + - 95
----
5795

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + MIN( ALL 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9258
SELECT + MIN ( ALL 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT COALESCE ( + SUM( DISTINCT + 68 ), - 84 * - 77 + 12 * + 81 ) AS col1, 69 AS col1
----
68
69

skipif mysql # not compatible
query II rowsort label-9259
SELECT COALESCE ( + SUM ( DISTINCT + 68 ), - 84 * - 77 + 12 * + 81 ) AS col1, 69 AS col1
----
68
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT 79 * + 39 * + COUNT( + 39 ) AS col1
----
3081

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT 79 * + 39 * + COUNT ( + 39 ) AS col1
----
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL 54 * - - MAX( 1 ) * + ( - 85 )
----
-4590

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL 54 * - - MAX ( 1 ) * + ( - 85 )
----
-4590

query I rowsort
SELECT + 94 + - 36 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT DISTINCT - 45 * + 24 * - - 82 * + MAX( - - 87 )
----
-7704720

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT - 45 * + 24 * - - 82 * + MAX ( - - 87 )
----
-7704720

query I rowsort
SELECT + + 6 * + 47
----
282

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT - - 1 * 20 AS col0, COUNT( * ) AS col1
----
20
1

skipif mysql # not compatible
query II rowsort label-9265
SELECT - - 1 * 20 AS col0, COUNT ( * ) AS col1
----
20
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9266
SELECT + - COALESCE ( 17, - 39, 63 DIV - 10 ) + - - 5 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9266
SELECT + - COALESCE ( 17, - 39, 63 / - 10 ) + - - 5 AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT ALL + + NULLIF ( - 42, + ( 78 ) - + + CAST( NULL AS SIGNED ) * 61 )
----
-42

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL + + NULLIF ( - 42, + ( 78 ) - + + CAST ( NULL AS INTEGER ) * 61 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT + CASE - + CASE MIN( DISTINCT - 89 ) WHEN 69 * - 35 THEN - 60 * - 80 * COUNT( ALL 33 ) ELSE - + 14 END WHEN + 42 + - 72 THEN NULL ELSE 57 + + + 74 END AS col1
----
131

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + CASE - + CASE MIN ( DISTINCT - 89 ) WHEN 69 * - 35 THEN - 60 * - 80 * COUNT ( ALL 33 ) ELSE - + 14 END WHEN + 42 + - 72 THEN NULL ELSE 57 + + + 74 END AS col1
----
131

query I rowsort
SELECT + 87 * - 37 + - + 19
----
-3238

query I rowsort
SELECT - 57 + 25
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL + - CASE - 59 WHEN - - ( + 50 ) THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL + - CASE - 59 WHEN - - ( + 50 ) THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 96 * - - 72 + - - 74
----
-6838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9273
SELECT ALL COUNT( ALL - - 50 ) DIV - ( + 17 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL COUNT ( ALL - - 50 ) / - ( + 17 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 27 + - 12 AS col1
----
15

query I rowsort
SELECT ALL + 69 * + 73
----
5037

query I rowsort
SELECT ALL + 94 + - 54
----
40

query I rowsort
SELECT + - 88 - + + 8
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9278
SELECT DISTINCT + - 32 * + + COUNT( * ), CAST( + 65 AS SIGNED ) * - + ( - 84 ) AS col1
----
-32
5460

skipif mysql # not compatible
query II rowsort label-9278
SELECT DISTINCT + - 32 * + + COUNT ( * ), CAST ( + 65 AS INTEGER ) * - + ( - 84 ) AS col1
----
-32
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + + 59 * - - ( + 65 ) * - 49 * + 40 - - - COUNT( * ) AS col0
----
-7516601

skipif mysql # not compatible
query I rowsort label-9279
SELECT + + 59 * - - ( + 65 ) * - 49 * + 40 - - - COUNT ( * ) AS col0
----
-7516601

query I rowsort
SELECT - 64 * + + 4
----
-256

query I rowsort
SELECT DISTINCT - 5 + 25 AS col1
----
20

query I rowsort
SELECT - 34 - - - 81
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT - COUNT( 36 ) + ( - - 56 )
----
55

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT - COUNT ( 36 ) + ( - - 56 )
----
55

query II rowsort
SELECT ALL + 24 + + ( + - 70 ) AS col2, - COALESCE ( 94, + 81 * + 42 + + 57 )
----
-46
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT - MIN( + - ( 9 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9285
SELECT - MIN ( + - ( 9 ) ) AS col1
----
9

query I rowsort
SELECT + 4 * + + 25
----
100

query I rowsort
SELECT ALL - 51 * - 55
----
2805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9288
SELECT - 74 + - 91 + - + COUNT( * ) * - CAST( + 9 AS SIGNED )
----
-156

skipif mysql # not compatible
query I rowsort label-9288
SELECT - 74 + - 91 + - + COUNT ( * ) * - CAST ( + 9 AS INTEGER )
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT - SUM( ALL + + 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9289
SELECT - SUM ( ALL + + 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9290
SELECT - 50 + + 24 DIV - 71 * CASE + 50 WHEN + AVG ( - 99 ) THEN NULL WHEN - 66 * - 30 THEN NULL WHEN - - 83 THEN NULL ELSE ( - + 16 ) * - COUNT( * ) END - 5 + + CAST( - - 29 AS SIGNED ) + 94 * + ( - 98 ) * + COUNT( 32 ) * 19 * + - 0 + - - 75 + COUNT( * ) * - + 23 * - - COUNT( * ) + - COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9290
SELECT - 50 + + 24 / - 71 * CASE + 50 WHEN + AVG ( - 99 ) THEN NULL WHEN - 66 * - 30 THEN NULL WHEN - - 83 THEN NULL ELSE ( - + 16 ) * - COUNT ( * ) END - 5 + + CAST ( - - 29 AS INTEGER ) + 94 * + ( - 98 ) * + COUNT ( 32 ) * 19 * + - 0 + - - 75 + COUNT ( * ) * - + 23 * - - COUNT ( * ) + - COUNT ( * ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT + 56 - - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9291
SELECT + 56 - - COUNT ( * ) AS col0
----
57

query I rowsort
SELECT - 68 * - + 56
----
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT - COALESCE ( COUNT( * ), NULLIF ( + 42, + 26 + 10 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9293
SELECT - COALESCE ( COUNT ( * ), NULLIF ( + 42, + 26 + 10 ) ) AS col2
----
-1

query I rowsort
SELECT ALL - 34 * 41 AS col2
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT + COUNT( * ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-9295
SELECT + COUNT ( * ) + 26
----
27

query I rowsort
SELECT DISTINCT ( + 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT DISTINCT + NULLIF ( + 4, + ( 24 ) + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + NULLIF ( + 4, + ( 24 ) + COUNT ( * ) )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9298
SELECT + CAST( NULL AS SIGNED ), - 2 * - + 34 AS col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-9298
SELECT + CAST ( NULL AS INTEGER ), - 2 * - + 34 AS col2
----
NULL
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT - + 36 DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9299
SELECT - + 36 / - 39 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT + + 30 DIV - 78 * + 5 + 29
----
29

skipif mysql # not compatible
query I rowsort label-9300
SELECT + + 30 / - 78 * + 5 + 29
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT ALL ( - - SUM( DISTINCT + 49 ) ) DIV - + MIN( DISTINCT 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL ( - - SUM ( DISTINCT + 49 ) ) / - + MIN ( DISTINCT 28 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT + 89 * + 7 + + COUNT( * )
----
624

skipif mysql # not compatible
query I rowsort label-9302
SELECT + 89 * + 7 + + COUNT ( * )
----
624

query II rowsort
SELECT ALL + 41 AS col2, 32 * 13
----
41
416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT - 31 DIV 27 - - COUNT( * ) + + - 92
----
-92

skipif mysql # not compatible
query I rowsort label-9304
SELECT - 31 / 27 - - COUNT ( * ) + + - 92
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9305
SELECT + 85, SUM( - 27 ) AS col0
----
85
-27

skipif mysql # not compatible
query II rowsort label-9305
SELECT + 85, SUM ( - 27 ) AS col0
----
85
-27

query I rowsort
SELECT ALL 97 * - 49 * - + 42 + - - 7 AS col0
----
199633

query I rowsort
SELECT ALL 15 * 38 * + - 75 * + - 43
----
1838250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9308
SELECT DISTINCT 55 * + CAST( + + 10 AS SIGNED ) + + 78, ( 40 ) AS col2
----
628
40

skipif mysql # not compatible
query II rowsort label-9308
SELECT DISTINCT 55 * + CAST ( + + 10 AS INTEGER ) + + 78, ( 40 ) AS col2
----
628
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT + MAX( ALL + - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-9309
SELECT + MAX ( ALL + - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL - 92 * 23 + + 8 + + + 53 - - ( + + NULLIF ( - COUNT( * ), + 40 ) )
----
-2056

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - 92 * 23 + + 8 + + + 53 - - ( + + NULLIF ( - COUNT ( * ), + 40 ) )
----
-2056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL + 77 * + CASE + + 78 WHEN + 10 THEN NULL WHEN 93 * CASE - 22 WHEN 70 * 59 THEN + 58 + + COUNT( * ) + + ( - ( + - 69 ) ) * + 70 / - 20 WHEN - COALESCE ( + 2, 13 - + COUNT( * ) + - 10 * - + 75 / - MIN( + 80 ) - + - 15, - + 29 * + ( - + ( - 97 ) ) + - 4 + - - 17 - - 85 ) THEN NULL END * + + 64 + 72 THEN - CAST( NULLIF ( - ( + SUM( DISTINCT - 65 ) ), - - 82 ) AS SIGNED ) WHEN - 91 THEN NULL END + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL + 77 * + CASE + + 78 WHEN + 10 THEN NULL WHEN 93 * CASE - 22 WHEN 70 * 59 THEN + 58 + + COUNT ( * ) + + ( - ( + - 69 ) ) * + 70 / - 20 WHEN - COALESCE ( + 2, 13 - + COUNT ( * ) + - 10 * - + 75 / - MIN ( + 80 ) - + - 15, - + 29 * + ( - + ( - 97 ) ) + - 4 + - - 17 - - 85 ) THEN NULL END * + + 64 + 72 THEN - CAST ( NULLIF ( - ( + SUM ( DISTINCT - 65 ) ), - - 82 ) AS INTEGER ) WHEN - 91 THEN NULL END + + 33
----
NULL

query I rowsort
SELECT ALL - 39 * 18 AS col0
----
-702

query I rowsort
SELECT + + 28 * 55
----
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL + 63 * COUNT( * ) * - 3 + - - SUM( + - 31 ) - + 16 AS col1
----
-236

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + 63 * COUNT ( * ) * - 3 + - - SUM ( + - 31 ) - + 16 AS col1
----
-236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9315
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT + - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9316
SELECT + - ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT - + 98 * 9 - - 3 + - 43 DIV - 72
----
-879

skipif mysql # not compatible
query I rowsort label-9317
SELECT - + 98 * 9 - - 3 + - 43 / - 72
----
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL + 84 * - + ( + 49 ) + 0 - - COUNT( * ) + + 22
----
-4093

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + 84 * - + ( + 49 ) + 0 - - COUNT ( * ) + + 22
----
-4093

query I rowsort
SELECT + 40 + - ( + + 52 ) AS col2
----
-12

query I rowsort
SELECT DISTINCT + 37 * - 35
----
-1295

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT CASE + 20 WHEN + 33 + 64 + - 61 + - 30 * - 93 THEN + MAX( + + 3 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT CASE + 20 WHEN + 33 + 64 + - 61 + - 30 * - 93 THEN + MAX ( + + 3 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 64 * + + 82 AS col1
----
-5248

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9323
SELECT - 10 + - + COUNT( * ) AS col0, + COUNT( * ) DIV - ( 41 ) + + + 33
----
-11
33

skipif mysql # not compatible
query II rowsort label-9323
SELECT - 10 + - + COUNT ( * ) AS col0, + COUNT ( * ) / - ( 41 ) + + + 33
----
-11
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT ALL - CAST( + + 2 AS SIGNED ) * 93 * 97 - + 98 + - + 46
----
-18186

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL - CAST ( + + 2 AS INTEGER ) * 93 * 97 - + 98 + - + 46
----
-18186

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT - COUNT( * ) * - 4
----
4

skipif mysql # not compatible
query I rowsort label-9325
SELECT - COUNT ( * ) * - 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT + 19 * MIN( - - 19 )
----
361

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT + 19 * MIN ( - - 19 )
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL - ( + - SUM( + + 89 ) ) * - - 58
----
5162

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL - ( + - SUM ( + + 89 ) ) * - - 58
----
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + 74 * + COALESCE ( - COUNT( * ), + SUM( ALL - 51 ) - - - 69 )
----
-74

skipif mysql # not compatible
query I rowsort label-9328
SELECT + 74 * + COALESCE ( - COUNT ( * ), + SUM ( ALL - 51 ) - - - 69 )
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9329
SELECT ALL ( ( CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL ( ( CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9330
SELECT DISTINCT ( - 92 ) AS col0, - CAST( + 7 AS SIGNED )
----
-92
-7

skipif mysql # not compatible
query II rowsort label-9330
SELECT DISTINCT ( - 92 ) AS col0, - CAST ( + 7 AS INTEGER )
----
-92
-7

query I rowsort
SELECT ALL ( + 43 ) AS col0
----
43

query I rowsort
SELECT - 44 * + + 31 AS col2
----
-1364

query I rowsort
SELECT DISTINCT ( + 51 )
----
51

query I rowsort
SELECT DISTINCT ( - - 23 )
----
23

query I rowsort
SELECT DISTINCT + 12 * ( 71 ) + - + 24 * + 8 + - 13 AS col2
----
647

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9336
SELECT - 33 - 98 DIV COUNT( DISTINCT + 65 ) - - - 10 + + COUNT( * ) DIV - - 99 AS col0, 29 * 8 - 9 - + + 2 AS col2
----
-141
221

skipif mysql # not compatible
query II rowsort label-9336
SELECT - 33 - 98 / COUNT ( DISTINCT + 65 ) - - - 10 + + COUNT ( * ) / - - 99 AS col0, 29 * 8 - 9 - + + 2 AS col2
----
-141
221

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT - COALESCE ( CASE - 3 WHEN - 30 THEN 4 WHEN 50 THEN NULL END, 22 - + SUM( ALL + - 76 ) ) * + 78 + + + 91 * 13 + - 35 AS col1
----
-6496

skipif mysql # not compatible
query I rowsort label-9337
SELECT - COALESCE ( CASE - 3 WHEN - 30 THEN 4 WHEN 50 THEN NULL END, 22 - + SUM ( ALL + - 76 ) ) * + 78 + + + 91 * 13 + - 35 AS col1
----
-6496

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT 97 + - 26 + COUNT( * ) * 90 AS col0
----
161

skipif mysql # not compatible
query I rowsort label-9338
SELECT 97 + - 26 + COUNT ( * ) * 90 AS col0
----
161

query I rowsort
SELECT ALL - - 66 + - 95 + + - ( - - 17 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ALL + COUNT( * ) * - + COUNT( ALL 43 ) + + 52 - - - 85 * + 72
----
-6069

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + COUNT ( * ) * - + COUNT ( ALL 43 ) + + 52 - - - 85 * + 72
----
-6069

query I rowsort
SELECT DISTINCT - 60 + 2 AS col2
----
-58

query II rowsort
SELECT DISTINCT + 2 + - 10 col2, 11 + + 64
----
-8
75

query I rowsort
SELECT ALL + 38 + - + 49
----
-11

query II rowsort
SELECT - 92 + + 28 AS col1, - 21
----
-64
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT - 5 / + + 66 + - CASE COALESCE ( - 75, + COUNT( * ) ) WHEN + CASE 96 WHEN + COUNT( 69 ) * - 61 + + 9 + - CASE 11 WHEN - 67 THEN NULL WHEN - COUNT( * ) * - 60 * - - 64 + + + COUNT( * ) + - SUM( - - 76 ) * - COUNT( * ) + - - 88 + - 92 * - 42 * CAST( + 29 AS SIGNED ) * - AVG ( ALL - - ( 78 ) ) THEN NULL ELSE + + 24 END THEN - + 37 * - CAST( - 93 AS SIGNED ) ELSE NULL END * + COUNT( * ) THEN - - 47 / - 97 * + CAST( NULL AS SIGNED ) ELSE NULL END * - 20 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT - 5 / + + 66 + - CASE COALESCE ( - 75, + COUNT ( * ) ) WHEN + CASE 96 WHEN + COUNT ( 69 ) * - 61 + + 9 + - CASE 11 WHEN - 67 THEN NULL WHEN - COUNT ( * ) * - 60 * - - 64 + + + COUNT ( * ) + - SUM ( - - 76 ) * - COUNT ( * ) + - - 88 + - 92 * - 42 * CAST ( + 29 AS INTEGER ) * - AVG ( ALL - - ( 78 ) ) THEN NULL ELSE + + 24 END THEN - + 37 * - CAST ( - 93 AS INTEGER ) ELSE NULL END * + COUNT ( * ) THEN - - 47 / - 97 * + CAST ( NULL AS INTEGER ) ELSE NULL END * - 20 * - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9346
SELECT DISTINCT + COUNT( * ) DIV - + 50 AS col1, - ( + - CAST( NULL AS SIGNED ) ) DIV - 56 DIV - - COUNT( * ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9346
SELECT DISTINCT + COUNT ( * ) / - + 50 AS col1, - ( + - CAST ( NULL AS INTEGER ) ) / - 56 / - - COUNT ( * ) col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT - 58 * + - MIN( + 35 ) * - 60
----
-121800

skipif mysql # not compatible
query I rowsort label-9347
SELECT - 58 * + - MIN ( + 35 ) * - 60
----
-121800

query I rowsort
SELECT - 32 * 9 col2
----
-288

query II rowsort
SELECT ( - + 46 ) AS col0, + 56
----
-46
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT - - CAST( - - 83 AS SIGNED ) / + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + 34 - - 67 + + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT - - CAST ( - - 83 AS INTEGER ) / + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 34 - - 67 + + 53 AS col1
----
NULL

query I rowsort
SELECT ALL + 86 + - 87 + - 10 AS col2
----
-11

query I rowsort
SELECT ALL - - NULLIF ( + 71, + 69 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9353
SELECT COUNT( * ) * - CAST( + 68 AS SIGNED ) * 24 DIV 82 + 92 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9353
SELECT COUNT ( * ) * - CAST ( + 68 AS INTEGER ) * 24 / 82 + 92 AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9354
SELECT DISTINCT SUM( + 23 ) - ( - 53 ) + - + 83 + + 61 DIV - ( - - 18 )
----
-10

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT SUM ( + 23 ) - ( - 53 ) + - + 83 + + 61 / - ( - - 18 )
----
-10

query I rowsort
SELECT ALL 40 - - - 69 AS col1
----
-29

query II rowsort
SELECT ALL - 73 AS col1, 35 AS col2
----
-73
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT COALESCE ( - + CAST( - + 68 AS SIGNED ), + NULLIF ( + 14, - AVG ( DISTINCT 88 ) * + 86 ) * + COUNT( * ) * + 70 + + + 17, - 52 ) - + - ( - - 46 ) * - 54 AS col2
----
-2416

skipif mysql # not compatible
query I rowsort label-9357
SELECT COALESCE ( - + CAST ( - + 68 AS INTEGER ), + NULLIF ( + 14, - AVG ( DISTINCT 88 ) * + 86 ) * + COUNT ( * ) * + 70 + + + 17, - 52 ) - + - ( - - 46 ) * - 54 AS col2
----
-2416

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ( - COUNT( * ) ) * - 93
----
93

skipif mysql # not compatible
query I rowsort label-9358
SELECT ( - COUNT ( * ) ) * - 93
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT ( - 86 ) / - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT ( - 86 ) / - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 88 * - 82
----
-7216

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT MAX( DISTINCT - 87 ) - - 80 + 97
----
90

skipif mysql # not compatible
query I rowsort label-9361
SELECT MAX ( DISTINCT - 87 ) - - 80 + 97
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL 3 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL 3 * - COUNT ( * )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT 76 DIV + 29
----
2

skipif mysql # not compatible
query I rowsort label-9363
SELECT 76 / + 29
----
2

query I rowsort
SELECT DISTINCT 20 * + 7
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9365
SELECT COUNT( ALL - 22 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT COUNT ( ALL - 22 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 96 * - 10 AS col1
----
-960

query I rowsort
SELECT ALL - 71 + - 45
----
-116

onlyif mysql # aggregate syntax: 
query II rowsort label-9368
SELECT 59 + MAX( 2 ) AS col0, - 32 * - COUNT( * ) AS col2
----
61
32

skipif mysql # not compatible
query II rowsort label-9368
SELECT 59 + MAX ( 2 ) AS col0, - 32 * - COUNT ( * ) AS col2
----
61
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9369
SELECT 66 DIV - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9369
SELECT 66 / - COUNT ( * )
----
-66

query I rowsort
SELECT 4 - + 39 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL 19 + COUNT( * ) * 16
----
35

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL 19 + COUNT ( * ) * 16
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL - 26 + COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - 26 + COUNT ( * ) AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9373
SELECT ALL + 72 + + 25 / SUM( + 96 + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + 72 + + 25 / SUM ( + 96 + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT 94 + + MIN( ALL 88 + - 92 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9374
SELECT 94 + + MIN ( ALL 88 + - 92 ) AS col1
----
90

query I rowsort
SELECT 1 * 31 AS col1
----
31

query I rowsort
SELECT 4 + 72 * - COALESCE ( 1, + 42 + - 43 ) AS col1
----
-68

query I rowsort
SELECT DISTINCT - NULLIF ( 37, 32 + - 25 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT ALL - 27 + - CASE + 35 WHEN CAST( 77 AS SIGNED ) + 58 THEN + 10 END * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL - 27 + - CASE + 35 WHEN CAST ( 77 AS INTEGER ) + 58 THEN + 10 END * - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL + CASE + NULLIF ( - 31, CAST( COUNT( * ) AS SIGNED ) ) WHEN 23 THEN + 49 * - 21 ELSE - 73 * 92 - 96 END * 14 AS col1
----
-95368

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + CASE + NULLIF ( - 31, CAST ( COUNT ( * ) AS INTEGER ) ) WHEN 23 THEN + 49 * - 21 ELSE - 73 * 92 - 96 END * 14 AS col1
----
-95368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT DISTINCT + 54 * + CASE + COUNT( ALL - 31 ) / 30 WHEN - ( + 97 ) / AVG ( ALL + 99 ) + 18 THEN + 11 * + 85 ELSE - ( + CAST( NULL AS SIGNED ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT + 54 * + CASE + COUNT ( ALL - 31 ) / 30 WHEN - ( + 97 ) / AVG ( ALL + 99 ) + 18 THEN + 11 * + 85 ELSE - ( + CAST ( NULL AS INTEGER ) ) END col0
----
NULL

query I rowsort
SELECT ALL + 37 * - 57 AS col2
----
-2109

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT - COUNT( ALL 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - COUNT ( ALL 25 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT - 9 - + CAST( NULL AS SIGNED ) * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT - 9 - + CAST ( NULL AS INTEGER ) * + 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT 29 * + CASE + ( + CAST( NULL AS SIGNED ) ) WHEN 50 THEN NULL ELSE - COUNT( * ) END
----
-29

skipif mysql # not compatible
query I rowsort label-9384
SELECT 29 * + CASE + ( + CAST ( NULL AS INTEGER ) ) WHEN 50 THEN NULL ELSE - COUNT ( * ) END
----
-29

query I rowsort
SELECT ALL - ( + 20 ) * + 83 AS col0
----
-1660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL 23 - AVG ( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL 23 - AVG ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT MIN( 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9387
SELECT MIN ( 89 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT 19 DIV + 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9388
SELECT 19 / + 34 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT 54 * - MAX( + 30 * 99 )
----
-160380

skipif mysql # not compatible
query I rowsort label-9389
SELECT 54 * - MAX ( + 30 * 99 )
----
-160380

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT ALL - ( 24 ) DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - ( 24 ) / 57
----
0

query I rowsort
SELECT 60 - - 19 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT ALL 87 DIV + 11
----
7

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL 87 / + 11
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9393
SELECT - 74 * - CASE 80 DIV 97 WHEN + 24 * 89 THEN NULL ELSE 17 * + 64 + - 98 DIV 92 END + + 46 AS col2
----
80484

skipif mysql # not compatible
query I rowsort label-9393
SELECT - 74 * - CASE 80 / 97 WHEN + 24 * 89 THEN NULL ELSE 17 * + 64 + - 98 / 92 END + + 46 AS col2
----
80484

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT COUNT( * ) * + 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9394
SELECT COUNT ( * ) * + 42 AS col2
----
42

query I rowsort
SELECT DISTINCT - ( + 31 ) AS col1
----
-31

query I rowsort
SELECT DISTINCT 80 * 29
----
2320

query I rowsort
SELECT DISTINCT - ( 29 ) AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9398
SELECT CASE 9 WHEN + 93 THEN 22 + CAST( NULL AS SIGNED ) ELSE - 17 + + 27 END * + 7
----
70

skipif mysql # not compatible
query I rowsort label-9398
SELECT CASE 9 WHEN + 93 THEN 22 + CAST ( NULL AS INTEGER ) ELSE - 17 + + 27 END * + 7
----
70

query I rowsort
SELECT ALL 15 * 91 col0
----
1365

query I rowsort
SELECT ALL + 29 * 91 AS col2
----
2639

query I rowsort
SELECT ALL COALESCE ( - 7, 63, - 80 + 16 * 78, + 82 ) AS col1
----
-7

query I rowsort
SELECT DISTINCT 62 * 39
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT - SUM( COALESCE ( + 12, 8 ) ) * 3
----
-36

skipif mysql # not compatible
query I rowsort label-9403
SELECT - SUM ( COALESCE ( + 12, 8 ) ) * 3
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + COUNT( * ) * - 12 + + 55 * - 78 col0
----
-4302

skipif mysql # not compatible
query I rowsort label-9404
SELECT + COUNT ( * ) * - 12 + + 55 * - 78 col0
----
-4302

query I rowsort
SELECT ALL 79 + 28
----
107

query I rowsort
SELECT ALL 55 + - 16 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT + COUNT( - 15 ) + - 97 * + CASE + 8 WHEN - COALESCE ( 7, + 89, - AVG ( 72 ) + COUNT( * ), COALESCE ( - 37, 43 * 26 ) ) THEN COUNT( * ) WHEN - 0 * - 50 THEN NULL ELSE COUNT( * ) + 83 END AS col0
----
-8147

skipif mysql # not compatible
query I rowsort label-9407
SELECT + COUNT ( - 15 ) + - 97 * + CASE + 8 WHEN - COALESCE ( 7, + 89, - AVG ( 72 ) + COUNT ( * ), COALESCE ( - 37, 43 * 26 ) ) THEN COUNT ( * ) WHEN - 0 * - 50 THEN NULL ELSE COUNT ( * ) + 83 END AS col0
----
-8147

query I rowsort
SELECT + 38 * 6
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT 64 + - COUNT( * ) * - 28 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT 64 + - COUNT ( * ) * - 28 AS col1
----
92

query I rowsort
SELECT DISTINCT + 35 + - 71 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT ALL - ( 48 ) + - 10 / + CASE + ( - 60 ) WHEN - 6 THEN CAST( 19 AS SIGNED ) WHEN - 10 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL - ( 48 ) + - 10 / + CASE + ( - 60 ) WHEN - 6 THEN CAST ( 19 AS INTEGER ) WHEN - 10 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 51 * 36 AS col2
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + + COUNT( ALL - 10 ) + - ( - 2 )
----
3

skipif mysql # not compatible
query I rowsort label-9413
SELECT + + COUNT ( ALL - 10 ) + - ( - 2 )
----
3

query I rowsort
SELECT DISTINCT - 80 + ( 33 ) * + ( 21 )
----
613

query I rowsort
SELECT DISTINCT 39 * + 44 AS col1
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT - 78 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-9416
SELECT - 78 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL COALESCE ( + 12, 65 + 68, NULLIF ( + 23, + COUNT( * ) ) ) + - 55
----
-43

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL COALESCE ( + 12, 65 + 68, NULLIF ( + 23, + COUNT ( * ) ) ) + - 55
----
-43

query I rowsort
SELECT + + 47 * 14 AS col1
----
658

query I rowsort
SELECT - + NULLIF ( 70, - 63 + + AVG ( + 12 + 59 ) * - 55 ) * 9 AS col0
----
-630

query I rowsort
SELECT + - 30 + - ( - 85 )
----
55

query I rowsort
SELECT + - 72 - 31
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL + MAX( DISTINCT 4 ) * + ( - 45 )
----
-180

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + MAX ( DISTINCT 4 ) * + ( - 45 )
----
-180

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9423
SELECT - 10 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT - 10 + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT - + 91 DIV 89 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9424
SELECT - + 91 / 89 AS col2
----
-1

query I rowsort
SELECT + 54 * - 24 col1
----
-1296

onlyif mysql # DIV for integer division: 
query I rowsort label-9426
SELECT ALL - 69 DIV 59
----
-1

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL - 69 / 59
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT DISTINCT 10 * 71 - + CAST( - CAST( 99 AS SIGNED ) AS SIGNED ) col2
----
809

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT 10 * 71 - + CAST ( - CAST ( 99 AS INTEGER ) AS INTEGER ) col2
----
809

query I rowsort
SELECT + + 45 * ( 1 ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT DISTINCT + MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT COALESCE ( COUNT( DISTINCT 56 ), - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-9430
SELECT COALESCE ( COUNT ( DISTINCT 56 ), - 81 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9431
SELECT + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) + 52 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) + 52 * 70
----
NULL

query I rowsort
SELECT - 51 * - 50 * + 37 AS col0
----
94350

query I rowsort
SELECT - 57 + 57 AS col1
----
0

query I rowsort
SELECT ALL + NULLIF ( - ( - 97 ), - 82 ) AS col1
----
97

query I rowsort
SELECT DISTINCT - 88 * + 77 AS col0
----
-6776

query I rowsort
SELECT ALL + ( 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL 38 * - 56 + COUNT( * )
----
-2127

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL 38 * - 56 + COUNT ( * )
----
-2127

query I rowsort
SELECT ALL - 98 * + + 58
----
-5684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9439
SELECT ALL + CASE - 7 WHEN - CAST( + 58 AS SIGNED ) - COUNT( * ) THEN + 78 ELSE + 31 * + 71 END AS col1
----
2201

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + CASE - 7 WHEN - CAST ( + 58 AS INTEGER ) - COUNT ( * ) THEN + 78 ELSE + 31 * + 71 END AS col1
----
2201

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT - 68 DIV + 30
----
-2

skipif mysql # not compatible
query I rowsort label-9440
SELECT - 68 / + 30
----
-2

query I rowsort
SELECT - 74 * + 97 AS col2
----
-7178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT COALESCE ( + 92, - CASE 29 WHEN AVG ( ALL + ( 36 ) ) - COUNT( * ) THEN - 98 * 67 WHEN 3 + 1 THEN NULL END + CAST( NULL AS SIGNED ), 32 ) * - 57 - 2 AS col1
----
-5246

skipif mysql # not compatible
query I rowsort label-9442
SELECT COALESCE ( + 92, - CASE 29 WHEN AVG ( ALL + ( 36 ) ) - COUNT ( * ) THEN - 98 * 67 WHEN 3 + 1 THEN NULL END + CAST ( NULL AS INTEGER ), 32 ) * - 57 - 2 AS col1
----
-5246

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT MAX( DISTINCT 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9443
SELECT MAX ( DISTINCT 41 ) AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT + CAST( + 2 AS SIGNED ) * - 62 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-9444
SELECT + CAST ( + 2 AS INTEGER ) * - 62 AS col0
----
-124

query I rowsort
SELECT - CASE WHEN 95 < ( 94 ) THEN 30 * - 38 END - + 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT ALL CAST( + 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL CAST ( + 55 AS INTEGER )
----
55

query I rowsort
SELECT ALL 87 * - CASE + 12 WHEN + 70 + + 19 THEN 3 END + 26 * - 77 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9448
SELECT - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 8 + + 43
----
35

query I rowsort
SELECT ALL 26 + + 22
----
48

query I rowsort
SELECT + 36 - + 78 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9452
SELECT DISTINCT - 73 * COUNT( ALL - 89 ) - - ( 17 ) DIV + NULLIF ( 2 * 81, ( - 2 ) + - 42 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT - 73 * COUNT ( ALL - 89 ) - - ( 17 ) / + NULLIF ( 2 * 81, ( - 2 ) + - 42 ) AS col1
----
-73

query I rowsort
SELECT DISTINCT + + 46 + 28 + - NULLIF ( 51, 5 ) col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT + MAX( DISTINCT 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9454
SELECT + MAX ( DISTINCT 8 )
----
8

query I rowsort
SELECT ALL 28 * - CASE ( - 39 ) WHEN 85 / + 15 THEN + 73 END AS col1
----
NULL

query I rowsort
SELECT ALL - 81 - - ( + COALESCE ( + ( 91 ), ( - 24 ) * + 65 ) ) + - 85 * + 22
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT - - 76 + + 72 * - SUM( DISTINCT 64 * - 69 ) AS col2
----
318028

skipif mysql # not compatible
query I rowsort label-9457
SELECT - - 76 + + 72 * - SUM ( DISTINCT 64 * - 69 ) AS col2
----
318028

query I rowsort
SELECT - + 1 + 90 + 33
----
122

query I rowsort
SELECT + ( + ( 80 ) ) * + 91
----
7280

query I rowsort
SELECT DISTINCT ( + ( - 4 ) )
----
-4

query I rowsort
SELECT + - 26 + 79
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT DISTINCT - ( - - ( ( - CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - ( - - ( ( - CAST ( NULL AS INTEGER ) ) ) )
----
NULL

query I rowsort
SELECT ALL 82 - - 31 AS col2
----
113

query I rowsort
SELECT + 52 * 51
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + ( COUNT( * ) ) + + ( + 17 + 59 )
----
77

skipif mysql # not compatible
query I rowsort label-9465
SELECT + ( COUNT ( * ) ) + + ( + 17 + 59 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9466
SELECT DISTINCT COALESCE ( 82, + COUNT( * ) ) DIV + 40
----
2

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT COALESCE ( 82, + COUNT ( * ) ) / + 40
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9467
SELECT + - MAX( ALL - 39 ) + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT + - MAX ( ALL - 39 ) + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - 74 * + 49 * 49 + + 20
----
-177654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT + + ( - CAST( NULL AS SIGNED ) ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT + + ( - CAST ( NULL AS INTEGER ) ) * - 16
----
NULL

query I rowsort
SELECT ALL 57 * + 83
----
4731

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9471
SELECT + COUNT( * ) + - 73 + 53 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT + COUNT ( * ) + - 73 + 53 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 99 * + 60
----
5940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT 83 * + COALESCE ( + CAST( NULL AS SIGNED ), 78 + + COUNT( * ) ) + - 33 AS col2
----
6524

skipif mysql # not compatible
query I rowsort label-9473
SELECT 83 * + COALESCE ( + CAST ( NULL AS INTEGER ), 78 + + COUNT ( * ) ) + - 33 AS col2
----
6524

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT - 28 DIV - + 20 + - 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9474
SELECT - 28 / - + 20 + - 56 AS col2
----
-55

query I rowsort
SELECT - AVG ( - CASE WHEN NULL > COALESCE ( 25, 63 * 21 ) THEN 3 END ) * - 89
----
NULL

query I rowsort
SELECT + 28 * - 62
----
-1736

query I rowsort
SELECT DISTINCT 51 * 17
----
867

query II rowsort
SELECT ALL + 89, - 30 AS col0
----
89
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL - SUM( 90 ) + + 75
----
-15

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - SUM ( 90 ) + + 75
----
-15

query I rowsort
SELECT ( - 68 ) * + 72 + 29 AS col1
----
-4867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT ALL 4 + + - CAST( + 24 AS SIGNED ) + 88 col0
----
68

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL 4 + + - CAST ( + 24 AS INTEGER ) + 88 col0
----
68

query I rowsort
SELECT 40 + 7
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9483
SELECT 81 AS col0, - 8 + + CAST( + 62 AS SIGNED ) + + 27 * + 32
----
81
918

skipif mysql # not compatible
query II rowsort label-9483
SELECT 81 AS col0, - 8 + + CAST ( + 62 AS INTEGER ) + + 27 * + 32
----
81
918

onlyif mysql # DIV for integer division: 
query II rowsort label-9484
SELECT + 80 col0, + 13 DIV + 78 AS col1
----
80
0

skipif mysql # not compatible
query II rowsort label-9484
SELECT + 80 col0, + 13 / + 78 AS col1
----
80
0

query I rowsort
SELECT DISTINCT - COALESCE ( + - 53, - + ( - 30 ) ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT 95 - 19 + + + 63 * COUNT( * ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-9486
SELECT 95 - 19 + + + 63 * COUNT ( * ) AS col1
----
139

query I rowsort
SELECT ALL - 67 * 50 AS col2
----
-3350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9488
SELECT + COUNT( * ) * 79 + + + ( NULLIF ( - 8, CAST( NULL AS SIGNED ) ) ) * 19
----
-73

skipif mysql # not compatible
query I rowsort label-9488
SELECT + COUNT ( * ) * 79 + + + ( NULLIF ( - 8, CAST ( NULL AS INTEGER ) ) ) * 19
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT COUNT( * ) + 72 + + 70 - 64 * 9
----
-433

skipif mysql # not compatible
query I rowsort label-9489
SELECT COUNT ( * ) + 72 + + 70 - 64 * 9
----
-433

onlyif mysql # aggregate syntax: 
query II rowsort label-9490
SELECT + 91 AS col1, + COUNT( * )
----
91
1

skipif mysql # not compatible
query II rowsort label-9490
SELECT + 91 AS col1, + COUNT ( * )
----
91
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9491
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL - 40 + - - 3 AS col1
----
-37

query I rowsort
SELECT 85 + - 55
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT ALL - 67 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - 67 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 94 + + 40 AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-9496
SELECT ALL 2 AS col0, 62 * - 62 * + COUNT( * ) AS col1
----
2
-3844

skipif mysql # not compatible
query II rowsort label-9496
SELECT ALL 2 AS col0, 62 * - 62 * + COUNT ( * ) AS col1
----
2
-3844

query II rowsort
SELECT ALL - 69 col2, 69 AS col0
----
-69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT + 33 + + COUNT( * ) * + + 8 + - 92 * 21 AS col2
----
-1891

skipif mysql # not compatible
query I rowsort label-9498
SELECT + 33 + + COUNT ( * ) * + + 8 + - 92 * 21 AS col2
----
-1891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT ALL + 85 - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + 85 - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 42 * - 9 AS col1
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ( - NULLIF ( - + 28, + 52 ) ) + COUNT( * ) * ( - 92 * + 29 ) AS col2
----
-2640

skipif mysql # not compatible
query I rowsort label-9501
SELECT ( - NULLIF ( - + 28, + 52 ) ) + COUNT ( * ) * ( - 92 * + 29 ) AS col2
----
-2640

query II rowsort
SELECT - 39 AS col1, 16 AS col1
----
-39
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT 35 + - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9503
SELECT 35 + - COUNT ( * )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT ALL + + 44 DIV - + 73
----
0

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL + + 44 / - + 73
----
0

query I rowsort
SELECT + 9 * 89
----
801

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT DISTINCT + - 19 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + - 19 / - 56
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9507
SELECT DISTINCT + CAST( NULLIF ( - 4, 6 * + 14 ) AS SIGNED ) DIV - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT + CAST ( NULLIF ( - 4, 6 * + 14 ) AS INTEGER ) / - 25 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9508
SELECT NULLIF ( + 75, - - 77 * + COUNT( * ) - + 37 ) DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-9508
SELECT NULLIF ( + 75, - - 77 * + COUNT ( * ) - + 37 ) / + 48
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT ALL + + 52 / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + + 52 / - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT CAST( + 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-9510
SELECT CAST ( + 34 AS INTEGER )
----
34

query I rowsort
SELECT ALL 89 * + + 91
----
8099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT ALL + CAST( - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + CAST ( - 97 AS INTEGER )
----
-97

query I rowsort
SELECT - - 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT - 16 - - SUM( ALL + 47 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9514
SELECT - 16 - - SUM ( ALL + 47 ) AS col0
----
31

query I rowsort
SELECT 84 * - - CASE + 67 WHEN 59 + + 84 / 1 THEN NULL ELSE + 50 + - 68 END AS col2
----
-1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL 55 * CAST( NULL AS SIGNED ) + 26 + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 55 * CAST ( NULL AS INTEGER ) + 26 + + 89 AS col1
----
NULL

query I rowsort
SELECT + ( 47 ) * - 4
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT 86 - + COUNT( * ) col0
----
85

skipif mysql # not compatible
query I rowsort label-9518
SELECT 86 - + COUNT ( * ) col0
----
85

query II rowsort
SELECT ALL 19 AS col2, + ( + ( 63 ) ) * 96
----
19
6048

query I rowsort
SELECT ALL + 15 * - 33
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL 40 + + + 60 + COUNT( * ) * 1 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL 40 + + + 60 + COUNT ( * ) * 1 AS col1
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-9522
SELECT DISTINCT 57 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT 57 / - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + 74 * + - 7 - + - 72 + - COUNT( * ) + - 40
----
-487

skipif mysql # not compatible
query I rowsort label-9523
SELECT + 74 * + - 7 - + - 72 + - COUNT ( * ) + - 40
----
-487

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL 56 * COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL 56 * COUNT ( * )
----
56

query I rowsort
SELECT ALL 33 * - 73 * - - 98
----
-236082

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT MAX( + 71 ) + 15 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT MAX ( + 71 ) + 15 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9527
SELECT ALL 50 + + 6 + + - 48 - COUNT( * ) DIV 54 * - COALESCE ( - 29, MAX( ( 60 ) ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 50 + + 6 + + - 48 - COUNT ( * ) / 54 * - COALESCE ( - 29, MAX ( ( 60 ) ) ) AS col0
----
8

query I rowsort
SELECT DISTINCT 62 * - - ( + 95 )
----
5890

query I rowsort
SELECT ALL + 8 + + 2 * + 40 - + 33 * 67
----
-2123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9530
SELECT DISTINCT + 99 DIV + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + 99 / + COUNT ( * )
----
99

query I rowsort
SELECT DISTINCT 55 - + 83 + 57
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT ALL - MAX( + + 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL - MAX ( + + 18 ) AS col1
----
-18

query I rowsort
SELECT ALL + 90 * 64 - + 51 - 15
----
5694

query I rowsort
SELECT ALL + + 16 - + 46 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + COUNT( * ) * - - COUNT( * ) * + 32 + 23 + 16 * 35 AS col0
----
615

skipif mysql # not compatible
query I rowsort label-9535
SELECT + COUNT ( * ) * - - COUNT ( * ) * + 32 + 23 + 16 * 35 AS col0
----
615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9536
SELECT 83 - COUNT( * ), + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) / - 65 AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-9536
SELECT 83 - COUNT ( * ), + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) / - 65 AS col0
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL + COUNT( * ) * + + SUM( - ( 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + COUNT ( * ) * + + SUM ( - ( 56 ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT MIN( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT MIN ( DISTINCT 78 )
----
78

query I rowsort
SELECT 60 * + 0
----
0

query I rowsort
SELECT DISTINCT + 96 * - - 9
----
864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT DISTINCT CAST( - 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT CAST ( - 82 AS INTEGER )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT 22 * + - COALESCE ( COUNT( - - 93 ), 61, - 45 * - 72 ) * - 19 AS col1
----
418

skipif mysql # not compatible
query I rowsort label-9542
SELECT 22 * + - COALESCE ( COUNT ( - - 93 ), 61, - 45 * - 72 ) * - 19 AS col1
----
418

query II rowsort
SELECT 39 * 73 AS col1, 13 AS col0
----
2847
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT - COUNT( * ) + - 5 * CAST( + 97 AS SIGNED ) * COUNT( * )
----
-486

skipif mysql # not compatible
query I rowsort label-9544
SELECT - COUNT ( * ) + - 5 * CAST ( + 97 AS INTEGER ) * COUNT ( * )
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT COUNT( ALL - 39 ) - 83 + 84
----
2

skipif mysql # not compatible
query I rowsort label-9545
SELECT COUNT ( ALL - 39 ) - 83 + 84
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL + ( - 96 ) * COUNT( * ) * ( 68 ) * - NULLIF ( - 69, + 7 ) - 34 * COUNT( * )
----
-450466

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + ( - 96 ) * COUNT ( * ) * ( 68 ) * - NULLIF ( - 69, + 7 ) - 34 * COUNT ( * )
----
-450466

query I rowsort
SELECT ALL + 86 + + 51
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + 84 + 43 + + - COUNT( DISTINCT 64 ) + - COALESCE ( + 16, CASE + 97 WHEN - 89 THEN 1 * COUNT( * ) ELSE 57 * + 3 END, 74 ) * - 64 AS col0
----
1150

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + 84 + 43 + + - COUNT ( DISTINCT 64 ) + - COALESCE ( + 16, CASE + 97 WHEN - 89 THEN 1 * COUNT ( * ) ELSE 57 * + 3 END, 74 ) * - 64 AS col0
----
1150

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT ALL 16 + - 97 + - - 8 col0, NULLIF ( + COUNT( * ), + 80 ) AS col0
----
-73
1

skipif mysql # not compatible
query II rowsort label-9549
SELECT ALL 16 + - 97 + - - 8 col0, NULLIF ( + COUNT ( * ), + 80 ) AS col0
----
-73
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - COUNT( * ) * 75
----
-75

skipif mysql # not compatible
query I rowsort label-9550
SELECT - COUNT ( * ) * 75
----
-75

query I rowsort
SELECT DISTINCT + 2 + - + 46 AS col0
----
-44

query I rowsort
SELECT ALL - 39 + - 48 * - - 55 * 31 * - + 70
----
5728761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT ALL COALESCE ( + + SUM( DISTINCT - + 72 ), - 85 * + 84 - - 80 ) * + 69 + 59 DIV ( + COUNT( * ) * - 76 ) AS col1
----
-4968

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL COALESCE ( + + SUM ( DISTINCT - + 72 ), - 85 * + 84 - - 80 ) * + 69 + 59 / ( + COUNT ( * ) * - 76 ) AS col1
----
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT + MIN( ALL + + 46 ) * - 85 * - ( COUNT( * ) ) + ( 21 )
----
3931

skipif mysql # not compatible
query I rowsort label-9554
SELECT + MIN ( ALL + + 46 ) * - 85 * - ( COUNT ( * ) ) + ( 21 )
----
3931

query I rowsort
SELECT DISTINCT + 66 * + 50 AS col2
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT SUM( ALL + + 2 ) * 93 + + MAX( DISTINCT + CASE - 73 WHEN + 95 * - 12 THEN NULL ELSE 45 * + 27 END ) AS col2
----
1401

skipif mysql # not compatible
query I rowsort label-9556
SELECT SUM ( ALL + + 2 ) * 93 + + MAX ( DISTINCT + CASE - 73 WHEN + 95 * - 12 THEN NULL ELSE 45 * + 27 END ) AS col2
----
1401

query I rowsort
SELECT ALL 7 * + 59 * + - 27 - - 79
----
-11072

query I rowsort
SELECT NULLIF ( + 73, - ( + 80 ) ) AS col2
----
73

query I rowsort
SELECT + 32 + - 43 + 99 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9560
SELECT + CAST( COUNT( * ) AS SIGNED ) * + 40 DIV COUNT( * ) * - 21 * 16
----
-13440

skipif mysql # not compatible
query I rowsort label-9560
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + 40 / COUNT ( * ) * - 21 * 16
----
-13440

query I rowsort
SELECT ALL NULLIF ( + + 99, 4 / 22 * - - 28 - + 14 / + 45 + 65 * + 85 ) * + 46
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT + 31 * - 84 + - COUNT( * ) - + 10
----
-2615

skipif mysql # not compatible
query I rowsort label-9562
SELECT + 31 * - 84 + - COUNT ( * ) - + 10
----
-2615

query I rowsort
SELECT ALL 44 * - + 52 * 3 - - + 48
----
-6816

query I rowsort
SELECT 13 * - 6 + - - NULLIF ( 33, - 93 ) + 80
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT - MIN( DISTINCT 36 ) + 62
----
26

skipif mysql # not compatible
query I rowsort label-9565
SELECT - MIN ( DISTINCT 36 ) + 62
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT ALL + + COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + + COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + ( 44 ) * 74 + - + 74 * - 4 + 31
----
3583

query I rowsort
SELECT + + 83 - + 85 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT + - ( + 7 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT + - ( + 7 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + - 21, - ( - 20 ) - + 71 * + 10 + + 15 AS col2
----
-21
-675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9572
SELECT + 91 DIV + - MAX( 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-9572
SELECT + 91 / + - MAX ( 73 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL + COUNT( * ) * - + 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + COUNT ( * ) * - + 52 AS col0
----
-52

query I rowsort
SELECT + NULLIF ( 47, 41 * + 50 + - - 21 ) + + 96
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT ALL - 53 DIV - 61 + + + 47 + + + 67 col2
----
114

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - 53 / - 61 + + + 47 + + + 67 col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT + COUNT( * ) + 18 * - 99 col2
----
-1781

skipif mysql # not compatible
query I rowsort label-9576
SELECT + COUNT ( * ) + 18 * - 99 col2
----
-1781

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9577
SELECT + 62 * - - 82 * - NULLIF ( + 62, - COUNT( * ) ) + 22 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT + 62 * - - 82 * - NULLIF ( + 62, - COUNT ( * ) ) + 22 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - 6 * + + 74 + 41 + 94 + - CASE - 7 WHEN 40 / 25 - + 28 THEN + 73 * COUNT( ALL - 85 ) END + - MIN( DISTINCT 2 ) * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - 6 * + + 74 + 41 + 94 + - CASE - 7 WHEN 40 / 25 - + 28 THEN + 73 * COUNT ( ALL - 85 ) END + - MIN ( DISTINCT 2 ) * 47
----
NULL

query I rowsort
SELECT ALL - CASE - - COALESCE ( - 16, + 60 - + 86 * 52 ) WHEN 10 THEN - 7 END
----
NULL

query I rowsort
SELECT ( + + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT - - COUNT( + 7 ) * 57 * ( + ( NULLIF ( - 84, + 79 * - 21 - + 65 / 64 ) ) ) * 4
----
-19152

skipif mysql # not compatible
query I rowsort label-9581
SELECT - - COUNT ( + 7 ) * 57 * ( + ( NULLIF ( - 84, + 79 * - 21 - + 65 / 64 ) ) ) * 4
----
-19152

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - COUNT( * ) + + ( 1 )
----
0

skipif mysql # not compatible
query I rowsort label-9582
SELECT - COUNT ( * ) + + ( 1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT + ( MAX( + ( + + 25 ) ) )
----
25

skipif mysql # not compatible
query I rowsort label-9583
SELECT + ( MAX ( + ( + + 25 ) ) )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT ALL - CAST( + 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL - CAST ( + 61 AS INTEGER )
----
-61

query I rowsort
SELECT + 93 + - 69 * + + 88 * 20
----
-121347

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL - + 9 + MAX( - 19 )
----
-28

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - + 9 + MAX ( - 19 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT DISTINCT + + COUNT( * ) * 47
----
47

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT + + COUNT ( * ) * 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT ALL - CASE + 10 WHEN + 94 THEN - 74 * + - 50 + 56 WHEN - COUNT( * ) THEN 89 * 4 ELSE - COUNT( * ) END + COALESCE ( + COUNT( - 29 ), 16 )
----
2

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL - CASE + 10 WHEN + 94 THEN - 74 * + - 50 + 56 WHEN - COUNT ( * ) THEN 89 * 4 ELSE - COUNT ( * ) END + COALESCE ( + COUNT ( - 29 ), 16 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9589
SELECT - MIN( ALL - - 42 ) + + + CAST( - + 29 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9589
SELECT - MIN ( ALL - - 42 ) + + + CAST ( - + 29 AS INTEGER ) AS col1
----
-71

query I rowsort
SELECT - 58 * - 72 * 69
----
288144

query II rowsort
SELECT 89, 44 AS col2
----
89
44

query II rowsort
SELECT - 8 col2, ( - 0 )
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL NULLIF ( + COUNT( * ), - 30 )
----
1

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL NULLIF ( + COUNT ( * ), - 30 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT + 87 DIV + ( + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-9594
SELECT + 87 / + ( + 98 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9595
SELECT + COUNT( * ) - 5 * - CAST( 35 AS SIGNED ) * + + 35
----
6126

skipif mysql # not compatible
query I rowsort label-9595
SELECT + COUNT ( * ) - 5 * - CAST ( 35 AS INTEGER ) * + + 35
----
6126

query I rowsort
SELECT ALL CASE - 44 WHEN + 60 THEN - + COALESCE ( + 68, 42 ) WHEN 52 / + 75 THEN 87 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 25 + + - 70 AS col0
----
-95

query I rowsort
SELECT - 22 - + ( - + 35 ) * - - 57 AS col1
----
1973

query I rowsort
SELECT - 27 * + 19 AS col0
----
-513

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT ALL - 8 - + 85, - COUNT( * ) AS col0
----
-93
-1

skipif mysql # not compatible
query II rowsort label-9600
SELECT ALL - 8 - + 85, - COUNT ( * ) AS col0
----
-93
-1

query II rowsort
SELECT + 73 AS col0, 11 * + 31 col0
----
73
341

query I rowsort
SELECT DISTINCT - 26 / + CASE - ( ( 87 ) ) WHEN + COALESCE ( 86, - 49 ) + - 29 THEN 56 * + 66 END * 41
----
NULL

query I rowsort
SELECT - 91 * - + 12 * - COALESCE ( + + 30, 4, - 69 ) * 13 AS col1
----
-425880

query I rowsort
SELECT ALL - 81 * 96 AS col1
----
-7776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9605
SELECT CAST( NULL AS SIGNED ), CAST( - 60 AS SIGNED ) + + COUNT( * ) * + - COALESCE ( 38, 85, - COUNT( * ) - 34, + 97 DIV 89, + 57 ) AS col2
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-9605
SELECT CAST ( NULL AS INTEGER ), CAST ( - 60 AS INTEGER ) + + COUNT ( * ) * + - COALESCE ( 38, 85, - COUNT ( * ) - 34, + 97 / 89, + 57 ) AS col2
----
NULL
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9606
SELECT ALL 71 DIV 41 - COUNT( * ) * - 71 AS col0, - 19 DIV - - 87 * 64 AS col1
----
72
0

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL 71 / 41 - COUNT ( * ) * - 71 AS col0, - 19 / - - 87 * 64 AS col1
----
72
0

query I rowsort
SELECT - ( 91 ) * + + 13 AS col1
----
-1183

query I rowsort
SELECT DISTINCT + 36 * 41 * - 81 AS col2
----
-119556

query II rowsort
SELECT + 41 AS col2, ( - 83 )
----
41
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9610
SELECT 9 * 74 + - ( + COALESCE ( + COUNT( * ), + MIN( 20 ), + 60 ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT 9 * 74 + - ( + COALESCE ( + COUNT ( * ), + MIN ( 20 ), + 60 ) ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT + 38 * + + MIN( + 73 )
----
2774

skipif mysql # not compatible
query I rowsort label-9611
SELECT + 38 * + + MIN ( + 73 )
----
2774

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL + 18 * + - COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + 18 * + - COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT DISTINCT - 36 * + ( + 99 )
----
-3564

query I rowsort
SELECT DISTINCT + - COALESCE ( - 90, - 75, + + COALESCE ( 48, 65, - 29 ) ) AS col0
----
90

query II rowsort
SELECT DISTINCT + + 54, + 40 AS col2
----
54
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT DISTINCT + 40 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT + 40 / + 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT CAST( 7 AS SIGNED ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9617
SELECT CAST ( 7 AS INTEGER ) AS col1
----
7

query II rowsort
SELECT ALL + 10 AS col2, 38
----
10
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT COUNT( * ) * + + 37 + ( + 33 )
----
70

skipif mysql # not compatible
query I rowsort label-9619
SELECT COUNT ( * ) * + + 37 + ( + 33 )
----
70

query I rowsort
SELECT + - 2 * - 58 * - 55 * 48
----
-306240

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT - NULLIF ( + + 76, + 75 * + 47 + + + 10 DIV 34 * - 65 ) * - 98 - - 92 DIV + 54
----
7449

skipif mysql # not compatible
query I rowsort label-9621
SELECT - NULLIF ( + + 76, + 75 * + 47 + + + 10 / 34 * - 65 ) * - 98 - - 92 / + 54
----
7449

query II rowsort
SELECT 1 AS col2, + 92 col1
----
1
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT + + 59 * + - 53 + - - COALESCE ( - - 54, - 0 + - - 56 ) * - 44 + 32 DIV 61
----
-5503

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + + 59 * + - 53 + - - COALESCE ( - - 54, - 0 + - - 56 ) * - 44 + 32 / 61
----
-5503

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT - 62 * - ( 19 ) + COUNT( * ) + - - 96 * - 76 + - 73 + + 44 col1
----
-6146

skipif mysql # not compatible
query I rowsort label-9624
SELECT - 62 * - ( 19 ) + COUNT ( * ) + - - 96 * - 76 + - 73 + + 44 col1
----
-6146

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL - COUNT( + - 12 ) * 34 + + 13 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - COUNT ( + - 12 ) * 34 + + 13 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT + 52 * MIN( 89 ) AS col0
----
4628

skipif mysql # not compatible
query I rowsort label-9626
SELECT + 52 * MIN ( 89 ) AS col0
----
4628

query I rowsort
SELECT ALL ( + 74 ) * 7 col2
----
518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9628
SELECT DISTINCT + - COUNT( * ) * 13 + + + 58 DIV ( 81 ) + + 18 + + 21
----
26

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT + - COUNT ( * ) * 13 + + + 58 / ( 81 ) + + 18 + + 21
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL 70 * + + 6 + - + 74 * + COUNT( * ) * COALESCE ( - - 98, 16 ) * ( 14 ) col0
----
-101108

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL 70 * + + 6 + - + 74 * + COUNT ( * ) * COALESCE ( - - 98, 16 ) * ( 14 ) col0
----
-101108

query I rowsort
SELECT DISTINCT - 14 * - 76 + - 20 * + + 26 - CASE - 54 WHEN + 98 * 31 THEN 11 + - ( - ( + COALESCE ( - 26, - 34 / + 31 ) ) ) ELSE NULL END + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT + COUNT( * ) + - 28 + - 61 * 27
----
-1674

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT + COUNT ( * ) + - 28 + - 61 * 27
----
-1674

query II rowsort
SELECT ALL 62 + + - 18, 17 AS col1
----
44
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT 61 - - 75 + - 50 + + 28 * + COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-9633
SELECT 61 - - 75 + - 50 + + 28 * + COUNT ( * )
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT - - CAST( - 68 AS SIGNED ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9634
SELECT - - CAST ( - 68 AS INTEGER ) AS col1
----
-68

query I rowsort
SELECT + 45 + 82 + + 46
----
173

query I rowsort
SELECT ALL 40 - - 68 * 12
----
856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9637
SELECT 53 + + 69 + 45 + - 21 * 92 DIV MAX( DISTINCT + + 60 ) * - 62 + - 55 * 85 AS col0
----
-2524

skipif mysql # not compatible
query I rowsort label-9637
SELECT 53 + + 69 + 45 + - 21 * 92 / MAX ( DISTINCT + + 60 ) * - 62 + - 55 * 85 AS col0
----
-2524

query II rowsort
SELECT 98 - - 81 AS col1, 19 / - ( - - NULLIF ( + - ( - 97 ), 97 ) ) AS col0
----
179
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT ALL - 21 * ( - ( + 3 ) ) * - CAST( - - 81 AS SIGNED ) + - 69
----
-5172

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL - 21 * ( - ( + 3 ) ) * - CAST ( - - 81 AS INTEGER ) + - 69
----
-5172

query I rowsort
SELECT 79 * ( - 36 ) AS col2
----
-2844

query I rowsort
SELECT DISTINCT 39 - 45 * - - ( - 6 )
----
309

query I rowsort
SELECT ALL 74 * 95
----
7030

query II rowsort
SELECT 69 * + 84 AS col2, + 35 AS col2
----
5796
35

query I rowsort
SELECT + 23 * + 96 + + + 16 - + 79 + - 55 * + 62 - - 73 col2
----
-1192

onlyif mysql # DIV for integer division: 
query II rowsort label-9645
SELECT 23 DIV + 76 AS col2, + 68 AS col0
----
0
68

skipif mysql # not compatible
query II rowsort label-9645
SELECT 23 / + 76 AS col2, + 68 AS col0
----
0
68

query I rowsort
SELECT ALL - ( + 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9647
SELECT 13 DIV COUNT( DISTINCT - - ( - 55 ) ) * 46 AS col0, + COUNT( * ) DIV - 50 AS col1
----
598
0

skipif mysql # not compatible
query II rowsort label-9647
SELECT 13 / COUNT ( DISTINCT - - ( - 55 ) ) * 46 AS col0, + COUNT ( * ) / - 50 AS col1
----
598
0

query I rowsort
SELECT ALL + - 10 + + 12
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9649
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + SUM( DISTINCT 97 ) + ( - 34 ) * - COUNT( - 75 ) + - 54 * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + SUM ( DISTINCT 97 ) + ( - 34 ) * - COUNT ( - 75 ) + - 54 * - 41
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT ALL + 75 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL + 75 / - + 77
----
0

query I rowsort
SELECT ALL - 11 + + ( + - 96 )
----
-107

query I rowsort
SELECT ALL - - 97 * - 45
----
-4365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9653
SELECT ( 72 ) DIV COUNT( * ) + + 13 + - + 51 * COUNT( * ) + - 31 DIV 69 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9653
SELECT ( 72 ) / COUNT ( * ) + + 13 + - + 51 * COUNT ( * ) + - 31 / 69 AS col2
----
34

query I rowsort
SELECT + COALESCE ( 42, + 58 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9655
SELECT NULLIF ( - CAST( NULL AS DECIMAL ), + COUNT( * ) ) + + - COUNT( * ) - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT NULLIF ( - CAST ( NULL AS REAL ), + COUNT ( * ) ) + + - COUNT ( * ) - + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL - + COUNT( * ) + + - NULLIF ( + COUNT( * ), + + 9 + - 19 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL - + COUNT ( * ) + + - NULLIF ( + COUNT ( * ), + + 9 + - 19 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT - 17 + - COUNT( ALL + 58 ) * - 96
----
79

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT - 17 + - COUNT ( ALL + 58 ) * - 96
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9658
SELECT + + SUM( ALL - 79 ) AS col2, COUNT( * ) + - 45
----
-79
-44

skipif mysql # not compatible
query II rowsort label-9658
SELECT + + SUM ( ALL - 79 ) AS col2, COUNT ( * ) + - 45
----
-79
-44

query I rowsort
SELECT DISTINCT - NULLIF ( + 25, - 44 * - - 12 ) AS col0
----
-25

query I rowsort
SELECT DISTINCT - - 24
----
24

query I rowsort
SELECT NULLIF ( 58, - 78 * + - 91 + - + 5 )
----
58

query I rowsort
SELECT ALL - 10 + + - 75 AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT ALL - ( - CAST( - 18 AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL - ( - CAST ( - 18 AS INTEGER ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL + COUNT( * ) + + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + COUNT ( * ) + + 53 AS col0
----
54

query II rowsort
SELECT + 16 + + + 10 AS col0, 68 col1
----
26
68

query I rowsort
SELECT DISTINCT ( + - 2 )
----
-2

query II rowsort
SELECT - ( 87 ) AS col1, - 67 * - 17
----
-87
1139

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT - 82 DIV + 69
----
-1

skipif mysql # not compatible
query I rowsort label-9668
SELECT - 82 / + 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT MIN( ALL - + 93 ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9669
SELECT MIN ( ALL - + 93 ) * - 0 AS col0
----
0

query I rowsort
SELECT 60 + 23 + - + 84 * - - 83
----
-6889

query II rowsort
SELECT - 3 AS col0, 10 AS col1
----
-3
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL + 26 * + MAX( COALESCE ( + - COALESCE ( + 2, + + 25 ), + 54 ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + 26 * + MAX ( COALESCE ( + - COALESCE ( + 2, + + 25 ), + 54 ) ) AS col2
----
-52

query I rowsort
SELECT DISTINCT + 8 - 41 - - CASE - ( - + 28 ) WHEN - 43 + - + 24 THEN NULL WHEN 10 THEN + 4 ELSE - 2 END AS col1
----
-35

query I rowsort
SELECT ALL 98 * + + 32 AS col2
----
3136

query II rowsort
SELECT 95 + ( + 68 ), - ( 72 ) AS col1
----
163
-72

query II rowsort
SELECT DISTINCT 20 AS col1, 19 * - + 34 AS col0
----
20
-646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9677
SELECT COUNT( ALL 12 ) DIV - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9677
SELECT COUNT ( ALL 12 ) / - 1 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9678
SELECT ALL 73, CAST( NULL AS SIGNED ) AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-9678
SELECT ALL 73, CAST ( NULL AS INTEGER ) AS col1
----
73
NULL

query I rowsort
SELECT 4 * - CASE - 25 WHEN + + 3 THEN NULL WHEN + 10 * 78 / + 37 THEN + + NULLIF ( 23, + ( 49 ) ) ELSE NULL END * - AVG ( ALL - 67 )
----
NULL

query I rowsort
SELECT ALL 32 + - - 3 AS col2
----
35

query II rowsort
SELECT DISTINCT 90, 18 col1
----
90
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9682
SELECT 4 * - + 10 * 47, - 38 + + 97 + + COUNT( * ) * + COUNT( * ) AS col2
----
-1880
60

skipif mysql # not compatible
query II rowsort label-9682
SELECT 4 * - + 10 * 47, - 38 + + 97 + + COUNT ( * ) * + COUNT ( * ) AS col2
----
-1880
60

query II rowsort
SELECT + + 6, 12 * - 81 AS col2
----
6
-972

query I rowsort
SELECT - 70 * 41 * - 30 - + - 42 + + 20 + - 41 * - 41 * + 63
----
192065

onlyif mysql # aggregate syntax: 
query II rowsort label-9685
SELECT 83 * 14 + 84, COUNT( ( - 9 ) ) AS col1
----
1246
1

skipif mysql # not compatible
query II rowsort label-9685
SELECT 83 * 14 + 84, COUNT ( ( - 9 ) ) AS col1
----
1246
1

query I rowsort
SELECT + 7 * + 32
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT DISTINCT - SUM( DISTINCT + 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - SUM ( DISTINCT + 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9688
SELECT 55 AS col2, ( - 60 ) DIV - ( - 96 ) + - COUNT( * )
----
55
-1

skipif mysql # not compatible
query II rowsort label-9688
SELECT 55 AS col2, ( - 60 ) / - ( - 96 ) + - COUNT ( * )
----
55
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9689
SELECT ALL + COUNT( * ) DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL + COUNT ( * ) / 60
----
0

query II rowsort
SELECT + COALESCE ( + 98, + - 63 ), 55 * + - 31 AS col0
----
98
-1705

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9691
SELECT ALL - 34 * 32 / - CAST( NULL AS DECIMAL ) - + MIN( DISTINCT - 49 ) + 52 + - ( - 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL - 34 * 32 / - CAST ( NULL AS REAL ) - + MIN ( DISTINCT - 49 ) + 52 + - ( - 57 ) AS col2
----
NULL

query I rowsort
SELECT + - COALESCE ( + ( + + 98 ), - - 62 - - 35 * + + 70 )
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-9693
SELECT DISTINCT 40 * - 91 + - 99, + COUNT( * ) * + - 62 * + - 30 AS col2
----
-3739
1860

skipif mysql # not compatible
query II rowsort label-9693
SELECT DISTINCT 40 * - 91 + - 99, + COUNT ( * ) * + - 62 * + - 30 AS col2
----
-3739
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT ALL - 69 DIV 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - 69 / 62 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT - ( - 96 ) DIV + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-9695
SELECT - ( - 96 ) / + - COUNT ( * )
----
-96

query I rowsort
SELECT + COALESCE ( ( 48 ), + 29 ) AS col0
----
48

query I rowsort
SELECT + + 76 * + 71 + 11 * + 44
----
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9698
SELECT + - ( + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + + 6 col1
----
6

query II rowsort
SELECT + - 9 col0, 67 + + 14
----
-9
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9701
SELECT - - 23 + + - MAX( DISTINCT 16 ) col1, + COUNT( * ) + + - COUNT( * )
----
7
0

skipif mysql # not compatible
query II rowsort label-9701
SELECT - - 23 + + - MAX ( DISTINCT 16 ) col1, + COUNT ( * ) + + - COUNT ( * )
----
7
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT - - COUNT( * ) * - 34 * - 21 AS col2, 4 * + COUNT( * ) * 47 * - COALESCE ( + SUM( DISTINCT 92 ), 99 ) AS col2
----
714
-17296

skipif mysql # not compatible
query II rowsort label-9702
SELECT - - COUNT ( * ) * - 34 * - 21 AS col2, 4 * + COUNT ( * ) * 47 * - COALESCE ( + SUM ( DISTINCT 92 ), 99 ) AS col2
----
714
-17296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT - 99 + + 28 + + 87 * + ( - 40 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 99 + + 28 + + 87 * + ( - 40 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9704
SELECT DISTINCT + 39 * 91 * - + 3 * - 79, + CAST( NULL AS SIGNED ) * 63 - + 10 AS col1
----
841113
NULL

skipif mysql # not compatible
query II rowsort label-9704
SELECT DISTINCT + 39 * 91 * - + 3 * - 79, + CAST ( NULL AS INTEGER ) * 63 - + 10 AS col1
----
841113
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9705
SELECT ALL ( - 42 ) AS col1, CASE 8 WHEN + 99 THEN - - ( 2 ) WHEN 16 * 19 THEN NULL END * + ( - COUNT( * ) * - 36 ) - 91 AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-9705
SELECT ALL ( - 42 ) AS col1, CASE 8 WHEN + 99 THEN - - ( 2 ) WHEN 16 * 19 THEN NULL END * + ( - COUNT ( * ) * - 36 ) - 91 AS col1
----
-42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL ( - - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL ( - - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL MAX( ALL + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL MAX ( ALL + 94 ) AS col0
----
94

query II rowsort
SELECT DISTINCT NULLIF ( + 72, - 50 - 29 + - 5 ), + 38 AS col1
----
72
38

query I rowsort
SELECT ALL NULLIF ( + 18, - 58 + - 50 + - 27 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT + 62 * - 0 * COUNT( 70 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9710
SELECT + 62 * - 0 * COUNT ( 70 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - ( + 3 ) * + COUNT( * ) * 19 + 6 + + 87 + + + MAX( - 20 ) * + 83 AS col1
----
-1624

skipif mysql # not compatible
query I rowsort label-9711
SELECT - ( + 3 ) * + COUNT ( * ) * 19 + 6 + + 87 + + + MAX ( - 20 ) * + 83 AS col1
----
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT - 33 + - 89 * + 98 - 57 + 13 + - + COUNT( * )
----
-8800

skipif mysql # not compatible
query I rowsort label-9712
SELECT - 33 + - 89 * + 98 - 57 + 13 + - + COUNT ( * )
----
-8800

query I rowsort
SELECT ALL COALESCE ( NULLIF ( 8, - 43 ), - + 9 * + 89 + - 13 ) * - 94 AS col2
----
-752

query I rowsort
SELECT ALL ( - 71 ) + - + 98 * - 5
----
419

query I rowsort
SELECT DISTINCT + 77 * 19
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL COUNT( * ) + + + 2
----
3

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL COUNT ( * ) + + + 2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9717
SELECT ALL CAST( + 70 AS SIGNED ) + - SUM( ALL + + 58 ) + + 10
----
22

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL CAST ( + 70 AS INTEGER ) + - SUM ( ALL + + 58 ) + + 10
----
22

query I rowsort
SELECT + 55 + + 64
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT + 72 * - CASE - + ( 11 ) WHEN AVG ( + - 6 ) / 67 - + ( - + COUNT( * ) ) * 80 THEN 24 * - COUNT( * ) WHEN COUNT( * ) / - 47 THEN - 59 * 74 WHEN + 70 THEN + COUNT( DISTINCT 90 ) * + NULLIF ( 5 + - 75, - 48 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT + 72 * - CASE - + ( 11 ) WHEN AVG ( + - 6 ) / 67 - + ( - + COUNT ( * ) ) * 80 THEN 24 * - COUNT ( * ) WHEN COUNT ( * ) / - 47 THEN - 59 * 74 WHEN + 70 THEN + COUNT ( DISTINCT 90 ) * + NULLIF ( 5 + - 75, - 48 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 84 + - 10 + 30
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT MIN( DISTINCT 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9721
SELECT MIN ( DISTINCT 34 ) AS col0
----
34

query I rowsort
SELECT + 42 * + - 82 + - 29 * - - 16 * - 92 + - - 82 + + ( - 85 ) * - 74 col1
----
45616

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + - 23 * - 45 + + COUNT( * )
----
1036

skipif mysql # not compatible
query I rowsort label-9723
SELECT + - 23 * - 45 + + COUNT ( * )
----
1036

query I rowsort
SELECT ALL + + 79 col1
----
79

query I rowsort
SELECT + + 54 + - 95
----
-41

query I rowsort
SELECT + 57 + - + 65
----
-8

query I rowsort
SELECT + 71 + 72 * + 5
----
431

query I rowsort
SELECT DISTINCT - NULLIF ( - - 42, + + NULLIF ( - ( + - 28 ), 53 ) ) * + CASE + + 4 WHEN + + 38 THEN ( 37 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL + COUNT( * ) * + 18
----
18

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + COUNT ( * ) * + 18
----
18

query I rowsort
SELECT + + 2 * - 99 * - 40 AS col0
----
7920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9731
SELECT - - 96 * + + 34 DIV COUNT( * ) AS col1
----
3264

skipif mysql # not compatible
query I rowsort label-9731
SELECT - - 96 * + + 34 / COUNT ( * ) AS col1
----
3264

query I rowsort
SELECT - + 21 + - + 6 * + - 57 + - 76 + + 52
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT + CASE WHEN - 11 <> + + 79 * CAST( NULL AS SIGNED ) / COALESCE ( 29, - - 65 / - COUNT( * ) ) THEN 9 * - 91 WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT + CASE WHEN - 11 <> + + 79 * CAST ( NULL AS INTEGER ) / COALESCE ( 29, - - 65 / - COUNT ( * ) ) THEN 9 * - 91 WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - 40 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9734
SELECT + 74 * ( - COUNT( * ) ) * ( + 79 ) + + 53 DIV 42 + + 5
----
-5840

skipif mysql # not compatible
query I rowsort label-9734
SELECT + 74 * ( - COUNT ( * ) ) * ( + 79 ) + + 53 / 42 + + 5
----
-5840

query I rowsort
SELECT DISTINCT + CASE + 38 WHEN 12 THEN + + 30 * + 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL - 53 * - SUM( ALL + - 17 ) * + 23 + + + ( + COUNT( * ) )
----
-20722

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL - 53 * - SUM ( ALL + - 17 ) * + 23 + + + ( + COUNT ( * ) )
----
-20722

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT DISTINCT 16 DIV + 99 * 51
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT 16 / + 99 * 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT + COUNT( DISTINCT - + 2 ) * - 39
----
-39

skipif mysql # not compatible
query I rowsort label-9738
SELECT + COUNT ( DISTINCT - + 2 ) * - 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT - 86 * + - MIN( 57 )
----
4902

skipif mysql # not compatible
query I rowsort label-9739
SELECT - 86 * + - MIN ( 57 )
----
4902

query I rowsort
SELECT - 45 * - 83 AS col1
----
3735

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL - 63 * - + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - 63 * - + COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT - 63 DIV + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-9742
SELECT - 63 / + - COUNT ( * )
----
63

query I rowsort
SELECT ALL + 90 * - + 96 * - 80
----
691200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9744
SELECT - ( - + 72 ) + NULLIF ( + - NULLIF ( + - 75, + ( COUNT( * ) ) + 7 ), - - 19 + + COUNT( * ) ) * - COALESCE ( - 84 * - 67 + ( 41 ) DIV + 48, - 62 ) AS col2
----
-422028

skipif mysql # not compatible
query I rowsort label-9744
SELECT - ( - + 72 ) + NULLIF ( + - NULLIF ( + - 75, + ( COUNT ( * ) ) + 7 ), - - 19 + + COUNT ( * ) ) * - COALESCE ( - 84 * - 67 + ( 41 ) / + 48, - 62 ) AS col2
----
-422028

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL 15 + + 31 * 93 + NULLIF ( + + MIN( - 17 ), SUM( + 9 ) ) AS col2
----
2881

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL 15 + + 31 * 93 + NULLIF ( + + MIN ( - 17 ), SUM ( + 9 ) ) AS col2
----
2881

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT + ( 42 ) + + 80 - 84 * + 75 + - CASE - + 71 WHEN - ( + + 64 ) + 56 THEN NULL ELSE - 72 * COUNT( * ) END + - 92
----
-6198

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT + ( 42 ) + + 80 - 84 * + 75 + - CASE - + 71 WHEN - ( + + 64 ) + 56 THEN NULL ELSE - 72 * COUNT ( * ) END + - 92
----
-6198

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT - COUNT( * ) + 10 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - COUNT ( * ) + 10 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9748
SELECT ALL + CAST( + 75 AS SIGNED ) + + ( - 60 ) * + 79 + + + 33 + 53 - 20 * - NULLIF ( - + COALESCE ( - COUNT( * ), + ( ( 70 ) ), + ( + 32 ) ), CASE 59 WHEN + 26 / + 96 + + 53 THEN 1 WHEN ( + 77 ) + COALESCE ( + 85, 95 ) THEN NULL END + ( + 64 ) ) AS col0
----
-4559

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL + CAST ( + 75 AS INTEGER ) + + ( - 60 ) * + 79 + + + 33 + 53 - 20 * - NULLIF ( - + COALESCE ( - COUNT ( * ), + ( ( 70 ) ), + ( + 32 ) ), CASE 59 WHEN + 26 / + 96 + + 53 THEN 1 WHEN ( + 77 ) + COALESCE ( + 85, 95 ) THEN NULL END + ( + 64 ) ) AS col0
----
-4559

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL - ( 75 ) + COUNT( * ) + + 19 * + 1 + - + 98 AS col2
----
-153

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - ( 75 ) + COUNT ( * ) + + 19 * + 1 + - + 98 AS col2
----
-153

query I rowsort
SELECT - 96 + 74 - - + 63 * + 96 * - 5
----
-30262

query I rowsort
SELECT DISTINCT - 19 + - ( + + 66 ) - 64 + 80 * - + 39 + + + 85
----
-3184

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT - COUNT( DISTINCT - + ( - 64 ) ) + 91
----
90

skipif mysql # not compatible
query I rowsort label-9752
SELECT - COUNT ( DISTINCT - + ( - 64 ) ) + 91
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9753
SELECT ALL - COUNT( * ) + - 2 * + 22 DIV - 77 * - 85 + - COUNT( * ) + - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - COUNT ( * ) + - 2 * + 22 / - 77 * - 85 + - COUNT ( * ) + - COUNT ( * ) AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT - + 74 - - 90 + + 36 * + ( - - 48 ) DIV 41 DIV + 63 - - 53 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9754
SELECT - + 74 - - 90 + + 36 * + ( - - 48 ) / 41 / + 63 - - 53 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - - COUNT( * ) * + 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - - COUNT ( * ) * + 13 AS col0
----
13

query I rowsort
SELECT + 89 + 0 col1
----
89

query I rowsort
SELECT ALL + 94 + - 45 * - NULLIF ( + 65, 60 * + 13 ) AS col2
----
3019

query I rowsort
SELECT ALL 72 - + 51
----
21

query I rowsort
SELECT ALL - 2 * + 62
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT + 55 / - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT + 55 / - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT DISTINCT - + COUNT( DISTINCT + 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT - + COUNT ( DISTINCT + 27 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL - COUNT( 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL - COUNT ( 40 )
----
-1

query I rowsort
SELECT + ( - + 13 )
----
-13

query I rowsort
SELECT ALL + + 19 - - ( + - CASE 76 WHEN + + 45 THEN - 35 + + - 78 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT + 13 * + ( 92 )
----
1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9766
SELECT 82 * - ( - 91 ) / - 11 * CAST( NULL AS SIGNED ) + + COUNT( * ) + - - 6 + - - ( 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT 82 * - ( - 91 ) / - 11 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - - 6 + - - ( 74 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9767
SELECT 31 * + COALESCE ( + 5, - 46 DIV - 88 + + 70 + ( - 12 ) + - 99 DIV - 95 ) - + 72 * - COUNT( * )
----
227

skipif mysql # not compatible
query I rowsort label-9767
SELECT 31 * + COALESCE ( + 5, - 46 / - 88 + + 70 + ( - 12 ) + - 99 / - 95 ) - + 72 * - COUNT ( * )
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT 13 DIV - + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT 13 / - + 97 AS col1
----
0

query II rowsort
SELECT ALL - + 79 AS col1, - 91
----
-79
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9770
SELECT DISTINCT - COUNT( * ) AS col2, - 44 * + + 26
----
-1
-1144

skipif mysql # not compatible
query II rowsort label-9770
SELECT DISTINCT - COUNT ( * ) AS col2, - 44 * + + 26
----
-1
-1144

query I rowsort
SELECT DISTINCT - ( + 38 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - 62 * - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9772
SELECT - 62 * - COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL 2 * - + 66 * COUNT( - 6 ) AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL 2 * - + 66 * COUNT ( - 6 ) AS col1
----
-132

query I rowsort
SELECT ALL - - NULLIF ( - 61, + - ( + + 15 ) )
----
-61

query I rowsort
SELECT ALL ( - 12 ) + + 91 col1
----
79

query I rowsort
SELECT ALL 75 * + - 88 AS col1
----
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT 4 * - SUM( - - 45 ) AS col0
----
-180

skipif mysql # not compatible
query I rowsort label-9777
SELECT 4 * - SUM ( - - 45 ) AS col0
----
-180

query II rowsort
SELECT + 55, - 96 * 76 * + 80 AS col0
----
55
-583680

query II rowsort
SELECT ALL - 49 AS col0, 2
----
-49
2

query I rowsort
SELECT 88 + - 89 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9781
SELECT 94 DIV - - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9781
SELECT 94 / - - COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL 15 + - 89 + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL 15 + - 89 + COUNT ( * ) AS col2
----
-73

query I rowsort
SELECT DISTINCT 74 * + 73 AS col2
----
5402

query I rowsort
SELECT 7 + - 59 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9785
SELECT ALL - CAST( NULL AS SIGNED ) + MIN( DISTINCT 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - CAST ( NULL AS INTEGER ) + MIN ( DISTINCT 59 )
----
NULL

query II rowsort
SELECT ALL 79 col2, - 87
----
79
-87

query I rowsort
SELECT DISTINCT - COALESCE ( + - 2, + 78 ) + - 68 col1
----
-66

query I rowsort
SELECT 32 + 70 * - - 86
----
6052

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL 61 + + + 51 + COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL 61 + + + 51 + COUNT ( * )
----
113

query I rowsort
SELECT 3 * + + 53 col2
----
159

query II rowsort
SELECT 11, + 10 AS col2
----
11
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT COUNT( * ) + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9793
SELECT COUNT ( * ) + 60 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT DISTINCT - - MAX( DISTINCT 15 ) - - 50 - + - 82
----
147

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT - - MAX ( DISTINCT 15 ) - - 50 - + - 82
----
147

query II rowsort
SELECT 43 AS col0, - 77 col0
----
43
-77

query I rowsort
SELECT + ( + ( 65 ) ) * - 65 + - 99 AS col0
----
-4324

query I rowsort
SELECT 38 + - 30 col0
----
8

query I rowsort
SELECT + 10 * 8
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT 97 * + - COUNT( * ) * + COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-9799
SELECT 97 * + - COUNT ( * ) * + COUNT ( * ) AS col1
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9800
SELECT ALL - 91 / + CAST( NULL AS DECIMAL ) + - ( - COALESCE ( - 54, 62, - + ( - 24 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL - 91 / + CAST ( NULL AS REAL ) + - ( - COALESCE ( - 54, 62, - + ( - 24 ) ) )
----
NULL

query I rowsort
SELECT + 96 * + 72 + - 80 * - 5 AS col2
----
7312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT + 8 DIV - ( + - COUNT( * ) ) + COUNT( * ) + 56 + + - 53 * - + 95 * - 13 + 75 col2
----
-65315

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 8 / - ( + - COUNT ( * ) ) + COUNT ( * ) + 56 + + - 53 * - + 95 * - 13 + 75 col2
----
-65315

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT DISTINCT - 47 DIV 21
----
-2

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT - 47 / 21
----
-2

query I rowsort
SELECT DISTINCT - + 12 col0
----
-12

query I rowsort
SELECT ALL + 75 + + ( - 9 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT + ( + - 43 ) * + ( 18 ) * - NULLIF ( COUNT( * ), NULLIF ( ( + 52 ), 35 ) + 11 ) + + 71
----
845

skipif mysql # not compatible
query I rowsort label-9806
SELECT + ( + - 43 ) * + ( 18 ) * - NULLIF ( COUNT ( * ), NULLIF ( ( + 52 ), 35 ) + 11 ) + + 71
----
845

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL - - COUNT( * ) + 2 + - + 23 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL - - COUNT ( * ) + 2 + - + 23 AS col0
----
-20

query I rowsort
SELECT 72 * 63
----
4536

query I rowsort
SELECT ( 7 ) + - - 97
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT COUNT( * ) + 60 - SUM( DISTINCT - + 20 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9810
SELECT COUNT ( * ) + 60 - SUM ( DISTINCT - + 20 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL COUNT( * ) + - 60 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL COUNT ( * ) + - 60 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT COUNT( * ) + 46
----
47

skipif mysql # not compatible
query I rowsort label-9812
SELECT COUNT ( * ) + 46
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT 97 * - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9813
SELECT 97 * - COUNT ( * ) AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9814
SELECT ALL 21 + 36 * + 7 * + - 70 + - 82 + - COUNT( * ) * + COUNT( * ) DIV 72 * 43
----
-17701

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL 21 + 36 * + 7 * + - 70 + - 82 + - COUNT ( * ) * + COUNT ( * ) / 72 * 43
----
-17701

query I rowsort
SELECT DISTINCT 56 * + 22
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL 91 * - COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL 91 * - COUNT ( * ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL CASE - ( + 45 ) WHEN + 69 THEN + 0 ELSE NULL END + + - CAST( NULL AS SIGNED ) + 2 + 44 + + 7 + + - 60 * + - 11 + + - 97 + + 42 * 78 / + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL CASE - ( + 45 ) WHEN + 69 THEN + 0 ELSE NULL END + + - CAST ( NULL AS INTEGER ) + 2 + 44 + + 7 + + - 60 * + - 11 + + - 97 + + 42 * 78 / + 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT DISTINCT 20 * + 24 * + - CAST( NULL AS SIGNED ) / - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT 20 * + 24 * + - CAST ( NULL AS INTEGER ) / - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9819
SELECT 13 - COUNT( * ) AS col2, 39
----
12
39

skipif mysql # not compatible
query II rowsort label-9819
SELECT 13 - COUNT ( * ) AS col2, 39
----
12
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT COUNT( * ) * 4
----
4

skipif mysql # not compatible
query I rowsort label-9820
SELECT COUNT ( * ) * 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL MAX( 44 ) * 15
----
660

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL MAX ( 44 ) * 15
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9822
SELECT - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 14 * + 45
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT DISTINCT - COUNT( * ) DIV + ( - COUNT( * ) ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT - COUNT ( * ) / + ( - COUNT ( * ) ) + + 53
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9825
SELECT + 24 + + ( - CAST( NULL AS SIGNED ) ) + - COUNT( * ) - + + 73, ( 4 ) + - - 27 AS col2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-9825
SELECT + 24 + + ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) - + + 73, ( 4 ) + - - 27 AS col2
----
NULL
31

query I rowsort
SELECT + + 91 - - - 95 - 45 * 37
----
-1669

query I rowsort
SELECT + ( + + 4 ) + - ( + + 10 )
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9828
SELECT - ( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT - ( - - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9829
SELECT DISTINCT - 53 DIV 95 AS col1, + 79 DIV - 39 + ( + + 73 ) col1
----
0
71

skipif mysql # not compatible
query II rowsort label-9829
SELECT DISTINCT - 53 / 95 AS col1, + 79 / - 39 + ( + + 73 ) col1
----
0
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9830
SELECT + 95 DIV SUM( NULLIF ( + 68, - 82 + - 3 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9830
SELECT + 95 / SUM ( NULLIF ( + 68, - 82 + - 3 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9831
SELECT - CASE + 13 WHEN - 70 * + CASE 75 WHEN + 89 THEN + 66 WHEN + - 30 * - COALESCE ( + - 57, + 71, ( - SUM( 62 ) ) * + ( + MAX( 59 ) ) ) * 27 THEN NULL WHEN ( - CAST( NULL AS SIGNED ) ) + 30 * - 83 THEN - AVG ( - 62 ) ELSE + AVG ( - 59 ) END THEN NULL WHEN + 75 + - 97 THEN - 18 WHEN SUM( DISTINCT + CAST( - 24 AS SIGNED ) ) THEN NULL END / + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT - CASE + 13 WHEN - 70 * + CASE 75 WHEN + 89 THEN + 66 WHEN + - 30 * - COALESCE ( + - 57, + 71, ( - SUM ( 62 ) ) * + ( + MAX ( 59 ) ) ) * 27 THEN NULL WHEN ( - CAST ( NULL AS INTEGER ) ) + 30 * - 83 THEN - AVG ( - 62 ) ELSE + AVG ( - 59 ) END THEN NULL WHEN + 75 + - 97 THEN - 18 WHEN SUM ( DISTINCT + CAST ( - 24 AS INTEGER ) ) THEN NULL END / + 89 AS col0
----
NULL

query I rowsort
SELECT ALL 34 * - 5 AS col2
----
-170

query I rowsort
SELECT + - 14 * + 8 - + - 70 col1
----
-42

query I rowsort
SELECT - - ( ( - 97 ) ) + + 78 AS col2
----
-19

query I rowsort
SELECT - 78 * + + 0 + + + 87 * 69 AS col2
----
6003

query I rowsort
SELECT ALL - 59 + + ( + 51 ) * + 94
----
4735

onlyif mysql # aggregate syntax: 
query II rowsort label-9837
SELECT + COUNT( - - 20 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9837
SELECT + COUNT ( - - 20 ), COUNT ( * )
----
1
1

query I rowsort
SELECT + - 21 col1
----
-21

query I rowsort
SELECT ALL 23 * + 95 * + + ( + 4 ) AS col2
----
8740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9840
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + 90 - - CAST( NULL AS SIGNED ) + + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + 90 - - CAST ( NULL AS INTEGER ) + + - 83
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9841
SELECT 13 DIV - 49 - + - MIN( 97 ) - - + 51 - - - 35 col2
----
113

skipif mysql # not compatible
query I rowsort label-9841
SELECT 13 / - 49 - + - MIN ( 97 ) - - + 51 - - - 35 col2
----
113

query I rowsort
SELECT ALL - 37 * + - 29 + + - 95
----
978

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT COALESCE ( + 61, - ( + + ( - COUNT( * ) ) ) * + 33, NULLIF ( - 42, - 60 ) + + 27 )
----
61

skipif mysql # not compatible
query I rowsort label-9843
SELECT COALESCE ( + 61, - ( + + ( - COUNT ( * ) ) ) * + 33, NULLIF ( - 42, - 60 ) + + 27 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT DISTINCT + 59 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT + 59 / + 75
----
0

query I rowsort
SELECT ALL 80 * + 69 + - + 36 AS col0
----
5484

query I rowsort
SELECT 32 * + 35 * + 16 - 31 + - 50 AS col2
----
17839

query I rowsort
SELECT DISTINCT + ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + MAX( DISTINCT + 5 ) * - 16 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9848
SELECT + MAX ( DISTINCT + 5 ) * - 16 AS col0
----
-80

query I rowsort
SELECT - 20 + 31 AS col2
----
11

query I rowsort
SELECT - 96 + + 62 - 1
----
-35

query II rowsort
SELECT ALL ( ( + 74 ) ), - 3 col2
----
74
-3

query I rowsort
SELECT ALL 2 * - 62 AS col1
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9853
SELECT DISTINCT 1, CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9853
SELECT DISTINCT 1, CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query II rowsort
SELECT ALL + 54 AS col1, 57 col0
----
54
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + + COUNT( * ) * - COUNT( - - 96 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9855
SELECT + + COUNT ( * ) * - COUNT ( - - 96 ) col2
----
-1

query I rowsort
SELECT ALL - 24 * + 84 AS col2
----
-2016

query I rowsort
SELECT + + 43 + + 52 + + 72 col2
----
167

query I rowsort
SELECT + - 69 * - 49 - - - 64 + 57 + - 10
----
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL - CASE - + COUNT( * ) WHEN - 46 THEN 27 ELSE + + COUNT( * ) * COALESCE ( 27, + + 27, MIN( - ( + COALESCE ( 66, CASE 75 WHEN ( + 61 ) THEN NULL WHEN + 7 / + ( 27 ) THEN 46 ELSE NULL END ) ) ) * 85 ) END col1
----
-27

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - CASE - + COUNT ( * ) WHEN - 46 THEN 27 ELSE + + COUNT ( * ) * COALESCE ( 27, + + 27, MIN ( - ( + COALESCE ( 66, CASE 75 WHEN ( + 61 ) THEN NULL WHEN + 7 / + ( 27 ) THEN 46 ELSE NULL END ) ) ) * 85 ) END col1
----
-27

query I rowsort
SELECT - ( + 7 ) col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL CASE 62 WHEN + COUNT( * ) THEN + 1 WHEN + 1 + - 39 + - CASE + - COALESCE ( - - 25, 20 ) WHEN - 16 THEN 26 END THEN NULL END + + - 31 * - NULLIF ( - 62, - 20 / + 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL CASE 62 WHEN + COUNT ( * ) THEN + 1 WHEN + 1 + - 39 + - CASE + - COALESCE ( - - 25, 20 ) WHEN - 16 THEN 26 END THEN NULL END + + - 31 * - NULLIF ( - 62, - 20 / + 91 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT + NULLIF ( 18, + - 93 + + 56 + + 58 + + - COUNT( * ) + + 18 - + - 46 * + + CAST( - COUNT( * ) AS SIGNED ) + 95 * + CAST( NULL AS SIGNED ) ) - - + 69 + 49 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-9862
SELECT + NULLIF ( 18, + - 93 + + 56 + + 58 + + - COUNT ( * ) + + 18 - + - 46 * + + CAST ( - COUNT ( * ) AS INTEGER ) + 95 * + CAST ( NULL AS INTEGER ) ) - - + 69 + 49 AS col2
----
136

query I rowsort
SELECT ALL + 97 + + + 13
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT - - COALESCE ( 91, + + 1 * + COUNT( * ), - - 98 * 38 )
----
91

skipif mysql # not compatible
query I rowsort label-9864
SELECT - - COALESCE ( 91, + + 1 * + COUNT ( * ), - - 98 * 38 )
----
91

query II rowsort
SELECT + - 17 + + ( - 87 ) AS col1, + 8 * ( - + ( - 74 ) ) AS col1
----
-104
592

query I rowsort
SELECT ALL + 47 + + 2 AS col2
----
49

query I rowsort
SELECT + + 42 + 80 AS col2
----
122

query I rowsort
SELECT - + 36 * 76 AS col0
----
-2736

query II rowsort
SELECT 58 AS col2, ( + 87 ) AS col2
----
58
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - - CASE + 50 WHEN 82 THEN + 55 WHEN + ( + 57 ) THEN NULL END - 12 + - 79 + - 46 / + COUNT( ALL - 56 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT - - CASE + 50 WHEN 82 THEN + 55 WHEN + ( + 57 ) THEN NULL END - 12 + - 79 + - 46 / + COUNT ( ALL - 56 ) col2
----
NULL

query I rowsort
SELECT ALL 57 * - + 79
----
-4503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT + CAST( - 24 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9872
SELECT + CAST ( - 24 AS INTEGER ) AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT CAST( - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-9873
SELECT CAST ( - 72 AS INTEGER )
----
-72

query I rowsort
SELECT ALL 92 * - - 61 AS col0
----
5612

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT DISTINCT 76 DIV + 23 + - - 50
----
53

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT 76 / + 23 + - - 50
----
53

query I rowsort
SELECT 36 * + 6 + + 83
----
299

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT ALL + 16 DIV 26 - + - 19
----
19

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + 16 / 26 - + - 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT - COUNT( * ) * - + NULLIF ( - ( - ( - COUNT( * ) ) ), 64 ) * + 30 * + 22 * 26 + + 45 col0
----
-17115

skipif mysql # not compatible
query I rowsort label-9878
SELECT - COUNT ( * ) * - + NULLIF ( - ( - ( - COUNT ( * ) ) ), 64 ) * + 30 * + 22 * 26 + + 45 col0
----
-17115

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT + 68 * COUNT( DISTINCT + + 77 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9879
SELECT + 68 * COUNT ( DISTINCT + + 77 ) AS col0
----
68

query I rowsort
SELECT - 74 * + 56 AS col1
----
-4144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9881
SELECT CAST ( + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ( + - COUNT( - 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9882
SELECT ( + - COUNT ( - 1 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9883
SELECT ALL + COUNT( * ) * - ( + 3 ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL + COUNT ( * ) * - ( + 3 ) / 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT 29 * + COUNT( - 47 )
----
29

skipif mysql # not compatible
query I rowsort label-9884
SELECT 29 * + COUNT ( - 47 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT DISTINCT - MIN( + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT - MIN ( + 66 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9886
SELECT 41 * - 0, SUM( ALL - - 40 ) AS col0
----
0
40

skipif mysql # not compatible
query II rowsort label-9886
SELECT 41 * - 0, SUM ( ALL - - 40 ) AS col0
----
0
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9887
SELECT DISTINCT + AVG ( ALL + CAST( NULL AS DECIMAL ) ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT + AVG ( ALL + CAST ( NULL AS REAL ) ) * 72
----
NULL

query I rowsort
SELECT 31 * 2 AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT ALL + COALESCE ( + 32, - - 12, CAST( - COUNT( - CAST( NULL AS SIGNED ) ) AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + COALESCE ( + 32, - - 12, CAST ( - COUNT ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) )
----
32

query I rowsort
SELECT - 72 + + - 63 + + 74 + + + 51 + 51 * + 66 * + - 33
----
-111088

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT COUNT( * ) - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT COUNT ( * ) - COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9892
SELECT ALL - + 97 DIV + 75
----
-1

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL - + 97 / + 75
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL - + CASE + - 64 WHEN COUNT( * ) * - 13 + + 26 / + 4 + - - 7 * + 90 + - - 13 - + 14 * + + 36 THEN - 67 * - COALESCE ( - COUNT( * ), 16 + COALESCE ( 51, CAST( NULL AS SIGNED ) ) * 54 ) END + 97 * 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - + CASE + - 64 WHEN COUNT ( * ) * - 13 + + 26 / + 4 + - - 7 * + 90 + - - 13 - + 14 * + + 36 THEN - 67 * - COALESCE ( - COUNT ( * ), 16 + COALESCE ( 51, CAST ( NULL AS INTEGER ) ) * 54 ) END + 97 * 8 col0
----
NULL

query I rowsort
SELECT DISTINCT - 70 + + - ( - 19 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL COUNT( * ) + - 36 - COUNT( * ) * + 62 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL COUNT ( * ) + - 36 - COUNT ( * ) * + 62 AS col0
----
-97

query I rowsort
SELECT + 22 + + 80 AS col0
----
102

query I rowsort
SELECT 74 - + 7
----
67

query I rowsort
SELECT - - 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT COUNT( * ) + + ( + - 70 ) + 28 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9899
SELECT COUNT ( * ) + + ( + - 70 ) + 28 AS col0
----
-41

query I rowsort
SELECT ALL - 76 + - - 13 AS col0
----
-63

query I rowsort
SELECT - + 38 col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT - ( MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT - ( MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) col1
----
NULL

query I rowsort
SELECT ALL - ( - + 93 ) + - 52 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9904
SELECT ALL CAST( + 73 AS SIGNED ) - - ( COALESCE ( 40, - + 71 + 40 ) ) + - - 76 + + SUM( 20 ) col2
----
209

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL CAST ( + 73 AS INTEGER ) - - ( COALESCE ( 40, - + 71 + 40 ) ) + - - 76 + + SUM ( 20 ) col2
----
209

query I rowsort
SELECT ( 76 ) * - - ( - 81 ) + - 25 AS col1
----
-6181

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT 68 * - 42 - + - 74 + - 11 * + CASE - + COUNT( * ) WHEN + SUM( - + 7 ) + 61 + + 81 + + 74 + + AVG ( - 62 ) + 54 - - 15 + ( 73 ) * - 76 * + 61 THEN + ( 81 ) * 90 + 69 * 17 WHEN - 96 / - 45 THEN NULL WHEN 6 - - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT 68 * - 42 - + - 74 + - 11 * + CASE - + COUNT ( * ) WHEN + SUM ( - + 7 ) + 61 + + 81 + + 74 + + AVG ( - 62 ) + 54 - - 15 + ( 73 ) * - 76 * + 61 THEN + ( 81 ) * 90 + 69 * 17 WHEN - 96 / - 45 THEN NULL WHEN 6 - - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9907
SELECT - 3 DIV - 35 - + - 90, 49 AS col0
----
90
49

skipif mysql # not compatible
query II rowsort label-9907
SELECT - 3 / - 35 - + - 90, 49 AS col0
----
90
49

query I rowsort
SELECT 51 * - 42
----
-2142

query I rowsort
SELECT 22 - 74
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9910
SELECT ALL 32 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL 32 * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ( + + 50 ) * - 79, + 59 AS col0
----
-3950
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9912
SELECT DISTINCT - COUNT( * ), - 62 AS col0
----
-1
-62

skipif mysql # not compatible
query II rowsort label-9912
SELECT DISTINCT - COUNT ( * ), - 62 AS col0
----
-1
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9913
SELECT COALESCE ( 89, 79 + - 9 ) * 75 DIV - + CAST( - AVG ( ALL - 89 ) AS SIGNED ) - 10 DIV - 68
----
-75

skipif mysql # not compatible
query I rowsort label-9913
SELECT COALESCE ( 89, 79 + - 9 ) * 75 / - + CAST ( - AVG ( ALL - 89 ) AS INTEGER ) - 10 / - 68
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9914
SELECT CAST( + - ( - ( - + 14 ) ) AS SIGNED ) - 36 + 87 DIV - + ( - COUNT( * ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9914
SELECT CAST ( + - ( - ( - + 14 ) ) AS INTEGER ) - 36 + 87 / - + ( - COUNT ( * ) ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ( - 11 ) * - COUNT( ALL - + 82 )
----
11

skipif mysql # not compatible
query I rowsort label-9915
SELECT ( - 11 ) * - COUNT ( ALL - + 82 )
----
11

query I rowsort
SELECT 76 * 83 AS col1
----
6308

query I rowsort
SELECT - 2 * + 53 + + - 28
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT MIN( - 8 ) * - - 79
----
-632

skipif mysql # not compatible
query I rowsort label-9918
SELECT MIN ( - 8 ) * - - 79
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + 66 * - ( + MAX( DISTINCT 43 ) ) - + 98 AS col2
----
-2936

skipif mysql # not compatible
query I rowsort label-9919
SELECT + 66 * - ( + MAX ( DISTINCT 43 ) ) - + 98 AS col2
----
-2936

query I rowsort
SELECT DISTINCT - 74 + + 96
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT ALL COUNT( * ) + 67 + + COUNT( DISTINCT + - 35 ) + - 76 * - + COUNT( * ) * - - COALESCE ( 49, - + COUNT( * ) ) * 6 * 88 + ( + 8 ) AS col0
----
1966349

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL COUNT ( * ) + 67 + + COUNT ( DISTINCT + - 35 ) + - 76 * - + COUNT ( * ) * - - COALESCE ( 49, - + COUNT ( * ) ) * 6 * 88 + ( + 8 ) AS col0
----
1966349

query I rowsort
SELECT ALL - - 45 + - - 35
----
80

query I rowsort
SELECT - - NULLIF ( 57, 70 * + 96 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT + COUNT( * ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9924
SELECT + COUNT ( * ) + - - COUNT ( * )
----
2

query I rowsort
SELECT ALL - 80 + 83 AS col2
----
3

query I rowsort
SELECT 7 + + 28 - + - 15 + - 38 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT - 77 * 63 * SUM( 52 ) + + 48 + 61 AS col0
----
-252143

skipif mysql # not compatible
query I rowsort label-9927
SELECT - 77 * 63 * SUM ( 52 ) + + 48 + 61 AS col0
----
-252143

query II rowsort
SELECT - 83 AS col2, 66 * 26 AS col1
----
-83
1716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9929
SELECT ALL - CASE - 0 WHEN - 81 DIV - + 86 THEN - + SUM( - 32 ) WHEN - 31 THEN NULL END - + 34 - + 94
----
-160

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL - CASE - 0 WHEN - 81 / - + 86 THEN - + SUM ( - 32 ) WHEN - 31 THEN NULL END - + 34 - + 94
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ( - 18 ) - - - ( + + MAX( - NULLIF ( + 54, - 90 ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-9931
SELECT ( - 18 ) - - - ( + + MAX ( - NULLIF ( + 54, - 90 ) ) )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9932
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL - ( + + 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT COUNT( * ) + - 1 * 4 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9934
SELECT COUNT ( * ) + - 1 * 4 AS col2
----
-3

query I rowsort
SELECT 32 + + ( + 33 ) + + 32 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL SUM( DISTINCT - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL SUM ( DISTINCT - 42 )
----
-42

query I rowsort
SELECT 3 + 85 + - 40 * - - CASE - + 46 WHEN - 7 THEN + + 31 WHEN - 48 THEN + - 47 * + 46 / + 65 + + ( 79 ) WHEN + 32 + ( - AVG ( DISTINCT + 78 ) ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 7 * - 75
----
-525

query I rowsort
SELECT 13 + 38 * - - 12 * - 24 * + 73
----
-798899

query I rowsort
SELECT 48 - + 47
----
1

query I rowsort
SELECT DISTINCT 57 * 77 * 27 AS col1
----
118503

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT + 49 * COUNT( * ) * - - 28 - + + 13 * + ( MIN( ALL - 61 ) ) - 72
----
2093

skipif mysql # not compatible
query I rowsort label-9942
SELECT + 49 * COUNT ( * ) * - - 28 - + + 13 * + ( MIN ( ALL - 61 ) ) - 72
----
2093

query I rowsort
SELECT - 97 + 88
----
-9

query I rowsort
SELECT ALL - 10 * + - 43 col1
----
430

query I rowsort
SELECT DISTINCT + ( - 73 )
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-9946
SELECT DISTINCT - 1 * + 65 * 41 DIV 94, 43 AS col2
----
-28
43

skipif mysql # not compatible
query II rowsort label-9946
SELECT DISTINCT - 1 * + 65 * 41 / 94, 43 AS col2
----
-28
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9947
SELECT ALL + ( MAX( ALL + - ( + 77 ) ) ), CAST( NULL AS SIGNED ) * CASE + 55 WHEN + - COUNT( * ) - + + 22 / 8 + - 24 THEN + 44 + + COUNT( * ) * 22 WHEN + 55 + 96 THEN NULL END AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-9947
SELECT ALL + ( MAX ( ALL + - ( + 77 ) ) ), CAST ( NULL AS INTEGER ) * CASE + 55 WHEN + - COUNT ( * ) - + + 22 / 8 + - 24 THEN + 44 + + COUNT ( * ) * 22 WHEN + 55 + 96 THEN NULL END AS col1
----
-77
NULL

query I rowsort
SELECT ALL + 86 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT COUNT( * ) * + 49 + CASE - 16 WHEN + + 7 * - 16 THEN + + 83 END + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT COUNT ( * ) * + 49 + CASE - 16 WHEN + + 7 * - 16 THEN + + 83 END + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT + 98 DIV 34 + + MAX( ALL - 17 )
----
-15

skipif mysql # not compatible
query I rowsort label-9950
SELECT + 98 / 34 + + MAX ( ALL - 17 )
----
-15

query I rowsort
SELECT ALL 10 * - 3 + + - 78
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9952
SELECT COALESCE ( - 49, NULLIF ( - 79, + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ), ( 71 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-9952
SELECT COALESCE ( - 49, NULLIF ( - 79, + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ), ( 71 ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT + CASE 61 WHEN - 12 THEN NULL WHEN + - 44 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT + CASE 61 WHEN - 12 THEN NULL WHEN + - 44 THEN - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 20 + - 48 + + 56 + + 71 + 99
----
198

query I rowsort
SELECT + 31 * 94
----
2914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9956
SELECT ALL 43 * COUNT( * ) * - + CASE - + 93 WHEN + + 69 - - - MAX( + 56 ) DIV + ( - + COUNT( * ) ) THEN - COUNT( DISTINCT + 41 ) * + 69 ELSE 94 DIV - - 32 + - - 53 END col2
----
-2365

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL 43 * COUNT ( * ) * - + CASE - + 93 WHEN + + 69 - - - MAX ( + 56 ) / + ( - + COUNT ( * ) ) THEN - COUNT ( DISTINCT + 41 ) * + 69 ELSE 94 / - - 32 + - - 53 END col2
----
-2365

query I rowsort
SELECT + ( + 13 ) col0
----
13

query I rowsort
SELECT ALL - 76 * 98 + - - 18
----
-7430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9959
SELECT ALL 43 * + - 59 + - NULLIF ( COALESCE ( + - 71, MIN( DISTINCT - 33 ) ), + + 26 ) + - 56 * - 59 + + CAST( - + ( + 11 ) AS SIGNED ) AS col2
----
827

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL 43 * + - 59 + - NULLIF ( COALESCE ( + - 71, MIN ( DISTINCT - 33 ) ), + + 26 ) + - 56 * - 59 + + CAST ( - + ( + 11 ) AS INTEGER ) AS col2
----
827

onlyif mysql # aggregate syntax: 
query II rowsort label-9960
SELECT DISTINCT + - COUNT( * ) AS col0, 69
----
-1
69

skipif mysql # not compatible
query II rowsort label-9960
SELECT DISTINCT + - COUNT ( * ) AS col0, 69
----
-1
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT DISTINCT ( - 79 ) + - COUNT( * ) + - - 57 * - ( + - 74 ) * - + MIN( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT ( - 79 ) + - COUNT ( * ) + - - 57 * - ( + - 74 ) * - + MIN ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 78 + + 41 + - 35 * + + 20, + 95 AS col1
----
-581
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + CASE + 66 WHEN - ( MAX( ALL + 25 ) ) THEN + 63 ELSE 69 END - - + 96 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-9963
SELECT + CASE + 66 WHEN - ( MAX ( ALL + 25 ) ) THEN + 63 ELSE 69 END - - + 96 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL SUM( + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL SUM ( + 9 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL 45 - - COALESCE ( + - CAST( - 66 AS SIGNED ), - ( - 77 ), - COUNT( * ), + 87 ) * - - 51
----
3411

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL 45 - - COALESCE ( + - CAST ( - 66 AS INTEGER ), - ( - 77 ), - COUNT ( * ), + 87 ) * - - 51
----
3411

query I rowsort
SELECT DISTINCT - + 25 * + + 89 AS col1
----
-2225

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - - 30 * + - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9967
SELECT - - 30 * + - COUNT ( * ) AS col1
----
-30

query I rowsort
SELECT NULLIF ( + 65, + 58 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT ALL - 87 - - ( + COUNT( + - 56 ) ) + - 45 AS col1, 40
----
-131
40

skipif mysql # not compatible
query II rowsort label-9969
SELECT ALL - 87 - - ( + COUNT ( + - 56 ) ) + - 45 AS col1, 40
----
-131
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT + 28 DIV - - 53 * + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9970
SELECT + 28 / - - 53 * + 30 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT - 34 * CAST( NULL AS SIGNED ) * 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT - 34 * CAST ( NULL AS INTEGER ) * 46 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT - CAST( + 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-9972
SELECT - CAST ( + 36 AS INTEGER )
----
-36

query I rowsort
SELECT - 51 + NULLIF ( 75, 47 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL COALESCE ( + NULLIF ( - 68, - 63 ), - - COUNT( * ) )
----
-68

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL COALESCE ( + NULLIF ( - 68, - 63 ), - - COUNT ( * ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT - 98 * ( - MAX( ALL - 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9975
SELECT - 98 * ( - MAX ( ALL - 0 ) )
----
0

query I rowsort
SELECT DISTINCT CASE - 75 WHEN - 27 THEN NULL ELSE + - 63 END
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT ALL - ( + 2 ) + - COALESCE ( - 6, + - CAST( - 92 AS SIGNED ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - ( + 2 ) + - COALESCE ( - 6, + - CAST ( - 92 AS INTEGER ) ) AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9978
SELECT DISTINCT - ( + 50 ) DIV + 32 + 91 + 18 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT - ( + 50 ) / + 32 + 91 + 18 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9979
SELECT - 38 * - CAST( NULL AS SIGNED ) * - + 7 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT - 38 * - CAST ( NULL AS INTEGER ) * - + 7 / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - 44 * + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-9980
SELECT - 44 * + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9981
SELECT ALL COUNT( * ) DIV + 5 + - + 45 * + - 71
----
3195

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL COUNT ( * ) / + 5 + - + 45 * + - 71
----
3195

query I rowsort
SELECT 43 * - + 94 * + 47 - - 9
----
-189965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT + CASE + + 13 WHEN + - ( + + COALESCE ( + 1, - 23 + + 4, - 9 + 28 ) ) THEN - CAST( - 89 AS SIGNED ) * 80 - - ( - - 7 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT + CASE + + 13 WHEN + - ( + + COALESCE ( + 1, - 23 + + 4, - 9 + 28 ) ) THEN - CAST ( - 89 AS INTEGER ) * 80 - - ( - - 7 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9984
SELECT - 56 DIV + + COALESCE ( - - ( - - COUNT( * ) ), + - MIN( + 68 ) * 96 + 16 - - + CAST( NULL AS SIGNED ) * 42 ) * + COUNT( * ) + - 99 + - 41 - + 1 + ( 49 ) + + - 80 * COUNT( * ) - 2
----
-230

skipif mysql # not compatible
query I rowsort label-9984
SELECT - 56 / + + COALESCE ( - - ( - - COUNT ( * ) ), + - MIN ( + 68 ) * 96 + 16 - - + CAST ( NULL AS INTEGER ) * 42 ) * + COUNT ( * ) + - 99 + - 41 - + 1 + ( 49 ) + + - 80 * COUNT ( * ) - 2
----
-230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9985
SELECT + CASE + - COUNT( * ) WHEN + ( - CAST( - 25 AS SIGNED ) ) THEN COUNT( * ) ELSE + + 87 DIV + + COUNT( * ) END col0
----
87

skipif mysql # not compatible
query I rowsort label-9985
SELECT + CASE + - COUNT ( * ) WHEN + ( - CAST ( - 25 AS INTEGER ) ) THEN COUNT ( * ) ELSE + + 87 / + + COUNT ( * ) END col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9986
SELECT CAST( - NULLIF ( - - CAST( - 66 AS SIGNED ), + 82 * + COUNT( * ) * - 51 + - ( + - COUNT( * ) ) - + SUM( DISTINCT + 0 ) * + + ( + 38 ) ) AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9986
SELECT CAST ( - NULLIF ( - - CAST ( - 66 AS INTEGER ), + 82 * + COUNT ( * ) * - 51 + - ( + - COUNT ( * ) ) - + SUM ( DISTINCT + 0 ) * + + ( + 38 ) ) AS INTEGER ) AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9987
SELECT ALL 50 DIV + 10 + - + 54
----
-49

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL 50 / + 10 + - + 54
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT ALL - ( - 95 ) DIV + - 5 + - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - ( - 95 ) / + - 5 + - COUNT ( * ) AS col0
----
-20

query II rowsort
SELECT DISTINCT + ( - + 25 ) AS col0, - 90
----
-25
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + SUM( DISTINCT - ( - 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-9990
SELECT + SUM ( DISTINCT - ( - 24 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9991
SELECT ALL CAST( - 63 AS SIGNED ) DIV 23 + - 58 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL CAST ( - 63 AS INTEGER ) / 23 + - 58 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL + + ( - SUM( DISTINCT ( + + 70 ) ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL + + ( - SUM ( DISTINCT ( + + 70 ) ) ) AS col2
----
-70

query I rowsort
SELECT DISTINCT 61 * 16 + - 7 + 50 + - 89 AS col2
----
930

query I rowsort
SELECT + - 10 * 11 + 49
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + 93 + + CASE 33 WHEN ( - 71 ) THEN MAX( + - 63 ) + + MAX( ALL - 18 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 93 + + CASE 33 WHEN ( - 71 ) THEN MAX ( + - 63 ) + + MAX ( ALL - 18 ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9996
SELECT + + 69 * + 48 col2, - 24 * - 91 * 20 DIV 26 * + + COUNT( * )
----
3312
1680

skipif mysql # not compatible
query II rowsort label-9996
SELECT + + 69 * + 48 col2, - 24 * - 91 * 20 / 26 * + + COUNT ( * )
----
3312
1680

query I rowsort
SELECT + NULLIF ( 89, + 80 ) AS col2
----
89

query I rowsort
SELECT + + 25 + + + 50
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9999
SELECT ALL 19 * + 16 - 58 + + NULLIF ( + 99, MAX( - 46 ) ) * + 92 + ( 39 ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL 19 * + 16 - 58 + + NULLIF ( + 99, MAX ( - 46 ) ) * + 92 + ( 39 ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

