sqllogictest
Artifact Content
Not logged in

Artifact bc7a5a0aed34a1e15bba88a897a187f50fbc745b:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 84 * + 33 + - 85
----
2687

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT MAX( DISTINCT - 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1
SELECT MAX ( DISTINCT - 15 ) AS col0
----
-15

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

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

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

query I rowsort
SELECT ALL 18 - + 93 + + 87 * + 40 * 32
----
111285

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT MAX( + 10 ) + 77
----
87

skipif mysql # not compatible
query I rowsort label-5
SELECT MAX ( + 10 ) + 77
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT DISTINCT - SUM( ALL + 46 ) - 70
----
-116

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - SUM ( ALL + 46 ) - 70
----
-116

onlyif mysql # aggregate syntax: 
query II rowsort label-7
SELECT ALL 95 AS col1, + SUM( + - 51 )
----
95
-51

skipif mysql # not compatible
query II rowsort label-7
SELECT ALL 95 AS col1, + SUM ( + - 51 )
----
95
-51

query II rowsort
SELECT 90 AS col2, - 91 * 62 * - + 11 AS col1
----
90
62062

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT SUM( 82 ) - 46 + 61
----
97

skipif mysql # not compatible
query I rowsort label-9
SELECT SUM ( 82 ) - 46 + 61
----
97

query I rowsort
SELECT - 7 col2
----
-7

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

skipif mysql # not compatible
query I rowsort label-11
SELECT 34 + COUNT ( * ) AS col2
----
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL NULLIF ( + 62, - 6 + + ( + - 84 ) ) - - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL NULLIF ( + 62, - 6 + + ( + - 84 ) ) - - - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT 44 + + COUNT( * ) * - + 58
----
-14

skipif mysql # not compatible
query I rowsort label-14
SELECT 44 + + COUNT ( * ) * - + 58
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-15
SELECT DISTINCT 69 AS col2, 23 DIV + 23
----
69
1

skipif mysql # not compatible
query II rowsort label-15
SELECT DISTINCT 69 AS col2, 23 / + 23
----
69
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-16
SELECT 27 - + 2 DIV + + ( COUNT( - 22 ) )
----
25

skipif mysql # not compatible
query I rowsort label-16
SELECT 27 - + 2 / + + ( COUNT ( - 22 ) )
----
25

query I rowsort
SELECT ALL NULLIF ( + ( + 49 ), - 77 + - + 44 ) * + 24
----
1176

query I rowsort
SELECT 34 * 67 * 93 AS col2
----
211854

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-20
SELECT - SUM( ALL - + 63 ) / - AVG ( ALL - 37 ) - CAST( NULL AS DECIMAL ) * - + 93 / + + 78 * - 73 - - 6 * - 69 + + - 77 * + - 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT - SUM ( ALL - + 63 ) / - AVG ( ALL - 37 ) - CAST ( NULL AS REAL ) * - + 93 / + + 78 * - 73 - - 6 * - 69 + + - 77 * + - 62 col2
----
NULL

query I rowsort
SELECT 76 * - + 41 col2
----
-3116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-22
SELECT DISTINCT + 8 DIV SUM( ALL + 69 ) * + COUNT( * ) * 89 - - 76 - - + COUNT( - ( - + 20 ) ) * - - MAX( ALL 24 ) * + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT + 8 / SUM ( ALL + 69 ) * + COUNT ( * ) * 89 - - 76 - - + COUNT ( - ( - + 20 ) ) * - - MAX ( ALL 24 ) * + COUNT ( * ) AS col2
----
100

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

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

query I rowsort
SELECT - 76 * 76
----
-5776

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT ALL - + 50 AS col1, 87 * + COUNT( * ) + - + 98
----
-50
-11

skipif mysql # not compatible
query II rowsort label-25
SELECT ALL - + 50 AS col1, 87 * + COUNT ( * ) + - + 98
----
-50
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT DISTINCT - NULLIF ( 49, + 51 + 89 - + COUNT( * ) * 69 * + 26 * + 33 * CAST( 67 AS SIGNED ) * + 88 ) + 72 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT - NULLIF ( 49, + 51 + 89 - + COUNT ( * ) * 69 * + 26 * + 33 * CAST ( 67 AS INTEGER ) * + 88 ) + 72 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT DISTINCT - + MIN( ( 96 ) ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT - + MIN ( ( 96 ) ) col2
----
-96

query I rowsort
SELECT - 42 * + 25 AS col2
----
-1050

query I rowsort
SELECT ALL + 72 + + 84 AS col0
----
156

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-31
SELECT + 0 AS col2, COUNT( * ) * + 11 AS col1
----
0
11

skipif mysql # not compatible
query II rowsort label-31
SELECT + 0 AS col2, COUNT ( * ) * + 11 AS col1
----
0
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT - 71 * + - 23 + - 75 + - ( - MIN( ALL + 33 ) ) - - - 99 / 6 * + 72 * - CAST( NULL AS SIGNED ) / - 14 / 88 + 18 + + CASE + 14 WHEN + - 49 THEN + 89 ELSE NULL END + - 93 / - ( 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT - 71 * + - 23 + - 75 + - ( - MIN ( ALL + 33 ) ) - - - 99 / 6 * + 72 * - CAST ( NULL AS INTEGER ) / - 14 / 88 + 18 + + CASE + 14 WHEN + - 49 THEN + 89 ELSE NULL END + - 93 / - ( 81 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-33
SELECT + 6 AS col1, + MIN( DISTINCT + 96 ) * - + 9 + + - MIN( ALL - COALESCE ( - 84, - - 30 ) ) + - + SUM( 41 ) * 73 - - COALESCE ( + 6, 0, + - 1, + 5 ) - + 80
----
6
-4015

skipif mysql # not compatible
query II rowsort label-33
SELECT + 6 AS col1, + MIN ( DISTINCT + 96 ) * - + 9 + + - MIN ( ALL - COALESCE ( - 84, - - 30 ) ) + - + SUM ( 41 ) * 73 - - COALESCE ( + 6, 0, + - 1, + 5 ) - + 80
----
6
-4015

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-34
SELECT COUNT( * ) DIV 9 + - 44 DIV - COUNT( * ) AS col1, - 55
----
44
-55

skipif mysql # not compatible
query II rowsort label-34
SELECT COUNT ( * ) / 9 + - 44 / - COUNT ( * ) AS col1, - 55
----
44
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT 4 * 46 * + COUNT( * ) AS col2
----
184

skipif mysql # not compatible
query I rowsort label-35
SELECT 4 * 46 * + COUNT ( * ) AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT DISTINCT + 93 - - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT + 93 - - COUNT ( * )
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL + 76 - + COUNT( * ) * + ( - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL + 76 - + COUNT ( * ) * + ( - COUNT ( * ) )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-39
SELECT ALL COUNT( * ) - CAST( NULL AS SIGNED ) * + 49 AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL + COUNT( * ) * + - 70 * - - 32
----
-2240

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL + COUNT ( * ) * + - 70 * - - 32
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT SUM( - + 53 ) + 26 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-42
SELECT SUM ( - + 53 ) + 26 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT COUNT( + + 8 ) * 53 + + + 78
----
131

skipif mysql # not compatible
query I rowsort label-43
SELECT COUNT ( + + 8 ) * 53 + + + 78
----
131

query II rowsort
SELECT 92 + - 54, ( + + NULLIF ( 11, 22 + - 23 ) ) AS col0
----
38
11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-46
SELECT 2 + + 34 + - CASE - 37 WHEN - 70 THEN NULL WHEN SUM( - 0 ) THEN 76 ELSE - 54 END - 4 - - + 96 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT 2 + + 34 + - CASE - 37 WHEN - 70 THEN NULL WHEN SUM ( - 0 ) THEN 76 ELSE - 54 END - 4 - - + 96 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 37 + + - 53 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT COUNT( * ) + NULLIF ( + + 28, - 38 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-48
SELECT COUNT ( * ) + NULLIF ( + + 28, - 38 ) col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT COALESCE ( - 79, + + CASE AVG ( ALL - + ( + + 0 ) ) WHEN + 48 / 36 + - 67 * + 72 THEN - - COUNT( * ) ELSE - CAST( NULL AS SIGNED ) END - - 76 * + 97 + - - COUNT( * ) ) + ( - + NULLIF ( - 94, + COUNT( * ) + + 99 ) )
----
15

skipif mysql # not compatible
query I rowsort label-49
SELECT COALESCE ( - 79, + + CASE AVG ( ALL - + ( + + 0 ) ) WHEN + 48 / 36 + - 67 * + 72 THEN - - COUNT ( * ) ELSE - CAST ( NULL AS INTEGER ) END - - 76 * + 97 + - - COUNT ( * ) ) + ( - + NULLIF ( - 94, + COUNT ( * ) + + 99 ) )
----
15

query I rowsort
SELECT ALL 87 * 75 AS col1
----
6525

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

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

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

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

query I rowsort
SELECT + 82 * - 81
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT + ( - - CASE + 88 WHEN 88 THEN + 49 WHEN + 42 * - + COUNT( * ) THEN NULL ELSE 63 + - 32 END ) + + 13
----
62

skipif mysql # not compatible
query I rowsort label-54
SELECT + ( - - CASE + 88 WHEN 88 THEN + 49 WHEN + 42 * - + COUNT ( * ) THEN NULL ELSE 63 + - 32 END ) + + 13
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT - 91 DIV - 36
----
2

skipif mysql # not compatible
query I rowsort label-55
SELECT - 91 / - 36
----
2

query I rowsort
SELECT 91 * + 34 col1
----
3094

query I rowsort
SELECT + 65 + + 67 + 23 AS col1
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-58
SELECT DISTINCT + 46 * - - 36 AS col1, - MAX( + 15 )
----
1656
-15

skipif mysql # not compatible
query II rowsort label-58
SELECT DISTINCT + 46 * - - 36 AS col1, - MAX ( + 15 )
----
1656
-15

query I rowsort
SELECT 82 * + + 8 * + 80 + + 9
----
52489

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT + - 46 / COALESCE ( + 42, + COALESCE ( - COUNT( * ), 89 ) / + ( 80 ) + 67 - - - 17 / - + 35 * + 91 * + 22, - 40 ) + - 10 * CASE WHEN NULL > NULL THEN + AVG ( ALL 60 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT + - 46 / COALESCE ( + 42, + COALESCE ( - COUNT ( * ), 89 ) / + ( 80 ) + 67 - - - 17 / - + 35 * + 91 * + 22, - 40 ) + - 10 * CASE WHEN NULL > NULL THEN + AVG ( ALL 60 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 5 * + 72 * - + 12 * 78
----
-336960

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT ALL - 63 DIV 2
----
-31

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - 63 / 2
----
-31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT ALL - + 52 DIV - - 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL - + 52 / - - 44 AS col0
----
-1

query II rowsort
SELECT 32 + + 67, 59 * + - ( + + 27 ) + - - 28 AS col0
----
99
-1565

query I rowsort
SELECT ALL + + 39 * + + 70 * - + 13 AS col2
----
-35490

query I rowsort
SELECT DISTINCT + 89 * - 53 AS col2
----
-4717

query II rowsort
SELECT + 34, + 4 + 58 AS col0
----
34
62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-71
SELECT - COALESCE ( 55, - 39 ) * + - CAST( - + 20 AS SIGNED ) + - - 30 + + - 12
----
-1082

skipif mysql # not compatible
query I rowsort label-71
SELECT - COALESCE ( 55, - 39 ) * + - CAST ( - + 20 AS INTEGER ) + - - 30 + + - 12
----
-1082

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT + 35 + MIN( DISTINCT + ( + - 62 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-72
SELECT + 35 + MIN ( DISTINCT + ( + - 62 ) )
----
-27

query I rowsort
SELECT DISTINCT CASE - - 31 WHEN - 34 * + 90 THEN + ( + + 55 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT ALL - 18 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - 18 / + 75
----
0

query I rowsort
SELECT DISTINCT 52 * 63 AS col1
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-76
SELECT ALL 59 AS col2, - ( CASE + SUM( ALL + + 13 ) WHEN + + COUNT( * ) / + 3 THEN - 47 * 36 * - 70 * AVG ( ALL ( - 61 ) ) * 77 WHEN + 33 + + CAST( NULL AS SIGNED ) + - 87 + - COUNT( * ) * - - 86 THEN NULL END ) + 78 * CASE 2 WHEN 84 THEN - CAST( + 34 AS SIGNED ) * + 81 END * COUNT( * ) AS col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-76
SELECT ALL 59 AS col2, - ( CASE + SUM ( ALL + + 13 ) WHEN + + COUNT ( * ) / + 3 THEN - 47 * 36 * - 70 * AVG ( ALL ( - 61 ) ) * 77 WHEN + 33 + + CAST ( NULL AS INTEGER ) + - 87 + - COUNT ( * ) * - - 86 THEN NULL END ) + 78 * CASE 2 WHEN 84 THEN - CAST ( + 34 AS INTEGER ) * + 81 END * COUNT ( * ) AS col2
----
59
NULL

query I rowsort
SELECT DISTINCT + 73 + + 74 AS col0
----
147

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

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

query I rowsort
SELECT - 64 - - 34 + + 96
----
66

query II rowsort
SELECT - 81 * + 70 * - 31 col0, 42
----
175770
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-81
SELECT - - COUNT( * ) AS col2, 6 + + 70 + + 8 DIV + MAX( ALL + + 73 )
----
1
76

skipif mysql # not compatible
query II rowsort label-81
SELECT - - COUNT ( * ) AS col2, 6 + + 70 + + 8 / + MAX ( ALL + + 73 )
----
1
76

query I rowsort
SELECT + + 97 + - + 31
----
66

query II rowsort
SELECT - 5 AS col0, 93 AS col1
----
-5
93

onlyif mysql # aggregate syntax: 
query II rowsort label-84
SELECT ALL + 16 + 39 + - - COUNT( * ) * + 0 AS col1, + 67 + 13 - + 0 * + + 83 AS col2
----
55
80

skipif mysql # not compatible
query II rowsort label-84
SELECT ALL + 16 + 39 + - - COUNT ( * ) * + 0 AS col1, + 67 + 13 - + 0 * + + 83 AS col2
----
55
80

query I rowsort
SELECT DISTINCT + - 50 + 46
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL CASE - + 83 WHEN 38 THEN NULL WHEN - 38 THEN - 59 * + 17 * - - 1 WHEN + 79 + + 12 THEN + - COUNT( * ) - + 32 + - 40 * - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL CASE - + 83 WHEN 38 THEN NULL WHEN - 38 THEN - 59 * + 17 * - - 1 WHEN + 79 + + 12 THEN + - COUNT ( * ) - + 32 + - 40 * - 28 END
----
NULL

query I rowsort
SELECT DISTINCT 46 + 33
----
79

query I rowsort
SELECT + - 78 - + - 27 + + + 83 AS col1
----
32

query I rowsort
SELECT ALL 94 + + - 76 * + + 60 - + - 57
----
-4409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-90
SELECT - 16 DIV 58 DIV - 3 * + 83 + + 24 - - 3 + 97 * SUM( ALL + 82 ) DIV + 68 + - 16 * COUNT( * ) - - ( - 34 ) * + + NULLIF ( - - 31, - + MIN( DISTINCT - 52 ) ) + - + 31 * - 97 * + COUNT( - 95 ) + - 80 AS col2
----
2000

skipif mysql # not compatible
query I rowsort label-90
SELECT - 16 / 58 / - 3 * + 83 + + 24 - - 3 + 97 * SUM ( ALL + 82 ) / + 68 + - 16 * COUNT ( * ) - - ( - 34 ) * + + NULLIF ( - - 31, - + MIN ( DISTINCT - 52 ) ) + - + 31 * - 97 * + COUNT ( - 95 ) + - 80 AS col2
----
2000

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT + 61 DIV + + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-91
SELECT + 61 / + + 98 AS col2
----
0

query I rowsort
SELECT + 79 / + 10 * 83 * - CASE + + 0 WHEN - - 17 + - 32 + - CASE 10 WHEN 32 THEN NULL WHEN + AVG ( DISTINCT 30 ) * 9 * + 70 THEN - 79 * NULLIF ( - 7, + 31 + - 96 ) * - - 15 END THEN + AVG ( ALL - 2 ) WHEN + - 16 THEN NULL ELSE NULL END - + + 19 * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT - CASE + 61 WHEN SUM( - 7 ) THEN 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-93
SELECT - CASE + 61 WHEN SUM ( - 7 ) THEN 72 END
----
NULL

query II rowsort
SELECT ALL + - 80, - 34 + - 57 AS col0
----
-80
-91

query I rowsort
SELECT DISTINCT 37 * 46
----
1702

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT + 7 DIV - - 99 * - 88 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-96
SELECT + 7 / - - 99 * - 88 / - 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-97
SELECT ALL + COUNT( DISTINCT 74 ) col1, 75 + + - CASE - - CAST( 60 AS SIGNED ) WHEN - ( + + MIN( DISTINCT - + 78 ) ) THEN NULL WHEN - - 42 THEN NULL ELSE + + 18 END col2
----
1
57

skipif mysql # not compatible
query II rowsort label-97
SELECT ALL + COUNT ( DISTINCT 74 ) col1, 75 + + - CASE - - CAST ( 60 AS INTEGER ) WHEN - ( + + MIN ( DISTINCT - + 78 ) ) THEN NULL WHEN - - 42 THEN NULL ELSE + + 18 END col2
----
1
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-98
SELECT CASE + + 62 WHEN - - 96 THEN 60 + 79 + + + 5 + 89 - + - 44 / + 27 * - - 38 / + COUNT( + 83 ) + - - CAST( NULL AS SIGNED ) + + 17 WHEN - 58 THEN + 73 ELSE NULL END * COUNT( * ) + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT CASE + + 62 WHEN - - 96 THEN 60 + 79 + + + 5 + 89 - + - 44 / + 27 * - - 38 / + COUNT ( + 83 ) + - - CAST ( NULL AS INTEGER ) + + 17 WHEN - 58 THEN + 73 ELSE NULL END * COUNT ( * ) + - 76
----
NULL

query I rowsort
SELECT NULLIF ( + 48, - 2 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-100
SELECT + SUM( DISTINCT 61 ) DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-100
SELECT + SUM ( DISTINCT 61 ) / 31
----
1

query I rowsort
SELECT - 40 * - + 62 + + + 86 AS col1
----
2566

query I rowsort
SELECT - 24 + + - 76 * + ( 73 ) AS col2
----
-5572

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT - 0 + + + 59 DIV 19 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-104
SELECT - 0 + + + 59 / 19 AS col2
----
3

query I rowsort
SELECT ALL - 13 * 35
----
-455

query I rowsort
SELECT - 17 * - 67 * + + 91 AS col1
----
103649

query I rowsort
SELECT + 64 + 11 col1
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT DISTINCT ( SUM( DISTINCT + 13 ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT ( SUM ( DISTINCT + 13 ) ) AS col1
----
13

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

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

query I rowsort
SELECT - - ( - 80 ) + - - ( + 12 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ALL NULLIF ( - 31, COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL NULLIF ( - 31, COUNT ( * ) )
----
-31

query I rowsort
SELECT - + 7 + + 44 + 46
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT ALL 39 * + 26 * 95 * + - 50 * + CAST( NULL AS SIGNED ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL 39 * + 26 * 95 * + - 50 * + CAST ( NULL AS INTEGER ) + 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-115
SELECT ALL - CAST( + - 59 AS SIGNED ) DIV - ( + COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - CAST ( + - 59 AS INTEGER ) / - ( + COUNT ( * ) )
----
-59

query I rowsort
SELECT ALL + 27 - - ( + 61 ) AS col1
----
88

query I rowsort
SELECT - + NULLIF ( - 18, - 12 ) + 72 * - 23 * - 65
----
107658

query I rowsort
SELECT + 36 * + 50 * 73
----
131400

query I rowsort
SELECT ALL - 35 * + 31
----
-1085

query II rowsort
SELECT - - 30 + 20 AS col2, 65 + + ( + + 52 ) * - 0 * 58 * - 38 AS col2
----
50
65

onlyif mysql # aggregate syntax: 
query II rowsort label-121
SELECT - + MIN( + 1 ) AS col0, + NULLIF ( ( + COUNT( * ) ), - ( - - 81 ) )
----
-1
1

skipif mysql # not compatible
query II rowsort label-121
SELECT - + MIN ( + 1 ) AS col0, + NULLIF ( ( + COUNT ( * ) ), - ( - - 81 ) )
----
-1
1

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

skipif mysql # not compatible
query I rowsort label-122
SELECT - SUM ( DISTINCT 95 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-123
SELECT - - 80 DIV + COALESCE ( + COUNT( ALL - 60 ), + + 86, 25 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-123
SELECT - - 80 / + COALESCE ( + COUNT ( ALL - 60 ), + + 86, 25 ) AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-124
SELECT + - COUNT( * ) DIV 40 + + ( COUNT( * ) ) + 41, 32 + + 10 col2
----
42
42

skipif mysql # not compatible
query II rowsort label-124
SELECT + - COUNT ( * ) / 40 + + ( COUNT ( * ) ) + 41, 32 + + 10 col2
----
42
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT CAST( 82 AS SIGNED ) * - - 50 - + MIN( DISTINCT - 78 ) * 63 * + COUNT( DISTINCT + - 58 ) + + - NULLIF ( + 2, + COUNT( * ) * 1 ) * - COALESCE ( - + 68, - - SUM( - 17 ) ) * + 28
----
5206

skipif mysql # not compatible
query I rowsort label-125
SELECT CAST ( 82 AS INTEGER ) * - - 50 - + MIN ( DISTINCT - 78 ) * 63 * + COUNT ( DISTINCT + - 58 ) + + - NULLIF ( + 2, + COUNT ( * ) * 1 ) * - COALESCE ( - + 68, - - SUM ( - 17 ) ) * + 28
----
5206

query I rowsort
SELECT ALL - 0 * - + 53
----
0

query I rowsort
SELECT 2 + - 89
----
-87

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

skipif mysql # not compatible
query I rowsort label-128
SELECT - COUNT ( * ) + + ( + MIN ( ALL - + ( + 99 ) ) )
----
-100

query I rowsort
SELECT 12 * + - 55 * - 58 * + 42 AS col0
----
1607760

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT 81 * + 70 + - MAX( ALL - + 35 ) AS col1
----
5705

skipif mysql # not compatible
query I rowsort label-130
SELECT 81 * + 70 + - MAX ( ALL - + 35 ) AS col1
----
5705

onlyif mysql # aggregate syntax: 
query II rowsort label-131
SELECT 48 col1, 88 + + 68 + COUNT( * ) + - + 60 * 88 * + 24 + + 41
----
48
-126522

skipif mysql # not compatible
query II rowsort label-131
SELECT 48 col1, 88 + + 68 + COUNT ( * ) + - + 60 * 88 * + 24 + + 41
----
48
-126522

query I rowsort
SELECT - 73 * 12 * - 64 * + 74 + + 21 + 75 * + 31
----
4151082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-133
SELECT ALL 42 * 70 * - 71, - 31 * + + 67 - 58 * - CAST( 72 AS SIGNED ) * + + 94 * - CAST( 78 AS SIGNED ) + ( - COUNT( * ) ) AS col1
----
-208740
-30620510

skipif mysql # not compatible
query II rowsort label-133
SELECT ALL 42 * 70 * - 71, - 31 * + + 67 - 58 * - CAST ( 72 AS INTEGER ) * + + 94 * - CAST ( 78 AS INTEGER ) + ( - COUNT ( * ) ) AS col1
----
-208740
-30620510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-134
SELECT DISTINCT COALESCE ( + 52, 43 DIV + 3 + + MIN( 36 ) + + 38, 7 DIV + 35 * - 68 + + CASE + - 76 WHEN 32 + - + 72 * + 9 THEN NULLIF ( + + 36, + 77 ) * + + 82 * - ( 6 ) + + ( - 78 ) WHEN + 67 + + 73 THEN NULL END ) + - COUNT( * ) * 30 * + 82
----
-2408

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT COALESCE ( + 52, 43 / + 3 + + MIN ( 36 ) + + 38, 7 / + 35 * - 68 + + CASE + - 76 WHEN 32 + - + 72 * + 9 THEN NULLIF ( + + 36, + 77 ) * + + 82 * - ( 6 ) + + ( - 78 ) WHEN + 67 + + 73 THEN NULL END ) + - COUNT ( * ) * 30 * + 82
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL + 27 + 16 + - + 99 * - ( + COUNT( * ) ) * - ( - 59 )
----
5884

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + 27 + 16 + - + 99 * - ( + COUNT ( * ) ) * - ( - 59 )
----
5884

query I rowsort
SELECT DISTINCT - 73 + 71 AS col1
----
-2

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

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

query I rowsort
SELECT ALL - 88 col0
----
-88

query I rowsort
SELECT 27 * 41
----
1107

query I rowsort
SELECT DISTINCT 69 + - 31 + + - 55 * 14
----
-732

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

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

query I rowsort
SELECT 52 * 90
----
4680

query I rowsort
SELECT ALL - 83 * 10
----
-830

query I rowsort
SELECT 59 + 79 col2
----
138

query I rowsort
SELECT DISTINCT 34 - 89 AS col0
----
-55

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

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT - 65 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL 68 - CASE COUNT( * ) WHEN 64 * + 71 + 22 THEN + 86 + - ( + 24 + + 13 ) WHEN MIN( 3 ) THEN COUNT( * ) ELSE + 9 + - 88 END
----
147

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL 68 - CASE COUNT ( * ) WHEN 64 * + 71 + 22 THEN + 86 + - ( + 24 + + 13 ) WHEN MIN ( 3 ) THEN COUNT ( * ) ELSE + 9 + - 88 END
----
147

query I rowsort
SELECT 78 * - 69
----
-5382

query I rowsort
SELECT DISTINCT - 66 * 94
----
-6204

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT MAX( 84 ) + + 83
----
167

skipif mysql # not compatible
query I rowsort label-150
SELECT MAX ( 84 ) + + 83
----
167

query I rowsort
SELECT 97 * ( + 15 * + ( - 43 ) ) AS col2
----
-62565

query I rowsort
SELECT 68 * 47
----
3196

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT ALL + 21 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + 21 / 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT 93 * SUM( + 58 * - 63 ) AS col1
----
-339822

skipif mysql # not compatible
query I rowsort label-155
SELECT 93 * SUM ( + 58 * - 63 ) AS col1
----
-339822

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

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

query I rowsort
SELECT 83 * + 50 AS col0
----
4150

query I rowsort
SELECT DISTINCT + 3 + - 38 col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT 2 DIV NULLIF ( 89, 33 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-159
SELECT 2 / NULLIF ( 89, 33 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT NULLIF ( 6, 64 * 26 ) DIV - 1
----
-6

skipif mysql # not compatible
query I rowsort label-160
SELECT NULLIF ( 6, 64 * 26 ) / - 1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-161
SELECT - 32 DIV 91 - - ( - MAX( 56 ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-161
SELECT - 32 / 91 - - ( - MAX ( 56 ) ) AS col1
----
-56

query I rowsort
SELECT ALL - 58 + 61
----
3

query I rowsort
SELECT ALL + 86 + 48 AS col2
----
134

query I rowsort
SELECT ALL 88 + + 66 * - 47
----
-3014

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT COUNT( * ) + + 81 col2
----
82

skipif mysql # not compatible
query I rowsort label-165
SELECT COUNT ( * ) + + 81 col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-166
SELECT - 87 * 6 + - NULLIF ( - COUNT( * ) + 64, + CAST( NULL AS SIGNED ) + CAST( + 47 + + 69 * CASE + COUNT( * ) * + 10 + - 64 WHEN - 83 * 69 THEN + CASE 3 WHEN CAST( NULL AS DECIMAL ) + 59 * 98 THEN COUNT( * ) * + 27 ELSE 25 END END AS DECIMAL ) * - 50 ) DIV COUNT( * )
----
-585

skipif mysql # not compatible
query I rowsort label-166
SELECT - 87 * 6 + - NULLIF ( - COUNT ( * ) + 64, + CAST ( NULL AS INTEGER ) + CAST ( + 47 + + 69 * CASE + COUNT ( * ) * + 10 + - 64 WHEN - 83 * 69 THEN + CASE 3 WHEN CAST ( NULL AS REAL ) + 59 * 98 THEN COUNT ( * ) * + 27 ELSE 25 END END AS REAL ) * - 50 ) / COUNT ( * )
----
-585

query I rowsort
SELECT 36 + + 31 col0
----
67

query I rowsort
SELECT ALL 29 + - 73 AS col0
----
-44

query I rowsort
SELECT DISTINCT 87 * + 76 AS col2
----
6612

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

query I rowsort
SELECT DISTINCT ( 72 ) * + 42 col1
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-172
SELECT ALL - 60 - CASE - 69 + 75 * CASE + ( 89 ) WHEN - 94 THEN - CAST( NULL AS SIGNED ) ELSE - 43 * ( 5 ) END WHEN 62 + 85 THEN NULL WHEN 73 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - 60 - CASE - 69 + 75 * CASE + ( 89 ) WHEN - 94 THEN - CAST ( NULL AS INTEGER ) ELSE - 43 * ( 5 ) END WHEN 62 + 85 THEN NULL WHEN 73 THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT + CAST( NULL AS SIGNED ) * 47 + COUNT( * ) / - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT + CAST ( NULL AS INTEGER ) * 47 + COUNT ( * ) / - 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL + 79 - - 26 * + SUM( DISTINCT 32 * 33 )
----
27535

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL + 79 - - 26 * + SUM ( DISTINCT 32 * 33 )
----
27535

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

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

query I rowsort
SELECT + 18 + 69
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-177
SELECT - 57 DIV CAST( 38 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-177
SELECT - 57 / CAST ( 38 AS INTEGER )
----
-1

query I rowsort
SELECT - 27 * 77
----
-2079

query I rowsort
SELECT - 31 + - 1 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + MAX( DISTINCT - 45 ) * - 26 AS col0
----
1170

skipif mysql # not compatible
query I rowsort label-180
SELECT + MAX ( DISTINCT - 45 ) * - 26 AS col0
----
1170

onlyif mysql # DIV for integer division: 
query I rowsort label-181
SELECT DISTINCT 45 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT 45 / - 38
----
-1

query I rowsort
SELECT + 84 + + 54 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL COALESCE ( COUNT( + 96 ), - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL COALESCE ( COUNT ( + 96 ), - 14 )
----
1

query I rowsort
SELECT DISTINCT + 94 * 9 AS col2
----
846

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

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

query I rowsort
SELECT DISTINCT 86 * + 49 AS col2
----
4214

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT + 60 + 4 DIV + 49 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-187
SELECT + 60 + 4 / + 49 AS col2
----
60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-190
SELECT ALL + 1 + - 86 * CASE - COUNT( ALL - CAST( NULL AS SIGNED ) ) WHEN - 28 THEN 90 + + 57 ELSE + 61 DIV 32 END AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + 1 + - 86 * CASE - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) WHEN - 28 THEN 90 + + 57 ELSE + 61 / 32 END AS col2
----
-85

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

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

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

query I rowsort
SELECT DISTINCT + 38 * + 80 + + 8 * + 59
----
3512

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL + CASE 97 WHEN 7 - + COUNT( * ) THEN 15 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL + CASE 97 WHEN 7 - + COUNT ( * ) THEN 15 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 77 * - 26 + + 24 * COALESCE ( + 60, + 70 * - ( - 37 * + 27 ) - 49 )
----
3442

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT ALL COALESCE ( + - COALESCE ( + 20, + 10 ), - 50 DIV 74 ) * 94 + + 56 AS col0
----
-1824

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL COALESCE ( + - COALESCE ( + 20, + 10 ), - 50 / 74 ) * 94 + + 56 AS col0
----
-1824

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT DISTINCT + 82 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT + 82 / - 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT ALL + MIN( + 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + MIN ( + 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT MAX( - - 25 ) * 66 + + 86 AS col0
----
1736

skipif mysql # not compatible
query I rowsort label-201
SELECT MAX ( - - 25 ) * 66 + + 86 AS col0
----
1736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-202
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + 42 ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-202
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + 42 ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT COALESCE ( - + 25, + 94 * 12, - 21 ) AS col2
----
-25

query I rowsort
SELECT ALL + 90 * - 52 - - ( - 55 ) * 53
----
-7595

query I rowsort
SELECT - 58 * 58 AS col0
----
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT + COUNT( * ) + + NULLIF ( 96, 35 + + 37 ) + 53
----
150

skipif mysql # not compatible
query I rowsort label-206
SELECT + COUNT ( * ) + + NULLIF ( 96, 35 + + 37 ) + 53
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT - 35 * + MIN( DISTINCT 47 ) AS col0
----
-1645

skipif mysql # not compatible
query I rowsort label-207
SELECT - 35 * + MIN ( DISTINCT 47 ) AS col0
----
-1645

query I rowsort
SELECT - 93 * + 89
----
-8277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-209
SELECT ALL - CAST( + 89 AS SIGNED ) * - NULLIF ( - 34 * - COUNT( * ), 41 * - COUNT( * ) + 80 )
----
3026

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - CAST ( + 89 AS INTEGER ) * - NULLIF ( - 34 * - COUNT ( * ), 41 * - COUNT ( * ) + 80 )
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT DISTINCT + NULLIF ( 83, NULLIF ( ( 28 ), 2 * - 81 ) / 39 + COUNT( * ) ) * 37 AS col2
----
3071

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT + NULLIF ( 83, NULLIF ( ( 28 ), 2 * - 81 ) / 39 + COUNT ( * ) ) * 37 AS col2
----
3071

query I rowsort
SELECT COALESCE ( + 36, 32 * - 15, + 43 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-212
SELECT ALL + CAST( + + 97 AS SIGNED ) * + COUNT( * ) - 13 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL + CAST ( + + 97 AS INTEGER ) * + COUNT ( * ) - 13 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT NULLIF ( + + 38, + 97 * COUNT( * ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-213
SELECT NULLIF ( + + 38, + 97 * COUNT ( * ) ) AS col2
----
38

query I rowsort
SELECT ALL - 18 * + ( 4 ) - 50 * 37
----
-1922

query I rowsort
SELECT + CASE + + 60 WHEN - 93 + + 3 * 55 THEN 40 END * 12 AS col2
----
NULL

query I rowsort
SELECT - 28 * 20 AS col1
----
-560

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

skipif mysql # not compatible
query I rowsort label-217
SELECT - COUNT ( 91 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL - 57 * + COUNT( DISTINCT COALESCE ( 78, 73 ) ) * SUM( DISTINCT 25 )
----
-1425

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - 57 * + COUNT ( DISTINCT COALESCE ( 78, 73 ) ) * SUM ( DISTINCT 25 )
----
-1425

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT DISTINCT + - 24 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT + - 24 / + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT ALL + COUNT( * ) * + MIN( 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL + COUNT ( * ) * + MIN ( 83 ) AS col0
----
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT - CASE 5 WHEN 26 * 56 + 69 THEN + 31 * - ( ( COUNT( * ) ) ) ELSE NULL END + 9 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - CASE 5 WHEN 26 * 56 + 69 THEN + 31 * - ( ( COUNT ( * ) ) ) ELSE NULL END + 9 * 49
----
NULL

query I rowsort
SELECT + 48 + - + 5 * 71
----
-307

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT + 57 DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-224
SELECT + 57 / - 80 AS col2
----
0

query I rowsort
SELECT + + 35 + + + 75 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT + 30 + - 64 * - COUNT( * ) col1
----
94

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT + 30 + - 64 * - COUNT ( * ) col1
----
94

query I rowsort
SELECT + - 60 + + + 62
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT + 25 / 57 * + CASE - MIN( ALL 82 ) WHEN 98 THEN + SUM( + 60 ) * 67 - - 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT + 25 / 57 * + CASE - MIN ( ALL 82 ) WHEN 98 THEN + SUM ( + 60 ) * 67 - - 66 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 31 + - ( - + 75 )
----
106

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

query II rowsort
SELECT DISTINCT 79 AS col1, - 86 * 81 * 16 + + 17 AS col2
----
79
-111439

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT - ( - CASE + 24 WHEN 5 * 21 + COUNT( * ) THEN + 69 WHEN 68 * 21 + 52 * COUNT( * ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT - ( - CASE + 24 WHEN 5 * 21 + COUNT ( * ) THEN + 69 WHEN 68 * 21 + 52 * COUNT ( * ) THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-233
SELECT - CASE - 70 WHEN - 18 THEN 54 WHEN - CAST( 41 AS SIGNED ) THEN NULL END * 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-233
SELECT - CASE - 70 WHEN - 18 THEN 54 WHEN - CAST ( 41 AS INTEGER ) THEN NULL END * 65 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-234
SELECT + CAST( NULL AS SIGNED ) AS col0, + ( ( - 25 ) ) AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-234
SELECT + CAST ( NULL AS INTEGER ) AS col0, + ( ( - 25 ) ) AS col1
----
NULL
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT ALL + 46 DIV 31 * ( 45 ) - + 73 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + 46 / 31 * ( 45 ) - + 73 AS col1
----
-28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT ALL - 69 DIV + 87 - + + 37 col0
----
-37

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL - 69 / + 87 - + + 37 col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT + NULLIF ( + COUNT( - 88 ), ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT + NULLIF ( + COUNT ( - 88 ), ( - COUNT ( * ) ) )
----
1

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

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - COUNT ( * ) / + 64 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-240
SELECT - 5 * - - COUNT ( ALL + 30 ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-241
SELECT + 75 + - COALESCE ( + 28, CASE - 49 WHEN 53 * COUNT( * ) THEN 12 - MIN( DISTINCT ( + CAST( 68 AS SIGNED ) ) ) DIV 1 END + - 25 DIV - 99 ) + 40 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-241
SELECT + 75 + - COALESCE ( + 28, CASE - 49 WHEN 53 * COUNT ( * ) THEN 12 - MIN ( DISTINCT ( + CAST ( 68 AS INTEGER ) ) ) / 1 END + - 25 / - 99 ) + 40 AS col2
----
87

query I rowsort
SELECT - 40 * - + 49 * - 17
----
-33320

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT ALL - 33 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL - 33 / 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT 97 * COUNT( * ) + - 8 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-244
SELECT 97 * COUNT ( * ) + - 8 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-245
SELECT - 57 - + NULLIF ( - COUNT( * ), CASE CAST( 89 AS DECIMAL ) WHEN 94 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 52 END * + 54 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-245
SELECT - 57 - + NULLIF ( - COUNT ( * ), CASE CAST ( 89 AS REAL ) WHEN 94 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 52 END * + 54 ) AS col0
----
-56

query I rowsort
SELECT - + 46 * + + 61
----
-2806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-247
SELECT + 30 * COUNT( * ) + + 54 + + CAST( + 39 AS SIGNED ) * + 60
----
2424

skipif mysql # not compatible
query I rowsort label-247
SELECT + 30 * COUNT ( * ) + + 54 + + CAST ( + 39 AS INTEGER ) * + 60
----
2424

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-248
SELECT ALL - + 56 AS col1, SUM( - 20 ) * COALESCE ( + 46, - CASE CASE + NULLIF ( - 93, COUNT( * ) ) WHEN + 65 THEN NULL ELSE - 10 END WHEN 40 - - 20 THEN + AVG ( DISTINCT 38 ) - - 77 WHEN 97 * + 79 THEN NULL END DIV - 6 - 11 )
----
-56
-920

skipif mysql # not compatible
query II rowsort label-248
SELECT ALL - + 56 AS col1, SUM ( - 20 ) * COALESCE ( + 46, - CASE CASE + NULLIF ( - 93, COUNT ( * ) ) WHEN + 65 THEN NULL ELSE - 10 END WHEN 40 - - 20 THEN + AVG ( DISTINCT 38 ) - - 77 WHEN 97 * + 79 THEN NULL END / - 6 - 11 )
----
-56
-920

query I rowsort
SELECT 54 * 29
----
1566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-250
SELECT CASE - 26 WHEN - 40 THEN CAST( NULL AS SIGNED ) / - 9 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-250
SELECT CASE - 26 WHEN - 40 THEN CAST ( NULL AS INTEGER ) / - 9 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT 13 * MAX( DISTINCT + COALESCE ( 7, 59 ) ) * + ( - 73 * + ( COUNT( * ) ) - 24 )
----
-8827

skipif mysql # not compatible
query I rowsort label-251
SELECT 13 * MAX ( DISTINCT + COALESCE ( 7, 59 ) ) * + ( - 73 * + ( COUNT ( * ) ) - 24 )
----
-8827

query I rowsort
SELECT ALL + 27 + 23 col2
----
50

query I rowsort
SELECT + 53 + - + 20 AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT ( 91 ) + + COUNT( 90 ) + ( 26 - - 83 ) DIV ( - 90 * - 31 + 97 * - NULLIF ( 45 + 33, - COUNT( * ) * 86 ) )
----
92

skipif mysql # not compatible
query I rowsort label-254
SELECT ( 91 ) + + COUNT ( 90 ) + ( 26 - - 83 ) / ( - 90 * - 31 + 97 * - NULLIF ( 45 + 33, - COUNT ( * ) * 86 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT + + SUM( ALL - - 64 ) * - 78
----
-4992

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT + + SUM ( ALL - - 64 ) * - 78
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT ALL - COUNT( * ) + - 54
----
-55

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

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

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

query I rowsort
SELECT - 46 * + NULLIF ( + 54, + 55 )
----
-2484

query I rowsort
SELECT 61 + + + CASE 99 WHEN 27 - 87 THEN NULL ELSE CASE + 51 WHEN 44 THEN - 37 * 64 END END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-261
SELECT - CASE + - ( 30 ) WHEN + CAST( - 70 AS SIGNED ) * + ( 20 + 79 ) THEN COUNT( * ) ELSE ( 33 ) END
----
-33

skipif mysql # not compatible
query I rowsort label-261
SELECT - CASE + - ( 30 ) WHEN + CAST ( - 70 AS INTEGER ) * + ( 20 + 79 ) THEN COUNT ( * ) ELSE ( 33 ) END
----
-33

query I rowsort
SELECT + 29 + - + 60 + + 90 col2
----
59

query I rowsort
SELECT DISTINCT - 73 + - 48 + - + ( - 42 ) AS col0
----
-79

query I rowsort
SELECT - 78 + + 92 + 24
----
38

query I rowsort
SELECT DISTINCT + + NULLIF ( - 15, - - 2 - 45 ) + + 72 * + 1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT ALL - + 54 DIV + ( + 90 ) * + ( 96 * 47 ) + - 8 * + 83
----
-664

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL - + 54 / + ( + 90 ) * + ( 96 * 47 ) + - 8 * + 83
----
-664

query I rowsort
SELECT DISTINCT 13 + 93 AS col1
----
106

query I rowsort
SELECT DISTINCT - 82 * + 53 AS col2
----
-4346

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT 8 + 33 DIV 21 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-269
SELECT 8 + 33 / 21 AS col1
----
9

query I rowsort
SELECT 11 * ( - 76 )
----
-836

query I rowsort
SELECT 18 + - 63 col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT 53 - - CAST( NULL AS SIGNED ) * 98 / + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT 53 - - CAST ( NULL AS INTEGER ) * 98 / + - 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT COUNT( * ) + + 58 - 60 * 61 DIV 84
----
16

skipif mysql # not compatible
query I rowsort label-273
SELECT COUNT ( * ) + + 58 - 60 * 61 / 84
----
16

query I rowsort
SELECT 37 * - 38
----
-1406

query I rowsort
SELECT 43 + 92 + - 19 AS col0
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT + 18 DIV 9 + - NULLIF ( + COALESCE ( 81, 94 + 82 ), + 67 ) * - 22 AS col0
----
1784

skipif mysql # not compatible
query I rowsort label-276
SELECT + 18 / 9 + - NULLIF ( + COALESCE ( 81, 94 + 82 ), + 67 ) * - 22 AS col0
----
1784

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL CASE 52 WHEN COUNT( * ) THEN - - COUNT( * ) + 78 END / 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL CASE 52 WHEN COUNT ( * ) THEN - - COUNT ( * ) + 78 END / 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT COUNT( ALL + 5 ) + 77 + - 34 * 56
----
-1826

skipif mysql # not compatible
query I rowsort label-278
SELECT COUNT ( ALL + 5 ) + 77 + - 34 * 56
----
-1826

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

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

query I rowsort
SELECT DISTINCT - + 23 * + NULLIF ( - 83, 9 + - 62 )
----
1909

query I rowsort
SELECT 7 * - ( - 79 ) AS col1
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL COUNT( * ) + - 0 + - 35 + - 34 - + COUNT( * ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL COUNT ( * ) + - 0 + - 35 + - 34 - + COUNT ( * ) col0
----
-69

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-284
SELECT ( 44 ) DIV + NULLIF ( COUNT( * ), - 90 * - 18 )
----
44

skipif mysql # not compatible
query I rowsort label-284
SELECT ( 44 ) / + NULLIF ( COUNT ( * ), - 90 * - 18 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT DISTINCT + 2 + + 31 + + ( 31 ) + - ( CAST( 68 AS SIGNED ) ) * + COUNT( ALL - 11 )
----
-4

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT + 2 + + 31 + + ( 31 ) + - ( CAST ( 68 AS INTEGER ) ) * + COUNT ( ALL - 11 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL + ( + 52 ) + - 50 * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL + ( + 52 ) + - 50 * COUNT ( * )
----
2

query I rowsort
SELECT ALL + 69 * + 15 AS col1
----
1035

query I rowsort
SELECT DISTINCT - + 52 * - 77 AS col0
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL + COUNT( * ) - 86
----
-85

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL + COUNT ( * ) - 86
----
-85

query I rowsort
SELECT 11 + + + 87 col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT + ( + + CAST( - 44 AS SIGNED ) ) - + COUNT( * ) * + CAST( + 92 AS SIGNED ) * ( 11 )
----
-1056

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + ( + + CAST ( - 44 AS INTEGER ) ) - + COUNT ( * ) * + CAST ( + 92 AS INTEGER ) * ( 11 )
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT 63 + ( - 30 ) * + MIN( DISTINCT + 82 ) AS col2
----
-2397

skipif mysql # not compatible
query I rowsort label-292
SELECT 63 + ( - 30 ) * + MIN ( DISTINCT + 82 ) AS col2
----
-2397

query II rowsort
SELECT - 83 AS col0, + 5 * + 58 * + + 76 * - + 22
----
-83
-484880

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT SUM( - ( - + ( + 74 ) ) ) + - ( 58 )
----
16

skipif mysql # not compatible
query I rowsort label-294
SELECT SUM ( - ( - + ( + 74 ) ) ) + - ( 58 )
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT ALL COUNT( DISTINCT ( - 38 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL COUNT ( DISTINCT ( - 38 ) ) AS col1
----
1

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

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

query I rowsort
SELECT ALL + 33 * + 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT 42 - + - 60 DIV 99 + + 79
----
121

skipif mysql # not compatible
query I rowsort label-299
SELECT 42 - + - 60 / 99 + + 79
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT CASE 60 WHEN + + 56 * + - 7 * + 15 + - 35 + 23 * - 73 THEN NULL WHEN - 29 * CAST( NULL AS SIGNED ) THEN 80 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-300
SELECT CASE 60 WHEN + + 56 * + - 7 * + 15 + - 35 + 23 * - 73 THEN NULL WHEN - 29 * CAST ( NULL AS INTEGER ) THEN 80 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT - COUNT( * ) * + 59 * + 66 AS col1
----
-3894

skipif mysql # not compatible
query I rowsort label-302
SELECT - COUNT ( * ) * + 59 * + 66 AS col1
----
-3894

query I rowsort
SELECT + ( - 4 ) * 48 * - 48
----
9216

query I rowsort
SELECT + 4 * + 81 AS col1
----
324

query I rowsort
SELECT ALL 26 * + - 70 + 34
----
-1786

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + 21 - + ( - COUNT( ALL + 71 ) ) * - + NULLIF ( 83, - ( - 6 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-307
SELECT + 21 - + ( - COUNT ( ALL + 71 ) ) * - + NULLIF ( 83, - ( - 6 ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT DISTINCT - 26 * - 6 + COUNT( * ) + - 74 * + 33 + 35 AS col2
----
-2250

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT - 26 * - 6 + COUNT ( * ) + - 74 * + 33 + 35 AS col2
----
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT ALL 67 * + 27 + - + 75 * 52 * - ( 71 ) + + MAX( - 95 ) * 79
----
271204

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL 67 * + 27 + - + 75 * 52 * - ( 71 ) + + MAX ( - 95 ) * 79
----
271204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-310
SELECT + + COALESCE ( - 86, + 45, - + 73 DIV 64 ) + - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-310
SELECT + + COALESCE ( - 86, + 45, - + 73 / 64 ) + - COUNT ( * ) AS col0
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT 45 * - - 97 + COUNT( * ) + - 22 AS col2
----
4344

skipif mysql # not compatible
query I rowsort label-312
SELECT 45 * - - 97 + COUNT ( * ) + - 22 AS col2
----
4344

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + 71 - + SUM( ( + 13 ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-313
SELECT + 71 - + SUM ( ( + 13 ) ) AS col0
----
58

query I rowsort
SELECT ALL 41 * 50 AS col1
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT ALL - + ( - 57 ) * + 42 + + MIN( - NULLIF ( 96, - 14 ) )
----
2298

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL - + ( - 57 ) * + 42 + + MIN ( - NULLIF ( 96, - 14 ) )
----
2298

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT + 37 + 5 * COUNT( * ) * + 31 * - 3
----
-428

skipif mysql # not compatible
query I rowsort label-316
SELECT + 37 + 5 * COUNT ( * ) * + 31 * - 3
----
-428

query I rowsort
SELECT ALL - 73 * + 26
----
-1898

query I rowsort
SELECT + ( 12 ) + - 13
----
-1

query II rowsort
SELECT ALL + + 90 AS col0, 98
----
90
98

query I rowsort
SELECT - 95 * 58 + - 47 AS col0
----
-5557

query I rowsort
SELECT ALL - 23 - - 99 + - 63 * - 38
----
2470

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-323
SELECT - CASE - 4 WHEN + NULLIF ( - 52, 42 ) + + 38 THEN NULL ELSE - MIN( - 15 ) * CAST( 32 + 57 AS SIGNED ) END
----
-1335

skipif mysql # not compatible
query I rowsort label-323
SELECT - CASE - 4 WHEN + NULLIF ( - 52, 42 ) + + 38 THEN NULL ELSE - MIN ( - 15 ) * CAST ( 32 + 57 AS INTEGER ) END
----
-1335

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT - COUNT( * ) + 22 + CASE - MIN( ALL - - 54 ) WHEN - COUNT( * ) * + ( + 16 ) THEN - 88 * + 10 WHEN COUNT( * ) THEN + 54 + 44 END + + 58 / + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-324
SELECT - COUNT ( * ) + 22 + CASE - MIN ( ALL - - 54 ) WHEN - COUNT ( * ) * + ( + 16 ) THEN - 88 * + 10 WHEN COUNT ( * ) THEN + 54 + 44 END + + 58 / + 8 AS col0
----
NULL

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

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

query I rowsort
SELECT + 42 * + 96
----
4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-327
SELECT - 7 + 54 AS col0, - 73 DIV 70 * 75 * - COUNT( * ) AS col1
----
47
75

skipif mysql # not compatible
query II rowsort label-327
SELECT - 7 + 54 AS col0, - 73 / 70 * 75 * - COUNT ( * ) AS col1
----
47
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-329
SELECT ALL - 64 * + CAST( - 4 AS SIGNED ) * + 72 + CAST( NULL AS SIGNED ) + + + ( 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - 64 * + CAST ( - 4 AS INTEGER ) * + 72 + CAST ( NULL AS INTEGER ) + + + ( 6 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-330
SELECT - SUM( 25 ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-330
SELECT - SUM ( 25 ) / 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT ALL ( - NULLIF ( ( 26 ), - ( CAST( NULL AS SIGNED ) ) ) ) * - 14
----
364

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL ( - NULLIF ( ( 26 ), - ( CAST ( NULL AS INTEGER ) ) ) ) * - 14
----
364

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

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT + SUM( - 28 ) + 58
----
30

skipif mysql # not compatible
query I rowsort label-333
SELECT + SUM ( - 28 ) + 58
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-334
SELECT DISTINCT CASE + 17 WHEN ( + NULLIF ( - + COUNT( * ), ( + 73 ) * CAST( NULL AS SIGNED ) + + 23 ) ) THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT CASE + 17 WHEN ( + NULLIF ( - + COUNT ( * ), ( + 73 ) * CAST ( NULL AS INTEGER ) + + 23 ) ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 52 + + 9 AS col0
----
-43

query I rowsort
SELECT DISTINCT + 20 + - ( - - 58 ) * + 3
----
-154

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

query I rowsort
SELECT ALL + 2 + - - 46 AS col1
----
48

query I rowsort
SELECT DISTINCT CASE + COALESCE ( + + 41, - + 14, - 7 ) WHEN + + NULLIF ( + 60, 91 ) * 20 THEN - 96 / 93 WHEN 64 * - 44 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ALL NULLIF ( - + COUNT( * ), 30 * ( 49 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL NULLIF ( - + COUNT ( * ), 30 * ( 49 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT DISTINCT 16 DIV + - 56 * + 21 * - 86 + + + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT 16 / + - 56 * + 21 * - 86 + + + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT DISTINCT + 58, ( + COUNT( * ) ) + + - 15 * + SUM( - 0 ) col1
----
58
1

skipif mysql # not compatible
query II rowsort label-342
SELECT DISTINCT + 58, ( + COUNT ( * ) ) + + - 15 * + SUM ( - 0 ) col1
----
58
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-343
SELECT ALL - 40 * COALESCE ( + 28, - - 21 + - + ( MAX( - 69 ) ) + CAST( - 69 AS SIGNED ) ) AS col1
----
-1120

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - 40 * COALESCE ( + 28, - - 21 + - + ( MAX ( - 69 ) ) + CAST ( - 69 AS INTEGER ) ) AS col1
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT ALL 15 / + ( - COUNT( * ) ) + + + ( - ( - CAST( + COUNT( * ) AS SIGNED ) ) ) * CASE 86 + + 17 * 61 WHEN 62 THEN 27 + 25 END + + 40 * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL 15 / + ( - COUNT ( * ) ) + + + ( - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) ) * CASE 86 + + 17 * 61 WHEN 62 THEN 27 + 25 END + + 40 * 78 AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT DISTINCT 65 DIV - + 28 + 77
----
75

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT 65 / - + 28 + 77
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT + - COALESCE ( - - 90, + + 50 * - 59 DIV + + COUNT( * ) * + - 72 )
----
-90

skipif mysql # not compatible
query I rowsort label-347
SELECT + - COALESCE ( - - 90, + + 50 * - 59 / + + COUNT ( * ) * + - 72 )
----
-90

query II rowsort
SELECT - 6, 62 * 9 col0
----
-6
558

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT - + 8 DIV + NULLIF ( + - 93, + - 99 * 69 + 11 ) + 15
----
15

skipif mysql # not compatible
query I rowsort label-349
SELECT - + 8 / + NULLIF ( + - 93, + - 99 * 69 + 11 ) + 15
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-350
SELECT ALL + 59 AS col2, 64 + - COUNT( + 18 ) DIV 48 * + - MAX( ALL - 88 ) col0
----
59
64

skipif mysql # not compatible
query II rowsort label-350
SELECT ALL + 59 AS col2, 64 + - COUNT ( + 18 ) / 48 * + - MAX ( ALL - 88 ) col0
----
59
64

query II rowsort
SELECT DISTINCT + - 0 AS col0, + 89
----
0
89

query I rowsort
SELECT ALL + 6 * + 9 - 68 AS col1
----
-14

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

onlyif mysql # DIV for integer division: 
query II rowsort label-354
SELECT + 41, 59 DIV 6 AS col2
----
41
9

skipif mysql # not compatible
query II rowsort label-354
SELECT + 41, 59 / 6 AS col2
----
41
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-355
SELECT - 51 * + NULLIF ( - 88, 33 - CASE - NULLIF ( MAX( DISTINCT + CAST( 96 AS SIGNED ) ), - COALESCE ( + 57, - 92 * - COUNT( * ) ) ) WHEN 18 * + 63 THEN - 25 * 0 END ) * 63 - - 31 AS col1
----
282775

skipif mysql # not compatible
query I rowsort label-355
SELECT - 51 * + NULLIF ( - 88, 33 - CASE - NULLIF ( MAX ( DISTINCT + CAST ( 96 AS INTEGER ) ), - COALESCE ( + 57, - 92 * - COUNT ( * ) ) ) WHEN 18 * + 63 THEN - 25 * 0 END ) * 63 - - 31 AS col1
----
282775

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT + - CASE + 35 WHEN + - 45 - + 6 * 98 * 17 * + ( + COUNT( * ) ) THEN - COALESCE ( + 95, - 99, 64 + 98 * - 7 ) WHEN + 55 / ( 12 ) THEN - 13 * - 99 + 6 * - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT + - CASE + 35 WHEN + - 45 - + 6 * 98 * 17 * + ( + COUNT ( * ) ) THEN - COALESCE ( + 95, - 99, 64 + 98 * - 7 ) WHEN + 55 / ( 12 ) THEN - 13 * - 99 + 6 * - 92 END
----
NULL

query I rowsort
SELECT + 15 - - + 91 * - 57 + + 47 AS col1
----
-5125

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT DISTINCT MAX( DISTINCT + + 53 ) * - + 63 AS col2
----
-3339

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT MAX ( DISTINCT + + 53 ) * - + 63 AS col2
----
-3339

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT + 19 * COUNT( * ) AS col0, + 25 AS col2
----
19
25

skipif mysql # not compatible
query II rowsort label-359
SELECT + 19 * COUNT ( * ) AS col0, + 25 AS col2
----
19
25

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

query I rowsort
SELECT + CASE + + 40 WHEN + + 89 THEN - - 17 + 12 END * 45 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-362
SELECT ALL + 43 * + 16 + + NULLIF ( - + 34, + + ( + CAST( 85 AS SIGNED ) ) ) - + 30 DIV ( + 48 + + 54 )
----
654

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL + 43 * + 16 + + NULLIF ( - + 34, + + ( + CAST ( 85 AS INTEGER ) ) ) - + 30 / ( + 48 + + 54 )
----
654

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

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

query I rowsort
SELECT 88 + + - 13 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-365
SELECT ALL - 34 + + - 42 + - COALESCE ( - COUNT( * ), + 38 + - 70 + - - 80 ) DIV 15 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - 34 + + - 42 + - COALESCE ( - COUNT ( * ), + 38 + - 70 + - - 80 ) / 15 AS col2
----
-76

query I rowsort
SELECT DISTINCT - 61 * 75
----
-4575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-367
SELECT DISTINCT 46 + + - 87 * - 9 + CAST( NULL AS SIGNED ) + - 89 * - 98 - 4 * + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT 46 + + - 87 * - 9 + CAST ( NULL AS INTEGER ) + - 89 * - 98 - 4 * + 3 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + 89 + + 87 * + - 24
----
-1999

query I rowsort
SELECT DISTINCT 39 + 52 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-371
SELECT - 56 + + + CAST( NULL AS DECIMAL ) * - 75 * - 92 + + + MAX( DISTINCT + 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-371
SELECT - 56 + + + CAST ( NULL AS REAL ) * - 75 * - 92 + + + MAX ( DISTINCT + 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT COUNT( * ) * + 80 + - 92 + + 27 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-372
SELECT COUNT ( * ) * + 80 + - 92 + + 27 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-373
SELECT COUNT( * ) * - - 67 + 52 DIV 7
----
74

skipif mysql # not compatible
query I rowsort label-373
SELECT COUNT ( * ) * - - 67 + 52 / 7
----
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT ALL + + 87 - + 19 DIV - 48
----
87

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + + 87 - + 19 / - 48
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT + COUNT( * ) - ( + + 17 ) * + CASE - + 85 WHEN 9 THEN - COUNT( * ) WHEN AVG ( ALL - 23 ) * 66 THEN COUNT( * ) + + COALESCE ( 57, 12, - 31 * + COUNT( * ) ) ELSE - 94 * - 59 END
----
-94281

skipif mysql # not compatible
query I rowsort label-376
SELECT + COUNT ( * ) - ( + + 17 ) * + CASE - + 85 WHEN 9 THEN - COUNT ( * ) WHEN AVG ( ALL - 23 ) * 66 THEN COUNT ( * ) + + COALESCE ( 57, 12, - 31 * + COUNT ( * ) ) ELSE - 94 * - 59 END
----
-94281

query I rowsort
SELECT DISTINCT + 34 * - - ( - - 30 ) * + - 34
----
-34680

query I rowsort
SELECT DISTINCT + - 45 * 63 AS col2
----
-2835

query I rowsort
SELECT DISTINCT - NULLIF ( + 83, + + 58 )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-380
SELECT 95 + ( ( 54 ) ) + + COUNT( * ) DIV ( + 19 )
----
149

skipif mysql # not compatible
query I rowsort label-380
SELECT 95 + ( ( 54 ) ) + + COUNT ( * ) / ( + 19 )
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT - 56 DIV - - 8 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-381
SELECT - 56 / - - 8 AS col1
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT 52 * - COUNT( * ) + + 5 + 33 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-383
SELECT 52 * - COUNT ( * ) + + 5 + 33 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT 46 * CASE + 75 WHEN - 74 THEN NULL WHEN + - ( + + 40 ) - + - 54 * 87 THEN 59 * 91 WHEN - MIN( 82 ) / + MAX( 37 + 14 ) THEN + 73 ELSE 37 + 57 * - 81 END - + ( 64 ) * 47
----
-213688

skipif mysql # not compatible
query I rowsort label-384
SELECT 46 * CASE + 75 WHEN - 74 THEN NULL WHEN + - ( + + 40 ) - + - 54 * 87 THEN 59 * 91 WHEN - MIN ( 82 ) / + MAX ( 37 + 14 ) THEN + 73 ELSE 37 + 57 * - 81 END - + ( 64 ) * 47
----
-213688

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

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - MIN ( 74 )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-386
SELECT + 22 DIV - 3
----
-7

skipif mysql # not compatible
query I rowsort label-386
SELECT + 22 / - 3
----
-7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT 62 DIV - - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-388
SELECT 62 / - - 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ALL + 46 + SUM( + 18 )
----
64

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL + 46 + SUM ( + 18 )
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT - 65 * + - 15 + - 9 - - MAX( DISTINCT - 15 ) AS col0
----
951

skipif mysql # not compatible
query I rowsort label-391
SELECT - 65 * + - 15 + - 9 - - MAX ( DISTINCT - 15 ) AS col0
----
951

query I rowsort
SELECT 52 + - + 15 AS col2
----
37

query II rowsort
SELECT 51 AS col2, + 75 * - 33 AS col1
----
51
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL COUNT( * ) + + - 86
----
-85

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL COUNT ( * ) + + - 86
----
-85

query I rowsort
SELECT ALL 0 + + 88 * - 95 + - 29
----
-8389

query I rowsort
SELECT DISTINCT + 20 + - + 78 - + + 18 AS col1
----
-76

query II rowsort
SELECT ALL 2 col0, 94 * - 70 AS col2
----
2
-6580

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT CASE WHEN - 35 BETWEEN ( + - 7 * - - 35 + 53 + - ( COUNT( * ) ) * 44 * + 47 ) AND ( NULL ) THEN - 43 WHEN NOT ( + 81 ) NOT IN ( ( + 19 ) ) THEN NULL END + - 96 * - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT CASE WHEN - 35 BETWEEN ( + - 7 * - - 35 + 53 + - ( COUNT ( * ) ) * 44 * + 47 ) AND ( NULL ) THEN - 43 WHEN NOT ( + 81 ) NOT IN ( ( + 19 ) ) THEN NULL END + - 96 * - 14 AS col2
----
NULL

query I rowsort
SELECT ALL + ( - COALESCE ( - 61, - 73 * - - 85 ) ) + - 30 AS col0
----
31

query I rowsort
SELECT 71 * 35 AS col2
----
2485

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

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

query I rowsort
SELECT 12 - - 93 AS col1
----
105

query I rowsort
SELECT + 54 + - 1 + ( - + 68 ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-404
SELECT + CAST( NULL AS DECIMAL ) * + 71 / - MAX( DISTINCT 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT + CAST ( NULL AS REAL ) * + 71 / - MAX ( DISTINCT 15 ) AS col2
----
NULL

query I rowsort
SELECT + 37 + - - 88 col2
----
125

query I rowsort
SELECT ALL 7 - 61 AS col2
----
-54

query I rowsort
SELECT 92 + NULLIF ( 63, 76 ) - + 5
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-408
SELECT DISTINCT 46 DIV - 25 * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT 46 / - 25 * - - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-409
SELECT DISTINCT + COUNT( * ) DIV - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT + COUNT ( * ) / - 6 AS col0
----
0

query I rowsort
SELECT ALL 73 * + - 80 col2
----
-5840

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL - - MAX( DISTINCT + 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - - MAX ( DISTINCT + 4 ) AS col1
----
4

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

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

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

skipif mysql # not compatible
query I rowsort label-413
SELECT - 61 / COUNT ( * ) col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-414
SELECT - COUNT( * ) * - 60 * - 9 + - + CASE - 66 WHEN CAST( NULL AS DECIMAL ) * - 89 * - 32 THEN - 34 END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-414
SELECT - COUNT ( * ) * - 60 * - 9 + - + CASE - 66 WHEN CAST ( NULL AS REAL ) * - 89 * - 32 THEN - 34 END / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-415
SELECT - 44 * - CASE + 19 WHEN + 54 THEN NULL WHEN - - 62 THEN 73 END * CAST( NULL AS SIGNED ) * - - 53 + AVG ( 45 + + NULLIF ( 7 + 2, - 25 ) ) * CASE + 68 * 40 WHEN 86 THEN NULL ELSE 75 * 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-415
SELECT - 44 * - CASE + 19 WHEN + 54 THEN NULL WHEN - - 62 THEN 73 END * CAST ( NULL AS INTEGER ) * - - 53 + AVG ( 45 + + NULLIF ( 7 + 2, - 25 ) ) * CASE + 68 * 40 WHEN 86 THEN NULL ELSE 75 * 27 END
----
NULL

query II rowsort
SELECT ALL - + 14 col2, + 24
----
-14
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT CAST( + 59 AS SIGNED ) + + CAST( 59 AS SIGNED )
----
118

skipif mysql # not compatible
query I rowsort label-417
SELECT CAST ( + 59 AS INTEGER ) + + CAST ( 59 AS INTEGER )
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-418
SELECT ALL - + COUNT( * ) AS col1, 49 DIV 36 col2
----
-1
1

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

query I rowsort
SELECT ALL + - 74 * - 46 + ( 56 ) * 4
----
3628

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT ALL - SUM( ALL - 11 ) AS col1, + 80 + + 80 AS col1
----
11
160

skipif mysql # not compatible
query II rowsort label-420
SELECT ALL - SUM ( ALL - 11 ) AS col1, + 80 + + 80 AS col1
----
11
160

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT 65 * 25 AS col1, - 2 * COUNT( DISTINCT + 9 ) * 59
----
1625
-118

skipif mysql # not compatible
query II rowsort label-421
SELECT 65 * 25 AS col1, - 2 * COUNT ( DISTINCT + 9 ) * 59
----
1625
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-422
SELECT ALL - 6 + - COUNT( * ) AS col1, COUNT( * ) * 1 * - 9 + + 88 * - - 82 AS col0
----
-7
7207

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL - 6 + - COUNT ( * ) AS col1, COUNT ( * ) * 1 * - 9 + + 88 * - - 82 AS col0
----
-7
7207

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - 12 - + COUNT( * ) * + COALESCE ( + + ( + 34 ), + 22 * - 90 )
----
-46

skipif mysql # not compatible
query I rowsort label-423
SELECT - 12 - + COUNT ( * ) * + COALESCE ( + + ( + 34 ), + 22 * - 90 )
----
-46

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-425
SELECT COUNT( * ) * + ( + - 55 ) * + + 91 + + NULLIF ( 92, + 84 ) AS col2, + 93
----
-4913
93

skipif mysql # not compatible
query II rowsort label-425
SELECT COUNT ( * ) * + ( + - 55 ) * + + 91 + + NULLIF ( 92, + 84 ) AS col2, + 93
----
-4913
93

query I rowsort
SELECT ALL + 15 + - 2 * 61 - - - 5 + + 54
----
-58

query I rowsort
SELECT DISTINCT NULLIF ( - 32, 59 ) AS col1
----
-32

query I rowsort
SELECT DISTINCT CASE - + NULLIF ( + NULLIF ( - 96, 37 ), - - 94 ) WHEN 52 THEN + - 98 + + + 67 WHEN ( 54 ) THEN NULL ELSE - 39 END + - 25 * 46
----
-1189

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-429
SELECT + COUNT( * ) * + 28 - - MAX( + + 49 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT + COUNT ( * ) * + 28 - - MAX ( + + 49 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL CASE 14 WHEN SUM( ALL ( + 57 ) ) THEN - - 87 + 14 - - + 78 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL CASE 14 WHEN SUM ( ALL ( + 57 ) ) THEN - - 87 + 14 - - + 78 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 87 - 57 * + 46 + - - 96
----
-2439

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

skipif mysql # not compatible
query I rowsort label-432
SELECT - COUNT ( * ) * - ( 5 )
----
5

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

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

query I rowsort
SELECT DISTINCT - 89 - - 68 * + - 64 * + 83 AS col2
----
-361305

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

query II rowsort
SELECT + 45 + 69, 72 AS col1
----
114
72

query I rowsort
SELECT DISTINCT 51 - + 81 + NULLIF ( - 0, 54 + 69 ) * + ( - 83 ) + + COALESCE ( 52, - 42 ) col1
----
22

query I rowsort
SELECT + 65 * 52
----
3380

query I rowsort
SELECT ALL - 6 * 25
----
-150

query I rowsort
SELECT ALL 62 * + ( 12 )
----
744

query I rowsort
SELECT + + 45 * 23 * - + 64 AS col1
----
-66240

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

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL - ( + CAST ( + - AVG ( ALL - 12 ) AS INTEGER ) ) AS col0
----
-12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT + + 96 DIV + ( - - ( + 22 ) )
----
4

skipif mysql # not compatible
query I rowsort label-444
SELECT + + 96 / + ( - - ( + 22 ) )
----
4

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

query I rowsort
SELECT DISTINCT + 41 * - 74
----
-3034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-447
SELECT + ( - 64 ) DIV + 45 * - + CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-447
SELECT + ( - 64 ) / + 45 * - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + - 97 * - + 33 + + + COUNT( ALL 78 ) + SUM( ALL - + 64 ) + 91 + - MIN( ALL + 80 ) AS col1
----
3149

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + - 97 * - + 33 + + + COUNT ( ALL 78 ) + SUM ( ALL - + 64 ) + 91 + - MIN ( ALL + 80 ) AS col1
----
3149

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT DISTINCT - + ( 59 ) * - NULLIF ( - 80, + 93 * + 9 ) + 75 DIV 5 AS col0
----
-4705

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - + ( 59 ) * - NULLIF ( - 80, + 93 * + 9 ) + 75 / 5 AS col0
----
-4705

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT ALL 65 * COUNT( * ) + - CASE + COUNT( * ) WHEN + + 87 * - - 85 THEN + 29 * + 96 * + 50 END * + CAST( 24 * - 51 AS SIGNED ) + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL 65 * COUNT ( * ) + - CASE + COUNT ( * ) WHEN + + 87 * - - 85 THEN + 29 * + 96 * + 50 END * + CAST ( 24 * - 51 AS INTEGER ) + 63 AS col0
----
NULL

query I rowsort
SELECT ALL + - 65 * + COALESCE ( - ( - 10 ), 70 * + 72 + + 4 ) * 22 + + - ( 13 ) AS col2
----
-14313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-453
SELECT DISTINCT 92 * + + ( 23 ) - 26 + - - COUNT( * ) + + CAST( 83 AS SIGNED ) * CASE - 16 WHEN - 13 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 99 END
----
-6126

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT 92 * + + ( 23 ) - 26 + - - COUNT ( * ) + + CAST ( 83 AS INTEGER ) * CASE - 16 WHEN - 13 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 99 END
----
-6126

query I rowsort
SELECT DISTINCT + - 33 * + - 33 + - + 77
----
1012

query I rowsort
SELECT - 24 * + - 13 * + 10 * + 74 AS col1
----
230880

query I rowsort
SELECT ALL 76 * + + 74 + - 5 AS col2
----
5619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT + 36 + + - 31 / + - CAST( NULL AS SIGNED ) / - 73 + + COUNT( * ) + - 71 + + 29 * - 38 * + 29 / 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT + 36 + + - 31 / + - CAST ( NULL AS INTEGER ) / - 73 + + COUNT ( * ) + - 71 + + 29 * - 38 * + 29 / 91 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - + COALESCE ( 99, - 9 ), - - 39 - - 63 ) AS col0
----
-99

query I rowsort
SELECT DISTINCT 88 * - - 10 + + 18
----
898

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT - MAX( ALL 82 ) + COUNT( * ) + - 87 * 71 col2
----
-6258

skipif mysql # not compatible
query I rowsort label-460
SELECT - MAX ( ALL 82 ) + COUNT ( * ) + - 87 * 71 col2
----
-6258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT ALL CASE 52 WHEN - - COUNT( * ) THEN + 59 WHEN - 92 * + + COUNT( * ) * SUM( ( + CAST( NULL AS SIGNED ) ) ) * - 52 + COUNT( DISTINCT 27 ) THEN NULL END * - COUNT( * ) - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL CASE 52 WHEN - - COUNT ( * ) THEN + 59 WHEN - 92 * + + COUNT ( * ) * SUM ( ( + CAST ( NULL AS INTEGER ) ) ) * - 52 + COUNT ( DISTINCT 27 ) THEN NULL END * - COUNT ( * ) - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT NULLIF ( + + COUNT( * ), - COUNT( * ) * NULLIF ( + 90, - + 13 ) )
----
1

skipif mysql # not compatible
query I rowsort label-462
SELECT NULLIF ( + + COUNT ( * ), - COUNT ( * ) * NULLIF ( + 90, - + 13 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT - 56 * + CAST( - 96 AS SIGNED ) + + 7 col0
----
5383

skipif mysql # not compatible
query I rowsort label-463
SELECT - 56 * + CAST ( - 96 AS INTEGER ) + + 7 col0
----
5383

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT ALL NULLIF ( - COUNT( * ), - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL NULLIF ( - COUNT ( * ), - 81 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-466
SELECT - COUNT( * ) DIV 9
----
0

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

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

skipif mysql # not compatible
query I rowsort label-467
SELECT - MAX ( + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT DISTINCT + COUNT( * ) * + MAX( 44 ) * MAX( 72 ) AS col1
----
3168

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + COUNT ( * ) * + MAX ( 44 ) * MAX ( 72 ) AS col1
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL ( + CASE - - 64 WHEN + 77 THEN NULL WHEN - 76 THEN - CASE + MIN( 4 ) WHEN - 56 + - 12 * 82 THEN - COALESCE ( + AVG ( 83 ), - 11 ) * - 47 ELSE 57 END + - 15 * + 79 WHEN 62 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL ( + CASE - - 64 WHEN + 77 THEN NULL WHEN - 76 THEN - CASE + MIN ( 4 ) WHEN - 56 + - 12 * 82 THEN - COALESCE ( + AVG ( 83 ), - 11 ) * - 47 ELSE 57 END + - 15 * + 79 WHEN 62 THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT ( - COALESCE ( + - 89, + 39 ) )
----
89

query I rowsort
SELECT - 92 * - - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-472
SELECT - - COALESCE ( + COALESCE ( - CASE - - SUM( + 50 ) WHEN - + 3 THEN NULL WHEN + 4 THEN + + 68 ELSE NULL END, CAST( NULL AS SIGNED ) * - 80 * + 96 ), + COUNT( 56 ) + CASE WHEN NOT ( - 5 ) <= NULL THEN - CAST( NULL AS SIGNED ) + 42 ELSE 23 END ) + - 68 * 62
----
-4192

skipif mysql # not compatible
query I rowsort label-472
SELECT - - COALESCE ( + COALESCE ( - CASE - - SUM ( + 50 ) WHEN - + 3 THEN NULL WHEN + 4 THEN + + 68 ELSE NULL END, CAST ( NULL AS INTEGER ) * - 80 * + 96 ), + COUNT ( 56 ) + CASE WHEN NOT ( - 5 ) <= NULL THEN - CAST ( NULL AS INTEGER ) + 42 ELSE 23 END ) + - 68 * 62
----
-4192

query I rowsort
SELECT - 63 * - + 47
----
2961

query I rowsort
SELECT - + 49 + + + 2 * - 96 col0
----
-241

query I rowsort
SELECT - - ( + + 58 ) + - 17 + - 70
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-476
SELECT ALL + 69 / + - 34 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL + 69 / + - 34 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT - 25 + - 83 + - - 60 + - - 57 * COUNT( * ) - COUNT( ALL 66 ) * + 98 + 82 * + + 68 * MIN( + 89 ) + COUNT( + 37 )
----
496176

skipif mysql # not compatible
query I rowsort label-477
SELECT - 25 + - 83 + - - 60 + - - 57 * COUNT ( * ) - COUNT ( ALL 66 ) * + 98 + 82 * + + 68 * MIN ( + 89 ) + COUNT ( + 37 )
----
496176

query I rowsort
SELECT + + 0 * 39 AS col0
----
0

query I rowsort
SELECT ALL 76 col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT - 39 + - - 71 DIV + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-480
SELECT - 39 + - - 71 / + COUNT ( * ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT + COALESCE ( + 52, + 5 + - 28 * - 34 + + COUNT( * ), + 17 ) + 57
----
109

skipif mysql # not compatible
query I rowsort label-481
SELECT + COALESCE ( + 52, + 5 + - 28 * - 34 + + COUNT ( * ), + 17 ) + 57
----
109

query I rowsort
SELECT DISTINCT - 88 col0
----
-88

query I rowsort
SELECT - 52 * + 59
----
-3068

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL MAX( ALL - 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL MAX ( ALL - 21 ) AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-485
SELECT ALL MIN( + 82 ) * + 0 * + 73 + + + 37 + 30 + - + 86 - + CASE COUNT( DISTINCT 47 ) WHEN + 26 + 60 THEN NULL ELSE - ( + COALESCE ( 85, - 32 - - 15 DIV COALESCE ( - 80 * 96, 82 ) ) ) END * - CAST( + MAX( 22 ) AS SIGNED )
----
-1889

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL MIN ( + 82 ) * + 0 * + 73 + + + 37 + 30 + - + 86 - + CASE COUNT ( DISTINCT 47 ) WHEN + 26 + 60 THEN NULL ELSE - ( + COALESCE ( 85, - 32 - - 15 / COALESCE ( - 80 * 96, 82 ) ) ) END * - CAST ( + MAX ( 22 ) AS INTEGER )
----
-1889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-486
SELECT - CAST( - - 53 AS SIGNED ) * COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-486
SELECT - CAST ( - - 53 AS INTEGER ) * COUNT ( * ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT + COUNT( * ) + - + 80
----
-79

skipif mysql # not compatible
query I rowsort label-487
SELECT + COUNT ( * ) + - + 80
----
-79

query I rowsort
SELECT DISTINCT + 75 + + - 74 col1
----
1

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

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

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

query I rowsort
SELECT + + ( + 38 ) + COALESCE ( 9, - 7 ) * + ( 45 ) * - 50 * + ( 81 )
----
-1640212

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

query I rowsort
SELECT + - 73 + + + 2
----
-71

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

onlyif mysql # aggregate syntax: 
query II rowsort label-495
SELECT DISTINCT + + COUNT( DISTINCT - 57 ) * 55 AS col0, - 7 AS col2
----
55
-7

skipif mysql # not compatible
query II rowsort label-495
SELECT DISTINCT + + COUNT ( DISTINCT - 57 ) * 55 AS col0, - 7 AS col2
----
55
-7

query I rowsort
SELECT ALL 99 + + - 76 AS col0
----
23

query I rowsort
SELECT + 28 * - - 59 + + 16 AS col2
----
1668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT 51 / 13 + + - 5 - + + NULLIF ( - 98, - 85 * 39 + 91 + 16 ) / + 60 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT 51 / 13 + + - 5 - + + NULLIF ( - 98, - 85 * 39 + 91 + 16 ) / + 60 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 24 + + 76 AS col0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-500
SELECT DISTINCT 83 / - - CAST( NULL AS SIGNED ) AS col0, + 0 * - + 7 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-500
SELECT DISTINCT 83 / - - CAST ( NULL AS INTEGER ) AS col0, + 0 * - + 7 AS col0
----
NULL
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-501
SELECT CAST( NULL AS DECIMAL ) + - 45 + + 8 * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT CAST ( NULL AS REAL ) + - 45 + + 8 * - 32
----
NULL

query I rowsort
SELECT DISTINCT - 34 + + 73 - 46
----
-7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-504
SELECT DISTINCT 47 DIV + - 39
----
-1

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT 47 / + - 39
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-505
SELECT 83 col2, NULLIF ( - - 12, - COUNT( * ) ) * + + 53 + - 64 + + COUNT( * ) + + 47 / + 35 * - + CASE + + 90 WHEN - COALESCE ( + 1, 70 ) THEN 37 * + AVG ( ALL 27 ) + - COUNT( * ) END AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-505
SELECT 83 col2, NULLIF ( - - 12, - COUNT ( * ) ) * + + 53 + - 64 + + COUNT ( * ) + + 47 / + 35 * - + CASE + + 90 WHEN - COALESCE ( + 1, 70 ) THEN 37 * + AVG ( ALL 27 ) + - COUNT ( * ) END AS col1
----
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT DISTINCT MIN( - 57 ) * + + MAX( ALL 10 ) AS col2
----
-570

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT MIN ( - 57 ) * + + MAX ( ALL 10 ) AS col2
----
-570

query I rowsort
SELECT ALL 41 * + - 14 AS col1
----
-574

onlyif mysql # DIV for integer division: 
query II rowsort label-508
SELECT 16 DIV - 21 AS col0, 54 AS col1
----
0
54

skipif mysql # not compatible
query II rowsort label-508
SELECT 16 / - 21 AS col0, 54 AS col1
----
0
54

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT ALL - MAX( 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - MAX ( 85 ) AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT CAST( 33 AS SIGNED ) * - COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-510
SELECT CAST ( 33 AS INTEGER ) * - COUNT ( * ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT 22 + - + MAX( - 9 ) + + 52 + 75 AS col1
----
158

skipif mysql # not compatible
query I rowsort label-511
SELECT 22 + - + MAX ( - 9 ) + + 52 + 75 AS col1
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL - MAX( - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL - MAX ( - 35 ) AS col2
----
35

query I rowsort
SELECT - ( + - 56 ) * + COALESCE ( 12, - - 78 + - + 26 ) - - + 29 AS col1
----
701

query I rowsort
SELECT - 56 * - 5
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT 5 - + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-515
SELECT 5 - + COUNT ( * )
----
4

query I rowsort
SELECT ALL + + 86 * 40 * + 39 - + 69 AS col2
----
134091

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT - COUNT( * ) * 44 + - 16
----
-60

skipif mysql # not compatible
query I rowsort label-517
SELECT - COUNT ( * ) * 44 + - 16
----
-60

query I rowsort
SELECT 84 + - 80 + - 4
----
0

query I rowsort
SELECT 74 - + 48
----
26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT + 50 DIV + + 57 * 54 col1
----
0

skipif mysql # not compatible
query I rowsort label-521
SELECT + 50 / + + 57 * 54 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL + - CASE 72 WHEN + - 10 * - 55 + ( 5 ) * 18 THEN NULL ELSE NULLIF ( + COUNT( 76 ), 24 ) END + 24
----
23

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + - CASE 72 WHEN + - 10 * - 55 + ( 5 ) * 18 THEN NULL ELSE NULLIF ( + COUNT ( 76 ), 24 ) END + 24
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT CAST( + + 10 AS SIGNED ) * 97
----
970

skipif mysql # not compatible
query I rowsort label-523
SELECT CAST ( + + 10 AS INTEGER ) * 97
----
970

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

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

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

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + 24 + - COUNT ( * ) AS col0
----
23

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

skipif mysql # not compatible
query I rowsort label-526
SELECT - - SUM ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT - - COUNT( * ) + + + COUNT( * ) * - MIN( ALL + + 5 )
----
-4

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT - - COUNT ( * ) + + + COUNT ( * ) * - MIN ( ALL + + 5 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT ALL + 91 DIV + 12
----
7

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + 91 / + 12
----
7

query I rowsort
SELECT - 39 + + 84 AS col2
----
45

query I rowsort
SELECT 64 + - + ( + 55 )
----
9

query I rowsort
SELECT + 22 * 2 + - 23
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT - 66 + + 84 + + + 81 + 11 * + 76 * + + 60 * - NULLIF ( COUNT( * ), 21 ) * + + 87
----
-4363821

skipif mysql # not compatible
query I rowsort label-532
SELECT - 66 + + 84 + + + 81 + 11 * + 76 * + + 60 * - NULLIF ( COUNT ( * ), 21 ) * + + 87
----
-4363821

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT COUNT( - - 70 ) + - 24
----
-23

skipif mysql # not compatible
query I rowsort label-534
SELECT COUNT ( - - 70 ) + - 24
----
-23

query I rowsort
SELECT DISTINCT + 75 * 87 * - ( - + 13 ) AS col1
----
84825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-536
SELECT - COUNT( * ) DIV - - ( + 72 ) + 20 * 91 AS col0
----
1820

skipif mysql # not compatible
query I rowsort label-536
SELECT - COUNT ( * ) / - - ( + 72 ) + 20 * 91 AS col0
----
1820

onlyif mysql # aggregate syntax: 
query II rowsort label-537
SELECT COALESCE ( + 15, + + 80 * + 49 ) * + 46 * MAX( - 74 ), + 44 * MAX( DISTINCT + 56 ) * - + COUNT( * ) col2
----
-51060
-2464

skipif mysql # not compatible
query II rowsort label-537
SELECT COALESCE ( + 15, + + 80 * + 49 ) * + 46 * MAX ( - 74 ), + 44 * MAX ( DISTINCT + 56 ) * - + COUNT ( * ) col2
----
-51060
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-538
SELECT 57 * + 14 * 72 DIV - COUNT( * ) + MIN( - 65 ) * - 76 + + - 53
----
-52569

skipif mysql # not compatible
query I rowsort label-538
SELECT 57 * + 14 * 72 / - COUNT ( * ) + MIN ( - 65 ) * - 76 + + - 53
----
-52569

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT COUNT( * ) - + - 44 col0, - 22
----
45
-22

skipif mysql # not compatible
query II rowsort label-539
SELECT COUNT ( * ) - + - 44 col0, - 22
----
45
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-540
SELECT CAST( NULL AS SIGNED ) - COALESCE ( - + COUNT( * ), - 75 ) + - 77 col1, 55 * + 24 + - - 80 * + - MIN( DISTINCT + - 19 ) + + 98 + - 89 * + 90 AS col2
----
NULL
-5072

skipif mysql # not compatible
query II rowsort label-540
SELECT CAST ( NULL AS INTEGER ) - COALESCE ( - + COUNT ( * ), - 75 ) + - 77 col1, 55 * + 24 + - - 80 * + - MIN ( DISTINCT + - 19 ) + + 98 + - 89 * + 90 AS col2
----
NULL
-5072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-541
SELECT DISTINCT ( CASE 0 WHEN + COUNT( * ) THEN NULL ELSE + 88 END ) DIV + + 40
----
2

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT ( CASE 0 WHEN + COUNT ( * ) THEN NULL ELSE + 88 END ) / + + 40
----
2

query I rowsort
SELECT ALL 63 * + 26
----
1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT 15 + ( + CAST( NULL AS SIGNED ) ) * 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT 15 + ( + CAST ( NULL AS INTEGER ) ) * 97 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT ALL 75 DIV 14 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL 75 / 14 AS col2
----
5

query I rowsort
SELECT ALL 81 * - 29
----
-2349

query I rowsort
SELECT 22 * - 92 AS col0
----
-2024

query I rowsort
SELECT DISTINCT 92 + - + 64 AS col0
----
28

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

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - MIN ( - 68 )
----
68

query I rowsort
SELECT DISTINCT 16 + + 62 + + 50 + 0 * + + CASE + 42 WHEN + 87 THEN NULL WHEN - + 97 THEN 52 * + 72 ELSE NULL END * - 30
----
NULL

query I rowsort
SELECT DISTINCT + 11 * - - ( 77 ) + + 61 col2
----
908

onlyif mysql # aggregate syntax: 
query II rowsort label-551
SELECT + COUNT( * ) + 16 col0, 77 col0
----
17
77

skipif mysql # not compatible
query II rowsort label-551
SELECT + COUNT ( * ) + 16 col0, 77 col0
----
17
77

query I rowsort
SELECT + 90 * - 49 + + 71 + ( 25 ) - - 88 AS col0
----
-4226

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

onlyif mysql # aggregate syntax: 
query II rowsort label-554
SELECT ALL - 28 + + - 35, - CASE 29 WHEN - 66 THEN + - 87 ELSE NULL END + - COUNT( * ) * - 36 AS col2
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-554
SELECT ALL - 28 + + - 35, - CASE 29 WHEN - 66 THEN + - 87 ELSE NULL END + - COUNT ( * ) * - 36 AS col2
----
-63
NULL

query II rowsort
SELECT - 70 + - 67 AS col2, 95 + + - 59 + - 23
----
-137
13

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL NULLIF ( - MAX( - 82 ), - - 6 ) + - - 81 AS col0
----
163

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL NULLIF ( - MAX ( - 82 ), - - 6 ) + - - 81 AS col0
----
163

query I rowsort
SELECT ALL + + 58 * + 19 * 87 - - + 50 - + + 84 AS col0
----
95840

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT COUNT( DISTINCT - 25 ) + - 60 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-558
SELECT COUNT ( DISTINCT - 25 ) + - 60 AS col2
----
-59

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-560
SELECT + - 45 * COUNT( * ) * + CAST( - 76 AS SIGNED ) / + MAX( + CASE 61 WHEN + - 94 THEN + + CAST( NULL AS SIGNED ) + + 61 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT + - 45 * COUNT ( * ) * + CAST ( - 76 AS INTEGER ) / + MAX ( + CASE 61 WHEN + - 94 THEN + + CAST ( NULL AS INTEGER ) + + 61 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT MIN( - - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-561
SELECT MIN ( - - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - + 65 + + MAX( ALL - 74 ) + + 48
----
-91

skipif mysql # not compatible
query I rowsort label-562
SELECT - + 65 + + MAX ( ALL - 74 ) + + 48
----
-91

query II rowsort
SELECT - + 7 * + + 16 * - 83, + 52 + - 9 AS col2
----
9296
43

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

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

query I rowsort
SELECT - - 90 + + 40 + - 64
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-566
SELECT + 59 * - + 32, - COALESCE ( - - 75, + COUNT( ALL + 20 ) DIV + 68 * - + 63, - - 12 ) AS col2
----
-1888
-75

skipif mysql # not compatible
query II rowsort label-566
SELECT + 59 * - + 32, - COALESCE ( - - 75, + COUNT ( ALL + 20 ) / + 68 * - + 63, - - 12 ) AS col2
----
-1888
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-567
SELECT - 66 * + 85 * 82 AS col2, + 29 + 92 + MIN( + 5 )
----
-460020
126

skipif mysql # not compatible
query II rowsort label-567
SELECT - 66 * + 85 * 82 AS col2, + 29 + 92 + MIN ( + 5 )
----
-460020
126

query I rowsort
SELECT ALL 71 * - - 34 AS col2
----
2414

query I rowsort
SELECT - 83 + + 87
----
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL - 98 / 92 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL - 98 / 92 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 35 * - + 65 col2
----
2275

query II rowsort
SELECT + 29 AS col1, 12 + 59 + NULLIF ( + - 19, - 15 + - + 91 ) AS col1
----
29
52

onlyif mysql # DIV for integer division: 
query I rowsort label-574
SELECT - 53 DIV + - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-574
SELECT - 53 / + - 55 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-575
SELECT ALL - 16 DIV + + CAST( 39 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL - 16 / + + CAST ( 39 AS INTEGER ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - 81 * 39 * 24 + - COUNT( * )
----
-75817

skipif mysql # not compatible
query I rowsort label-576
SELECT - 81 * 39 * 24 + - COUNT ( * )
----
-75817

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT DISTINCT + MAX( ALL - + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT + MAX ( ALL - + 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT ALL + ( 58 ) * - COUNT( * ) * + + 69
----
-4002

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL + ( 58 ) * - COUNT ( * ) * + + 69
----
-4002

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-580
SELECT ALL ( ( CASE COUNT( * ) WHEN + 45 * COUNT( * ) THEN 66 * - 26 WHEN - 69 THEN NULL END ) ) * + MAX( ALL + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL ( ( CASE COUNT ( * ) WHEN + 45 * COUNT ( * ) THEN 66 * - 26 WHEN - 69 THEN NULL END ) ) * + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-581
SELECT DISTINCT 22 * + 55 * - COUNT( * ) * - 5 AS col0, + 33
----
6050
33

skipif mysql # not compatible
query II rowsort label-581
SELECT DISTINCT 22 * + 55 * - COUNT ( * ) * - 5 AS col0, + 33
----
6050
33

query II rowsort
SELECT ALL + 86 AS col0, 49 AS col0
----
86
49

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT - 62 * - COUNT( * ) + - 13 - - 10 + + - 62
----
-3

skipif mysql # not compatible
query I rowsort label-583
SELECT - 62 * - COUNT ( * ) + - 13 - - 10 + + - 62
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT + ( COUNT( * ) ) * - - 34 * + 74 * 10 * 22 + + + COALESCE ( 55, - + COUNT( * ) ) * COUNT( * ) + - 33 - + - NULLIF ( - 63, + 18 ) * - 55
----
557007

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT + ( COUNT ( * ) ) * - - 34 * + 74 * 10 * 22 + + + COALESCE ( 55, - + COUNT ( * ) ) * COUNT ( * ) + - 33 - + - NULLIF ( - 63, + 18 ) * - 55
----
557007

query I rowsort
SELECT + 63 * + + 31 AS col1
----
1953

onlyif mysql # aggregate syntax: 
query II rowsort label-586
SELECT CASE - 62 WHEN - - COALESCE ( + - 96, - 97 * + + COUNT( * ) ) THEN - + 44 ELSE + - 60 * + 20 END, + 49 AS col0
----
-1200
49

skipif mysql # not compatible
query II rowsort label-586
SELECT CASE - 62 WHEN - - COALESCE ( + - 96, - 97 * + + COUNT ( * ) ) THEN - + 44 ELSE + - 60 * + 20 END, + 49 AS col0
----
-1200
49

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT CASE + 36 WHEN + 69 - - COUNT( * ) + - ( 32 ) + 31 + + 51 THEN + SUM( DISTINCT 39 ) WHEN + - COUNT( * ) THEN NULL ELSE 39 END
----
39

skipif mysql # not compatible
query I rowsort label-587
SELECT CASE + 36 WHEN + 69 - - COUNT ( * ) + - ( 32 ) + 31 + + 51 THEN + SUM ( DISTINCT 39 ) WHEN + - COUNT ( * ) THEN NULL ELSE 39 END
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-588
SELECT ALL - COALESCE ( - - 88, + 71, + ( + 73 ) + - NULLIF ( + CAST( NULL AS SIGNED ), 5 ) * 21 * 61 ) * + 22 * + 5 + - 22
----
-9702

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL - COALESCE ( - - 88, + 71, + ( + 73 ) + - NULLIF ( + CAST ( NULL AS INTEGER ), 5 ) * 21 * 61 ) * + 22 * + 5 + - 22
----
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-589
SELECT - 11 * - 71 * - CAST( - 47 AS SIGNED ) - 15
----
36692

skipif mysql # not compatible
query I rowsort label-589
SELECT - 11 * - 71 * - CAST ( - 47 AS INTEGER ) - 15
----
36692

query II rowsort
SELECT + 5 AS col2, 96
----
5
96

query I rowsort
SELECT DISTINCT - ( 79 ) * + 78 + - + ( - - 57 ) * - 54 col1
----
-3084

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

skipif mysql # not compatible
query II rowsort label-592
SELECT 11 AS col0, CAST ( NULL AS INTEGER )
----
11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT DISTINCT - COUNT( * ) * 98 * + 48 + + 7 + + + 48 + + 67 AS col2
----
-4582

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT - COUNT ( * ) * 98 * + 48 + + 7 + + + 48 + + 67 AS col2
----
-4582

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT ALL - 55 + - + ( - CASE - 9 WHEN - 33 + - COUNT( * ) THEN - 52 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL - 55 + - + ( - CASE - 9 WHEN - 33 + - COUNT ( * ) THEN - 52 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL 29 * - - 90 * - COALESCE ( + COUNT( * ), + - 62 ) + - 28 * - 17 * + ( 25 ) - + + 89
----
9201

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL 29 * - - 90 * - COALESCE ( + COUNT ( * ), + - 62 ) + - 28 * - 17 * + ( 25 ) - + + 89
----
9201

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

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT - + 75 DIV - + 85 + - - 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-598
SELECT - + 75 / - + 85 + - - 95 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT + - ( + - 30 ) * - + 70 * + - 86 + + 52 + + NULLIF ( + 2, - 15 * - - COUNT( * ) ) * 44
----
180740

skipif mysql # not compatible
query I rowsort label-599
SELECT + - ( + - 30 ) * - + 70 * + - 86 + + 52 + + NULLIF ( + 2, - 15 * - - COUNT ( * ) ) * 44
----
180740

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT DISTINCT CAST( + 48 AS SIGNED ) col0
----
48

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT CAST ( + 48 AS INTEGER ) col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT CASE 41 WHEN - COUNT( * ) THEN + - SUM( ALL + + 93 ) * 85 ELSE + - 32 * + 71 + 53 + + + COUNT( * ) * - 15 - - NULLIF ( - + 52, + 55 ) END col2
----
-2286

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT CASE 41 WHEN - COUNT ( * ) THEN + - SUM ( ALL + + 93 ) * 85 ELSE + - 32 * + 71 + 53 + + + COUNT ( * ) * - 15 - - NULLIF ( - + 52, + 55 ) END col2
----
-2286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT - CAST( + + NULLIF ( - COUNT( + 21 ), - + 36 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-603
SELECT - CAST ( + + NULLIF ( - COUNT ( + 21 ), - + 36 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL 18 * - COALESCE ( 51, + COUNT( * ), - 86 * + - 69, + - NULLIF ( + 19, - COUNT( * ) * + MIN( + 30 ) * - 52 + - 2 - - 86 * - COUNT( * ) ) * 58 ) * 57 AS col1
----
-52326

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL 18 * - COALESCE ( 51, + COUNT ( * ), - 86 * + - 69, + - NULLIF ( + 19, - COUNT ( * ) * + MIN ( + 30 ) * - 52 + - 2 - - 86 * - COUNT ( * ) ) * 58 ) * 57 AS col1
----
-52326

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

skipif mysql # not compatible
query I rowsort label-605
SELECT + CAST ( NULL AS INTEGER ) + - 64 + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT ALL + CASE 60 WHEN - 77 * + COUNT( * ) + - 30 THEN NULL ELSE + 1 + + + 60 - COUNT( * ) + + + 86 + + + 58 END
----
204

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL + CASE 60 WHEN - 77 * + COUNT ( * ) + - 30 THEN NULL ELSE + 1 + + + 60 - COUNT ( * ) + + + 86 + + + 58 END
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT DISTINCT 96 DIV - 58 + 83 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT 96 / - 58 + 83 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-608
SELECT 31 * - COUNT( * ) + - - 34 + - + 84 - COUNT( - CASE + - 34 WHEN 33 + - 46 THEN 45 END ) + - 2 + + 98 AS col1, + 48 + + 0 * - 96 AS col0
----
15
48

skipif mysql # not compatible
query II rowsort label-608
SELECT 31 * - COUNT ( * ) + - - 34 + - + 84 - COUNT ( - CASE + - 34 WHEN 33 + - 46 THEN 45 END ) + - 2 + + 98 AS col1, + 48 + + 0 * - 96 AS col0
----
15
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-609
SELECT ALL + ( + 29 ) DIV COUNT( * ) * - 6 + - - 43
----
-131

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL + ( + 29 ) / COUNT ( * ) * - 6 + - - 43
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-610
SELECT 67 DIV + + 13 + - COUNT( DISTINCT 85 ) AS col0, COALESCE ( - COUNT( * ), + 27 ) AS col2
----
4
-1

skipif mysql # not compatible
query II rowsort label-610
SELECT 67 / + + 13 + - COUNT ( DISTINCT 85 ) AS col0, COALESCE ( - COUNT ( * ), + 27 ) AS col2
----
4
-1

query I rowsort
SELECT - 95 * + ( - + COALESCE ( 84, + - 77, + 19 ) ) * 0 + - 10 * 18 AS col1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT - COUNT( * ) - 92 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-612
SELECT - COUNT ( * ) - 92 AS col1
----
-93

query II rowsort
SELECT ( 0 ) col0, 81
----
0
81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-615
SELECT ALL - ( + - 38 ) * - + 5 + COUNT( DISTINCT - CAST( + 89 AS SIGNED ) ) + + + 61 AS col1, + 85
----
-128
85

skipif mysql # not compatible
query II rowsort label-615
SELECT ALL - ( + - 38 ) * - + 5 + COUNT ( DISTINCT - CAST ( + 89 AS INTEGER ) ) + + + 61 AS col1, + 85
----
-128
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT - + 78 * - - 39 + - + COUNT( * ) + 30 + 50 + - 25 + + 1 * - + 5
----
-2993

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - + 78 * - - 39 + - + COUNT ( * ) + 30 + 50 + - 25 + + 1 * - + 5
----
-2993

query I rowsort
SELECT ALL - - 50 * + - 1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT DISTINCT + SUM( - - 93 ) * - + 99 - - + 2 + + 78 + + 89 * - COALESCE ( 30, - COUNT( * ) + - 74 ) * - + COUNT( * ) + - 95 * + 96 + - - 95 + COALESCE ( - 5 + CASE + 86 WHEN 40 * - SUM( 18 ) THEN 31 ELSE NULL END, 63 ) - - 19 DIV - 56 AS col0
----
-15419

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT + SUM ( - - 93 ) * - + 99 - - + 2 + + 78 + + 89 * - COALESCE ( 30, - COUNT ( * ) + - 74 ) * - + COUNT ( * ) + - 95 * + 96 + - - 95 + COALESCE ( - 5 + CASE + 86 WHEN 40 * - SUM ( 18 ) THEN 31 ELSE NULL END, 63 ) - - 19 / - 56 AS col0
----
-15419

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT - 54 * + + 93 * + 30 + - - 67 * + CASE + 29 WHEN + ( - 96 ) + - COUNT( ALL - 96 ) * - + AVG ( - 1 ) THEN - 38 * - + 76 END * + 11 + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT - 54 * + + 93 * + 30 + - - 67 * + CASE + 29 WHEN + ( - 96 ) + - COUNT ( ALL - 96 ) * - + AVG ( - 1 ) THEN - 38 * - + 76 END * + 11 + + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - MIN( DISTINCT - + 19 ) * + 15
----
285

skipif mysql # not compatible
query I rowsort label-622
SELECT - MIN ( DISTINCT - + 19 ) * + 15
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT 70 + + - CASE + + COALESCE ( MAX( ( + 74 ) ), - 76, 18 * 64 ) WHEN - COUNT( ALL - 7 ) THEN NULL WHEN + 47 THEN + SUM( ALL + + 25 ) ELSE NULL END + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT 70 + + - CASE + + COALESCE ( MAX ( ( + 74 ) ), - 76, 18 * 64 ) WHEN - COUNT ( ALL - 7 ) THEN NULL WHEN + 47 THEN + SUM ( ALL + + 25 ) ELSE NULL END + 86
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 5, - 87 / - - 12 + - + 73 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT - COALESCE ( ( + + 52 ), - - 82 ) * + - CASE - 27 WHEN + 52 * - 85 + - 69 THEN - + CAST( - COUNT( * ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT - COALESCE ( ( + + 52 ), - - 82 ) * + - CASE - 27 WHEN + 52 * - 85 + - 69 THEN - + CAST ( - COUNT ( * ) AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 60 ) * 33 AS col0
----
1980

query I rowsort
SELECT COALESCE ( + + 91, + 3 ) + + 48
----
139

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

onlyif mysql # aggregate syntax: 
query II rowsort label-629
SELECT ALL + COUNT( * ) * - - 73, 50 AS col1
----
73
50

skipif mysql # not compatible
query II rowsort label-629
SELECT ALL + COUNT ( * ) * - - 73, 50 AS col1
----
73
50

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT ALL + 8 DIV - + 79 * + + 14 * - - ( - ( 98 ) ) * 82
----
0

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + 8 / - + 79 * + + 14 * - - ( - ( 98 ) ) * 82
----
0

query II rowsort
SELECT DISTINCT 83 * + COALESCE ( + - 26, + 41 + + 99 ), + 97 AS col1
----
-2158
97

query II rowsort
SELECT ALL 27 AS col1, 14 AS col0
----
27
14

onlyif mysql # aggregate syntax: 
query II rowsort label-633
SELECT DISTINCT - 53 * - + 63 * COUNT( * ) AS col0, 40 * + - 2 * 10 * - + 64 * + 54 - + + 35 AS col2
----
3339
2764765

skipif mysql # not compatible
query II rowsort label-633
SELECT DISTINCT - 53 * - + 63 * COUNT ( * ) AS col0, 40 * + - 2 * 10 * - + 64 * + 54 - + + 35 AS col2
----
3339
2764765

query I rowsort
SELECT ALL 76 + + 83 + - + 89
----
70

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

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

query II rowsort
SELECT 84 AS col2, + 84 * + 11 * 52 * - 14 * + 1 AS col1
----
84
-672672

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT ALL 4 + - ( COUNT( * ) ) - - + 35 + + 56 * + 19 col2
----
1102

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL 4 + - ( COUNT ( * ) ) - - + 35 + + 56 * + 19 col2
----
1102

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT COALESCE ( 47, + - 73 ) DIV - - 1 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-639
SELECT COALESCE ( 47, + - 73 ) / - - 1 AS col0
----
47

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL 69 + + + MAX( + 3 )
----
72

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL 69 + + + MAX ( + 3 )
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT NULLIF ( - 6, + AVG ( + - 46 ) ) * - MAX( + 25 ) + - + COUNT( * ) - COUNT( DISTINCT + 12 )
----
148

skipif mysql # not compatible
query I rowsort label-644
SELECT NULLIF ( - 6, + AVG ( + - 46 ) ) * - MAX ( + 25 ) + - + COUNT ( * ) - COUNT ( DISTINCT + 12 )
----
148

query I rowsort
SELECT ALL + ( - 98 ) * + 18 * - - 24 + - - 60 AS col0
----
-42276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-646
SELECT DISTINCT + COUNT( * ) - - + SUM( DISTINCT + - COALESCE ( - + 30, - 42, + ( 54 ) * - ( + 97 ) * + 43 + - 97 + 19 * + - 83 DIV + ( 70 ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT + COUNT ( * ) - - + SUM ( DISTINCT + - COALESCE ( - + 30, - 42, + ( 54 ) * - ( + 97 ) * + 43 + - 97 + 19 * + - 83 / + ( 70 ) ) )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT ALL + 64 / + 48 * - CAST( NULL AS SIGNED ) * + AVG ( ALL 31 ) * + + 75 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + 64 / + 48 * - CAST ( NULL AS INTEGER ) * + AVG ( ALL 31 ) * + + 75 * - 48
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT + 73 + + - MAX( - - 8 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-649
SELECT + 73 + + - MAX ( - - 8 ) AS col1
----
65

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-651
SELECT + 17 DIV - CAST( - 74 AS SIGNED ) * + + 8
----
0

skipif mysql # not compatible
query I rowsort label-651
SELECT + 17 / - CAST ( - 74 AS INTEGER ) * + + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL - + 47 * + 2 * + 91 * COUNT( * ) AS col0
----
-8554

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL - + 47 * + 2 * + 91 * COUNT ( * ) AS col0
----
-8554

onlyif mysql # aggregate syntax: 
query II rowsort label-653
SELECT DISTINCT COALESCE ( - MIN( DISTINCT + + 66 ), - - COUNT( 21 ) ) AS col0, - 88 AS col0
----
-66
-88

skipif mysql # not compatible
query II rowsort label-653
SELECT DISTINCT COALESCE ( - MIN ( DISTINCT + + 66 ), - - COUNT ( 21 ) ) AS col0, - 88 AS col0
----
-66
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT - 66 * + MAX( ALL 17 )
----
-1122

skipif mysql # not compatible
query I rowsort label-655
SELECT - 66 * + MAX ( ALL 17 )
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL + 62 + - COUNT( ALL + 82 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + 62 + - COUNT ( ALL + 82 ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-657
SELECT ALL + 94 + + NULLIF ( - - 60, 86 * 63 ) * 66 DIV - + 16
----
-153

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + 94 + + NULLIF ( - - 60, 86 * 63 ) * 66 / - + 16
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-658
SELECT ALL COUNT( * ) AS col1, + COALESCE ( 46, + - 26 * + COUNT( * ) ) + - NULLIF ( + ( 48 ), + 79 / + 14 * 90 )
----
1
-2

skipif mysql # not compatible
query II rowsort label-658
SELECT ALL COUNT ( * ) AS col1, + COALESCE ( 46, + - 26 * + COUNT ( * ) ) + - NULLIF ( + ( 48 ), + 79 / + 14 * 90 )
----
1
-2

query I rowsort
SELECT DISTINCT + 12 + - + 94
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL ( - - 87 ) + + + SUM( DISTINCT + - 19 )
----
68

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL ( - - 87 ) + + + SUM ( DISTINCT + - 19 )
----
68

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-662
SELECT ALL COUNT( * ) AS col2, + 51
----
1
51

skipif mysql # not compatible
query II rowsort label-662
SELECT ALL COUNT ( * ) AS col2, + 51
----
1
51

query I rowsort
SELECT 96 + - CASE - - 97 WHEN - - 55 THEN + 69 * 11 ELSE NULL END * + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-664
SELECT ALL + 67 + 60 + - 8 DIV - 42 AS col2, + COUNT( * ) AS col1
----
127
1

skipif mysql # not compatible
query II rowsort label-664
SELECT ALL + 67 + 60 + - 8 / - 42 AS col2, + COUNT ( * ) AS col1
----
127
1

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT COUNT( * ) + + 46 - 14
----
33

skipif mysql # not compatible
query I rowsort label-665
SELECT COUNT ( * ) + + 46 - 14
----
33

query I rowsort
SELECT ( - 7 ) * - 14 AS col2
----
98

query II rowsort
SELECT 69, 19 col2
----
69
19

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

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL COUNT ( * ) * 13 / + + 6 * - COUNT ( ALL - 70 ) col1
----
-2

query I rowsort
SELECT 15 + - + 72
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT 24 + + - 4 + ( + 84 ) * - 27 + CAST( 23 AS SIGNED )
----
-2225

skipif mysql # not compatible
query I rowsort label-670
SELECT 24 + + - 4 + ( + 84 ) * - 27 + CAST ( 23 AS INTEGER )
----
-2225

onlyif mysql # DIV for integer division: 
query I rowsort label-671
SELECT 60 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-671
SELECT 60 / + 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT ALL + 12 * - 8 * - 73 - + MIN( - + 52 ) * - 30 AS col0, 8 AS col1
----
5448
8

skipif mysql # not compatible
query II rowsort label-672
SELECT ALL + 12 * - 8 * - 73 - + MIN ( - + 52 ) * - 30 AS col0, 8 AS col1
----
5448
8

query I rowsort
SELECT 31 * - ( - 22 ) col2
----
682

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT ALL + COALESCE ( + + 21, COUNT( * ), + 86 + + 92 * + - 15, + 74 * - ( - + ( 52 ) ) ) * - COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL + COALESCE ( + + 21, COUNT ( * ), + 86 + + 92 * + - 15, + 74 * - ( - + ( 52 ) ) ) * - COUNT ( * ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT - 68 * + 22 - - - ( COUNT( * ) ) + - + 22
----
-1519

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT - 68 * + 22 - - - ( COUNT ( * ) ) + - + 22
----
-1519

query II rowsort
SELECT ALL + + 91 AS col0, + ( 36 )
----
91
36

query II rowsort
SELECT ALL + 33 AS col2, 62
----
33
62

query II rowsort
SELECT 80 AS col2, 39 AS col0
----
80
39

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + - COALESCE ( NULLIF ( 34, 46 ), MAX( 80 ) * - + 12 )
----
-34

skipif mysql # not compatible
query I rowsort label-680
SELECT + - COALESCE ( NULLIF ( 34, 46 ), MAX ( 80 ) * - + 12 )
----
-34

query I rowsort
SELECT ALL - 18 * + 81
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT - COUNT( * ) * - 38 + - + ( + 28 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-682
SELECT - COUNT ( * ) * - 38 + - + ( + 28 ) AS col2
----
10

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-685
SELECT ALL + - COUNT( 94 ), 48 - 27 + + ( - 50 ) AS col1
----
-1
-29

skipif mysql # not compatible
query II rowsort label-685
SELECT ALL + - COUNT ( 94 ), 48 - 27 + + ( - 50 ) AS col1
----
-1
-29

query I rowsort
SELECT DISTINCT - 24 * - ( 70 ) + + + 5 AS col0
----
1685

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT + + ( MIN( + ( - 44 ) ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT + + ( MIN ( + ( - 44 ) ) ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT ALL + 91 + - CASE - + 67 WHEN AVG ( - 98 ) THEN - MIN( + 41 ) * MAX( DISTINCT + 61 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL + 91 + - CASE - + 67 WHEN AVG ( - 98 ) THEN - MIN ( + 41 ) * MAX ( DISTINCT + 61 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT + - 11 + + + 57 + + 37 + + COUNT( * ) + 96 + + - 65
----
115

skipif mysql # not compatible
query I rowsort label-690
SELECT + - 11 + + + 57 + + 37 + + COUNT ( * ) + 96 + + - 65
----
115

query I rowsort
SELECT DISTINCT + + 3 + - 30 col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-692
SELECT ALL - - 40 DIV + + 12 AS col2, 70 * - 23, - - COUNT( ALL + 16 ) col2
----
3
-1610
1

skipif mysql # not compatible
query III rowsort label-692
SELECT ALL - - 40 / + + 12 AS col2, 70 * - 23, - - COUNT ( ALL + 16 ) col2
----
3
-1610
1

query I rowsort
SELECT + 1 + - + 7 AS col1
----
-6

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

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

query I rowsort
SELECT DISTINCT - 53 * - 7
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL + ( - - COUNT( ALL + 50 ) ) + - 33 * + + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + ( - - COUNT ( ALL + 50 ) ) + - 33 * + + COUNT ( * ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT - 94 + - 64 AS col0, + 90 * + COUNT( * )
----
-158
90

skipif mysql # not compatible
query II rowsort label-697
SELECT - 94 + - 64 AS col0, + 90 * + COUNT ( * )
----
-158
90

query I rowsort
SELECT - 71 + + 74 * - 69 + - 71 AS col2
----
-5248

onlyif mysql # DIV for integer division: 
query I rowsort label-699
SELECT DISTINCT COALESCE ( + - 73, + 84 * - 7 DIV 77, - 77 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT COALESCE ( + - 73, + 84 * - 7 / 77, - 77 ) AS col0
----
-73

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

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

query I rowsort
SELECT ALL - 36 + 22
----
-14

query II rowsort
SELECT DISTINCT + ( + - 70 ) + 64, 64 AS col1
----
-6
64

query I rowsort
SELECT ALL ( - ( - + 6 ) ) AS col0
----
6

query I rowsort
SELECT ALL ( - CASE - 98 WHEN - + 14 * + 89 + + - 97 THEN NULL ELSE ( + + 32 ) END )
----
-32

query I rowsort
SELECT - 81 * + 43 AS col2
----
-3483

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT - MIN( ALL - + 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-706
SELECT - MIN ( ALL - + 88 ) AS col1
----
88

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

query I rowsort
SELECT + + 2 * - + 74 * COALESCE ( - - 31, - 70, + 46 )
----
-4588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-709
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 10 - + SUM( ALL + + 19 ) * NULLIF ( + 48, - 11 ) / + - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 10 - + SUM ( ALL + + 19 ) * NULLIF ( + 48, - 11 ) / + - 65 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-710
SELECT CAST( + - 9 AS SIGNED ) AS col0, 21 AS col0
----
-9
21

skipif mysql # not compatible
query II rowsort label-710
SELECT CAST ( + - 9 AS INTEGER ) AS col0, 21 AS col0
----
-9
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL ( COALESCE ( + + 55, + 5 * - CASE + 53 WHEN 29 * + 23 * - 93 + - + 90 * COUNT( * ) + + + 3 THEN + 38 END + + COUNT( * ) + 96 + - - 32, - - 65 ) ) * 59
----
3245

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL ( COALESCE ( + + 55, + 5 * - CASE + 53 WHEN 29 * + 23 * - 93 + - + 90 * COUNT ( * ) + + + 3 THEN + 38 END + + COUNT ( * ) + 96 + - - 32, - - 65 ) ) * 59
----
3245

query I rowsort
SELECT ALL + - COALESCE ( - 98, 99 * + 52 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT 75 * - + SUM( ALL - 77 ) + - 53 + 93 * - COALESCE ( + + 0, + COALESCE ( - + ( + 64 ), - + 59, + 84 + + 11 - 85 ) DIV + COUNT( * ) )
----
5722

skipif mysql # not compatible
query I rowsort label-714
SELECT 75 * - + SUM ( ALL - 77 ) + - 53 + 93 * - COALESCE ( + + 0, + COALESCE ( - + ( + 64 ), - + 59, + 84 + + 11 - 85 ) / + COUNT ( * ) )
----
5722

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT ALL - 51 * 74 * SUM( ALL + 85 ) + ( + - 32 ) + 33 * - 14 + + + 82 AS col0
----
-321202

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - 51 * 74 * SUM ( ALL + 85 ) + ( + - 32 ) + 33 * - 14 + + + 82 AS col0
----
-321202

query I rowsort
SELECT + 57 + - ( - 83 ) AS col2
----
140

query II rowsort
SELECT DISTINCT - 72 * + 11 + - - 48 * - 9 + 9 col2, 12
----
-1215
12

onlyif mysql # aggregate syntax: 
query II rowsort label-720
SELECT ALL + MAX( ALL 87 ) AS col2, - MIN( DISTINCT - - 65 ) * - 95
----
87
6175

skipif mysql # not compatible
query II rowsort label-720
SELECT ALL + MAX ( ALL 87 ) AS col2, - MIN ( DISTINCT - - 65 ) * - 95
----
87
6175

query I rowsort
SELECT DISTINCT + 0 * COALESCE ( + + 42, - 39, + 3 ) + - 27
----
-27

query I rowsort
SELECT + 95 * + 61
----
5795

query I rowsort
SELECT + 59 - + 73 AS col0
----
-14

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

skipif mysql # not compatible
query I rowsort label-724
SELECT SUM ( ALL - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-725
SELECT COUNT( * ) AS col1, 32 * - 82 AS col1
----
1
-2624

skipif mysql # not compatible
query II rowsort label-725
SELECT COUNT ( * ) AS col1, 32 * - 82 AS col1
----
1
-2624

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL SUM( 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL SUM ( 76 ) AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-727
SELECT + 35 - 74 DIV + 72 - + 51 + 84
----
67

skipif mysql # not compatible
query I rowsort label-727
SELECT + 35 - 74 / + 72 - + 51 + 84
----
67

query I rowsort
SELECT + 94 * - 9
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT - 0 * + + NULLIF ( - MAX( - 25 ), - 40 * - 1 * 31 * - - 47 + - COALESCE ( + 2, COUNT( ( - + 2 ) ) + 74, + + 32 ) ) * - 43 - - 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-729
SELECT - 0 * + + NULLIF ( - MAX ( - 25 ), - 40 * - 1 * 31 * - - 47 + - COALESCE ( + 2, COUNT ( ( - + 2 ) ) + 74, + + 32 ) ) * - 43 - - 57 AS col1
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT DISTINCT 52 - - ( + COUNT( * ) ) * 36
----
88

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT 52 - - ( + COUNT ( * ) ) * 36
----
88

query I rowsort
SELECT + 64 * - 19 col2
----
-1216

query I rowsort
SELECT ALL - 4 * 54 AS col0
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-734
SELECT ALL MAX( DISTINCT + 61 ) DIV + ( + + 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL MAX ( DISTINCT + 61 ) / + ( + + 55 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL SUM ( 64 )
----
64

query I rowsort
SELECT ALL - 32 * + NULLIF ( COALESCE ( - 3, - 79 ), 78 + + 54 ) col1
----
96

query I rowsort
SELECT DISTINCT 81 * - - ( NULLIF ( 87, - 55 ) )
----
7047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT 34 * NULLIF ( - - 25, + ( + - 11 ) + + - CAST( NULL AS SIGNED ) )
----
850

skipif mysql # not compatible
query I rowsort label-738
SELECT 34 * NULLIF ( - - 25, + ( + - 11 ) + + - CAST ( NULL AS INTEGER ) )
----
850

query I rowsort
SELECT ALL - 42 * - - 43 AS col2
----
-1806

query I rowsort
SELECT 40 + + ( + ( - + 95 ) )
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT 59 + + MIN( + 47 ) - + 31 * 44 * 47 * - + COUNT( * )
----
64214

skipif mysql # not compatible
query I rowsort label-742
SELECT 59 + + MIN ( + 47 ) - + 31 * 44 * 47 * - + COUNT ( * )
----
64214

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-743
SELECT - 42 AS col0, + ( + 9 ) DIV - 13 - + COUNT( * ) col0
----
-42
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-744
SELECT - 60 + 50 - 0 AS col1, 77 * - 80 + 61 + CASE - - ( CASE - 63 WHEN - ( 8 ) * 30 + - 16 * + + 50 + 44 THEN NULL WHEN + 51 * - SUM( + 56 ) THEN + 8 * + 99 ELSE 53 + 3 END ) WHEN ( 93 ) THEN AVG ( DISTINCT - ( ( 88 ) ) ) * - 79 + - 27 * 72 WHEN 4 THEN NULL END - COUNT( * ) * - 47 AS col1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-744
SELECT - 60 + 50 - 0 AS col1, 77 * - 80 + 61 + CASE - - ( CASE - 63 WHEN - ( 8 ) * 30 + - 16 * + + 50 + 44 THEN NULL WHEN + 51 * - SUM ( + 56 ) THEN + 8 * + 99 ELSE 53 + 3 END ) WHEN ( 93 ) THEN AVG ( DISTINCT - ( ( 88 ) ) ) * - 79 + - 27 * 72 WHEN 4 THEN NULL END - COUNT ( * ) * - 47 AS col1
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL COUNT( * ) * 15 * - 13
----
-195

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL COUNT ( * ) * 15 * - 13
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-746
SELECT DISTINCT CAST( 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT CAST ( 36 AS INTEGER )
----
36

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

query I rowsort
SELECT 82 + 57 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT 59 / - CASE - - 70 WHEN 91 * + 70 + - COUNT( * ) - + 97 THEN + COUNT( + + 64 ) WHEN + - CASE + 92 WHEN - + 20 THEN NULL WHEN + 63 THEN NULL WHEN + 37 THEN NULL WHEN + - ( - 9 ) THEN - 87 ELSE - 63 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT 59 / - CASE - - 70 WHEN 91 * + 70 + - COUNT ( * ) - + 97 THEN + COUNT ( + + 64 ) WHEN + - CASE + 92 WHEN - + 20 THEN NULL WHEN + 63 THEN NULL WHEN + 37 THEN NULL WHEN + - ( - 9 ) THEN - 87 ELSE - 63 END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL - ( 34 ) + + ( + 85 ) * 5 * - MAX( DISTINCT + - 21 ) AS col2
----
8891

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - ( 34 ) + + ( + 85 ) * 5 * - MAX ( DISTINCT + - 21 ) AS col2
----
8891

query I rowsort
SELECT 8 * + + COALESCE ( - 1, + 61 * + - 27 + 38, + - 74 )
----
-8

query I rowsort
SELECT ALL - 75 * + 11
----
-825

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT 39 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-753
SELECT 39 / + + 95
----
0

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

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

query I rowsort
SELECT DISTINCT - 83 + + ( 71 ) AS col0
----
-12

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

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL COUNT ( * ) + + + 42 * - COUNT ( * ) * + COUNT ( ALL + 88 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT DISTINCT 47 / - + 29 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT 47 / - + 29 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-758
SELECT DISTINCT - NULLIF ( - - 4, COUNT( * ) + - - 20 ) AS col0, - 58, 92 AS col2
----
-4
-58
92

skipif mysql # not compatible
query III rowsort label-758
SELECT DISTINCT - NULLIF ( - - 4, COUNT ( * ) + - - 20 ) AS col0, - 58, 92 AS col2
----
-4
-58
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-759
SELECT COUNT( * ) DIV ( + CASE + CASE 35 WHEN - 71 THEN COUNT( * ) WHEN - - 67 * 99 * + - 28 THEN NULL WHEN + - 21 * - COUNT( * ) THEN NULL ELSE + MAX( - 81 ) * + + 24 DIV - - 5 END WHEN - 81 DIV - 62 * 23 THEN NULL ELSE + 20 END )
----
0

skipif mysql # not compatible
query I rowsort label-759
SELECT COUNT ( * ) / ( + CASE + CASE 35 WHEN - 71 THEN COUNT ( * ) WHEN - - 67 * 99 * + - 28 THEN NULL WHEN + - 21 * - COUNT ( * ) THEN NULL ELSE + MAX ( - 81 ) * + + 24 / - - 5 END WHEN - 81 / - 62 * 23 THEN NULL ELSE + 20 END )
----
0

query II rowsort
SELECT ALL - ( - 2 ) col0, - 16
----
2
-16

query I rowsort
SELECT ALL - 81 - 26 AS col2
----
-107

query I rowsort
SELECT 35 * + 37 * + ( + 62 ) + - + 1
----
80289

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

skipif mysql # not compatible
query I rowsort label-763
SELECT COUNT ( * ) - + 29 / 8 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-764
SELECT COUNT( * ) + - ( + - ( 22 ) ) AS col2, + ( + + 3 ) DIV - 24 * + - 53 AS col0
----
23
0

skipif mysql # not compatible
query II rowsort label-764
SELECT COUNT ( * ) + - ( + - ( 22 ) ) AS col2, + ( + + 3 ) / - 24 * + - 53 AS col0
----
23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ALL MAX( DISTINCT 8 ) * - COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL MAX ( DISTINCT 8 ) * - COUNT ( * ) AS col1
----
-8

query II rowsort
SELECT ( - ( - 42 ) ) + 78 * + ( - 21 ) * - 40, 59 AS col1
----
65562
59

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT COUNT( * ) * COALESCE ( - 99, + 66, + 29 * - 52 ) * COUNT( * ) * + 72
----
-7128

skipif mysql # not compatible
query I rowsort label-767
SELECT COUNT ( * ) * COALESCE ( - 99, + 66, + 29 * - 52 ) * COUNT ( * ) * + 72
----
-7128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-768
SELECT ALL COUNT( * ) * - 68, - CAST( NULL AS DECIMAL ) + + 21 - - 8 col0
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-768
SELECT ALL COUNT ( * ) * - 68, - CAST ( NULL AS REAL ) + + 21 - - 8 col0
----
-68
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-769
SELECT MIN( DISTINCT ( 69 ) ) + - 81 AS col2, 22 + - MIN( + + CAST( 67 AS SIGNED ) ) AS col0
----
-12
-45

skipif mysql # not compatible
query II rowsort label-769
SELECT MIN ( DISTINCT ( 69 ) ) + - 81 AS col2, 22 + - MIN ( + + CAST ( 67 AS INTEGER ) ) AS col0
----
-12
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-770
SELECT COUNT( * ) DIV 43 * 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-770
SELECT COUNT ( * ) / 43 * 81 AS col0
----
0

query I rowsort
SELECT 85 + 99 + - 0
----
184

query I rowsort
SELECT ( + 48 ) * 78
----
3744

onlyif mysql # aggregate syntax: 
query II rowsort label-773
SELECT 74 * + 59 AS col2, + 64 + COALESCE ( - SUM( ALL - - 53 ), 71 ) + - COUNT( * ) + + 22 * + 86 * + 9
----
4366
17038

skipif mysql # not compatible
query II rowsort label-773
SELECT 74 * + 59 AS col2, + 64 + COALESCE ( - SUM ( ALL - - 53 ), 71 ) + - COUNT ( * ) + + 22 * + 86 * + 9
----
4366
17038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT ALL + NULLIF ( - + 12, 99 + 97 + - ( + - 42 ) DIV + - 97 ) DIV - COUNT( DISTINCT - 89 ) - + 52 * + - 5 AS col0
----
272

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + NULLIF ( - + 12, 99 + 97 + - ( + - 42 ) / + - 97 ) / - COUNT ( DISTINCT - 89 ) - + 52 * + - 5 AS col0
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL - NULLIF ( + - 38, - ( - 52 ) * + - 98 * + - ( + COUNT( * ) ) + + 23 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - NULLIF ( + - 38, - ( - 52 ) * + - 98 * + - ( + COUNT ( * ) ) + + 23 ) AS col1
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL - 39 * + 75 + + MIN( DISTINCT - 89 )
----
-3014

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL - 39 * + 75 + + MIN ( DISTINCT - 89 )
----
-3014

query I rowsort
SELECT DISTINCT 46 + - + 89
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-779
SELECT + 25 * - CAST( NULL AS DECIMAL ), + 20 + - COUNT( * ) * 19 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-779
SELECT + 25 * - CAST ( NULL AS REAL ), + 20 + - COUNT ( * ) * 19 AS col0
----
NULL
1

query I rowsort
SELECT ALL 64 + 35
----
99

query I rowsort
SELECT - 34 - + + 88 AS col1
----
-122

query I rowsort
SELECT ALL + 99 * - 44 + + 31 * + ( - 78 ) + + 23
----
-6751

query II rowsort
SELECT 23 * - 80 AS col0, 26 AS col2
----
-1840
26

query I rowsort
SELECT 66 * 72 * + + 21
----
99792

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT ALL + - 21 DIV - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + - 21 / - 87 AS col0
----
0

query I rowsort
SELECT - - 84 * 72 + - + 45 * - 58 * - 72
----
-181872

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT DISTINCT + 52 - + COALESCE ( + - 56, + COALESCE ( - 1, + 88 * - COUNT( * ) * - - 66 * - 67 * + ( + ( + + 75 ) ) ) * - + 73 - + 52 + + 17 * + 44, + - NULLIF ( + - 73, + 16 + 70 ) ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT + 52 - + COALESCE ( + - 56, + COALESCE ( - 1, + 88 * - COUNT ( * ) * - - 66 * - 67 * + ( + ( + + 75 ) ) ) * - + 73 - + 52 + + 17 * + 44, + - NULLIF ( + - 73, + 16 + 70 ) ) AS col0
----
108

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

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

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

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

query I rowsort
SELECT 99 * - 20 AS col0
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT 35 * 29 * - MAX( - 70 )
----
71050

skipif mysql # not compatible
query I rowsort label-792
SELECT 35 * 29 * - MAX ( - 70 )
----
71050

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT + COUNT( * ) * + 86 * + 26 - - - 90 AS col0
----
2146

skipif mysql # not compatible
query I rowsort label-793
SELECT + COUNT ( * ) * + 86 * + 26 - - - 90 AS col0
----
2146

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

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

query I rowsort
SELECT DISTINCT + 32 * 42
----
1344

query I rowsort
SELECT ALL - 70 col2
----
-70

query II rowsort
SELECT DISTINCT - 8, 31 * ( + 34 ) col2
----
-8
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - CASE + 93 WHEN + COUNT( * ) * COUNT( * ) THEN - 37 + - + 25 / 40 + + - 71 WHEN + - 15 * NULLIF ( 77, - + 75 * - 30 - - + COUNT( * ) ) * - NULLIF ( 79, + 35 * + COUNT( - 21 ) + + 94 - + 39 * - COUNT( * ) * MAX( DISTINCT + 97 + + 26 * 58 ) ) + - COUNT( * ) + 7 * + ( 64 ) THEN NULL END * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT - CASE + 93 WHEN + COUNT ( * ) * COUNT ( * ) THEN - 37 + - + 25 / 40 + + - 71 WHEN + - 15 * NULLIF ( 77, - + 75 * - 30 - - + COUNT ( * ) ) * - NULLIF ( 79, + 35 * + COUNT ( - 21 ) + + 94 - + 39 * - COUNT ( * ) * MAX ( DISTINCT + 97 + + 26 * 58 ) ) + - COUNT ( * ) + 7 * + ( 64 ) THEN NULL END * 63 AS col0
----
NULL

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

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

query I rowsort
SELECT - 46 - 96 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-801
SELECT DISTINCT NULLIF ( + 86, + COUNT( * ) ), + 88 * - 74 + - 1 AS col1
----
86
-6513

skipif mysql # not compatible
query II rowsort label-801
SELECT DISTINCT NULLIF ( + 86, + COUNT ( * ) ), + 88 * - 74 + - 1 AS col1
----
86
-6513

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT - COUNT( * ) - + 49 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-802
SELECT - COUNT ( * ) - + 49 AS col0
----
-50

query II rowsort
SELECT 68 AS col0, - 21
----
68
-21

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

skipif mysql # not compatible
query I rowsort label-804
SELECT - SUM ( DISTINCT - 30 )
----
30

query I rowsort
SELECT - 98 * + - 67
----
6566

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

query I rowsort
SELECT + 92 - 42 col1
----
50

query I rowsort
SELECT ALL + 90 + - + 43 * + ( - ( + - 25 ) )
----
-985

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

skipif mysql # not compatible
query I rowsort label-809
SELECT + 51 - 96 * COUNT ( * ) + + 97 AS col2
----
52

query I rowsort
SELECT DISTINCT 91 * - + 9 * 31 * - 90
----
2285010

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT ALL 95 + - - NULLIF ( COUNT( * ), 38 - - 89 ) + + 30 - - 81 col1
----
207

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL 95 + - - NULLIF ( COUNT ( * ), 38 - - 89 ) + + 30 - - 81 col1
----
207

query I rowsort
SELECT + 65 - 17
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT + 78 DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-813
SELECT + 78 / - 83 AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - 24, + - 70 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-816
SELECT + - 44 + 95 DIV - 84 AS col2, CAST( 68 AS SIGNED )
----
-45
68

skipif mysql # not compatible
query II rowsort label-816
SELECT + - 44 + 95 / - 84 AS col2, CAST ( 68 AS INTEGER )
----
-45
68

query I rowsort
SELECT - + 64 - + 92 AS col2
----
-156

query I rowsort
SELECT + - 53 * - 6 + - 62 + + - 4
----
252

query I rowsort
SELECT + - 94 + + + 69 col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-820
SELECT - - 68 col0, - COUNT( * )
----
68
-1

skipif mysql # not compatible
query II rowsort label-820
SELECT - - 68 col0, - COUNT ( * )
----
68
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-821
SELECT ALL + 14 DIV CAST( 52 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + 14 / CAST ( 52 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT + 81 + COUNT( * ) + + 77 col2
----
159

skipif mysql # not compatible
query I rowsort label-822
SELECT + 81 + COUNT ( * ) + + 77 col2
----
159

query I rowsort
SELECT ALL - - 19 * + + 68 AS col2
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT 53 DIV + 32 + - 92 + 96 + + 78 + ( - + 42 ) DIV + 58
----
83

skipif mysql # not compatible
query I rowsort label-824
SELECT 53 / + 32 + - 92 + 96 + + 78 + ( - + 42 ) / + 58
----
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT 72 DIV + 10 + + - ( - + ( - 88 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-826
SELECT 72 / + 10 + + - ( - + ( - 88 ) )
----
-81

query I rowsort
SELECT - 0 * + 12
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-828
SELECT + 12 + CAST( NULL AS SIGNED ) + COUNT( * ) + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-828
SELECT + 12 + CAST ( NULL AS INTEGER ) + COUNT ( * ) + 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT + ( - NULLIF ( - 35, + SUM( DISTINCT 29 ) ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-829
SELECT + ( - NULLIF ( - 35, + SUM ( DISTINCT 29 ) ) ) AS col2
----
35

query I rowsort
SELECT - 77 + 20
----
-57

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

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

query I rowsort
SELECT - 65 * + 54 col1
----
-3510

query II rowsort
SELECT DISTINCT + 73, - 54 * 28 AS col2
----
73
-1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-834
SELECT NULLIF ( COUNT( * ), 47 DIV + + 44 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT NULLIF ( COUNT ( * ), 47 / + + 44 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-835
SELECT ALL + 15 AS col2, - COUNT( * ) * - + ( MAX( + ( - 43 ) ) ) + - ( SUM( ALL + 94 ) ) + - 72
----
15
-209

skipif mysql # not compatible
query II rowsort label-835
SELECT ALL + 15 AS col2, - COUNT ( * ) * - + ( MAX ( + ( - 43 ) ) ) + - ( SUM ( ALL + 94 ) ) + - 72
----
15
-209

query I rowsort
SELECT - 58 + NULLIF ( - 3, + - 94 ) AS col0
----
-61

query II rowsort
SELECT ALL + 86 AS col0, 64
----
86
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT - NULLIF ( - 60, - AVG ( DISTINCT + 89 ) * - - COUNT( * ) + - COUNT( * ) + - NULLIF ( - 45, + 88 * - + 78 ) + - 57 - + ( 82 ) DIV + + 21 * - 76 ) * 18 DIV - - 82 + 11
----
24

skipif mysql # not compatible
query I rowsort label-838
SELECT - NULLIF ( - 60, - AVG ( DISTINCT + 89 ) * - - COUNT ( * ) + - COUNT ( * ) + - NULLIF ( - 45, + 88 * - + 78 ) + - 57 - + ( 82 ) / + + 21 * - 76 ) * 18 / - - 82 + 11
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT CASE + + 92 WHEN - COALESCE ( + - SUM( DISTINCT 70 ), - 29 + - ( + 6 ) + - 70 - ( - ( 63 ) ) + + 31 * 36 + 86 + + 88 * 6 * COUNT( * ), + - 97 - - ( 97 ) * - 86 ) THEN 82 / 26 - 71 WHEN - 30 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT CASE + + 92 WHEN - COALESCE ( + - SUM ( DISTINCT 70 ), - 29 + - ( + 6 ) + - 70 - ( - ( 63 ) ) + + 31 * 36 + 86 + + 88 * 6 * COUNT ( * ), + - 97 - - ( 97 ) * - 86 ) THEN 82 / 26 - 71 WHEN - 30 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 67 * 42 + - 58 col2
----
2756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-841
SELECT 10 * - + 52 + 75 + - 57, - COALESCE ( + ( - 75 ), + + 15 * - COUNT( * ) * - + ( 86 ) ) * + + 21 * 52 + + COUNT( * ) + + CASE - 68 WHEN + 42 THEN NULL WHEN + 94 THEN - 59 ELSE CAST( + 64 AS SIGNED ) DIV + 44 + 2 END DIV - COUNT( * ) AS col2
----
-502
81898

skipif mysql # not compatible
query II rowsort label-841
SELECT 10 * - + 52 + 75 + - 57, - COALESCE ( + ( - 75 ), + + 15 * - COUNT ( * ) * - + ( 86 ) ) * + + 21 * 52 + + COUNT ( * ) + + CASE - 68 WHEN + 42 THEN NULL WHEN + 94 THEN - 59 ELSE CAST ( + 64 AS INTEGER ) / + 44 + 2 END / - COUNT ( * ) AS col2
----
-502
81898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-842
SELECT - COUNT( * ) - - SUM( CAST( NULL AS SIGNED ) ) / + 31 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT - COUNT ( * ) - - SUM ( CAST ( NULL AS INTEGER ) ) / + 31 + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-843
SELECT COUNT( * ) col0, + 32 DIV 59 + - 25 + + 66 AS col2
----
1
41

skipif mysql # not compatible
query II rowsort label-843
SELECT COUNT ( * ) col0, + 32 / 59 + - 25 + + 66 AS col2
----
1
41

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT + 98 * - + 52 + COUNT( * )
----
-5095

skipif mysql # not compatible
query I rowsort label-844
SELECT + 98 * - + 52 + COUNT ( * )
----
-5095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-845
SELECT DISTINCT + 1 / ( + 57 ) * + 51 * - CAST( NULL AS SIGNED ) + - 34 * + 50 * - COUNT( * ) * 33 * + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT + 1 / ( + 57 ) * + 51 * - CAST ( NULL AS INTEGER ) + - 34 * + 50 * - COUNT ( * ) * 33 * + + 99 AS col2
----
NULL

query II rowsort
SELECT - 4 AS col2, 34 AS col1
----
-4
34

query I rowsort
SELECT - 49 + - - 36
----
-13

query I rowsort
SELECT ALL + + 29 + - - 74 + + + 90 AS col2
----
193

query II rowsort
SELECT ALL 89 AS col2, 41 * - + 51
----
89
-2091

query I rowsort
SELECT - 63 + - 32
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT MIN( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-851
SELECT MIN ( + 42 )
----
42

query I rowsort
SELECT - + 73 * + 27 AS col2
----
-1971

query I rowsort
SELECT AVG ( DISTINCT - + CASE + 93 WHEN + - 83 THEN 85 END )
----
NULL

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

query I rowsort
SELECT + - 93 + 16 * + 86 AS col0
----
1283

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-857
SELECT - 68 AS col1, 42 * 66 * - 87 * - + COUNT( * )
----
-68
241164

skipif mysql # not compatible
query II rowsort label-857
SELECT - 68 AS col1, 42 * 66 * - 87 * - + COUNT ( * )
----
-68
241164

query I rowsort
SELECT ALL 82 - 46
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT - 52 * 75 * 44 DIV - + 10
----
17160

skipif mysql # not compatible
query I rowsort label-859
SELECT - 52 * 75 * 44 / - + 10
----
17160

query I rowsort
SELECT DISTINCT - 96 * - ( 63 )
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT DISTINCT + - 12 - MIN( + 33 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT + - 12 - MIN ( + 33 ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT - - 46 * - + COALESCE ( + COALESCE ( + + 60, - CAST( - + ( + + NULLIF ( + 28, 7 ) ) AS SIGNED ) - - 34 ), - COALESCE ( - 77, + NULLIF ( - CASE 4 WHEN + 38 THEN - COUNT( * ) + - 85 END, - + 13 + 1 / 29 * 53 + + COUNT( * ) * + 7 ) ) )
----
-2760

skipif mysql # not compatible
query I rowsort label-862
SELECT - - 46 * - + COALESCE ( + COALESCE ( + + 60, - CAST ( - + ( + + NULLIF ( + 28, 7 ) ) AS INTEGER ) - - 34 ), - COALESCE ( - 77, + NULLIF ( - CASE 4 WHEN + 38 THEN - COUNT ( * ) + - 85 END, - + 13 + 1 / 29 * 53 + + COUNT ( * ) * + 7 ) ) )
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT + + NULLIF ( 49, 85 * - 82 + + 23 * + 53 - + COUNT( * ) ) * - 43 * - + 98 + + + COUNT( * )
----
206487

skipif mysql # not compatible
query I rowsort label-863
SELECT + + NULLIF ( 49, 85 * - 82 + + 23 * + 53 - + COUNT ( * ) ) * - 43 * - + 98 + + + COUNT ( * )
----
206487

query III rowsort
SELECT 45 col2, 66 AS col1, - 84 - - NULLIF ( + 80, 48 ) AS col1
----
45
66
-4

query I rowsort
SELECT - + 71 - - 80 col0
----
9

query II rowsort
SELECT ALL + + 71 AS col1, - 73
----
71
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT ALL + 65 AS col2, - COUNT( * ) + - + COUNT( * ) * + - 0 - - 31
----
65
30

skipif mysql # not compatible
query II rowsort label-867
SELECT ALL + 65 AS col2, - COUNT ( * ) + - + COUNT ( * ) * + - 0 - - 31
----
65
30

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

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

query II rowsort
SELECT ALL + ( 43 ), - 71 AS col1
----
43
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-870
SELECT ALL 59 DIV - + COUNT( * ) col0, COUNT( * )
----
-59
1

skipif mysql # not compatible
query II rowsort label-870
SELECT ALL 59 / - + COUNT ( * ) col0, COUNT ( * )
----
-59
1

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT + 65 DIV - - 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-871
SELECT + 65 / - - 56 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-872
SELECT DISTINCT - 59 + - + COUNT( * ) AS col0, COUNT( * )
----
-60
1

skipif mysql # not compatible
query II rowsort label-872
SELECT DISTINCT - 59 + - + COUNT ( * ) AS col0, COUNT ( * )
----
-60
1

query I rowsort
SELECT 53 - 40
----
13

query I rowsort
SELECT ALL 17 + - - 19 AS col0
----
36

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

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

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

query I rowsort
SELECT DISTINCT - ( - COALESCE ( - + 65, + 45 ) )
----
-65

query II rowsort
SELECT ALL + 15 + - 26, + 93 AS col1
----
-11
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-879
SELECT - CASE + 72 WHEN - 12 + + COUNT( * ) + + - 0 * + CASE + 54 WHEN - 74 + - CAST( NULL AS SIGNED ) - + 9 * + + 50 DIV - 48 THEN 56 * 40 * + 77 * + 99 END THEN - - 90 + + - COUNT( * ) * 37 + + + CAST( + 63 AS SIGNED ) ELSE - + COUNT( * ) DIV - 5 END
----
0

skipif mysql # not compatible
query I rowsort label-879
SELECT - CASE + 72 WHEN - 12 + + COUNT ( * ) + + - 0 * + CASE + 54 WHEN - 74 + - CAST ( NULL AS INTEGER ) - + 9 * + + 50 / - 48 THEN 56 * 40 * + 77 * + 99 END THEN - - 90 + + - COUNT ( * ) * 37 + + + CAST ( + 63 AS INTEGER ) ELSE - + COUNT ( * ) / - 5 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + SUM( DISTINCT - 96 ) - - + 98
----
2

skipif mysql # not compatible
query I rowsort label-880
SELECT + SUM ( DISTINCT - 96 ) - - + 98
----
2

query I rowsort
SELECT 82 + - ( - 16 ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-882
SELECT - 70 * + + 47, - 97 + + CASE COUNT( * ) WHEN - 27 THEN NULL WHEN - COALESCE ( - + 76, + CAST( NULL AS SIGNED ) + - - ( + 94 ) / + 36 + 98 ) THEN NULL WHEN + - 84 THEN 10 ELSE NULL END * 50 AS col2
----
-3290
NULL

skipif mysql # not compatible
query II rowsort label-882
SELECT - 70 * + + 47, - 97 + + CASE COUNT ( * ) WHEN - 27 THEN NULL WHEN - COALESCE ( - + 76, + CAST ( NULL AS INTEGER ) + - - ( + 94 ) / + 36 + 98 ) THEN NULL WHEN + - 84 THEN 10 ELSE NULL END * 50 AS col2
----
-3290
NULL

query II rowsort
SELECT - - ( - 90 ), 5 AS col2
----
-90
5

query I rowsort
SELECT ALL + 16 - + 59 + ( - - 5 )
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT + 36 - + COALESCE ( COUNT( * ), 84 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-886
SELECT + 36 - + COALESCE ( COUNT ( * ), 84 ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-887
SELECT DISTINCT - CAST( - 63 AS SIGNED ) AS col1, + COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-887
SELECT DISTINCT - CAST ( - 63 AS INTEGER ) AS col1, + COUNT ( * )
----
63
1

query I rowsort
SELECT ALL + 56 * + 44 + + 15 AS col1
----
2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-889
SELECT + CAST( NULL AS SIGNED ) / + + ( - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT + CAST ( NULL AS INTEGER ) / + + ( - + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT - ( - - 0 )
----
0

query I rowsort
SELECT NULLIF ( + 89, 54 - - 73 - - 86 + + 10 ) + 99 AS col1
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-892
SELECT - CAST( NULL AS SIGNED ) + + - 43 + 76 * + + 69 + - + COUNT( * ) * - + 13 * - 67 AS col2, COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-892
SELECT - CAST ( NULL AS INTEGER ) + + - 43 + 76 * + + 69 + - + COUNT ( * ) * - + 13 * - 67 AS col2, COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL
0

query I rowsort
SELECT 21 - - 76
----
97

query I rowsort
SELECT - 43 + + 23
----
-20

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

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

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

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT 18 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 35 + - 46 + - + 85 * 85 AS col0
----
-7236

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL - COUNT( * ) * + + 53 * - - 84 AS col0
----
-4452

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL - COUNT ( * ) * + + 53 * - - 84 AS col0
----
-4452

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL + COUNT( * ) + + - 86
----
-85

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL + COUNT ( * ) + + - 86
----
-85

query I rowsort
SELECT 40 + 60 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT DISTINCT 34 + + COUNT( * ) * - 33
----
1

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT 34 + + COUNT ( * ) * - 33
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-903
SELECT COUNT( ALL - ( + 58 ) ) + 10 DIV 98 col1
----
1

skipif mysql # not compatible
query I rowsort label-903
SELECT COUNT ( ALL - ( + 58 ) ) + 10 / 98 col1
----
1

query I rowsort
SELECT 53 * - + 65
----
-3445

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

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

query II rowsort
SELECT + 92 AS col1, 50 AS col0
----
92
50

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT 75 + 12 + CASE 14 WHEN + 34 THEN - + COALESCE ( - COUNT( * ), - + 88, + 6 + + - 25 + ( - + 34 ) ) + - - AVG ( - + 99 ) / + - 31 / + ( - 58 ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT 75 + 12 + CASE 14 WHEN + 34 THEN - + COALESCE ( - COUNT ( * ), - + 88, + 6 + + - 25 + ( - + 34 ) ) + - - AVG ( - + 99 ) / + - 31 / + ( - 58 ) * COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT ALL 33 DIV + + 24 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL 33 / + + 24 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT MIN( DISTINCT + + 5 ) + + 15 + + + COUNT( + 20 )
----
21

skipif mysql # not compatible
query I rowsort label-909
SELECT MIN ( DISTINCT + + 5 ) + + 15 + + + COUNT ( + 20 )
----
21

query I rowsort
SELECT DISTINCT 68 * 4 * + 32
----
8704

onlyif mysql # aggregate syntax: 
query II rowsort label-911
SELECT 47 * - 29 + - + 38 AS col1, 74 * - + COUNT( * ) AS col0
----
-1401
-74

skipif mysql # not compatible
query II rowsort label-911
SELECT 47 * - 29 + - + 38 AS col1, 74 * - + COUNT ( * ) AS col0
----
-1401
-74

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

query II rowsort
SELECT ALL - 87 col1, 67
----
-87
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT - MIN( - 95 ) * - COUNT( * ) + - 31 * 54 AS col2
----
-1769

skipif mysql # not compatible
query I rowsort label-915
SELECT - MIN ( - 95 ) * - COUNT ( * ) + - 31 * 54 AS col2
----
-1769

query I rowsort
SELECT - 61 * 24 AS col1
----
-1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-917
SELECT 43 / - 86 + - CASE - + 85 WHEN + 89 THEN - + MAX( DISTINCT - + 39 ) + COUNT( * ) WHEN 51 THEN + ( - 96 ) * - 44 * - SUM( ALL - 79 ) + + 14 WHEN - - CAST( NULL AS SIGNED ) / - - COUNT( * ) THEN NULL ELSE - CAST( + 55 AS SIGNED ) END + - MIN( - - CAST( NULL AS SIGNED ) ), ( 38 ) AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-917
SELECT 43 / - 86 + - CASE - + 85 WHEN + 89 THEN - + MAX ( DISTINCT - + 39 ) + COUNT ( * ) WHEN 51 THEN + ( - 96 ) * - 44 * - SUM ( ALL - 79 ) + + 14 WHEN - - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) THEN NULL ELSE - CAST ( + 55 AS INTEGER ) END + - MIN ( - - CAST ( NULL AS INTEGER ) ), ( 38 ) AS col1
----
NULL
38

query I rowsort
SELECT DISTINCT - - 45 * + 18
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-919
SELECT - 27 * - + 61 * + CAST( - - 89 AS SIGNED )
----
146583

skipif mysql # not compatible
query I rowsort label-919
SELECT - 27 * - + 61 * + CAST ( - - 89 AS INTEGER )
----
146583

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT - MAX( - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-920
SELECT - MAX ( - 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-921
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + ( 11 ) * + ( + 52 ) + + 26 / - 63 + - 28 * + - CAST( NULL AS DECIMAL ) * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + ( 11 ) * + ( + 52 ) + + 26 / - 63 + - 28 * + - CAST ( NULL AS REAL ) * - 42
----
NULL

query II rowsort
SELECT - 42 * 82 AS col1, 10
----
-3444
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-923
SELECT ALL + COUNT( + ( + 74 ) ) * - 22 + + NULLIF ( - COUNT( * ), + + CAST( + CASE 14 WHEN ( + + 86 ) THEN 54 END AS SIGNED ) * + 84 ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + COUNT ( + ( + 74 ) ) * - 22 + + NULLIF ( - COUNT ( * ), + + CAST ( + CASE 14 WHEN ( + + 86 ) THEN 54 END AS INTEGER ) * + 84 ) col2
----
-23

query I rowsort
SELECT DISTINCT - 32 * + 47
----
-1504

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

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - COUNT ( * ) + 8 AS col1
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - 6 - + - COUNT( * ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-927
SELECT - 6 - + - COUNT ( * ) col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT - COUNT( * ) DIV 30
----
0

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

query II rowsort
SELECT - 82 - + 12 AS col1, 62 AS col0
----
-94
62

query I rowsort
SELECT COALESCE ( 66, - 15 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL 98 * - ( 84 ) + - SUM( + 91 ) + - 97
----
-8420

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL 98 * - ( 84 ) + - SUM ( + 91 ) + - 97
----
-8420

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

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT - 70 * - 58 * - COALESCE ( - + COUNT( * ), - 49 ) * - - 94 + 1
----
381641

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT - 70 * - 58 * - COALESCE ( - + COUNT ( * ), - 49 ) * - - 94 + 1
----
381641

query I rowsort
SELECT - 16 * - 92
----
1472

query I rowsort
SELECT ALL - 52 * - 24 * 23 AS col0
----
28704

query I rowsort
SELECT NULLIF ( + - 49, 37 )
----
-49

query I rowsort
SELECT + 15 + + + 21
----
36

query I rowsort
SELECT DISTINCT 85 * - - CASE - 56 WHEN 92 * - + 99 THEN 76 * - 56 * - 24 * + + 85 * - + 35 + 63 END - + 72
----
NULL

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

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

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

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

query I rowsort
SELECT + + 61 * + - 48 * - 30
----
87840

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT DISTINCT + ( - 18 ) DIV + - 6
----
3

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT + ( - 18 ) / + - 6
----
3

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

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL 15 * + 43 * 92 * COUNT ( * )
----
59340

query I rowsort
SELECT + + ( - ( - 54 ) ) + - 76 AS col0
----
-22

query I rowsort
SELECT + - 84 + 63 + + 12 AS col2
----
-9

query I rowsort
SELECT ALL - 73 * - 87 AS col0
----
6351

query I rowsort
SELECT + + 9 + + 96 col0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT ALL - ( - 36 ) + - CAST( - - 49 AS SIGNED ) + + 67 * + 97 AS col0
----
6486

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - ( - 36 ) + - CAST ( - - 49 AS INTEGER ) + + 67 * + 97 AS col0
----
6486

query I rowsort
SELECT + 34 - - - 73 AS col1
----
-39

query I rowsort
SELECT DISTINCT - 21 + - + 82 AS col2
----
-103

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-952
SELECT + MAX( DISTINCT - + 26 ) + - 84, - 8 DIV + - ( + - MIN( ALL + 10 ) ) AS col0
----
-110
0

skipif mysql # not compatible
query II rowsort label-952
SELECT + MAX ( DISTINCT - + 26 ) + - 84, - 8 / + - ( + - MIN ( ALL + 10 ) ) AS col0
----
-110
0

query I rowsort
SELECT DISTINCT NULLIF ( - + 62, - - 47 )
----
-62

query I rowsort
SELECT + 58 + 38 * 2
----
134

query I rowsort
SELECT DISTINCT NULLIF ( - + 72, - 49 * + 75 )
----
-72

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

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL + 28 - - 0 / + COUNT ( * ) * + + 24
----
28

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

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

query I rowsort
SELECT DISTINCT 93 * 80
----
7440

query I rowsort
SELECT DISTINCT - 83 * + - 76
----
6308

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT - 74 DIV 28
----
-2

skipif mysql # not compatible
query I rowsort label-961
SELECT - 74 / 28
----
-2

query II rowsort
SELECT ALL + 49 col1, 21
----
49
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-963
SELECT CAST( - - COUNT( * ) AS SIGNED ) * - 10 + + COALESCE ( + ( 93 ), + ( + 22 ) ) + - + 52 DIV + + 23 + 41
----
122

skipif mysql # not compatible
query I rowsort label-963
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) * - 10 + + COALESCE ( + ( 93 ), + ( + 22 ) ) + - + 52 / + + 23 + 41
----
122

query I rowsort
SELECT ALL + 29 * + - 61
----
-1769

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT - 16 + 97 - 64 + + 37 * 15 * + - COUNT( * )
----
-538

skipif mysql # not compatible
query I rowsort label-965
SELECT - 16 + 97 - 64 + + 37 * 15 * + - COUNT ( * )
----
-538

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

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

query I rowsort
SELECT 88 * 60 + 94 AS col2
----
5374

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT NULLIF ( - - CASE ( + COUNT( * ) ) WHEN - 66 - 55 THEN NULL WHEN - 42 * 95 + + - COUNT( * ) THEN + 98 * 66 + 34 * - - 2 / - AVG ( + 69 ) * - 81 * + + 12 + - 47 WHEN + + 53 THEN NULL WHEN + 21 THEN - + 37 / 29 / + + 51 + - 33 - + 70 + 61 END, + 36 * 93 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT NULLIF ( - - CASE ( + COUNT ( * ) ) WHEN - 66 - 55 THEN NULL WHEN - 42 * 95 + + - COUNT ( * ) THEN + 98 * 66 + 34 * - - 2 / - AVG ( + 69 ) * - 81 * + + 12 + - 47 WHEN + + 53 THEN NULL WHEN + 21 THEN - + 37 / 29 / + + 51 + - 33 - + 70 + 61 END, + 36 * 93 ) col1
----
NULL

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

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

query I rowsort
SELECT - + ( - 61 ) * - + 1 AS col0
----
-61

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

skipif mysql # not compatible
query I rowsort label-971
SELECT COUNT ( - 60 )
----
1

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

query I rowsort
SELECT DISTINCT + ( - 5 ) * - 79
----
395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-974
SELECT ( - 36 ) DIV + SUM( DISTINCT - 95 ) * - + 52 + - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-974
SELECT ( - 36 ) / + SUM ( DISTINCT - 95 ) * - + 52 + - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL COALESCE ( + ( + 26 ), - ( + - 84 ), + 6 ) + + 17
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT 72 * + 49 + - + COUNT( * ) AS col1
----
3527

skipif mysql # not compatible
query I rowsort label-976
SELECT 72 * + 49 + - + COUNT ( * ) AS col1
----
3527

query I rowsort
SELECT ALL + COALESCE ( + 12, 90 * 88 * + + COALESCE ( + 56, - 89 + 3 + + 45 + + + 43 ) + + 79 ) AS col2
----
12

query I rowsort
SELECT ALL - 92 + - 77 col2
----
-169

query I rowsort
SELECT 85 * + 10 AS col1
----
850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-980
SELECT - CASE + 39 WHEN - 49 * + 19 + 49 - CAST( NULL AS SIGNED ) * + - 87 * + 70 THEN + 19 WHEN 62 * + 23 * + 73 THEN - 76 * - 48 + 8 * + COUNT( * ) * - 63 * + COUNT( + + 98 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT - CASE + 39 WHEN - 49 * + 19 + 49 - CAST ( NULL AS INTEGER ) * + - 87 * + 70 THEN + 19 WHEN 62 * + 23 * + 73 THEN - 76 * - 48 + 8 * + COUNT ( * ) * - 63 * + COUNT ( + + 98 ) END
----
NULL

query II rowsort
SELECT 78 AS col0, + 95 col2
----
78
95

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

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

query I rowsort
SELECT 50 * 94 AS col0
----
4700

onlyif mysql # aggregate syntax: 
query II rowsort label-984
SELECT 59 AS col0, - 29 + COUNT( * ) + + + 77 col2
----
59
49

skipif mysql # not compatible
query II rowsort label-984
SELECT 59 AS col0, - 29 + COUNT ( * ) + + + 77 col2
----
59
49

query I rowsort
SELECT ALL 47 - 98 + - 20
----
-71

query I rowsort
SELECT ALL 17 * - + 5 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT ( - COALESCE ( - + ( COALESCE ( + COALESCE ( + + 96, + + 49, + 83 * 29 + ( + 16 ) - + ( + COUNT( * ) ) + - + CASE - 72 WHEN - 58 * 56 + + 53 * CASE + MIN( + 29 ) WHEN + 53 THEN NULL WHEN - 67 + - 82 THEN 74 - + 11 + 28 ELSE NULL END THEN - CAST( NULL AS SIGNED ) + - 70 WHEN 91 THEN NULL END * - 72 ), - 20 * 44 + 24 ) ), - 5 + 21, - 91 + - ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ) ) ) * ( 3 )
----
288

skipif mysql # not compatible
query I rowsort label-987
SELECT ( - COALESCE ( - + ( COALESCE ( + COALESCE ( + + 96, + + 49, + 83 * 29 + ( + 16 ) - + ( + COUNT ( * ) ) + - + CASE - 72 WHEN - 58 * 56 + + 53 * CASE + MIN ( + 29 ) WHEN + 53 THEN NULL WHEN - 67 + - 82 THEN 74 - + 11 + 28 ELSE NULL END THEN - CAST ( NULL AS INTEGER ) + - 70 WHEN 91 THEN NULL END * - 72 ), - 20 * 44 + 24 ) ), - 5 + 21, - 91 + - ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) ) ) * ( 3 )
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-988
SELECT ( + COALESCE ( + 33, - + 34 + - + 67 ) ) + + ( - CAST( 74 AS SIGNED ) ) * + ( + 5 ) + - 61 * - COUNT( * )
----
-276

skipif mysql # not compatible
query I rowsort label-988
SELECT ( + COALESCE ( + 33, - + 34 + - + 67 ) ) + + ( - CAST ( 74 AS INTEGER ) ) * + ( + 5 ) + - 61 * - COUNT ( * )
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL 11 - + 67 * COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL 11 - + 67 * COUNT ( * )
----
-56

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-991
SELECT + 91 AS col0, + 53 DIV + 98 + - 79 AS col1
----
91
-79

skipif mysql # not compatible
query II rowsort label-991
SELECT + 91 AS col0, + 53 / + 98 + - 79 AS col1
----
91
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT SUM( - - 88 ) - + COUNT( * ) - 8
----
79

skipif mysql # not compatible
query I rowsort label-992
SELECT SUM ( - - 88 ) - + COUNT ( * ) - 8
----
79

query II rowsort
SELECT + 43, 40 * 73 AS col2
----
43
2920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL - MAX( - + 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - MAX ( - + 23 ) AS col1
----
23

query I rowsort
SELECT DISTINCT 52 * + 81
----
4212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT - 97 / + 91 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-997
SELECT - 97 / + 91 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT CAST( - - 86 AS SIGNED ) * + CASE WHEN NOT - 41 IS NOT NULL THEN + + 57 WHEN 26 IS NOT NULL THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-998
SELECT CAST ( - - 86 AS INTEGER ) * + CASE WHEN NOT - 41 IS NOT NULL THEN + + 57 WHEN 26 IS NOT NULL THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT ALL - 97 + - MIN( 53 ) + + 36
----
-114

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - 97 + - MIN ( 53 ) + + 36
----
-114

query I rowsort
SELECT ALL - 39 * 18
----
-702

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

query II rowsort
SELECT 7 AS col0, - NULLIF ( + 66, - + 12 )
----
7
-66

query II rowsort
SELECT + - ( 26 ) AS col1, - 97
----
-26
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1004
SELECT CAST( - - 44 AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1004
SELECT CAST ( - - 44 AS INTEGER ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1005
SELECT ALL - 48 + + 5 DIV + ( ( + COUNT( * ) ) )
----
-43

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL - 48 + + 5 / + ( ( + COUNT ( * ) ) )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1006
SELECT 52 DIV - 6 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1006
SELECT 52 / - 6 AS col1
----
-8

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

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

query I rowsort
SELECT ALL + + 76 + + - 45 col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT DISTINCT - 72 AS col0, 47 + - COUNT( DISTINCT 99 )
----
-72
46

skipif mysql # not compatible
query II rowsort label-1009
SELECT DISTINCT - 72 AS col0, 47 + - COUNT ( DISTINCT 99 )
----
-72
46

query I rowsort
SELECT ( + + NULLIF ( - 90, - 28 / - 54 ) )
----
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT DISTINCT - MIN( + + 51 ) + 93 * - ( - + 9 ) AS col2
----
786

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT - MIN ( + + 51 ) + 93 * - ( - + 9 ) AS col2
----
786

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL - - 96 + - COUNT( - 13 ) + - + 43 * 45 col0
----
-1840

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL - - 96 + - COUNT ( - 13 ) + - + 43 * 45 col0
----
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT COUNT( DISTINCT + 99 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1014
SELECT COUNT ( DISTINCT + 99 ) col0
----
1

query I rowsort
SELECT - 52 * + 0 * - - 7 + - + 81 AS col1
----
-81

query I rowsort
SELECT DISTINCT - + 83 * 89 * - 9 AS col2
----
66483

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT - SUM( + - 75 ) + 2 - + 78 * 57 AS col0
----
-4369

skipif mysql # not compatible
query I rowsort label-1017
SELECT - SUM ( + - 75 ) + 2 - + 78 * 57 AS col0
----
-4369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT COUNT( * ) * 79 + COUNT( * ) DIV + + 53 + - COUNT( DISTINCT 68 ) + + - 43 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1018
SELECT COUNT ( * ) * 79 + COUNT ( * ) / + + 53 + - COUNT ( DISTINCT 68 ) + + - 43 AS col0
----
35

query I rowsort
SELECT 59 * + - 81 AS col0
----
-4779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT DISTINCT - CAST( + 37 AS SIGNED ) * + - 37
----
1369

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - CAST ( + 37 AS INTEGER ) * + - 37
----
1369

query I rowsort
SELECT 69 - - 70
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT CASE 45 WHEN + - AVG ( + 47 ) * 42 + COUNT( * ) THEN 93 ELSE NULL END + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT CASE 45 WHEN + - AVG ( + 47 ) * 42 + COUNT ( * ) THEN 93 ELSE NULL END + 86 AS col0
----
NULL

query I rowsort
SELECT 59 * - 82
----
-4838

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT MAX( + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT MAX ( + 74 ) AS col2
----
74

query I rowsort
SELECT ALL + 39 * - 71
----
-2769

query I rowsort
SELECT DISTINCT 41 * - - COALESCE ( + 8, - + 98, 45 ) + + 49
----
377

query I rowsort
SELECT DISTINCT 62 * 10
----
620

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT + ( - 45 ) DIV - 11 + + 70
----
74

skipif mysql # not compatible
query I rowsort label-1029
SELECT + ( - 45 ) / - 11 + + 70
----
74

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1031
SELECT - ( - 79 ), ( - - CAST( NULL AS SIGNED ) ) col2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1031
SELECT - ( - 79 ), ( - - CAST ( NULL AS INTEGER ) ) col2
----
79
NULL

query II rowsort
SELECT 87 * + + 86 AS col1, - 15 AS col0
----
7482
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT ALL + COUNT( 34 ) * 68 * - 57 * + 94 + + 43 + - COUNT( 31 ) AS col0
----
-364302

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL + COUNT ( 34 ) * 68 * - 57 * + 94 + + 43 + - COUNT ( 31 ) AS col0
----
-364302

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

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

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

query I rowsort
SELECT DISTINCT + + 29 * - 65 * + + 1 + - 41
----
-1926

query I rowsort
SELECT - 14 + - 15 * - - 53 AS col0
----
-809

query I rowsort
SELECT + + 86 * - + 94 + - 19 AS col2
----
-8103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1039
SELECT - CASE AVG ( DISTINCT + 99 ) WHEN COUNT( * ) THEN + + 63 END * - COUNT( * ) + ( + CAST( NULL AS DECIMAL ) ) / - AVG ( ALL 80 ) / + + 35 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT - CASE AVG ( DISTINCT + 99 ) WHEN COUNT ( * ) THEN + + 63 END * - COUNT ( * ) + ( + CAST ( NULL AS REAL ) ) / - AVG ( ALL 80 ) / + + 35 * - 51
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL + 9 - + 22 + + + 3 + - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + 9 - + 22 + + + 3 + - COUNT ( * ) AS col2
----
-11

query I rowsort
SELECT - 53 * + + 60
----
-3180

query II rowsort
SELECT 14 AS col1, + ( + + 81 ) col1
----
14
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1044
SELECT ALL CASE + - COALESCE ( - 2, - 35 * + NULLIF ( + + 22, - 42 ) + - 56 * 32, 67 ) WHEN - CASE - 62 WHEN + 86 THEN - - 51 ELSE - 17 + - 95 END * - 60 + 7 - - COUNT( * ) * 10 / + - 31 - + 15 + + COALESCE ( - - 85, 82 + - + 90 ) * CAST( + + 32 AS DECIMAL ) THEN NULL ELSE MIN( ALL 51 ) + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL CASE + - COALESCE ( - 2, - 35 * + NULLIF ( + + 22, - 42 ) + - 56 * 32, 67 ) WHEN - CASE - 62 WHEN + 86 THEN - - 51 ELSE - 17 + - 95 END * - 60 + 7 - - COUNT ( * ) * 10 / + - 31 - + 15 + + COALESCE ( - - 85, 82 + - + 90 ) * CAST ( + + 32 AS REAL ) THEN NULL ELSE MIN ( ALL 51 ) + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + 97 - 83
----
14

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

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

query I rowsort
SELECT DISTINCT - 24 * - 79 * - + 16 AS col2
----
-30336

query I rowsort
SELECT ALL - 6 * 46
----
-276

query II rowsort
SELECT 14, 14 AS col0
----
14
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1051
SELECT - 75 + + 51 + - + 43 + - NULLIF ( - 47, 4 * + 70 + + + 62 ) DIV + 13 * + COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1051
SELECT - 75 + + 51 + - + 43 + - NULLIF ( - 47, 4 * + 70 + + + 62 ) / + 13 * + COUNT ( * ) AS col0
----
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL - 7 + + COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL - 7 + + COUNT ( * ) AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1054
SELECT ALL SUM( + 49 ) DIV ( - - 79 ) AS col0, + SUM( 75 ) DIV - 97 - - 37
----
0
37

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL SUM ( + 49 ) / ( - - 79 ) AS col0, + SUM ( 75 ) / - 97 - - 37
----
0
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1055
SELECT ALL CAST( NULL AS SIGNED ) + + - MIN( DISTINCT + - 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL CAST ( NULL AS INTEGER ) + + - MIN ( DISTINCT + - 80 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1056
SELECT ALL CASE - 97 WHEN - + 99 * + - SUM( DISTINCT 42 ) + + COALESCE ( 23, + 98 * + 18, + 73 + 37 + - CAST( + 29 AS SIGNED ) - + + COALESCE ( + + 69, 19 + + 44, + - 57 * - + COUNT( * ) + 35 ) / COUNT( * ) ) - 22 THEN - - 84 * 65 * + - 43 + - 12 - + MAX( + 86 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL CASE - 97 WHEN - + 99 * + - SUM ( DISTINCT 42 ) + + COALESCE ( 23, + 98 * + 18, + 73 + 37 + - CAST ( + 29 AS INTEGER ) - + + COALESCE ( + + 69, 19 + + 44, + - 57 * - + COUNT ( * ) + 35 ) / COUNT ( * ) ) - 22 THEN - - 84 * 65 * + - 43 + - 12 - + MAX ( + 86 ) END
----
NULL

query I rowsort
SELECT + 92 * 79
----
7268

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL + 62 + + SUM( ALL - - 74 ) + - - 99 * + 81
----
8155

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + 62 + + SUM ( ALL - - 74 ) + - - 99 * + 81
----
8155

query I rowsort
SELECT - ( - COALESCE ( 33, - NULLIF ( 9, - + 74 ) ) ) - + 64
----
-31

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

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

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

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

query II rowsort
SELECT DISTINCT + 63, 92 AS col0
----
63
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL - MAX( ALL - + 62 ) * + 3
----
186

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL - MAX ( ALL - + 62 ) * + 3
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1065
SELECT ALL - 45 * COALESCE ( - + 61, 80, MIN( ALL + + 0 ) ) AS col0, 7 DIV - 90 col0
----
2745
0

skipif mysql # not compatible
query II rowsort label-1065
SELECT ALL - 45 * COALESCE ( - + 61, 80, MIN ( ALL + + 0 ) ) AS col0, 7 / - 90 col0
----
2745
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1066
SELECT DISTINCT - COALESCE ( + ( CAST( NULL AS SIGNED ) ), + 97 ) DIV 57 * + 74 + - COUNT( * ) + + 82
----
7

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), + 97 ) / 57 * + 74 + - COUNT ( * ) + + 82
----
7

query II rowsort
SELECT + 17 col0, 57 + - 8
----
17
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT DISTINCT - + 85 * - + 80 * - + 42 * 9 + + 0 * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT - + 85 * - + 80 * - + 42 * 9 + + 0 * + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL 59 * - + COUNT( * ) * 97 AS col0
----
-5723

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL 59 * - + COUNT ( * ) * 97 AS col0
----
-5723

onlyif mysql # DIV for integer division: 
query II rowsort label-1070
SELECT + 67, 23 - 46 + - + 36 DIV - 87 * - + 29 AS col0
----
67
-23

skipif mysql # not compatible
query II rowsort label-1070
SELECT + 67, 23 - 46 + - + 36 / - 87 * - + 29 AS col0
----
67
-23

query II rowsort
SELECT DISTINCT + + 77 AS col1, + COALESCE ( + - 42, - + NULLIF ( - - ( + 23 ), + 78 ) )
----
77
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT ALL + 94 AS col2, COUNT( + 13 )
----
94
1

skipif mysql # not compatible
query II rowsort label-1072
SELECT ALL + 94 AS col2, COUNT ( + 13 )
----
94
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1073
SELECT + 58 * - 17 + + 53 AS col2, CAST( - 2 AS SIGNED ) + - 94 AS col1
----
-933
-96

skipif mysql # not compatible
query II rowsort label-1073
SELECT + 58 * - 17 + + 53 AS col2, CAST ( - 2 AS INTEGER ) + - 94 AS col1
----
-933
-96

query I rowsort
SELECT + ( - - 27 ) * - 96
----
-2592

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT + NULLIF ( COUNT( * ), + + MAX( ALL - + 14 ) * + + COALESCE ( + COUNT( * ), - 59 ) * - 82 ), 18 * + + 55 + 2 AS col0
----
1
992

skipif mysql # not compatible
query II rowsort label-1076
SELECT + NULLIF ( COUNT ( * ), + + MAX ( ALL - + 14 ) * + + COALESCE ( + COUNT ( * ), - 59 ) * - 82 ), 18 * + + 55 + 2 AS col0
----
1
992

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT - 88 * + + 48 - - 46 + - - CASE + + 21 WHEN + 56 - - 12 THEN + 95 WHEN 68 * + + 82 - 39 + + 59 + - COUNT( ALL + 24 ) * - 46 + - + MAX( DISTINCT + ( 32 ) ) THEN + COUNT( * ) + - COUNT( * ) END + - 97 / 54 - + 11 / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT - 88 * + + 48 - - 46 + - - CASE + + 21 WHEN + 56 - - 12 THEN + 95 WHEN 68 * + + 82 - 39 + + 59 + - COUNT ( ALL + 24 ) * - 46 + - + MAX ( DISTINCT + ( 32 ) ) THEN + COUNT ( * ) + - COUNT ( * ) END + - 97 / 54 - + 11 / 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1078
SELECT + 41, 56 * COUNT( * ) * - NULLIF ( - - 13, - + CAST( - 50 AS SIGNED ) ) col2
----
41
-728

skipif mysql # not compatible
query II rowsort label-1078
SELECT + 41, 56 * COUNT ( * ) * - NULLIF ( - - 13, - + CAST ( - 50 AS INTEGER ) ) col2
----
41
-728

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1079
SELECT ALL + CASE + 20 WHEN CAST( NULL AS SIGNED ) * 41 THEN NULL ELSE + 42 DIV + 27 - + - 16 END
----
17

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL + CASE + 20 WHEN CAST ( NULL AS INTEGER ) * 41 THEN NULL ELSE + 42 / + 27 - + - 16 END
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT ALL - 69 DIV - 13
----
5

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL - 69 / - 13
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1081
SELECT ALL 70 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL 70 / - 60
----
-1

query I rowsort
SELECT + NULLIF ( + + 61, - + 74 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1083
SELECT + NULLIF ( - - 58, - 20 ) * COUNT( * ) AS col1, 57 * - COUNT( * ) - + ( 59 ) * 21 AS col1
----
58
-1296

skipif mysql # not compatible
query II rowsort label-1083
SELECT + NULLIF ( - - 58, - 20 ) * COUNT ( * ) AS col1, 57 * - COUNT ( * ) - + ( 59 ) * 21 AS col1
----
58
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT + COUNT( * ) + + 90 + 78 * - 59 AS col0
----
-4511

skipif mysql # not compatible
query I rowsort label-1084
SELECT + COUNT ( * ) + + 90 + 78 * - 59 AS col0
----
-4511

query I rowsort
SELECT + 94 + - ( - 8 ) AS col0
----
102

query I rowsort
SELECT - 99 - - + 44 * + + 11 AS col0
----
385

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT + ( - 58 ) DIV - - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1087
SELECT + ( - 58 ) / - - 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1088
SELECT ALL 84 * + 69 * 5 + ( + + COALESCE ( - 31, 59 ) ) AS col2, COUNT( * ) AS col0
----
28949
1

skipif mysql # not compatible
query II rowsort label-1088
SELECT ALL 84 * + 69 * 5 + ( + + COALESCE ( - 31, 59 ) ) AS col2, COUNT ( * ) AS col0
----
28949
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1089
SELECT DISTINCT + 48 DIV - 92, - COUNT( * ) * + - COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-1089
SELECT DISTINCT + 48 / - 92, - COUNT ( * ) * + - COUNT ( * ) AS col2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1090
SELECT + CAST( NULL AS SIGNED ) + + 12 * + 72 + + + ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1090
SELECT + CAST ( NULL AS INTEGER ) + + 12 * + 72 + + + ( COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ALL 28 + + + 91 DIV 6 * 21
----
343

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 28 + + + 91 / 6 * 21
----
343

query I rowsort
SELECT DISTINCT 87 + - 16 + + - 66 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL MAX( + + 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL MAX ( + + 28 ) AS col1
----
28

query I rowsort
SELECT ALL - 75 + 3
----
-72

query II rowsort
SELECT - 16 + - 3 AS col2, + 76 AS col2
----
-19
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL 22 + ( - COUNT( ALL - 99 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL 22 + ( - COUNT ( ALL - 99 ) ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT CASE 49 WHEN + 99 / - + 19 THEN - 30 * - 78 + - COUNT( DISTINCT + 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT CASE 49 WHEN + 99 / - + 19 THEN - 30 * - 78 + - COUNT ( DISTINCT + 79 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1098
SELECT - 92 + + 56 col1, - MIN( DISTINCT - - 18 ) AS col2
----
-36
-18

skipif mysql # not compatible
query II rowsort label-1098
SELECT - 92 + + 56 col1, - MIN ( DISTINCT - - 18 ) AS col2
----
-36
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL - CASE + + 62 WHEN 75 + 43 THEN COUNT( * ) + + 7 ELSE NULL END + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - CASE + + 62 WHEN 75 + 43 THEN COUNT ( * ) + + 7 ELSE NULL END + + 89 AS col2
----
NULL

query I rowsort
SELECT + 80 + - - 47
----
127

query I rowsort
SELECT DISTINCT 98 * 77
----
7546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1102
SELECT COUNT( * ) DIV + 26 col0
----
0

skipif mysql # not compatible
query I rowsort label-1102
SELECT COUNT ( * ) / + 26 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT + 58 - - ( - + MIN( DISTINCT - 10 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + 58 - - ( - + MIN ( DISTINCT - 10 ) ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1104
SELECT ALL CAST( NULL AS SIGNED ) / 68 * - SUM( DISTINCT 78 ) + COUNT( + 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL CAST ( NULL AS INTEGER ) / 68 * - SUM ( DISTINCT 78 ) + COUNT ( + 43 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT - 10 * - 43 + - 31 + + COUNT( * ) * - 43 * 20 + + + ( - - 24 )
----
-437

skipif mysql # not compatible
query I rowsort label-1105
SELECT - 10 * - 43 + - 31 + + COUNT ( * ) * - 43 * 20 + + + ( - - 24 )
----
-437

query I rowsort
SELECT 29 * 50 AS col2
----
1450

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

skipif mysql # not compatible
query I rowsort label-1107
SELECT SUM ( ALL 46 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT + - COALESCE ( + MIN( + 45 ), - 28 ), COUNT( * ) col0
----
-45
1

skipif mysql # not compatible
query II rowsort label-1108
SELECT + - COALESCE ( + MIN ( + 45 ), - 28 ), COUNT ( * ) col0
----
-45
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1109
SELECT - 81 / + 25 + CASE 93 WHEN 97 * - 64 * + 59 THEN + - 40 * - 18 WHEN + 90 THEN NULL ELSE NULL END * + 10 * + 50, 30 - + MIN( + CAST( NULL AS SIGNED ) ) + + 43 * - CAST( NULL AS SIGNED ) * + - 45 / - 4 + - 91 * - - 25 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1109
SELECT - 81 / + 25 + CASE 93 WHEN 97 * - 64 * + 59 THEN + - 40 * - 18 WHEN + 90 THEN NULL ELSE NULL END * + 10 * + 50, 30 - + MIN ( + CAST ( NULL AS INTEGER ) ) + + 43 * - CAST ( NULL AS INTEGER ) * + - 45 / - 4 + - 91 * - - 25 AS col0
----
NULL
NULL

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

query I rowsort
SELECT ALL - - 32 col2
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-1112
SELECT 44 DIV - - 17 col0, 93
----
2
93

skipif mysql # not compatible
query II rowsort label-1112
SELECT 44 / - - 17 col0, 93
----
2
93

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL - 23 * - 30 * 92 * - + 53 + - CASE - 96 WHEN + - 52 THEN + COUNT( * ) ELSE - COUNT( ALL 59 ) * - 37 + - COUNT( DISTINCT + 93 ) + - - COUNT( * ) END - 9 * 82 AS col1
----
-3365215

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - 23 * - 30 * 92 * - + 53 + - CASE - 96 WHEN + - 52 THEN + COUNT ( * ) ELSE - COUNT ( ALL 59 ) * - 37 + - COUNT ( DISTINCT + 93 ) + - - COUNT ( * ) END - 9 * 82 AS col1
----
-3365215

onlyif mysql # aggregate syntax: 
query II rowsort label-1116
SELECT ALL - 17 AS col1, 23 + + + SUM( - - 91 )
----
-17
114

skipif mysql # not compatible
query II rowsort label-1116
SELECT ALL - 17 AS col1, 23 + + + SUM ( - - 91 )
----
-17
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT DISTINCT - COALESCE ( + - 59, - - 60 * + 45 * + 83 - 65 - + 30 * 49 DIV - 6 )
----
59

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT - COALESCE ( + - 59, - - 60 * + 45 * + 83 - 65 - + 30 * 49 / - 6 )
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1118
SELECT CASE - 4 WHEN - CAST( NULL AS SIGNED ) THEN - 51 + - + 69 WHEN 60 THEN + 52 DIV + + 26 ELSE + 29 END * 50
----
1450

skipif mysql # not compatible
query I rowsort label-1118
SELECT CASE - 4 WHEN - CAST ( NULL AS INTEGER ) THEN - 51 + - + 69 WHEN 60 THEN + 52 / + + 26 ELSE + 29 END * 50
----
1450

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

skipif mysql # not compatible
query I rowsort label-1119
SELECT 70 * 47 * + COUNT ( * ) + - 18 AS col0
----
3272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1120
SELECT ALL COUNT( * ) * + COALESCE ( 82, - - COUNT( * ) * + 96 DIV MIN( ALL + CASE WHEN NULL IS NULL THEN - 44 ELSE NULL END ) DIV - 13 + - - 56 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL COUNT ( * ) * + COALESCE ( 82, - - COUNT ( * ) * + 96 / MIN ( ALL + CASE WHEN NULL IS NULL THEN - 44 ELSE NULL END ) / - 13 + - - 56 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL + 7 + - 39 + - SUM( ( - + 21 ) ) * + + ( - - COUNT( * ) ) + - - 40 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL + 7 + - 39 + - SUM ( ( - + 21 ) ) * + + ( - - COUNT ( * ) ) + - - 40 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT - 52 + + 67 * COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT - 52 + + 67 * COUNT ( * ) AS col2
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL COUNT( * ) * - 5 * + 65 AS col1
----
-325

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL COUNT ( * ) * - 5 * + 65 AS col1
----
-325

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

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

query II rowsort
SELECT 93 - + 37 + 83 AS col0, + 79 * 29
----
139
2291

query II rowsort
SELECT - 92, + 15 * + 20 AS col0
----
-92
300

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT ALL ( + 40 ) + + + MAX( DISTINCT 24 ) + - - COUNT( * ) * COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL ( + 40 ) + + + MAX ( DISTINCT 24 ) + - - COUNT ( * ) * COUNT ( * )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1129
SELECT ( + 11 ) * - CASE - AVG ( ALL + 72 ) WHEN + - ( + CASE - + 32 WHEN + ( + - CAST( + COUNT( * ) AS SIGNED ) ) THEN + - 9 WHEN + 59 THEN NULL END ) THEN NULL WHEN 87 + + CAST( NULL AS SIGNED ) THEN - 30 * 94 + - + CASE + + 11 WHEN + - 44 * + 25 + + + 46 * + 69 + 32 THEN - 41 WHEN + 6 THEN NULL END + + + 8 + - 46 / + + 28 + - 80 + COUNT( * ) * 30 ELSE NULL END * 69 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT ( + 11 ) * - CASE - AVG ( ALL + 72 ) WHEN + - ( + CASE - + 32 WHEN + ( + - CAST ( + COUNT ( * ) AS INTEGER ) ) THEN + - 9 WHEN + 59 THEN NULL END ) THEN NULL WHEN 87 + + CAST ( NULL AS INTEGER ) THEN - 30 * 94 + - + CASE + + 11 WHEN + - 44 * + 25 + + + 46 * + 69 + 32 THEN - 41 WHEN + 6 THEN NULL END + + + 8 + - 46 / + + 28 + - 80 + COUNT ( * ) * 30 ELSE NULL END * 69 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT 38 * + - MIN( - + ( - 73 ) )
----
-2774

skipif mysql # not compatible
query I rowsort label-1130
SELECT 38 * + - MIN ( - + ( - 73 ) )
----
-2774

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT COUNT( * ) * - NULLIF ( + ( + 47 ), + - SUM( ALL - + 82 ) * + + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-1131
SELECT COUNT ( * ) * - NULLIF ( + ( + 47 ), + - SUM ( ALL - + 82 ) * + + COUNT ( * ) )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT DISTINCT - 17 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT - 17 / - 59
----
0

query I rowsort
SELECT ALL 91 - 80
----
11

query I rowsort
SELECT - 31 * - 62
----
1922

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT ALL - - ( - 59 ) DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL - - ( - 59 ) / 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1136
SELECT MIN( - 90 ) * SUM( 49 ) DIV + - COUNT( * ) * COUNT( * ) AS col0
----
4410

skipif mysql # not compatible
query I rowsort label-1136
SELECT MIN ( - 90 ) * SUM ( 49 ) / + - COUNT ( * ) * COUNT ( * ) AS col0
----
4410

query I rowsort
SELECT + 80 * + - 67 col1
----
-5360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT ( + 47 ) + - - COUNT( * ) + + CAST( + 0 AS SIGNED ) * + 39
----
48

skipif mysql # not compatible
query I rowsort label-1138
SELECT ( + 47 ) + - - COUNT ( * ) + + CAST ( + 0 AS INTEGER ) * + 39
----
48

query I rowsort
SELECT - - 21
----
21

query I rowsort
SELECT 77 * 2 + + 38 AS col1
----
192

query I rowsort
SELECT ALL + 13 * - + 40 AS col2
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - COUNT( * ) * + 71 * + 53 + + - 76
----
-3839

skipif mysql # not compatible
query I rowsort label-1142
SELECT - COUNT ( * ) * + 71 * + 53 + + - 76
----
-3839

query I rowsort
SELECT ALL 16 * + 84
----
1344

query II rowsort
SELECT ALL - - 21, 26 * 41 AS col2
----
21
1066

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

query I rowsort
SELECT - 87 - - - 44
----
-131

query I rowsort
SELECT DISTINCT - - 61
----
61

query I rowsort
SELECT 23 - + 72 AS col2
----
-49

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1150
SELECT 98 / - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1150
SELECT 98 / - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1151
SELECT 69 * - + 97 * + 74 * - CAST( - 79 AS SIGNED ) AS col2
----
-39127278

skipif mysql # not compatible
query I rowsort label-1151
SELECT 69 * - + 97 * + 74 * - CAST ( - 79 AS INTEGER ) AS col2
----
-39127278

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT + CASE 71 WHEN - 67 * - + 21 * 97 + 69 THEN ( 73 ) * + 63 ELSE - 44 END / + - NULLIF ( + CASE + CASE + - 63 WHEN NULLIF ( 23, - 63 ) + - COUNT( * ) THEN 28 ELSE NULL END WHEN + + 77 THEN - 77 WHEN - 65 - + + 41 + 43 / + - 84 THEN NULL END, + COUNT( * ) / + 13 ) + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT + CASE 71 WHEN - 67 * - + 21 * 97 + 69 THEN ( 73 ) * + 63 ELSE - 44 END / + - NULLIF ( + CASE + CASE + - 63 WHEN NULLIF ( 23, - 63 ) + - COUNT ( * ) THEN 28 ELSE NULL END WHEN + + 77 THEN - 77 WHEN - 65 - + + 41 + 43 / + - 84 THEN NULL END, + COUNT ( * ) / + 13 ) + 4
----
NULL

query II rowsort
SELECT + 58, + 49 AS col2
----
58
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL + 38 + - MAX( DISTINCT 31 )
----
7

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + 38 + - MAX ( DISTINCT 31 )
----
7

query I rowsort
SELECT ALL - 47 * 85 AS col1
----
-3995

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT 88 DIV - ( + + 70 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1156
SELECT 88 / - ( + + 70 ) AS col2
----
-1

query I rowsort
SELECT ALL - 75 + - 33 AS col0
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1158
SELECT DISTINCT + 20 + 71 + 57 * - + 38, CASE 39 WHEN - + COUNT( * ) * - 96 THEN NULL ELSE - + SUM( DISTINCT - - 99 ) + - 35 END + + 95 DIV 60 AS col0
----
-2075
-133

skipif mysql # not compatible
query II rowsort label-1158
SELECT DISTINCT + 20 + 71 + 57 * - + 38, CASE 39 WHEN - + COUNT ( * ) * - 96 THEN NULL ELSE - + SUM ( DISTINCT - - 99 ) + - 35 END + + 95 / 60 AS col0
----
-2075
-133

query I rowsort
SELECT DISTINCT - 66 * + 38
----
-2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1160
SELECT COUNT( * ) - + + 93 + + 58 DIV + - 84 * - 5 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1160
SELECT COUNT ( * ) - + + 93 + + 58 / + - 84 * - 5 AS col0
----
-92

query I rowsort
SELECT ALL + 2 * - 23 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1162
SELECT + 29 AS col0, 20 + COUNT( * ) + + COUNT( * ) + + 85 + COUNT( - 83 ) * - 78 AS col0
----
29
29

skipif mysql # not compatible
query II rowsort label-1162
SELECT + 29 AS col0, 20 + COUNT ( * ) + + COUNT ( * ) + + 85 + COUNT ( - 83 ) * - 78 AS col0
----
29
29

query II rowsort
SELECT 24 col1, - 89
----
24
-89

query I rowsort
SELECT 93 + - 24 AS col2
----
69

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

skipif mysql # not compatible
query I rowsort label-1165
SELECT - MAX ( + + 30 )
----
-30

query I rowsort
SELECT 3 + + 75 * - 82 + 47 + + 28 AS col1
----
-6072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1167
SELECT + 86 - - 46 + - CAST( - - 53 AS SIGNED ) col0, - MIN( - 18 ) AS col0
----
79
18

skipif mysql # not compatible
query II rowsort label-1167
SELECT + 86 - - 46 + - CAST ( - - 53 AS INTEGER ) col0, - MIN ( - 18 ) AS col0
----
79
18

query II rowsort
SELECT ALL 40 AS col1, - ( + + 61 )
----
40
-61

query I rowsort
SELECT - 18 * 94 + + 60 * + 97 col1
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT ALL + MAX( ( 21 ) ) - 19 + COUNT( DISTINCT + + 77 ) + 16 * - COUNT( DISTINCT - 88 ) * + 47
----
-749

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + MAX ( ( 21 ) ) - 19 + COUNT ( DISTINCT + + 77 ) + 16 * - COUNT ( DISTINCT - 88 ) * + 47
----
-749

query I rowsort
SELECT + 33 + + 20
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL COALESCE ( - 66, + - COALESCE ( + + 2, 18 ), MIN( DISTINCT + 1 ), + 30 + 32 * + 47 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL COALESCE ( - 66, + - COALESCE ( + + 2, 18 ), MIN ( DISTINCT + 1 ), + 30 + 32 * + 47 ) AS col2
----
-66

query I rowsort
SELECT ALL CASE 39 WHEN - ( - 70 ) THEN 53 END AS col1
----
NULL

query I rowsort
SELECT + + 64 + - 69 + - + 9 + - + 75 AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1175
SELECT ALL + CAST( - 89 AS SIGNED ) DIV 14 * - + 84 + 24 AS col0
----
528

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL + CAST ( - 89 AS INTEGER ) / 14 * - + 84 + 24 AS col0
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT 7 * COUNT( * ) * + CASE ( + + 23 ) WHEN + COUNT( * ) THEN + + 11 + 69 - 77 WHEN - 20 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT 7 * COUNT ( * ) * + CASE ( + + 23 ) WHEN + COUNT ( * ) THEN + + 11 + 69 - 77 WHEN - 20 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1177
SELECT ALL + 8 * 91 DIV - 60 * COUNT( * ) - - - 38 + + - 5 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + 8 * 91 / - 60 * COUNT ( * ) - - - 38 + + - 5 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT + CASE 27 WHEN - 84 * - - 47 + + 15 + + COUNT( * ) * - 29 - - 15 THEN NULL WHEN - 32 THEN + 16 + + + 47 ELSE NULL END * - ( + + 94 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT + CASE 27 WHEN - 84 * - - 47 + + 15 + + COUNT ( * ) * - 29 - - 15 THEN NULL WHEN - 32 THEN + 16 + + + 47 ELSE NULL END * - ( + + 94 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1180
SELECT + - 37 DIV CAST( 92 AS SIGNED ) * 56 col2, - 82 AS col2
----
0
-82

skipif mysql # not compatible
query II rowsort label-1180
SELECT + - 37 / CAST ( 92 AS INTEGER ) * 56 col2, - 82 AS col2
----
0
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1181
SELECT DISTINCT - 26 DIV - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT - 26 / - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1182
SELECT + + MAX( + 32 ) * + 87 * + 18 - 41 DIV - - 88 AS col2
----
50112

skipif mysql # not compatible
query I rowsort label-1182
SELECT + + MAX ( + 32 ) * + 87 * + 18 - 41 / - - 88 AS col2
----
50112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1183
SELECT ALL MAX( - 38 ), - 34 DIV + - 38 - - 49 - - + COUNT( * ) * + COUNT( * ) * ( + + 55 ) AS col0
----
-38
104

skipif mysql # not compatible
query II rowsort label-1183
SELECT ALL MAX ( - 38 ), - 34 / + - 38 - - 49 - - + COUNT ( * ) * + COUNT ( * ) * ( + + 55 ) AS col0
----
-38
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1184
SELECT ALL - + CAST( - - 30 AS SIGNED ) * - 99 AS col2
----
2970

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL - + CAST ( - - 30 AS INTEGER ) * - 99 AS col2
----
2970

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

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

query II rowsort
SELECT ALL + + 55, 42 AS col0
----
55
42

query I rowsort
SELECT + 33 + + 16 col1
----
49

query I rowsort
SELECT ALL - 79 * + 93 AS col2
----
-7347

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT + 71 + 61 + - COUNT( * ) - 13 + 58 * - + 1
----
60

skipif mysql # not compatible
query I rowsort label-1189
SELECT + 71 + 61 + - COUNT ( * ) - 13 + 58 * - + 1
----
60

query I rowsort
SELECT ALL 28 * - 69 * 45 + 61
----
-86879

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL + 88 * - COUNT( * ) * + + 44 + 57 AS col0
----
-3815

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + 88 * - COUNT ( * ) * + + 44 + 57 AS col0
----
-3815

query I rowsort
SELECT ALL 29 * + - 71 * + 54 AS col0
----
-111186

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT COALESCE ( COUNT( * ), + - 31 * + 98, - 59 * + SUM( + - 45 ) + 69 + + ( + 99 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1194
SELECT COALESCE ( COUNT ( * ), + - 31 * + 98, - 59 * + SUM ( + - 45 ) + 69 + + ( + 99 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT - 93 + + - COUNT( * ) AS col2, 60 + 15
----
-94
75

skipif mysql # not compatible
query II rowsort label-1195
SELECT - 93 + + - COUNT ( * ) AS col2, 60 + 15
----
-94
75

query I rowsort
SELECT + 5 * - 65 * - + 27 * + ( + + 50 ) AS col2
----
438750

query I rowsort
SELECT - 10 * - 48
----
480

query I rowsort
SELECT - 81 * ( - 43 )
----
3483

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1199
SELECT - 52 * 29 + - 71 AS col1, 92 DIV - - 9 + + - 49 * + + COUNT( * ) + - NULLIF ( + COUNT( - 29 ), - - CASE + 52 WHEN + COUNT( * ) * - 84 THEN - - 81 WHEN - COUNT( * ) THEN - + COALESCE ( COUNT( * ), - 66 + 19 + + 48, + MIN( + - 8 ) + 56 * SUM( DISTINCT - 94 ) * + 80 ) + + + 92 WHEN - 51 THEN NULL ELSE NULL END ) AS col1
----
-1579
-40

skipif mysql # not compatible
query II rowsort label-1199
SELECT - 52 * 29 + - 71 AS col1, 92 / - - 9 + + - 49 * + + COUNT ( * ) + - NULLIF ( + COUNT ( - 29 ), - - CASE + 52 WHEN + COUNT ( * ) * - 84 THEN - - 81 WHEN - COUNT ( * ) THEN - + COALESCE ( COUNT ( * ), - 66 + 19 + + 48, + MIN ( + - 8 ) + 56 * SUM ( DISTINCT - 94 ) * + 80 ) + + + 92 WHEN - 51 THEN NULL ELSE NULL END ) AS col1
----
-1579
-40

query I rowsort
SELECT ALL + ( 19 ) AS col0
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT NULLIF ( + + 39, COUNT( * ) * + 50 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1202
SELECT NULLIF ( + + 39, COUNT ( * ) * + 50 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL 58 * - 71 - + MAX( - - 51 ) * + 51 + - COALESCE ( + 96, - 0, NULLIF ( - 22, 44 * 63 + - 57 - + ( 9 ) ) * - 80 + - 84 ) AS col1
----
-6815

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL 58 * - 71 - + MAX ( - - 51 ) * + 51 + - COALESCE ( + 96, - 0, NULLIF ( - 22, 44 * 63 + - 57 - + ( 9 ) ) * - 80 + - 84 ) AS col1
----
-6815

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1204
SELECT DISTINCT - CAST( - CASE + - COUNT( * ) WHEN 95 + 67 + + + 78 * 3 - - 22 THEN MIN( - 16 ) WHEN + - 21 THEN - 17 END AS DECIMAL ) * - 17 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT - CAST ( - CASE + - COUNT ( * ) WHEN 95 + 67 + + + 78 * 3 - - 22 THEN MIN ( - 16 ) WHEN + - 21 THEN - 17 END AS REAL ) * - 17 * 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL - COUNT( * ) * 48 * CASE + 98 WHEN - + 67 THEN 15 ELSE NULL END - + 15 + - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - COUNT ( * ) * 48 * CASE + 98 WHEN - + 67 THEN 15 ELSE NULL END - + 15 + - 19 AS col1
----
NULL

query I rowsort
SELECT - 51 * 60 * + 5
----
-15300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1207
SELECT ALL CASE + COUNT( * ) WHEN 8 THEN ( 23 ) + 9 ELSE 73 DIV + - 87 + + 31 + + 62 + + 40 + + COUNT( * ) + + 23 * + - 13 * - + CAST( 93 AS SIGNED ) + + 58 + + 38 END
----
28037

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL CASE + COUNT ( * ) WHEN 8 THEN ( 23 ) + 9 ELSE 73 / + - 87 + + 31 + + 62 + + 40 + + COUNT ( * ) + + 23 * + - 13 * - + CAST ( 93 AS INTEGER ) + + 58 + + 38 END
----
28037

query II rowsort
SELECT ALL - 17 * + 85 AS col2, 7
----
-1445
7

onlyif mysql # DIV for integer division: 
query II rowsort label-1209
SELECT - 27 DIV + 98, 4 AS col1
----
0
4

skipif mysql # not compatible
query II rowsort label-1209
SELECT - 27 / + 98, 4 AS col1
----
0
4

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

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT ( + + CASE 6 WHEN + COUNT ( * ) * - 88 THEN - 44 END )
----
NULL

query I rowsort
SELECT ALL - + 83 * - 8
----
664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1212
SELECT + CAST( NULL AS SIGNED ) * SUM( ALL + 11 ) AS col2
----
NULL

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

query I rowsort
SELECT - 79 - - 75
----
-4

query I rowsort
SELECT COALESCE ( + 16, NULLIF ( - 84, + - 10 ) ) AS col0
----
16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1216
SELECT ALL NULLIF ( - 8, SUM( CAST( 51 AS SIGNED ) ) )
----
-8

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL NULLIF ( - 8, SUM ( CAST ( 51 AS INTEGER ) ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT - + 8 * SUM( - + 19 ) AS col2
----
152

skipif mysql # not compatible
query I rowsort label-1217
SELECT - + 8 * SUM ( - + 19 ) AS col2
----
152

query I rowsort
SELECT ALL + 27 + - + NULLIF ( 88, 5 ) + 29
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-1219
SELECT + + COUNT( * ) - + - 98, 4 AS col2
----
99
4

skipif mysql # not compatible
query II rowsort label-1219
SELECT + + COUNT ( * ) - + - 98, 4 AS col2
----
99
4

query I rowsort
SELECT + 56 * + 44 * 92
----
226688

query I rowsort
SELECT ALL 25 * 98 AS col2
----
2450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1222
SELECT + MAX( DISTINCT NULLIF ( - + 60, - 96 ) ) DIV - 33 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1222
SELECT + MAX ( DISTINCT NULLIF ( - + 60, - 96 ) ) / - 33 AS col0
----
1

query I rowsort
SELECT DISTINCT + 3 * + - 39
----
-117

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT + + 64 DIV - 16
----
-4

skipif mysql # not compatible
query I rowsort label-1226
SELECT + + 64 / - 16
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1227
SELECT ALL - ( - 11 ) DIV 76 * - + COUNT( * ) + - 13 + + 75 + 85 + - ( COUNT( * ) )
----
146

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - ( - 11 ) / 76 * - + COUNT ( * ) + - 13 + + 75 + 85 + - ( COUNT ( * ) )
----
146

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

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

query I rowsort
SELECT DISTINCT 10 * - 74 * 52 AS col2
----
-38480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1230
SELECT ALL + 44 DIV + 22 + + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + 44 / + 22 + + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT + COALESCE ( + COUNT( + 36 ), - + 39 ) * + SUM( - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-1231
SELECT + COALESCE ( + COUNT ( + 36 ), - + 39 ) * + SUM ( - 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1232
SELECT DISTINCT CAST( 0 AS SIGNED ) DIV - 79 + - + 11 * 4 DIV + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT CAST ( 0 AS INTEGER ) / - 79 + - + 11 * 4 / + 48 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT CAST( - 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1234
SELECT CAST ( - 67 AS INTEGER ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT + ( - 77 ) - - 28 + - - 13 * + COUNT( * ) * - 66 col0
----
-907

skipif mysql # not compatible
query I rowsort label-1235
SELECT + ( - 77 ) - - 28 + - - 13 * + COUNT ( * ) * - 66 col0
----
-907

query I rowsort
SELECT + 64 * + 60
----
3840

query I rowsort
SELECT ALL 75 * + ( + + 2 ) * + 64 * 50 AS col2
----
480000

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL - MIN( DISTINCT + + 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL - MIN ( DISTINCT + + 77 ) AS col0
----
-77

query I rowsort
SELECT DISTINCT - 31 * 24 * 3
----
-2232

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT COUNT( * ) - - 55 - - 98 + 85 + + COUNT( * ) * + + 29 + + 15 AS col1
----
283

skipif mysql # not compatible
query I rowsort label-1241
SELECT COUNT ( * ) - - 55 - - 98 + 85 + + COUNT ( * ) * + + 29 + + 15 AS col1
----
283

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT 57 * - COUNT( * ) * + 67 * - + 96
----
366624

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT 57 * - COUNT ( * ) * + 67 * - + 96
----
366624

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT MAX( DISTINCT - 39 ) * 23
----
-897

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT MAX ( DISTINCT - 39 ) * 23
----
-897

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1244
SELECT DISTINCT - CAST( NULL AS SIGNED ), + 74 AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-1244
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + 74 AS col2
----
NULL
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1245
SELECT COUNT( * ) + - COUNT( * ) DIV + 24 * CAST( - - 12 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1245
SELECT COUNT ( * ) + - COUNT ( * ) / + 24 * CAST ( - - 12 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1246
SELECT COUNT( * ) DIV - 22
----
0

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

query II rowsort
SELECT + 0 col1, - 41 * + 3
----
0
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT ALL + 92 DIV + + 8 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + 92 / + + 8 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1249
SELECT + COUNT( ALL 96 ) + + 31 AS col0, 82 DIV + 13 - - CAST( 64 AS SIGNED )
----
32
70

skipif mysql # not compatible
query II rowsort label-1249
SELECT + COUNT ( ALL 96 ) + + 31 AS col0, 82 / + 13 - - CAST ( 64 AS INTEGER )
----
32
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1250
SELECT DISTINCT - 48 / - CAST( NULL AS DECIMAL ) * COUNT( * ), 8 AS col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-1250
SELECT DISTINCT - 48 / - CAST ( NULL AS REAL ) * COUNT ( * ), 8 AS col0
----
NULL
8

query II rowsort
SELECT DISTINCT - 16 AS col2, - 16 + + 65 + 37 AS col0
----
-16
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1252
SELECT ALL + + 68 * - 29 + COUNT( * ), 85 AS col2
----
-1971
85

skipif mysql # not compatible
query II rowsort label-1252
SELECT ALL + + 68 * - 29 + COUNT ( * ), 85 AS col2
----
-1971
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT DISTINCT - - 38 + COUNT( + - 23 ) * - 91
----
-53

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT - - 38 + COUNT ( + - 23 ) * - 91
----
-53

query I rowsort
SELECT ALL + + 76 + + 18 * 44
----
868

onlyif mysql # aggregate syntax: 
query II rowsort label-1255
SELECT - 93 AS col2, - 16 * COUNT( * ) * + NULLIF ( + 54, 94 / - 67 )
----
-93
-864

skipif mysql # not compatible
query II rowsort label-1255
SELECT - 93 AS col2, - 16 * COUNT ( * ) * + NULLIF ( + 54, 94 / - 67 )
----
-93
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - - SUM( DISTINCT + 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1256
SELECT - - SUM ( DISTINCT + 76 ) AS col1
----
76

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

skipif mysql # not compatible
query I rowsort label-1257
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - 57
----
-58

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

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

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT - COUNT ( ALL + 53 ) AS col0
----
-1

query I rowsort
SELECT ALL 73 + + 50
----
123

query I rowsort
SELECT DISTINCT - ( 55 ) * - + 57
----
3135

query II rowsort
SELECT 4 + + 64 AS col2, 15 AS col2
----
68
15

query II rowsort
SELECT DISTINCT - 7 - + 75 + 72 * 80 AS col0, - 60 AS col0
----
5678
-60

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

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT COUNT ( * ) * SUM ( ALL - + 42 ) AS col1
----
-42

query I rowsort
SELECT 97 * + 27
----
2619

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT COALESCE ( 46, 65 * + + 50 DIV - - ( + - 32 ) + + 1 * + + 24 * 10 ) * 14 AS col0
----
644

skipif mysql # not compatible
query I rowsort label-1266
SELECT COALESCE ( 46, 65 * + + 50 / - - ( + - 32 ) + + 1 * + + 24 * 10 ) * 14 AS col0
----
644

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

skipif mysql # not compatible
query I rowsort label-1267
SELECT - COUNT ( * ) * 27 / 98 - ( - 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT 17 * ( + NULLIF ( COUNT( * ), - - 21 * - 4 * 78 ) ) + + - MIN( 23 ) * - 52 + + 79
----
1292

skipif mysql # not compatible
query I rowsort label-1268
SELECT 17 * ( + NULLIF ( COUNT ( * ), - - 21 * - 4 * 78 ) ) + + - MIN ( 23 ) * - 52 + + 79
----
1292

query II rowsort
SELECT ALL + 26 - - 93 col0, - 28 AS col0
----
119
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT DISTINCT - CASE - 96 WHEN 12 THEN NULL WHEN 95 THEN MIN( NULLIF ( + + 52, + + 16 ) ) + - + 88 ELSE NULL END * + + 31 * + 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - CASE - 96 WHEN 12 THEN NULL WHEN 95 THEN MIN ( NULLIF ( + + 52, + + 16 ) ) + - + 88 ELSE NULL END * + + 31 * + 23 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1271
SELECT DISTINCT CAST( 37 AS SIGNED ) DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT CAST ( 37 AS INTEGER ) / + 94 AS col1
----
0

query I rowsort
SELECT DISTINCT - 70 col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1273
SELECT ( + - 35 ) DIV + 7 + + COUNT( * ) + - + 18
----
-22

skipif mysql # not compatible
query I rowsort label-1273
SELECT ( + - 35 ) / + 7 + + COUNT ( * ) + - + 18
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1274
SELECT CAST( NULL AS SIGNED ) + - MIN( ALL 34 ) + - 76 + - 45 + + 79 - 69 * + 7 + 54 / 37 + 31 * - + 72 * SUM( ALL - 6 ) / - COALESCE ( - 91, 52 ), - ( MIN( + - 64 ) ) + + - COUNT( * ) AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-1274
SELECT CAST ( NULL AS INTEGER ) + - MIN ( ALL 34 ) + - 76 + - 45 + + 79 - 69 * + 7 + 54 / 37 + 31 * - + 72 * SUM ( ALL - 6 ) / - COALESCE ( - 91, 52 ), - ( MIN ( + - 64 ) ) + + - COUNT ( * ) AS col2
----
NULL
63

query I rowsort
SELECT + 98 col2
----
98

query I rowsort
SELECT DISTINCT 21 * + 92 * 34 * 96 AS col0
----
6306048

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL ( - 69 ) * - - COUNT( * ) * - + 90 * - 14
----
-86940

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL ( - 69 ) * - - COUNT ( * ) * - + 90 * - 14
----
-86940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1278
SELECT DISTINCT CAST( + 83 AS SIGNED ) * + + 38 * 77 AS col1, 25 * - - 42 + NULLIF ( + 39, + + CAST( + 9 AS SIGNED ) ) + NULLIF ( + - 82, + 33 * + 74 * - 11 ) + - 14 * - + SUM( - 53 ) * + 5 AS col2
----
242858
-2703

skipif mysql # not compatible
query II rowsort label-1278
SELECT DISTINCT CAST ( + 83 AS INTEGER ) * + + 38 * 77 AS col1, 25 * - - 42 + NULLIF ( + 39, + + CAST ( + 9 AS INTEGER ) ) + NULLIF ( + - 82, + 33 * + 74 * - 11 ) + - 14 * - + SUM ( - 53 ) * + 5 AS col2
----
242858
-2703

query I rowsort
SELECT ALL 58 + - 79 AS col1
----
-21

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

query I rowsort
SELECT DISTINCT - 38 + - 82 AS col1
----
-120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - 94 + COUNT( * ) * - 98 AS col0
----
-192

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - 94 + COUNT ( * ) * - 98 AS col0
----
-192

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1285
SELECT ALL - 45 + + + 17 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - 45 + + + 17 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT + MAX( ALL - - 83 ) - + 70
----
13

skipif mysql # not compatible
query I rowsort label-1286
SELECT + MAX ( ALL - - 83 ) - + 70
----
13

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT + 4 DIV + 32 * 26
----
0

skipif mysql # not compatible
query I rowsort label-1288
SELECT + 4 / + 32 * 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL + MIN( DISTINCT + 41 ) * - + 54 * + NULLIF ( - + 61, + - AVG ( + 56 ) ) * 69 * - + COUNT( * ) AS col0
----
-9318726

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL + MIN ( DISTINCT + 41 ) * - + 54 * + NULLIF ( - + 61, + - AVG ( + 56 ) ) * 69 * - + COUNT ( * ) AS col0
----
-9318726

query I rowsort
SELECT - 13 * ( 10 ) * - + 40
----
5200

query I rowsort
SELECT DISTINCT + + 98 * - 12 col2
----
-1176

query I rowsort
SELECT DISTINCT - 51 - - 64 + + - 90 col1
----
-77

query I rowsort
SELECT ALL + 93 * + 69
----
6417

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT + 80 * - ( COALESCE ( ( + CASE - NULLIF ( + 84, - 0 * + + 8 / 80 * 18 ) WHEN - + 23 + 92 + - + COUNT( * ) * 87 THEN - - 9 WHEN + 85 + + ( - - NULLIF ( 7, - + COUNT( * ) ) ) * 48 THEN NULL WHEN - + 53 THEN NULL END ), + 60 * + - 85 + + ( + 3 ), + - 25 ) ) AS col2
----
407760

skipif mysql # not compatible
query I rowsort label-1294
SELECT + 80 * - ( COALESCE ( ( + CASE - NULLIF ( + 84, - 0 * + + 8 / 80 * 18 ) WHEN - + 23 + 92 + - + COUNT ( * ) * 87 THEN - - 9 WHEN + 85 + + ( - - NULLIF ( 7, - + COUNT ( * ) ) ) * 48 THEN NULL WHEN - + 53 THEN NULL END ), + 60 * + - 85 + + ( + 3 ), + - 25 ) ) AS col2
----
407760

query I rowsort
SELECT ALL + 48 * 48 col2
----
2304

onlyif mysql # aggregate syntax: 
query II rowsort label-1296
SELECT ALL COUNT( * ) col0, - 58 + - ( 41 ) AS col0
----
1
-99

skipif mysql # not compatible
query II rowsort label-1296
SELECT ALL COUNT ( * ) col0, - 58 + - ( 41 ) AS col0
----
1
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT - 40 + - 40 + - + 28 DIV + 78
----
-80

skipif mysql # not compatible
query I rowsort label-1297
SELECT - 40 + - 40 + - + 28 / + 78
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1298
SELECT + 46 * - CAST( + COUNT( * ) AS SIGNED ) * + MAX( DISTINCT 84 )
----
-3864

skipif mysql # not compatible
query I rowsort label-1298
SELECT + 46 * - CAST ( + COUNT ( * ) AS INTEGER ) * + MAX ( DISTINCT 84 )
----
-3864

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1300
SELECT DISTINCT + CASE - 30 WHEN + COUNT( * ) * - 53 THEN + COUNT( * ) END AS col1, 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-1300
SELECT DISTINCT + CASE - 30 WHEN + COUNT ( * ) * - 53 THEN + COUNT ( * ) END AS col1, 81
----
NULL
81

query I rowsort
SELECT - 10 * - 84 * - - 44
----
36960

query I rowsort
SELECT COALESCE ( - 36, 40 + - 77 )
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT - 74 DIV + + 57 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1304
SELECT - 74 / + + 57 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1305
SELECT - 92 - + + COALESCE ( 42, ( - 3 ) ), + COUNT( DISTINCT + 67 ) DIV 44 col2
----
-134
0

skipif mysql # not compatible
query II rowsort label-1305
SELECT - 92 - + + COALESCE ( 42, ( - 3 ) ), + COUNT ( DISTINCT + 67 ) / 44 col2
----
-134
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT + SUM( ALL - + 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1306
SELECT + SUM ( ALL - + 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT CASE COUNT( * ) WHEN + - 83 + - - COUNT( * ) THEN NULL ELSE COUNT( * ) * - + 75 * + - ( - 84 ) * + 45 END AS col1
----
-283500

skipif mysql # not compatible
query I rowsort label-1307
SELECT CASE COUNT ( * ) WHEN + - 83 + - - COUNT ( * ) THEN NULL ELSE COUNT ( * ) * - + 75 * + - ( - 84 ) * + 45 END AS col1
----
-283500

query I rowsort
SELECT ALL + 95 * 48 AS col1
----
4560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT DISTINCT - 48 * + ( + ( - - 88 ) ) * - 57 + + 53 DIV - 75 + + COUNT( * )
----
240769

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT - 48 * + ( + ( - - 88 ) ) * - 57 + + 53 / - 75 + + COUNT ( * )
----
240769

query II rowsort
SELECT DISTINCT - 2 * 71 + - 29 AS col1, 58
----
-171
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT DISTINCT + 88 * + 95 * - MAX( + - 4 ) + 24 AS col1
----
33464

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT + 88 * + 95 * - MAX ( + - 4 ) + 24 AS col1
----
33464

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

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

query I rowsort
SELECT + - 4 - 77 - - 12
----
-69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1315
SELECT - + 34 + - MIN( + 31 ) AS col1, COUNT( * ) AS col0
----
-65
1

skipif mysql # not compatible
query II rowsort label-1315
SELECT - + 34 + - MIN ( + 31 ) AS col1, COUNT ( * ) AS col0
----
-65
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1316
SELECT + 5 * - - 18 + + ( + 50 ) + + 51 AS col0, - CASE - 75 WHEN - COUNT( * ) THEN - - 86 WHEN - - 85 + - + 62 / + 88 * + COALESCE ( CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), - + NULLIF ( 5, - CAST( 80 AS SIGNED ) ), - ( - 5 ) + 21 ) THEN NULL END
----
191
NULL

skipif mysql # not compatible
query II rowsort label-1316
SELECT + 5 * - - 18 + + ( + 50 ) + + 51 AS col0, - CASE - 75 WHEN - COUNT ( * ) THEN - - 86 WHEN - - 85 + - + 62 / + 88 * + COALESCE ( CAST ( CAST ( NULL AS REAL ) AS INTEGER ), - + NULLIF ( 5, - CAST ( 80 AS INTEGER ) ), - ( - 5 ) + 21 ) THEN NULL END
----
191
NULL

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

skipif mysql # not compatible
query I rowsort label-1317
SELECT COUNT ( 28 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1318
SELECT ALL CAST( NULL AS SIGNED ) * + 47 * - COUNT( * )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1319
SELECT + 75 + - MAX( CAST( NULL AS SIGNED ) ) + - + ( + - 70 ) + 9 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT + 75 + - MAX ( CAST ( NULL AS INTEGER ) ) + - + ( + - 70 ) + 9 + - 97
----
NULL

query I rowsort
SELECT + 45 - - 70 AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT ALL 14 * + - SUM( 51 ) * - - ( + CAST( NULL AS SIGNED ) ) * 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL 14 * + - SUM ( 51 ) * - - ( + CAST ( NULL AS INTEGER ) ) * 28 AS col2
----
NULL

query II rowsort
SELECT + 39 AS col2, - 5 AS col1
----
39
-5

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

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL + 82 - COUNT ( * ) AS col2
----
81

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

query I rowsort
SELECT ALL 72 * + 52 AS col1
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT 76 - + MAX( ALL - - 34 ) * COUNT( ( + 5 ) ) + + - 51 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT 76 - + MAX ( ALL - - 34 ) * COUNT ( ( + 5 ) ) + + - 51 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + + 27 + + - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1327
SELECT + + 27 + + - COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT DISTINCT - CASE - + COUNT( * ) WHEN + 99 THEN + - NULLIF ( - + ( - COUNT( * ) ), - COUNT( DISTINCT 98 ) + - + 32 + 71 ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT - CASE - + COUNT ( * ) WHEN + 99 THEN + - NULLIF ( - + ( - COUNT ( * ) ), - COUNT ( DISTINCT 98 ) + - + 32 + 71 ) END * COUNT ( * )
----
NULL

query I rowsort
SELECT - - 52 + + - 27 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT + 78 * ( 62 ) * - COALESCE ( 19, + - COUNT( * ) * + 7 * ( 17 ) + + 42, + 94 )
----
-91884

skipif mysql # not compatible
query I rowsort label-1330
SELECT + 78 * ( 62 ) * - COALESCE ( 19, + - COUNT ( * ) * + 7 * ( 17 ) + + 42, + 94 )
----
-91884

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT ALL SUM( DISTINCT 54 )
----
54

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL SUM ( DISTINCT 54 )
----
54

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

query I rowsort
SELECT + 82 + - ( - ( ( - 82 ) ) )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1335
SELECT DISTINCT SUM( ALL - - 83 ) AS col1, + CAST( COUNT( - + CAST( - - 87 AS SIGNED ) ) AS SIGNED ) col1
----
83
1

skipif mysql # not compatible
query II rowsort label-1335
SELECT DISTINCT SUM ( ALL - - 83 ) AS col1, + CAST ( COUNT ( - + CAST ( - - 87 AS INTEGER ) ) AS INTEGER ) col1
----
83
1

query I rowsort
SELECT - 28 + 0 + + + 85 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + 98 * + COUNT( * ) * - 67 col1
----
-6566

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 98 * + COUNT ( * ) * - 67 col1
----
-6566

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT ALL + 43 DIV 94 + - 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + 43 / 94 + - 30 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT - MIN( 66 ) + + + 7 * + 95 - - + 1
----
600

skipif mysql # not compatible
query I rowsort label-1340
SELECT - MIN ( 66 ) + + + 7 * + 95 - - + 1
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT + 60 DIV + 48 - - 91 - ( - + NULLIF ( + - 85, - 80 ) )
----
7

skipif mysql # not compatible
query I rowsort label-1341
SELECT + 60 / + 48 - - 91 - ( - + NULLIF ( + - 85, - 80 ) )
----
7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1343
SELECT ALL + COUNT( + 79 ) DIV - + 5 + MIN( 18 ) + 67 + + ( + 19 ) DIV 80
----
85

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL + COUNT ( + 79 ) / - + 5 + MIN ( 18 ) + 67 + + ( + 19 ) / 80
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1344
SELECT DISTINCT 16 / AVG ( + CASE + + 26 WHEN + 11 THEN - 55 END ) + 48 * - + 54 + - COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( + + ( + 99 ) ), + + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT 16 / AVG ( + CASE + + 26 WHEN + 11 THEN - 55 END ) + 48 * - + 54 + - COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( + + ( + 99 ) ), + + 22 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL 85 / 53 + - COUNT ( * )
----
0

query I rowsort
SELECT + 97 * + ( - ( + 33 ) ) + 35 AS col1
----
-3166

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT ALL 61 DIV - ( - 84 ) + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL 61 / - ( - 84 ) + 80 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1348
SELECT + + 48 DIV + 44 + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-1348
SELECT + + 48 / + 44 + - 31
----
-30

query II rowsort
SELECT ALL + + 54 AS col2, - 80 + + 79
----
54
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT - 93 + + + CASE - + CASE - 94 WHEN 76 / - + 74 - - COUNT( * ) THEN + - 45 + - - 58 WHEN + 33 THEN NULL END WHEN - 6 - - 25 - + 90 / - MAX( + 92 ) + 5 THEN 26 WHEN + 76 - - 53 THEN NULL ELSE NULL END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT - 93 + + + CASE - + CASE - 94 WHEN 76 / - + 74 - - COUNT ( * ) THEN + - 45 + - - 58 WHEN + 33 THEN NULL END WHEN - 6 - - 25 - + 90 / - MAX ( + 92 ) + 5 THEN 26 WHEN + 76 - - 53 THEN NULL ELSE NULL END * + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + + 19, 82 AS col0
----
19
82

query I rowsort
SELECT ALL ( - 32 ) * - - 98 * - - ( 82 ) - + 80 + ( - + 52 ) + 56
----
-257228

query II rowsort
SELECT + + 50, 37 AS col1
----
50
37

query I rowsort
SELECT ALL + ( 90 ) AS col0
----
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1356
SELECT ALL - - 89 * + COUNT( + + 3 ) + - - 12 + 98 * + 67 col2, + COALESCE ( - CAST( + ( - 22 ) AS SIGNED ), 31 * - - ( + 53 ) ) * - 88
----
6667
-1936

skipif mysql # not compatible
query II rowsort label-1356
SELECT ALL - - 89 * + COUNT ( + + 3 ) + - - 12 + 98 * + 67 col2, + COALESCE ( - CAST ( + ( - 22 ) AS INTEGER ), 31 * - - ( + 53 ) ) * - 88
----
6667
-1936

query I rowsort
SELECT ALL + + ( - 72 ) AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT + + 31 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-1358
SELECT + + 31 / - 42
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1360
SELECT - 62 / + 75 - - AVG ( + - 50 ) * - CAST( NULL AS SIGNED ) * - SUM( DISTINCT - 18 ) * 95 + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT - 62 / + 75 - - AVG ( + - 50 ) * - CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT - 18 ) * 95 + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT 42 DIV + 90 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1361
SELECT 42 / + 90 + + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1362
SELECT ALL - 60 DIV + NULLIF ( + + 74, + 36 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - 60 / + NULLIF ( + + 74, + 36 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1363
SELECT - COUNT( DISTINCT - 65 ) - + CAST( MAX( 13 ) AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1363
SELECT - COUNT ( DISTINCT - 65 ) - + CAST ( MAX ( 13 ) AS INTEGER ) AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1364
SELECT - + 76 col0, - CAST( NULL AS SIGNED ) + - AVG ( ALL + + 71 ) * + 93
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-1364
SELECT - + 76 col0, - CAST ( NULL AS INTEGER ) + - AVG ( ALL + + 71 ) * + 93
----
-76
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT COUNT( * ) - CAST( 60 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-1365
SELECT COUNT ( * ) - CAST ( 60 AS INTEGER )
----
-59

query I rowsort
SELECT DISTINCT 11 * - 14
----
-154

query I rowsort
SELECT 22 * 3 AS col1
----
66

query I rowsort
SELECT ALL 46 * - + 82
----
-3772

onlyif mysql # aggregate syntax: 
query II rowsort label-1369
SELECT DISTINCT 58 * - 40 * + - COUNT( * ) AS col0, + COALESCE ( 34, 62 ) AS col1
----
2320
34

skipif mysql # not compatible
query II rowsort label-1369
SELECT DISTINCT 58 * - 40 * + - COUNT ( * ) AS col0, + COALESCE ( 34, 62 ) AS col1
----
2320
34

query I rowsort
SELECT NULLIF ( + 61, + 91 * + - 45 ) + 8 * 63 * 89
----
44917

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT 41 - ( + CASE - - 98 WHEN 76 THEN NULL WHEN - 22 - ( + - 32 ) + MAX( ALL - + 97 ) THEN - + 87 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT 41 - ( + CASE - - 98 WHEN 76 THEN NULL WHEN - 22 - ( + - 32 ) + MAX ( ALL - + 97 ) THEN - + 87 END ) col2
----
NULL

query I rowsort
SELECT ALL 93 * - 59
----
-5487

query I rowsort
SELECT 12 * + - 44 * + 58
----
-30624

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT 48 * - MIN( - 6 ) * - ( - 21 )
----
6048

skipif mysql # not compatible
query I rowsort label-1374
SELECT 48 * - MIN ( - 6 ) * - ( - 21 )
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL 10 + 62 + 82 * 91 * - COUNT( * ) + 72 AS col1
----
-7318

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL 10 + 62 + 82 * 91 * - COUNT ( * ) + 72 AS col1
----
-7318

query I rowsort
SELECT 31 + 34
----
65

query I rowsort
SELECT 38 * - 15
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT 73 + SUM( ALL + + 33 ) - + COUNT( + 65 ) * + 27 + 57 col1
----
136

skipif mysql # not compatible
query I rowsort label-1378
SELECT 73 + SUM ( ALL + + 33 ) - + COUNT ( + 65 ) * + 27 + 57 col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT - 41 + + - 2 + SUM( - 28 ) + + 18 * + + 79 AS col0
----
1351

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT - 41 + + - 2 + SUM ( - 28 ) + + 18 * + + 79 AS col0
----
1351

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL COUNT( * ) + 36 * - 15 + + + 53 AS col0
----
-486

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL COUNT ( * ) + 36 * - 15 + + + 53 AS col0
----
-486

query I rowsort
SELECT DISTINCT - COALESCE ( 32, - 5 + - + 48 + 23 ) AS col0
----
-32

query I rowsort
SELECT 73 * + 85 AS col0
----
6205

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + + SUM( ALL + NULLIF ( - 98, + + 9 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1383
SELECT + + SUM ( ALL + NULLIF ( - 98, + + 9 ) ) AS col1
----
-98

query II rowsort
SELECT + 16 - + 90 AS col2, 9 AS col2
----
-74
9

query I rowsort
SELECT ALL - + 29 * 76 AS col1
----
-2204

query I rowsort
SELECT NULLIF ( - - 30, - + 56 ) - - 13
----
43

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

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

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - COUNT ( DISTINCT + + 35 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ALL + 46 * COUNT( * ) + + + 21 - 96
----
-29

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL + 46 * COUNT ( * ) + + + 21 - 96
----
-29

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

query I rowsort
SELECT - 93 - 1 * + ( 95 ) col0
----
-188

query I rowsort
SELECT + 33 * - NULLIF ( - ( - - 33 ), AVG ( 23 ) ) * 32 AS col1
----
34848

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT - - 56 * - 32 * + + 44 + COUNT( * ) AS col2
----
-78847

skipif mysql # not compatible
query I rowsort label-1393
SELECT - - 56 * - 32 * + + 44 + COUNT ( * ) AS col2
----
-78847

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

query I rowsort
SELECT + 60 + 33 AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1396
SELECT MAX( + ( - 30 ) ) DIV 68 * - 40 DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT MAX ( + ( - 30 ) ) / 68 * - 40 / - 88 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1397
SELECT ALL - 14 * 71 AS col0, COUNT( DISTINCT - CAST( + 35 AS SIGNED ) )
----
-994
1

skipif mysql # not compatible
query II rowsort label-1397
SELECT ALL - 14 * 71 AS col0, COUNT ( DISTINCT - CAST ( + 35 AS INTEGER ) )
----
-994
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT DISTINCT COALESCE ( + + COUNT( * ), - COUNT( * ), - + 48 DIV - 4 + SUM( + ( + + 21 ) ) + 44, + 61 + + 54 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT COALESCE ( + + COUNT ( * ), - COUNT ( * ), - + 48 / - 4 + SUM ( + ( + + 21 ) ) + 44, + 61 + + 54 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1399
SELECT ALL + 99 * - 48 * - + ( CAST( NULL AS SIGNED ) ) * COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL + 99 * - 48 * - + ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT DISTINCT 1 AS col1, MIN( - 66 )
----
1
-66

skipif mysql # not compatible
query II rowsort label-1400
SELECT DISTINCT 1 AS col1, MIN ( - 66 )
----
1
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1401
SELECT ALL 5 AS col0, 61 * + - COUNT( * ) - + COALESCE ( - COALESCE ( 62, - - COUNT( * ) - - 63 ), 23 + 6 + - 59 )
----
5
1

skipif mysql # not compatible
query II rowsort label-1401
SELECT ALL 5 AS col0, 61 * + - COUNT ( * ) - + COALESCE ( - COALESCE ( 62, - - COUNT ( * ) - - 63 ), 23 + 6 + - 59 )
----
5
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT DISTINCT 64 DIV 33
----
1

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT 64 / 33
----
1

query I rowsort
SELECT 6 * - - 45 * - + 48 * + 8
----
-103680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1404
SELECT COUNT( * ) + + COUNT( * ) / - + AVG ( ALL CAST( NULL AS SIGNED ) ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1404
SELECT COUNT ( * ) + + COUNT ( * ) / - + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - 0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1405
SELECT DISTINCT COUNT ( * ) AS col0, ( 48 )
----
1
48

query I rowsort
SELECT DISTINCT + 54 + 48 col1
----
102

query I rowsort
SELECT ALL ( NULLIF ( - 83, 47 ) ) + - 56 AS col0
----
-139

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

skipif mysql # not compatible
query I rowsort label-1408
SELECT COUNT ( * ) * - 70
----
-70

query I rowsort
SELECT ALL 39 * + + 59
----
2301

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

query I rowsort
SELECT ALL 33 + + 76 * + ( 60 )
----
4593

query I rowsort
SELECT ALL 92 + - + 35 AS col0
----
57

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

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

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

query I rowsort
SELECT ALL 45 * - 16 - 53 + 96 + + - 16
----
-693

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT + - 11 DIV + + 47 + - 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1416
SELECT + - 11 / + + 47 + - 78 AS col1
----
-78

query I rowsort
SELECT + 73 * + + 96 - - 10 * + 44
----
7448

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL - + CASE + 40 WHEN - COUNT( * ) THEN - - 23 WHEN - 67 - - 31 * 1 THEN - + 42 WHEN 29 THEN + + 46 * - 72 + + 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL - + CASE + 40 WHEN - COUNT ( * ) THEN - - 23 WHEN - 67 - - 31 * 1 THEN - + 42 WHEN 29 THEN + + 46 * - 72 + + 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT 33 + - + COUNT( * ) - + 58
----
-26

skipif mysql # not compatible
query I rowsort label-1419
SELECT 33 + - + COUNT ( * ) - + 58
----
-26

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT ALL - 86 DIV 26
----
-3

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - 86 / 26
----
-3

query II rowsort
SELECT + 24 AS col0, + 1
----
24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT DISTINCT - MAX( DISTINCT + NULLIF ( 30, - + 94 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - MAX ( DISTINCT + NULLIF ( 30, - + 94 ) )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT ALL 38 DIV 47 * 37
----
0

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL 38 / 47 * 37
----
0

query II rowsort
SELECT DISTINCT - 31, + 57 AS col1
----
-31
57

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

skipif mysql # not compatible
query I rowsort label-1426
SELECT + CAST ( NULL AS INTEGER ) / - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT + - NULLIF ( + + CAST( NULL AS SIGNED ), + 24 * 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT + - NULLIF ( + + CAST ( NULL AS INTEGER ), + 24 * 96 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 65 * - 92
----
-5980

onlyif mysql # DIV for integer division: 
query I rowsort label-1429
SELECT + - 71 DIV 73 + + + 4 + + 36 DIV 85 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1429
SELECT + - 71 / 73 + + + 4 + + 36 / 85 AS col2
----
4

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

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

query II rowsort
SELECT ALL + 85 AS col0, 87 AS col0
----
85
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT - SUM( - 46 ) * - + 86 AS col0
----
-3956

skipif mysql # not compatible
query I rowsort label-1433
SELECT - SUM ( - 46 ) * - + 86 AS col0
----
-3956

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT - 41 * + - 54 * 70 * - MAX( - 14 )
----
2169720

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT - 41 * + - 54 * 70 * - MAX ( - 14 )
----
2169720

query I rowsort
SELECT - 84 * + 13 col2
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL + 58 * + + MAX( - - 90 ) AS col1
----
5220

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL + 58 * + + MAX ( - - 90 ) AS col1
----
5220

query I rowsort
SELECT + 82 + 43
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT 58 * - MIN( DISTINCT 64 ) + + - 45
----
-3757

skipif mysql # not compatible
query I rowsort label-1438
SELECT 58 * - MIN ( DISTINCT 64 ) + + - 45
----
-3757

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT - 22 + + NULLIF ( COUNT( * ), + - COUNT( * ) * + 89 * - - ( 69 ) * - + AVG ( DISTINCT - 63 ) + + + 73 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - 22 + + NULLIF ( COUNT ( * ), + - COUNT ( * ) * + 89 * - - ( 69 ) * - + AVG ( DISTINCT - 63 ) + + + 73 ) AS col2
----
-21

query I rowsort
SELECT ALL + 68 + + ( - 0 ) + + 80 + - 85 col1
----
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL COALESCE ( - + 90, COUNT( * ) + - COUNT( * ) )
----
-90

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL COALESCE ( - + 90, COUNT ( * ) + - COUNT ( * ) )
----
-90

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT - SUM( 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-1445
SELECT - SUM ( 18 )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT ALL ( 55 ) AS col0, + MIN( 41 )
----
55
41

skipif mysql # not compatible
query II rowsort label-1446
SELECT ALL ( 55 ) AS col0, + MIN ( 41 )
----
55
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1447
SELECT ALL + 5 - - ( - CAST( NULL AS SIGNED ) ) + + 14 + + COALESCE ( - 17, + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL + 5 - - ( - CAST ( NULL AS INTEGER ) ) + + 14 + + COALESCE ( - 17, + COUNT ( * ) ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1449
SELECT DISTINCT + 57 * COUNT( * ) DIV - ( + COUNT( * ) ) * - + COALESCE ( COUNT( 28 ), - + 12 * - 19 DIV + 96, + ( + 64 ) DIV + + 80 + + 50 + - 36 + ( + + 98 ) ) + - ( - + 47 ) AS col1, 32 * MAX( 23 ) + + 65 * + 70 - - 10 AS col1, - - 78
----
104
5296
78

skipif mysql # not compatible
query III rowsort label-1449
SELECT DISTINCT + 57 * COUNT ( * ) / - ( + COUNT ( * ) ) * - + COALESCE ( COUNT ( 28 ), - + 12 * - 19 / + 96, + ( + 64 ) / + + 80 + + 50 + - 36 + ( + + 98 ) ) + - ( - + 47 ) AS col1, 32 * MAX ( 23 ) + + 65 * + 70 - - 10 AS col1, - - 78
----
104
5296
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT ALL 69 * 35 DIV 13 * - 68 - 4 AS col0
----
-12584

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL 69 * 35 / 13 * - 68 - 4 AS col0
----
-12584

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1452
SELECT - CASE SUM( - 65 ) WHEN - + MAX( + ( + CAST( + 71 AS SIGNED ) ) ) * + 6 + + - MIN( DISTINCT - 55 ) THEN 47 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT - CASE SUM ( - 65 ) WHEN - + MAX ( + ( + CAST ( + 71 AS INTEGER ) ) ) * + 6 + + - MIN ( DISTINCT - 55 ) THEN 47 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1453
SELECT 49 DIV - + 38 - + 50 + - 61 + - 12 + + - ( + 18 ) * - 85 * + 4 + + 5 + - 13
----
5988

skipif mysql # not compatible
query I rowsort label-1453
SELECT 49 / - + 38 - + 50 + - 61 + - 12 + + - ( + 18 ) * - 85 * + 4 + + 5 + - 13
----
5988

query I rowsort
SELECT - + 75 * - - 25 * 50 AS col1
----
-93750

query I rowsort
SELECT + + 69 * - 4 * + 37 + - 7
----
-10219

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL COALESCE ( - COUNT( * ), + COUNT( 31 ) ) * 14 * 17
----
-238

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL COALESCE ( - COUNT ( * ), + COUNT ( 31 ) ) * 14 * 17
----
-238

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1457
SELECT - 15 - + NULLIF ( - CASE + CAST( NULL AS DECIMAL ) WHEN 22 THEN NULL ELSE + - 54 + - 74 + + CASE 47 WHEN 50 THEN + 82 ELSE NULL END END, + 18 + + 52 * - 0 ) + - CASE - COUNT( * ) WHEN - 28 THEN - 82 * - 28 + - + 17 * + 95 ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1457
SELECT - 15 - + NULLIF ( - CASE + CAST ( NULL AS REAL ) WHEN 22 THEN NULL ELSE + - 54 + - 74 + + CASE 47 WHEN 50 THEN + 82 ELSE NULL END END, + 18 + + 52 * - 0 ) + - CASE - COUNT ( * ) WHEN - 28 THEN - 82 * - 28 + - + 17 * + 95 ELSE NULL END * - COUNT ( * )
----
NULL

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

query I rowsort
SELECT NULLIF ( + 53, + 90 ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT + 2 / COUNT( * ) / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT + 2 / COUNT ( * ) / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 19 * - + 23 + - - 55 + 52 * 65
----
2998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT ALL 78 * + - 70 * ( + CAST( NULL AS SIGNED ) ) + + 4 * COALESCE ( - + 81, - 82 ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL 78 * + - 70 * ( + CAST ( NULL AS INTEGER ) ) + + 4 * COALESCE ( - + 81, - 82 ) + - 86
----
NULL

query I rowsort
SELECT + 55 + + 10 * - + 31
----
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1464
SELECT ALL - - CAST( NULL AS SIGNED ) * 29 * - 51 * + 84 * + - 44 + - + 83 + - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - - CAST ( NULL AS INTEGER ) * 29 * - 51 * + 84 * + - 44 + - + 83 + - 75 AS col2
----
NULL

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

query I rowsort
SELECT ALL - 47 * + + 85 * - 99 + - ( 12 ) + - 65 AS col2
----
395428

query I rowsort
SELECT + - 42 - CASE 46 WHEN 45 THEN - - 57 * - 94 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 31 * - + 37
----
-1147

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - 7 * - + 89 * + - MAX( DISTINCT + 88 ) + - - ( - 36 ) AS col2
----
-54860

skipif mysql # not compatible
query I rowsort label-1469
SELECT - 7 * - + 89 * + - MAX ( DISTINCT + 88 ) + - - ( - 36 ) AS col2
----
-54860

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT COUNT( * ) * + COUNT( * ) / + + CASE - + 38 WHEN + 81 THEN + 13 ELSE NULL END + - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT COUNT ( * ) * + COUNT ( * ) / + + CASE - + 38 WHEN + 81 THEN + 13 ELSE NULL END + - 62 AS col2
----
NULL

query I rowsort
SELECT ALL + 33 * + + 65 + 58 AS col0
----
2203

query I rowsort
SELECT + 76 + - 90 + 53 AS col0
----
39

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1474
SELECT COALESCE ( - 78, COALESCE ( CAST( - - 43 AS SIGNED ), + + 74 + + + 62 + 94 * - 61 * - - 28 + + 13 ) + + 73, 56 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1474
SELECT COALESCE ( - 78, COALESCE ( CAST ( - - 43 AS INTEGER ), + + 74 + + + 62 + 94 * - 61 * - - 28 + + 13 ) + + 73, 56 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT 72 * 73 + - + COUNT( * )
----
5255

skipif mysql # not compatible
query I rowsort label-1475
SELECT 72 * 73 + - + COUNT ( * )
----
5255

query II rowsort
SELECT ALL - 56 * 10 + + 11 + - 54 * + + 31, - 5 AS col2
----
-2223
-5

query I rowsort
SELECT ALL 57 * + 63 - + 1 col2
----
3590

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

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

query I rowsort
SELECT - 98 + - + 24
----
-122

query I rowsort
SELECT + 10 + + 18
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1481
SELECT - CAST( - ( + - 71 ) AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-1481
SELECT - CAST ( - ( + - 71 ) AS INTEGER ) AS col2
----
-71

query I rowsort
SELECT - ( - ( - 47 ) ) + - 69
----
-116

query I rowsort
SELECT ALL - 74 - - - 47 AS col2
----
-121

query I rowsort
SELECT DISTINCT + 19 * - - 33 * + - 89
----
-55803

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

query I rowsort
SELECT - 80 + 61
----
-19

query I rowsort
SELECT ALL + 1 * 64
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT - + 64 DIV - 21
----
3

skipif mysql # not compatible
query I rowsort label-1488
SELECT - + 64 / - 21
----
3

query I rowsort
SELECT - 32 + + 81 AS col2
----
49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT DISTINCT CASE 18 WHEN - COALESCE ( ( 12 ), - 85 * 52 ) THEN - 17 END, - COUNT( * ) + + - 84 AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-1491
SELECT DISTINCT CASE 18 WHEN - COALESCE ( ( 12 ), - 85 * 52 ) THEN - 17 END, - COUNT ( * ) + + - 84 AS col0
----
NULL
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT 42 DIV - ( - - 63 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1492
SELECT 42 / - ( - - 63 ) col1
----
0

query I rowsort
SELECT 86 + - 40 + - 58 + + + ( 20 ) * + + 72 + - 66
----
1362

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT ALL + + 43 + SUM( - 83 ) + - + 72
----
-112

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL + + 43 + SUM ( - 83 ) + - + 72
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT + 34 / + 99 + + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT + 34 / + 99 + + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1496
SELECT 65 DIV - 88 * - + 43 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1496
SELECT 65 / - 88 * - + 43 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL + COUNT( * ) + - + 70 + + - 14 - - + 2 + + - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL + COUNT ( * ) + - + 70 + + - 14 - - + 2 + + - COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ( + + 37 ) * - MIN( ALL - 89 ) AS col2
----
3293

skipif mysql # not compatible
query I rowsort label-1498
SELECT ( + + 37 ) * - MIN ( ALL - 89 ) AS col2
----
3293

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT ALL - - 63 + 70 DIV - 14 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL - - 63 + 70 / - 14 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT DISTINCT + - 1 + - + COUNT( COALESCE ( 15, - - 51 * + - 17 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT + - 1 + - + COUNT ( COALESCE ( 15, - - 51 * + - 17 ) )
----
-2

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

query I rowsort
SELECT 91 * 49
----
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL + MIN( - 44 ) + + - 19 + 5
----
-58

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + MIN ( - 44 ) + + - 19 + 5
----
-58

query I rowsort
SELECT DISTINCT - CASE - 84 WHEN + 95 THEN NULL WHEN 75 * - AVG ( ALL + 9 ) - - 14 THEN + - 83 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 47 + + 83 + + 6 col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT SUM( DISTINCT 11 ) * - 6 + 88 + + 96
----
118

skipif mysql # not compatible
query I rowsort label-1506
SELECT SUM ( DISTINCT 11 ) * - 6 + 88 + + 96
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT DISTINCT 82 - + COUNT( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT 82 - + COUNT ( + 81 )
----
81

query II rowsort
SELECT ALL - 12, 16 + + 81 AS col2
----
-12
97

query II rowsort
SELECT 63 AS col0, + 41 AS col0
----
63
41

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

query I rowsort
SELECT ALL 16 - + 66 AS col1
----
-50

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

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

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

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT 34 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 46 - 66 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT 40 + - + 96 * - - MIN( + 80 ) * - + COUNT( * ) + - COUNT( * ) * + + 23 AS col1
----
7697

skipif mysql # not compatible
query I rowsort label-1515
SELECT 40 + - + 96 * - - MIN ( + 80 ) * - + COUNT ( * ) + - COUNT ( * ) * + + 23 AS col1
----
7697

query II rowsort
SELECT 87, - 16 AS col2
----
87
-16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1518
SELECT 47 * + 88, + COALESCE ( + ( - 9 ), + COUNT( * ) DIV + 4 + - 9 * + + 20 + - - 96 ) * + ( - 91 ) + + COALESCE ( + 90, - 59 ) * + ( - 72 ) + - + NULLIF ( - 84, + 41 ) AS col1
----
4136
-5577

skipif mysql # not compatible
query II rowsort label-1518
SELECT 47 * + 88, + COALESCE ( + ( - 9 ), + COUNT ( * ) / + 4 + - 9 * + + 20 + - - 96 ) * + ( - 91 ) + + COALESCE ( + 90, - 59 ) * + ( - 72 ) + - + NULLIF ( - 84, + 41 ) AS col1
----
4136
-5577

query II rowsort
SELECT 1 col2, 35 * 71
----
1
2485

query I rowsort
SELECT ALL 74 * 21 * 90 AS col0
----
139860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT CAST( + 49 AS SIGNED ) + - + 4 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1521
SELECT CAST ( + 49 AS INTEGER ) + - + 4 AS col0
----
45

query II rowsort
SELECT DISTINCT 41, 57 AS col0
----
41
57

query II rowsort
SELECT ALL 45 AS col2, 83 * - 54 col1
----
45
-4482

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1524
SELECT - 61 * - COALESCE ( - - 6, 31 DIV NULLIF ( - 4, - CAST( NULL AS SIGNED ) ) - CAST( NULL AS SIGNED ) * + 37, + 97 )
----
366

skipif mysql # not compatible
query I rowsort label-1524
SELECT - 61 * - COALESCE ( - - 6, 31 / NULLIF ( - 4, - CAST ( NULL AS INTEGER ) ) - CAST ( NULL AS INTEGER ) * + 37, + 97 )
----
366

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT CAST ( + MAX ( DISTINCT - 44 ) AS INTEGER )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1528
SELECT - 15 col0, CAST( + - 32 AS SIGNED ) AS col0
----
-15
-32

skipif mysql # not compatible
query II rowsort label-1528
SELECT - 15 col0, CAST ( + - 32 AS INTEGER ) AS col0
----
-15
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT 1 DIV + - 22
----
0

skipif mysql # not compatible
query I rowsort label-1529
SELECT 1 / + - 22
----
0

query II rowsort
SELECT ALL - 47 + - 31 - 87 + - + 91, 67 AS col1
----
-256
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT COUNT( ( 13 ) ) * + - NULLIF ( - 91, + 35 ) + NULLIF ( + 91, 18 ) AS col2
----
182

skipif mysql # not compatible
query I rowsort label-1531
SELECT COUNT ( ( 13 ) ) * + - NULLIF ( - 91, + 35 ) + NULLIF ( + 91, 18 ) AS col2
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1532
SELECT ALL 77, 58 * - CASE - 44 WHEN 62 THEN NULL WHEN 54 + - + 12 THEN NULL WHEN - 1 * 77 / - - ( + CAST( NULL AS SIGNED ) ) - COUNT( * ) * - 84 + + 24 THEN 61 / + 68 END * + + 68 + - + 95 col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-1532
SELECT ALL 77, 58 * - CASE - 44 WHEN 62 THEN NULL WHEN 54 + - + 12 THEN NULL WHEN - 1 * 77 / - - ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * - 84 + + 24 THEN 61 / + 68 END * + + 68 + - + 95 col2
----
77
NULL

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

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

query I rowsort
SELECT ALL - 97 * + 31
----
-3007

query I rowsort
SELECT ALL 93 + 89 AS col1
----
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1536
SELECT - 33 - + 88 DIV - CAST( - + 39 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-1536
SELECT - 33 - + 88 / - CAST ( - + 39 AS INTEGER )
----
-35

query II rowsort
SELECT 31, 37 * + + COALESCE ( + - 70, - ( + ( - - 0 ) ), + 69 ) AS col0
----
31
-2590

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1538
SELECT 59 + - 5 - + CAST( NULL AS SIGNED ) * CAST( + CAST( + + 31 AS DECIMAL ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT 59 + - 5 - + CAST ( NULL AS INTEGER ) * CAST ( + CAST ( + + 31 AS REAL ) AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL - - 11 + - MAX( DISTINCT - 47 ) * 80 AS col0
----
3771

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL - - 11 + - MAX ( DISTINCT - 47 ) * 80 AS col0
----
3771

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT + 99 * COALESCE ( - - 30, + MIN( ALL + 44 ) ) col0
----
2970

skipif mysql # not compatible
query I rowsort label-1540
SELECT + 99 * COALESCE ( - - 30, + MIN ( ALL + 44 ) ) col0
----
2970

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT COUNT( * ) + COUNT( ALL CASE WHEN NOT NULL IS NULL THEN + 33 END ) + ( 86 )
----
87

skipif mysql # not compatible
query I rowsort label-1542
SELECT COUNT ( * ) + COUNT ( ALL CASE WHEN NOT NULL IS NULL THEN + 33 END ) + ( 86 )
----
87

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT 67 / - - 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1544
SELECT ALL - 36 - 74 + - COUNT( * ) * + 58 DIV + 21 AS col0, + 56 AS col2
----
-112
56

skipif mysql # not compatible
query II rowsort label-1544
SELECT ALL - 36 - 74 + - COUNT ( * ) * + 58 / + 21 AS col0, + 56 AS col2
----
-112
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT 51 + - COUNT( - 56 ) + - 11
----
39

skipif mysql # not compatible
query I rowsort label-1545
SELECT 51 + - COUNT ( - 56 ) + - 11
----
39

query II rowsort
SELECT ALL 93 * 43 AS col2, + ( - - 89 )
----
3999
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT 66 + + 51 DIV - 90 * + - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1547
SELECT 66 + + 51 / - 90 * + - COUNT ( * ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1548
SELECT ALL - 37 * 8 AS col1, + CAST( + 44 AS SIGNED ) col0
----
-296
44

skipif mysql # not compatible
query II rowsort label-1548
SELECT ALL - 37 * 8 AS col1, + CAST ( + 44 AS INTEGER ) col0
----
-296
44

query I rowsort
SELECT 50 * ( 83 )
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT 56 + NULLIF ( 81, - 71 / + - SUM( + 82 ) + - + 14 ) * - 13 - + + COUNT( * ) AS col2
----
-998

skipif mysql # not compatible
query I rowsort label-1550
SELECT 56 + NULLIF ( 81, - 71 / + - SUM ( + 82 ) + - + 14 ) * - 13 - + + COUNT ( * ) AS col2
----
-998

query I rowsort
SELECT 92 * - - 50 AS col0
----
4600

query II rowsort
SELECT 47 * - - 33 + - 19 AS col2, + 27
----
1532
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT 82 * + COUNT( + ( + - 61 ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1553
SELECT 82 * + COUNT ( + ( + - 61 ) ) AS col2
----
82

query I rowsort
SELECT ALL NULLIF ( - 4, AVG ( - 20 ) + ( 44 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL MIN( 55 ) + - - 41 * + 85
----
3540

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL MIN ( 55 ) + - - 41 * + 85
----
3540

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT ALL 91 DIV - - NULLIF ( - 97, + 89 * - - 68 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL 91 / - - NULLIF ( - 97, + 89 * - - 68 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT + + 31 * - 48 * - 27 + + + SUM( - + CAST( NULL AS SIGNED ) ) - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT + + 31 * - 48 * - 27 + + + SUM ( - + CAST ( NULL AS INTEGER ) ) - - 21
----
NULL

query I rowsort
SELECT DISTINCT 93 * - 61 AS col1
----
-5673

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL - ( + 4 ) + - COUNT( * ) + COUNT( * ) + + 98 + - + 93 + - ( - 19 ) * + 29 * + + 24 AS col0
----
13225

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - ( + 4 ) + - COUNT ( * ) + COUNT ( * ) + + 98 + - + 93 + - ( - 19 ) * + 29 * + + 24 AS col0
----
13225

query I rowsort
SELECT ALL + 76 + + 68 + + NULLIF ( ( - - 17 ), + + 86 ) AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + 81 + + ( + - COUNT( ALL 63 ) ) * - 5
----
86

skipif mysql # not compatible
query I rowsort label-1561
SELECT + 81 + + ( + - COUNT ( ALL 63 ) ) * - 5
----
86

query I rowsort
SELECT DISTINCT - 49 * - 6
----
294

query I rowsort
SELECT DISTINCT ( - 19 ) + + 25 AS col0
----
6

query I rowsort
SELECT ALL 78 + - + 69 col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT DISTINCT - 57 + - COUNT( * ) AS col1, + 51 * - 51 AS col2
----
-58
-2601

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT - 57 + - COUNT ( * ) AS col1, + 51 * - 51 AS col2
----
-58
-2601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT DISTINCT CAST( + ( CAST( + SUM( ALL - + ( - 12 ) ) AS SIGNED ) ) AS SIGNED ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT CAST ( + ( CAST ( + SUM ( ALL - + ( - 12 ) ) AS INTEGER ) ) AS INTEGER ) AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1567
SELECT ALL - + 75 + - + COUNT( * ) AS col0, + COUNT( * ) DIV - - 47 * - MAX( ALL 25 ) AS col2
----
-76
0

skipif mysql # not compatible
query II rowsort label-1567
SELECT ALL - + 75 + - + COUNT ( * ) AS col0, + COUNT ( * ) / - - 47 * - MAX ( ALL 25 ) AS col2
----
-76
0

query I rowsort
SELECT DISTINCT - 24 + - 47
----
-71

query I rowsort
SELECT - + 28 col0
----
-28

query I rowsort
SELECT + - 69 * - ( + 86 )
----
5934

query I rowsort
SELECT DISTINCT - 56 * + 1 - + - 90 AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1572
SELECT DISTINCT + - COUNT( ALL - + 25 ) AS col1, - 7 col2
----
-1
-7

skipif mysql # not compatible
query II rowsort label-1572
SELECT DISTINCT + - COUNT ( ALL - + 25 ) AS col1, - 7 col2
----
-1
-7

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

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

query I rowsort
SELECT DISTINCT - 95 * + 88 * 49 AS col0
----
-409640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT DISTINCT + 91 * NULLIF ( 66, + - 3 / - 71 ) - + - 64 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + 91 * NULLIF ( 66, + - 3 / - 71 ) - + - 64 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - MIN( 60 ) * + 38
----
-2280

skipif mysql # not compatible
query I rowsort label-1577
SELECT - MIN ( 60 ) * + 38
----
-2280

query I rowsort
SELECT ALL + 5 * + - 0 * + + 80 * - 79 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1579
SELECT NULLIF ( + CAST( - - AVG ( ALL - 51 ) AS SIGNED ), MIN( ALL - 84 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-1579
SELECT NULLIF ( + CAST ( - - AVG ( ALL - 51 ) AS INTEGER ), MIN ( ALL - 84 ) )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1580
SELECT CASE + 85 WHEN - 92 THEN NULL WHEN - 96 * - 45 + + + 0 - + - 72 + + COUNT( * ) + + - 83 THEN - + 42 / + ( - CAST( NULL AS SIGNED ) ) * - ( ( + 31 ) ) + ( - 86 ) * 13 * + 14 + + 82 * - AVG ( ALL + + 52 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT CASE + 85 WHEN - 92 THEN NULL WHEN - 96 * - 45 + + + 0 - + - 72 + + COUNT ( * ) + + - 83 THEN - + 42 / + ( - CAST ( NULL AS INTEGER ) ) * - ( ( + 31 ) ) + ( - 86 ) * 13 * + 14 + + 82 * - AVG ( ALL + + 52 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT - CASE + 58 WHEN + - CAST( - + 12 AS SIGNED ) * - 53 - CAST( NULL AS SIGNED ) + - - 86 - - 50 + + 44 * - 64 * + 45 + - 71 THEN 94 ELSE NULL END * + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT - CASE + 58 WHEN + - CAST ( - + 12 AS INTEGER ) * - 53 - CAST ( NULL AS INTEGER ) + - - 86 - - 50 + + 44 * - 64 * + 45 + - 71 THEN 94 ELSE NULL END * + - 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1582
SELECT - ( + - COUNT( - CAST( - + 80 AS SIGNED ) ) ) DIV 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1582
SELECT - ( + - COUNT ( - CAST ( - + 80 AS INTEGER ) ) ) / 42 AS col2
----
0

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

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

query I rowsort
SELECT - ( - 64 ) * 26
----
1664

query I rowsort
SELECT ALL + 42 * 3 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1586
SELECT - 92 * - ( + + ( - 49 ) ) * + 97 + + ( COUNT( * ) ) - + ( + COALESCE ( + CAST( - + 60 AS SIGNED ), + - 88 ) ) AS col1
----
-437215

skipif mysql # not compatible
query I rowsort label-1586
SELECT - 92 * - ( + + ( - 49 ) ) * + 97 + + ( COUNT ( * ) ) - + ( + COALESCE ( + CAST ( - + 60 AS INTEGER ), + - 88 ) ) AS col1
----
-437215

query I rowsort
SELECT ALL 25 * 28 + + 83 * - + 37 + 80
----
-2291

query I rowsort
SELECT DISTINCT + COALESCE ( 35, 12 + 90 * 82 * + 41 )
----
35

query I rowsort
SELECT ALL + 93 * - 6 + - 55 AS col0
----
-613

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT - MIN( ALL - 86 ) + 11 + + + COUNT( * ) * + - 49 + + + 70 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-1591
SELECT - MIN ( ALL - 86 ) + 11 + + + COUNT ( * ) * + - 49 + + + 70 AS col1
----
118

query I rowsort
SELECT + 62 * 8 col1
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT MIN( - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-1593
SELECT MIN ( - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL + + 64 * + - COUNT( * ) - + 97 * + + 24 * + 27 + - - 70 * + COUNT( + 68 ) AS col0
----
-62850

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + + 64 * + - COUNT ( * ) - + 97 * + + 24 * + 27 + - - 70 * + COUNT ( + 68 ) AS col0
----
-62850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1595
SELECT ALL - - 98 * + COUNT( * ) * + 58 + - CAST( - ( 79 ) AS SIGNED ) * 98 * 25 + + 0 + COUNT( * ) + 29 - + 77
----
199187

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - - 98 * + COUNT ( * ) * + 58 + - CAST ( - ( 79 ) AS INTEGER ) * 98 * 25 + + 0 + COUNT ( * ) + 29 - + 77
----
199187

query I rowsort
SELECT ALL + 47 + + 12 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT - + COUNT( * ) - - 83 * - 85 + - 90 AS col1
----
-7146

skipif mysql # not compatible
query I rowsort label-1597
SELECT - + COUNT ( * ) - - 83 * - 85 + - 90 AS col1
----
-7146

onlyif mysql # aggregate syntax: 
query II rowsort label-1598
SELECT ALL + 19 + - ( + COUNT( * ) ) AS col2, COUNT( ALL 47 ) AS col2
----
18
1

skipif mysql # not compatible
query II rowsort label-1598
SELECT ALL + 19 + - ( + COUNT ( * ) ) AS col2, COUNT ( ALL 47 ) AS col2
----
18
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1599
SELECT 43 AS col1, 27 * 60 + - CASE + 40 WHEN - - 59 * - - 31 - - 1 + - - 70 THEN 66 / - - COUNT( * ) + + 23 END
----
43
NULL

skipif mysql # not compatible
query II rowsort label-1599
SELECT 43 AS col1, 27 * 60 + - CASE + 40 WHEN - - 59 * - - 31 - - 1 + - - 70 THEN 66 / - - COUNT ( * ) + + 23 END
----
43
NULL

query I rowsort
SELECT ALL + 39 + - 61
----
-22

query I rowsort
SELECT ALL - 64 * 4 AS col0
----
-256

onlyif mysql # DIV for integer division: 
query I rowsort label-1602
SELECT + - 59 DIV 22
----
-2

skipif mysql # not compatible
query I rowsort label-1602
SELECT + - 59 / 22
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT COUNT( DISTINCT + 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1603
SELECT COUNT ( DISTINCT + 34 ) AS col1
----
1

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

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

query I rowsort
SELECT ALL 12 * 96
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT - CASE - ( - COUNT( * ) ) WHEN + + 88 + + 28 THEN - 11 END / + - 73 * - NULLIF ( + + 21, - 98 ) + MAX( - ( - COALESCE ( - - ( + 85 ), - 80 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1606
SELECT - CASE - ( - COUNT ( * ) ) WHEN + + 88 + + 28 THEN - 11 END / + - 73 * - NULLIF ( + + 21, - 98 ) + MAX ( - ( - COALESCE ( - - ( + 85 ), - 80 ) ) ) AS col0
----
NULL

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

query II rowsort
SELECT ALL 41 AS col1, CASE + 76 WHEN 63 THEN + 56 * - 74 * + 21 / + 49 / + 82 ELSE NULL END
----
41
NULL

query I rowsort
SELECT ALL + COALESCE ( + 90, + + 56 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT + ( - - MIN( + 31 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1610
SELECT + ( - - MIN ( + 31 ) ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1611
SELECT CAST( - - 67 AS SIGNED ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-1611
SELECT CAST ( - - 67 AS INTEGER ) AS col1
----
67

query I rowsort
SELECT - ( + + 56 ) * + 64 * - + 27 + 52 AS col2
----
96820

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT + 28 * - 62 * - NULLIF ( - COUNT( * ), 48 ) * 14 - + 80 + - 43
----
-24427

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 28 * - 62 * - NULLIF ( - COUNT ( * ), 48 ) * 14 - + 80 + - 43
----
-24427

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ALL + 74 * + COUNT( + 51 )
----
74

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL + 74 * + COUNT ( + 51 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT ALL 46 DIV 60 * - 95 + - - 92
----
92

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL 46 / 60 * - 95 + - - 92
----
92

query I rowsort
SELECT ALL 15 * + - 8 AS col0
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1617
SELECT ALL - CASE + 13 WHEN MAX( DISTINCT - 50 ) THEN NULL ELSE - + 39 * + ( 24 ) + - 42 + + COUNT( * ) * + + 28 + - 20 END + 43 + + + 46 + + 85 DIV COUNT( * ) + + - 48 * - - COALESCE ( - 48, + + 69 * - 26 - - 72 + + ( + COUNT( * ) ) ) AS col2
----
3448

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL - CASE + 13 WHEN MAX ( DISTINCT - 50 ) THEN NULL ELSE - + 39 * + ( 24 ) + - 42 + + COUNT ( * ) * + + 28 + - 20 END + 43 + + + 46 + + 85 / COUNT ( * ) + + - 48 * - - COALESCE ( - 48, + + 69 * - 26 - - 72 + + ( + COUNT ( * ) ) ) AS col2
----
3448

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1618
SELECT CAST( - CASE - 1 WHEN + 13 THEN + + ( - 52 ) DIV 23 + + + 38 ELSE + 41 END AS SIGNED ) DIV - - 71 AS col2, 66 col2
----
0
66

skipif mysql # not compatible
query II rowsort label-1618
SELECT CAST ( - CASE - 1 WHEN + 13 THEN + + ( - 52 ) / 23 + + + 38 ELSE + 41 END AS INTEGER ) / - - 71 AS col2, 66 col2
----
0
66

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT ALL - 84 + + 78 + + - 82 * - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL - 84 + + 78 + + - 82 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT SUM( 75 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-1622
SELECT SUM ( 75 ) col1
----
75

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

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

query I rowsort
SELECT DISTINCT - 26 * 25 AS col2
----
-650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT ALL - + 21 - 31 DIV - + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL - + 21 - 31 / - + COUNT ( * )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT + 4 + + CAST( + - 58 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-1626
SELECT + 4 + + CAST ( + - 58 AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT DISTINCT ( 17 ) col1, + COUNT( * ) - + + 53
----
17
-52

skipif mysql # not compatible
query II rowsort label-1627
SELECT DISTINCT ( 17 ) col1, + COUNT ( * ) - + + 53
----
17
-52

query I rowsort
SELECT ALL + 74 - + + 98
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT + ( - COALESCE ( - 65, 30 ) ) + - 92 + SUM( 93 ) * 14 col0
----
1275

skipif mysql # not compatible
query I rowsort label-1629
SELECT + ( - COALESCE ( - 65, 30 ) ) + - 92 + SUM ( 93 ) * 14 col0
----
1275

query II rowsort
SELECT ALL ( - 28 ) AS col0, 19 AS col0
----
-28
19

query I rowsort
SELECT + ( - - 0 ) * 21 + - + 71
----
-71

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT COUNT( * ) * + - 83 * - - 47
----
-3901

skipif mysql # not compatible
query I rowsort label-1634
SELECT COUNT ( * ) * + - 83 * - - 47
----
-3901

query I rowsort
SELECT ( ( + 46 ) ) + - + 95 AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1636
SELECT ALL 82 DIV - ( - 40 )
----
2

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL 82 / - ( - 40 )
----
2

query I rowsort
SELECT DISTINCT 17 * - - 88 AS col1
----
1496

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT 95 DIV + 3 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1638
SELECT 95 / + 3 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT 66 * COUNT( 91 ) AS col2, + 88
----
66
88

skipif mysql # not compatible
query II rowsort label-1639
SELECT 66 * COUNT ( 91 ) AS col2, + 88
----
66
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT ALL 10 * - - CASE + - MAX( DISTINCT - + 65 ) WHEN - - ( + NULLIF ( - - 79, + 44 ) ) THEN 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL 10 * - - CASE + - MAX ( DISTINCT - + 65 ) WHEN - - ( + NULLIF ( - - 79, + 44 ) ) THEN 39 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1641
SELECT 59 AS col1, NULLIF ( - COUNT( * ), + 70 * - + CAST( COUNT( * ) AS SIGNED ) * - - 52 ) DIV 22
----
59
0

skipif mysql # not compatible
query II rowsort label-1641
SELECT 59 AS col1, NULLIF ( - COUNT ( * ), + 70 * - + CAST ( COUNT ( * ) AS INTEGER ) * - - 52 ) / 22
----
59
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1642
SELECT ALL + 15 + - 24 / CASE + ( - 66 ) WHEN 97 THEN - AVG ( + - 33 ) ELSE - 84 / NULLIF ( - CAST( NULL AS SIGNED ), + 41 + + 49 + - 54 ) * + + COUNT( * ) - + + 38 END + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + 15 + - 24 / CASE + ( - 66 ) WHEN 97 THEN - AVG ( + - 33 ) ELSE - 84 / NULLIF ( - CAST ( NULL AS INTEGER ), + 41 + + 49 + - 54 ) * + + COUNT ( * ) - + + 38 END + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT - 60 * 94 * COUNT( * ) col1
----
-5640

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - 60 * 94 * COUNT ( * ) col1
----
-5640

query I rowsort
SELECT 91 * 10 AS col2
----
910

query II rowsort
SELECT 75 col0, 70 + - 85
----
75
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT COUNT( DISTINCT + 99 ) * + 45 + CAST( - 3 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1646
SELECT COUNT ( DISTINCT + 99 ) * + 45 + CAST ( - 3 AS INTEGER ) AS col2
----
42

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

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

query I rowsort
SELECT ALL 68 + - 2
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + 48 * + COUNT( * ) * + 6 - + 40
----
248

skipif mysql # not compatible
query I rowsort label-1650
SELECT + 48 * + COUNT ( * ) * + 6 - + 40
----
248

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

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

query II rowsort
SELECT ALL - 71, 50 - + 96 AS col2
----
-71
-46

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

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL ( - COUNT ( * ) ) * - + MIN ( 7 ) AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT DISTINCT - CAST( 15 AS SIGNED ) - - + 11
----
-4

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT - CAST ( 15 AS INTEGER ) - - + 11
----
-4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL + 39 - - MIN( DISTINCT ( - - 47 ) )
----
86

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + 39 - - MIN ( DISTINCT ( - - 47 ) )
----
86

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1658
SELECT - MIN( DISTINCT - 38 ) DIV - 69 + - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1658
SELECT - MIN ( DISTINCT - 38 ) / - 69 + - ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT CAST( NULL AS SIGNED ) * + + ( + 61 ) + + CAST( - 64 AS SIGNED ) * + CAST( NULL AS SIGNED ) + + + CAST( - MAX( 51 ) AS SIGNED ) + 91 + + + 12 * 13 + - 80 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT CAST ( NULL AS INTEGER ) * + + ( + 61 ) + + CAST ( - 64 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + + CAST ( - MAX ( 51 ) AS INTEGER ) + 91 + + + 12 * 13 + - 80 * + 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1660
SELECT DISTINCT - 37 * - COUNT( DISTINCT - 38 ) * - 87 + 63 + - 68 DIV - + COUNT( * )
----
-3088

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - 37 * - COUNT ( DISTINCT - 38 ) * - 87 + 63 + - 68 / - + COUNT ( * )
----
-3088

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT + CASE - 62 WHEN - COUNT( * ) - + 14 THEN 39 WHEN + 32 * - - 53 THEN + - 25 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT + CASE - 62 WHEN - COUNT ( * ) - + 14 THEN 39 WHEN + 32 * - - 53 THEN + - 25 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 70 * + 34 - 74 AS col0
----
2306

query I rowsort
SELECT 57 * + ( 51 ) + - 13 AS col1
----
2894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT COUNT( * ) DIV - 53 + 83
----
83

skipif mysql # not compatible
query I rowsort label-1664
SELECT COUNT ( * ) / - 53 + 83
----
83

query I rowsort
SELECT ALL - - 76 * - 48 * 62
----
-226176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT - CAST( NULL AS SIGNED ) * + 18 + - + 12 - - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT - CAST ( NULL AS INTEGER ) * + 18 + - + 12 - - 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1667
SELECT DISTINCT COALESCE ( + 89, - + ( 68 ) DIV + 78, ( - + 86 ) * COALESCE ( 64, - - 84 + - MIN( 22 ), ( + 24 ) + 4 ) ) col2, 52
----
89
52

skipif mysql # not compatible
query II rowsort label-1667
SELECT DISTINCT COALESCE ( + 89, - + ( 68 ) / + 78, ( - + 86 ) * COALESCE ( 64, - - 84 + - MIN ( 22 ), ( + 24 ) + 4 ) ) col2, 52
----
89
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT ALL - - ( - - MIN( - 59 ) ) + 44 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL - - ( - - MIN ( - 59 ) ) + 44 AS col0
----
-15

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

query I rowsort
SELECT 57 - - 13
----
70

query II rowsort
SELECT DISTINCT - 73 * - 73, + 70 * - 42 AS col1
----
5329
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL + 19 + + COALESCE ( + 4, SUM( - 50 ) ) * + + COALESCE ( - 75, 57, - 11 ) AS col0
----
-281

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + 19 + + COALESCE ( + 4, SUM ( - 50 ) ) * + + COALESCE ( - 75, 57, - 11 ) AS col0
----
-281

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT - 53 AS col2, + MAX( - 65 ) AS col0
----
-53
-65

skipif mysql # not compatible
query II rowsort label-1674
SELECT - 53 AS col2, + MAX ( - 65 ) AS col0
----
-53
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1675
SELECT ALL + 46 + 49 - + 33 DIV CAST( - 66 AS SIGNED ) + + 13 + + + 36
----
144

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL + 46 + 49 - + 33 / CAST ( - 66 AS INTEGER ) + + 13 + + + 36
----
144

query I rowsort
SELECT 76 * 4 * - + 77 AS col2
----
-23408

query I rowsort
SELECT ALL - 47 + - 48 AS col2
----
-95

query I rowsort
SELECT DISTINCT - 74 * - NULLIF ( - + 3, 54 + - 15 )
----
-222

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

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

query II rowsort
SELECT COALESCE ( + + 39, - COALESCE ( + 69, - 94 + 10 + 22 * 75 + - 19 ) ) AS col0, 53 * - 82
----
39
-4346

query I rowsort
SELECT NULLIF ( - + 26, - 60 / + - 74 ) AS col0
----
-26

query I rowsort
SELECT - 50 + + 99 * + + 95 * 5 + 31
----
47006

query I rowsort
SELECT + 56 * - 58 * - 81
----
263088

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT DISTINCT 62 * COUNT( * ) * + - 65
----
-4030

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT 62 * COUNT ( * ) * + - 65
----
-4030

query I rowsort
SELECT ALL 94 * + 11 - - 60 * + 66 AS col2
----
4994

query I rowsort
SELECT ALL - 18 * + - 68 - - 82 * + 97 AS col2
----
9178

query I rowsort
SELECT DISTINCT - 12 * 34 AS col0
----
-408

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT + 72 + - - CASE 0 WHEN - 91 + + CAST( NULL AS SIGNED ) - 17 - 95 + - 83 * - 51 * COUNT( * ) THEN NULL WHEN + - 58 THEN + 35 WHEN - - 13 * CAST( COUNT( - + 44 ) AS SIGNED ) * COUNT( * ) * - CASE + 78 WHEN 0 THEN NULL WHEN 27 THEN NULL WHEN - - 85 * - - 38 + 70 * + + 87 + COUNT( DISTINCT - ( - 46 ) ) * 86 THEN - + 4 ELSE NULL END + + 68 THEN NULL END * - - 57 * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT + 72 + - - CASE 0 WHEN - 91 + + CAST ( NULL AS INTEGER ) - 17 - 95 + - 83 * - 51 * COUNT ( * ) THEN NULL WHEN + - 58 THEN + 35 WHEN - - 13 * CAST ( COUNT ( - + 44 ) AS INTEGER ) * COUNT ( * ) * - CASE + 78 WHEN 0 THEN NULL WHEN 27 THEN NULL WHEN - - 85 * - - 38 + 70 * + + 87 + COUNT ( DISTINCT - ( - 46 ) ) * 86 THEN - + 4 ELSE NULL END + + 68 THEN NULL END * - - 57 * + 96 AS col1
----
NULL

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

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

query I rowsort
SELECT + 58 * + 23 + 42 * + - 43 + - 57 AS col1
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL + COALESCE ( - 14, - - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + COALESCE ( - 14, - - COUNT ( * ) )
----
-14

query II rowsort
SELECT + - 2 * 61, 35 AS col0
----
-122
35

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT + CAST( + - 67 AS SIGNED ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-1695
SELECT + CAST ( + - 67 AS INTEGER ) AS col2
----
-67

query II rowsort
SELECT ALL + 84, 54 + 76 col0
----
84
130

query I rowsort
SELECT + 61 * 14 AS col2
----
854

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1698
SELECT ALL 75 AS col1, COUNT( * ) + + ( + + 7 ) DIV - 45 + - - 4 AS col2
----
75
5

skipif mysql # not compatible
query II rowsort label-1698
SELECT ALL 75 AS col1, COUNT ( * ) + + ( + + 7 ) / - 45 + - - 4 AS col2
----
75
5

query II rowsort
SELECT + 37 col1, ( - 78 )
----
37
-78

query I rowsort
SELECT + + 75 + - ( 30 ) * 12 AS col2
----
-285

query I rowsort
SELECT DISTINCT + 64 * 19
----
1216

query I rowsort
SELECT - 15 * 86 - + 25 - - 22 * 84 AS col2
----
533

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

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

query I rowsort
SELECT - COALESCE ( + 22, - 38 ) AS col0
----
-22

query I rowsort
SELECT + ( - + 85 ) + - 6
----
-91

query I rowsort
SELECT ALL 46 + + 96 AS col1
----
142

query I rowsort
SELECT ALL + 15 + - 12
----
3

query I rowsort
SELECT ALL COALESCE ( 4, 21 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1709
SELECT ALL 99 + + - 68 + - + CASE + 72 WHEN - 41 * - + COALESCE ( + 61, - + COUNT( * ) ) + 35 THEN - 5 + 90 ELSE 89 END, + 29 AS col1
----
-58
29

skipif mysql # not compatible
query II rowsort label-1709
SELECT ALL 99 + + - 68 + - + CASE + 72 WHEN - 41 * - + COALESCE ( + 61, - + COUNT ( * ) ) + 35 THEN - 5 + 90 ELSE 89 END, + 29 AS col1
----
-58
29

query I rowsort
SELECT - 10 + - + 47
----
-57

query I rowsort
SELECT - ( - 15 ) * 61 * + 89 + + 34 AS col0
----
81469

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL + COUNT( * ) + + 5 - + 37 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL + COUNT ( * ) + + 5 - + 37 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1713
SELECT - 63 + - 48 * - - COUNT( * ) AS col0, 67 AS col0
----
-111
67

skipif mysql # not compatible
query II rowsort label-1713
SELECT - 63 + - 48 * - - COUNT ( * ) AS col0, 67 AS col0
----
-111
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT - NULLIF ( + 77, - - 20 * + 35 * + - 26 + - + 30 + + CASE 57 WHEN + 47 * - 15 THEN NULL ELSE + MIN( 7 ) END ) * - 72 * 98 AS col2
----
543312

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - NULLIF ( + 77, - - 20 * + 35 * + - 26 + - + 30 + + CASE 57 WHEN + 47 * - 15 THEN NULL ELSE + MIN ( 7 ) END ) * - 72 * 98 AS col2
----
543312

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT - MAX( ALL - + 75 ) AS col1, 8
----
75
8

skipif mysql # not compatible
query II rowsort label-1715
SELECT - MAX ( ALL - + 75 ) AS col1, 8
----
75
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1716
SELECT ALL - 25 * + ( + 63 ), COALESCE ( - 52, - 78, 61 - COALESCE ( - COUNT( * ), - 20 + + CAST( + 7 AS SIGNED ) ) ) AS col2
----
-1575
-52

skipif mysql # not compatible
query II rowsort label-1716
SELECT ALL - 25 * + ( + 63 ), COALESCE ( - 52, - 78, 61 - COALESCE ( - COUNT ( * ), - 20 + + CAST ( + 7 AS INTEGER ) ) ) AS col2
----
-1575
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT ALL - 74 DIV + ( 94 ) - - 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - 74 / + ( 94 ) - - 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1718
SELECT DISTINCT + SUM( ALL - 53 ) AS col0, 60 AS col2
----
-53
60

skipif mysql # not compatible
query II rowsort label-1718
SELECT DISTINCT + SUM ( ALL - 53 ) AS col0, 60 AS col2
----
-53
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT ( + CASE - - 64 WHEN 29 THEN - 70 * - 37 + 49 WHEN + COALESCE ( 84, + CAST( 0 AS SIGNED ), - COALESCE ( - + 59, - 2 - - 22, - 44 ) - + SUM( DISTINCT 19 ) ) THEN + + 15 ELSE + - 24 END ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1719
SELECT ( + CASE - - 64 WHEN 29 THEN - 70 * - 37 + 49 WHEN + COALESCE ( 84, + CAST ( 0 AS INTEGER ), - COALESCE ( - + 59, - 2 - - 22, - 44 ) - + SUM ( DISTINCT 19 ) ) THEN + + 15 ELSE + - 24 END ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1720
SELECT - - 48 * 73 * COUNT( DISTINCT CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-1720
SELECT - - 48 * 73 * COUNT ( DISTINCT CAST ( NULL AS REAL ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1721
SELECT DISTINCT + - 85 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT + - 85 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL - CASE - + 75 WHEN - 15 * 37 / - MIN( 98 ) * - 48 THEN - 32 ELSE NULL END * + COUNT( * ) + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL - CASE - + 75 WHEN - 15 * 37 / - MIN ( 98 ) * - 48 THEN - 32 ELSE NULL END * + COUNT ( * ) + 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT + SUM( + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + SUM ( + 15 ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1724
SELECT DISTINCT + CAST( - - 49 AS SIGNED ), 83 + + 23 AS col0
----
49
106

skipif mysql # not compatible
query II rowsort label-1724
SELECT DISTINCT + CAST ( - - 49 AS INTEGER ), 83 + + 23 AS col0
----
49
106

query I rowsort
SELECT + + COALESCE ( - 72, 89 ) col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1726
SELECT - - 4 DIV COUNT( * ) AS col2, 55 * 91
----
4
5005

skipif mysql # not compatible
query II rowsort label-1726
SELECT - - 4 / COUNT ( * ) AS col2, 55 * 91
----
4
5005

onlyif mysql # aggregate syntax: 
query II rowsort label-1727
SELECT SUM( ALL + 20 ), + 43 AS col2
----
20
43

skipif mysql # not compatible
query II rowsort label-1727
SELECT SUM ( ALL + 20 ), + 43 AS col2
----
20
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1728
SELECT + 95 * 24, ( + + COALESCE ( - 15, + 81 * + 4 * + + 8, + 41 * + - ( - 47 ) ) ) * + - COUNT( * ) - NULLIF ( + COUNT( * ), - - 76 ) AS col0
----
2280
14

skipif mysql # not compatible
query II rowsort label-1728
SELECT + 95 * 24, ( + + COALESCE ( - 15, + 81 * + 4 * + + 8, + 41 * + - ( - 47 ) ) ) * + - COUNT ( * ) - NULLIF ( + COUNT ( * ), - - 76 ) AS col0
----
2280
14

query I rowsort
SELECT ALL + 98 * + 54 + - 57 * + 8 * + 0 AS col0
----
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT + COUNT( * ) * - 49 + 18 + + - 98
----
-129

skipif mysql # not compatible
query I rowsort label-1730
SELECT + COUNT ( * ) * - 49 + 18 + + - 98
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + 66 + + - 11 + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1731
SELECT + 66 + + - 11 + COUNT ( * ) AS col1
----
56

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

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

query II rowsort
SELECT 75, 65 AS col0
----
75
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1734
SELECT ALL 99 DIV + 32 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL 99 / + 32 AS col1
----
3

query I rowsort
SELECT DISTINCT 58 + 75 AS col0
----
133

query I rowsort
SELECT ALL 93 - - 58
----
151

query I rowsort
SELECT ALL 51 * + 40 AS col1
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT SUM( ALL + 42 ) - 63
----
-21

skipif mysql # not compatible
query I rowsort label-1738
SELECT SUM ( ALL + 42 ) - 63
----
-21

query II rowsort
SELECT DISTINCT 65 AS col1, 28 * - 66 AS col2
----
65
-1848

query II rowsort
SELECT ALL 16 AS col0, + 40 + 29
----
16
69

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1743
SELECT ALL + 84 DIV + + 17 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL + 84 / + + 17 AS col2
----
4

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

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

query I rowsort
SELECT 26 - + 2
----
24

query I rowsort
SELECT 29 * + + 28 AS col1
----
812

query I rowsort
SELECT 58 * - 87 - 34 col2
----
-5080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1748
SELECT ALL - + MAX( ALL + - 28 ) * + 55 + + 49 + + 72 + - + 41 DIV + - 54 AS col2
----
1661

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL - + MAX ( ALL + - 28 ) * + 55 + + 49 + + 72 + - + 41 / + - 54 AS col2
----
1661

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT 11 * + ( 13 ) * - 2 + + 59 * + - 87 * - 43 + 47 + + - 92 + 20 DIV COALESCE ( 98, + 6 ) * + 86 * + 77 col2
----
220388

skipif mysql # not compatible
query I rowsort label-1749
SELECT 11 * + ( 13 ) * - 2 + + 59 * + - 87 * - 43 + 47 + + - 92 + 20 / COALESCE ( 98, + 6 ) * + 86 * + 77 col2
----
220388

query I rowsort
SELECT DISTINCT 95 * 82 * COALESCE ( - - 91, + 9 ) AS col0
----
708890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT - 48 + + CAST( - 52 AS SIGNED ) + + 59 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1751
SELECT - 48 + + CAST ( - 52 AS INTEGER ) + + 59 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL - 56 + MAX( ALL 90 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - 56 + MAX ( ALL 90 ) col2
----
34

query II rowsort
SELECT ALL - - 40 AS col0, ( - 83 )
----
40
-83

query II rowsort
SELECT + - 24 col0, - 96
----
-24
-96

query I rowsort
SELECT ALL + NULLIF ( + + 35, - - 71 ) + + ( 0 ) AS col2
----
35

query II rowsort
SELECT ALL - - 6, 38 AS col0
----
6
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT + COUNT( * ) + 52 / CAST( NULL AS SIGNED ) + - COALESCE ( - 2, - 39 * COUNT( * ) / - 84 - - 10 + - - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ), 17 ), CAST( 82 AS SIGNED ) ) + - + 44 * - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT + COUNT ( * ) + 52 / CAST ( NULL AS INTEGER ) + - COALESCE ( - 2, - 39 * COUNT ( * ) / - 84 - - 10 + - - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ), 17 ), CAST ( 82 AS INTEGER ) ) + - + 44 * - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - ( + 3 ) + + 14 AS col2
----
11

query I rowsort
SELECT + 73 * 71
----
5183

query I rowsort
SELECT DISTINCT - 69 + - + 57 - ( + 61 ) * + 74 - - 46
----
-4594

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT DISTINCT + 15 - 8, - MAX( ALL 92 ) col1
----
7
-92

skipif mysql # not compatible
query II rowsort label-1761
SELECT DISTINCT + 15 - 8, - MAX ( ALL 92 ) col1
----
7
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT COUNT( * ) + COUNT( * ) + CASE - 63 WHEN - ( - 76 ) THEN + - 20 * MAX( DISTINCT - + 25 ) * - 58 + + 35 WHEN + 14 THEN - COUNT( * ) ELSE NULL END + + CASE 50 WHEN CAST( NULL AS SIGNED ) THEN + 52 ELSE + + COUNT( * ) * + - ( + 22 ) - 98 END + - + AVG ( ALL - - CAST( - 8 AS SIGNED ) ) / + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT COUNT ( * ) + COUNT ( * ) + CASE - 63 WHEN - ( - 76 ) THEN + - 20 * MAX ( DISTINCT - + 25 ) * - 58 + + 35 WHEN + 14 THEN - COUNT ( * ) ELSE NULL END + + CASE 50 WHEN CAST ( NULL AS INTEGER ) THEN + 52 ELSE + + COUNT ( * ) * + - ( + 22 ) - 98 END + - + AVG ( ALL - - CAST ( - 8 AS INTEGER ) ) / + 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1763
SELECT 4 DIV SUM( ALL + - 22 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1763
SELECT 4 / SUM ( ALL + - 22 ) AS col0
----
0

query I rowsort
SELECT 75 * + - 86 AS col1
----
-6450

onlyif mysql # aggregate syntax: 
query II rowsort label-1765
SELECT 85 * - 56 AS col1, - MIN( ALL + + 27 ) + + 52 * + COALESCE ( + + NULLIF ( - SUM( DISTINCT 71 ), + 83 ), + + COUNT( * ) ) * - 72 + + 38 AS col1
----
-4760
265835

skipif mysql # not compatible
query II rowsort label-1765
SELECT 85 * - 56 AS col1, - MIN ( ALL + + 27 ) + + 52 * + COALESCE ( + + NULLIF ( - SUM ( DISTINCT 71 ), + 83 ), + + COUNT ( * ) ) * - 72 + + 38 AS col1
----
-4760
265835

query I rowsort
SELECT 91 + 72 + + 91 * 45 * 80 * + + 96
----
31449763

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT 1 + - - 32 + - NULLIF ( + 15, + - COUNT( * ) ) + 85 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-1767
SELECT 1 + - - 32 + - NULLIF ( + 15, + - COUNT ( * ) ) + 85 AS col1
----
103

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

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL MIN ( 17 )
----
17

query I rowsort
SELECT DISTINCT NULLIF ( - + 21, - 62 ) * - 17 * - - 21 * + 41 AS col1
----
307377

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1770
SELECT ( - ( - 42 ) ) * + + CAST( NULL AS SIGNED ) AS col2, 34 col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1770
SELECT ( - ( - 42 ) ) * + + CAST ( NULL AS INTEGER ) AS col2, 34 col2
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT COUNT( * ) * + 47 * - MIN( ALL + 3 ) AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-1771
SELECT COUNT ( * ) * + 47 * - MIN ( ALL + 3 ) AS col2
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1772
SELECT ALL CAST( NULL AS SIGNED ) + + 29, + 60 * 11 AS col2
----
NULL
660

skipif mysql # not compatible
query II rowsort label-1772
SELECT ALL CAST ( NULL AS INTEGER ) + + 29, + 60 * 11 AS col2
----
NULL
660

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT + + 32 * 20 + + - COUNT( * )
----
639

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT + + 32 * 20 + + - COUNT ( * )
----
639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT ALL - 71 DIV + - COUNT( * ) - - 98
----
169

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL - 71 / + - COUNT ( * ) - - 98
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1775
SELECT + 18 / + - 5 * CAST( NULL AS SIGNED ) * - 63, 52 * + - 30 + + 23 col1
----
NULL
-1537

skipif mysql # not compatible
query II rowsort label-1775
SELECT + 18 / + - 5 * CAST ( NULL AS INTEGER ) * - 63, 52 * + - 30 + + 23 col1
----
NULL
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL + + MAX( + 31 ) * + 29 + - ( - 15 ) * + 10 * + SUM( DISTINCT - 4 ) * 44 - + COUNT( * ) AS col0
----
-25502

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + + MAX ( + 31 ) * + 29 + - ( - 15 ) * + 10 * + SUM ( DISTINCT - 4 ) * 44 - + COUNT ( * ) AS col0
----
-25502

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

query II rowsort
SELECT - 54 * + + 79 AS col0, 3 + + 12
----
-4266
15

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

query I rowsort
SELECT + + COALESCE ( - 84, 97 * 21 ) AS col0
----
-84

query I rowsort
SELECT + COALESCE ( - 23, 28 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT + 67 DIV - 2 - 46 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-1782
SELECT + 67 / - 2 - 46 AS col0
----
-79

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

query II rowsort
SELECT DISTINCT - 68 * + - 34 + + + 70 * 80 col2, + 88 col0
----
7912
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1785
SELECT ALL 13 * CAST( + 80 AS DECIMAL ) / - + ( CASE + 59 WHEN 43 THEN NULL WHEN - 20 THEN CASE + ( + + 51 ) WHEN COUNT( * ) THEN + - CAST( NULL AS DECIMAL ) - 90 + - 53 WHEN COUNT( * ) * + - NULLIF ( + 19, + 97 + - + 58 ) THEN + 97 WHEN 9 THEN NULL END / + + 67 * + + AVG ( DISTINCT + 32 ) * - 62 WHEN 0 * + + 24 + 68 THEN - 43 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL 13 * CAST ( + 80 AS REAL ) / - + ( CASE + 59 WHEN 43 THEN NULL WHEN - 20 THEN CASE + ( + + 51 ) WHEN COUNT ( * ) THEN + - CAST ( NULL AS REAL ) - 90 + - 53 WHEN COUNT ( * ) * + - NULLIF ( + 19, + 97 + - + 58 ) THEN + 97 WHEN 9 THEN NULL END / + + 67 * + + AVG ( DISTINCT + 32 ) * - 62 WHEN 0 * + + 24 + 68 THEN - 43 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT ALL + 83 - + CAST( NULL AS SIGNED ) + - CASE 65 WHEN - CAST( MAX( ALL - - 95 ) AS SIGNED ) * - ( NULLIF ( 11, + 26 - - COUNT( * ) / 32 ) ) * + ( 51 ) * - 96 + + 29 + - + COALESCE ( - + CASE 8 WHEN + CAST( - 69 AS SIGNED ) / 10 THEN NULL WHEN CASE - + 0 WHEN - COUNT( * ) THEN NULL ELSE + ( ( - - CASE + + 46 WHEN 33 THEN - MIN( + - 19 ) END ) ) * 48 END THEN - MIN( + - 58 ) END, - 46 * COALESCE ( - ( + 63 ), - 60, - + 12 ) + - - COUNT( * ) - - + 39 + 1 * + + 21 - ( COUNT( * ) ) ) THEN 48 / - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + 83 - + CAST ( NULL AS INTEGER ) + - CASE 65 WHEN - CAST ( MAX ( ALL - - 95 ) AS INTEGER ) * - ( NULLIF ( 11, + 26 - - COUNT ( * ) / 32 ) ) * + ( 51 ) * - 96 + + 29 + - + COALESCE ( - + CASE 8 WHEN + CAST ( - 69 AS INTEGER ) / 10 THEN NULL WHEN CASE - + 0 WHEN - COUNT ( * ) THEN NULL ELSE + ( ( - - CASE + + 46 WHEN 33 THEN - MIN ( + - 19 ) END ) ) * 48 END THEN - MIN ( + - 58 ) END, - 46 * COALESCE ( - ( + 63 ), - 60, - + 12 ) + - - COUNT ( * ) - - + 39 + 1 * + + 21 - ( COUNT ( * ) ) ) THEN 48 / - 38 END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT - COUNT( ALL - - ( + 76 ) ) * - 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1789
SELECT - COUNT ( ALL - - ( + 76 ) ) * - 44 AS col0
----
44

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

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

query I rowsort
SELECT - 46 - + 14
----
-60

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

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

query I rowsort
SELECT - 40 * 68
----
-2720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT ALL MAX( - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL MAX ( - 82 )
----
-82

query I rowsort
SELECT - 4 * - 74 * 8 * 65 AS col2
----
153920

query I rowsort
SELECT ALL - 93 * - 37 col1
----
3441

query I rowsort
SELECT + 74 * - - 68 AS col1
----
5032

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

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

query I rowsort
SELECT - 44 * - 24
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT - MIN( ALL + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1801
SELECT - MIN ( ALL + 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1802
SELECT ALL + CASE COUNT( * ) WHEN + COUNT( + + 79 ) DIV - COUNT( * ) THEN NULL ELSE - 65 DIV NULLIF ( MAX( 42 ), ( + - COUNT( * ) ) + + + 79 * + NULLIF ( 63, - ( + ( - - 72 ) ) DIV + ( - + ( - 97 ) ) ) ) * - - 77 + + 79 + - - SUM( ALL + - 73 ) DIV + 53 END + - 55 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL + CASE COUNT ( * ) WHEN + COUNT ( + + 79 ) / - COUNT ( * ) THEN NULL ELSE - 65 / NULLIF ( MAX ( 42 ), ( + - COUNT ( * ) ) + + + 79 * + NULLIF ( 63, - ( + ( - - 72 ) ) / + ( - + ( - 97 ) ) ) ) * - - 77 + + 79 + - - SUM ( ALL + - 73 ) / + 53 END + - 55 AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1803
SELECT DISTINCT 38 AS col0, 40 * + + 82 + COUNT( + - 70 ) DIV - - 22 AS col0
----
38
3280

skipif mysql # not compatible
query II rowsort label-1803
SELECT DISTINCT 38 AS col0, 40 * + + 82 + COUNT ( + - 70 ) / - - 22 AS col0
----
38
3280

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

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

query I rowsort
SELECT ALL + 95 + + ( + 84 ) + + 23 + - 56 + + - 63 AS col1
----
83

query I rowsort
SELECT DISTINCT 43 + - 65 AS col1
----
-22

query I rowsort
SELECT ALL 78 + NULLIF ( + 42 + COALESCE ( + 55, - 72 + - 40 ), - 0 * + 69 )
----
175

query I rowsort
SELECT + 84 - 79 * - 42 col0
----
3402

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

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL 90 * + ( COUNT ( * ) ) AS col0
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT + 45 * COUNT( * ) - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-1811
SELECT + 45 * COUNT ( * ) - - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT + MIN( DISTINCT 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1812
SELECT + MIN ( DISTINCT 83 ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT + 36 DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1813
SELECT + 36 / + 52 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT ALL 63 DIV + 23 + 52
----
54

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL 63 / + 23 + 52
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1815
SELECT + 48 + - 49 DIV + 33 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1815
SELECT + 48 + - 49 / + 33 AS col1
----
47

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

query I rowsort
SELECT + 82 * 67 + + 88 AS col1
----
5582

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT 69 DIV + 93 + + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1818
SELECT 69 / + 93 + + 62 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1819
SELECT ALL 0 * + CAST( NULL AS SIGNED ) - + 13 * 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL 0 * + CAST ( NULL AS INTEGER ) - + 13 * 66 col1
----
NULL

query I rowsort
SELECT + 18 * - 28 AS col0
----
-504

query I rowsort
SELECT + ( 28 ) + 51 * 82
----
4210

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT + MAX( 6 ) + 13 * 6 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1822
SELECT + MAX ( 6 ) + 13 * 6 AS col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL 76 DIV + 24
----
3

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 76 / + 24
----
3

query I rowsort
SELECT + 82 * + 94
----
7708

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT + CASE + COUNT( * ) WHEN + ( - 75 ) THEN + 55 WHEN 21 / COUNT( * ) THEN 82 + - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT + CASE + COUNT ( * ) WHEN + ( - 75 ) THEN + 55 WHEN 21 / COUNT ( * ) THEN 82 + - 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - COUNT( * ) * + MIN( 46 ) + + 16
----
-30

skipif mysql # not compatible
query I rowsort label-1826
SELECT - COUNT ( * ) * + MIN ( 46 ) + + 16
----
-30

query I rowsort
SELECT + CASE 0 WHEN 33 * 72 + 5 THEN - 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT COALESCE ( 27, - 12 * 0, - COUNT( - 44 ) + - 37 )
----
27

skipif mysql # not compatible
query I rowsort label-1828
SELECT COALESCE ( 27, - 12 * 0, - COUNT ( - 44 ) + - 37 )
----
27

query I rowsort
SELECT 6 * - 77 + 69
----
-393

query I rowsort
SELECT ALL 29 * + 52 AS col0
----
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT CASE COUNT( * ) WHEN - 3 + - 95 THEN + ( - 10 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT CASE COUNT ( * ) WHEN - 3 + - 95 THEN + ( - 10 ) END AS col2
----
NULL

query I rowsort
SELECT ALL - 98 * 74 AS col2
----
-7252

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT + 28 + MAX( 13 )
----
41

skipif mysql # not compatible
query I rowsort label-1833
SELECT + 28 + MAX ( 13 )
----
41

query I rowsort
SELECT DISTINCT 34 * 33
----
1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT + CAST( 47 AS SIGNED ) col2
----
47

skipif mysql # not compatible
query I rowsort label-1835
SELECT + CAST ( 47 AS INTEGER ) col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT DISTINCT MIN( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT MIN ( - 26 )
----
-26

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

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

query I rowsort
SELECT - 74 + - 41 * + 1 AS col1
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1839
SELECT + 45 DIV MAX( DISTINCT 85 )
----
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT + 45 / MAX ( DISTINCT 85 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1840
SELECT - 50 + COUNT( * ) DIV COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-1840
SELECT - 50 + COUNT ( * ) / COUNT ( * )
----
-49

query I rowsort
SELECT + 62 + + 43
----
105

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

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

query I rowsort
SELECT - 38 + 73 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - 97 - COUNT( * ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1844
SELECT - 97 - COUNT ( * ) AS col0
----
-98

query I rowsort
SELECT ALL - 35 + 76 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL - 63 + MIN( + 86 )
----
23

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL - 63 + MIN ( + 86 )
----
23

query I rowsort
SELECT DISTINCT - 18 + 26
----
8

query I rowsort
SELECT ALL + 63 + 63 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1849
SELECT DISTINCT ( + ( - CASE 26 WHEN 27 + - 14 * COUNT( * ) THEN NULL WHEN 76 + ( + ( COUNT( - 74 ) ) + 74 * 55 ) THEN ( CAST( NULL AS SIGNED ) ) + CASE - 95 WHEN 13 + 33 THEN 77 / + 35 + - COUNT( * ) / COUNT( * ) WHEN 25 THEN + 61 END WHEN 61 + ( + 58 ) THEN NULL ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT ( + ( - CASE 26 WHEN 27 + - 14 * COUNT ( * ) THEN NULL WHEN 76 + ( + ( COUNT ( - 74 ) ) + 74 * 55 ) THEN ( CAST ( NULL AS INTEGER ) ) + CASE - 95 WHEN 13 + 33 THEN 77 / + 35 + - COUNT ( * ) / COUNT ( * ) WHEN 25 THEN + 61 END WHEN 61 + ( + 58 ) THEN NULL ELSE NULL END ) )
----
NULL

query I rowsort
SELECT - - 32 + - 6
----
26

query I rowsort
SELECT DISTINCT + + 34 + + 97 * + 53
----
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT + - COUNT( 20 ) + 4
----
3

skipif mysql # not compatible
query I rowsort label-1852
SELECT + - COUNT ( 20 ) + 4
----
3

query I rowsort
SELECT ALL + 77 + 66 * + 59
----
3971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT - SUM( DISTINCT - 78 ) DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-1854
SELECT - SUM ( DISTINCT - 78 ) / - 60
----
-1

query I rowsort
SELECT + 46 * + 33 AS col0
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT DISTINCT + + 42 - COALESCE ( + COUNT( * ), - MAX( ALL 9 ) * ( + 80 + MIN( - 4 ) ), + 92 + 5 )
----
41

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + + 42 - COALESCE ( + COUNT ( * ), - MAX ( ALL 9 ) * ( + 80 + MIN ( - 4 ) ), + 92 + 5 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL + - 92 - MAX( DISTINCT - 6 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + - 92 - MAX ( DISTINCT - 6 ) AS col1
----
-86

query I rowsort
SELECT ALL 56 - 22 * 8
----
-120

query I rowsort
SELECT + 26 * 43 AS col2
----
1118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT + - NULLIF ( + 87, NULLIF ( 85, COALESCE ( + MIN( + CAST( NULL AS SIGNED ) ), 86 ) * - 5 + + 67 ) + + 29 * + MIN( ALL 17 ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1860
SELECT + - NULLIF ( + 87, NULLIF ( 85, COALESCE ( + MIN ( + CAST ( NULL AS INTEGER ) ), 86 ) * - 5 + + 67 ) + + 29 * + MIN ( ALL 17 ) ) AS col1
----
-87

query I rowsort
SELECT ALL - 92 * 51
----
-4692

query I rowsort
SELECT + NULLIF ( 71, 68 )
----
71

query I rowsort
SELECT + 92 * + 21
----
1932

query I rowsort
SELECT 79 + ( 97 ) * - NULLIF ( + 4, + 31 + 56 )
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT - 42 * + MAX( ALL 2 + 8 )
----
-420

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - 42 * + MAX ( ALL 2 + 8 )
----
-420

query I rowsort
SELECT 40 * - 47 AS col2
----
-1880

query I rowsort
SELECT 94 - 29
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT 94 + + - COUNT( * ) + - ( CASE + COUNT( * ) WHEN COUNT( ALL 91 ) * - 33 THEN - 48 + + SUM( 46 + - 58 ) WHEN COUNT( * ) THEN NULL END ) * 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT 94 + + - COUNT ( * ) + - ( CASE + COUNT ( * ) WHEN COUNT ( ALL 91 ) * - 33 THEN - 48 + + SUM ( 46 + - 58 ) WHEN COUNT ( * ) THEN NULL END ) * 28 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 80 + + - ( 56 ) AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT ( + 67 ) DIV 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1871
SELECT ( + 67 ) / 34 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT ALL 15 + - 28 + - 21 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL 15 + - 28 + - 21 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + - 83 ) * 47
----
-3901

query I rowsort
SELECT DISTINCT - 49 + ( - 73 ) - 65
----
-187

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT + CAST( - 41 AS SIGNED ) * 57
----
-2337

skipif mysql # not compatible
query I rowsort label-1877
SELECT + CAST ( - 41 AS INTEGER ) * 57
----
-2337

query I rowsort
SELECT 78 + 87 * 32 AS col0
----
2862

query I rowsort
SELECT + 7 * - 14 col2
----
-98

query I rowsort
SELECT ALL 77 - 82 AS col0
----
-5

query I rowsort
SELECT + 65 * - 60 AS col1
----
-3900

query I rowsort
SELECT - 74 + 18 + + 65
----
9

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT 61 / + COUNT ( * ) AS col1
----
61

query I rowsort
SELECT DISTINCT NULLIF ( + 0, 80 - - 35 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1887
SELECT ALL + + 56 * COUNT( * ) DIV 85 - - 93
----
93

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL + + 56 * COUNT ( * ) / 85 - - 93
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT ( + 2 ) DIV - MIN( 26 )
----
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT ( + 2 ) / - MIN ( 26 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT DISTINCT + + COALESCE ( - COUNT( ALL - 8 ), NULLIF ( + ( - 31 ), 0 ) ) * + 45
----
-45

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT + + COALESCE ( - COUNT ( ALL - 8 ), NULLIF ( + ( - 31 ), 0 ) ) * + 45
----
-45

query I rowsort
SELECT + 23 - + 66 * + ( - CASE + 52 WHEN 88 / 91 THEN NULL ELSE + 10 END )
----
683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT - 73 / CAST( NULL AS SIGNED ) + 75 + - 13 * 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT - 73 / CAST ( NULL AS INTEGER ) + 75 + - 13 * 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT ALL - - NULLIF ( + MAX( ( 64 ) ), + COUNT( * ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - - NULLIF ( + MAX ( ( 64 ) ), + COUNT ( * ) ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT 4 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-1893
SELECT 4 / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT 62 + - + 40 + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-1894
SELECT 62 + - + 40 + COUNT ( * )
----
23

query I rowsort
SELECT - 90 + - 46
----
-136

query I rowsort
SELECT 93 * - 92 * + 24 + - 37
----
-205381

query I rowsort
SELECT - 64 * + 65
----
-4160

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

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

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

skipif mysql # not compatible
query I rowsort label-1899
SELECT MAX ( + 68 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1900
SELECT ALL - COUNT( * ) AS col1, - 10 AS col0
----
-1
-10

skipif mysql # not compatible
query II rowsort label-1900
SELECT ALL - COUNT ( * ) AS col1, - 10 AS col0
----
-1
-10

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

query II rowsort
SELECT ALL - 84 AS col0, 3
----
-84
3

query I rowsort
SELECT 94 * - 30 AS col0
----
-2820

query I rowsort
SELECT 0 * - + 89 * + 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT COUNT( * ) * + 39 * + 29 AS col0
----
1131

skipif mysql # not compatible
query I rowsort label-1905
SELECT COUNT ( * ) * + 39 * + 29 AS col0
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT + ( + - COUNT( * ) ) + - 18 - + 12 * + 90 AS col2
----
-1099

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT + ( + - COUNT ( * ) ) + - 18 - + 12 * + 90 AS col2
----
-1099

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL - COUNT( * ) + - + 27
----
-28

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL - COUNT ( * ) + - + 27
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT - 3 * + 93 + + COUNT( * ) + 94 * 5 AS col0
----
192

skipif mysql # not compatible
query I rowsort label-1908
SELECT - 3 * + 93 + + COUNT ( * ) + 94 * 5 AS col0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + MIN( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-1909
SELECT + MIN ( 36 )
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT COUNT( * ) + - + 85 * - - 49 AS col1
----
-4164

skipif mysql # not compatible
query I rowsort label-1911
SELECT COUNT ( * ) + - + 85 * - - 49 AS col1
----
-4164

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT + 63 + - COALESCE ( - 94, COUNT( * ) ) + - 17 * 40
----
-523

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + 63 + - COALESCE ( - 94, COUNT ( * ) ) + - 17 * 40
----
-523

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT COUNT( * ) * + - 71 col0
----
-71

skipif mysql # not compatible
query I rowsort label-1913
SELECT COUNT ( * ) * + - 71 col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1914
SELECT + 76, 25 / + 29 * CASE 46 * - 28 WHEN - 27 THEN NULL WHEN + 40 THEN + NULLIF ( 36, - ( - CASE 31 WHEN 29 * 51 THEN COALESCE ( - 82, NULLIF ( 12, 65 ) - + CASE 48 WHEN 54 * + 16 THEN - 23 ELSE CAST( - 2 AS SIGNED ) + 25 END, 60 - 83 ) * + ( 14 ) END ) / 38 ) END + NULLIF ( ( + 16 ), + 32 + + 42 ) AS col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-1914
SELECT + 76, 25 / + 29 * CASE 46 * - 28 WHEN - 27 THEN NULL WHEN + 40 THEN + NULLIF ( 36, - ( - CASE 31 WHEN 29 * 51 THEN COALESCE ( - 82, NULLIF ( 12, 65 ) - + CASE 48 WHEN 54 * + 16 THEN - 23 ELSE CAST ( - 2 AS INTEGER ) + 25 END, 60 - 83 ) * + ( 14 ) END ) / 38 ) END + NULLIF ( ( + 16 ), + 32 + + 42 ) AS col2
----
76
NULL

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

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

query II rowsort
SELECT 69, ( 51 ) AS col0
----
69
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - MAX( - ( + - 24 ) ) * ( - 16 * 68 - - 23 ) - 45 * + 80 AS col2
----
21960

skipif mysql # not compatible
query I rowsort label-1918
SELECT - MAX ( - ( + - 24 ) ) * ( - 16 * 68 - - 23 ) - 45 * + 80 AS col2
----
21960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1919
SELECT ( + - 24 ) * + - 99 DIV - COUNT( * )
----
-2376

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT CAST( - 98 AS SIGNED ) + - 27 col2
----
-125

skipif mysql # not compatible
query I rowsort label-1920
SELECT CAST ( - 98 AS INTEGER ) + - 27 col2
----
-125

query I rowsort
SELECT ALL 67 - - 8 AS col2
----
75

query I rowsort
SELECT - 5 + 32 + - ( 89 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT COUNT( * ) + + 83 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1923
SELECT COUNT ( * ) + + 83 AS col0
----
84

query I rowsort
SELECT 39 * 96 col2
----
3744

query I rowsort
SELECT ALL + 60 * 28
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT ALL - 49 - - 55 + + 29 * - AVG ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - 49 - - 55 + + 29 * - AVG ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 69 - + + 50 + + 26 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT + COUNT( 19 ) + 6
----
7

skipif mysql # not compatible
query I rowsort label-1928
SELECT + COUNT ( 19 ) + 6
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT + + 30 * - COALESCE ( + 91, - CAST( NULL AS SIGNED ), 58 * - 74 + + 52, + 99 * 91 )
----
-2730

skipif mysql # not compatible
query I rowsort label-1929
SELECT + + 30 * - COALESCE ( + 91, - CAST ( NULL AS INTEGER ), 58 * - 74 + + 52, + 99 * 91 )
----
-2730

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT SUM( DISTINCT 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT SUM ( DISTINCT 34 ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1932
SELECT ALL CAST( 1 AS SIGNED ) * - 14 DIV COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL CAST ( 1 AS INTEGER ) * - 14 / COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT - COUNT( * ) + + - 49 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-1933
SELECT - COUNT ( * ) + + - 49 AS col1
----
-50

query II rowsort
SELECT + 58 AS col0, ( + + 59 ) col1
----
58
59

query I rowsort
SELECT + ( - 58 ) * + 57
----
-3306

query I rowsort
SELECT - 35 + + 11 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-1937
SELECT - 9, + COUNT( * ) * - - SUM( DISTINCT 48 ) + 19 * + 41 AS col0
----
-9
827

skipif mysql # not compatible
query II rowsort label-1937
SELECT - 9, + COUNT ( * ) * - - SUM ( DISTINCT 48 ) + 19 * + 41 AS col0
----
-9
827

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - - 4 * - MIN( ALL - 40 ) + 53
----
213

skipif mysql # not compatible
query I rowsort label-1938
SELECT - - 4 * - MIN ( ALL - 40 ) + 53
----
213

query I rowsort
SELECT DISTINCT + 15 * + 36 + + 70 * + 21 + + 59 * 18 col1
----
3072

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

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL 87 * - - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT DISTINCT + COUNT( * ) * + 93 * 96
----
8928

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT + COUNT ( * ) * + 93 * 96
----
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL - NULLIF ( + + 88, 16 * - 86 + - COUNT( * ) * COUNT( * ) ) * 38 + 73 AS col0
----
-3271

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL - NULLIF ( + + 88, 16 * - 86 + - COUNT ( * ) * COUNT ( * ) ) * 38 + 73 AS col0
----
-3271

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT - SUM( - 67 ) * + + 11 + - + ( - SUM( DISTINCT + NULLIF ( + 9, 92 ) ) ) + 55 * - 47 AS col0
----
-1839

skipif mysql # not compatible
query I rowsort label-1943
SELECT - SUM ( - 67 ) * + + 11 + - + ( - SUM ( DISTINCT + NULLIF ( + 9, 92 ) ) ) + 55 * - 47 AS col0
----
-1839

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL + COUNT( * ) * 67 col0
----
67

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + COUNT ( * ) * 67 col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT COALESCE ( + 12, - 50 + - 15 - + 8 DIV + 45 )
----
12

skipif mysql # not compatible
query I rowsort label-1945
SELECT COALESCE ( + 12, - 50 + - 15 - + 8 / + 45 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1946
SELECT COALESCE ( + COUNT( * ), + 79, - 57 + 22 DIV - 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1946
SELECT COALESCE ( + COUNT ( * ), + 79, - 57 + 22 / - 15 ) AS col0
----
1

query I rowsort
SELECT COALESCE ( 45, 17, 32 )
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-1948
SELECT - 10 DIV + 7, + ( - 9 ) AS col2
----
-1
-9

skipif mysql # not compatible
query II rowsort label-1948
SELECT - 10 / + 7, + ( - 9 ) AS col2
----
-1
-9

query I rowsort
SELECT 76 * + ( - + 83 ) * - + 16 - 28
----
100900

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT NULLIF ( + 69, - - NULLIF ( + 40, CASE + 72 WHEN + 43 * - COUNT( * ) THEN - 12 + 79 * - CASE ( + 73 ) * 95 WHEN 40 - + 45 THEN COUNT( DISTINCT + 78 ) WHEN 60 THEN NULL END ELSE - 9 END ) * AVG ( + 97 + 88 ) + 98 / + 60 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-1950
SELECT NULLIF ( + 69, - - NULLIF ( + 40, CASE + 72 WHEN + 43 * - COUNT ( * ) THEN - 12 + 79 * - CASE ( + 73 ) * 95 WHEN 40 - + 45 THEN COUNT ( DISTINCT + 78 ) WHEN 60 THEN NULL END ELSE - 9 END ) * AVG ( + 97 + 88 ) + 98 / + 60 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL + 5 * 5 * + 56 + - MAX( DISTINCT 55 ) * 0
----
1400

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL + 5 * 5 * + 56 + - MAX ( DISTINCT 55 ) * 0
----
1400

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

query I rowsort
SELECT - 74 + 57 * - 83 AS col1
----
-4805

query I rowsort
SELECT ALL + COALESCE ( 69, 85 ) * 61 - 7 AS col0
----
4202

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

skipif mysql # not compatible
query I rowsort label-1955
SELECT - 38 + + - 2 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT COUNT( * ) * + 89 * - 18 - + + COUNT( * ) - + 30 * 0
----
-1603

skipif mysql # not compatible
query I rowsort label-1956
SELECT COUNT ( * ) * + 89 * - 18 - + + COUNT ( * ) - + 30 * 0
----
-1603

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT + ( + + 3 ) - - + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-1957
SELECT + ( + + 3 ) - - + COUNT ( * )
----
4

query I rowsort
SELECT ALL + 14 * - 24 * - - COALESCE ( 12, + 87, - 20 ) AS col2
----
-4032

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

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

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

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

query I rowsort
SELECT DISTINCT 77 * + 20 * + 62 col2
----
95480

query II rowsort
SELECT - + 26 + - 22 col2, 1 + 82
----
-48
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - - COALESCE ( - 46, + CASE - - 32 WHEN SUM( ALL - 33 ) * COUNT( * ) THEN 60 + - 2 * - COUNT( * ) END, - CASE + 60 WHEN 7 + - 22 THEN 61 END ) * - 13
----
598

skipif mysql # not compatible
query I rowsort label-1963
SELECT - - COALESCE ( - 46, + CASE - - 32 WHEN SUM ( ALL - 33 ) * COUNT ( * ) THEN 60 + - 2 * - COUNT ( * ) END, - CASE + 60 WHEN 7 + - 22 THEN 61 END ) * - 13
----
598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT DISTINCT CAST( + - CASE - + COUNT( * ) WHEN - 43 THEN NULL ELSE - 59 + 75 END AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT CAST ( + - CASE - + COUNT ( * ) WHEN - 43 THEN NULL ELSE - 59 + 75 END AS INTEGER ) AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT + 83 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-1965
SELECT + 83 / - + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT - 22 + - 49 - - 86 * 39 + + ( SUM( ALL - 6 ) - - NULLIF ( + 43, - ( 22 ) + 53 ) ) AS col0
----
3320

skipif mysql # not compatible
query I rowsort label-1966
SELECT - 22 + - 49 - - 86 * 39 + + ( SUM ( ALL - 6 ) - - NULLIF ( + 43, - ( 22 ) + 53 ) ) AS col0
----
3320

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT + NULLIF ( - COUNT( * ), + 70 + + + 8 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1967
SELECT + NULLIF ( - COUNT ( * ), + 70 + + + 8 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT - 49 DIV - - 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1968
SELECT - 49 / - - 16 AS col0
----
-3

query I rowsort
SELECT + - 93 * + NULLIF ( - 81, - 88 )
----
7533

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL + MIN( - 87 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + MIN ( - 87 ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT DISTINCT 50 + COUNT( * ) * - 76
----
-26

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT 50 + COUNT ( * ) * - 76
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL ( - 0 ) + 24 * - COUNT( * ) * 77 AS col1
----
-1848

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL ( - 0 ) + 24 * - COUNT ( * ) * 77 AS col1
----
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT + 99 + + 70 + - - 57 * + CASE - 90 WHEN ( + 88 ) THEN NULL WHEN + 18 + 31 THEN - 17 ELSE 85 + - 73 DIV - 71 END - + 79 AS col1
----
4992

skipif mysql # not compatible
query I rowsort label-1974
SELECT + 99 + + 70 + - - 57 * + CASE - 90 WHEN ( + 88 ) THEN NULL WHEN + 18 + 31 THEN - 17 ELSE 85 + - 73 / - 71 END - + 79 AS col1
----
4992

query I rowsort
SELECT DISTINCT - ( + - 0 ) + + 20
----
20

query I rowsort
SELECT + 58 - - + 1 AS col0
----
59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT - 51 DIV - + 75 + + + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1978
SELECT - 51 / - + 75 + + + 15 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - 10 + - CASE - 4 WHEN + + 25 - + 41 * - 47 THEN + COALESCE ( COUNT( + 84 ), + 47, COUNT( * ) ) ELSE NULL END + ( 34 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 10 + - CASE - 4 WHEN + + 25 - + 41 * - 47 THEN + COALESCE ( COUNT ( + 84 ), + 47, COUNT ( * ) ) ELSE NULL END + ( 34 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL - 84 / + + 11 + + CASE 54 WHEN - 83 THEN 57 * NULLIF ( 91, + SUM( DISTINCT - 93 ) * + 81 ) + - 76 * + 51 WHEN 13 - + 47 * - 27 THEN NULL END + 32 / 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - 84 / + + 11 + + CASE 54 WHEN - 83 THEN 57 * NULLIF ( 91, + SUM ( DISTINCT - 93 ) * + 81 ) + - 76 * + 51 WHEN 13 - + 47 * - 27 THEN NULL END + 32 / 11 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 68 col0, + 26 + - + 22 + - 36 - - 95 * 3
----
68
253

onlyif mysql # DIV for integer division: 
query II rowsort label-1982
SELECT - 95 DIV - 5 + 24 AS col1, 52 * 1 col0
----
43
52

skipif mysql # not compatible
query II rowsort label-1982
SELECT - 95 / - 5 + 24 AS col1, 52 * 1 col0
----
43
52

query I rowsort
SELECT DISTINCT - 90 * + + 82 * - + 44 AS col2
----
324720

query I rowsort
SELECT - 51 + - 58 AS col2
----
-109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1985
SELECT ALL 56 / - CASE CASE 38 WHEN + 56 THEN + 31 ELSE - 70 * + COUNT( * ) + ( 21 ) END WHEN + CAST( - 52 AS DECIMAL ) THEN 50 ELSE NULL END * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL 56 / - CASE CASE 38 WHEN + 56 THEN + 31 ELSE - 70 * + COUNT ( * ) + ( 21 ) END WHEN + CAST ( - 52 AS REAL ) THEN 50 ELSE NULL END * 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1986
SELECT DISTINCT - COALESCE ( + COUNT( * ), + - 83 ) DIV + 62 - + - 30
----
30

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + - 83 ) / + 62 - + - 30
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT - COALESCE ( 51, 88 * + + 5 ) + + 5 * MIN( - 93 )
----
-516

skipif mysql # not compatible
query I rowsort label-1988
SELECT - COALESCE ( 51, 88 * + + 5 ) + + 5 * MIN ( - 93 )
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL + MIN( 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + MIN ( 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT 18 * - - MAX( - ( 93 ) ) + + + 39 + + MAX( DISTINCT 96 )
----
-1539

skipif mysql # not compatible
query I rowsort label-1990
SELECT 18 * - - MAX ( - ( 93 ) ) + + + 39 + + MAX ( DISTINCT 96 )
----
-1539

query I rowsort
SELECT + 32 * 96 AS col1
----
3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT ALL CAST( NULL AS SIGNED ) * - - 71 * - + AVG ( ALL - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL CAST ( NULL AS INTEGER ) * - - 71 * - + AVG ( ALL - 51 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT 60 + CASE + 40 WHEN + 25 THEN + + NULLIF ( + 8, 84 ) * - SUM( DISTINCT ( - 8 ) - + 79 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT 60 + CASE + 40 WHEN + 25 THEN + + NULLIF ( + 8, 84 ) * - SUM ( DISTINCT ( - 8 ) - + 79 ) ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT + 91 * - + CASE - MIN( ALL + + 1 ) WHEN + 97 * 0 + - NULLIF ( + 5, 52 ) * 37 THEN NULL WHEN 4 THEN 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT + 91 * - + CASE - MIN ( ALL + + 1 ) WHEN + 97 * 0 + - NULLIF ( + 5, 52 ) * 37 THEN NULL WHEN 4 THEN 53 ELSE NULL END
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1999
SELECT + + MAX( DISTINCT 47 ) * 99 * + 4 + 2 + COALESCE ( 2 + 80 DIV 80, + 15 + 5 ) col2
----
18617

skipif mysql # not compatible
query I rowsort label-1999
SELECT + + MAX ( DISTINCT 47 ) * 99 * + 4 + 2 + COALESCE ( 2 + 80 / 80, + 15 + 5 ) col2
----
18617

query I rowsort
SELECT 79 * 26 AS col0
----
2054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2001
SELECT COUNT( * ) + + NULLIF ( 5, - 24 ) DIV - 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2001
SELECT COUNT ( * ) + + NULLIF ( 5, - 24 ) / - 55 AS col1
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT CAST( - 19 AS SIGNED ) + ( 55 ) * - 33 AS col2
----
-1834

skipif mysql # not compatible
query I rowsort label-2003
SELECT CAST ( - 19 AS INTEGER ) + ( 55 ) * - 33 AS col2
----
-1834

query I rowsort
SELECT ALL - 48 * + 16 AS col2
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT 2 * - - SUM( + 56 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-2005
SELECT 2 * - - SUM ( + 56 ) AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2006
SELECT DISTINCT - 15 + - + 92 + CAST( + CASE - COUNT( * ) WHEN 26 THEN + COUNT( * ) END AS DECIMAL ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT - 15 + - + 92 + CAST ( + CASE - COUNT ( * ) WHEN 26 THEN + COUNT ( * ) END AS REAL ) * 88
----
NULL

query II rowsort
SELECT ALL - 50, - 0 AS col0
----
-50
0

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

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

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

query I rowsort
SELECT ALL + - ( - - 95 ) + - 70 + + ( - ( + 8 ) )
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN - + 56 * + 93 * NULLIF ( + COALESCE ( COUNT( * ), ( 16 ) * CAST( NULL AS SIGNED ) + 25, 29 ), - 33 / + 73 + ( SUM( - 7 ) ) ) * + 42 THEN NULL WHEN + ( + 8 ) * COUNT( * ) THEN 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN - + 56 * + 93 * NULLIF ( + COALESCE ( COUNT ( * ), ( 16 ) * CAST ( NULL AS INTEGER ) + 25, 29 ), - 33 / + 73 + ( SUM ( - 7 ) ) ) * + 42 THEN NULL WHEN + ( + 8 ) * COUNT ( * ) THEN 58 END
----
NULL

query I rowsort
SELECT 17 + - + 95 + - 13 AS col0
----
-91

query I rowsort
SELECT 10 * - 66 AS col1
----
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2014
SELECT ALL CAST( NULL AS SIGNED ) + CASE WHEN NOT 27 NOT IN ( + 90 ) THEN 30 + - 12 WHEN NULL IS NOT NULL THEN 95 END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL CAST ( NULL AS INTEGER ) + CASE WHEN NOT 27 NOT IN ( + 90 ) THEN 30 + - 12 WHEN NULL IS NOT NULL THEN 95 END + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 85, CASE 0 WHEN - 3 THEN NULL ELSE - 65 + 44 END ) / - CASE - 62 WHEN + 36 THEN - 85 END AS col2
----
NULL

query I rowsort
SELECT ALL 10 * - + 96 AS col0
----
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT DISTINCT + 4 DIV + - MIN( + 99 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT + 4 / + - MIN ( + 99 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2018
SELECT ALL - ( + 81 ) - + 71 + - 50, + 49 * - 63 + + CAST( NULL AS SIGNED ) AS col0
----
-202
NULL

skipif mysql # not compatible
query II rowsort label-2018
SELECT ALL - ( + 81 ) - + 71 + - 50, + 49 * - 63 + + CAST ( NULL AS INTEGER ) AS col0
----
-202
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2019
SELECT ALL - 84 AS col1, - CASE + + NULLIF ( - + 61, - - NULLIF ( 89, - NULLIF ( 18, + 85 / - 88 ) * MIN( ALL + 1 * 85 ) ) ) WHEN - COUNT( * ) THEN 55 * 49 ELSE NULL END AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL - 84 AS col1, - CASE + + NULLIF ( - + 61, - - NULLIF ( 89, - NULLIF ( 18, + 85 / - 88 ) * MIN ( ALL + 1 * 85 ) ) ) WHEN - COUNT ( * ) THEN 55 * 49 ELSE NULL END AS col1
----
-84
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT DISTINCT 15 - - 75 + - 56 DIV - + 72 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT 15 - - 75 + - 56 / - + 72 AS col2
----
90

query II rowsort
SELECT ALL - 90 col2, - 80 AS col0
----
-90
-80

query I rowsort
SELECT 29 + - 55 * + - 79
----
4374

query I rowsort
SELECT 64 * 19
----
1216

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

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

query II rowsort
SELECT 35 * + 42 * ( 65 ) AS col0, - 73 AS col2
----
95550
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2026
SELECT ALL - 18, CAST( NULL AS SIGNED ) AS col0
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-2026
SELECT ALL - 18, CAST ( NULL AS INTEGER ) AS col0
----
-18
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2027
SELECT 50 DIV 59 - + - 67 + - 47 * + 53 AS col0
----
-2424

skipif mysql # not compatible
query I rowsort label-2027
SELECT 50 / 59 - + - 67 + - 47 * + 53 AS col0
----
-2424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2028
SELECT 60 * - NULLIF ( + COUNT( * ), 31 * - ( + CAST( NULL AS SIGNED ) ) + ( COUNT( ALL 11 ) + COUNT( * ) ) + CASE COALESCE ( + 72, - 86, - 74 + - CAST( NULL AS DECIMAL ) ) WHEN + 79 THEN + 80 * + 34 + ( ( - 69 ) ) WHEN 47 * 53 THEN CAST( NULL AS SIGNED ) ELSE - 12 * 63 END ) * + 21 AS col1
----
-1260

skipif mysql # not compatible
query I rowsort label-2028
SELECT 60 * - NULLIF ( + COUNT ( * ), 31 * - ( + CAST ( NULL AS INTEGER ) ) + ( COUNT ( ALL 11 ) + COUNT ( * ) ) + CASE COALESCE ( + 72, - 86, - 74 + - CAST ( NULL AS REAL ) ) WHEN + 79 THEN + 80 * + 34 + ( ( - 69 ) ) WHEN 47 * 53 THEN CAST ( NULL AS INTEGER ) ELSE - 12 * 63 END ) * + 21 AS col1
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-2029
SELECT ALL - COUNT( * ) AS col0, - 44 * - + 18 - - 39 AS col1
----
-1
831

skipif mysql # not compatible
query II rowsort label-2029
SELECT ALL - COUNT ( * ) AS col0, - 44 * - + 18 - - 39 AS col1
----
-1
831

query II rowsort
SELECT ALL - 8 AS col1, 67
----
-8
67

query II rowsort
SELECT + - 45 AS col0, - 53 - - + 10 AS col0
----
-45
-43

query I rowsort
SELECT + 39 * + - 56 * + + 24 * - 54 + - 84 - 32 * 75
----
2827980

query I rowsort
SELECT ALL + 37 * 87 AS col1
----
3219

query I rowsort
SELECT - 74 * + 34 * + - 95 AS col0
----
239020

query I rowsort
SELECT ALL + 21 + - 9 AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2036
SELECT + 43 AS col1, 33 + - 52 + + + COALESCE ( + 98, + 84 * COUNT( * ) ) DIV 19
----
43
-14

skipif mysql # not compatible
query II rowsort label-2036
SELECT + 43 AS col1, 33 + - 52 + + + COALESCE ( + 98, + 84 * COUNT ( * ) ) / 19
----
43
-14

query I rowsort
SELECT 37 * + 27 * - 6
----
-5994

query II rowsort
SELECT - + 39, NULLIF ( + ( + + 87 ), + 30 ) AS col0
----
-39
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT ALL 1 * - 88, ( + - COUNT( * ) ) AS col2
----
-88
-1

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL 1 * - 88, ( + - COUNT ( * ) ) AS col2
----
-88
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT - 40 DIV - 69 + 59 + - - 17 * - - 40
----
739

skipif mysql # not compatible
query I rowsort label-2040
SELECT - 40 / - 69 + 59 + - - 17 * - - 40
----
739

query I rowsort
SELECT 86 + + 59 AS col0
----
145

query II rowsort
SELECT ALL + 73 AS col1, - 71
----
73
-71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT ALL + 85 + - 69 - - 11 DIV + - 75 + 97
----
113

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + 85 + - 69 - - 11 / + - 75 + 97
----
113

query I rowsort
SELECT ALL + + 30 + + 65 + 68 * - + 59
----
-3917

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT SUM( DISTINCT NULLIF ( 6, + 39 * - + 27 + 76 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2046
SELECT SUM ( DISTINCT NULLIF ( 6, + 39 * - + 27 + 76 ) ) AS col1
----
6

query I rowsort
SELECT - CASE 10 WHEN + 98 THEN + 52 * - + 61 * - - ( 63 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL MIN( ALL - - 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL MIN ( ALL - - 36 ) AS col2
----
36

query I rowsort
SELECT 96 + + 65 AS col2
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT - 90 * 74, - MAX( ALL + 59 ) AS col2
----
-6660
-59

skipif mysql # not compatible
query II rowsort label-2050
SELECT - 90 * 74, - MAX ( ALL + 59 ) AS col2
----
-6660
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT + 34 + 46 AS col1, - 43 + + CASE - 88 WHEN + 39 * 2 THEN COUNT( * ) END + COUNT( * ) / 72
----
80
NULL

skipif mysql # not compatible
query II rowsort label-2051
SELECT + 34 + 46 AS col1, - 43 + + CASE - 88 WHEN + 39 * 2 THEN COUNT ( * ) END + COUNT ( * ) / 72
----
80
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT 73 + - 89 + + ( + + COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-2053
SELECT 73 + - 89 + + ( + + COUNT ( * ) )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2054
SELECT DISTINCT - COUNT( * ) * + + 7, - 72 DIV 55 AS col1
----
-7
-1

skipif mysql # not compatible
query II rowsort label-2054
SELECT DISTINCT - COUNT ( * ) * + + 7, - 72 / 55 AS col1
----
-7
-1

query I rowsort
SELECT 29 + + 74 + + + 85
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2056
SELECT ALL NULLIF ( 87, + 17 + - ( - - CASE 61 WHEN - + 51 THEN NULL WHEN COUNT( * ) THEN NULL WHEN NULLIF ( - COUNT( DISTINCT 27 ), 9 ) / 12 + - 23 THEN NULL ELSE COALESCE ( 40, 49 * - 52 ) / CAST( NULL AS SIGNED ) END ) * - 59 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL NULLIF ( 87, + 17 + - ( - - CASE 61 WHEN - + 51 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN NULLIF ( - COUNT ( DISTINCT 27 ), 9 ) / 12 + - 23 THEN NULL ELSE COALESCE ( 40, 49 * - 52 ) / CAST ( NULL AS INTEGER ) END ) * - 59 ) AS col0
----
87

query I rowsort
SELECT 39 + + 48 * + - 50 + - 13
----
-2374

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT ALL - ( 87 ) * NULLIF ( - 22, - - 50 ) AS col0, 54 + + + 15 + - 37 * COUNT( * ) AS col0
----
1914
32

skipif mysql # not compatible
query II rowsort label-2058
SELECT ALL - ( 87 ) * NULLIF ( - 22, - - 50 ) AS col0, 54 + + + 15 + - 37 * COUNT ( * ) AS col0
----
1914
32

query I rowsort
SELECT 45 * - + 13 * - 23 AS col1
----
13455

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT + 99 - 33 + - + 31 + - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT + 99 - 33 + - + 31 + - COUNT ( * )
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT 29 + + 19 + - - MAX( + + 93 ) AS col0
----
141

skipif mysql # not compatible
query I rowsort label-2062
SELECT 29 + + 19 + - - MAX ( + + 93 ) AS col0
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2063
SELECT MIN( + + 93 ) + - 95 DIV 87
----
92

skipif mysql # not compatible
query I rowsort label-2063
SELECT MIN ( + + 93 ) + - 95 / 87
----
92

query I rowsort
SELECT DISTINCT NULLIF ( + + 59, + - 40 ) AS col1
----
59

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

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

query I rowsort
SELECT 44 * + 41
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + ( 29 ) + - 41 + - - 64 * + ( - - 83 ) + COUNT( * ) + 53 * - 9
----
4824

skipif mysql # not compatible
query I rowsort label-2067
SELECT + ( 29 ) + - 41 + - - 64 * + ( - - 83 ) + COUNT ( * ) + 53 * - 9
----
4824

query I rowsort
SELECT + 36 * - 24 + ( + 87 )
----
-777

query I rowsort
SELECT ALL + CASE + 71 WHEN 87 * + + 99 THEN + ( 38 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 21 * + 72 AS col2
----
1512

query II rowsort
SELECT ALL 97 * + - 48 AS col1, + 54 + 73 + + 72
----
-4656
199

query I rowsort
SELECT + 3 * + 44 AS col1
----
132

query I rowsort
SELECT DISTINCT 92 * - 78 + + - 20 * - 12 * - 11 * + 43 col0
----
-120696

onlyif mysql # aggregate syntax: 
query II rowsort label-2074
SELECT ALL + 55 * - - 29 col0, COUNT( * )
----
1595
1

skipif mysql # not compatible
query II rowsort label-2074
SELECT ALL + 55 * - - 29 col0, COUNT ( * )
----
1595
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT DISTINCT + 48 * + 5 + 74 * + CAST( - 97 AS SIGNED ) col2
----
-6938

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT + 48 * + 5 + 74 * + CAST ( - 97 AS INTEGER ) col2
----
-6938

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT CASE - CASE - CASE + - 79 WHEN + 41 * - + ( 15 ) THEN 37 WHEN + COUNT( * ) * 84 THEN 15 END WHEN - 51 THEN NULL WHEN + 21 THEN NULL ELSE 92 END WHEN 6 / COUNT( + 78 * + ( + 49 / - 24 ) ) THEN 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT CASE - CASE - CASE + - 79 WHEN + 41 * - + ( 15 ) THEN 37 WHEN + COUNT ( * ) * 84 THEN 15 END WHEN - 51 THEN NULL WHEN + 21 THEN NULL ELSE 92 END WHEN 6 / COUNT ( + 78 * + ( + 49 / - 24 ) ) THEN 81 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 61 * - + 79 AS col1
----
-4819

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2078
SELECT + 70 * - 90 - + 60 + - + CAST( - 16 AS SIGNED ) DIV - 78 - + + 76 + - 12
----
-6448

skipif mysql # not compatible
query I rowsort label-2078
SELECT + 70 * - 90 - + 60 + - + CAST ( - 16 AS INTEGER ) / - 78 - + + 76 + - 12
----
-6448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2079
SELECT + MAX( + 3 ) * + - COALESCE ( - - 83, - 86 ) * + + 42 + MAX( 2 ) DIV + 95 AS col2
----
-10458

skipif mysql # not compatible
query I rowsort label-2079
SELECT + MAX ( + 3 ) * + - COALESCE ( - - 83, - 86 ) * + + 42 + MAX ( 2 ) / + 95 AS col2
----
-10458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2080
SELECT DISTINCT 66 * - CASE - CAST( - + ( - + 16 ) AS SIGNED ) WHEN 27 * + 38 * + 27 THEN - NULLIF ( 44, - 11 + 9 ) * - 1 + COUNT( * ) WHEN 25 THEN NULL END + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT 66 * - CASE - CAST ( - + ( - + 16 ) AS INTEGER ) WHEN 27 * + 38 * + 27 THEN - NULLIF ( 44, - 11 + 9 ) * - 1 + COUNT ( * ) WHEN 25 THEN NULL END + + 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT ALL COUNT( * ) * - + NULLIF ( + - 84, + COUNT( * ) ) * - CAST( - COUNT( - 87 ) AS SIGNED ) + 90 AS col1
----
174

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL COUNT ( * ) * - + NULLIF ( + - 84, + COUNT ( * ) ) * - CAST ( - COUNT ( - 87 ) AS INTEGER ) + 90 AS col1
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT ALL + 63 * + 85 + 46 * 40 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + 63 * + 85 + 46 * 40 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT DISTINCT + CASE - 81 WHEN 31 THEN NULL ELSE - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT + CASE - 81 WHEN 31 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT ALL + + ( 56 ) AS col0
----
56

query I rowsort
SELECT + + 95 + - + 75
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL - COUNT( * ) / 54 / - ( + - CASE + + SUM( - - 89 ) WHEN COUNT( * ) THEN 65 + - 79 END ) + + 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - COUNT ( * ) / 54 / - ( + - CASE + + SUM ( - - 89 ) WHEN COUNT ( * ) THEN 65 + - 79 END ) + + 55 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT + - COUNT( * ) + - - 69 + - 82 * - + COUNT( * ) * 24 + - 48 + - - 75 * 25
----
3863

skipif mysql # not compatible
query I rowsort label-2087
SELECT + - COUNT ( * ) + - - 69 + - 82 * - + COUNT ( * ) * 24 + - 48 + - - 75 * 25
----
3863

query I rowsort
SELECT ALL 86 * + + 75 * + 77 + + + 36 + + 81
----
496767

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT COUNT( * ) * - NULLIF ( - - 56, - AVG ( 89 ) ) + 75 + + - 17 + - COUNT( 88 + - 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2090
SELECT COUNT ( * ) * - NULLIF ( - - 56, - AVG ( 89 ) ) + 75 + + - 17 + - COUNT ( 88 + - 93 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL 35 * - ( COUNT( * ) ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL 35 * - ( COUNT ( * ) ) col2
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2092
SELECT ALL 62 * 89 * + ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL 62 * 89 * + ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 1 + 47 AS col1
----
46

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

query I rowsort
SELECT ALL + 13 - + 93
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2097
SELECT ALL + 58 DIV + - ( - 13 ) AS col1, SUM( ALL - + 36 ) * 30 + - 63 + 54 * + COUNT( * ) + + COUNT( DISTINCT ( 45 ) ) DIV - 76
----
4
-1089

skipif mysql # not compatible
query II rowsort label-2097
SELECT ALL + 58 / + - ( - 13 ) AS col1, SUM ( ALL - + 36 ) * 30 + - 63 + 54 * + COUNT ( * ) + + COUNT ( DISTINCT ( 45 ) ) / - 76
----
4
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT - MAX( DISTINCT 8 ) * 83 * - - COUNT( * ) * + - 49
----
32536

skipif mysql # not compatible
query I rowsort label-2098
SELECT - MAX ( DISTINCT 8 ) * 83 * - - COUNT ( * ) * + - 49
----
32536

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT DISTINCT COUNT( * ) - 27 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT COUNT ( * ) - 27 AS col2
----
-26

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

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

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

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT COUNT ( ALL + 49 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT + 16 * - ( MIN( - 11 ) ) AS col0
----
176

skipif mysql # not compatible
query I rowsort label-2102
SELECT + 16 * - ( MIN ( - 11 ) ) AS col0
----
176

query II rowsort
SELECT - 14 AS col1, - 46
----
-14
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL + 59 + 17 * + CASE + - COUNT( + 40 ) WHEN + CASE + - 7 WHEN + 74 + 59 THEN + COUNT( * ) ELSE NULL END THEN MIN( 66 ) END + - CAST( - 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + 59 + 17 * + CASE + - COUNT ( + 40 ) WHEN + CASE + - 7 WHEN + 74 + 59 THEN + COUNT ( * ) ELSE NULL END THEN MIN ( 66 ) END + - CAST ( - 35 AS INTEGER )
----
NULL

query II rowsort
SELECT 19 col0, + 14 * - 58
----
19
-812

query I rowsort
SELECT - NULLIF ( + 1, - 15 ) * + 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT + 23 AS col2, - 29 + 28 * 91 * + - 14 - - MAX( - 64 ) * + 57 AS col0
----
23
-39349

skipif mysql # not compatible
query II rowsort label-2107
SELECT + 23 AS col2, - 29 + 28 * 91 * + - 14 - - MAX ( - 64 ) * + 57 AS col0
----
23
-39349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2108
SELECT ALL + 15 AS col2, + 94 DIV 35 * - NULLIF ( - - 66, + 80 + - - CASE + 53 WHEN - 97 * - 90 + - 19 THEN CAST( + COUNT( * ) AS SIGNED ) WHEN 22 * COUNT( * ) THEN NULL END + - COUNT( * ) ) * + 58 AS col0
----
15
-7656

skipif mysql # not compatible
query II rowsort label-2108
SELECT ALL + 15 AS col2, + 94 / 35 * - NULLIF ( - - 66, + 80 + - - CASE + 53 WHEN - 97 * - 90 + - 19 THEN CAST ( + COUNT ( * ) AS INTEGER ) WHEN 22 * COUNT ( * ) THEN NULL END + - COUNT ( * ) ) * + 58 AS col0
----
15
-7656

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2109
SELECT - NULLIF ( - - 81, + 3 + - - CAST( NULL AS DECIMAL ) ) + 84
----
3

skipif mysql # not compatible
query I rowsort label-2109
SELECT - NULLIF ( - - 81, + 3 + - - CAST ( NULL AS REAL ) ) + 84
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + COUNT( DISTINCT - 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2110
SELECT + COUNT ( DISTINCT - 62 ) AS col1
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2112
SELECT - CASE - + 57 WHEN 16 THEN NULL WHEN + + COUNT( * ) THEN - 42 * + COUNT( * ) * + + SUM( ALL - + 32 ) + 42 + + COUNT( * ) * - CAST( - 88 * 23 AS SIGNED ) ELSE NULL END / 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT - CASE - + 57 WHEN 16 THEN NULL WHEN + + COUNT ( * ) THEN - 42 * + COUNT ( * ) * + + SUM ( ALL - + 32 ) + 42 + + COUNT ( * ) * - CAST ( - 88 * 23 AS INTEGER ) ELSE NULL END / 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT 60 * - MAX( - 50 ) + - ( 33 ) col1
----
2967

skipif mysql # not compatible
query I rowsort label-2113
SELECT 60 * - MAX ( - 50 ) + - ( 33 ) col1
----
2967

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT DISTINCT - 52 DIV - + 73 * + 28 + + 52 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT - 52 / - + 73 * + 28 + + 52 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT - + 66 + + 32 + - COUNT( DISTINCT - 80 ) * 41 * - - 12 AS col0, COUNT( * )
----
-526
1

skipif mysql # not compatible
query II rowsort label-2115
SELECT - + 66 + + 32 + - COUNT ( DISTINCT - 80 ) * 41 * - - 12 AS col0, COUNT ( * )
----
-526
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT COALESCE ( + - 89, - 65, - 61 * - 35 + 6 DIV - 40 )
----
-89

skipif mysql # not compatible
query I rowsort label-2116
SELECT COALESCE ( + - 89, - 65, - 61 * - 35 + 6 / - 40 )
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-2117
SELECT DISTINCT - 27 * ( + 43 ) AS col1, - 92 * 1 DIV - 25
----
-1161
3

skipif mysql # not compatible
query II rowsort label-2117
SELECT DISTINCT - 27 * ( + 43 ) AS col1, - 92 * 1 / - 25
----
-1161
3

query I rowsort
SELECT + + 33 col1
----
33

query II rowsort
SELECT + - 77 AS col2, + 29 + 71 + - - 73 * 12 + - 74
----
-77
902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2120
SELECT DISTINCT + COUNT( * ) * 27 - + 20 DIV + - COUNT( DISTINCT - + 6 )
----
47

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + COUNT ( * ) * 27 - + 20 / + - COUNT ( DISTINCT - + 6 )
----
47

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2123
SELECT DISTINCT + CAST( + - 62 AS SIGNED ) * - - 58 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT + CAST ( + - 62 AS INTEGER ) * - - 58 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 64 * - 90
----
-5760

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

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

query II rowsort
SELECT DISTINCT + 20 * 85 + + 21, 61 AS col1
----
1721
61

onlyif mysql # DIV for integer division: 
query II rowsort label-2127
SELECT + 63 + 38 col2, - 24 DIV - COALESCE ( + 38, 57 ) AS col1
----
101
0

skipif mysql # not compatible
query II rowsort label-2127
SELECT + 63 + 38 col2, - 24 / - COALESCE ( + 38, 57 ) AS col1
----
101
0

query II rowsort
SELECT + 16 + 8 AS col1, + 49 + 93 col0
----
24
142

query I rowsort
SELECT ALL 28 * + + 68 AS col2
----
1904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2130
SELECT 45 + + CAST( 55 AS SIGNED ) col2
----
100

skipif mysql # not compatible
query I rowsort label-2130
SELECT 45 + + CAST ( 55 AS INTEGER ) col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT DISTINCT 45 * 58 DIV - + 67 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT 45 * 58 / - + 67 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2132
SELECT ALL - 27 + - + COUNT( - - 68 ) * + NULLIF ( CAST( NULL AS SIGNED ), + 26 * 21 ) AS col0, ( + 41 ) AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2132
SELECT ALL - 27 + - + COUNT ( - - 68 ) * + NULLIF ( CAST ( NULL AS INTEGER ), + 26 * 21 ) AS col0, ( + 41 ) AS col2
----
NULL
41

query I rowsort
SELECT DISTINCT 50 * 12 AS col0
----
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT ( - 27 ) + + CASE + 55 WHEN + COUNT( * ) THEN 44 WHEN - CASE + 52 WHEN - 44 THEN - 87 WHEN - 3 * ( MAX( - CAST( NULL AS SIGNED ) ) ) + 36 THEN NULL END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT ( - 27 ) + + CASE + 55 WHEN + COUNT ( * ) THEN 44 WHEN - CASE + 52 WHEN - 44 THEN - 87 WHEN - 3 * ( MAX ( - CAST ( NULL AS INTEGER ) ) ) + 36 THEN NULL END THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL + MAX( - - 31 ) + - + ( + MIN( ALL - + 76 ) ) + + 71 AS col1
----
178

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL + MAX ( - - 31 ) + - + ( + MIN ( ALL - + 76 ) ) + + 71 AS col1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT 83 + - COUNT( * ) + - 64 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2136
SELECT 83 + - COUNT ( * ) + - 64 AS col1
----
18

query I rowsort
SELECT ALL 44 + - + ( - + 11 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ( - MAX( - 77 ) ) * + ( + + 71 ) AS col1
----
5467

skipif mysql # not compatible
query I rowsort label-2138
SELECT ( - MAX ( - 77 ) ) * + ( + + 71 ) AS col1
----
5467

query I rowsort
SELECT 98 + - 15
----
83

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

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

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

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

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

query I rowsort
SELECT ALL + - 11 * - + 25
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT DISTINCT 63 + COUNT( * ) * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT 63 + COUNT ( * ) * COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT + 42 + + NULLIF ( - ( ( + 45 ) ), - - ( - + 15 ) ) + + + 96 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT + COUNT( * ) * + + NULLIF ( - ( 97 ), - 67 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT + COUNT ( * ) * + + NULLIF ( - ( 97 ), - 67 ) AS col2
----
-97

query I rowsort
SELECT ALL - - 50
----
50

query I rowsort
SELECT ALL - 98 * 25 + 28 AS col1
----
-2422

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2149
SELECT + 60 + + - 33 + + CAST( NULL AS DECIMAL ) - - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT + 60 + + - 33 + + CAST ( NULL AS REAL ) - - 30 AS col2
----
NULL

query I rowsort
SELECT + 23 * + 93 + + 74 + - 7
----
2206

query I rowsort
SELECT DISTINCT + + 6 - 60 + 32 + + - 71 * - 9 * + + 97 col1
----
61961

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL + + 56 - CASE 44 WHEN + COUNT( * ) + - - 35 + + 56 - + 64 THEN - 23 + - + NULLIF ( - 93, - 19 ) WHEN + 59 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL + + 56 - CASE 44 WHEN + COUNT ( * ) + - - 35 + + 56 - + 64 THEN - 23 + - + NULLIF ( - 93, - 19 ) WHEN + 59 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT - ( - 20 ) AS col1, - 14 * 2 * 80
----
20
-2240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2154
SELECT 40 / + 81 + + SUM( + CAST( NULL AS SIGNED ) ), + 7 + - + 34 AS col0
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-2154
SELECT 40 / + 81 + + SUM ( + CAST ( NULL AS INTEGER ) ), + 7 + - + 34 AS col0
----
NULL
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2155
SELECT ALL - 82 * + 48 + + - 50 - + - 59 + + 12 + - 1 DIV - CAST( + MIN( ALL 67 ) AS SIGNED ) * + 87 * - 33 * 93
----
-3915

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - 82 * + 48 + + - 50 - + - 59 + + 12 + - 1 / - CAST ( + MIN ( ALL 67 ) AS INTEGER ) * + 87 * - 33 * 93
----
-3915

query I rowsort
SELECT 71 + - ( - 98 ) + + 0 + + 25 AS col0
----
194

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

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT - - 2 / - + COUNT ( * )
----
-2

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

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - 91 * NULLIF ( ( + COUNT ( * ) ), + + 33 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL - - 52 * + COUNT( + + 80 ) + COUNT( * ) * + 21
----
73

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - - 52 * + COUNT ( + + 80 ) + COUNT ( * ) * + 21
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT CASE - ( - 63 ) WHEN - MIN( DISTINCT + - 33 ) THEN NULL WHEN + 55 THEN NULL WHEN - 23 THEN NULL ELSE - 98 * 88 END * + MAX( DISTINCT 75 ) col2
----
-646800

skipif mysql # not compatible
query I rowsort label-2160
SELECT CASE - ( - 63 ) WHEN - MIN ( DISTINCT + - 33 ) THEN NULL WHEN + 55 THEN NULL WHEN - 23 THEN NULL ELSE - 98 * 88 END * + MAX ( DISTINCT 75 ) col2
----
-646800

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ( 26 ) + COUNT( * ) - - + ( + + COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-2161
SELECT ( 26 ) + COUNT ( * ) - - + ( + + COUNT ( * ) )
----
28

query I rowsort
SELECT ALL + 86 * - 73
----
-6278

onlyif mysql # DIV for integer division: 
query II rowsort label-2163
SELECT DISTINCT 97, 98 DIV - + 46 AS col2
----
97
-2

skipif mysql # not compatible
query II rowsort label-2163
SELECT DISTINCT 97, 98 / - + 46 AS col2
----
97
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT ALL + CAST( + SUM( + 47 ) AS SIGNED ) + + + 69 + - + 43 + + CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL + CAST ( + SUM ( + 47 ) AS INTEGER ) + + + 69 + - + 43 + + CAST ( NULL AS INTEGER ) * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL 4 + 81 + + 4 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL 4 + 81 + + 4 * + COUNT ( * )
----
89

query I rowsort
SELECT ALL - 86 * 40
----
-3440

query I rowsort
SELECT ALL 80 + - 84 AS col2
----
-4

query I rowsort
SELECT DISTINCT 39 + - 19 * + + 28
----
-493

query II rowsort
SELECT ALL 57, - 54 * - - 46 + + ( 25 ) col1
----
57
-2459

query I rowsort
SELECT ALL 74 + + - 13 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT 3 + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT 3 + - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL 38 + - COUNT( * ) + - 60 + - - 64
----
41

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL 38 + - COUNT ( * ) + - 60 + - - 64
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2173
SELECT DISTINCT 74, - CAST( NULL AS SIGNED ) - - COUNT( DISTINCT + + COALESCE ( + + 48, + - 46 ) ) AS col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-2173
SELECT DISTINCT 74, - CAST ( NULL AS INTEGER ) - - COUNT ( DISTINCT + + COALESCE ( + + 48, + - 46 ) ) AS col0
----
74
NULL

query I rowsort
SELECT DISTINCT 73 * - 48 * + - 55
----
192720

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT COUNT( * ) * - 99 * + 30 AS col2
----
-2970

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT COUNT ( * ) * - 99 * + 30 AS col2
----
-2970

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

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

query I rowsort
SELECT 88 * + + 33
----
2904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL 2 * + COALESCE ( CAST( + - 22 AS SIGNED ), CAST( + 35 AS SIGNED ) * CASE + + 45 WHEN - 12 + - 67 THEN 21 END + COUNT( * ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL 2 * + COALESCE ( CAST ( + - 22 AS INTEGER ), CAST ( + 35 AS INTEGER ) * CASE + + 45 WHEN - 12 + - 67 THEN 21 END + COUNT ( * ) ) AS col2
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL - NULLIF ( - 29, - COUNT( * ) + + 41 * 14 + + + 81 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - NULLIF ( - 29, - COUNT ( * ) + + 41 * 14 + + + 81 ) AS col1
----
29

query I rowsort
SELECT DISTINCT - 2 * - 40 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT COUNT( * ) * COALESCE ( + + 62, - 28 * - - 39 + - 69, - + 74 * 49 * 46 * - 94 + - 12 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2182
SELECT COUNT ( * ) * COALESCE ( + + 62, - 28 * - - 39 + - 69, - + 74 * 49 * 46 * - 94 + - 12 ) AS col1
----
62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT - - 50 DIV + 48 + + 44 - - + 2 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2184
SELECT - - 50 / + 48 + + 44 - - + 2 AS col1
----
47

query I rowsort
SELECT + + 0 * + 85 + - 85 AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2186
SELECT ALL - + COALESCE ( - - 76, - + COUNT( * ) DIV + - 41 + + + ( 57 ) + + - 93 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - + COALESCE ( - - 76, - + COUNT ( * ) / + - 41 + + + ( 57 ) + + - 93 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT DISTINCT - CASE - ( + 37 ) WHEN 54 THEN + 83 * ( + COUNT( * ) ) - COUNT( * ) + COALESCE ( + 64, COUNT( * ) ) - - 88 / + 17 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT - CASE - ( + 37 ) WHEN 54 THEN + 83 * ( + COUNT ( * ) ) - COUNT ( * ) + COALESCE ( + 64, COUNT ( * ) ) - - 88 / + 17 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 84 * - 97 col0
----
8148

query I rowsort
SELECT 6 * + 25
----
150

query I rowsort
SELECT ALL - 86 * - - 63 AS col0
----
-5418

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT - 21 / + CASE 67 WHEN - + MIN( DISTINCT - 53 ) * - 70 * 27 THEN + 76 END / 32 + + MIN( 98 ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT - 21 / + CASE 67 WHEN - + MIN ( DISTINCT - 53 ) * - 70 * 27 THEN + 76 END / 32 + + MIN ( 98 ) * 73 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + - 99, + 95 )
----
-99

query I rowsort
SELECT 55 + 62 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL MIN( - + 15 ) * - CASE - 52 WHEN 49 THEN NULL WHEN 21 THEN NULL WHEN - COUNT( * ) / - - 89 THEN - 77 END * - + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL MIN ( - + 15 ) * - CASE - 52 WHEN 49 THEN NULL WHEN 21 THEN NULL WHEN - COUNT ( * ) / - - 89 THEN - 77 END * - + 65 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2195
SELECT ALL - 37 * + 89 - - 15 + - CAST( 3 AS SIGNED ) DIV 81 AS col2
----
-3278

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - 37 * + 89 - - 15 + - CAST ( 3 AS INTEGER ) / 81 AS col2
----
-3278

onlyif mysql # aggregate syntax: 
query II rowsort label-2196
SELECT MAX( 63 ) * 2 AS col0, - CASE + 69 WHEN - + 85 * - 87 + - ( - 8 ) - - 13 + 12 THEN 56 WHEN ( 53 ) THEN NULL WHEN CASE - 34 WHEN + 76 THEN - COUNT( * ) * 19 END THEN NULL END / COUNT( * )
----
126
NULL

skipif mysql # not compatible
query II rowsort label-2196
SELECT MAX ( 63 ) * 2 AS col0, - CASE + 69 WHEN - + 85 * - 87 + - ( - 8 ) - - 13 + 12 THEN 56 WHEN ( 53 ) THEN NULL WHEN CASE - 34 WHEN + 76 THEN - COUNT ( * ) * 19 END THEN NULL END / COUNT ( * )
----
126
NULL

query I rowsort
SELECT DISTINCT - 93 * - 45 * - 10 * + 42
----
-1757700

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT 34 + - + 70 DIV - 22
----
37

skipif mysql # not compatible
query I rowsort label-2198
SELECT 34 + - + 70 / - 22
----
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT - 57 * - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2200
SELECT - 57 * - COUNT ( * ) AS col0
----
57

query I rowsort
SELECT ALL - - 26 col1
----
26

query I rowsort
SELECT ALL - ( - + ( - 22 ) ) col2
----
-22

query I rowsort
SELECT DISTINCT - 45 + - + 84
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT - COUNT( * ) - - MAX( DISTINCT + 93 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2204
SELECT - COUNT ( * ) - - MAX ( DISTINCT + 93 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2205
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + 97 * - + ( - 1 )
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2205
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + 97 * - + ( - 1 )
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ALL - 27 + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - 27 + COUNT ( * )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT - 10 - + 55 * - CASE + COALESCE ( - ( + 84 ), 54 * + 93 ) WHEN + CAST( NULL AS SIGNED ) * 79 + + AVG ( DISTINCT 38 ) * + ( + 35 * ( - 67 ) ) THEN 69 END * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2207
SELECT - 10 - + 55 * - CASE + COALESCE ( - ( + 84 ), 54 * + 93 ) WHEN + CAST ( NULL AS INTEGER ) * 79 + + AVG ( DISTINCT 38 ) * + ( + 35 * ( - 67 ) ) THEN 69 END * - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL COUNT( ALL + COALESCE ( - 17, - - 83, 67 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL COUNT ( ALL + COALESCE ( - 17, - - 83, 67 ) )
----
1

query I rowsort
SELECT DISTINCT + 9 + 77 + - - 5
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL - SUM( ALL - 97 ) + ( 8 ) col2
----
105

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL - SUM ( ALL - 97 ) + ( 8 ) col2
----
105

query I rowsort
SELECT ALL + 0 * 40 * + - 37
----
0

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

skipif mysql # not compatible
query I rowsort label-2212
SELECT - SUM ( ALL - 69 ) / - + ( - ( - COUNT ( * ) ) ) * + COUNT ( * ) + + 55
----
-14

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT - 56 - - 8 + - + 45 + + NULLIF ( + CAST( - 43 AS SIGNED ), - 68 )
----
-136

skipif mysql # not compatible
query I rowsort label-2214
SELECT - 56 - - 8 + - + 45 + + NULLIF ( + CAST ( - 43 AS INTEGER ), - 68 )
----
-136

query I rowsort
SELECT ALL - 55 * ( + 37 ) AS col2
----
-2035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2216
SELECT - COUNT( * ) + 5 + + CAST( NULL AS SIGNED ) * - 84 + - + ( - + 62 ) * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT - COUNT ( * ) + 5 + + CAST ( NULL AS INTEGER ) * - 84 + - + ( - + 62 ) * - 48 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2218
SELECT ALL + 92 + 92 + - CASE - 92 WHEN + 88 + 72 * 26 THEN - 65 WHEN + SUM( - + NULLIF ( ( CAST( 8 AS SIGNED ) ), ( 86 ) + 32 ) ) + 85 THEN NULL WHEN 11 * MAX( ALL + 29 DIV + 94 ) THEN NULL ELSE - ( ( CASE NULLIF ( 0, - 40 + - COUNT( * ) ) WHEN 23 THEN - COUNT( * ) ELSE + 78 DIV - 85 + 1 * + 46 END ) ) * - 60 END
----
-2576

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + 92 + 92 + - CASE - 92 WHEN + 88 + 72 * 26 THEN - 65 WHEN + SUM ( - + NULLIF ( ( CAST ( 8 AS INTEGER ) ), ( 86 ) + 32 ) ) + 85 THEN NULL WHEN 11 * MAX ( ALL + 29 / + 94 ) THEN NULL ELSE - ( ( CASE NULLIF ( 0, - 40 + - COUNT ( * ) ) WHEN 23 THEN - COUNT ( * ) ELSE + 78 / - 85 + 1 * + 46 END ) ) * - 60 END
----
-2576

query II rowsort
SELECT - 67 AS col0, - 60 AS col2
----
-67
-60

query I rowsort
SELECT - 3 + - 99
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - 20 + 83 * - + COUNT( * ) * 36 * + - ( 48 )
----
143404

skipif mysql # not compatible
query I rowsort label-2221
SELECT - 20 + 83 * - + COUNT ( * ) * 36 * + - ( 48 )
----
143404

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

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

query I rowsort
SELECT ALL CASE + 43 WHEN - 61 THEN + 25 END AS col0
----
NULL

query I rowsort
SELECT ALL - 38 * + 51
----
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT CASE + + 38 WHEN COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN - MAX( DISTINCT + 12 ) ELSE - COALESCE ( + 80, 29, + 75 - ( CASE + 55 WHEN NULLIF ( COALESCE ( AVG ( ALL - 99 ), + COUNT( * ), - 0 - 58 ), - 11 ) / + 53 THEN NULL WHEN 28 + 45 THEN NULL ELSE - 89 END ) ) * 3 END col0
----
-240

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT CASE + + 38 WHEN COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN - MAX ( DISTINCT + 12 ) ELSE - COALESCE ( + 80, 29, + 75 - ( CASE + 55 WHEN NULLIF ( COALESCE ( AVG ( ALL - 99 ), + COUNT ( * ), - 0 - 58 ), - 11 ) / + 53 THEN NULL WHEN 28 + 45 THEN NULL ELSE - 89 END ) ) * 3 END col0
----
-240

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2229
SELECT + + 87 + - 8 + 44 * 33 AS col1, 90 * - COUNT( * ) + - 27
----
1531
-117

skipif mysql # not compatible
query II rowsort label-2229
SELECT + + 87 + - 8 + 44 * 33 AS col1, 90 * - COUNT ( * ) + - 27
----
1531
-117

query II rowsort
SELECT - 96 AS col2, 69 + 47 col2
----
-96
116

query II rowsort
SELECT + 16 + + 75 AS col2, 99 * - 81
----
91
-8019

query I rowsort
SELECT ALL 85 - NULLIF ( 38, + 20 ) + - - 31
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + - 43 * - - 25 * + - COUNT( * ) + - ( - 58 ) AS col2
----
1133

skipif mysql # not compatible
query I rowsort label-2234
SELECT + - 43 * - - 25 * + - COUNT ( * ) + - ( - 58 ) AS col2
----
1133

query I rowsort
SELECT + 29 + + 58 AS col1
----
87

query I rowsort
SELECT ALL - 15 * + - 98
----
1470

query II rowsort
SELECT + + 77 AS col1, 59
----
77
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT + - COUNT( * ) col1, 78 + + ( + + 10 )
----
-1
88

skipif mysql # not compatible
query II rowsort label-2238
SELECT + - COUNT ( * ) col1, 78 + + ( + + 10 )
----
-1
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT + - 60 DIV + + 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2239
SELECT + - 60 / + + 48 AS col0
----
-1

query II rowsort
SELECT ALL + + 74 AS col2, - 67 + + - 34 col2
----
74
-101

query II rowsort
SELECT 92 AS col2, 62 + - 91 + + - 85
----
92
-114

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

query I rowsort
SELECT - ( - - 93 )
----
-93

query II rowsort
SELECT + 87 AS col2, 8 AS col1
----
87
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT CASE + - COUNT( * ) WHEN + 26 + + + 36 THEN - 51 * - 69 + + 11 WHEN COUNT( * ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT CASE + - COUNT ( * ) WHEN + 26 + + + 36 THEN - 51 * - 69 + + 11 WHEN COUNT ( * ) THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 60 * - + 9 + 56 * + 39
----
1644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2247
SELECT COUNT( * ) * 31 - + CAST( 12 AS SIGNED ) * + AVG ( + + 10 ) + - ( 53 ) * - CASE - + 94 WHEN 1 * COALESCE ( + 83, 87, + 42 ) THEN - 57 * - NULLIF ( - 86, 75 + COALESCE ( + 89, CASE + 53 WHEN 26 THEN NULL WHEN - 51 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * - 30, + 22 ) ) WHEN 71 * COUNT( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + 85 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT COUNT ( * ) * 31 - + CAST ( 12 AS INTEGER ) * + AVG ( + + 10 ) + - ( 53 ) * - CASE - + 94 WHEN 1 * COALESCE ( + 83, 87, + 42 ) THEN - 57 * - NULLIF ( - 86, 75 + COALESCE ( + 89, CASE + 53 WHEN 26 THEN NULL WHEN - 51 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * - 30, + 22 ) ) WHEN 71 * COUNT ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + 85 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT - 16 * 40 + + COALESCE ( + 88, - - 60 + + - COALESCE ( ( 30 ), - 34, - COUNT( * ) + + + 77 + + 65 ) )
----
-552

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT - 16 * 40 + + COALESCE ( + 88, - - 60 + + - COALESCE ( ( 30 ), - 34, - COUNT ( * ) + + + 77 + + 65 ) )
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT DISTINCT 4 * - ( 22 ) * - COUNT( 37 ) + + - 61 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT 4 * - ( 22 ) * - COUNT ( 37 ) + + - 61 AS col1
----
27

query I rowsort
SELECT DISTINCT - 14 * 71 AS col2
----
-994

query I rowsort
SELECT DISTINCT 66 * + 95 + + - 16 - - 84
----
6338

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT + COUNT( 98 ) DIV 92 DIV 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2252
SELECT + COUNT ( 98 ) / 92 / 62 AS col2
----
0

query II rowsort
SELECT DISTINCT + 23 * - 31 AS col2, 30 AS col1
----
-713
30

query I rowsort
SELECT ALL NULLIF ( 29, + 90 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT - 33 + - + 54 * COUNT( * ) - 27 - SUM( DISTINCT + 52 ) + - 28 * + 75 * + - SUM( DISTINCT - 12 ) * 66 * COUNT( * ) AS col0
----
-1663366

skipif mysql # not compatible
query I rowsort label-2255
SELECT - 33 + - + 54 * COUNT ( * ) - 27 - SUM ( DISTINCT + 52 ) + - 28 * + 75 * + - SUM ( DISTINCT - 12 ) * 66 * COUNT ( * ) AS col0
----
-1663366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT - CAST( - - 61 AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2256
SELECT - CAST ( - - 61 AS INTEGER ) AS col0
----
-61

query I rowsort
SELECT - 9 + - - 36 + + ( - 64 ) * - 21 AS col2
----
1371

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ALL 53 * + 3 - - ( + COUNT( * ) ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL 53 * + 3 - - ( + COUNT ( * ) ) AS col2
----
160

query I rowsort
SELECT ALL ( - 55 ) AS col2
----
-55

query I rowsort
SELECT - 97 * + 90
----
-8730

query I rowsort
SELECT ALL CASE - 1 WHEN + 50 THEN NULL ELSE - 74 END AS col1
----
-74

query I rowsort
SELECT ALL + ( - 74 ) * + - 38
----
2812

query I rowsort
SELECT DISTINCT + 52 * - 1 * - - 66 AS col2
----
-3432

query I rowsort
SELECT DISTINCT + 79 - 25 * - ( ( + 29 ) )
----
804

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT - 25 * 72 DIV - 73
----
24

skipif mysql # not compatible
query I rowsort label-2265
SELECT - 25 * 72 / - 73
----
24

query I rowsort
SELECT DISTINCT - 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL + COUNT( * ) * + 61 + - 63
----
-2

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL + COUNT ( * ) * + 61 + - 63
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2268
SELECT - - 5 / CASE + MAX( DISTINCT - - 75 ) WHEN COUNT( * ) + - ( + 74 ) THEN - + 54 + + CAST( NULL AS SIGNED ) WHEN + 56 * 59 * - - 79 / - 30 + + 35 * - 48 THEN NULL WHEN - CASE NULLIF ( 61, - CAST( NULL AS SIGNED ) ) WHEN 40 THEN NULL WHEN + 9 + - ( + 84 ) * - COUNT( * ) THEN NULL ELSE 47 END * + 86 THEN + 62 + 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT - - 5 / CASE + MAX ( DISTINCT - - 75 ) WHEN COUNT ( * ) + - ( + 74 ) THEN - + 54 + + CAST ( NULL AS INTEGER ) WHEN + 56 * 59 * - - 79 / - 30 + + 35 * - 48 THEN NULL WHEN - CASE NULLIF ( 61, - CAST ( NULL AS INTEGER ) ) WHEN 40 THEN NULL WHEN + 9 + - ( + 84 ) * - COUNT ( * ) THEN NULL ELSE 47 END * + 86 THEN + 62 + 55 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2269
SELECT - + 30 * - CASE 22 WHEN + COUNT( * ) THEN + - CAST( 4 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT - + 30 * - CASE 22 WHEN + COUNT ( * ) THEN + - CAST ( 4 AS INTEGER ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT - COUNT( * ) * 51 * 50 col1
----
-2550

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - COUNT ( * ) * 51 * 50 col1
----
-2550

query I rowsort
SELECT - - 56 - - + 59
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - 75 * - COUNT( * ) * SUM( + - 66 ) AS col0
----
-4950

skipif mysql # not compatible
query I rowsort label-2273
SELECT - 75 * - COUNT ( * ) * SUM ( + - 66 ) AS col0
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT DISTINCT + 59 + - ( - MAX( + 52 ) ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT + 59 + - ( - MAX ( + 52 ) ) AS col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2275
SELECT ALL - + COALESCE ( - 81, - + CAST( + 31 AS SIGNED ) + + 73 / - - 64, COUNT( * ) * + CASE + 45 WHEN - 44 + + ( + 90 ) THEN + 63 WHEN - ( 29 ) + 96 THEN NULL WHEN 25 / 30 THEN NULL END ) + + CAST( NULL AS SIGNED ) * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - + COALESCE ( - 81, - + CAST ( + 31 AS INTEGER ) + + 73 / - - 64, COUNT ( * ) * + CASE + 45 WHEN - 44 + + ( + 90 ) THEN + 63 WHEN - ( 29 ) + 96 THEN NULL WHEN 25 / 30 THEN NULL END ) + + CAST ( NULL AS INTEGER ) * - 34
----
NULL

query I rowsort
SELECT DISTINCT 28 + + 54
----
82

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT - 42 * + 98 AS col1, + COUNT( * ) col2
----
-4116
1

skipif mysql # not compatible
query II rowsort label-2278
SELECT - 42 * + 98 AS col1, + COUNT ( * ) col2
----
-4116
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT - CASE COUNT( * ) WHEN 59 THEN + CASE + 94 WHEN - 1 + - 40 THEN - 16 / - 87 * + 44 + - 74 + 38 + + AVG ( - 25 ) WHEN - ( + 69 ) THEN NULL END + + NULLIF ( 11, - 5 ) WHEN + 71 THEN 92 WHEN - 11 / 23 THEN + 16 * + 49 + + ( - 6 ) ELSE NULL END * 53 + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT - CASE COUNT ( * ) WHEN 59 THEN + CASE + 94 WHEN - 1 + - 40 THEN - 16 / - 87 * + 44 + - 74 + 38 + + AVG ( - 25 ) WHEN - ( + 69 ) THEN NULL END + + NULLIF ( 11, - 5 ) WHEN + 71 THEN 92 WHEN - 11 / 23 THEN + 16 * + 49 + + ( - 6 ) ELSE NULL END * 53 + 91
----
NULL

query I rowsort
SELECT - 30 * + + 64
----
-1920

query I rowsort
SELECT DISTINCT - - 4
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT - MAX( DISTINCT - + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT - MAX ( DISTINCT - + 53 ) AS col2
----
53

query II rowsort
SELECT ALL - 38 AS col0, - 81 + - 13 AS col1
----
-38
-94

query I rowsort
SELECT ALL 69 * - - ( + + 59 ) AS col0
----
4071

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL 75 + - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL 75 + - + COUNT ( * )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT CAST( 57 AS SIGNED ) * - 38 * + - 56 + - 89
----
121207

skipif mysql # not compatible
query I rowsort label-2287
SELECT CAST ( 57 AS INTEGER ) * - 38 * + - 56 + - 89
----
121207

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

skipif mysql # not compatible
query I rowsort label-2288
SELECT + COUNT ( * ) * + COUNT ( * ) + + 27 / - - SUM ( DISTINCT + 55 ) + + 60 AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2289
SELECT DISTINCT 63 - - 48 * 85 AS col0, - 7 - SUM( ALL - - 24 ) * 62
----
4143
-1495

skipif mysql # not compatible
query II rowsort label-2289
SELECT DISTINCT 63 - - 48 * 85 AS col0, - 7 - SUM ( ALL - - 24 ) * 62
----
4143
-1495

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT DISTINCT 80 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT 80 / - 92
----
0

query I rowsort
SELECT 2 + - 6 + + 12 + 83 AS col2
----
91

query I rowsort
SELECT 79 - - - 6
----
73

query II rowsort
SELECT DISTINCT 23 AS col2, - 68 + 79 AS col1
----
23
11

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

skipif mysql # not compatible
query I rowsort label-2294
SELECT 14 * - ( COUNT ( * ) )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2295
SELECT DISTINCT COUNT( ALL - ( + - 52 ) ) * + - MIN( ALL + ( 27 ) ), + CAST( - 28 AS SIGNED ) * 52 * + 90 * + 4 + + 9 * - 52 col1
----
-27
-524628

skipif mysql # not compatible
query II rowsort label-2295
SELECT DISTINCT COUNT ( ALL - ( + - 52 ) ) * + - MIN ( ALL + ( 27 ) ), + CAST ( - 28 AS INTEGER ) * 52 * + 90 * + 4 + + 9 * - 52 col1
----
-27
-524628

query I rowsort
SELECT 88 + - 23
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT 24 - + + 5 + + 78 - + MIN( 58 ) * + - 96 * 64 * - 92 + 41 + + 35 * 41
----
-32782811

skipif mysql # not compatible
query I rowsort label-2297
SELECT 24 - + + 5 + + 78 - + MIN ( 58 ) * + - 96 * 64 * - 92 + 41 + + 35 * 41
----
-32782811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2298
SELECT ALL COALESCE ( - 69, + COUNT( * ), - 42 ) * 15 DIV + CASE 25 WHEN + 75 THEN + 21 * + MIN( DISTINCT - 56 ) + COUNT( * ) ELSE - 67 DIV 41 END + 38 AS col1
----
1073

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL COALESCE ( - 69, + COUNT ( * ), - 42 ) * 15 / + CASE 25 WHEN + 75 THEN + 21 * + MIN ( DISTINCT - 56 ) + COUNT ( * ) ELSE - 67 / 41 END + 38 AS col1
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ( - 5 ) + + + 76 + + + MIN( DISTINCT - 48 )
----
23

skipif mysql # not compatible
query I rowsort label-2299
SELECT ( - 5 ) + + + 76 + + + MIN ( DISTINCT - 48 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT SUM( DISTINCT 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2300
SELECT SUM ( DISTINCT 69 ) AS col0
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL 34 + + - 87 - MIN( 7 )
----
-60

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL 34 + + - 87 - MIN ( 7 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT - 66 * 61 - + - ( - COUNT( * ) )
----
-4027

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT - 66 * 61 - + - ( - COUNT ( * ) )
----
-4027

query I rowsort
SELECT - 78 + + 46 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL - + 18 + - - 63 + - COUNT( * ) * + 13 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL - + 18 + - - 63 + - COUNT ( * ) * + 13 AS col2
----
32

query I rowsort
SELECT 94 * + 2 AS col2
----
188

query I rowsort
SELECT DISTINCT - - 43 + + - 71 * 47 + + 74 + - 42 * + 92 - + 73 AS col0
----
-7157

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT NULLIF ( + MIN( + + 27 ), - 9 * 61 + 55 ) + + + 96 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-2308
SELECT NULLIF ( + MIN ( + + 27 ), - 9 * 61 + 55 ) + + + 96 AS col0
----
123

query I rowsort
SELECT DISTINCT - 72 + 7 AS col0
----
-65

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

query II rowsort
SELECT DISTINCT - NULLIF ( + 89, 7 ) AS col2, + 91 AS col2
----
-89
91

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

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL + + COUNT ( * ) + - + 28 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT COUNT( ALL - 86 ) - 86 - + - 79 * - - 12 AS col0
----
863

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT COUNT ( ALL - 86 ) - 86 - + - 79 * - - 12 AS col0
----
863

query I rowsort
SELECT 54 + + 51
----
105

query II rowsort
SELECT 57 * + NULLIF ( - - 49, - 56 ) AS col2, 57 * + 64 * + + ( + - 9 ) AS col0
----
2793
-32832

query I rowsort
SELECT DISTINCT - COALESCE ( 79, 56 - 62, - - 82 + 56 * 97 ) AS col0
----
-79

query I rowsort
SELECT + 20 * - - 75 + 8
----
1508

query I rowsort
SELECT 82 * - + 60 * - 53
----
260760

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

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - 6 / COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT SUM( ALL 90 ) + + CASE 21 WHEN MIN( + 19 ) THEN + + 36 END + MAX( ALL + - 55 ) / + + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT SUM ( ALL 90 ) + + CASE 21 WHEN MIN ( + 19 ) THEN + + 36 END + MAX ( ALL + - 55 ) / + + 78 AS col0
----
NULL

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

query I rowsort
SELECT 97 * + 58 + - 18 * 37
----
4960

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT 98 * + SUM( DISTINCT - + 55 ) * + COUNT( * ) + - - 16 - 38 AS col1
----
-5412

skipif mysql # not compatible
query I rowsort label-2324
SELECT 98 * + SUM ( DISTINCT - + 55 ) * + COUNT ( * ) + - - 16 - 38 AS col1
----
-5412

query I rowsort
SELECT 33 + + 29 AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT ALL 26 DIV - 32 col1
----
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL 26 / - 32 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT COALESCE ( - 66, - 59 * + - 50 * - 24, - 83 DIV 49, + 12 ) * - 88 * - 63
----
-365904

skipif mysql # not compatible
query I rowsort label-2327
SELECT COALESCE ( - 66, - 59 * + - 50 * - 24, - 83 / 49, + 12 ) * - 88 * - 63
----
-365904

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT CASE COUNT( * ) WHEN - + ( + 84 ) THEN NULL WHEN - COUNT( * ) THEN - - 41 + - 21 * + 54 / + + 15 * - ( - + 42 ) ELSE - 46 END col0
----
-46

skipif mysql # not compatible
query I rowsort label-2330
SELECT CASE COUNT ( * ) WHEN - + ( + 84 ) THEN NULL WHEN - COUNT ( * ) THEN - - 41 + - 21 * + 54 / + + 15 * - ( - + 42 ) ELSE - 46 END col0
----
-46

query I rowsort
SELECT DISTINCT + 92 + + + 44 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL SUM( ALL - 23 ) + + 89 col2
----
66

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL SUM ( ALL - 23 ) + + 89 col2
----
66

query II rowsort
SELECT ALL COALESCE ( + 46, + 67 - + 15, - 43 ) + - - 95 * + 60 AS col1, 55 AS col1
----
5746
55

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

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL + MIN ( DISTINCT - 61 ) AS col1
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT NULLIF ( - COUNT( * ), 44 + + - 22 * + 70 / - + 81 ) - - 61 + + 44 + 24 - - ( + 80 ) * + 39 * - - COUNT( * ) * - 2
----
-6112

skipif mysql # not compatible
query I rowsort label-2336
SELECT NULLIF ( - COUNT ( * ), 44 + + - 22 * + 70 / - + 81 ) - - 61 + + 44 + 24 - - ( + 80 ) * + 39 * - - COUNT ( * ) * - 2
----
-6112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL - COUNT( * ) + + ( 57 )
----
56

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL - COUNT ( * ) + + ( 57 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT - + 48 DIV + - 58 * + 48
----
0

skipif mysql # not compatible
query I rowsort label-2339
SELECT - + 48 / + - 58 * + 48
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2340
SELECT + 51 - + 55, - 44 * - ( + 0 ) * - - 67 * + CAST( NULL AS SIGNED ) * - - 92 * + 34 * - ( + 80 ) AS col2
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-2340
SELECT + 51 - + 55, - 44 * - ( + 0 ) * - - 67 * + CAST ( NULL AS INTEGER ) * - - 92 * + 34 * - ( + 80 ) AS col2
----
-4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL + MAX( ALL 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL + MAX ( ALL 53 ) AS col1
----
53

query I rowsort
SELECT DISTINCT + 15 + 95 AS col2
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-2343
SELECT DISTINCT - + 15 DIV - 40 * - + ( - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT - + 15 / - 40 * - + ( - 74 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2344
SELECT - 78 DIV - COUNT( * ) + - + 43
----
35

skipif mysql # not compatible
query I rowsort label-2344
SELECT - 78 / - COUNT ( * ) + - + 43
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ALL 48 - + 57 DIV - + 45
----
49

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL 48 - + 57 / - + 45
----
49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2347
SELECT + + 2 + CAST( 33 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-2347
SELECT + + 2 + CAST ( 33 AS INTEGER )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT + CASE - - 29 WHEN + 52 + 61 THEN - 9 WHEN + 9 * + + NULLIF ( + + 84, - CAST( ( - 23 ) AS SIGNED ) * - - 40 ) + 37 * + COUNT( * ) THEN NULL WHEN 35 * - 21 - + 19 * + COALESCE ( 31, 81, 52 + 8 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT + CASE - - 29 WHEN + 52 + 61 THEN - 9 WHEN + 9 * + + NULLIF ( + + 84, - CAST ( ( - 23 ) AS INTEGER ) * - - 40 ) + 37 * + COUNT ( * ) THEN NULL WHEN 35 * - 21 - + 19 * + COALESCE ( 31, 81, 52 + 8 ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT + 10 + 37 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT + 28 * NULLIF ( - - 25, 6 * + 95 + + - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) - 23 * - + 32 * + 53 + 22 ) AS col2
----
700

skipif mysql # not compatible
query I rowsort label-2351
SELECT + 28 * NULLIF ( - - 25, 6 * + 95 + + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) - 23 * - + 32 * + 53 + 22 ) AS col2
----
700

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

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

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

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

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

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

query II rowsort
SELECT + 51 AS col1, 17 * + - 81 * 88 + - 40 * 85
----
51
-124576

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT - 56 + 4 - - SUM( COALESCE ( - 80, + 10 ) ) + 23 * + - 33 * SUM( ALL - - 11 ) + + + 95 - - 82 AS col1
----
-8304

skipif mysql # not compatible
query I rowsort label-2356
SELECT - 56 + 4 - - SUM ( COALESCE ( - 80, + 10 ) ) + 23 * + - 33 * SUM ( ALL - - 11 ) + + + 95 - - 82 AS col1
----
-8304

query I rowsort
SELECT NULLIF ( - 87, 53 ) AS col1
----
-87

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2359
SELECT DISTINCT + 40 AS col2, 53 DIV + 29 col1
----
40
1

skipif mysql # not compatible
query II rowsort label-2359
SELECT DISTINCT + 40 AS col2, 53 / + 29 col1
----
40
1

query I rowsort
SELECT NULLIF ( + - 23, - - 2 )
----
-23

query I rowsort
SELECT - 26 * 80
----
-2080

query II rowsort
SELECT ALL + 53, - 97 AS col1
----
53
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT COUNT( * ) * + COUNT( * ) + - NULLIF ( COUNT( * ), - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT COUNT ( * ) * + COUNT ( * ) + - NULLIF ( COUNT ( * ), - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT + MAX( 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2364
SELECT + MAX ( 7 ) AS col1
----
7

query I rowsort
SELECT COALESCE ( + ( - + 35 ), + - COALESCE ( - + 43, + 10 ) + - 0 ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2366
SELECT + MAX( CAST( - 19 AS SIGNED ) )
----
-19

skipif mysql # not compatible
query I rowsort label-2366
SELECT + MAX ( CAST ( - 19 AS INTEGER ) )
----
-19

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2368
SELECT - 90 / CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) * COUNT( * ) + - + 37 THEN NULL ELSE + COUNT( * ) * 65 END / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT - 90 / CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) * COUNT ( * ) + - + 37 THEN NULL ELSE + COUNT ( * ) * 65 END / CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2369
SELECT DISTINCT 19 * 24 * 24, CASE - COALESCE ( - 84, 73 * - 54 * + 12 + COUNT( * ) + 53 + + COUNT( * ) * 91 * + ( + - 24 ) + - 92 * - 87 ) WHEN + 0 THEN NULL ELSE - 36 END * + 27 AS col2
----
10944
-972

skipif mysql # not compatible
query II rowsort label-2369
SELECT DISTINCT 19 * 24 * 24, CASE - COALESCE ( - 84, 73 * - 54 * + 12 + COUNT ( * ) + 53 + + COUNT ( * ) * 91 * + ( + - 24 ) + - 92 * - 87 ) WHEN + 0 THEN NULL ELSE - 36 END * + 27 AS col2
----
10944
-972

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2370
SELECT ALL + COUNT( * ) * 82 + COUNT( * ) AS col1, + 79 + + COALESCE ( - NULLIF ( - 35, - 19 DIV - NULLIF ( - - 91, + 43 ) ), + COUNT( * ), - - 29 + - - 82 + - - COALESCE ( 22, SUM( ALL - 8 ) ) + + 24 DIV + 58 )
----
83
114

skipif mysql # not compatible
query II rowsort label-2370
SELECT ALL + COUNT ( * ) * 82 + COUNT ( * ) AS col1, + 79 + + COALESCE ( - NULLIF ( - 35, - 19 / - NULLIF ( - - 91, + 43 ) ), + COUNT ( * ), - - 29 + - - 82 + - - COALESCE ( 22, SUM ( ALL - 8 ) ) + + 24 / + 58 )
----
83
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT ALL + + 18 * + - CAST( 85 AS SIGNED ) * 71 + - 37 * + 77 - + - 1 + SUM( DISTINCT - + 12 ) * - - 47 * + 47
----
-137986

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + + 18 * + - CAST ( 85 AS INTEGER ) * 71 + - 37 * + 77 - + - 1 + SUM ( DISTINCT - + 12 ) * - - 47 * + 47
----
-137986

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL + + COUNT( * ) * 75 * 87 + + COUNT( * ) + + 40 - COUNT( + 99 ) AS col0
----
6565

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + + COUNT ( * ) * 75 * 87 + + COUNT ( * ) + + 40 - COUNT ( + 99 ) AS col0
----
6565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT + - MAX( 42 ) + + - 63 DIV - + 94 * - 3 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2373
SELECT + - MAX ( 42 ) + + - 63 / - + 94 * - 3 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL + 21 * + 60 + COUNT( * ) AS col0
----
1261

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + 21 * + 60 + COUNT ( * ) AS col0
----
1261

query I rowsort
SELECT - + 7 + 87 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2376
SELECT CAST( NULL AS SIGNED ) * - 73 + + - 55 - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT CAST ( NULL AS INTEGER ) * - 73 + + - 55 - 68 AS col1
----
NULL

query I rowsort
SELECT + 69 - + + 70 - 49 col1
----
-50

query I rowsort
SELECT - 13 + - 52 AS col0
----
-65

query I rowsort
SELECT + ( 37 ) + + 47 * 80
----
3797

query I rowsort
SELECT ALL 52 + + - 94
----
-42

query I rowsort
SELECT + 35 + ( 45 ) + - 15
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT ALL CASE WHEN NOT 68 IS NOT NULL AND NULL IS NULL THEN NULL WHEN NOT + 46 - 78 > - 4 * - 61 THEN + + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL CASE WHEN NOT 68 IS NOT NULL AND NULL IS NULL THEN NULL WHEN NOT + 46 - 78 > - 4 * - 61 THEN + + CAST ( NULL AS INTEGER ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2383
SELECT ALL - 3 col2, - CASE + COUNT( * ) WHEN - 21 + 23 + - - 54 + AVG ( + 62 ) THEN NULL WHEN + 26 * - COUNT( * ) THEN COUNT( * ) ELSE 44 END AS col1
----
-3
-44

skipif mysql # not compatible
query II rowsort label-2383
SELECT ALL - 3 col2, - CASE + COUNT ( * ) WHEN - 21 + 23 + - - 54 + AVG ( + 62 ) THEN NULL WHEN + 26 * - COUNT ( * ) THEN COUNT ( * ) ELSE 44 END AS col1
----
-3
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2384
SELECT + - 92 + - COUNT( + - 52 ) AS col1, 47
----
-93
47

skipif mysql # not compatible
query II rowsort label-2384
SELECT + - 92 + - COUNT ( + - 52 ) AS col1, 47
----
-93
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT - + MIN( ALL - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-2385
SELECT - + MIN ( ALL - 89 )
----
89

query I rowsort
SELECT + + ( + + 20 ) + + 4
----
24

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT + - 31 * + ( 25 ) DIV COUNT( ALL - 63 ) + + 92 AS col1
----
-683

skipif mysql # not compatible
query I rowsort label-2388
SELECT + - 31 * + ( 25 ) / COUNT ( ALL - 63 ) + + 92 AS col1
----
-683

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT + MAX( ALL - 96 ) * - + COUNT( * ) * - - 70 * 11 AS col1
----
73920

skipif mysql # not compatible
query I rowsort label-2389
SELECT + MAX ( ALL - 96 ) * - + COUNT ( * ) * - - 70 * 11 AS col1
----
73920

query I rowsort
SELECT DISTINCT + 4 * 13
----
52

query II rowsort
SELECT 70, + 36 * + 20 AS col1
----
70
720

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

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

query I rowsort
SELECT - 10 * + 65
----
-650

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

skipif mysql # not compatible
query II rowsort label-2394
SELECT ALL 89, COUNT ( * ) AS col2
----
89
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2395
SELECT + CAST( + + 92 AS SIGNED ) + + 20 DIV - ( + - 76 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2395
SELECT + CAST ( + + 92 AS INTEGER ) + + 20 / - ( + - 76 ) AS col1
----
92

query II rowsort
SELECT ALL + 27 AS col2, 25
----
27
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT + ( - 98 ) / - 79 * - CASE - 30 WHEN - - 10 + 99 + - 98 THEN NULL WHEN - + 36 * + - 45 + + 17 * 74 THEN + COUNT( * ) WHEN + + 93 THEN + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT + ( - 98 ) / - 79 * - CASE - 30 WHEN - - 10 + 99 + - 98 THEN NULL WHEN - + 36 * + - 45 + + 17 * 74 THEN + COUNT ( * ) WHEN + + 93 THEN + 47 END
----
NULL

query II rowsort
SELECT + 62 + - - 48 AS col0, 68 * 67
----
110
4556

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + 86 * - 80 * - 58 - - - COUNT( * ) col2
----
399039

skipif mysql # not compatible
query I rowsort label-2399
SELECT + 86 * - 80 * - 58 - - - COUNT ( * ) col2
----
399039

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2400
SELECT CAST( NULL AS SIGNED ), 5 DIV 53 * CAST( + 97 AS SIGNED ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2400
SELECT CAST ( NULL AS INTEGER ), 5 / 53 * CAST ( + 97 AS INTEGER ) AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + NULLIF ( + COUNT( DISTINCT 41 ), 36 + 37 ) * - 86 * 33 AS col0
----
-2838

skipif mysql # not compatible
query I rowsort label-2401
SELECT + NULLIF ( + COUNT ( DISTINCT 41 ), 36 + 37 ) * - 86 * 33 AS col0
----
-2838

query II rowsort
SELECT - 44 + 24, + 68 * - 63 * - 6 AS col2
----
-20
25704

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2403
SELECT DISTINCT + COUNT( * ) * + CASE + COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN 98 * + 53 THEN 23 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT + COUNT ( * ) * + CASE + COUNT ( * ) WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN 98 * + 53 THEN 23 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2404
SELECT + 14 * + CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * 21 * 25 THEN NULL WHEN - COALESCE ( 55, - 28 + - COUNT( * ) * 42 ) THEN - - 6 ELSE - + 41 + + 95 END * 48 + - 94 + 21 DIV + 59 * - 57
----
36194

skipif mysql # not compatible
query I rowsort label-2404
SELECT + 14 * + CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * 21 * 25 THEN NULL WHEN - COALESCE ( 55, - 28 + - COUNT ( * ) * 42 ) THEN - - 6 ELSE - + 41 + + 95 END * 48 + - 94 + 21 / + 59 * - 57
----
36194

query I rowsort
SELECT - 20 + - - 57
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2406
SELECT ALL - COUNT( 69 ) DIV 66 + + 49 AS col2, NULLIF ( + 21, ( - + 55 ) ) - - 75
----
49
96

skipif mysql # not compatible
query II rowsort label-2406
SELECT ALL - COUNT ( 69 ) / 66 + + 49 AS col2, NULLIF ( + 21, ( - + 55 ) ) - - 75
----
49
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2407
SELECT ALL + SUM( - 48 ) * 25 + - - CASE + 46 WHEN 99 THEN NULL WHEN - 18 THEN 42 ELSE MAX( - - 13 ) * - COUNT( * ) + + 60 END + 26 DIV 80 + + - MAX( DISTINCT + + 82 )
----
-1235

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL + SUM ( - 48 ) * 25 + - - CASE + 46 WHEN 99 THEN NULL WHEN - 18 THEN 42 ELSE MAX ( - - 13 ) * - COUNT ( * ) + + 60 END + 26 / 80 + + - MAX ( DISTINCT + + 82 )
----
-1235

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2408
SELECT DISTINCT - COUNT( * ) * - - 69 + + ( + 83 ) * + ( - 65 ), 41 * - COUNT( DISTINCT ( - 97 ) ) DIV + + 97 + + 88 AS col0
----
-5464
88

skipif mysql # not compatible
query II rowsort label-2408
SELECT DISTINCT - COUNT ( * ) * - - 69 + + ( + 83 ) * + ( - 65 ), 41 * - COUNT ( DISTINCT ( - 97 ) ) / + + 97 + + 88 AS col0
----
-5464
88

query I rowsort
SELECT - 48 * + 36 - - + 52 AS col0
----
-1676

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL + 67 * COALESCE ( - + 23, - COUNT( * ) ) + 74 AS col1
----
-1467

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL + 67 * COALESCE ( - + 23, - COUNT ( * ) ) + 74 AS col1
----
-1467

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL - COUNT( * ) * 33 * + + 53 + - 26 + - + COUNT( * )
----
-1776

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL - COUNT ( * ) * 33 * + + 53 + - 26 + - + COUNT ( * )
----
-1776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT + 70 * - 42 * + + 56 + 11 + + NULLIF ( - 24, 71 * CASE + - CAST( + + COUNT( * ) AS SIGNED ) WHEN + 75 THEN + 21 * + 30 * + 93 / + 35 END )
----
-164653

skipif mysql # not compatible
query I rowsort label-2413
SELECT + 70 * - 42 * + + 56 + 11 + + NULLIF ( - 24, 71 * CASE + - CAST ( + + COUNT ( * ) AS INTEGER ) WHEN + 75 THEN + 21 * + 30 * + 93 / + 35 END )
----
-164653

query I rowsort
SELECT 31 * - - ( - 58 ) + + ( - 86 )
----
-1884

query I rowsort
SELECT - 34 col0
----
-34

query I rowsort
SELECT ALL - + 98 - + 32 AS col0
----
-130

query II rowsort
SELECT + 6 * + - ( ( + + 59 ) ) AS col0, 94 AS col0
----
-354
94

query I rowsort
SELECT DISTINCT + - 73 * + 57 + 95 col2
----
-4066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + - 62 * COUNT( * ) * ( 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - 62 * COUNT ( * ) * ( 50 )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2420
SELECT DISTINCT COUNT ( * ) col2, 44
----
1
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL + NULLIF ( 37, MIN( + 53 ) ) * + CAST( NULL AS SIGNED ) - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + NULLIF ( 37, MIN ( + 53 ) ) * + CAST ( NULL AS INTEGER ) - - 70
----
NULL

query I rowsort
SELECT ALL + + 6 - - + 73 AS col1
----
79

query I rowsort
SELECT - ( - 90 )
----
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT 38 DIV + - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT 38 / + - 71 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2426
SELECT - 13 + 31 + 93 * - 23 * + 22 + 82, CAST( + CASE NULLIF ( + ( 6 ), 99 + NULLIF ( 31, - - ( + 88 ) ) - 48 * - COUNT( * ) ) WHEN - COUNT( * ) THEN NULL WHEN 15 * + 48 THEN + 75 ELSE NULL END AS SIGNED ) + - 31 * + 55 AS col2
----
-46958
NULL

skipif mysql # not compatible
query II rowsort label-2426
SELECT - 13 + 31 + 93 * - 23 * + 22 + 82, CAST ( + CASE NULLIF ( + ( 6 ), 99 + NULLIF ( 31, - - ( + 88 ) ) - 48 * - COUNT ( * ) ) WHEN - COUNT ( * ) THEN NULL WHEN 15 * + 48 THEN + 75 ELSE NULL END AS INTEGER ) + - 31 * + 55 AS col2
----
-46958
NULL

query II rowsort
SELECT - 52 col0, - 7 + 80 + + + 40 * - + 62 AS col1
----
-52
-2407

query I rowsort
SELECT 87 * - 76
----
-6612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2429
SELECT CAST( NULL AS SIGNED ) AS col1, + 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-2429
SELECT CAST ( NULL AS INTEGER ) AS col1, + 13 AS col2
----
NULL
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT ALL - NULLIF ( + 67, COALESCE ( COUNT( ALL + - 13 ), - + 80 * + - COUNT( * ) ) ) DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - NULLIF ( + 67, COALESCE ( COUNT ( ALL + - 13 ), - + 80 * + - COUNT ( * ) ) ) / + 87
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2432
SELECT + 5 DIV - + 65 + - CAST( - - 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2432
SELECT + 5 / - + 65 + - CAST ( - - 87 AS INTEGER ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT DISTINCT COUNT( * ) DIV - 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT COUNT ( * ) / - 11 AS col2
----
0

query I rowsort
SELECT CASE 37 WHEN + 9 THEN - NULLIF ( 54, - 24 ) * - 43 - + + CASE + + 20 WHEN 95 THEN + AVG ( + 98 ) * 39 + - + 14 * - 3 * 63 - - - 58 + + ( CASE - 89 WHEN 7 + + 56 / 84 THEN + 85 ELSE NULL END ) WHEN - 23 THEN NULL END + 10 ELSE NULL END - 19 * 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT COUNT( * ) + + - 29 + - 19 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2435
SELECT COUNT ( * ) + + - 29 + - 19 AS col2
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL 57 + - MIN( + 92 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL 57 + - MIN ( + 92 ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2438
SELECT + 20 * - + CAST( NULL AS SIGNED ) * + SUM( DISTINCT 84 ) + + + 3 AS col2, + 91 * + ( + + 26 ) AS col2
----
NULL
2366

skipif mysql # not compatible
query II rowsort label-2438
SELECT + 20 * - + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT 84 ) + + + 3 AS col2, + 91 * + ( + + 26 ) AS col2
----
NULL
2366

query I rowsort
SELECT 36 - - 95
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT ALL 3 + - 80 DIV - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL 3 + - 80 / - + COUNT ( * )
----
83

query I rowsort
SELECT DISTINCT 14 + 79 + - CASE + 86 WHEN + 42 THEN 78 / - 83 END + - 28
----
NULL

query I rowsort
SELECT ( + 92 ) * + - 39 AS col0
----
-3588

query I rowsort
SELECT 26 + + - 39 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2444
SELECT ALL + 85 * + ( - - 12 ) * 7 * + - CASE 61 WHEN - COUNT( * ) * - ( + ( + 4 ) ) THEN 83 WHEN + 62 THEN NULL ELSE + - COUNT( * ) + + ( 95 ) + + MIN( DISTINCT + + 23 ) * 40 END + CAST( 54 + + 13 * AVG ( 61 - 57 ) AS SIGNED ) * + ( - 76 DIV SUM( + 90 ) )
----
-7239960

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL + 85 * + ( - - 12 ) * 7 * + - CASE 61 WHEN - COUNT ( * ) * - ( + ( + 4 ) ) THEN 83 WHEN + 62 THEN NULL ELSE + - COUNT ( * ) + + ( 95 ) + + MIN ( DISTINCT + + 23 ) * 40 END + CAST ( 54 + + 13 * AVG ( 61 - 57 ) AS INTEGER ) * + ( - 76 / SUM ( + 90 ) )
----
-7239960

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - COUNT( * ) * + + ( - 57 ) + - + 27 * - ( - 34 ) AS col0
----
-861

skipif mysql # not compatible
query I rowsort label-2445
SELECT - COUNT ( * ) * + + ( - 57 ) + - + 27 * - ( - 34 ) AS col0
----
-861

query I rowsort
SELECT 49 * - - 52 AS col1
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT 91 * + 51 * COUNT( * ) + COUNT( * ) + - 16 - + + 31 * + 0 * + + COUNT( * ) * - - 98 AS col1
----
4626

skipif mysql # not compatible
query I rowsort label-2447
SELECT 91 * + 51 * COUNT ( * ) + COUNT ( * ) + - 16 - + + 31 * + 0 * + + COUNT ( * ) * - - 98 AS col1
----
4626

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2449
SELECT ALL + 80 - - COUNT( * ) * - - 46 AS col0, - 51 + - 66 + + 82
----
126
-35

skipif mysql # not compatible
query II rowsort label-2449
SELECT ALL + 80 - - COUNT ( * ) * - - 46 AS col0, - 51 + - 66 + + 82
----
126
-35

query II rowsort
SELECT ALL + - 84 * - 37 AS col2, + 63 col0
----
3108
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT 50 * - COUNT( * ) + 55
----
5

skipif mysql # not compatible
query I rowsort label-2453
SELECT 50 * - COUNT ( * ) + 55
----
5

query I rowsort
SELECT ALL + - CASE - 60 WHEN - - 58 THEN + 40 WHEN 62 THEN - - 73 ELSE NULL END - - 85 AS col2
----
NULL

query I rowsort
SELECT 60 * - 7 + + + 66
----
-354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2456
SELECT 63 + CASE + 69 WHEN - 85 THEN - + 14 * - - COUNT( - - 18 ) WHEN 94 THEN + NULLIF ( - + 66, - - COUNT( * ) ) + - ( - 40 ) ELSE NULL END DIV + CAST( NULL AS SIGNED ) - + - COUNT( * ) AS col2, - 6 - - - 42 DIV + 93
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-2456
SELECT 63 + CASE + 69 WHEN - 85 THEN - + 14 * - - COUNT ( - - 18 ) WHEN 94 THEN + NULLIF ( - + 66, - - COUNT ( * ) ) + - ( - 40 ) ELSE NULL END / + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col2, - 6 - - - 42 / + 93
----
NULL
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + 53 - NULLIF ( + 7, - 92 - + COUNT( * ) ) * 89
----
-570

skipif mysql # not compatible
query I rowsort label-2457
SELECT + 53 - NULLIF ( + 7, - 92 - + COUNT ( * ) ) * 89
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT + 96 * - COUNT( * ) * - 86 + - + 98 AS col1
----
8158

skipif mysql # not compatible
query I rowsort label-2458
SELECT + 96 * - COUNT ( * ) * - 86 + - + 98 AS col1
----
8158

query I rowsort
SELECT 53 - - + ( - - 26 ) AS col1
----
79

query II rowsort
SELECT ALL ( + 31 ) AS col1, 94 AS col2
----
31
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2461
SELECT 40 * 16 * 41 * 0 - + + COUNT( * ) col0, - 69 DIV + ( + COUNT( * ) )
----
-1
-69

skipif mysql # not compatible
query II rowsort label-2461
SELECT 40 * 16 * 41 * 0 - + + COUNT ( * ) col0, - 69 / + ( + COUNT ( * ) )
----
-1
-69

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

skipif mysql # not compatible
query I rowsort label-2462
SELECT + COALESCE ( + COUNT ( * ), 98 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT + ( - 13 ) + - - 96 + COUNT( * ) * + + 57 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-2463
SELECT + ( - 13 ) + - - 96 + COUNT ( * ) * + + 57 AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2464
SELECT - CAST( + 42 AS SIGNED ), + 75 - - 73 AS col2
----
-42
148

skipif mysql # not compatible
query II rowsort label-2464
SELECT - CAST ( + 42 AS INTEGER ), + 75 - - 73 AS col2
----
-42
148

query I rowsort
SELECT ( - 78 ) * - - 21 AS col2
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT 92 + + 96 + + - COUNT( * ) col0
----
187

skipif mysql # not compatible
query I rowsort label-2466
SELECT 92 + + 96 + + - COUNT ( * ) col0
----
187

query I rowsort
SELECT DISTINCT + 60 * - - 76
----
4560

query I rowsort
SELECT DISTINCT - 6 + - 41 + - - 70
----
23

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

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

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + COUNT ( * ) + 81 AS col1
----
82

query I rowsort
SELECT 88 + - - 32 AS col2
----
120

query I rowsort
SELECT 92 * + 60
----
5520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT 27 + + - 80 + - - 82 / 15 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT 27 + + - 80 + - - 82 / 15 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2474
SELECT ALL COUNT( * ) AS col2, COALESCE ( + + 90, - CASE - - 10 WHEN - 31 THEN + MAX( ALL - + 12 ) END )
----
1
90

skipif mysql # not compatible
query II rowsort label-2474
SELECT ALL COUNT ( * ) AS col2, COALESCE ( + + 90, - CASE - - 10 WHEN - 31 THEN + MAX ( ALL - + 12 ) END )
----
1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT CASE - NULLIF ( + COALESCE ( 55, - 77, 80 * + - 91 ), + 9 ) WHEN + 44 + 18 * 96 THEN + COUNT( * ) * 37 * - MIN( - + 7 ) ELSE 0 + - - 58 * + 1 END col1
----
58

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT CASE - NULLIF ( + COALESCE ( 55, - 77, 80 * + - 91 ), + 9 ) WHEN + 44 + 18 * 96 THEN + COUNT ( * ) * 37 * - MIN ( - + 7 ) ELSE 0 + - - 58 * + 1 END col1
----
58

query II rowsort
SELECT 38 AS col0, 98 AS col0
----
38
98

query I rowsort
SELECT ALL NULLIF ( - 93, - + 42 ) + - 49 AS col0
----
-142

query I rowsort
SELECT 17 * + - 18
----
-306

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

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

query I rowsort
SELECT ALL + 83 * + 91 + + 75
----
7628

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2483
SELECT COUNT( * ) AS col2, - 2 * + 74
----
1
-148

skipif mysql # not compatible
query II rowsort label-2483
SELECT COUNT ( * ) AS col2, - 2 * + 74
----
1
-148

query I rowsort
SELECT DISTINCT 0 * + - 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2485
SELECT + + ( - NULLIF ( + 87, + + ( - AVG ( DISTINCT + - 81 ) ) + - - 16 + - + ( - + COUNT( * ) ) DIV + 23 + - + 19 + - + 33 ) ) * COUNT( * ) DIV - + MAX( - 14 ) + - CAST( - - 19 AS SIGNED ) + + 67 + 84 * 44 col0
----
3738

skipif mysql # not compatible
query I rowsort label-2485
SELECT + + ( - NULLIF ( + 87, + + ( - AVG ( DISTINCT + - 81 ) ) + - - 16 + - + ( - + COUNT ( * ) ) / + 23 + - + 19 + - + 33 ) ) * COUNT ( * ) / - + MAX ( - 14 ) + - CAST ( - - 19 AS INTEGER ) + + 67 + 84 * 44 col0
----
3738

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2487
SELECT - COALESCE ( + 58, 99 + + 21, - 25 + - + ( 63 ) ) DIV CAST( + - 40 AS SIGNED ) + - + 34 + - 26 - - + CAST( - 33 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2487
SELECT - COALESCE ( + 58, 99 + + 21, - 25 + - + ( 63 ) ) / CAST ( + - 40 AS INTEGER ) + - + 34 + - 26 - - + CAST ( - 33 AS INTEGER ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2488
SELECT DISTINCT - - 37 * - CAST( - + 19 AS SIGNED ) * + 16 + + - 57 - COUNT( DISTINCT 67 ) + - + 49
----
11141

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT - - 37 * - CAST ( - + 19 AS INTEGER ) * + 16 + + - 57 - COUNT ( DISTINCT 67 ) + - + 49
----
11141

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

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL + - COUNT ( DISTINCT + + 98 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT ALL 45 DIV 39 col0
----
1

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL 45 / 39 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2491
SELECT + COUNT( * ) * + 60 * + - 57 AS col1, 3 * - CAST( NULL AS SIGNED ) * - ( - 87 ) AS col0
----
-3420
NULL

skipif mysql # not compatible
query II rowsort label-2491
SELECT + COUNT ( * ) * + 60 * + - 57 AS col1, 3 * - CAST ( NULL AS INTEGER ) * - ( - 87 ) AS col0
----
-3420
NULL

query II rowsort
SELECT ALL + + 85 AS col1, 90 AS col0
----
85
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2493
SELECT 32 AS col1, - COUNT( * ) DIV - ( 16 ) AS col0
----
32
0

skipif mysql # not compatible
query II rowsort label-2493
SELECT 32 AS col1, - COUNT ( * ) / - ( 16 ) AS col0
----
32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + + ( + + 16 ) * - CASE + COUNT( * ) WHEN 57 * + COALESCE ( + 25, + + 81, - 46 ) * + 9 THEN - - 75 END * 26 / + SUM( + + 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT + + ( + + 16 ) * - CASE + COUNT ( * ) WHEN 57 * + COALESCE ( + 25, + + 81, - 46 ) * + 9 THEN - - 75 END * 26 / + SUM ( + + 57 ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2497
SELECT ALL - + COUNT( + - 7 ) + - 52 AS col0, - 91
----
-53
-91

skipif mysql # not compatible
query II rowsort label-2497
SELECT ALL - + COUNT ( + - 7 ) + - 52 AS col0, - 91
----
-53
-91

query I rowsort
SELECT + 18 * + + 79
----
1422

query I rowsort
SELECT DISTINCT - 50 + 41 col0
----
-9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2501
SELECT + 71 AS col1, SUM( ALL + + 52 ) AS col2
----
71
52

skipif mysql # not compatible
query II rowsort label-2501
SELECT + 71 AS col1, SUM ( ALL + + 52 ) AS col2
----
71
52

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

query I rowsort
SELECT - 10 * - - 15
----
-150

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

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

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

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL MIN ( 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT + MIN( ALL + + 7 ) + - 44
----
-37

skipif mysql # not compatible
query I rowsort label-2506
SELECT + MIN ( ALL + + 7 ) + - 44
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2507
SELECT DISTINCT CASE - 47 WHEN + 98 + MIN( + CAST( - 32 AS SIGNED ) ) THEN + - 40 WHEN + ( - ( + 68 ) ) / + ( - - 4 ) - 6 * - ( + 53 ) + + ( - 32 ) THEN - COALESCE ( CASE SUM( 57 ) WHEN 64 THEN 5 END, COALESCE ( 43, 61 * - 77, - 9 ), 88 + + 61 * 37, - 4 + 51 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT CASE - 47 WHEN + 98 + MIN ( + CAST ( - 32 AS INTEGER ) ) THEN + - 40 WHEN + ( - ( + 68 ) ) / + ( - - 4 ) - 6 * - ( + 53 ) + + ( - 32 ) THEN - COALESCE ( CASE SUM ( 57 ) WHEN 64 THEN 5 END, COALESCE ( 43, 61 * - 77, - 9 ), 88 + + 61 * 37, - 4 + 51 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2508
SELECT - 74 + - SUM( - + 59 ) DIV - 50
----
-75

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 74 + - SUM ( - + 59 ) / - 50
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2509
SELECT - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 98 * - + COUNT( * ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 98 * - + COUNT ( * ) * 76
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2511
SELECT ALL MIN( DISTINCT - - 22 ) AS col2, + 6 AS col1
----
22
6

skipif mysql # not compatible
query II rowsort label-2511
SELECT ALL MIN ( DISTINCT - - 22 ) AS col2, + 6 AS col1
----
22
6

query I rowsort
SELECT - 44 - - - 11 col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT ALL - CASE 90 WHEN COALESCE ( - ( - 84 ), - CAST( + 61 AS SIGNED ) ) THEN + COUNT( * ) * 4 + - 80 END * + COALESCE ( - + CAST( NULL AS SIGNED ), - + 60 * ( - ( + 70 ) ) * + + COUNT( * ) + - - 80 * - 81 ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - CASE 90 WHEN COALESCE ( - ( - 84 ), - CAST ( + 61 AS INTEGER ) ) THEN + COUNT ( * ) * 4 + - 80 END * + COALESCE ( - + CAST ( NULL AS INTEGER ), - + 60 * ( - ( + 70 ) ) * + + COUNT ( * ) + - - 80 * - 81 ) * 74
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT - 20 + + + 68 * - CAST( + ( + - 39 ) AS SIGNED )
----
2632

skipif mysql # not compatible
query I rowsort label-2515
SELECT - 20 + + + 68 * - CAST ( + ( + - 39 ) AS INTEGER )
----
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL - 85 * - + 84 * COUNT( * ) AS col2
----
7140

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - 85 * - + 84 * COUNT ( * ) AS col2
----
7140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2517
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * - 32 * + 80 + - 31 + + - COUNT( * )
----
-2592

skipif mysql # not compatible
query I rowsort label-2517
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * - 32 * + 80 + - 31 + + - COUNT ( * )
----
-2592

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

query I rowsort
SELECT - 90 + - 56 + 75 + ( + 8 ) - + 6 + - 53 col1
----
-122

query II rowsort
SELECT - ( + 96 ), 30 AS col0
----
-96
30

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

query I rowsort
SELECT + - 59 * - ( - + 71 ) + - - 95 AS col2
----
-4094

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - 4 * + 48 + COUNT( * )
----
-191

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 4 * + 48 + COUNT ( * )
----
-191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2524
SELECT DISTINCT ( + 0 ) * + 75 DIV - 41 - - 35 + - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT ( + 0 ) * + 75 / - 41 - - 35 + - COUNT ( * )
----
34

query II rowsort
SELECT - 66 + + - 34 AS col2, + 76
----
-100
76

query I rowsort
SELECT ALL - 39 * - CASE - 87 WHEN 13 THEN - + 69 END + - 34 + 9 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + - 7 + - COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-2528
SELECT + - 7 + - COUNT ( * ) AS col2
----
-8

query I rowsort
SELECT DISTINCT ( + 2 ) * NULLIF ( 11, 76 ) + - + 52
----
-30

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2531
SELECT + 22 + + - 31 DIV + - MIN( DISTINCT - + 23 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2531
SELECT + 22 + + - 31 / + - MIN ( DISTINCT - + 23 ) AS col1
----
21

query I rowsort
SELECT + 28 - + 37 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT ALL 34 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL 34 / - 97
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2534
SELECT ALL 85 col2, COALESCE ( NULLIF ( - 99, - 8 + - + 28 + + - 3 * - 33 * + ( - 41 ) ), - 70 DIV COUNT( * ) ) + - + COUNT( * ) * + + NULLIF ( 76, 18 * - 49 + - CAST( NULL AS SIGNED ) )
----
85
-175

skipif mysql # not compatible
query II rowsort label-2534
SELECT ALL 85 col2, COALESCE ( NULLIF ( - 99, - 8 + - + 28 + + - 3 * - 33 * + ( - 41 ) ), - 70 / COUNT ( * ) ) + - + COUNT ( * ) * + + NULLIF ( 76, 18 * - 49 + - CAST ( NULL AS INTEGER ) )
----
85
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2535
SELECT + 4 + + + COUNT( * ) + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + COALESCE ( - COUNT( * ), CAST( + 51 AS DECIMAL ), + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT + 4 + + + COUNT ( * ) + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + COALESCE ( - COUNT ( * ), CAST ( + 51 AS REAL ), + 9 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT MIN( - 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2537
SELECT MIN ( - 31 ) AS col1
----
-31

query I rowsort
SELECT - 80 + + 42
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT + 92 * - MAX( - 71 ) AS col2
----
6532

skipif mysql # not compatible
query I rowsort label-2539
SELECT + 92 * - MAX ( - 71 ) AS col2
----
6532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2540
SELECT ALL 98 / + 43 * - CAST( NULL AS SIGNED ) / - CAST( NULL AS DECIMAL ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL 98 / + 43 * - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS REAL ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL ( + - 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - 20 + + - MIN( - 6 ) * - ( 31 ) + + 79
----
-127

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 20 + + - MIN ( - 6 ) * - ( 31 ) + + 79
----
-127

query I rowsort
SELECT ALL 26 - + 1
----
25

query I rowsort
SELECT 7 * + 55
----
385

onlyif mysql # aggregate syntax: 
query II rowsort label-2545
SELECT ALL 65 AS col0, + COALESCE ( + COALESCE ( 6, 25, - - MIN( ALL + 65 ) ), - 81 + 94, + - 14 ) * - - COUNT( * ) + - 89
----
65
-83

skipif mysql # not compatible
query II rowsort label-2545
SELECT ALL 65 AS col0, + COALESCE ( + COALESCE ( 6, 25, - - MIN ( ALL + 65 ) ), - 81 + 94, + - 14 ) * - - COUNT ( * ) + - 89
----
65
-83

query I rowsort
SELECT 71 + 60 * - - 1 AS col1
----
131

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

query II rowsort
SELECT + 56 * - 20 + + - ( - + 11 ) + - 80 AS col0, - ( NULLIF ( + 34, + + 16 ) ) * + 79 AS col2
----
-1189
-2686

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT + COUNT( * ), 70 * - + MAX( - 0 ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2549
SELECT + COUNT ( * ), 70 * - + MAX ( - 0 ) AS col0
----
1
0

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

query II rowsort
SELECT 87 AS col2, 91 col1
----
87
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2552
SELECT 71 DIV + - ( - + 79 ) + + 88 * - - COUNT( * ), - 49 AS col1
----
88
-49

skipif mysql # not compatible
query II rowsort label-2552
SELECT 71 / + - ( - + 79 ) + + 88 * - - COUNT ( * ), - 49 AS col1
----
88
-49

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

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - + COUNT ( * ) + + 51 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2554
SELECT - 64 DIV - COUNT( * ) - - - 36 * + 36 * + 25 AS col1
----
-32336

skipif mysql # not compatible
query I rowsort label-2554
SELECT - 64 / - COUNT ( * ) - - - 36 * + 36 * + 25 AS col1
----
-32336

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT - 80 * - 92 + 93 + 87 + 67 + + COUNT( * ) * + 63 * + COUNT( * ) col0
----
7670

skipif mysql # not compatible
query I rowsort label-2555
SELECT - 80 * - 92 + 93 + 87 + 67 + + COUNT ( * ) * + 63 * + COUNT ( * ) col0
----
7670

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL + 16 + - 48 * - MAX( 49 ) * - 16 + 81 AS col1
----
-37535

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + 16 + - 48 * - MAX ( 49 ) * - 16 + 81 AS col1
----
-37535

query II rowsort
SELECT DISTINCT + - 55 * - 17 + - + 65 AS col0, NULLIF ( - + 53, - 72 ) * 76 * + + 6 AS col0
----
870
-24168

query I rowsort
SELECT ALL - + 93 + + 13 - 51 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query II rowsort label-2559
SELECT - COUNT( * ) col0, - CASE - ( + 36 ) WHEN + - 95 THEN - 57 / - 37 + - 0 WHEN - - CASE - 39 WHEN COUNT( ALL + 45 ) + 50 * + - 20 * + 88 THEN + 57 END THEN - 4 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2559
SELECT - COUNT ( * ) col0, - CASE - ( + 36 ) WHEN + - 95 THEN - 57 / - 37 + - 0 WHEN - - CASE - 39 WHEN COUNT ( ALL + 45 ) + 50 * + - 20 * + 88 THEN + 57 END THEN - 4 END
----
-1
NULL

query I rowsort
SELECT ALL - 66 + - - CASE + 90 WHEN + + 90 + 21 THEN 55 + 12 + - 65 ELSE NULL END / - 37 * - 97 * + 5 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2561
SELECT + COUNT ( * ) / + 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT ALL + - MIN( + NULLIF ( + - CAST( NULL AS SIGNED ), + + 80 + + - 84 ) ) + - 74 - - + 86 / - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + - MIN ( + NULLIF ( + - CAST ( NULL AS INTEGER ), + + 80 + + - 84 ) ) + - 74 - - + 86 / - 1
----
NULL

query I rowsort
SELECT ALL - ( - ( + - 39 ) ) col2
----
-39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2565
SELECT DISTINCT + CAST( NULL AS SIGNED ) + SUM( ALL 39 ) + + 99 * 29 AS col1, + 29 AS col0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2565
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + SUM ( ALL 39 ) + + 99 * 29 AS col1, + 29 AS col0
----
NULL
29

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

query I rowsort
SELECT ALL - 31 * + 12
----
-372

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

query I rowsort
SELECT 27 + 11 col1
----
38

query II rowsort
SELECT 76 AS col2, 68
----
76
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2571
SELECT ALL ( + 38 ) - + MAX( + 13 ) * + 3 + - 3 DIV + 74 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL ( + 38 ) - + MAX ( + 13 ) * + 3 + - 3 / + 74 col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2572
SELECT DISTINCT COUNT( * ) * - 84 AS col0, 48 col2
----
-84
48

skipif mysql # not compatible
query II rowsort label-2572
SELECT DISTINCT COUNT ( * ) * - 84 AS col0, 48 col2
----
-84
48

query I rowsort
SELECT ALL - 30 * - 42 AS col0
----
1260

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2575
SELECT ALL 95 AS col2, + NULLIF ( - + 95, + + COUNT( * ) )
----
95
-95

skipif mysql # not compatible
query II rowsort label-2575
SELECT ALL 95 AS col2, + NULLIF ( - + 95, + + COUNT ( * ) )
----
95
-95

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

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

query I rowsort
SELECT 17 + NULLIF ( + 64, - + 70 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT DISTINCT CASE 41 WHEN - 34 * + COUNT( * ) - + CAST( NULL AS SIGNED ) THEN COUNT( + NULLIF ( + 73, - - 24 - - + 3 ) ) / - COUNT( * ) + NULLIF ( 3, COUNT( * ) ) END / + 27 * - AVG ( ALL - 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT CASE 41 WHEN - 34 * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) THEN COUNT ( + NULLIF ( + 73, - - 24 - - + 3 ) ) / - COUNT ( * ) + NULLIF ( 3, COUNT ( * ) ) END / + 27 * - AVG ( ALL - 39 ) AS col1
----
NULL

query I rowsort
SELECT ( + - 8 ) + - 42 AS col2
----
-50

query II rowsort
SELECT ALL 18, 48 AS col1
----
18
48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2582
SELECT DISTINCT ( - 55 ) DIV + 62 + 87 - - + 24 - + - COUNT( * ) * + 31 + - - 93 + - 50 * 77
----
-3615

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT ( - 55 ) / + 62 + 87 - - + 24 - + - COUNT ( * ) * + 31 + - - 93 + - 50 * 77
----
-3615

query I rowsort
SELECT ( - 16 ) - 63
----
-79

query I rowsort
SELECT ( + 99 ) * - + 29
----
-2871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2585
SELECT DISTINCT CAST( - 24 AS SIGNED ) * 28 * - + COUNT( * ) AS col1
----
672

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT CAST ( - 24 AS INTEGER ) * 28 * - + COUNT ( * ) AS col1
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL 37 * + SUM( DISTINCT + 42 ) AS col1
----
1554

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL 37 * + SUM ( DISTINCT + 42 ) AS col1
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT - CASE - AVG ( - 93 ) WHEN + 17 THEN 41 WHEN - 39 THEN NULL ELSE + NULLIF ( + COUNT( * ), - 70 ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2587
SELECT - CASE - AVG ( - 93 ) WHEN + 17 THEN 41 WHEN - 39 THEN NULL ELSE + NULLIF ( + COUNT ( * ), - 70 ) END AS col0
----
-1

query II rowsort
SELECT 53 + - - 46, 88 AS col1
----
99
88

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

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

query I rowsort
SELECT 84 * - 4 * - 81
----
27216

query I rowsort
SELECT + 4 * 30
----
120

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

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

query I rowsort
SELECT + + 76 col1
----
76

query II rowsort
SELECT ALL - + 31 AS col2, + 34 + + 87 AS col1
----
-31
121

query I rowsort
SELECT DISTINCT 91 * 88 + - + 85 AS col2
----
7923

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

query II rowsort
SELECT + - 53 AS col1, 3 AS col2
----
-53
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2598
SELECT ALL - 26 DIV + 85 + - MAX( ALL + 11 ) * 53
----
-583

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL - 26 / + 85 + - MAX ( ALL + 11 ) * 53
----
-583

query I rowsort
SELECT + - 37 * + 50 * - 62 + - 86 * + 60 AS col2
----
109540

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT ALL - - 81, - MAX( + 10 ) AS col1
----
81
-10

skipif mysql # not compatible
query II rowsort label-2600
SELECT ALL - - 81, - MAX ( + 10 ) AS col1
----
81
-10

query I rowsort
SELECT 29 * - 52 + - - 25
----
-1483

query I rowsort
SELECT + ( - 86 ) + 70 + 50 * - 26 AS col2
----
-1316

query II rowsort
SELECT ALL + 44 - + 61 + + 45 + + 45, ( - 62 ) + + 9 * + + 76 + + 93 AS col2
----
73
715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT CASE - CAST( - 27 AS SIGNED ) WHEN + CASE + - 17 WHEN - 34 THEN - 22 END + - COUNT( * ) + + 28 + - CASE - + CASE + 96 WHEN - 36 THEN NULL WHEN + 65 + - 26 * 23 THEN NULL WHEN + + 49 + - ( + + 42 ) / + - 73 THEN 34 END WHEN + 72 THEN + 6 ELSE 50 + 85 END THEN + 47 - - 32 WHEN + 35 THEN NULLIF ( + 77, + 17 ) ELSE - 77 * + 26 - 98 * - 90 END AS col1
----
6818

skipif mysql # not compatible
query I rowsort label-2604
SELECT CASE - CAST ( - 27 AS INTEGER ) WHEN + CASE + - 17 WHEN - 34 THEN - 22 END + - COUNT ( * ) + + 28 + - CASE - + CASE + 96 WHEN - 36 THEN NULL WHEN + 65 + - 26 * 23 THEN NULL WHEN + + 49 + - ( + + 42 ) / + - 73 THEN 34 END WHEN + 72 THEN + 6 ELSE 50 + 85 END THEN + 47 - - 32 WHEN + 35 THEN NULLIF ( + 77, + 17 ) ELSE - 77 * + 26 - 98 * - 90 END AS col1
----
6818

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT 8 + + 13 + 63 DIV 66 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2605
SELECT 8 + + 13 + 63 / 66 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT - 6 * 28 * + - COUNT( * ) + + 22
----
190

skipif mysql # not compatible
query I rowsort label-2606
SELECT - 6 * 28 * + - COUNT ( * ) + + 22
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT 62 * - 77 + - CASE - - AVG ( DISTINCT - 70 ) WHEN 7 THEN NULL WHEN COUNT( * ) * + MIN( ALL + 66 ) DIV - - 55 * - 85 + + + 87 * - + NULLIF ( + ( 66 ), - 9 * - + 86 ) THEN + 32 * + 1 DIV + + 92 - ( - 77 ) * NULLIF ( 37, 25 * 66 ) ELSE - 81 END + - NULLIF ( 30, ( - 18 ) ) * 82
----
-7153

skipif mysql # not compatible
query I rowsort label-2607
SELECT 62 * - 77 + - CASE - - AVG ( DISTINCT - 70 ) WHEN 7 THEN NULL WHEN COUNT ( * ) * + MIN ( ALL + 66 ) / - - 55 * - 85 + + + 87 * - + NULLIF ( + ( 66 ), - 9 * - + 86 ) THEN + 32 * + 1 / + + 92 - ( - 77 ) * NULLIF ( 37, 25 * 66 ) ELSE - 81 END + - NULLIF ( 30, ( - 18 ) ) * 82
----
-7153

onlyif mysql # DIV for integer division: 
query II rowsort label-2608
SELECT DISTINCT + 71 DIV + 3, 93 AS col0
----
23
93

skipif mysql # not compatible
query II rowsort label-2608
SELECT DISTINCT + 71 / + 3, 93 AS col0
----
23
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2609
SELECT ALL SUM( - 34 ) AS col2, + 13 * + - COUNT( ALL + 58 ), - - MAX( - 8 ) + CAST( - 28 AS SIGNED ) AS col1
----
-34
-13
-36

skipif mysql # not compatible
query III rowsort label-2609
SELECT ALL SUM ( - 34 ) AS col2, + 13 * + - COUNT ( ALL + 58 ), - - MAX ( - 8 ) + CAST ( - 28 AS INTEGER ) AS col1
----
-34
-13
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT ALL COALESCE ( COALESCE ( - 91, CAST( 50 AS SIGNED ) ), 16 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL COALESCE ( COALESCE ( - 91, CAST ( 50 AS INTEGER ) ), 16 ) AS col2
----
-91

query I rowsort
SELECT - 49 * - 60 + + 61
----
3001

query I rowsort
SELECT + 15 + + - 34
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT ALL COALESCE ( 70, 54 ) AS col1, - COUNT( * ) + + NULLIF ( 26, + 97 )
----
70
25

skipif mysql # not compatible
query II rowsort label-2613
SELECT ALL COALESCE ( 70, 54 ) AS col1, - COUNT ( * ) + + NULLIF ( 26, + 97 )
----
70
25

query I rowsort
SELECT - 61 * 4 col0
----
-244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT ALL 90 * - 68 * 95 * AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL 90 * - 68 * 95 * AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL 25 + - ( - 69 ) * 31 + 25 * - - 80 + + MAX( ALL + - 58 ) * - 64
----
7876

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL 25 + - ( - 69 ) * 31 + 25 * - - 80 + + MAX ( ALL + - 58 ) * - 64
----
7876

query I rowsort
SELECT DISTINCT NULLIF ( + 32, - + 32 )
----
32

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

query I rowsort
SELECT - - 35 + 54
----
89

query I rowsort
SELECT - 10 * - + 66 + 87
----
747

query I rowsort
SELECT + 2 * - 21
----
-42

query I rowsort
SELECT ALL + + 39 + - 46 * + 56 AS col1
----
-2537

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2624
SELECT ALL AVG ( - CAST( + CASE - 91 WHEN - 44 + + 66 / - 34 THEN + - 59 + - - 89 + - 77 ELSE NULL END AS DECIMAL ) ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL AVG ( - CAST ( + CASE - 91 WHEN - 44 + + 66 / - 34 THEN + - 59 + - - 89 + - 77 ELSE NULL END AS REAL ) ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT + 55 + - COUNT( * ) + + MAX( DISTINCT + 30 ) DIV 14
----
56

skipif mysql # not compatible
query I rowsort label-2625
SELECT + 55 + - COUNT ( * ) + + MAX ( DISTINCT + 30 ) / 14
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + 9 * 27 + - 29 + - + COUNT( * ) + - ( 69 )
----
144

skipif mysql # not compatible
query I rowsort label-2626
SELECT + 9 * 27 + - 29 + - + COUNT ( * ) + - ( 69 )
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2627
SELECT + SUM( + 73 ) DIV + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2627
SELECT + SUM ( + 73 ) / + COUNT ( * )
----
73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2629
SELECT DISTINCT - CASE WHEN + 57 IS NOT NULL THEN - 29 - + 46 + 62 + 59 * + 4 * 35 + + 20 * + - ( + + CASE 59 WHEN + 3 THEN + 49 - - 51 ELSE + 67 END ) ELSE - MIN( + + 86 ) END * - + CAST( NULL AS SIGNED ), - 85 AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2629
SELECT DISTINCT - CASE WHEN + 57 IS NOT NULL THEN - 29 - + 46 + 62 + 59 * + 4 * 35 + + 20 * + - ( + + CASE 59 WHEN + 3 THEN + 49 - - 51 ELSE + 67 END ) ELSE - MIN ( + + 86 ) END * - + CAST ( NULL AS INTEGER ), - 85 AS col0
----
NULL
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL + MAX( - + 49 ) * 79 - - 31 AS col2
----
-3840

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL + MAX ( - + 49 ) * 79 - - 31 AS col2
----
-3840

query I rowsort
SELECT - - 78 + + 6 + 21 AS col2
----
105

query II rowsort
SELECT ALL + ( - + 92 ) AS col2, + 48 * - - 28
----
-92
1344

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT DISTINCT + CASE + + 3 WHEN - 78 THEN - - COALESCE ( 64, + 44 - - - 41 ) WHEN + CASE + 20 WHEN - 23 + - 63 THEN NULL WHEN 72 THEN ( CASE + - COUNT( * ) WHEN - COUNT( * ) THEN - CASE - + 97 WHEN - - 57 * + 73 THEN - 96 / + COUNT( * ) - - CAST( - MAX( ALL + CASE + 58 WHEN 73 + - 77 THEN - 88 * - 12 WHEN 36 THEN 97 END ) AS SIGNED ) ELSE COUNT( * ) END WHEN - 23 THEN NULL END ) + + 69 ELSE NULL END + 27 * 97 THEN + 13 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + CASE + + 3 WHEN - 78 THEN - - COALESCE ( 64, + 44 - - - 41 ) WHEN + CASE + 20 WHEN - 23 + - 63 THEN NULL WHEN 72 THEN ( CASE + - COUNT ( * ) WHEN - COUNT ( * ) THEN - CASE - + 97 WHEN - - 57 * + 73 THEN - 96 / + COUNT ( * ) - - CAST ( - MAX ( ALL + CASE + 58 WHEN 73 + - 77 THEN - 88 * - 12 WHEN 36 THEN 97 END ) AS INTEGER ) ELSE COUNT ( * ) END WHEN - 23 THEN NULL END ) + + 69 ELSE NULL END + 27 * 97 THEN + 13 END AS col1
----
NULL

query I rowsort
SELECT ALL + 79 * 5 - 39 AS col1
----
356

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL + COUNT( * ) * 58 - + ( 92 ) * - 72
----
6682

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + COUNT ( * ) * 58 - + ( 92 ) * - 72
----
6682

onlyif mysql # DIV for integer division: 
query II rowsort label-2639
SELECT DISTINCT ( - + 82 ) DIV - - ( + 49 ) AS col2, + 89
----
-1
89

skipif mysql # not compatible
query II rowsort label-2639
SELECT DISTINCT ( - + 82 ) / - - ( + 49 ) AS col2, + 89
----
-1
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2640
SELECT - AVG ( ALL 26 ) * + + COUNT( * ) * + ( - 47 ) * + CASE COUNT( * ) WHEN + + COALESCE ( + COUNT( * ), + 45, + 7 ) THEN NULL WHEN - 58 THEN + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT - AVG ( ALL 26 ) * + + COUNT ( * ) * + ( - 47 ) * + CASE COUNT ( * ) WHEN + + COALESCE ( + COUNT ( * ), + 45, + 7 ) THEN NULL WHEN - 58 THEN + CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2641
SELECT NULLIF ( - 73, - 47 ), 24 DIV - - 32 * NULLIF ( - - 6, - 66 + + - 31 ) col0
----
-73
0

skipif mysql # not compatible
query II rowsort label-2641
SELECT NULLIF ( - 73, - 47 ), 24 / - - 32 * NULLIF ( - - 6, - 66 + + - 31 ) col0
----
-73
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT - 3 * - + 95 DIV - ( - 46 )
----
6

skipif mysql # not compatible
query I rowsort label-2642
SELECT - 3 * - + 95 / - ( - 46 )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT - 62 * 69 DIV + + 90 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2643
SELECT - 62 * 69 / + + 90 AS col0
----
-47

query I rowsort
SELECT ALL 67 * - + 99 AS col2
----
-6633

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

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

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

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

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

query I rowsort
SELECT ALL - 95 * + 90 AS col0
----
-8550

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT - 22 + - SUM( DISTINCT - 42 )
----
20

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT - 22 + - SUM ( DISTINCT - 42 )
----
20

query I rowsort
SELECT - 69 * 14 * - 9 * + 95 + - 81 AS col0
----
825849

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

skipif mysql # not compatible
query I rowsort label-2651
SELECT - SUM ( + 32 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2652
SELECT ALL - 5 + 71 - 41 + + 46 + + CAST( - - COUNT( * ) AS SIGNED ) + + COUNT( * ) * - 23 * + 34 AS col1
----
-710

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL - 5 + 71 - 41 + + 46 + + CAST ( - - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * - 23 * + 34 AS col1
----
-710

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

query I rowsort
SELECT ALL + - 78 * + - 20 col1
----
1560

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL - 51 + + 46 - - ( - COUNT( * ) ) * - CASE - - 19 WHEN - + 7 + + COUNT( * ) + + + 16 THEN NULL ELSE + + 52 END + + 32 col1
----
79

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - 51 + + 46 - - ( - COUNT ( * ) ) * - CASE - - 19 WHEN - + 7 + + COUNT ( * ) + + + 16 THEN NULL ELSE + + 52 END + + 32 col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT ALL 74 + + 29 + 3 + - + COUNT( * ) AS col0, 18 AS col2
----
105
18

skipif mysql # not compatible
query II rowsort label-2657
SELECT ALL 74 + + 29 + 3 + - + COUNT ( * ) AS col0, 18 AS col2
----
105
18

query I rowsort
SELECT - 57 + + 2 AS col2
----
-55

query I rowsort
SELECT DISTINCT + + 36 * 32
----
1152

query I rowsort
SELECT ALL CASE 57 WHEN 4 * - - 99 THEN - 93 + AVG ( 10 ) * + 90 END col0
----
NULL

query I rowsort
SELECT - - 4 + - 17
----
-13

query I rowsort
SELECT + - ( - 2 ) * + - 76
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-2663
SELECT + 89 DIV + + ( + 18 ) + - 41 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2663
SELECT + 89 / + + ( + 18 ) + - 41 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT SUM( ALL + - 21 ) - - 48
----
27

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT SUM ( ALL + - 21 ) - - 48
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT + - 49 - COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-2666
SELECT + - 49 - COUNT ( * ) AS col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT ALL 76 DIV + 2 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL 76 / + 2 AS col0
----
38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT DISTINCT - - 69 DIV + + 29 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT - - 69 / + + 29 AS col1
----
2

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT + + 38 AS col0, COALESCE ( + MIN( DISTINCT + - 72 ), + 6 ) + 5 + 35 * - - 55 * + 20 * MAX( ALL + ( 63 ) ) + + - 77 AS col2
----
38
2425356

skipif mysql # not compatible
query II rowsort label-2671
SELECT + + 38 AS col0, COALESCE ( + MIN ( DISTINCT + - 72 ), + 6 ) + 5 + 35 * - - 55 * + 20 * MAX ( ALL + ( 63 ) ) + + - 77 AS col2
----
38
2425356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2672
SELECT ALL COALESCE ( - - 44, COUNT( * ) ) DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL COALESCE ( - - 44, COUNT ( * ) ) / - 88 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT + ( + CAST( NULL AS SIGNED ) ) * + 20 / - 60 + - 12 + + 32 * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + 20 / - 60 + - 12 + + 32 * - 61
----
NULL

query I rowsort
SELECT DISTINCT 69 * - + 78 AS col0
----
-5382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2675
SELECT ALL ( + - 40 ) * + - ( + - CASE + 87 WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN NULL WHEN - + 16 THEN COUNT( * ) ELSE NULL END ) col0, COUNT( + + 38 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL ( + - 40 ) * + - ( + - CASE + 87 WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL WHEN - + 16 THEN COUNT ( * ) ELSE NULL END ) col0, COUNT ( + + 38 ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2676
SELECT ( - - 88 ) - CAST( - 72 AS SIGNED ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-2676
SELECT ( - - 88 ) - CAST ( - 72 AS INTEGER ) AS col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT 98 * COALESCE ( ( + COALESCE ( - 65, COUNT( * ), + COUNT( ALL + 29 ) ) ), COUNT( * ) ) + + 50 + - 2
----
-6322

skipif mysql # not compatible
query I rowsort label-2677
SELECT 98 * COALESCE ( ( + COALESCE ( - 65, COUNT ( * ), + COUNT ( ALL + 29 ) ) ), COUNT ( * ) ) + + 50 + - 2
----
-6322

query I rowsort
SELECT 62 * 3 - - 29 + + 89 * 14 AS col2
----
1461

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2679
SELECT ( COUNT( * ) ) + 47 * - 29 + CAST( NULL AS DECIMAL ) + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT ( COUNT ( * ) ) + 47 * - 29 + CAST ( NULL AS REAL ) + + 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2680
SELECT ALL - 36 + - 25 * - ( + - 52 ) + - CAST( NULL AS SIGNED ) + + 45 DIV - + 10, 67 + - COALESCE ( - 51, - 95 * + - 43, ( + - 27 ) + 58 + - + 9 ) + + ( - SUM( + + 68 ) ) * + 38 * - 75 DIV - COUNT( * ) AS col0, + 94 AS col0
----
NULL
-193682
94

skipif mysql # not compatible
query III rowsort label-2680
SELECT ALL - 36 + - 25 * - ( + - 52 ) + - CAST ( NULL AS INTEGER ) + + 45 / - + 10, 67 + - COALESCE ( - 51, - 95 * + - 43, ( + - 27 ) + 58 + - + 9 ) + + ( - SUM ( + + 68 ) ) * + 38 * - 75 / - COUNT ( * ) AS col0, + 94 AS col0
----
NULL
-193682
94

query I rowsort
SELECT ALL 14 + + 30
----
44

query I rowsort
SELECT 42 * - 98 AS col2
----
-4116

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2684
SELECT 61 DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-2684
SELECT 61 / + + 99
----
0

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

query II rowsort
SELECT ALL - 63 * - 68 col1, ( + 62 )
----
4284
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT 28 DIV COUNT( * ) + 75
----
103

skipif mysql # not compatible
query I rowsort label-2687
SELECT 28 / COUNT ( * ) + 75
----
103

query I rowsort
SELECT + ( 31 ) * + 0 * + 90 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT ( + MIN( 90 ) ) DIV 43 + 32
----
34

skipif mysql # not compatible
query I rowsort label-2689
SELECT ( + MIN ( 90 ) ) / 43 + 32
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT COUNT( * ) + - 26
----
-25

skipif mysql # not compatible
query I rowsort label-2690
SELECT COUNT ( * ) + - 26
----
-25

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

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + 6 - + COUNT ( * ) + - + COUNT ( * ) AS col2
----
4

query I rowsort
SELECT DISTINCT + 45 - - 63 AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT ALL - - 67 * - CASE - + 44 WHEN + - COUNT( * ) - 61 * 97 + + 26 THEN NULL WHEN + 68 DIV + - CASE - - 29 WHEN - + 89 THEN NULL ELSE - ( 82 ) END + + + 12 THEN - NULLIF ( - 20, + COUNT( - + 10 ) - COALESCE ( - NULLIF ( - 39, - COALESCE ( - + 55, - - 69 ) DIV + 36 + + 77 * 88 ), + 84 ) * + COUNT( * ) ) DIV + 56 + - 84 * + ( 72 * 8 ) ELSE - 97 * 19 END
----
123481

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - - 67 * - CASE - + 44 WHEN + - COUNT ( * ) - 61 * 97 + + 26 THEN NULL WHEN + 68 / + - CASE - - 29 WHEN - + 89 THEN NULL ELSE - ( 82 ) END + + + 12 THEN - NULLIF ( - 20, + COUNT ( - + 10 ) - COALESCE ( - NULLIF ( - 39, - COALESCE ( - + 55, - - 69 ) / + 36 + + 77 * 88 ), + 84 ) * + COUNT ( * ) ) / + 56 + - 84 * + ( 72 * 8 ) ELSE - 97 * 19 END
----
123481

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT - 54 * SUM( ALL + 71 )
----
-3834

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT - 54 * SUM ( ALL + 71 )
----
-3834

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

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

query I rowsort
SELECT 99 * - + 13 + + ( - - 48 ) - + + 20 * - 23 * - 57 AS col1
----
-27459

onlyif mysql # aggregate syntax: 
query II rowsort label-2697
SELECT ALL - - MAX( ALL + 73 ) AS col2, - 55 AS col0
----
73
-55

skipif mysql # not compatible
query II rowsort label-2697
SELECT ALL - - MAX ( ALL + 73 ) AS col2, - 55 AS col0
----
73
-55

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

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

query II rowsort
SELECT 26 * - 64 * 27, + 62 - + 15 AS col2
----
-44928
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT 62 + + 0 * + COUNT( DISTINCT 37 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-2700
SELECT 62 + + 0 * + COUNT ( DISTINCT 37 ) col1
----
62

query I rowsort
SELECT DISTINCT 15 + + 63 + + 9 * 8 col1
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT DISTINCT - CAST( + CASE 5 WHEN 27 THEN NULL WHEN 86 THEN CASE + 26 WHEN + + 48 THEN NULL WHEN 44 THEN - + 0 / 34 END END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - CAST ( + CASE 5 WHEN 27 THEN NULL WHEN 86 THEN CASE + 26 WHEN + + 48 THEN NULL WHEN 44 THEN - + 0 / 34 END END AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 68 * - - 85
----
5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 64 - COALESCE ( + - 87, ( SUM( DISTINCT 89 ) ) ) * 4 * 51 * + ( + ( + - 89 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 64 - COALESCE ( + - 87, ( SUM ( DISTINCT 89 ) ) ) * 4 * 51 * + ( + ( + - 89 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 14 + - 33 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2707
SELECT 42 - COUNT( * ) + - 96 AS col2, 99 AS col2
----
-55
99

skipif mysql # not compatible
query II rowsort label-2707
SELECT 42 - COUNT ( * ) + - 96 AS col2, 99 AS col2
----
-55
99

query I rowsort
SELECT CASE + 31 WHEN - + 38 THEN + 3 END * + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2709
SELECT 80, COUNT( 66 ) + 12 * + 49 + CASE - - 6 WHEN - - 44 + - - 19 THEN + 44 / - + 14 * + ( + 47 ) + - 68 ELSE NULL END + + - 71 AS col1
----
80
NULL

skipif mysql # not compatible
query II rowsort label-2709
SELECT 80, COUNT ( 66 ) + 12 * + 49 + CASE - - 6 WHEN - - 44 + - - 19 THEN + 44 / - + 14 * + ( + 47 ) + - 68 ELSE NULL END + + - 71 AS col1
----
80
NULL

query I rowsort
SELECT 51 * - - 74
----
3774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2711
SELECT 87 * CASE + NULLIF ( + + 6, + NULLIF ( 47, CAST( - 97 AS DECIMAL ) * - 14 + + 36 ) + + SUM( - 72 ) ) WHEN + 21 THEN NULL ELSE + ( + 44 ) END AS col2, + 24 * + CAST( 40 AS SIGNED ) AS col0, + CASE - 18 WHEN - 61 THEN - + 39 / + 12 + - 10 END + + + 8 * + 14
----
3828
960
NULL

skipif mysql # not compatible
query III rowsort label-2711
SELECT 87 * CASE + NULLIF ( + + 6, + NULLIF ( 47, CAST ( - 97 AS REAL ) * - 14 + + 36 ) + + SUM ( - 72 ) ) WHEN + 21 THEN NULL ELSE + ( + 44 ) END AS col2, + 24 * + CAST ( 40 AS INTEGER ) AS col0, + CASE - 18 WHEN - 61 THEN - + 39 / + 12 + - 10 END + + + 8 * + 14
----
3828
960
NULL

query I rowsort
SELECT ALL 60 - - 92 AS col0
----
152

query I rowsort
SELECT DISTINCT 47 - 68 + + + 17 + + 94 * + 95 * + - 97
----
-866214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2714
SELECT ALL CASE - - 36 WHEN 0 THEN COUNT( * ) WHEN 31 THEN - 45 + - + CAST( NULL AS SIGNED ) END - + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL CASE - - 36 WHEN 0 THEN COUNT ( * ) WHEN 31 THEN - 45 + - + CAST ( NULL AS INTEGER ) END - + 56 AS col0
----
NULL

query I rowsort
SELECT 73 * + 49 AS col1
----
3577

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT 76 + - - 80 * - COALESCE ( + + ( + 64 ), 63 * 43 ) - - - 58 + COUNT( * ) AS col1
----
-5101

skipif mysql # not compatible
query I rowsort label-2716
SELECT 76 + - - 80 * - COALESCE ( + + ( + 64 ), 63 * 43 ) - - - 58 + COUNT ( * ) AS col1
----
-5101

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

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

query I rowsort
SELECT + 71 + 27
----
98

query I rowsort
SELECT DISTINCT 80 * - 3 + + - ( 65 ) AS col1
----
-305

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2721
SELECT 45 DIV 64 * - + 84, 0 * - MAX( ALL + 2 ) AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-2721
SELECT 45 / 64 * - + 84, 0 * - MAX ( ALL + 2 ) AS col0
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT - 64 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-2722
SELECT - 64 / - 84
----
0

query I rowsort
SELECT + + 44 - + 73 AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT DISTINCT + - 2 DIV + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT + - 2 / + 89 AS col0
----
0

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

query I rowsort
SELECT COALESCE ( + 3, - 54 - - - 29 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2727
SELECT + 80 AS col2, - 69 * CAST( - 72 AS SIGNED ) AS col0
----
80
4968

skipif mysql # not compatible
query II rowsort label-2727
SELECT + 80 AS col2, - 69 * CAST ( - 72 AS INTEGER ) AS col0
----
80
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - 51 + + COUNT( * ) * + ( + - 39 ) + MAX( + 13 ) + - 44 * - + COUNT( * ) + - 64 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2728
SELECT - 51 + + COUNT ( * ) * + ( + - 39 ) + MAX ( + 13 ) + - 44 * - + COUNT ( * ) + - 64 AS col2
----
-97

query I rowsort
SELECT ALL 95 * + 77 + 75 AS col2
----
7390

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT DISTINCT - COUNT( + + ( - 42 ) ) * 21 + + 72 + - 70
----
-19

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT - COUNT ( + + ( - 42 ) ) * 21 + + 72 + - 70
----
-19

query I rowsort
SELECT ALL + NULLIF ( + - 26, - + 41 ) col2
----
-26

query I rowsort
SELECT - 32 * - - 9 * + 55
----
-15840

query I rowsort
SELECT ALL - 55 * + - ( - ( - 13 ) ) + - + 56
----
659

query II rowsort
SELECT DISTINCT + ( + - 63 ), + 52 AS col1
----
-63
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT 36 * - 6 * - 74 * + 0 + - COUNT( * ) - - COUNT( * ) * 95 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2735
SELECT 36 * - 6 * - 74 * + 0 + - COUNT ( * ) - - COUNT ( * ) * 95 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT + ( + - ( + + 27 ) ) / - + 84 + + - 2 + 77 * - + ( CAST( NULL AS SIGNED ) ) + + - ( 10 ) * + SUM( - 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT + ( + - ( + + 27 ) ) / - + 84 + + - 2 + 77 * - + ( CAST ( NULL AS INTEGER ) ) + + - ( 10 ) * + SUM ( - 90 ) AS col1
----
NULL

query I rowsort
SELECT - 73 + 17
----
-56

query I rowsort
SELECT NULLIF ( + - 54, 47 * + - ( 74 ) ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT + 65 AS col2, 35 + CASE + + 92 WHEN + AVG ( 4 ) + - - 13 * - + ( - 46 ) / ( COALESCE ( - 97, 63, + 36 ) ) THEN + 32 - + 38 END + - - 28 + + COUNT( * ) + + 70 * + MIN( ALL - - 18 ) * COUNT( - 60 ) / - - 21 + - - 43 + 82 * + 84 * - COUNT( * )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-2739
SELECT + 65 AS col2, 35 + CASE + + 92 WHEN + AVG ( 4 ) + - - 13 * - + ( - 46 ) / ( COALESCE ( - 97, 63, + 36 ) ) THEN + 32 - + 38 END + - - 28 + + COUNT ( * ) + + 70 * + MIN ( ALL - - 18 ) * COUNT ( - 60 ) / - - 21 + - - 43 + 82 * + 84 * - COUNT ( * )
----
65
NULL

query I rowsort
SELECT ALL + COALESCE ( ( + 85 ), 40 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT ALL + 15, COUNT( * ) + + - 57 AS col2
----
15
-56

skipif mysql # not compatible
query II rowsort label-2741
SELECT ALL + 15, COUNT ( * ) + + - 57 AS col2
----
15
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT DISTINCT + 92 DIV - 12 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT + 92 / - 12 AS col2
----
-7

query I rowsort
SELECT ALL 54 * 94
----
5076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT + 10 + + - 71 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT + 10 + + - 71 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2745
SELECT - 49 DIV + - COUNT( * ) + - 41
----
8

skipif mysql # not compatible
query I rowsort label-2745
SELECT - 49 / + - COUNT ( * ) + - 41
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT - MIN( DISTINCT + 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2746
SELECT - MIN ( DISTINCT + 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT + + SUM( DISTINCT 59 ) * 56 AS col1
----
3304

skipif mysql # not compatible
query I rowsort label-2747
SELECT + + SUM ( DISTINCT 59 ) * 56 AS col1
----
3304

query I rowsort
SELECT ALL + 81 * - 34 * - 9 * - 48
----
-1189728

query I rowsort
SELECT - - 90 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT + - 11 + 2 * + COUNT( * ) + - + 1 - + MIN( + ( + 6 ) ) + - - 78 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2750
SELECT + - 11 + 2 * + COUNT ( * ) + - + 1 - + MIN ( + ( + 6 ) ) + - - 78 AS col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2751
SELECT DISTINCT + MAX( - + 48 ) AS col2, 26 * - 5 + + 10 col2
----
-48
-120

skipif mysql # not compatible
query II rowsort label-2751
SELECT DISTINCT + MAX ( - + 48 ) AS col2, 26 * - 5 + + 10 col2
----
-48
-120

query I rowsort
SELECT + - ( + - 59 ) * + - 85 AS col0
----
-5015

query II rowsort
SELECT ALL 47 AS col0, + 75 * - 62 * + 55
----
47
-255750

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2754
SELECT COUNT( * ) AS col1, - CAST( NULL AS DECIMAL ) * - 37 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2754
SELECT COUNT ( * ) AS col1, - CAST ( NULL AS REAL ) * - 37 AS col1
----
1
NULL

query II rowsort
SELECT ALL - 57 AS col2, 77
----
-57
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT DISTINCT CAST( + COALESCE ( + COALESCE ( + CAST( NULL AS SIGNED ), 90 * + 64 - - 28 ), + 67 ) AS SIGNED )
----
5788

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT CAST ( + COALESCE ( + COALESCE ( + CAST ( NULL AS INTEGER ), 90 * + 64 - - 28 ), + 67 ) AS INTEGER )
----
5788

query I rowsort
SELECT ALL 65 * + 16 * - 38
----
-39520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT + 54 + COUNT( * ) + - + 70 + - + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + 54 + COUNT ( * ) + - + 70 + - + COUNT ( * )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT CAST( - CAST( + 86 AS SIGNED ) AS SIGNED ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-2760
SELECT CAST ( - CAST ( + 86 AS INTEGER ) AS INTEGER ) AS col2
----
-86

query I rowsort
SELECT ALL + 4 * + 8 AS col1
----
32

query I rowsort
SELECT + + 99 + 94 + - 54
----
139

query I rowsort
SELECT - + 93 + + 28 * + - 71 col1
----
-2081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2764
SELECT DISTINCT 50 + CASE + - 27 WHEN - 29 THEN + 30 * COALESCE ( + MAX( DISTINCT - 90 ), + - 96 + + + 60 + ( - CAST( - 38 AS SIGNED ) ) ) * + COUNT( * ) WHEN - 88 - - 97 THEN - 88 + - 87 + 25 + - 59 * + ( 2 ) + - SUM( ALL + + 11 ) * + 66 * CAST( NULL AS SIGNED ) ELSE NULL END * + NULLIF ( + MAX( - 35 ), CAST( 86 AS DECIMAL ) + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT 50 + CASE + - 27 WHEN - 29 THEN + 30 * COALESCE ( + MAX ( DISTINCT - 90 ), + - 96 + + + 60 + ( - CAST ( - 38 AS INTEGER ) ) ) * + COUNT ( * ) WHEN - 88 - - 97 THEN - 88 + - 87 + 25 + - 59 * + ( 2 ) + - SUM ( ALL + + 11 ) * + 66 * CAST ( NULL AS INTEGER ) ELSE NULL END * + NULLIF ( + MAX ( - 35 ), CAST ( 86 AS REAL ) + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL CASE - 87 WHEN - 73 * + - 56 THEN - 25 + - 30 WHEN - 66 THEN - ( - COUNT( * ) ) + + + 83 WHEN - 47 * + 1 THEN - + 56 END + + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL CASE - 87 WHEN - 73 * + - 56 THEN - 25 + - 30 WHEN - 66 THEN - ( - COUNT ( * ) ) + + + 83 WHEN - 47 * + 1 THEN - + 56 END + + 60 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( + 61 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL SUM( DISTINCT + + 88 ) + - COALESCE ( 80, + COUNT( * ) ) - + - 3 * + - 12 * 3
----
-100

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL SUM ( DISTINCT + + 88 ) + - COALESCE ( 80, + COUNT ( * ) ) - + - 3 * + - 12 * 3
----
-100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2768
SELECT + 47 * CAST( + 33 AS SIGNED ) + + 78 * 63 - 63 DIV - 71
----
6465

skipif mysql # not compatible
query I rowsort label-2768
SELECT + 47 * CAST ( + 33 AS INTEGER ) + + 78 * 63 - 63 / - 71
----
6465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT ALL - 11 DIV + 34 + - 81 + - COALESCE ( - MAX( + + NULLIF ( + - 34, 92 ) ), - 74 )
----
-115

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - 11 / + 34 + - 81 + - COALESCE ( - MAX ( + + NULLIF ( + - 34, 92 ) ), - 74 )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + COUNT( * ) * + - 51 col1
----
-51

skipif mysql # not compatible
query I rowsort label-2770
SELECT + COUNT ( * ) * + - 51 col1
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL + 77 / - + ( + - CASE 80 WHEN + NULLIF ( + - 59, - - 65 ) + - + COUNT( * ) THEN + 25 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + 77 / - + ( + - CASE 80 WHEN + NULLIF ( + - 59, - - 65 ) + - + COUNT ( * ) THEN + 25 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2773
SELECT CAST( + 92 AS SIGNED ), - 30 * 9 + 94 AS col2
----
92
-176

skipif mysql # not compatible
query II rowsort label-2773
SELECT CAST ( + 92 AS INTEGER ), - 30 * 9 + 94 AS col2
----
92
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT - 3 + CASE + + COALESCE ( + 73, - 60 ) WHEN 78 THEN NULL WHEN + 24 THEN + - 99 * - 23 + + - MIN( ALL + - 80 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT - 3 + CASE + + COALESCE ( + 73, - 60 ) WHEN 78 THEN NULL WHEN + 24 THEN + - 99 * - 23 + + - MIN ( ALL + - 80 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2775
SELECT ALL 15 DIV + NULLIF ( - COUNT( ALL - 93 ), - 28 ) - 12
----
-27

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL 15 / + NULLIF ( - COUNT ( ALL - 93 ), - 28 ) - 12
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT - SUM( 33 ) * - 45
----
1485

skipif mysql # not compatible
query I rowsort label-2776
SELECT - SUM ( 33 ) * - 45
----
1485

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT DISTINCT 90 DIV + + 6 - - 9 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT 90 / + + 6 - - 9 AS col2
----
24

query I rowsort
SELECT - COALESCE ( + + 5, + 16 ) * - 19
----
95

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT 6 * + - 5 - - COALESCE ( + 98, ( + - COUNT( * ) ) * + 62 ) AS col0, 46 * COUNT( * ) AS col1
----
68
46

skipif mysql # not compatible
query II rowsort label-2780
SELECT 6 * + - 5 - - COALESCE ( + 98, ( + - COUNT ( * ) ) * + 62 ) AS col0, 46 * COUNT ( * ) AS col1
----
68
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT - 95 * COALESCE ( - 44, 56 DIV - - 16 ) col2
----
4180

skipif mysql # not compatible
query I rowsort label-2781
SELECT - 95 * COALESCE ( - 44, 56 / - - 16 ) col2
----
4180

query I rowsort
SELECT - - 21 - + + 94 * + + 3 AS col1
----
-261

onlyif mysql # DIV for integer division: 
query I rowsort label-2783
SELECT - - 15 DIV + 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2783
SELECT - - 15 / + 42 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2784
SELECT MIN ( ALL 4 )
----
4

query I rowsort
SELECT ALL + COALESCE ( - - 38, + 86 )
----
38

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

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

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

skipif mysql # not compatible
query I rowsort label-2787
SELECT COUNT ( - 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT + MIN( + NULLIF ( 18, - + CASE 48 WHEN + 65 / 90 THEN 0 END ) )
----
18

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT + MIN ( + NULLIF ( 18, - + CASE 48 WHEN + 65 / 90 THEN 0 END ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL + - ( + - MIN( ALL + - 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL + - ( + - MIN ( ALL + - 89 ) )
----
-89

query I rowsort
SELECT ALL + 95 col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT CAST( - 2 AS SIGNED ) * + 62 - + 1 AS col2
----
-125

skipif mysql # not compatible
query I rowsort label-2791
SELECT CAST ( - 2 AS INTEGER ) * + 62 - + 1 AS col2
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2792
SELECT ALL + + 60 DIV COUNT( * ) + - 60 - + + 82 + MIN( + ( - + 97 ) ) * - 66 + 82 + + 87 * + 43 - - 54 * + 60 + - 73 AS col2
----
13310

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL + + 60 / COUNT ( * ) + - 60 - + + 82 + MIN ( + ( - + 97 ) ) * - 66 + 82 + + 87 * + 43 - - 54 * + 60 + - 73 AS col2
----
13310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT DISTINCT 58 + - - 45 + - + CAST( 72 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT 58 + - - 45 + - + CAST ( 72 AS INTEGER ) AS col1
----
31

query I rowsort
SELECT ALL + - 47 + - 25
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT + 77 + CAST( - 34 AS SIGNED ) + - + NULLIF ( - - 14, - 79 ) - - ( + 34 ) - - 98 * + + 32 AS col0
----
3199

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 77 + CAST ( - 34 AS INTEGER ) + - + NULLIF ( - - 14, - 79 ) - - ( + 34 ) - - 98 * + + 32 AS col0
----
3199

query I rowsort
SELECT - 69 + - 39
----
-108

query I rowsort
SELECT DISTINCT ( + - 19 ) + ( - 6 ) AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2798
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 65 AS col2, - 39 + - - 8 AS col2
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-2798
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 65 AS col2, - 39 + - - 8 AS col2
----
NULL
-31

query I rowsort
SELECT DISTINCT + COALESCE ( 86, + 4, 5 ) + 46 + ( 24 ) AS col0
----
156

query II rowsort
SELECT DISTINCT 86 * - - 67 * 89 AS col1, 14
----
512818
14

query I rowsort
SELECT ALL 98 + - 40 col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT NULLIF ( 76, - COUNT( * ) * + - CASE + 76 WHEN - + 3 THEN - ( + - 51 ) + - ( + - 57 ) - 69 END + - - 73 ) + + CAST( - ( - 81 ) AS SIGNED ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-2802
SELECT NULLIF ( 76, - COUNT ( * ) * + - CASE + 76 WHEN - + 3 THEN - ( + - 51 ) + - ( + - 57 ) - 69 END + - - 73 ) + + CAST ( - ( - 81 ) AS INTEGER ) AS col2
----
157

query I rowsort
SELECT - 42 col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2804
SELECT DISTINCT 50 * + COUNT( * ) * - 8 col2, 30 * + 85
----
-400
2550

skipif mysql # not compatible
query II rowsort label-2804
SELECT DISTINCT 50 * + COUNT ( * ) * - 8 col2, 30 * + 85
----
-400
2550

query I rowsort
SELECT DISTINCT 97 * + 83
----
8051

query I rowsort
SELECT DISTINCT 14 * - 86
----
-1204

query I rowsort
SELECT 80 * - 93
----
-7440

query I rowsort
SELECT DISTINCT 90 * + 89 AS col0
----
8010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT CASE - ( 46 ) WHEN - 23 * COUNT( ALL - 77 ) THEN NULL WHEN + 46 THEN NULL WHEN - - 86 * 53 + CAST( 52 AS SIGNED ) * + 53 + - COUNT( * ) THEN + 51 * + + SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) + 89 + MIN( 14 ) * CASE 27 WHEN 45 THEN NULL ELSE + 5 END * + - 59 + + 37 ELSE 71 END + 18
----
89

skipif mysql # not compatible
query I rowsort label-2809
SELECT CASE - ( 46 ) WHEN - 23 * COUNT ( ALL - 77 ) THEN NULL WHEN + 46 THEN NULL WHEN - - 86 * 53 + CAST ( 52 AS INTEGER ) * + 53 + - COUNT ( * ) THEN + 51 * + + SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + 89 + MIN ( 14 ) * CASE 27 WHEN 45 THEN NULL ELSE + 5 END * + - 59 + + 37 ELSE 71 END + 18
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-2810
SELECT ALL - 41, 75 * CASE - 92 WHEN + 96 THEN + - 28 * - - 3 + 23 ELSE + 10 END DIV + + 94 + - 20 AS col0
----
-41
-13

skipif mysql # not compatible
query II rowsort label-2810
SELECT ALL - 41, 75 * CASE - 92 WHEN + 96 THEN + - 28 * - - 3 + 23 ELSE + 10 END / + + 94 + - 20 AS col0
----
-41
-13

query I rowsort
SELECT 12 - + 19 AS col2
----
-7

query I rowsort
SELECT 15 * - - 34
----
510

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - - 58 * 98 - COUNT( + 7 ) AS col0
----
5683

skipif mysql # not compatible
query I rowsort label-2814
SELECT - - 58 * 98 - COUNT ( + 7 ) AS col0
----
5683

onlyif mysql # aggregate syntax: 
query II rowsort label-2815
SELECT MIN( DISTINCT + 89 ) * 41, + 87 col1
----
3649
87

skipif mysql # not compatible
query II rowsort label-2815
SELECT MIN ( DISTINCT + 89 ) * 41, + 87 col1
----
3649
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ( - MIN( DISTINCT - 15 ) ) col2
----
15

skipif mysql # not compatible
query I rowsort label-2817
SELECT ( - MIN ( DISTINCT - 15 ) ) col2
----
15

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

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL COUNT ( * ) + + 64 AS col1
----
65

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

query I rowsort
SELECT DISTINCT 69 * + 85
----
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT + COUNT( * ) + 94 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2821
SELECT + COUNT ( * ) + 94 AS col2
----
95

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

query I rowsort
SELECT ALL - 37 + + - 52 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT COUNT( * ) + - - 47 * + 90
----
4231

skipif mysql # not compatible
query I rowsort label-2824
SELECT COUNT ( * ) + - - 47 * + 90
----
4231

query I rowsort
SELECT - 74 * - - 18 - + 92 AS col2
----
-1424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT 66 + + 75 * + CAST( COUNT( * ) AS SIGNED ) + + 35
----
176

skipif mysql # not compatible
query I rowsort label-2826
SELECT 66 + + 75 * + CAST ( COUNT ( * ) AS INTEGER ) + + 35
----
176

query II rowsort
SELECT ALL + + 45 + - 20 * - 76 AS col2, - 57 + 88 AS col2
----
1565
31

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

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - + 82 / + COUNT ( * ) AS col1
----
-82

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

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - COUNT ( * ) + - 88 AS col1
----
-89

query I rowsort
SELECT ALL - - 32 * - 24 + - 76 + + + 45
----
-799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT ( + 73 ) + + 50 + ( - - CAST( + 19 AS SIGNED ) )
----
142

skipif mysql # not compatible
query I rowsort label-2831
SELECT ( + 73 ) + + 50 + ( - - CAST ( + 19 AS INTEGER ) )
----
142

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2833
SELECT DISTINCT - CAST( + + CASE - + 39 WHEN + 3 THEN 99 WHEN CASE WHEN 97 <= NULL THEN - 17 - 88 + - COUNT( * ) DIV - 98 END DIV 79 + 57 THEN - ( - 0 ) DIV + 93 + + 94 + ( - + 80 ) WHEN - + 19 * + - COUNT( * ) - + 5 + - 65 + + 17 THEN NULL ELSE - 99 END AS SIGNED ) DIV + 9 + - 75 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT - CAST ( + + CASE - + 39 WHEN + 3 THEN 99 WHEN CASE WHEN 97 <= NULL THEN - 17 - 88 + - COUNT ( * ) / - 98 END / 79 + 57 THEN - ( - 0 ) / + 93 + + 94 + ( - + 80 ) WHEN - + 19 * + - COUNT ( * ) - + 5 + - 65 + + 17 THEN NULL ELSE - 99 END AS INTEGER ) / + 9 + - 75 AS col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT 65 DIV - + COALESCE ( - COUNT( * ), + SUM( - 19 ) * + - 18 + - + 82, + + 42 DIV 30 DIV - + NULLIF ( + + ( - 86 ), 33 ) + 67 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2834
SELECT 65 / - + COALESCE ( - COUNT ( * ), + SUM ( - 19 ) * + - 18 + - + 82, + + 42 / 30 / - + NULLIF ( + + ( - 86 ), 33 ) + 67 ) AS col2
----
65

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

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

query I rowsort
SELECT 71 * 49 * - + 39
----
-135681

query I rowsort
SELECT ALL - 77 * 17 AS col0
----
-1309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT 45 - + + 61 - + CAST( NULL AS SIGNED ) / + 58 * 95 + + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT 45 - + + 61 - + CAST ( NULL AS INTEGER ) / + 58 * 95 + + 78 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 59 * - 68
----
4012

query I rowsort
SELECT DISTINCT + 4 - - 98 - 87 * - ( - 44 )
----
-3726

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT 61 * - COALESCE ( - 93, + + 60 - - COUNT( * ) ) AS col0
----
5673

skipif mysql # not compatible
query I rowsort label-2841
SELECT 61 * - COALESCE ( - 93, + + 60 - - COUNT ( * ) ) AS col0
----
5673

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT SUM( DISTINCT ( - + 3 ) ) + + - CASE 58 WHEN + 3 THEN 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT SUM ( DISTINCT ( - + 3 ) ) + + - CASE 58 WHEN + 3 THEN 39 END
----
NULL

query I rowsort
SELECT ALL + 14 * - 3
----
-42

query I rowsort
SELECT DISTINCT - 5 - - + 11
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT MIN( DISTINCT + ( + 0 ) ) + - ( 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2845
SELECT MIN ( DISTINCT + ( + 0 ) ) + - ( 66 ) AS col0
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT COALESCE ( - NULLIF ( - 33, 31 ), + COUNT( 23 ) + - SUM( DISTINCT + + 37 ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-2847
SELECT COALESCE ( - NULLIF ( - 33, 31 ), + COUNT ( 23 ) + - SUM ( DISTINCT + + 37 ) ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT 86 * - CASE 54 WHEN + 9 * + 81 THEN + - COUNT( * ) WHEN + - 83 THEN + 83 * + CASE + COUNT( * ) WHEN + 47 * - 56 + + COUNT( * ) + 15 THEN + - 35 * - - 25 ELSE + - 37 END ELSE + 77 END
----
-6622

skipif mysql # not compatible
query I rowsort label-2848
SELECT 86 * - CASE 54 WHEN + 9 * + 81 THEN + - COUNT ( * ) WHEN + - 83 THEN + 83 * + CASE + COUNT ( * ) WHEN + 47 * - 56 + + COUNT ( * ) + 15 THEN + - 35 * - - 25 ELSE + - 37 END ELSE + 77 END
----
-6622

onlyif mysql # DIV for integer division: 
query II rowsort label-2849
SELECT 21 + - 86 - + - 42 DIV - 29 AS col0, + ( + 79 )
----
-66
79

skipif mysql # not compatible
query II rowsort label-2849
SELECT 21 + - 86 - + - 42 / - 29 AS col0, + ( + 79 )
----
-66
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL 95 * COUNT( * ) * MIN( ALL - 47 )
----
-4465

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL 95 * COUNT ( * ) * MIN ( ALL - 47 )
----
-4465

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2852
SELECT + CAST( 47 AS SIGNED ) DIV - + 81
----
0

skipif mysql # not compatible
query I rowsort label-2852
SELECT + CAST ( 47 AS INTEGER ) / - + 81
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT DISTINCT 31 * + NULLIF ( + 48, - CAST( NULL AS SIGNED ) ) + - - 47 AS col0
----
1535

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT 31 * + NULLIF ( + 48, - CAST ( NULL AS INTEGER ) ) + - - 47 AS col0
----
1535

query II rowsort
SELECT ALL 35 * - 6 AS col2, - 91 + 37 AS col0
----
-210
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL - ( - + 13 ) * + MAX( DISTINCT - + 92 ) + 89 + - COUNT( * ) AS col2
----
-1108

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - ( - + 13 ) * + MAX ( DISTINCT - + 92 ) + 89 + - COUNT ( * ) AS col2
----
-1108

query I rowsort
SELECT DISTINCT + 89 * + + 36 * NULLIF ( + 67, + 97 ) * + 13 + + + 70
----
2790754

query I rowsort
SELECT DISTINCT - 0 * 64 + + 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2858
SELECT ALL + - 27 * + 41 + - COUNT( * ) * + + 19, COUNT( * ) AS col1
----
-1126
1

skipif mysql # not compatible
query II rowsort label-2858
SELECT ALL + - 27 * + 41 + - COUNT ( * ) * + + 19, COUNT ( * ) AS col1
----
-1126
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT + NULLIF ( - MAX( - 43 ), 7 ) - - 78
----
121

skipif mysql # not compatible
query I rowsort label-2859
SELECT + NULLIF ( - MAX ( - 43 ), 7 ) - - 78
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2860
SELECT ALL + CAST( NULL AS SIGNED ) / - + 52, - CAST( NULL AS SIGNED ) * + 85 * - + 39
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2860
SELECT ALL + CAST ( NULL AS INTEGER ) / - + 52, - CAST ( NULL AS INTEGER ) * + 85 * - + 39
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT COUNT( 24 ) AS col1, 22
----
1
22

skipif mysql # not compatible
query II rowsort label-2861
SELECT COUNT ( 24 ) AS col1, 22
----
1
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT - + 80 * 44 * + COUNT( * )
----
-3520

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT - + 80 * 44 * + COUNT ( * )
----
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL - 92 * - 86 - COUNT( * )
----
7911

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL - 92 * - 86 - COUNT ( * )
----
7911

query I rowsort
SELECT - - 87 - - - 31 - 39
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL 78 - + CASE ( 5 ) WHEN ( - - 95 ) THEN NULL WHEN + ( COUNT( * ) ) + + + 27 THEN + + AVG ( DISTINCT + 81 ) * - 74 * - MAX( + 41 ) * - 41 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL 78 - + CASE ( 5 ) WHEN ( - - 95 ) THEN NULL WHEN + ( COUNT ( * ) ) + + + 27 THEN + + AVG ( DISTINCT + 81 ) * - 74 * - MAX ( + 41 ) * - 41 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2867
SELECT DISTINCT 87 * + 13 DIV + COUNT( * ) AS col0
----
1131

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

query I rowsort
SELECT + 80 + - + 52 AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2869
SELECT - 86 * + 0 * ( - 42 ) DIV CAST( + 5 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2869
SELECT - 86 * + 0 * ( - 42 ) / CAST ( + 5 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2870
SELECT 96, ( - MAX( 89 ) ) + - 71 AS col2
----
96
-160

skipif mysql # not compatible
query II rowsort label-2870
SELECT 96, ( - MAX ( 89 ) ) + - 71 AS col2
----
96
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT + CASE 33 WHEN 17 * + 87 THEN + 18 + + 60 ELSE NULL END + - + 71 + MIN( 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT + CASE 33 WHEN 17 * + 87 THEN + 18 + + 60 ELSE NULL END + - + 71 + MIN ( 85 ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT ALL - 46 DIV 9
----
-5

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL - 46 / 9
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2874
SELECT DISTINCT COUNT( * ), 51 DIV + 80 * 52 + - 75 - - 79 AS col1
----
1
4

skipif mysql # not compatible
query II rowsort label-2874
SELECT DISTINCT COUNT ( * ), 51 / + 80 * 52 + - 75 - - 79 AS col1
----
1
4

query I rowsort
SELECT DISTINCT - COALESCE ( + - 9, - 91 ) * + - 5 + + 70 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT ALL + 55 DIV 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + 55 / 49 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2877
SELECT ALL + 46 DIV CAST( - - 43 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + 46 / CAST ( - - 43 AS INTEGER ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL NULLIF ( - COUNT ( * ), - 87 ) AS col0
----
-1

query I rowsort
SELECT + 90 * 77 AS col1
----
6930

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL - MIN( DISTINCT - 78 ) * + 22 AS col1
----
1716

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - MIN ( DISTINCT - 78 ) * + 22 AS col1
----
1716

query I rowsort
SELECT - - 21 * - 47 - - + 82 AS col1
----
-905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT ALL 28 / - - COUNT( * ) + - CAST( NULL AS SIGNED ) + - + ( + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL 28 / - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - + ( + 22 )
----
NULL

query I rowsort
SELECT ALL - 3 * - - 17
----
-51

query I rowsort
SELECT 92 / + 96 + - 13 - - CASE + 83 WHEN + 86 * ( 86 ) THEN 2 WHEN + 13 THEN NULL WHEN - + 27 * + + 58 THEN NULL END * 9 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( 18, 74 * 33 )
----
18

query II rowsort
SELECT ALL - 49 * - 17 + + 49 + 47 * + 68 col0, - 55
----
4078
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - - 91 * MIN( ALL + - 18 ) + + - 15 + + 29 + 36 * + + 64
----
680

skipif mysql # not compatible
query I rowsort label-2888
SELECT - - 91 * MIN ( ALL + - 18 ) + + - 15 + + 29 + 36 * + + 64
----
680

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT ALL + - 50 * + 67 + MIN( DISTINCT + + 41 )
----
-3309

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + - 50 * + 67 + MIN ( DISTINCT + + 41 )
----
-3309

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + + ( + SUM( 41 ) ) - 71
----
-30

skipif mysql # not compatible
query I rowsort label-2891
SELECT + + ( + SUM ( 41 ) ) - 71
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT ALL + 21 DIV + 73 col2
----
0

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL + 21 / + 73 col2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2894
SELECT 70 AS col2, + CAST( NULL AS SIGNED ) AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-2894
SELECT 70 AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
70
NULL

query I rowsort
SELECT DISTINCT - 77 * + 12 * + - 64 - + 55
----
59081

query II rowsort
SELECT ALL + 39, + 14 AS col0
----
39
14

query I rowsort
SELECT ALL + 27 * + 66
----
1782

query I rowsort
SELECT + - 0 * - 48 * - 33 * - 97 * - - 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2899
SELECT DISTINCT + + 71 AS col2, 88 + SUM( ALL + 11 ) AS col2
----
71
99

skipif mysql # not compatible
query II rowsort label-2899
SELECT DISTINCT + + 71 AS col2, 88 + SUM ( ALL + 11 ) AS col2
----
71
99

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

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

query I rowsort
SELECT - 63 + + - 51
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT + 74 * - - SUM( 26 ) * 53 * - - COUNT( * )
----
101972

skipif mysql # not compatible
query I rowsort label-2902
SELECT + 74 * - - SUM ( 26 ) * 53 * - - COUNT ( * )
----
101972

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2904
SELECT + ( + - 8 ) DIV + - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT + ( + - 8 ) / + - 66 AS col2
----
0

query I rowsort
SELECT ALL - 59 * 89
----
-5251

query II rowsort
SELECT ALL 39, 69 AS col0
----
39
69

query II rowsort
SELECT DISTINCT 90, + 13 AS col2
----
90
13

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

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

query I rowsort
SELECT - 97 * + 66
----
-6402

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT + COUNT( * ) + + 69 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2910
SELECT + COUNT ( * ) + + 69 AS col2
----
70

query I rowsort
SELECT + 67 - + - 75 * + - 96 * 55 AS col1
----
-395933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2912
SELECT - 90 + + 15 + NULLIF ( + + MIN( ALL - CAST( - 76 AS SIGNED ) ), MIN( DISTINCT + 74 ) ) * 9 AS col2, - 54
----
609
-54

skipif mysql # not compatible
query II rowsort label-2912
SELECT - 90 + + 15 + NULLIF ( + + MIN ( ALL - CAST ( - 76 AS INTEGER ) ), MIN ( DISTINCT + 74 ) ) * 9 AS col2, - 54
----
609
-54

query I rowsort
SELECT ALL ( 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 60 + 68 - 86 * - + 32 - + 23 AS col1
----
2857

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2916
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 56 - - + COUNT( * ) * + 62 - NULLIF ( - - 95, - + 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 56 - - + COUNT ( * ) * + 62 - NULLIF ( - - 95, - + 42 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2917
SELECT - 27, COUNT( * ) * 14 * COUNT( * ) + - 79 - - + 86 * + 72 + + + NULLIF ( - 87, + 75 + ( + CAST( - 6 AS SIGNED ) ) * - NULLIF ( + 15, - ( 52 ) ) ) + + 24 AS col0
----
-27
6064

skipif mysql # not compatible
query II rowsort label-2917
SELECT - 27, COUNT ( * ) * 14 * COUNT ( * ) + - 79 - - + 86 * + 72 + + + NULLIF ( - 87, + 75 + ( + CAST ( - 6 AS INTEGER ) ) * - NULLIF ( + 15, - ( 52 ) ) ) + + 24 AS col0
----
-27
6064

query I rowsort
SELECT - NULLIF ( 94, ( 55 ) + + 26 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT ALL - + 13 + + 70 DIV - 73 * + 95 + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - + 13 + + 70 / - 73 * + 95 + COUNT ( * ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT + 14 DIV - - 6 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2920
SELECT + 14 / - - 6 AS col1
----
2

query I rowsort
SELECT + + NULLIF ( - 4, + ( - - 69 ) + + 6 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT DISTINCT - COUNT( - + 85 ) * - 33
----
33

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT - COUNT ( - + 85 ) * - 33
----
33

query I rowsort
SELECT ALL + NULLIF ( + + 38, 18 ) - 17 AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT 5 DIV + + 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT 5 / + + 53 col0
----
0

query I rowsort
SELECT ALL + - 9 * - ( + 81 ) AS col2
----
729

query II rowsort
SELECT ALL - - 94, 48 AS col0
----
94
48

onlyif mysql # aggregate syntax: 
query III rowsort label-2927
SELECT ALL - - 37 AS col1, + 48 * 52 + - 18 AS col2, - COALESCE ( + + 64, 13 ) + MAX( 82 ) AS col2
----
37
2478
18

skipif mysql # not compatible
query III rowsort label-2927
SELECT ALL - - 37 AS col1, + 48 * 52 + - 18 AS col2, - COALESCE ( + + 64, 13 ) + MAX ( 82 ) AS col2
----
37
2478
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2928
SELECT DISTINCT - COUNT( * ), - 75 + - 49 + NULLIF ( 5, COUNT( - 50 ) / - - 81 + 7 + - - 12 / - 19 ) col0
----
-1
-119

skipif mysql # not compatible
query II rowsort label-2928
SELECT DISTINCT - COUNT ( * ), - 75 + - 49 + NULLIF ( 5, COUNT ( - 50 ) / - - 81 + 7 + - - 12 / - 19 ) col0
----
-1
-119

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

query II rowsort
SELECT ALL - + 60 AS col0, + 21 AS col0
----
-60
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT - 38 DIV COALESCE ( 86, - 14 + - 76 ) * - 62 - + 76
----
-76

skipif mysql # not compatible
query I rowsort label-2931
SELECT - 38 / COALESCE ( 86, - 14 + - 76 ) * - 62 - + 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT 74 * + MIN( DISTINCT - 75 )
----
-5550

skipif mysql # not compatible
query I rowsort label-2932
SELECT 74 * + MIN ( DISTINCT - 75 )
----
-5550

query I rowsort
SELECT + COALESCE ( - COALESCE ( - ( 90 ), + + 19, - 38 ), - 63 + - 94 ) - - 30 AS col1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT ALL - 64 AS col2, + MAX( DISTINCT - 34 ) * - SUM( + 76 ) AS col0
----
-64
2584

skipif mysql # not compatible
query II rowsort label-2934
SELECT ALL - 64 AS col2, + MAX ( DISTINCT - 34 ) * - SUM ( + 76 ) AS col0
----
-64
2584

query I rowsort
SELECT 54 * + + 57
----
3078

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT DISTINCT 86 * - 62, + 74 + - 66 + + COUNT( * ) + - - 9 * + 47 + 79 * + 26 - - COUNT( 61 ) AS col1
----
-5332
2487

skipif mysql # not compatible
query II rowsort label-2936
SELECT DISTINCT 86 * - 62, + 74 + - 66 + + COUNT ( * ) + - - 9 * + 47 + 79 * + 26 - - COUNT ( 61 ) AS col1
----
-5332
2487

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2937
SELECT DISTINCT + 73 DIV + - CAST( 80 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + 73 / + - CAST ( 80 AS INTEGER ) AS col0
----
0

query II rowsort
SELECT ALL + 55 * + 60 AS col1, - 74
----
3300
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT ALL 26 + - 4 DIV + 76 * 8
----
26

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL 26 + - 4 / + 76 * 8
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT 24 - + CASE + COALESCE ( - 81, + + 6 * - + CASE 87 WHEN 28 THEN ( 24 ) * 43 END * MIN( + 95 ) + + - 41 + + - 88 / 17 + - + 73 + + + 60 / - + CASE NULLIF ( - 42, + 78 + + ( NULLIF ( - 30, - - 63 * + CASE - 52 WHEN - - ( COUNT( * ) ) * + ( + 73 ) * - 1 THEN NULL ELSE AVG ( ALL ( - 54 ) ) / + 46 END + + 46 ) ) ) WHEN MAX( 55 ) * - COUNT( * ) THEN 1 END * - 88 ) WHEN + 95 THEN - 93 ELSE NULL END + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT 24 - + CASE + COALESCE ( - 81, + + 6 * - + CASE 87 WHEN 28 THEN ( 24 ) * 43 END * MIN ( + 95 ) + + - 41 + + - 88 / 17 + - + 73 + + + 60 / - + CASE NULLIF ( - 42, + 78 + + ( NULLIF ( - 30, - - 63 * + CASE - 52 WHEN - - ( COUNT ( * ) ) * + ( + 73 ) * - 1 THEN NULL ELSE AVG ( ALL ( - 54 ) ) / + 46 END + + 46 ) ) ) WHEN MAX ( 55 ) * - COUNT ( * ) THEN 1 END * - 88 ) WHEN + 95 THEN - 93 ELSE NULL END + 76 AS col0
----
NULL

query I rowsort
SELECT ALL 73 + ( + ( + 65 ) ) * - - 22 + - 38 AS col0
----
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL COUNT( * ) + 76
----
77

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL COUNT ( * ) + 76
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2943
SELECT COALESCE ( - 80, 61, - COUNT( * ) ) * + + CAST( + 63 AS SIGNED ) * + + 39 * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT COALESCE ( - 80, 61, - COUNT ( * ) ) * + + CAST ( + 63 AS INTEGER ) * + + 39 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT 14 + + COUNT( + 29 ), - 98 * - + 74 AS col1
----
15
7252

skipif mysql # not compatible
query II rowsort label-2944
SELECT 14 + + COUNT ( + 29 ), - 98 * - + 74 AS col1
----
15
7252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2945
SELECT ALL 37 + - ( 46 ) DIV + 23 * COUNT( * ) + + 7
----
42

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL 37 + - ( 46 ) / + 23 * COUNT ( * ) + + 7
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL NULLIF ( - + COALESCE ( - 46, + ( - 50 ) ), CAST( + 67 AS SIGNED ) - - 48 ) + 64 + + 88
----
198

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL NULLIF ( - + COALESCE ( - 46, + ( - 50 ) ), CAST ( + 67 AS INTEGER ) - - 48 ) + 64 + + 88
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT NULLIF ( + 82, - + 58 ) + - 84 / + + AVG ( - CAST( + 91 AS SIGNED ) ) / - 82 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT NULLIF ( + 82, - + 58 ) + - 84 / + + AVG ( - CAST ( + 91 AS INTEGER ) ) / - 82 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT DISTINCT COUNT( * ) * - - ( 93 ) + - 64 + + - 10
----
19

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT COUNT ( * ) * - - ( 93 ) + - 64 + + - 10
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2949
SELECT 51 + - + COALESCE ( - 9, - + MIN( - 87 ) ) DIV - 81 - - 88 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-2949
SELECT 51 + - + COALESCE ( - 9, - + MIN ( - 87 ) ) / - 81 - - 88 AS col2
----
139

query I rowsort
SELECT - 11 + + + 40 + - 63 * - 82 + + + 93
----
5288

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT ALL - COALESCE ( 18, - 47 + + 9 + + 88 + - - 72, 22 ) AS col2, SUM( ALL 3 ) AS col0
----
-18
3

skipif mysql # not compatible
query II rowsort label-2951
SELECT ALL - COALESCE ( 18, - 47 + + 9 + + 88 + - - 72, 22 ) AS col2, SUM ( ALL 3 ) AS col0
----
-18
3

query I rowsort
SELECT 89 * 11 * 46 * - 77 AS col1
----
-3467618

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - 90 * + COUNT( * ) * + 19 + - + COUNT( * ) AS col2
----
-1711

skipif mysql # not compatible
query I rowsort label-2953
SELECT - 90 * + COUNT ( * ) * + 19 + - + COUNT ( * ) AS col2
----
-1711

query I rowsort
SELECT 68 * + NULLIF ( + 19, + - 27 )
----
1292

query I rowsort
SELECT + 75 + + 61 col1
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT - + MAX( ( - 77 ) ) * - 93 / - + 5 + + 68 * + - 6 + COUNT( * ) + - CASE + - COUNT( * ) WHEN - + 83 THEN - 85 WHEN + 14 THEN - 92 * AVG ( ALL + - 40 ) + + - 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT - + MAX ( ( - 77 ) ) * - 93 / - + 5 + + 68 * + - 6 + COUNT ( * ) + - CASE + - COUNT ( * ) WHEN - + 83 THEN - 85 WHEN + 14 THEN - 92 * AVG ( ALL + - 40 ) + + - 83 END AS col1
----
NULL

query I rowsort
SELECT - 10 * 26 + - 24
----
-284

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2960
SELECT + 50 DIV CAST( + + 7 AS SIGNED ) + + 73 - - 95
----
175

skipif mysql # not compatible
query I rowsort label-2960
SELECT + 50 / CAST ( + + 7 AS INTEGER ) + + 73 - - 95
----
175

query I rowsort
SELECT ALL + - 2 * - 98 - - 43
----
239

query I rowsort
SELECT ALL - 32 + - - 96 * + 57
----
5440

query II rowsort
SELECT 59 * - - 67 + + 41, 40 AS col1
----
3994
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL CASE - 14 WHEN 2 THEN NULL WHEN - + COUNT( * ) * + CASE - 73 WHEN ( - MAX( + 7 ) ) * - 88 + - 38 THEN + - 18 + + + 30 - + SUM( ALL + 4 ) * + 30 * + 14 * + 50 * 79 + COUNT( * ) END + - ( 39 ) THEN NULL ELSE + COUNT( * ) END + - 13 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL CASE - 14 WHEN 2 THEN NULL WHEN - + COUNT ( * ) * + CASE - 73 WHEN ( - MAX ( + 7 ) ) * - 88 + - 38 THEN + - 18 + + + 30 - + SUM ( ALL + 4 ) * + 30 * + 14 * + 50 * 79 + COUNT ( * ) END + - ( 39 ) THEN NULL ELSE + COUNT ( * ) END + - 13 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT + 73 * + 19 + NULLIF ( - - 11, + COUNT( * ) ) + - 3 AS col0
----
1395

skipif mysql # not compatible
query I rowsort label-2965
SELECT + 73 * + 19 + NULLIF ( - - 11, + COUNT ( * ) ) + - 3 AS col0
----
1395

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

query II rowsort
SELECT 7 AS col0, + 13 col2
----
7
13

query II rowsort
SELECT + 83 AS col0, - 90
----
83
-90

query I rowsort
SELECT 99 + - 90 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2970
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 94 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2970
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 94 AS col2
----
NULL
94

query I rowsort
SELECT 80 * + 89 AS col2
----
7120

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT 97 * COUNT( * ) + 14 * - 10
----
-43

skipif mysql # not compatible
query I rowsort label-2972
SELECT 97 * COUNT ( * ) + 14 * - 10
----
-43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2974
SELECT DISTINCT MIN( DISTINCT 42 ) + ( 57 ) DIV - CAST( - 72 AS SIGNED ) col0
----
42

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT MIN ( DISTINCT 42 ) + ( 57 ) / - CAST ( - 72 AS INTEGER ) col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT ALL - 24 DIV - - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - 24 / - - 33 AS col0
----
0

query I rowsort
SELECT DISTINCT + 70 + - 80
----
-10

query II rowsort
SELECT DISTINCT 7 col0, 48
----
7
48

query II rowsort
SELECT ALL 59 AS col2, 35 AS col0
----
59
35

query I rowsort
SELECT ALL + 52 + + 46 AS col2
----
98

query I rowsort
SELECT ALL - ( - 39 ) + - 63
----
-24

query I rowsort
SELECT - 1 * + - 27
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2982
SELECT + 7 + + COALESCE ( + 78, - CAST( + 0 AS SIGNED ) * 64 * 91 * 30 * - 64 * - MIN( ALL - 22 ) * - CAST( + + 6 AS SIGNED ) + - 94 + - 29 * - 33 + + 59 )
----
85

skipif mysql # not compatible
query I rowsort label-2982
SELECT + 7 + + COALESCE ( + 78, - CAST ( + 0 AS INTEGER ) * 64 * 91 * 30 * - 64 * - MIN ( ALL - 22 ) * - CAST ( + + 6 AS INTEGER ) + - 94 + - 29 * - 33 + + 59 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT - 19 DIV - 40 * + - 24 * - + 55
----
0

skipif mysql # not compatible
query I rowsort label-2983
SELECT - 19 / - 40 * + - 24 * - + 55
----
0

query II rowsort
SELECT DISTINCT 18 AS col1, 66 * - 59 AS col1
----
18
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT + COUNT( * ) + + 93
----
94

skipif mysql # not compatible
query I rowsort label-2985
SELECT + COUNT ( * ) + + 93
----
94

query I rowsort
SELECT ALL + 33 - + 4 col0
----
29

query II rowsort
SELECT DISTINCT + 40 AS col2, - 50 + + 74
----
40
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL + MIN( ALL 48 )
----
48

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL + MIN ( ALL 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + + 53 + - COUNT( * ) + - COUNT( * ) * + 71 + + 56 + 62 * - + 54 + + 83 * + 21 AS col1
----
-1568

skipif mysql # not compatible
query I rowsort label-2989
SELECT + + 53 + - COUNT ( * ) + - COUNT ( * ) * + 71 + + 56 + 62 * - + 54 + + 83 * + 21 AS col1
----
-1568

query II rowsort
SELECT DISTINCT - 86 AS col2, 8 col2
----
-86
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2991
SELECT DISTINCT + 29 AS col0, - NULLIF ( + - 59, 43 ) * + + 59 * AVG ( DISTINCT - NULLIF ( + + 92, 6 ) ) * - CAST( NULL AS SIGNED ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2991
SELECT DISTINCT + 29 AS col0, - NULLIF ( + - 59, 43 ) * + + 59 * AVG ( DISTINCT - NULLIF ( + + 92, 6 ) ) * - CAST ( NULL AS INTEGER ) AS col1
----
29
NULL

query I rowsort
SELECT + - 20 * + + 58
----
-1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT ALL - ( - 51 ) * + + CAST( - - 36 AS SIGNED ) + - 32 col0
----
1804

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL - ( - 51 ) * + + CAST ( - - 36 AS INTEGER ) + - 32 col0
----
1804

onlyif mysql # DIV for integer division: 
query II rowsort label-2994
SELECT ALL 69 AS col1, 86 * 10 DIV 39
----
69
22

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL 69 AS col1, 86 * 10 / 39
----
69
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + 72 * + COALESCE ( + - 67, + - 36 * - + SUM( ALL + 71 ) * + + CASE - ( + 8 ) WHEN - + 89 THEN + 11 + - 98 ELSE NULL END - 19 )
----
-4824

skipif mysql # not compatible
query I rowsort label-2996
SELECT + 72 * + COALESCE ( + - 67, + - 36 * - + SUM ( ALL + 71 ) * + + CASE - ( + 8 ) WHEN - + 89 THEN + 11 + - 98 ELSE NULL END - 19 )
----
-4824

query I rowsort
SELECT ALL NULLIF ( + 99, - 1 + - 93 ) * + 85
----
8415

query II rowsort
SELECT 38 AS col1, - 17 AS col0
----
38
-17

query II rowsort
SELECT - 8 col0, + 71 + + 13 + - 87 + - 83 * + 76 * 40
----
-8
-252323

query I rowsort
SELECT - - 63 + 12 + 73 col0
----
148

query I rowsort
SELECT DISTINCT 99 * 20 * 4
----
7920

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT ALL + ( + AVG ( 11 ) ) * + + 37 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL + ( + AVG ( 11 ) ) * + + 37 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + + 37, 69 AS col1
----
37
69

query I rowsort
SELECT ALL 17 * + 19 AS col0
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL - 13 * + - ( 7 ) * - 33 + - COUNT( - ( + + 81 ) ) + 65 AS col1
----
-2939

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - 13 * + - ( 7 ) * - 33 + - COUNT ( - ( + + 81 ) ) + 65 AS col1
----
-2939

query I rowsort
SELECT DISTINCT 37 * + ( + 86 ) + + 69
----
3251

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

query I rowsort
SELECT ALL 13 * 26 + + 28 + + 93 * - 2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT + COALESCE ( 10, COUNT( * ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3010
SELECT + COALESCE ( 10, COUNT ( * ) ) AS col1
----
10

query I rowsort
SELECT NULLIF ( + + 95, - 31 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL + NULLIF ( 80, + MIN( 85 ) )
----
80

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + NULLIF ( 80, + MIN ( 85 ) )
----
80

query I rowsort
SELECT ALL 25 * 96 + - 73
----
2327

query I rowsort
SELECT + 68 + - 28 col1
----
40

onlyif mysql # aggregate syntax: 
query III rowsort label-3015
SELECT - 74 * + 5 AS col0, - 66 - + - COUNT( + - 62 ) AS col2, - 74
----
-370
-65
-74

skipif mysql # not compatible
query III rowsort label-3015
SELECT - 74 * + 5 AS col0, - 66 - + - COUNT ( + - 62 ) AS col2, - 74
----
-370
-65
-74

query I rowsort
SELECT + 43 * + 81 + - - 55 AS col2
----
3538

query I rowsort
SELECT - 38 * 81
----
-3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3018
SELECT ALL + MIN( ALL + 60 ), 6 DIV + ( - - 35 ) - - 85 AS col0
----
60
85

skipif mysql # not compatible
query II rowsort label-3018
SELECT ALL + MIN ( ALL + 60 ), 6 / + ( - - 35 ) - - 85 AS col0
----
60
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3019
SELECT DISTINCT CAST( - - MAX( 55 ) AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT CAST ( - - MAX ( 55 ) AS INTEGER ) AS col0
----
55

query I rowsort
SELECT - 90 + - + 40
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL + 84 * + COUNT( * ) - - 51 + + + 90
----
225

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + 84 * + COUNT ( * ) - - 51 + + + 90
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3022
SELECT - 78 + - COUNT( * ) + + COUNT( * ) DIV + 10 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 78 + - COUNT ( * ) + + COUNT ( * ) / + 10 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - 84 * - CASE + 74 WHEN - 16 + - + 40 - - - ( - 46 ) * + 35 THEN - CASE + 23 WHEN - COUNT( * ) THEN NULL WHEN + 48 + - 73 + + 83 THEN 57 ELSE - 24 END * - + MAX( 27 ) - + 81 + + + MAX( - + 63 ) WHEN + - 66 * - ( - - 36 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 84 * - CASE + 74 WHEN - 16 + - + 40 - - - ( - 46 ) * + 35 THEN - CASE + 23 WHEN - COUNT ( * ) THEN NULL WHEN + 48 + - 73 + + 83 THEN 57 ELSE - 24 END * - + MAX ( 27 ) - + 81 + + + MAX ( - + 63 ) WHEN + - 66 * - ( - - 36 ) THEN NULL ELSE NULL END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT - MIN( DISTINCT ( 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-3025
SELECT - MIN ( DISTINCT ( 41 ) )
----
-41

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

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

query I rowsort
SELECT - ( NULLIF ( - 27, - + 92 * + 6 ) )
----
27

query I rowsort
SELECT - + 49 + 93
----
44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT + 57 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT + 57 / - 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT - + 97 + + + COUNT( * ) AS col2, 61 * - - 13 AS col1
----
-96
793

skipif mysql # not compatible
query II rowsort label-3031
SELECT - + 97 + + + COUNT ( * ) AS col2, 61 * - - 13 AS col1
----
-96
793

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT ALL - 28 DIV + + 98 * + COUNT( * ) - + + 71 + + COALESCE ( + 65, 10 * NULLIF ( - + CASE + 10 WHEN + 39 THEN - - 92 * - 24 END, + 12 ) + - 68 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL - 28 / + + 98 * + COUNT ( * ) - + + 71 + + COALESCE ( + 65, 10 * NULLIF ( - + CASE + 10 WHEN + 39 THEN - - 92 * - 24 END, + 12 ) + - 68 ) AS col1
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + 31 * + - 25 + - 71 * + 28 + - - COUNT( * ) col2
----
-2762

skipif mysql # not compatible
query I rowsort label-3036
SELECT + 31 * + - 25 + - 71 * + 28 + - - COUNT ( * ) col2
----
-2762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3037
SELECT ALL 51 / - 21 * + - 71 / - - CAST( NULL AS SIGNED ) + + + COUNT( * ) + COUNT( * ) / 99 + + + COUNT( * ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL 51 / - 21 * + - 71 / - - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + COUNT ( * ) / 99 + + + COUNT ( * ) * 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3038
SELECT 31 DIV + 37 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3038
SELECT 31 / + 37 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3039
SELECT ALL + + ( + 7 ) DIV - 89 * - 65 + + - COALESCE ( - 69, 82 ) * + COUNT( * ) + 8 + 87 AS col1, - NULLIF ( COUNT( * ), - 82 ) DIV - 56 AS col0
----
164
0

skipif mysql # not compatible
query II rowsort label-3039
SELECT ALL + + ( + 7 ) / - 89 * - 65 + + - COALESCE ( - 69, 82 ) * + COUNT ( * ) + 8 + 87 AS col1, - NULLIF ( COUNT ( * ), - 82 ) / - 56 AS col0
----
164
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3040
SELECT ALL 47 DIV - 54 + COUNT( 22 ) - + 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL 47 / - 54 + COUNT ( 22 ) - + 64 AS col1
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + 73 + + + 84 * COUNT( * ) + - 72 + COALESCE ( 62, + 9 - 31 + + - 82, - 52 + + 59 + - 90 * CASE + 37 WHEN + - 4 * + 44 THEN NULL WHEN - 28 + - ( - - 7 ) + COUNT( * ) THEN - 35 ELSE + 13 END )
----
147

skipif mysql # not compatible
query I rowsort label-3042
SELECT + 73 + + + 84 * COUNT ( * ) + - 72 + COALESCE ( 62, + 9 - 31 + + - 82, - 52 + + 59 + - 90 * CASE + 37 WHEN + - 4 * + 44 THEN NULL WHEN - 28 + - ( - - 7 ) + COUNT ( * ) THEN - 35 ELSE + 13 END )
----
147

query I rowsort
SELECT ALL 4 * - 48 col1
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT + 64 DIV + 31 + - - 99 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-3044
SELECT + 64 / + 31 + - - 99 AS col0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT - CAST( - - ( + 72 ) AS SIGNED ) * + 59 - - 93 col0
----
-4155

skipif mysql # not compatible
query I rowsort label-3045
SELECT - CAST ( - - ( + 72 ) AS INTEGER ) * + 59 - - 93 col0
----
-4155

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT ALL 56 + - 75 + + 84 * + - 95 * 85 - + + 63 DIV - 63
----
-678318

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL 56 + - 75 + + 84 * + - 95 * 85 - + + 63 / - 63
----
-678318

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT ALL 68 * - ( - MIN( DISTINCT + CASE ( + 48 ) WHEN 51 THEN NULL WHEN - 69 THEN NULL ELSE + + 53 END ) )
----
3604

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL 68 * - ( - MIN ( DISTINCT + CASE ( + 48 ) WHEN 51 THEN NULL WHEN - 69 THEN NULL ELSE + + 53 END ) )
----
3604

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

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

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

query I rowsort
SELECT ALL 96 - + 44 AS col2
----
52

query I rowsort
SELECT 34 + 38
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3052
SELECT COALESCE ( + - 84, - COALESCE ( 61, - COALESCE ( + NULLIF ( - 56, + 80 ), + 53 + + - 36 ) + + ( - 9 ) - + - COUNT( * ) * 41 * - - 99 * - 47 ) ) DIV - COUNT( * ) col2
----
84

skipif mysql # not compatible
query I rowsort label-3052
SELECT COALESCE ( + - 84, - COALESCE ( 61, - COALESCE ( + NULLIF ( - 56, + 80 ), + 53 + + - 36 ) + + ( - 9 ) - + - COUNT ( * ) * 41 * - - 99 * - 47 ) ) / - COUNT ( * ) col2
----
84

query I rowsort
SELECT 40 * + + 40
----
1600

query I rowsort
SELECT DISTINCT + 53 * 0 * - 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL + COUNT( * ) * - + 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + COUNT ( * ) * - + 3 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT 95 * + 13 - + + COUNT( * ) + + + 7 AS col1
----
1241

skipif mysql # not compatible
query I rowsort label-3056
SELECT 95 * + 13 - + + COUNT ( * ) + + + 7 AS col1
----
1241

query I rowsort
SELECT DISTINCT - COALESCE ( - 33, - + 80, - 92 ) * + + 50 AS col2
----
1650

query I rowsort
SELECT ALL 47 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT + COALESCE ( - 45, - COALESCE ( 55, - 13 ) ) + - 32 + MAX( DISTINCT - - 44 ) + 14
----
-19

skipif mysql # not compatible
query I rowsort label-3059
SELECT + COALESCE ( - 45, - COALESCE ( 55, - 13 ) ) + - 32 + MAX ( DISTINCT - - 44 ) + 14
----
-19

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

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

query I rowsort
SELECT + 27 * + - 61 AS col2
----
-1647

query I rowsort
SELECT ALL - ( + 71 ) + ( + 74 ) col1
----
3

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

query I rowsort
SELECT CASE 75 WHEN - 58 + + 26 THEN + + 27 * - - 10 - + 95 + + 77 ELSE NULL END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT DISTINCT - - COUNT( DISTINCT 75 ) + + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT - - COUNT ( DISTINCT 75 ) + + - 40
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-3067
SELECT DISTINCT + 88 + + 33 * 31, 22 DIV - 10 AS col1
----
1111
-2

skipif mysql # not compatible
query II rowsort label-3067
SELECT DISTINCT + 88 + + 33 * 31, 22 / - 10 AS col1
----
1111
-2

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

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

query II rowsort
SELECT - 27 AS col0, 43 AS col2
----
-27
43

query II rowsort
SELECT DISTINCT + - 45 * + 13 * + 12 AS col0, + 17
----
-7020
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT + SUM( ALL - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3071
SELECT + SUM ( ALL - 91 ) AS col1
----
-91

query I rowsort
SELECT ALL + + 20 + - 16 - - NULLIF ( 70, - 64 / - 67 - 1 ) + - - 81 AS col0
----
155

query I rowsort
SELECT + 96 * 48 * + + 25 col2
----
115200

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT 43 * + + CASE - + 49 WHEN + 35 THEN NULL WHEN + COUNT( * ) THEN + 84 * COUNT( * ) * + + 90 + + - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT 43 * + + CASE - + 49 WHEN + 35 THEN NULL WHEN + COUNT ( * ) THEN + 84 * COUNT ( * ) * + + 90 + + - 39 END
----
NULL

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

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

query I rowsort
SELECT 15 + + - 31 * + 70
----
-2155

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT + COUNT( DISTINCT - 77 ) - - - 75
----
-74

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + COUNT ( DISTINCT - 77 ) - - - 75
----
-74

query II rowsort
SELECT DISTINCT - 76 col0, 86
----
-76
86

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

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL ( + COUNT ( * ) ) * 17 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3080
SELECT NULLIF ( - + 57, - 47 ) DIV + COUNT( 1 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3080
SELECT NULLIF ( - + 57, - 47 ) / + COUNT ( 1 ) AS col2
----
-57

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

skipif mysql # not compatible
query I rowsort label-3081
SELECT 95 * COUNT ( * )
----
95

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

query II rowsort
SELECT ALL - 69 AS col1, 93 * - + 5
----
-69
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL COUNT( * ) * + SUM( DISTINCT - - 6 ) * - + 11 * - 43 AS col0
----
2838

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT - - 6 ) * - + 11 * - 43 AS col0
----
2838

query I rowsort
SELECT DISTINCT - 1 col0
----
-1

query II rowsort
SELECT DISTINCT - 72 AS col1, 26
----
-72
26

query II rowsort
SELECT - 25, + 6 + - 72 AS col1
----
-25
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + 3 + COUNT( * ) + - 84 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 3 + COUNT ( * ) + - 84 AS col0
----
-80

query I rowsort
SELECT - - NULLIF ( + 23, 90 )
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3090
SELECT + ( + - CAST( NULL AS DECIMAL ) ) / + 27 * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT + ( + - CAST ( NULL AS REAL ) ) / + 27 * 10 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT ALL 81 + - + ( + ( COALESCE ( + 14, - COUNT( * ), + CAST( NULL AS SIGNED ) ) ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL 81 + - + ( + ( COALESCE ( + 14, - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
67

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

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

query I rowsort
SELECT 89 + - 4 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3094
SELECT + 69 + ( - - CAST( - 52 AS SIGNED ) ) * - 57 * 82 + MAX( - - 61 ) + - COUNT( * ) * + 89 AS col2
----
243089

skipif mysql # not compatible
query I rowsort label-3094
SELECT + 69 + ( - - CAST ( - 52 AS INTEGER ) ) * - 57 * 82 + MAX ( - - 61 ) + - COUNT ( * ) * + 89 AS col2
----
243089

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL 8 * + 52 * + + COALESCE ( 48, - COUNT( * ) + - 57 * - MAX( - + 82 ) ) col2
----
19968

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL 8 * + 52 * + + COALESCE ( 48, - COUNT ( * ) + - 57 * - MAX ( - + 82 ) ) col2
----
19968

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT - ( + 83 ) DIV + ( 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-3096
SELECT - ( + 83 ) / + ( 72 )
----
-1

query I rowsort
SELECT ALL 48 + - 92 + + 71 + - 19 * + + 63
----
-1170

query I rowsort
SELECT ALL - 86 * + + 34 col2
----
-2924

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT DISTINCT + CAST( - + 57 AS SIGNED ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT + CAST ( - + 57 AS INTEGER ) AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT ALL + 95 + + - 63 DIV - COUNT( * ) AS col1
----
158

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + 95 + + - 63 / - COUNT ( * ) AS col1
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT 89 DIV - 20 + - 94 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3103
SELECT 89 / - 20 + - 94 AS col1
----
-98

query I rowsort
SELECT - 19 + - 84
----
-103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT - 67 + + 85 + 6 * + + COUNT( * ) + - ( - - 80 )
----
-56

skipif mysql # not compatible
query I rowsort label-3106
SELECT - 67 + + 85 + 6 * + + COUNT ( * ) + - ( - - 80 )
----
-56

query II rowsort
SELECT ALL + 25, + 70 AS col1
----
25
70

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - + COALESCE ( - CAST( 69 AS SIGNED ), - 92 ) * + 59 * + + 3
----
12213

skipif mysql # not compatible
query I rowsort label-3109
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - + COALESCE ( - CAST ( 69 AS INTEGER ), - 92 ) * + 59 * + + 3
----
12213

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

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

query I rowsort
SELECT DISTINCT + 61 * + 49 col0
----
2989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT DISTINCT + 52 * - - COUNT( * ) * - 25 DIV COALESCE ( 25, 21 )
----
-52

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + 52 * - - COUNT ( * ) * - 25 / COALESCE ( 25, 21 )
----
-52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3114
SELECT DISTINCT - CASE - 84 WHEN + + CAST( + - 98 AS SIGNED ) THEN + 58 + 8 END * - - 0, COALESCE ( - 21, - + 65 + - + CASE COUNT( * ) WHEN - SUM( - 59 ) THEN - MIN( - 13 ) END * 49 ) col2
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-3114
SELECT DISTINCT - CASE - 84 WHEN + + CAST ( + - 98 AS INTEGER ) THEN + 58 + 8 END * - - 0, COALESCE ( - 21, - + 65 + - + CASE COUNT ( * ) WHEN - SUM ( - 59 ) THEN - MIN ( - 13 ) END * 49 ) col2
----
NULL
-21

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT ALL 19 DIV 90 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL 19 / 90 / + - 98
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3118
SELECT - 25 + - 39 * + NULLIF ( NULLIF ( + + 91, 20 DIV CAST( NULL AS SIGNED ) DIV 73 + + - ( - 25 ) + + 93 ), + 19 ) AS col1, - 7 - + 34 - - 23 DIV + 25 * - + ( + 68 )
----
-3574
-41

skipif mysql # not compatible
query II rowsort label-3118
SELECT - 25 + - 39 * + NULLIF ( NULLIF ( + + 91, 20 / CAST ( NULL AS INTEGER ) / 73 + + - ( - 25 ) + + 93 ), + 19 ) AS col1, - 7 - + 34 - - 23 / + 25 * - + ( + 68 )
----
-3574
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3119
SELECT ALL MAX( + 0 ) * + 91 + - - 87 + - - 85 AS col2, + SUM( ALL - + 40 ) * + 26 + + 11 AS col1
----
172
-1029

skipif mysql # not compatible
query II rowsort label-3119
SELECT ALL MAX ( + 0 ) * + 91 + - - 87 + - - 85 AS col2, + SUM ( ALL - + 40 ) * + 26 + + 11 AS col1
----
172
-1029

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT DISTINCT - ( + + 99 ) DIV + 2 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - ( + + 99 ) / + 2 AS col2
----
-49

query I rowsort
SELECT DISTINCT - 92 * + 52 + - + 57 col1
----
-4841

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL ( 31 ) * ( - 81 ) + - MAX( ALL 22 ) * 5 + - 16 + - ( + 69 ) AS col1
----
-2706

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL ( 31 ) * ( - 81 ) + - MAX ( ALL 22 ) * 5 + - 16 + - ( + 69 ) AS col1
----
-2706

query I rowsort
SELECT - 49 + + 89
----
40

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

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

query I rowsort
SELECT DISTINCT 97 + + + 29 AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3126
SELECT ALL + + 53 + - COUNT( * ) * + CAST( - 4 AS SIGNED ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + + 53 + - COUNT ( * ) * + CAST ( - 4 AS INTEGER ) + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - 99 + 24 AS col2, 90 col1
----
-75
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3128
SELECT ALL - 40 + - - CAST( NULL AS SIGNED ) + + - 76 + + + COUNT( * ) + - 42 * - COUNT( * ) * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - 40 + - - CAST ( NULL AS INTEGER ) + + - 76 + + + COUNT ( * ) + - 42 * - COUNT ( * ) * - 86
----
NULL

query I rowsort
SELECT + - 60 * - + 20 AS col2
----
1200

query I rowsort
SELECT DISTINCT + 32 col1
----
32

query I rowsort
SELECT ALL 82 + 21 AS col0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-3132
SELECT - - SUM( ALL + 99 ) AS col2, + CASE 26 WHEN + 43 - 52 THEN + + 96 WHEN - 37 THEN NULL END AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3132
SELECT - - SUM ( ALL + 99 ) AS col2, + CASE 26 WHEN + 43 - 52 THEN + + 96 WHEN - 37 THEN NULL END AS col0
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT MIN( ALL - - NULLIF ( - 71, - 79 + - - ( - + 21 ) * 91 * 86 ) ) - 83 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT MIN ( ALL - - NULLIF ( - 71, - 79 + - - ( - + 21 ) * 91 * 86 ) ) - 83 AS col0
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT ALL - + 52 * CAST( 64 AS SIGNED ) / ( - COALESCE ( 91, - + 41 * - - 33 + 31 * + 6 ) ) - CAST( NULL AS SIGNED ) - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - + 52 * CAST ( 64 AS INTEGER ) / ( - COALESCE ( 91, - + 41 * - - 33 + 31 * + 6 ) ) - CAST ( NULL AS INTEGER ) - + 14
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3135
SELECT + 85 * 89 * - COUNT( * ) AS col1, 58 * + - 82 AS col1
----
-7565
-4756

skipif mysql # not compatible
query II rowsort label-3135
SELECT + 85 * 89 * - COUNT ( * ) AS col1, 58 * + - 82 AS col1
----
-7565
-4756

query I rowsort
SELECT - 91 * - - COALESCE ( + + ( - 11 ), 18 ) AS col2
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + COUNT( * ) - COUNT( * ) - + - 98 + 79 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-3137
SELECT + COUNT ( * ) - COUNT ( * ) - + - 98 + 79 AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL SUM( DISTINCT + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL SUM ( DISTINCT + 29 ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT CAST( - - 91 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3139
SELECT CAST ( - - 91 AS INTEGER ) AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT CAST( 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-3140
SELECT CAST ( 50 AS INTEGER )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT CAST( - 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-3141
SELECT CAST ( - 60 AS INTEGER )
----
-60

query I rowsort
SELECT - 32 * 56
----
-1792

query II rowsort
SELECT DISTINCT + 62 AS col2, - 89 * + 13
----
62
-1157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT ALL 82 / + 72 * + + 0 * + CAST( NULL AS SIGNED ) + + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL 82 / + 72 * + + 0 * + CAST ( NULL AS INTEGER ) + + 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT - 21 * + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT - 21 * + + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - 1 * - 17 * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3146
SELECT - 1 * - 17 * + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL - 3 * COUNT( * ) * - - 77
----
-231

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - 3 * COUNT ( * ) * - - 77
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT - 19 DIV - + 86
----
0

skipif mysql # not compatible
query I rowsort label-3148
SELECT - 19 / - + 86
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3149
SELECT DISTINCT - 48 / 54 * + 20 + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + 79, 22 - 7 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-3149
SELECT DISTINCT - 48 / 54 * + 20 + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + 79, 22 - 7 AS col1
----
NULL
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT ALL + 65 DIV 41 * + 3 + + COALESCE ( + 94, - - 54 ) DIV + + 80 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL + 65 / 41 * + 3 + + COALESCE ( + 94, - - 54 ) / + + 80 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ( - SUM( ( 33 ) ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3151
SELECT ( - SUM ( ( 33 ) ) ) AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3152
SELECT ALL 25 * - 23 + + COUNT( * ) + + 52 / + CAST( COUNT( * ) AS DECIMAL ) + - - NULLIF ( + MIN( + 81 ), - 81 ) + 46 + - - CAST( NULL AS DECIMAL ) + - 44 + 94 + - 28 * ( + - 41 ) + - 35 + - 99 + - 41 * + + 2 - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL 25 * - 23 + + COUNT ( * ) + + 52 / + CAST ( COUNT ( * ) AS REAL ) + - - NULLIF ( + MIN ( + 81 ), - 81 ) + 46 + - - CAST ( NULL AS REAL ) + - 44 + 94 + - 28 * ( + - 41 ) + - 35 + - 99 + - 41 * + + 2 - 36 AS col1
----
NULL

query I rowsort
SELECT - 66 + - 23
----
-89

query I rowsort
SELECT ALL + ( - 28 )
----
-28

query I rowsort
SELECT DISTINCT + - 81 AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3156
SELECT 55 * 34 DIV - 82 + - MAX( DISTINCT 84 ) AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-3156
SELECT 55 * 34 / - 82 + - MAX ( DISTINCT 84 ) AS col1
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3157
SELECT ALL - 21 * - 78 * - 15 + - - 10 + - COUNT( * ) DIV 99 DIV 22 AS col2
----
-24560

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - 21 * - 78 * - 15 + - - 10 + - COUNT ( * ) / 99 / 22 AS col2
----
-24560

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT + - COALESCE ( - NULLIF ( - CASE - 74 WHEN 69 THEN NULL ELSE - 2 END, MIN( DISTINCT 94 ) ), - ( - + 54 ), 84 )
----
2

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT + - COALESCE ( - NULLIF ( - CASE - 74 WHEN 69 THEN NULL ELSE - 2 END, MIN ( DISTINCT 94 ) ), - ( - + 54 ), 84 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3159
SELECT ALL - 57 * - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) * SUM( - 22 ) + + 27 * - 44 + - 43 + + 83, + 9 AS col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3159
SELECT ALL - 57 * - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * SUM ( - 22 ) + + 27 * - 44 + - 43 + + 83, + 9 AS col0
----
NULL
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3160
SELECT + CAST( NULL AS DECIMAL ) AS col2, 90 + - - 43
----
NULL
133

skipif mysql # not compatible
query II rowsort label-3160
SELECT + CAST ( NULL AS REAL ) AS col2, 90 + - - 43
----
NULL
133

onlyif mysql # aggregate syntax: 
query II rowsort label-3161
SELECT + 44, 68 + - COUNT( * ) - 15 AS col1
----
44
52

skipif mysql # not compatible
query II rowsort label-3161
SELECT + 44, 68 + - COUNT ( * ) - 15 AS col1
----
44
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT - + MAX( DISTINCT + - 57 ) + + + 14 + - MAX( DISTINCT 44 )
----
27

skipif mysql # not compatible
query I rowsort label-3162
SELECT - + MAX ( DISTINCT + - 57 ) + + + 14 + - MAX ( DISTINCT 44 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT - 26 * - - 18 + + 41 + ( + COALESCE ( - 96, + 86 * - - 74 * ( COUNT( * ) ) + 68 ) ) col2
----
-523

skipif mysql # not compatible
query I rowsort label-3163
SELECT - 26 * - - 18 + + 41 + ( + COALESCE ( - 96, + 86 * - - 74 * ( COUNT ( * ) ) + 68 ) ) col2
----
-523

query I rowsort
SELECT - 95 col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT ALL - 67 DIV + - 95
----
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - 67 / + - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3166
SELECT ALL 26 * - 92 + + - 42 - - + 33 DIV + 83 col0
----
-2434

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL 26 * - 92 + + - 42 - - + 33 / + 83 col0
----
-2434

query I rowsort
SELECT - 54 + + 90
----
36

query I rowsort
SELECT ALL + 43 * + 53
----
2279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3169
SELECT DISTINCT - COUNT( * ) * + + 32 DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - COUNT ( * ) * + + 32 / 75 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT - MIN( - CAST( - 2 AS SIGNED ) ) - - 89 + + 21
----
108

skipif mysql # not compatible
query I rowsort label-3170
SELECT - MIN ( - CAST ( - 2 AS INTEGER ) ) - - 89 + + 21
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT 34 * + MIN( ALL 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT 34 * + MIN ( ALL 0 ) AS col0
----
0

query II rowsort
SELECT 5 + - + COALESCE ( + 19, 18 ) AS col2, + 65 AS col0
----
-14
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT 40 - + 16 * 10 * + COUNT( * ) + 63 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3173
SELECT 40 - + 16 * 10 * + COUNT ( * ) + 63 AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3174
SELECT DISTINCT 91 DIV - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT 91 / - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3175
SELECT ALL COUNT( * ) * + 27 AS col2, 37 DIV + 80 + - + 50
----
27
-50

skipif mysql # not compatible
query II rowsort label-3175
SELECT ALL COUNT ( * ) * + 27 AS col2, 37 / + 80 + - + 50
----
27
-50

query I rowsort
SELECT 24 + - + 13
----
11

query I rowsort
SELECT ALL 20 + - + 9 + + 88 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - 22 * - 68 + - COUNT( * ) * 83 + 42
----
1455

skipif mysql # not compatible
query I rowsort label-3178
SELECT - 22 * - 68 + - COUNT ( * ) * 83 + 42
----
1455

query I rowsort
SELECT DISTINCT - NULLIF ( - + 36, 16 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3180
SELECT DISTINCT 49 + - 52 * - CASE - 61 WHEN + 85 * + + 70 THEN NULL WHEN - + 43 + SUM( ALL + - 32 ) THEN NULL ELSE - COUNT( * ) DIV + MIN( ALL + ( 96 ) ) * + 48 - - 23 END
----
1245

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT 49 + - 52 * - CASE - 61 WHEN + 85 * + + 70 THEN NULL WHEN - + 43 + SUM ( ALL + - 32 ) THEN NULL ELSE - COUNT ( * ) / + MIN ( ALL + ( 96 ) ) * + 48 - - 23 END
----
1245

query I rowsort
SELECT 23 * - 60
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT 59 + + COALESCE ( COUNT( - + 41 ), - NULLIF ( + 74, 70 ) * - COUNT( * ) * + 32 + - 61 ) * + 93 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-3182
SELECT 59 + + COALESCE ( COUNT ( - + 41 ), - NULLIF ( + 74, 70 ) * - COUNT ( * ) * + 32 + - 61 ) * + 93 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL 84 + COUNT( * ) col0
----
85

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL 84 + COUNT ( * ) col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3184
SELECT 49 * COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3185
SELECT COUNT( * ) * - 42 * - + 16 + + - CASE WHEN CASE - 34 WHEN + + 27 THEN + 8 WHEN CAST( NULL AS SIGNED ) THEN - 67 + + + 48 END >= - 14 THEN + 84 + + - 71 END + - SUM( DISTINCT + 67 ) - + - COUNT( * ) * + 40 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT COUNT ( * ) * - 42 * - + 16 + + - CASE WHEN CASE - 34 WHEN + + 27 THEN + 8 WHEN CAST ( NULL AS INTEGER ) THEN - 67 + + + 48 END >= - 14 THEN + 84 + + - 71 END + - SUM ( DISTINCT + 67 ) - + - COUNT ( * ) * + 40 + 20
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT DISTINCT - + COUNT( DISTINCT + 93 ) AS col1, 32 - + 19 AS col2
----
-1
13

skipif mysql # not compatible
query II rowsort label-3186
SELECT DISTINCT - + COUNT ( DISTINCT + 93 ) AS col1, 32 - + 19 AS col2
----
-1
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT ALL - + CAST( 21 AS SIGNED ) * - 7
----
147

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL - + CAST ( 21 AS INTEGER ) * - 7
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT - 71 - - COUNT( * ) - 59 + + + 5 * - 73 AS col0
----
-494

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT - 71 - - COUNT ( * ) - 59 + + + 5 * - 73 AS col0
----
-494

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT ALL - - 86 - - - 73 - 8 + - 73 DIV 47 * - 85 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - - 86 - - - 73 - 8 + - 73 / 47 * - 85 AS col1
----
90

query I rowsort
SELECT NULLIF ( + 73, - 33 ) * - 71 * 89
----
-461287

query I rowsort
SELECT 87 * - 55 + - 15
----
-4800

query I rowsort
SELECT 74 + - + 98
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL - CASE + 15 WHEN - 85 THEN + + 60 * - SUM( ALL 91 ) WHEN MIN( DISTINCT + 55 ) + + 13 * 57 * NULLIF ( 37, MIN( - 66 ) ) THEN NULL WHEN - 53 THEN NULL ELSE + COUNT( * ) + - ( + + 24 ) END AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - CASE + 15 WHEN - 85 THEN + + 60 * - SUM ( ALL 91 ) WHEN MIN ( DISTINCT + 55 ) + + 13 * 57 * NULLIF ( 37, MIN ( - 66 ) ) THEN NULL WHEN - 53 THEN NULL ELSE + COUNT ( * ) + - ( + + 24 ) END AS col0
----
23

query I rowsort
SELECT - 47 + 93 AS col0
----
46

query II rowsort
SELECT 64 + + COALESCE ( + - 15, - 0 ) AS col1, 22
----
49
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3196
SELECT + 21 / + 93 / + 53 * + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) - + + 59 AS col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-3196
SELECT + 21 / + 93 / + 53 * + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) - + + 59 AS col1
----
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT 43 + COUNT( * ) * ( 74 ) * 58 AS col2
----
4335

skipif mysql # not compatible
query I rowsort label-3197
SELECT 43 + COUNT ( * ) * ( 74 ) * 58 AS col2
----
4335

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT - 87 DIV 17
----
-5

skipif mysql # not compatible
query I rowsort label-3198
SELECT - 87 / 17
----
-5

query I rowsort
SELECT 36 + - 2 AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3200
SELECT ALL + COUNT( * ) DIV 9 * + - 5, - 89 AS col0
----
0
-89

skipif mysql # not compatible
query II rowsort label-3200
SELECT ALL + COUNT ( * ) / 9 * + - 5, - 89 AS col0
----
0
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3201
SELECT COUNT( * ) DIV - - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT COUNT ( * ) / - - 30 AS col0
----
0

query I rowsort
SELECT 5 * + ( + 68 ) * + CASE + - 65 WHEN + 66 THEN NULL ELSE ( - 92 ) - - - ( + + 14 ) END
----
-36040

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT SUM( ALL - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT SUM ( ALL - 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL - COUNT( * ) * - - 63
----
-63

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - COUNT ( * ) * - - 63
----
-63

query I rowsort
SELECT 14 * - + 69
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT 50 + - + 51 + - COUNT( * ) * + + ( - 23 )
----
22

skipif mysql # not compatible
query I rowsort label-3206
SELECT 50 + - + 51 + - COUNT ( * ) * + + ( - 23 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT DISTINCT MAX( DISTINCT 26 ) + - 72 + + - 84
----
-130

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT MAX ( DISTINCT 26 ) + - 72 + + - 84
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3208
SELECT ALL CAST( NULL AS SIGNED ) + 58 - - - 33 col0, - 21
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-3208
SELECT ALL CAST ( NULL AS INTEGER ) + 58 - - - 33 col0, - 21
----
NULL
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL COUNT( * ) * 13
----
13

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL COUNT ( * ) * 13
----
13

query I rowsort
SELECT ALL - 48 + + 3 AS col1
----
-45

query I rowsort
SELECT DISTINCT 79 + - 21 col1
----
58

query I rowsort
SELECT ALL 96 + + 22
----
118

query I rowsort
SELECT ALL + 76 + + 61 AS col2
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT 30 - - 96 DIV + + 15 + + 22 - + + ( 71 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3214
SELECT 30 - - 96 / + + 15 + + 22 - + + ( 71 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT - SUM( ALL - - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-3215
SELECT - SUM ( ALL - - 42 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3216
SELECT ALL 36 DIV + + CASE COALESCE ( - 56, + AVG ( ALL 47 ) ) WHEN - NULLIF ( - CAST( - 44 AS SIGNED ), - 46 * + 27 ) THEN NULL ELSE + 17 END * - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL 36 / + + CASE COALESCE ( - 56, + AVG ( ALL 47 ) ) WHEN - NULLIF ( - CAST ( - 44 AS INTEGER ), - 46 * + 27 ) THEN NULL ELSE + 17 END * - COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT COUNT( * ) DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3217
SELECT COUNT ( * ) / 77 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT DISTINCT 71 * + + MAX( - + 44 ) * + 44 - + - 90 DIV 94 * + COUNT( * ) * - COUNT( 13 ) * + 89 DIV + 57 + - + 3 AS col0
----
-137459

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT 71 * + + MAX ( - + 44 ) * + 44 - + - 90 / 94 * + COUNT ( * ) * - COUNT ( 13 ) * + 89 / + 57 + - + 3 AS col0
----
-137459

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT + COUNT( * ) AS col1, - 62
----
1
-62

skipif mysql # not compatible
query II rowsort label-3219
SELECT + COUNT ( * ) AS col1, - 62
----
1
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT ALL 3 DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL 3 / + 8
----
0

query I rowsort
SELECT ALL - - 86 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL 34 * COUNT( * ) - + 84 + + 63 * - + 3 + - COUNT( * ) AS col0
----
-240

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL 34 * COUNT ( * ) - + 84 + + 63 * - + 3 + - COUNT ( * ) AS col0
----
-240

query I rowsort
SELECT + ( - 95 ) AS col1
----
-95

query I rowsort
SELECT - 92 * - 49 * + - 16 - - 90 AS col1
----
-72038

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + 63 * COUNT( * ) * 78 + - - 24
----
4938

skipif mysql # not compatible
query I rowsort label-3225
SELECT + 63 * COUNT ( * ) * 78 + - - 24
----
4938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT DISTINCT + 48 * + - CASE - 71 WHEN - + COUNT( * ) / + + 38 + - COUNT( * ) / - AVG ( + 91 ) THEN + COUNT( + 24 ) * - + CAST( NULL AS SIGNED ) END * + - 92 * - SUM( ALL - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT + 48 * + - CASE - 71 WHEN - + COUNT ( * ) / + + 38 + - COUNT ( * ) / - AVG ( + 91 ) THEN + COUNT ( + 24 ) * - + CAST ( NULL AS INTEGER ) END * + - 92 * - SUM ( ALL - 90 )
----
NULL

query I rowsort
SELECT + 58 * - 81 + - 70
----
-4768

query I rowsort
SELECT - 72 + + - 89
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT DISTINCT + 77 * - + 5 * + ( + ( COALESCE ( + 39, COUNT( * ) + - + 5, - 26 * + 45 * + 20, - CASE 36 WHEN 2 THEN NULL ELSE + 6 END ) ) ) * - + 31 * + 36 * - - 50 AS col0
----
837837000

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT + 77 * - + 5 * + ( + ( COALESCE ( + 39, COUNT ( * ) + - + 5, - 26 * + 45 * + 20, - CASE 36 WHEN 2 THEN NULL ELSE + 6 END ) ) ) * - + 31 * + 36 * - - 50 AS col0
----
837837000

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL - 66 * + 95 * + 75 + COUNT( * )
----
-470249

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - 66 * + 95 * + 75 + COUNT ( * )
----
-470249

onlyif mysql # aggregate syntax: 
query II rowsort label-3231
SELECT + + 60 * - + 29 * + - 78 AS col1, MIN( ALL + 50 ) AS col1
----
135720
50

skipif mysql # not compatible
query II rowsort label-3231
SELECT + + 60 * - + 29 * + - 78 AS col1, MIN ( ALL + 50 ) AS col1
----
135720
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT - + 55 * + + 38 * + - SUM( - 14 ) AS col0
----
-29260

skipif mysql # not compatible
query I rowsort label-3232
SELECT - + 55 * + + 38 * + - SUM ( - 14 ) AS col0
----
-29260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL - CAST( - 46 AS SIGNED ) + - MAX( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL - CAST ( - 46 AS INTEGER ) + - MAX ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

query II rowsort
SELECT 96 AS col2, 74
----
96
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT - 56 * - 67 * + COUNT( * ) * - + 87 AS col0
----
-326424

skipif mysql # not compatible
query I rowsort label-3235
SELECT - 56 * - 67 * + COUNT ( * ) * - + 87 AS col0
----
-326424

query I rowsort
SELECT DISTINCT + ( - + 71 ) + 93 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3237
SELECT DISTINCT CASE COUNT( * ) WHEN CASE - - 61 WHEN - 54 THEN SUM( + 29 ) * + 35 WHEN + + CAST( + - 17 AS DECIMAL ) THEN 64 / - COUNT( * ) * 1 END + + + 50 * - 21 * - 84 THEN + - 34 ELSE NULL END * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT CASE COUNT ( * ) WHEN CASE - - 61 WHEN - 54 THEN SUM ( + 29 ) * + 35 WHEN + + CAST ( + - 17 AS REAL ) THEN 64 / - COUNT ( * ) * 1 END + + + 50 * - 21 * - 84 THEN + - 34 ELSE NULL END * - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL - COUNT( * ) + - CASE + + AVG ( ALL 85 ) WHEN + 4 THEN - 54 + - 56 * - + 42 END * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - COUNT ( * ) + - CASE + + AVG ( ALL 85 ) WHEN + 4 THEN - 54 + - 56 * - + 42 END * - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL CASE + - 45 WHEN - 61 THEN NULL WHEN + 54 THEN NULL ELSE + 59 END AS col1
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3240
SELECT DISTINCT NULLIF ( + 58, 89 * + NULLIF ( 5, - CAST( NULL AS DECIMAL ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT NULLIF ( + 58, 89 * + NULLIF ( 5, - CAST ( NULL AS REAL ) ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT + 62 + COUNT( DISTINCT + 60 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + 62 + COUNT ( DISTINCT + 60 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT - COUNT( * ) AS col2, 3 + + 56
----
-1
59

skipif mysql # not compatible
query II rowsort label-3242
SELECT - COUNT ( * ) AS col2, 3 + + 56
----
-1
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3243
SELECT ALL NULLIF ( 73, 63 * COUNT( * ) / + 64 + + + 1 - 91 ), + 71 - + 44 AS col2
----
73
27

skipif mysql # not compatible
query II rowsort label-3243
SELECT ALL NULLIF ( 73, 63 * COUNT ( * ) / + 64 + + + 1 - 91 ), + 71 - + 44 AS col2
----
73
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT + 31 * - MAX( DISTINCT - 98 ) AS col2
----
3038

skipif mysql # not compatible
query I rowsort label-3244
SELECT + 31 * - MAX ( DISTINCT - 98 ) AS col2
----
3038

query I rowsort
SELECT ALL - 45 - 7 * + 84 AS col0
----
-633

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3246
SELECT ALL 30 - 5 * + + 83 * - + CAST( - 5 AS SIGNED ) * - CAST( NULL AS SIGNED ) col2, 51 AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3246
SELECT ALL 30 - 5 * + + 83 * - + CAST ( - 5 AS INTEGER ) * - CAST ( NULL AS INTEGER ) col2, 51 AS col2
----
NULL
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3247
SELECT - COUNT( * ) col1, + NULLIF ( - 5, + 80 )
----
-1
-5

skipif mysql # not compatible
query II rowsort label-3247
SELECT - COUNT ( * ) col1, + NULLIF ( - 5, + 80 )
----
-1
-5

query I rowsort
SELECT ALL NULLIF ( + + 39, - 65 * + + 47 )
----
39

query I rowsort
SELECT DISTINCT + 0 * 84 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3250
SELECT + COUNT( * ) DIV 70 + + 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3250
SELECT + COUNT ( * ) / 70 + + 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3251
SELECT + 13, - COUNT( ALL - - 68 ) AS col1
----
13
-1

skipif mysql # not compatible
query II rowsort label-3251
SELECT + 13, - COUNT ( ALL - - 68 ) AS col1
----
13
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT - + 43 * 81 + + 54 DIV 70 + 61 * - - NULLIF ( 13, + - 83 DIV 58 * - ( + 77 ) * + COUNT( * ) DIV - 52 - + 43 + + 52 ) AS col0
----
-2690

skipif mysql # not compatible
query I rowsort label-3252
SELECT - + 43 * 81 + + 54 / 70 + 61 * - - NULLIF ( 13, + - 83 / 58 * - ( + 77 ) * + COUNT ( * ) / - 52 - + 43 + + 52 ) AS col0
----
-2690

query II rowsort
SELECT - 2 AS col0, + 72
----
-2
72

query I rowsort
SELECT ALL + ( - + 69 ) col1
----
-69

query II rowsort
SELECT 11 AS col1, 95 AS col1
----
11
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3256
SELECT + + COUNT( * ) * - CAST( NULL AS SIGNED ) / 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL + MAX( 49 ) * - + 36
----
-1764

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + MAX ( 49 ) * - + 36
----
-1764

query I rowsort
SELECT DISTINCT - 36 * - 21 AS col0
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3259
SELECT CASE + + 2 WHEN + MIN( DISTINCT + 47 ) / + COALESCE ( + 91, - 5, - 91 ) + - CAST( - 56 AS SIGNED ) THEN NULLIF ( - 81, - - 1 + - 8 + - 42 ) + - + 17 - - 90 - + NULLIF ( + 28, - 73 ) + - 88 WHEN MAX( - 36 ) * COUNT( - + ( + + 44 ) ) THEN NULL END AS col1, + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3259
SELECT CASE + + 2 WHEN + MIN ( DISTINCT + 47 ) / + COALESCE ( + 91, - 5, - 91 ) + - CAST ( - 56 AS INTEGER ) THEN NULLIF ( - 81, - - 1 + - 8 + - 42 ) + - + 17 - - 90 - + NULLIF ( + 28, - 73 ) + - 88 WHEN MAX ( - 36 ) * COUNT ( - + ( + + 44 ) ) THEN NULL END AS col1, + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query II rowsort
SELECT + 59 AS col0, 43 AS col0
----
59
43

query I rowsort
SELECT ( 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL + - 55 * + - MAX( DISTINCT + 24 ) + - 13 AS col1
----
1307

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL + - 55 * + - MAX ( DISTINCT + 24 ) + - 13 AS col1
----
1307

query I rowsort
SELECT + 31 + 24 AS col1
----
55

query I rowsort
SELECT + 36 * 61
----
2196

query I rowsort
SELECT - + 18 + CASE + 44 WHEN ( + 24 ) THEN - 42 + + 64 ELSE 72 END + + - 63
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3266
SELECT DISTINCT + - 24 * + - COUNT( * ) + - + 41 + CAST( NULL AS SIGNED ) AS col2, 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3266
SELECT DISTINCT + - 24 * + - COUNT ( * ) + - + 41 + CAST ( NULL AS INTEGER ) AS col2, 77
----
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT ALL + MAX( 65 ) col1, + 67
----
65
67

skipif mysql # not compatible
query II rowsort label-3267
SELECT ALL + MAX ( 65 ) col1, + 67
----
65
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT + ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3268
SELECT + ( + COUNT ( * ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT ALL - COUNT( * ) * 23 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - COUNT ( * ) * 23 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL - COUNT( * ) * + COUNT( * ) + COUNT( - 51 ) + ( 91 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + COUNT ( - 51 ) + ( 91 ) col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT ALL 92 * - COUNT( 34 ) + + 29
----
-63

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL 92 * - COUNT ( 34 ) + + 29
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT DISTINCT - 88 * 77 + COUNT( * ) + + CAST( + 10 AS SIGNED ) + + 73 AS col2
----
-6692

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - 88 * 77 + COUNT ( * ) + + CAST ( + 10 AS INTEGER ) + + 73 AS col2
----
-6692

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL + 85 * - - 63 * - - COUNT( * ) AS col2
----
5355

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL + 85 * - - 63 * - - COUNT ( * ) AS col2
----
5355

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT - COUNT( * ) + 57
----
56

skipif mysql # not compatible
query I rowsort label-3274
SELECT - COUNT ( * ) + 57
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT MAX( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-3275
SELECT MAX ( - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT + COUNT( * ) * - - 98
----
98

skipif mysql # not compatible
query I rowsort label-3276
SELECT + COUNT ( * ) * - - 98
----
98

query I rowsort
SELECT ALL + 85 * 15 AS col0
----
1275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3278
SELECT + MIN( + - 45 ) DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3278
SELECT + MIN ( + - 45 ) / 63 AS col1
----
0

query I rowsort
SELECT - ( - 80 ) + - 63 + + 49 * - 24 AS col0
----
-1159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3280
SELECT ALL - 13 - - SUM( + CAST( NULL AS SIGNED ) ) AS col2, - 3 * - - 53 * - 29
----
NULL
4611

skipif mysql # not compatible
query II rowsort label-3280
SELECT ALL - 13 - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col2, - 3 * - - 53 * - 29
----
NULL
4611

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL 25 * + + COUNT( * ) * 66 col1
----
1650

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL 25 * + + COUNT ( * ) * 66 col1
----
1650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT - 37 DIV - ( COUNT( * ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3282
SELECT - 37 / - ( COUNT ( * ) ) AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT ALL + 13 - + 25 + - 60 + ( + + ( + + 85 ) ) * - CAST( - 11 AS SIGNED )
----
863

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + 13 - + 25 + - 60 + ( + + ( + + 85 ) ) * - CAST ( - 11 AS INTEGER )
----
863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3284
SELECT ALL - COUNT( * ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - COUNT ( * ) / + 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3285
SELECT + 1 DIV - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3285
SELECT + 1 / - COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT DISTINCT - 41 DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT - 41 / - 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT - MAX( DISTINCT - + 48 ) - + 64
----
-16

skipif mysql # not compatible
query I rowsort label-3287
SELECT - MAX ( DISTINCT - + 48 ) - + 64
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT MIN( 73 ) * - 88 AS col1
----
-6424

skipif mysql # not compatible
query I rowsort label-3288
SELECT MIN ( 73 ) * - 88 AS col1
----
-6424

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3289
SELECT - 91 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT - 91 - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + - 66 * 19 col2
----
-1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3291
SELECT CAST( COUNT( * ) AS SIGNED ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - - 83
----
83

query I rowsort
SELECT ALL - 31 col2
----
-31

query I rowsort
SELECT DISTINCT - - 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3295
SELECT ALL + 10 + - 19 + 40 * - + 73 + + + 80 + - MAX( + 85 ) AS col0, - 15 AS col0
----
-2934
-15

skipif mysql # not compatible
query II rowsort label-3295
SELECT ALL + 10 + - 19 + 40 * - + 73 + + + 80 + - MAX ( + 85 ) AS col0, - 15 AS col0
----
-2934
-15

query I rowsort
SELECT - ( + 79 ) - - - 13 AS col1
----
-92

query I rowsort
SELECT ALL + 99 * + 38
----
3762

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3298
SELECT NULLIF ( - + CAST( NULL AS DECIMAL ), - - COUNT( * ) ) / + 36 * 39 / 92 + - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT NULLIF ( - + CAST ( NULL AS REAL ), - - COUNT ( * ) ) / + 36 * 39 / 92 + - 88 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 57 )
----
57

query II rowsort
SELECT DISTINCT - + 62 + 92 AS col2, + 64
----
30
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3301
SELECT - 7 + - ( + 54 ) * + 3 / - - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT + 28 ) * - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT - 7 + - ( + 54 ) * + 3 / - - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT + 28 ) * - + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT + CASE 64 WHEN - 61 THEN + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT + CASE 64 WHEN - 61 THEN + COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 94 * ( - + 1 ) + + 91 * + 34 AS col2
----
3000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT ALL - 83 DIV + - NULLIF ( - 42, 68 * CASE - 12 WHEN + 78 * COUNT( * ) THEN 26 - + 84 ELSE NULL END ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - 83 / + - NULLIF ( - 42, 68 * CASE - 12 WHEN + 78 * COUNT ( * ) THEN 26 - + 84 ELSE NULL END ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3305
SELECT + COALESCE ( ( + - 68 ), 35 * + + 18 - - + 76 DIV + - ( 29 ) * 85 + - - 64, + NULLIF ( + 40, MIN( ALL - 35 ) + + 89 * 31 * - 52 ) * - 11 )
----
-68

skipif mysql # not compatible
query I rowsort label-3305
SELECT + COALESCE ( ( + - 68 ), 35 * + + 18 - - + 76 / + - ( 29 ) * 85 + - - 64, + NULLIF ( + 40, MIN ( ALL - 35 ) + + 89 * 31 * - 52 ) * - 11 )
----
-68

query I rowsort
SELECT ALL 80 + 47 * 70
----
3370

query I rowsort
SELECT 43 + 16 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3308
SELECT ALL - CAST( ( 79 ) AS SIGNED ) * - 53 AS col0, + 1
----
4187
1

skipif mysql # not compatible
query II rowsort label-3308
SELECT ALL - CAST ( ( 79 ) AS INTEGER ) * - 53 AS col0, + 1
----
4187
1

query II rowsort
SELECT + 78, 3 AS col2
----
78
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT ALL CAST( + 34 AS SIGNED ) * - 84 + 27 + - 91 + + - 48
----
-2968

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL CAST ( + 34 AS INTEGER ) * - 84 + 27 + - 91 + + - 48
----
-2968

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3311
SELECT COUNT( * ) - CASE + 99 WHEN - + ( - + 86 ) DIV + 6 * - COUNT( * ) + + CASE + 60 WHEN + ( + 47 ) THEN NULL ELSE CAST( NULL AS DECIMAL ) - + ( 71 ) + + NULLIF ( + + 91, + 32 DIV + NULLIF ( COUNT( * ), 8 * - + 65 * - + 87 * - COUNT( * ) + SUM( DISTINCT + 26 ) ) + + 94 DIV 15 ) END * 31 THEN NULL ELSE - + 85 END DIV + + COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-3311
SELECT COUNT ( * ) - CASE + 99 WHEN - + ( - + 86 ) / + 6 * - COUNT ( * ) + + CASE + 60 WHEN + ( + 47 ) THEN NULL ELSE CAST ( NULL AS REAL ) - + ( 71 ) + + NULLIF ( + + 91, + 32 / + NULLIF ( COUNT ( * ), 8 * - + 65 * - + 87 * - COUNT ( * ) + SUM ( DISTINCT + 26 ) ) + + 94 / 15 ) END * 31 THEN NULL ELSE - + 85 END / + + COUNT ( * ) col0
----
86

query I rowsort
SELECT 17 * - + 14 * 71 * + 65 + + 35
----
-1098335

query I rowsort
SELECT DISTINCT 97 col2
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3314
SELECT CAST( - CAST( 92 AS SIGNED ) AS SIGNED ) * + - 3 + - 10 * 37 DIV + + 43
----
268

skipif mysql # not compatible
query I rowsort label-3314
SELECT CAST ( - CAST ( 92 AS INTEGER ) AS INTEGER ) * + - 3 + - 10 * 37 / + + 43
----
268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3315
SELECT 58 * - - 1 * + 68, COUNT( 25 ) / + - CAST( NULL AS SIGNED ) AS col1
----
3944
NULL

skipif mysql # not compatible
query II rowsort label-3315
SELECT 58 * - - 1 * + 68, COUNT ( 25 ) / + - CAST ( NULL AS INTEGER ) AS col1
----
3944
NULL

query I rowsort
SELECT 93 * + - 82 AS col2
----
-7626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT ALL 71 * + - 78 * - CAST( NULL AS SIGNED ) * + + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL 71 * + - 78 * - CAST ( NULL AS INTEGER ) * + + 20 AS col0
----
NULL

query I rowsort
SELECT 64 + - 55
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + SUM( 33 ) + + 9
----
42

skipif mysql # not compatible
query I rowsort label-3319
SELECT + SUM ( 33 ) + + 9
----
42

query I rowsort
SELECT ( + 59 ) - - 30 + + - 81 + - - 58 AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3321
SELECT ALL + CAST( - 36 AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + CAST ( - 36 AS INTEGER ) AS col2
----
-36

query I rowsort
SELECT DISTINCT - 38 col1
----
-38

query II rowsort
SELECT - 48, - 4 AS col0
----
-48
-4

query I rowsort
SELECT ALL + 19 + + 72
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT + 61 * + 8 - - 28 + - - 77 * SUM( - 33 ) + CAST( NULL AS SIGNED ) + - - CASE - COUNT( * ) WHEN + + CAST( NULL AS SIGNED ) THEN 73 END + + - 64 * + - 63 * 34 / - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + 61 * + 8 - - 28 + - - 77 * SUM ( - 33 ) + CAST ( NULL AS INTEGER ) + - - CASE - COUNT ( * ) WHEN + + CAST ( NULL AS INTEGER ) THEN 73 END + + - 64 * + - 63 * 34 / - 7
----
NULL

query I rowsort
SELECT - 24 + - 69 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT - - ( - ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT - - ( - ( - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3328
SELECT - - MIN( + 3 ) DIV + + 75 + - 58
----
-58

skipif mysql # not compatible
query I rowsort label-3328
SELECT - - MIN ( + 3 ) / + + 75 + - 58
----
-58

query I rowsort
SELECT ALL - + 60 + 62 AS col0
----
2

query I rowsort
SELECT + 91 * + 25
----
2275

query I rowsort
SELECT + ( - - 26 ) AS col2
----
26

query I rowsort
SELECT 92 * - 29 + + 59 * 60 + - 3 AS col1
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL - NULLIF ( + - 60, COUNT( * ) + - 33 )
----
60

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL - NULLIF ( + - 60, COUNT ( * ) + - 33 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3334
SELECT DISTINCT 83 + - 15 + - + 3 DIV - SUM( 78 ) * NULLIF ( - 9, + ( - 13 ) - - 67 + - + 83 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT 83 + - 15 + - + 3 / - SUM ( 78 ) * NULLIF ( - 9, + ( - 13 ) - - 67 + - + 83 ) AS col0
----
68

query I rowsort
SELECT DISTINCT + 96 + - - 10
----
106

query I rowsort
SELECT DISTINCT + - 18 + + + 29 AS col2
----
11

query I rowsort
SELECT ALL - + 47 * + 77
----
-3619

query II rowsort
SELECT + + 28 AS col2, - ( + 69 ) AS col0
----
28
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT - COUNT( * ) * 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT - COUNT ( * ) * 63 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT 23 * + + COUNT( * ) col1
----
23

skipif mysql # not compatible
query I rowsort label-3340
SELECT 23 * + + COUNT ( * ) col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL + COALESCE ( + + 85, - CASE + 24 WHEN - 47 * 77 THEN NULL WHEN - - MAX( + 72 ) THEN - 18 END + - 19 * - - 16 * - 25 + - + 9 ) - - 7
----
92

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + COALESCE ( + + 85, - CASE + 24 WHEN - 47 * 77 THEN NULL WHEN - - MAX ( + 72 ) THEN - 18 END + - 19 * - - 16 * - 25 + - + 9 ) - - 7
----
92

query I rowsort
SELECT 39 + 41 * - 46 + + 10 * - + 16
----
-2007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT 78 * + 94 / + - 84 * - CAST( NULL AS SIGNED ) * + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT 78 * + 94 / + - 84 * - CAST ( NULL AS INTEGER ) * + 57 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 73 * - ( - 69 )
----
5037

query I rowsort
SELECT 74 + - - 0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT + 41 * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + 41 * COUNT ( * )
----
41

query I rowsort
SELECT ALL 72 * + 28
----
2016

query I rowsort
SELECT DISTINCT 30 * + 29
----
870

query I rowsort
SELECT + 42 * + 64 AS col0
----
2688

query I rowsort
SELECT + 86 * - - 24 AS col1
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL 26 + 28 + - 77 - - MIN( ( + 86 ) ) * + + 21 col0
----
1783

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL 26 + 28 + - 77 - - MIN ( ( + 86 ) ) * + + 21 col0
----
1783

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL COUNT( ALL + + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL COUNT ( ALL + + 71 )
----
1

query I rowsort
SELECT DISTINCT 44 + - + 5 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT + - 93 * 10 DIV + 66 - - 66
----
52

skipif mysql # not compatible
query I rowsort label-3354
SELECT + - 93 * 10 / + 66 - - 66
----
52

query I rowsort
SELECT + + 88 * + 72 AS col1
----
6336

query I rowsort
SELECT - + ( 57 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL - 7 + + CASE - + 1 WHEN + - COUNT( * ) THEN NULL WHEN + + 8 THEN NULL ELSE - 97 * - - 61 * - AVG ( 0 ) * - 86 * + CAST( NULL AS SIGNED ) - - COUNT( * ) + + + 28 - - 40 + + COUNT( * ) * + 90 * - - ( - + ( + 7 ) ) + + + 43 + - 90 * + ( - - 36 ) * 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL - 7 + + CASE - + 1 WHEN + - COUNT ( * ) THEN NULL WHEN + + 8 THEN NULL ELSE - 97 * - - 61 * - AVG ( 0 ) * - 86 * + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + + + 28 - - 40 + + COUNT ( * ) * + 90 * - - ( - + ( + 7 ) ) + + + 43 + - 90 * + ( - - 36 ) * 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT + + 27 - - 58 + + - CASE + + COUNT( * ) WHEN - + 3 THEN - + 41 WHEN - 87 THEN NULL ELSE NULL END + + + 7 + + NULLIF ( + 9, + - 81 / + 64 ) * + - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT + + 27 - - 58 + + - CASE + + COUNT ( * ) WHEN - + 3 THEN - + 41 WHEN - 87 THEN NULL ELSE NULL END + + + 7 + + NULLIF ( + 9, + - 81 / + 64 ) * + - 16 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3359
SELECT ALL 28 * + CASE + 20 WHEN - 2 * - CAST( NULL AS DECIMAL ) THEN NULL WHEN + NULLIF ( - 72, - + 65 + - 14 ) THEN NULL ELSE + 77 * - COUNT( * ) * - 12 * + - 0 * + + 53 * + 5 END
----
0

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL 28 * + CASE + 20 WHEN - 2 * - CAST ( NULL AS REAL ) THEN NULL WHEN + NULLIF ( - 72, - + 65 + - 14 ) THEN NULL ELSE + 77 * - COUNT ( * ) * - 12 * + - 0 * + + 53 * + 5 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT DISTINCT 67 * - 62 - + - 21 + CAST( NULL AS SIGNED ) * 16 * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT 67 * - 62 - + - 21 + CAST ( NULL AS INTEGER ) * 16 * + 90
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3361
SELECT ALL - + 27 * 87 - + 34 DIV + - MAX( ALL - + CASE - 54 WHEN - 51 DIV 38 THEN - - 78 * - 85 WHEN + + ( - 56 ) THEN NULL ELSE + 36 + + - 8 END ), - 12 AS col0
----
-2350
-12

skipif mysql # not compatible
query II rowsort label-3361
SELECT ALL - + 27 * 87 - + 34 / + - MAX ( ALL - + CASE - 54 WHEN - 51 / 38 THEN - - 78 * - 85 WHEN + + ( - 56 ) THEN NULL ELSE + 36 + + - 8 END ), - 12 AS col0
----
-2350
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3362
SELECT - + MAX( - 25 ) - - - 41 + - COUNT( * ) DIV - - MAX( + - 27 ) * 86 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3362
SELECT - + MAX ( - 25 ) - - - 41 + - COUNT ( * ) / - - MAX ( + - 27 ) * 86 AS col0
----
-16

query I rowsort
SELECT + 48 * 0 - + - 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - COUNT( ALL + + 6 ) * - 7 * - + COUNT( - - 82 ) * + 0 + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-3364
SELECT - COUNT ( ALL + + 6 ) * - 7 * - + COUNT ( - - 82 ) * + 0 + - 97
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3365
SELECT + 18 AS col2, COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-3365
SELECT + 18 AS col2, COUNT ( * )
----
18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT + 50 + COUNT( * ) * - - 2 * + MAX( + + 71 ) * + MIN( DISTINCT + 95 )
----
13540

skipif mysql # not compatible
query I rowsort label-3366
SELECT + 50 + COUNT ( * ) * - - 2 * + MAX ( + + 71 ) * + MIN ( DISTINCT + 95 )
----
13540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL + 26 * CASE + CAST( + COUNT( * ) AS SIGNED ) WHEN + 98 + - COUNT( ALL + 50 ) THEN 75 * CASE + 35 WHEN - 0 THEN + COUNT( * ) WHEN 8 THEN NULL END WHEN - ( - + NULLIF ( 14, COUNT( * ) / - 11 ) ) THEN NULL WHEN 21 * 29 + 45 THEN NULL ELSE + SUM( DISTINCT - + 98 ) * - COUNT( * ) END
----
2548

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + 26 * CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN + 98 + - COUNT ( ALL + 50 ) THEN 75 * CASE + 35 WHEN - 0 THEN + COUNT ( * ) WHEN 8 THEN NULL END WHEN - ( - + NULLIF ( 14, COUNT ( * ) / - 11 ) ) THEN NULL WHEN 21 * 29 + 45 THEN NULL ELSE + SUM ( DISTINCT - + 98 ) * - COUNT ( * ) END
----
2548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT ALL ( - + 98 ) DIV + COUNT( + 59 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL ( - + 98 ) / + COUNT ( + 59 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT DISTINCT + 0, CASE COUNT( * ) WHEN 31 * + 12 + CASE + 40 WHEN + - 81 THEN - CASE - 14 WHEN - 3 THEN - - 16 + - 53 END * 10 - - 83 WHEN - + 96 + 93 THEN NULL ELSE NULL END * - 60 THEN + - 90 * - 26 - - + 0 * 55 * 42 + + 55 END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3369
SELECT DISTINCT + 0, CASE COUNT ( * ) WHEN 31 * + 12 + CASE + 40 WHEN + - 81 THEN - CASE - 14 WHEN - 3 THEN - - 16 + - 53 END * 10 - - 83 WHEN - + 96 + 93 THEN NULL ELSE NULL END * - 60 THEN + - 90 * - 26 - - + 0 * 55 * 42 + + 55 END AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL + NULLIF ( - 63, 82 / + COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + NULLIF ( - 63, 82 / + COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + 84 * + SUM( ALL + 44 ) col2
----
3696

skipif mysql # not compatible
query I rowsort label-3371
SELECT + 84 * + SUM ( ALL + 44 ) col2
----
3696

query I rowsort
SELECT - 78 + - 9 AS col2
----
-87

query I rowsort
SELECT DISTINCT ( + 10 ) AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3374
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 34
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-3374
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 34
----
NULL
-34

query I rowsort
SELECT DISTINCT + 37 + 65 AS col1
----
102

query II rowsort
SELECT - 64 AS col1, 84 * 3 + - 29 + 79 AS col0
----
-64
302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3377
SELECT - - 66 - + + SUM( 26 ) * + + 32 * 31 + CAST( + 11 AS SIGNED ) col2
----
-25715

skipif mysql # not compatible
query I rowsort label-3377
SELECT - - 66 - + + SUM ( 26 ) * + + 32 * 31 + CAST ( + 11 AS INTEGER ) col2
----
-25715

query II rowsort
SELECT DISTINCT 82 AS col1, 74
----
82
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + - 17 + + SUM( + - 41 ) * - COUNT( * ) col2
----
24

skipif mysql # not compatible
query I rowsort label-3379
SELECT + - 17 + + SUM ( + - 41 ) * - COUNT ( * ) col2
----
24

query I rowsort
SELECT - 46 + + - 81 col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT SUM( ALL 32 )
----
32

skipif mysql # not compatible
query I rowsort label-3381
SELECT SUM ( ALL 32 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3382
SELECT - MAX( DISTINCT 73 ) + COALESCE ( - - 17, + + 26 ) AS col1, 49 + - - 37 + - + ( + 47 ) DIV 76
----
-56
86

skipif mysql # not compatible
query II rowsort label-3382
SELECT - MAX ( DISTINCT 73 ) + COALESCE ( - - 17, + + 26 ) AS col1, 49 + - - 37 + - + ( + 47 ) / 76
----
-56
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT 99 * - COUNT( * ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT 99 * - COUNT ( * ) AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3384
SELECT - MIN( DISTINCT + - 79 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT - MIN ( DISTINCT + - 79 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + 43 - - 43 * - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT + 43 - - 43 * - COUNT ( * ) col0
----
0

query II rowsort
SELECT 70, 7 col1
----
70
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT + + 90 + ( - CAST( NULL AS SIGNED ) ) * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT + + 90 + ( - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - CASE + 88 WHEN + 38 THEN 94 END AS col0
----
NULL

query I rowsort
SELECT + - 15 + - 27 + - + 67 * - 41 * 2 - + + 68 col2
----
5384

query I rowsort
SELECT DISTINCT + - 1 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3391
SELECT ALL + 96 DIV 28 - + 61 - + 63 * + 1 + - - 64 * + CASE + 64 WHEN + 38 THEN 51 ELSE + 90 DIV + + CASE 65 WHEN 12 THEN NULL ELSE - 63 END END AS col2, 58
----
-185
58

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL + 96 / 28 - + 61 - + 63 * + 1 + - - 64 * + CASE + 64 WHEN + 38 THEN 51 ELSE + 90 / + + CASE 65 WHEN 12 THEN NULL ELSE - 63 END END AS col2, 58
----
-185
58

query I rowsort
SELECT ( - + NULLIF ( + 98, + AVG ( ALL ( + 67 ) ) + - 87 ) ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT + 89 * - 95 * + SUM( ALL 8 )
----
-67640

skipif mysql # not compatible
query I rowsort label-3393
SELECT + 89 * - 95 * + SUM ( ALL 8 )
----
-67640

onlyif mysql # aggregate syntax: 
query II rowsort label-3394
SELECT ALL 62 * - - COUNT( * ), - 41 AS col0
----
62
-41

skipif mysql # not compatible
query II rowsort label-3394
SELECT ALL 62 * - - COUNT ( * ), - 41 AS col0
----
62
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT 97 * - 49 * - - COUNT( * ) * - ( - 20 )
----
-95060

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT 97 * - 49 * - - COUNT ( * ) * - ( - 20 )
----
-95060

query I rowsort
SELECT ALL ( + + CASE - 53 WHEN + 59 THEN 58 ELSE NULL END ) * 54 + + 69 + - - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3397
SELECT DISTINCT + 91 AS col2, 73 * - CASE - + 46 WHEN - COALESCE ( - + MIN( - - 3 ), - COUNT( * ) ) + + - 40 THEN - ( CASE + CASE - 1 WHEN - COALESCE ( - 37, - SUM( + 76 ) ) THEN 4 + - - 63 ELSE - 88 END WHEN + + 1 THEN NULL WHEN - - 63 THEN - 26 END ) END
----
91
NULL

skipif mysql # not compatible
query II rowsort label-3397
SELECT DISTINCT + 91 AS col2, 73 * - CASE - + 46 WHEN - COALESCE ( - + MIN ( - - 3 ), - COUNT ( * ) ) + + - 40 THEN - ( CASE + CASE - 1 WHEN - COALESCE ( - 37, - SUM ( + 76 ) ) THEN 4 + - - 63 ELSE - 88 END WHEN + + 1 THEN NULL WHEN - - 63 THEN - 26 END ) END
----
91
NULL

query II rowsort
SELECT ALL + 33 AS col0, 57
----
33
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT CAST( 5 AS SIGNED ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3399
SELECT CAST ( 5 AS INTEGER ) AS col2
----
5

query II rowsort
SELECT ALL + 3, + 38 col2
----
3
38

query I rowsort
SELECT DISTINCT 61 * - 76
----
-4636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT + NULLIF ( - 78, + CAST( + COUNT( * ) AS SIGNED ) + 19 - 32 * + 95 * 30 * + 64 ) * + COALESCE ( + COUNT( * ), + 67 * MIN( DISTINCT - 40 ) ) * SUM( DISTINCT + 9 ) + NULLIF ( + 19, 50 / 18 ) * + 94
----
1084

skipif mysql # not compatible
query I rowsort label-3402
SELECT + NULLIF ( - 78, + CAST ( + COUNT ( * ) AS INTEGER ) + 19 - 32 * + 95 * 30 * + 64 ) * + COALESCE ( + COUNT ( * ), + 67 * MIN ( DISTINCT - 40 ) ) * SUM ( DISTINCT + 9 ) + NULLIF ( + 19, 50 / 18 ) * + 94
----
1084

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL 96 + COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL 96 + COUNT ( * ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT SUM( 32 ) + - MIN( - 16 ) * - MIN( DISTINCT 73 ) * + + 4
----
-4640

skipif mysql # not compatible
query I rowsort label-3404
SELECT SUM ( 32 ) + - MIN ( - 16 ) * - MIN ( DISTINCT 73 ) * + + 4
----
-4640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3405
SELECT ALL + 96 + + 96 + + 89 - COALESCE ( CAST( NULL AS SIGNED ), + 17 DIV + - NULLIF ( + ( 90 ), + 62 ) ) + + + COUNT( DISTINCT - 39 )
----
282

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + 96 + + 96 + + 89 - COALESCE ( CAST ( NULL AS INTEGER ), + 17 / + - NULLIF ( + ( 90 ), + 62 ) ) + + + COUNT ( DISTINCT - 39 )
----
282

query I rowsort
SELECT 9 + - - 65 AS col2
----
74

query II rowsort
SELECT 12 AS col2, + 48 AS col0
----
12
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3408
SELECT ALL 63, - COUNT( * ) col0
----
63
-1

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL 63, - COUNT ( * ) col0
----
63
-1

query I rowsort
SELECT DISTINCT - 78 + - + 9 + 45 + + 67 * + 32
----
2102

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - - MAX( - 79 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-3410
SELECT - - MAX ( - 79 ) col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3411
SELECT - 44 * - CAST( NULL AS SIGNED ), 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-3411
SELECT - 44 * - CAST ( NULL AS INTEGER ), 46 AS col2
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT + COALESCE ( + SUM( + + 44 ), - 79, 64 )
----
44

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT + COALESCE ( + SUM ( + + 44 ), - 79, 64 )
----
44

query II rowsort
SELECT ALL 78, - 53 * 90 AS col1
----
78
-4770

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT COUNT( DISTINCT + - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-3414
SELECT COUNT ( DISTINCT + - 92 )
----
1

query I rowsort
SELECT + 27 + 85 - - 12 AS col1
----
124

query I rowsort
SELECT ALL + 22 * - 21 * 73 AS col0
----
-33726

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3417
SELECT CAST( NULL AS DECIMAL ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT CAST ( NULL AS REAL ) * 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3418
SELECT DISTINCT 84 AS col0, - CASE + 28 WHEN ( - + 38 ) + + 2 THEN NULL WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) * - COUNT( * ) ELSE NULL END
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3418
SELECT DISTINCT 84 AS col0, - CASE + 28 WHEN ( - + 38 ) + + 2 THEN NULL WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ELSE NULL END
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT COUNT( * ) * + - 40 + + COUNT( - 49 ) + + - 8
----
-47

skipif mysql # not compatible
query I rowsort label-3419
SELECT COUNT ( * ) * + - 40 + + COUNT ( - 49 ) + + - 8
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3420
SELECT - + 36 col1, COUNT( * ) * + 55
----
-36
55

skipif mysql # not compatible
query II rowsort label-3420
SELECT - + 36 col1, COUNT ( * ) * + 55
----
-36
55

query III rowsort
SELECT - + 67 AS col2, 44 col1, 37
----
-67
44
37

query I rowsort
SELECT - 73 - - 38 * - 48
----
-1897

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3423
SELECT ALL - 73 * 40 AS col1, CAST( NULL AS DECIMAL ) * - 62
----
-2920
NULL

skipif mysql # not compatible
query II rowsort label-3423
SELECT ALL - 73 * 40 AS col1, CAST ( NULL AS REAL ) * - 62
----
-2920
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT 59 + + - 25 + + 58 DIV - 60 * ( + NULLIF ( - ( 88 ), - + 91 + + - 44 ) ) + - ( - 97 ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-3424
SELECT 59 + + - 25 + + 58 / - 60 * ( + NULLIF ( - ( 88 ), - + 91 + + - 44 ) ) + - ( - 97 ) AS col0
----
131

query I rowsort
SELECT - ( + 98 )
----
-98

query I rowsort
SELECT DISTINCT - - 6 * + 26
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT 72 DIV + - 53 + + + 17 DIV - 64 + + 11 * COUNT( * ) + + - 31
----
-21

skipif mysql # not compatible
query I rowsort label-3427
SELECT 72 / + - 53 + + + 17 / - 64 + + 11 * COUNT ( * ) + + - 31
----
-21

query I rowsort
SELECT DISTINCT + ( - 14 ) * + 15
----
-210

query I rowsort
SELECT DISTINCT + 54 + - - 22 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT + COUNT( * ) * + ( - 71 ) - + - NULLIF ( + + 38, 17 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3430
SELECT + COUNT ( * ) * + ( - 71 ) - + - NULLIF ( + + 38, 17 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL 55 + - ( - + COUNT( * ) ) col0
----
56

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL 55 + - ( - + COUNT ( * ) ) col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT 67 + - COUNT( * ) AS col2, - 86
----
66
-86

skipif mysql # not compatible
query II rowsort label-3432
SELECT 67 + - COUNT ( * ) AS col2, - 86
----
66
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT COUNT( * ) + - COALESCE ( - - 31, + + COALESCE ( + - 49, - COUNT( - 64 ) ) + - ( + 61 ), + 59 )
----
-30

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT COUNT ( * ) + - COALESCE ( - - 31, + + COALESCE ( + - 49, - COUNT ( - 64 ) ) + - ( + 61 ), + 59 )
----
-30

query I rowsort
SELECT DISTINCT - COALESCE ( - - 53, 14 )
----
-53

query I rowsort
SELECT DISTINCT 54 * + 8
----
432

query I rowsort
SELECT DISTINCT 48 + ( + 11 ) * 68
----
796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3437
SELECT DISTINCT 6 + 65 + + - COUNT( * ) DIV + 6 * - - 74 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT 6 + 65 + + - COUNT ( * ) / + 6 * - - 74 AS col0
----
71

query I rowsort
SELECT ALL 49 + + + 29 AS col0
----
78

query I rowsort
SELECT 56 * + 74 col2
----
4144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT CAST( - 75 AS SIGNED ) + + 13
----
-62

skipif mysql # not compatible
query I rowsort label-3440
SELECT CAST ( - 75 AS INTEGER ) + + 13
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT - 64 DIV - 65 + - 81 + + 26 * COUNT( + + 1 )
----
-55

skipif mysql # not compatible
query I rowsort label-3441
SELECT - 64 / - 65 + - 81 + + 26 * COUNT ( + + 1 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT 56 - - - 87 * - - COUNT( * ) * + 22
----
-1858

skipif mysql # not compatible
query I rowsort label-3442
SELECT 56 - - - 87 * - - COUNT ( * ) * + 22
----
-1858

query I rowsort
SELECT DISTINCT ( + 88 ) AS col2
----
88

query I rowsort
SELECT 28 + ( + 34 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL - COUNT( * ) * 33 + 20 - 38 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - COUNT ( * ) * 33 + 20 - 38 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT - 80 * 62 AS col1, - 62 * + 82 * - COUNT( * ) * + 33 col0
----
-4960
167772

skipif mysql # not compatible
query II rowsort label-3446
SELECT - 80 * 62 AS col1, - 62 * + 82 * - COUNT ( * ) * + 33 col0
----
-4960
167772

query I rowsort
SELECT 62 * + + 62 AS col0
----
3844

query I rowsort
SELECT ALL - 95 * + 46
----
-4370

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT ALL MIN( - 66 ) + + - 11 AS col2, 29 + - - 23 col0
----
-77
52

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL MIN ( - 66 ) + + - 11 AS col2, 29 + - - 23 col0
----
-77
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3450
SELECT - CASE - 51 WHEN 61 * + 80 / + - 5 - 77 / - CAST( + MIN( + COALESCE ( 91, + 97 ) ) AS SIGNED ) + 6 + 25 + + + 73 / 7 THEN 91 WHEN + 58 THEN + 38 ELSE + 78 + - 26 END + + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3450
SELECT - CASE - 51 WHEN 61 * + 80 / + - 5 - 77 / - CAST ( + MIN ( + COALESCE ( 91, + 97 ) ) AS INTEGER ) + 6 + 25 + + + 73 / 7 THEN 91 WHEN + 58 THEN + 38 ELSE + 78 + - 26 END + + - COUNT ( * )
----
-53

query I rowsort
SELECT COALESCE ( + 1, + COALESCE ( 55, - COALESCE ( 30, - - 88 ), ( 96 ) + - 50 * 83 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT - 44 DIV - + 26
----
1

skipif mysql # not compatible
query I rowsort label-3452
SELECT - 44 / - + 26
----
1

query I rowsort
SELECT - 50 + 56
----
6

query II rowsort
SELECT NULLIF ( 16, - 55 ), - 54 AS col2
----
16
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3455
SELECT NULLIF ( - - 75, + CAST( NULL AS SIGNED ) - + NULLIF ( + MIN( + + 60 ), - - 90 + + 49 ) ) AS col0, 90
----
75
90

skipif mysql # not compatible
query II rowsort label-3455
SELECT NULLIF ( - - 75, + CAST ( NULL AS INTEGER ) - + NULLIF ( + MIN ( + + 60 ), - - 90 + + 49 ) ) AS col0, 90
----
75
90

query I rowsort
SELECT CASE - 35 WHEN + 28 THEN - + 87 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT - COUNT( * ) * + 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3457
SELECT - COUNT ( * ) * + 14 AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3458
SELECT ALL 91 * + 21 + + 77 DIV COUNT( * ) AS col2
----
1988

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL 91 * + 21 + + 77 / COUNT ( * ) AS col2
----
1988

query I rowsort
SELECT DISTINCT + ( + - CASE - - 17 WHEN - 33 THEN ( - ( + 70 ) ) END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL COUNT( * ) * + 23 + COUNT( 68 ) * - 72 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL COUNT ( * ) * + 23 + COUNT ( 68 ) * - 72 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ALL - 33 * + - 60 * + 1 * + COUNT( * ) + - 87
----
1893

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL - 33 * + - 60 * + 1 * + COUNT ( * ) + - 87
----
1893

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL + 33 * + ( ( MIN( DISTINCT - 83 ) ) ) * + + 62
----
-169818

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + 33 * + ( ( MIN ( DISTINCT - 83 ) ) ) * + + 62
----
-169818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3463
SELECT DISTINCT 72 * + CAST( + COUNT( * ) AS SIGNED ) + 67 + + COUNT( * ) DIV - 34 col2
----
139

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT 72 * + CAST ( + COUNT ( * ) AS INTEGER ) + 67 + + COUNT ( * ) / - 34 col2
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3464
SELECT ALL MAX( ALL + - 29 ) DIV + 41 * + COALESCE ( - - SUM( ALL - 74 ), + MAX( + ( 9 ) ) + - 35 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL MAX ( ALL + - 29 ) / + 41 * + COALESCE ( - - SUM ( ALL - 74 ), + MAX ( + ( 9 ) ) + - 35 ) col0
----
0

query I rowsort
SELECT + 1 + 78 + - 9 * 48 AS col2
----
-353

query I rowsort
SELECT DISTINCT 78 * - ( 29 ) - 37 AS col0
----
-2299

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT MIN( - 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3467
SELECT MIN ( - 83 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT + 90 * + - 27 + + COUNT( * ) - + 62
----
-2491

skipif mysql # not compatible
query I rowsort label-3468
SELECT + 90 * + - 27 + + COUNT ( * ) - + 62
----
-2491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3469
SELECT DISTINCT + - COUNT( * ) * - 31 - - 22 DIV 97 + + - 25
----
6

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT + - COUNT ( * ) * - 31 - - 22 / 97 + + - 25
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3470
SELECT ALL + 91, COUNT( * ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-3470
SELECT ALL + 91, COUNT ( * ) AS col0
----
91
1

query I rowsort
SELECT + 53 * + - 17
----
-901

query I rowsort
SELECT ALL 22 * + + 46
----
1012

query I rowsort
SELECT + - 77 + + 81
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT + - 28 * + + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3474
SELECT + - 28 * + + COUNT ( * ) AS col0
----
-28

query I rowsort
SELECT - + NULLIF ( 3, 54 * + 47 ) AS col2
----
-3

query II rowsort
SELECT DISTINCT - 91 AS col1, - 77
----
-91
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT + ( CAST( NULL AS SIGNED ) ) * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT + ( CAST ( NULL AS INTEGER ) ) * + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3478
SELECT + CASE + + MIN( + + 82 ) WHEN - + 76 * COUNT( * ) * + 62 + - MAX( - + 97 ) THEN + + 20 + COUNT( + + 27 ) + - COUNT( * ) WHEN + + 77 + 19 - - + 8 - + 23 * 14 * - 26 THEN NULL ELSE - 47 + - + COUNT( * ) + - 39 END DIV 11 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3478
SELECT + CASE + + MIN ( + + 82 ) WHEN - + 76 * COUNT ( * ) * + 62 + - MAX ( - + 97 ) THEN + + 20 + COUNT ( + + 27 ) + - COUNT ( * ) WHEN + + 77 + 19 - - + 8 - + 23 * 14 * - 26 THEN NULL ELSE - 47 + - + COUNT ( * ) + - 39 END / 11 AS col0
----
-7

query I rowsort
SELECT ALL 52 + + - 90 col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3480
SELECT DISTINCT MIN( DISTINCT + - 95 ) + 96, NULLIF ( + 14, - 27 ) AS col1
----
1
14

skipif mysql # not compatible
query II rowsort label-3480
SELECT DISTINCT MIN ( DISTINCT + - 95 ) + 96, NULLIF ( + 14, - 27 ) AS col1
----
1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL - COUNT( + 86 ) * - - 98 + - 26 + + + 66 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL - COUNT ( + 86 ) * - - 98 + - 26 + + + 66 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL - COUNT( * ) + + 81 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - COUNT ( * ) + + 81 AS col0
----
80

query I rowsort
SELECT ALL 79 + - 66
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT DISTINCT MAX( DISTINCT - + 9 ), + 55 col2
----
-9
55

skipif mysql # not compatible
query II rowsort label-3484
SELECT DISTINCT MAX ( DISTINCT - + 9 ), + 55 col2
----
-9
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3485
SELECT ALL - 9 + - 37 + COUNT( DISTINCT - 5 ) * - 87 * 14 * - 55 AS col0, COALESCE ( 45, - - 37 DIV + 21 * 56, - + COUNT( * ) * + COUNT( * ) ) + - - 21 AS col2
----
66944
66

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL - 9 + - 37 + COUNT ( DISTINCT - 5 ) * - 87 * 14 * - 55 AS col0, COALESCE ( 45, - - 37 / + 21 * 56, - + COUNT ( * ) * + COUNT ( * ) ) + - - 21 AS col2
----
66944
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + 38 - - + 52 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 38 - - + 52 + + COUNT ( * )
----
91

query I rowsort
SELECT + ( + - 34 ) + 86 + + 84 AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT CAST( NULL AS SIGNED ) / ( + 6 ) + 95 + - + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT CAST ( NULL AS INTEGER ) / ( + 6 ) + 95 + - + 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT ALL 24 DIV + ( - - 17 ) + + 55 + + - 41
----
15

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL 24 / + ( - - 17 ) + + 55 + + - 41
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3490
SELECT ALL - 64 DIV - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL - 64 / - COUNT ( * ) AS col0
----
64

query I rowsort
SELECT - 60 - 23 col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT + 30 * - - CAST( NULL AS SIGNED ) * - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT + 30 * - - CAST ( NULL AS INTEGER ) * - 87 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT 47 * - NULLIF ( - + 17, - 60 ) + + - 4 DIV - ( 82 ) AS col1
----
799

skipif mysql # not compatible
query I rowsort label-3493
SELECT 47 * - NULLIF ( - + 17, - 60 ) + + - 4 / - ( 82 ) AS col1
----
799

query I rowsort
SELECT ALL + - ( + + 10 ) AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3495
SELECT ALL + CAST( NULL AS SIGNED ) * - - CAST( NULL AS DECIMAL ) + 72 - - + 21 * + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS REAL ) + 72 - - + 21 * + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + + SUM( - + 97 ) + - ( - ( + 36 ) ) * 67 AS col0
----
2315

skipif mysql # not compatible
query I rowsort label-3496
SELECT + + SUM ( - + 97 ) + - ( - ( + 36 ) ) * 67 AS col0
----
2315

onlyif mysql # aggregate syntax: 
query II rowsort label-3497
SELECT + COUNT( DISTINCT - 12 ) AS col2, + 17
----
1
17

skipif mysql # not compatible
query II rowsort label-3497
SELECT + COUNT ( DISTINCT - 12 ) AS col2, + 17
----
1
17

query I rowsort
SELECT - 13 + + 54
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT + 87 * + + 34 * COUNT( * ) * + 44 * + - ( - 69 ) col2
----
8980488

skipif mysql # not compatible
query I rowsort label-3499
SELECT + 87 * + + 34 * COUNT ( * ) * + 44 * + - ( - 69 ) col2
----
8980488

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - 40 + + 4 * + MIN( - + 87 ) + + 5
----
-383

skipif mysql # not compatible
query I rowsort label-3500
SELECT - 40 + + 4 * + MIN ( - + 87 ) + + 5
----
-383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3501
SELECT ALL MAX( DISTINCT + CAST( - + 62 AS SIGNED ) ) * + 60 AS col2, 94 + ( 87 ) - + 84 AS col0
----
-3720
97

skipif mysql # not compatible
query II rowsort label-3501
SELECT ALL MAX ( DISTINCT + CAST ( - + 62 AS INTEGER ) ) * + 60 AS col2, 94 + ( 87 ) - + 84 AS col0
----
-3720
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3502
SELECT + 53 + + COUNT( * ) AS col0, 65 + - - 18 * + + 16 * - - 83 AS col2
----
54
23969

skipif mysql # not compatible
query II rowsort label-3502
SELECT + 53 + + COUNT ( * ) AS col0, 65 + - - 18 * + + 16 * - - 83 AS col2
----
54
23969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT ALL - 43 * + CAST( NULL AS SIGNED ) + ( - 3 ) + + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - 43 * + CAST ( NULL AS INTEGER ) + ( - 3 ) + + - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3504
SELECT DISTINCT 29 * + 27 + + 68 + - COUNT( * ) AS col2, + 24 - - + SUM( ALL - 21 ) * + CASE + + CAST( NULL AS SIGNED ) WHEN 42 THEN NULL WHEN + - MIN( + 20 ) THEN - 72 + 80 - 4 * 84 WHEN - 48 * + 13 THEN + COUNT( * ) ELSE NULL END + + + COUNT( * )
----
850
NULL

skipif mysql # not compatible
query II rowsort label-3504
SELECT DISTINCT 29 * + 27 + + 68 + - COUNT ( * ) AS col2, + 24 - - + SUM ( ALL - 21 ) * + CASE + + CAST ( NULL AS INTEGER ) WHEN 42 THEN NULL WHEN + - MIN ( + 20 ) THEN - 72 + 80 - 4 * 84 WHEN - 48 * + 13 THEN + COUNT ( * ) ELSE NULL END + + + COUNT ( * )
----
850
NULL

query I rowsort
SELECT + - ( - 83 ) + - + 47
----
36

query I rowsort
SELECT ALL ( + 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL + 66 * - 31 * + - 57 * + MAX( ALL - 34 )
----
-3965148

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + 66 * - 31 * + - 57 * + MAX ( ALL - 34 )
----
-3965148

query I rowsort
SELECT ( - 62 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT 68 + - NULLIF ( - 15, - - 73 ) - - COUNT( + 58 )
----
84

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT 68 + - NULLIF ( - 15, - - 73 ) - - COUNT ( + 58 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT ALL 32 + COUNT( * ) + + - 39 AS col2, - 26 col2
----
-6
-26

skipif mysql # not compatible
query II rowsort label-3510
SELECT ALL 32 + COUNT ( * ) + + - 39 AS col2, - 26 col2
----
-6
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT MAX( + - 57 ) + - + 57 + COUNT( * ) * 45
----
-69

skipif mysql # not compatible
query I rowsort label-3511
SELECT MAX ( + - 57 ) + - + 57 + COUNT ( * ) * 45
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3512
SELECT DISTINCT MIN( - 37 ) DIV COALESCE ( - 44, - COUNT( * ) * - 83 + 55 ) + ( + + CAST( + 85 AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT MIN ( - 37 ) / COALESCE ( - 44, - COUNT ( * ) * - 83 + 55 ) + ( + + CAST ( + 85 AS INTEGER ) )
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3513
SELECT ALL 96 - - + ( - - CAST( NULL AS DECIMAL ) ) * - - ( + 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL 96 - - + ( - - CAST ( NULL AS REAL ) ) * - - ( + 6 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 33 * + 3 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT DISTINCT - COUNT( + 49 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - COUNT ( + 49 ) col1
----
-1

query I rowsort
SELECT 28 * - + 91 AS col2
----
-2548

query II rowsort
SELECT 70 * - + 94 + - 12 AS col2, + 25 col0
----
-6592
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT ( - 86 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT ( - 86 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL COUNT( * ) * + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL COUNT ( * ) * + - 50
----
-50

query I rowsort
SELECT ALL + 16 * + 83
----
1328

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL - SUM( 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - SUM ( 9 )
----
-9

query I rowsort
SELECT ( + 47 ) * + 57
----
2679

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT DISTINCT + 25 DIV - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT + 25 / - 39 AS col0
----
0

query I rowsort
SELECT ALL - ( - 15 ) + - 4
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT 62 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT 62 / 98
----
0

query I rowsort
SELECT 33 * + 87
----
2871

query I rowsort
SELECT 17 * 15 - ( + 40 ) AS col0
----
215

query I rowsort
SELECT DISTINCT ( + 90 ) + - 3
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL COUNT( * ) + - 24 * - 87
----
2089

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL COUNT ( * ) + - 24 * - 87
----
2089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3530
SELECT 52 DIV COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3530
SELECT 52 / COUNT ( * ) AS col0
----
52

query I rowsort
SELECT ALL + 8 + 22 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT DISTINCT + 99 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT + 99 * COUNT ( * )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3533
SELECT ALL - COUNT( * ) + - 32 DIV 31
----
-2

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL - COUNT ( * ) + - 32 / 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT DISTINCT MIN( ALL 69 ) + 51 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT MIN ( ALL 69 ) + 51 AS col0
----
120

query I rowsort
SELECT 71 * - 72 AS col0
----
-5112

query I rowsort
SELECT DISTINCT + 27 + 85
----
112

query I rowsort
SELECT ALL + 9 + + 96 AS col0
----
105

query I rowsort
SELECT 58 * + 36
----
2088

query I rowsort
SELECT ALL + 9 - - 67 AS col0
----
76

query I rowsort
SELECT DISTINCT + 91 - 92
----
-1

query I rowsort
SELECT COALESCE ( + 60, + 99 * 56 ) * + 20
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL + MAX( DISTINCT 8 ) * - ( + 35 )
----
-280

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + MAX ( DISTINCT 8 ) * - ( + 35 )
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT 77 + - 87 * + ( 32 + 37 DIV + 97 ) col2
----
-2707

skipif mysql # not compatible
query I rowsort label-3543
SELECT 77 + - 87 * + ( 32 + 37 / + 97 ) col2
----
-2707

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT MIN( - 49 ) - 31
----
-80

skipif mysql # not compatible
query I rowsort label-3544
SELECT MIN ( - 49 ) - 31
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT CAST( NULL AS SIGNED ) * + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT CAST ( NULL AS INTEGER ) * + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT 2 + - COALESCE ( + 13, MIN( DISTINCT + 35 ) + 9 * 36, 47 )
----
-11

skipif mysql # not compatible
query I rowsort label-3546
SELECT 2 + - COALESCE ( + 13, MIN ( DISTINCT + 35 ) + 9 * 36, 47 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT DISTINCT MIN( DISTINCT 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT MIN ( DISTINCT 75 ) AS col2
----
75

query I rowsort
SELECT 12 + + 73 AS col0
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3549
SELECT 18 / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT 18 / CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT - 65 DIV ( 85 ) + - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3550
SELECT - 65 / ( 85 ) + - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3551
SELECT DISTINCT 42 DIV COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT 42 / COUNT ( * ) AS col2
----
42

query I rowsort
SELECT ALL 65 * + 49
----
3185

query I rowsort
SELECT 37 - 83 * 81 AS col0
----
-6686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3554
SELECT - 58 DIV + CAST( COUNT( - 83 ) AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-3554
SELECT - 58 / + CAST ( COUNT ( - 83 ) AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT 77 * COALESCE ( + 13 * 78 + - 69, + 95 + + COUNT( * ) ) AS col2
----
72765

skipif mysql # not compatible
query I rowsort label-3555
SELECT 77 * COALESCE ( + 13 * 78 + - 69, + 95 + + COUNT ( * ) ) AS col2
----
72765

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + - SUM( 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-3556
SELECT + - SUM ( 21 )
----
-21

query I rowsort
SELECT + 42 * 77
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL + 72 * + 17 + + COUNT( * ) * - 82
----
1142

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + 72 * + 17 + + COUNT ( * ) * - 82
----
1142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL - 36 * CAST( 8 + - 13 AS SIGNED ) + ( - 50 + - ( 79 + - 78 ) )
----
129

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - 36 * CAST ( 8 + - 13 AS INTEGER ) + ( - 50 + - ( 79 + - 78 ) )
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3560
SELECT DISTINCT COALESCE ( 12, + 39 ) * + ( - 72 + CAST( 47 AS SIGNED ) * COALESCE ( - 51 * 13 + + 23 * - 27, + COUNT( + 51 ) + 95, - CASE COALESCE ( COUNT( DISTINCT + 19 ), 60 ) WHEN 85 THEN COALESCE ( ( 10 ), 59 ) * ( + 45 ) + 23 END, 29 * 43 ) ) col2
----
-725040

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT COALESCE ( 12, + 39 ) * + ( - 72 + CAST ( 47 AS INTEGER ) * COALESCE ( - 51 * 13 + + 23 * - 27, + COUNT ( + 51 ) + 95, - CASE COALESCE ( COUNT ( DISTINCT + 19 ), 60 ) WHEN 85 THEN COALESCE ( ( 10 ), 59 ) * ( + 45 ) + 23 END, 29 * 43 ) ) col2
----
-725040

query I rowsort
SELECT + - ( + 53 ) AS col0
----
-53

query I rowsort
SELECT DISTINCT + - 13 * 97 + - 56
----
-1317

query I rowsort
SELECT ALL + + 80 * 80 + - 32 AS col0
----
6368

query I rowsort
SELECT DISTINCT 37 * 37 + 14
----
1383

query I rowsort
SELECT DISTINCT - - 0 AS col0
----
0

query I rowsort
SELECT - 44 * + 78
----
-3432

query I rowsort
SELECT + 88 + - 73 AS col1
----
15

query I rowsort
SELECT ALL - + 95 + - 57
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT + + 28 + - 62 DIV 45 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3569
SELECT + + 28 + - 62 / 45 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3570
SELECT DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), CAST( 72 AS SIGNED ), 41 * - 17 + 84 DIV + 7 ) * COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), CAST ( 72 AS INTEGER ), 41 * - 17 + 84 / + 7 ) * COUNT ( * )
----
-72

query I rowsort
SELECT + - CASE 32 WHEN + 69 THEN NULL WHEN - 97 + + 42 THEN 66 * + AVG ( + 81 ) ELSE NULL END * 55 + - 81
----
NULL

query I rowsort
SELECT - + 89 * 93 AS col1
----
-8277

query I rowsort
SELECT ALL - + ( 8 ) * - 2
----
16

query I rowsort
SELECT ALL 21 - - + 40
----
61

query I rowsort
SELECT ALL CASE - + 25 WHEN 99 THEN NULL ELSE 95 END AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT - ( + COUNT( * ) ) + 66 * + 18 AS col2
----
1187

skipif mysql # not compatible
query I rowsort label-3576
SELECT - ( + COUNT ( * ) ) + 66 * + 18 AS col2
----
1187

query I rowsort
SELECT DISTINCT + 5 * - 54 col2
----
-270

query I rowsort
SELECT ALL - 51 * 3
----
-153

query I rowsort
SELECT - 85 + + 39
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL MIN( ( + 45 ) )
----
45

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL MIN ( ( + 45 ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - ( + 3 ) * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3581
SELECT - ( + 3 ) * + COUNT ( * )
----
-3

query I rowsort
SELECT - 31 * - 78 AS col2
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - 37 + + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3583
SELECT - 37 + + COUNT ( * ) AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT ALL - 15 DIV - 10
----
1

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - 15 / - 10
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT CASE + - 18 WHEN NULLIF ( - COUNT( * ), - 16 ) THEN NULL ELSE COUNT( * ) * + 31 END
----
31

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT CASE + - 18 WHEN NULLIF ( - COUNT ( * ), - 16 ) THEN NULL ELSE COUNT ( * ) * + 31 END
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3586
SELECT + COUNT( * ) + + 47 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-3586
SELECT + COUNT ( * ) + + 47 / 20
----
3

query I rowsort
SELECT ALL ( 85 ) col2
----
85

query I rowsort
SELECT ALL ( + 50 ) col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT CASE 94 WHEN 29 + SUM( + 76 ) THEN 35 / - 48 + - 34 WHEN - 69 THEN + 7 * 10 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT CASE 94 WHEN 29 + SUM ( + 76 ) THEN 35 / - 48 + - 34 WHEN - 69 THEN + 7 * 10 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 89 * 41
----
3649

query I rowsort
SELECT ALL - 43 * 62
----
-2666

query I rowsort
SELECT DISTINCT - 25 + + 78 + 40 * 56 AS col2
----
2293

query I rowsort
SELECT - 41 * - - 26
----
-1066

query I rowsort
SELECT + 47 + 56
----
103

query I rowsort
SELECT ALL - COALESCE ( - - 17, + 18 * - 75, - 15 ) * - 94
----
1598

query I rowsort
SELECT CASE - 84 WHEN 71 THEN 47 + 38 WHEN - 0 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT + + 44 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT + + 44 / 70
----
0

query I rowsort
SELECT DISTINCT + - 5
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3599
SELECT ALL - 10 / + + COUNT( * ) + COUNT( * ) * COUNT( * ) + + CAST( NULL AS SIGNED ) * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL - 10 / + + COUNT ( * ) + COUNT ( * ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT - COALESCE ( - MIN( - 86 ), + ( - 62 ) * ( 91 DIV 24 ) ) * - COUNT( * ) + 67
----
153

skipif mysql # not compatible
query I rowsort label-3600
SELECT - COALESCE ( - MIN ( - 86 ), + ( - 62 ) * ( 91 / 24 ) ) * - COUNT ( * ) + 67
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - - COUNT( * ) * - 63 col0
----
-63

skipif mysql # not compatible
query I rowsort label-3601
SELECT - - COUNT ( * ) * - 63 col0
----
-63

query I rowsort
SELECT ALL - + 69 * + 91 + 75
----
-6204

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL + - COUNT( * ) * 68 * COUNT( * ) + + 22 * + 15 AS col2
----
262

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + - COUNT ( * ) * 68 * COUNT ( * ) + + 22 * + 15 AS col2
----
262

query I rowsort
SELECT ALL NULLIF ( + 69, - 89 + + 37 ) * - 75 + 72
----
-5103

query I rowsort
SELECT ALL 72 * + - 14 + 29
----
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + NULLIF ( + 20, 30 ) * SUM( ALL - 46 * + 10 )
----
-9200

skipif mysql # not compatible
query I rowsort label-3606
SELECT + NULLIF ( + 20, 30 ) * SUM ( ALL - 46 * + 10 )
----
-9200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3607
SELECT ALL 89 DIV 40 + - MAX( 0 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL 89 / 40 + - MAX ( 0 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3608
SELECT DISTINCT ( + - NULLIF ( ( 24 ), - 97 ) ) * MAX( ALL + CAST( NULL AS SIGNED ) ) + 83 * COUNT( DISTINCT - 29 + 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT ( + - NULLIF ( ( 24 ), - 97 ) ) * MAX ( ALL + CAST ( NULL AS INTEGER ) ) + 83 * COUNT ( DISTINCT - 29 + 96 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + + SUM( - + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-3609
SELECT + + SUM ( - + 53 )
----
-53

query I rowsort
SELECT ALL + 79 * + - 40
----
-3160

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + - SUM( - 46 ) * + 91 AS col0
----
4186

skipif mysql # not compatible
query I rowsort label-3611
SELECT + - SUM ( - 46 ) * + 91 AS col0
----
4186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3612
SELECT + MIN( - - CAST( NULL AS SIGNED ) ) / + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT + MIN ( - - CAST ( NULL AS INTEGER ) ) / + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL + SUM( ALL + 48 ) * 85
----
4080

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + SUM ( ALL + 48 ) * 85
----
4080

query I rowsort
SELECT DISTINCT + + 57 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT DISTINCT + NULLIF ( - - CAST( 6 AS SIGNED ), ( - 9 ) * 62 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT + NULLIF ( - - CAST ( 6 AS INTEGER ), ( - 9 ) * 62 ) col0
----
6

query I rowsort
SELECT + 9 * 1
----
9

query I rowsort
SELECT - 44 * - 93 * - 58 AS col0
----
-237336

query I rowsort
SELECT + 55 * + 53 col2
----
2915

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT + 73 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-3619
SELECT + 73 / + 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT DISTINCT CASE + NULLIF ( 66, + 60 ) WHEN 97 THEN MIN( + NULLIF ( + 11, 60 / 30 - 78 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT CASE + NULLIF ( 66, + 60 ) WHEN 97 THEN MIN ( + NULLIF ( + 11, 60 / 30 - 78 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL - 20 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - 20 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT MAX( - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3622
SELECT MAX ( - 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT DISTINCT - COALESCE ( 71, + 32 * - 15 ) * + COUNT( 61 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT - COALESCE ( 71, + 32 * - 15 ) * + COUNT ( 61 ) AS col0
----
-71

query I rowsort
SELECT DISTINCT 66 * - 36
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT MIN( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT MIN ( 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT ALL - CAST( CASE + + 2 WHEN COUNT( * ) THEN 13 WHEN + 9 THEN 81 ELSE + 97 END AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - CAST ( CASE + + 2 WHEN COUNT ( * ) THEN 13 WHEN + 9 THEN 81 ELSE + 97 END AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL COUNT( * ) * - 8 * 17
----
-136

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL COUNT ( * ) * - 8 * 17
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT ALL + MAX( - 74 ) + + - CAST( NULL AS SIGNED ) / + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + MAX ( - 74 ) + + - CAST ( NULL AS INTEGER ) / + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT - 2 + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT - 2 + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + 42 + + - 40 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - 48 * - CASE + 82 WHEN - 88 THEN NULL WHEN 45 - + 85 * + 6 THEN - 44 + - COUNT( * ) / ( - 24 + 82 * 77 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT - 48 * - CASE + 82 WHEN - 88 THEN NULL WHEN 45 - + 85 * + 6 THEN - 44 + - COUNT ( * ) / ( - 24 + 82 * 77 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT ( + MIN( + 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT ( + MIN ( + 26 ) )
----
26

query I rowsort
SELECT - 35 + + 66 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL + + COUNT( * ) + - 76 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + + COUNT ( * ) + - 76 AS col0
----
-75

query I rowsort
SELECT - 68 + - - 21 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT - MIN( 12 ) + COUNT( * ) + - 16 * MAX( - 1 + 66 )
----
-1051

skipif mysql # not compatible
query I rowsort label-3636
SELECT - MIN ( 12 ) + COUNT ( * ) + - 16 * MAX ( - 1 + 66 )
----
-1051

query I rowsort
SELECT ALL - + 28 + + + ( - 85 ) AS col0
----
-113

query II rowsort
SELECT ALL + 29 AS col0, 80 AS col2
----
29
80

query I rowsort
SELECT ALL 34 + 73
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT DISTINCT - + CAST( + - 49 AS SIGNED ) * + 71
----
3479

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT - + CAST ( + - 49 AS INTEGER ) * + 71
----
3479

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT + - MIN( ALL - 36 ) - - 66 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT + - MIN ( ALL - 36 ) - - 66 AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3642
SELECT ALL + + 40 - + CASE - CASE - NULLIF ( ( + 76 ), - COALESCE ( + 78, 36, COUNT( * ) ) ) WHEN 89 * - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) + 87 THEN + 16 END WHEN - 44 + - 61 THEN NULL WHEN - 73 THEN - 7 * - 71 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL + + 40 - + CASE - CASE - NULLIF ( ( + 76 ), - COALESCE ( + 78, 36, COUNT ( * ) ) ) WHEN 89 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) + 87 THEN + 16 END WHEN - 44 + - 61 THEN NULL WHEN - 73 THEN - 7 * - 71 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT + CAST( + - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-3643
SELECT + CAST ( + - 74 AS INTEGER )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT + 73 AS col0, + COUNT( * ) * COALESCE ( + 43, - 29 )
----
73
43

skipif mysql # not compatible
query II rowsort label-3644
SELECT + 73 AS col0, + COUNT ( * ) * COALESCE ( + 43, - 29 )
----
73
43

query I rowsort
SELECT - 53 * 31 * - 1
----
1643

query II rowsort
SELECT + 45 AS col0, + 2
----
45
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT - 97 + 44 - 90 + + 51 * COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-3647
SELECT - 97 + 44 - 90 + + 51 * COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT ALL - 47 AS col2, + MIN( DISTINCT - - 84 ) + - SUM( DISTINCT 33 ) col0
----
-47
51

skipif mysql # not compatible
query II rowsort label-3648
SELECT ALL - 47 AS col2, + MIN ( DISTINCT - - 84 ) + - SUM ( DISTINCT 33 ) col0
----
-47
51

query II rowsort
SELECT DISTINCT - 6, 26 * - 87 AS col0
----
-6
-2262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT ALL + CAST( + 26 AS SIGNED ) - - CAST( COALESCE ( + CASE + 36 WHEN 50 THEN + COUNT( * ) WHEN 31 THEN NULL WHEN CAST( NULL AS SIGNED ) * 64 THEN - 43 * NULLIF ( AVG ( DISTINCT - 1 ), 1 * - 62 ) END, - 0 ) AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + CAST ( + 26 AS INTEGER ) - - CAST ( COALESCE ( + CASE + 36 WHEN 50 THEN + COUNT ( * ) WHEN 31 THEN NULL WHEN CAST ( NULL AS INTEGER ) * 64 THEN - 43 * NULLIF ( AVG ( DISTINCT - 1 ), 1 * - 62 ) END, - 0 ) AS INTEGER ) AS col1
----
26

query I rowsort
SELECT + - NULLIF ( 46, 97 * 28 )
----
-46

query I rowsort
SELECT ALL - + 3 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT DISTINCT + 23 DIV + + 17 + - - 33 - + 76 DIV - 15
----
39

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT + 23 / + + 17 + - - 33 - + 76 / - 15
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3654
SELECT NULLIF ( + COUNT( * ), - 1 ) DIV + ( 18 ) * 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT NULLIF ( + COUNT ( * ), - 1 ) / + ( 18 ) * 12 AS col1
----
0

query I rowsort
SELECT 77 + + CASE - 7 WHEN - 57 THEN NULL ELSE - 42 * 59 + - 38 END * ( + 3 )
----
-7471

query I rowsort
SELECT COALESCE ( - - ( + 9 ), - - 15 * + COALESCE ( + 3 + + 17, 9 ) ) * + 65
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT SUM( ALL - 53 ) + 87 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3657
SELECT SUM ( ALL - 53 ) + 87 AS col1
----
34

query I rowsort
SELECT 86 * 18
----
1548

query I rowsort
SELECT 93 + 38
----
131

query II rowsort
SELECT DISTINCT 61 * - 73 AS col0, 81 + - 58
----
-4453
23

query I rowsort
SELECT - 35 * 6 + 18 AS col0
----
-192

query I rowsort
SELECT 12 + - 91 col2
----
-79

query I rowsort
SELECT DISTINCT 25 * 64
----
1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT CAST( NULL AS SIGNED ) + - 12 + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT CAST ( NULL AS INTEGER ) + - 12 + 55
----
NULL

query I rowsort
SELECT DISTINCT + 43 + + - 80
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT ALL CAST( - 95 AS SIGNED ) + - + 3
----
-98

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL CAST ( - 95 AS INTEGER ) + - + 3
----
-98

query I rowsort
SELECT 56 + + 39 + - 72 AS col0
----
23

query I rowsort
SELECT ALL - 26 + 95 + + + 59
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 23 DIV + + 61
----
0

skipif mysql # not compatible
query I rowsort label-3669
SELECT 23 / + + 61
----
0

query I rowsort
SELECT ALL + 73 * + 84 AS col0
----
6132

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT SUM( DISTINCT + 16 ) * - 25
----
-400

skipif mysql # not compatible
query I rowsort label-3671
SELECT SUM ( DISTINCT + 16 ) * - 25
----
-400

query I rowsort
SELECT ALL + 3 + + - 93
----
-90

query I rowsort
SELECT + CASE + 88 WHEN - - ( - 60 ) - - 33 THEN 17 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL - COUNT( * ) * 72 * - 52
----
3744

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL - COUNT ( * ) * 72 * - 52
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT SUM( DISTINCT 26 ) - + - CASE 59 WHEN MAX( ( + 95 ) ) + COUNT( * ) THEN NULL WHEN + ( - COALESCE ( - 76, 54 + 93 * + ( 39 ) ) ) THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT SUM ( DISTINCT 26 ) - + - CASE 59 WHEN MAX ( ( + 95 ) ) + COUNT ( * ) THEN NULL WHEN + ( - COALESCE ( - 76, 54 + 93 * + ( 39 ) ) ) THEN + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT 34 * + NULLIF ( - 34, + + 15 * + 88 ) AS col0
----
-1156

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL - COUNT( * ) - + 9 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL - COUNT ( * ) - + 9 AS col0
----
-10

query I rowsort
SELECT ALL - - 94
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3679
SELECT + COUNT( * ) * - CAST( + CASE CAST( + 90 AS DECIMAL ) WHEN 49 * + 20 THEN NULL WHEN + 1 THEN NULL WHEN CAST( - ( - 1 ) AS DECIMAL ) - 23 * 19 THEN 33 * - NULLIF ( - ( + ( - 48 ) ), 67 * 53 ) ELSE NULL END AS SIGNED ) - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT + COUNT ( * ) * - CAST ( + CASE CAST ( + 90 AS REAL ) WHEN 49 * + 20 THEN NULL WHEN + 1 THEN NULL WHEN CAST ( - ( - 1 ) AS REAL ) - 23 * 19 THEN 33 * - NULLIF ( - ( + ( - 48 ) ), 67 * 53 ) ELSE NULL END AS INTEGER ) - 19 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT ALL + - 88 DIV + - 86
----
1

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + - 88 / + - 86
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT + + COUNT( * ) * + 43 + + 68
----
111

skipif mysql # not compatible
query I rowsort label-3681
SELECT + + COUNT ( * ) * + 43 + + 68
----
111

query I rowsort
SELECT DISTINCT + 29 - + 22 - - + 74 + - 45 AS col0
----
36

query I rowsort
SELECT DISTINCT - ( + - COALESCE ( - 66, - 22 ) ) AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT DISTINCT - - CAST( + 70 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT - - CAST ( + 70 AS INTEGER ) AS col1
----
70

query I rowsort
SELECT + NULLIF ( + 93, 32 ) * 11
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL ( COUNT( - ( + 68 ) ) ) * CASE - 61 WHEN + ( - COUNT( * ) ) + 28 THEN 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL ( COUNT ( - ( + 68 ) ) ) * CASE - 61 WHEN + ( - COUNT ( * ) ) + 28 THEN 74 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT - 27 + + 97 DIV CASE WHEN NULL IS NOT NULL THEN NULL ELSE 52 END AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3687
SELECT - 27 + + 97 / CASE WHEN NULL IS NOT NULL THEN NULL ELSE 52 END AS col2
----
-26

query I rowsort
SELECT + + 28 AS col2
----
28

query I rowsort
SELECT ALL + 28 * 46 AS col1
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT 86 * COUNT( * ) * + 83 * + ( - ( 2 ) )
----
-14276

skipif mysql # not compatible
query I rowsort label-3690
SELECT 86 * COUNT ( * ) * + 83 * + ( - ( 2 ) )
----
-14276

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT COUNT( * ) * + 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3691
SELECT COUNT ( * ) * + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL + 19 + + 22 * + + COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL + 19 + + 22 * + + COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL - 56 + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - 56 + COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT DISTINCT + NULLIF ( + 96, - 98 ) + + 67
----
163

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3695
SELECT ALL + COUNT( * ) * CASE - 8 WHEN + AVG ( - + 31 ) / AVG ( ALL + 13 ) THEN NULL ELSE + 54 / - CAST( NULL AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + COUNT ( * ) * CASE - 8 WHEN + AVG ( - + 31 ) / AVG ( ALL + 13 ) THEN NULL ELSE + 54 / - CAST ( NULL AS REAL ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 74 + 94 + + 95
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT DISTINCT + 2 + + COUNT( * ) + + COUNT( * ) + 6 * - 50
----
-296

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT + 2 + + COUNT ( * ) + + COUNT ( * ) + 6 * - 50
----
-296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT COALESCE ( COUNT( * ), + 60 DIV COUNT( * ) + + + COUNT( * ) + - NULLIF ( - 37, - 2 ) * 33 + 52 ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-3698
SELECT COALESCE ( COUNT ( * ), + 60 / COUNT ( * ) + + + COUNT ( * ) + - NULLIF ( - 37, - 2 ) * 33 + 52 ) * - 22
----
-22

query I rowsort
SELECT ALL + ( + 44 ) + 90 col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL COALESCE ( 6, SUM( - 6 ) * ( - 23 ) + + 9 * + 79 + - 22, 74, - NULLIF ( MAX( + 99 ), - 50 ) )
----
6

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL COALESCE ( 6, SUM ( - 6 ) * ( - 23 ) + + 9 * + 79 + - 22, 74, - NULLIF ( MAX ( + 99 ), - 50 ) )
----
6

query II rowsort
SELECT 47 * 38 * 47, - ( + + ( 56 ) ) col2
----
83942
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT - 43, + ( COUNT( * ) ) col0
----
-43
1

skipif mysql # not compatible
query II rowsort label-3702
SELECT - 43, + ( COUNT ( * ) ) col0
----
-43
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT CAST( + ( - - 40 ) AS SIGNED ) * + + 88 * - - 96 * - 37 + COUNT( * ) * + 29
----
-12503011

skipif mysql # not compatible
query I rowsort label-3703
SELECT CAST ( + ( - - 40 ) AS INTEGER ) * + + 88 * - - 96 * - 37 + COUNT ( * ) * + 29
----
-12503011

query I rowsort
SELECT ALL 6 * - - 38 * + 98 col1
----
22344

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT 37 * COUNT( DISTINCT + 89 ) AS col1, - 26 + - - 11 AS col1
----
37
-15

skipif mysql # not compatible
query II rowsort label-3705
SELECT 37 * COUNT ( DISTINCT + 89 ) AS col1, - 26 + - - 11 AS col1
----
37
-15

query I rowsort
SELECT ALL + 21 + - 60
----
-39

query I rowsort
SELECT ALL 24 * + - 21 * - 82 AS col0
----
41328

query I rowsort
SELECT DISTINCT + 12 * 50 AS col2
----
600

query I rowsort
SELECT ALL 0 - + - 96 AS col0
----
96

query I rowsort
SELECT + 86 - + 78 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + 30 + - 2 * + 40 + COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3711
SELECT + 30 + - 2 * + 40 + COUNT ( * ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + COUNT( * ) * + 31
----
31

skipif mysql # not compatible
query I rowsort label-3712
SELECT + COUNT ( * ) * + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + + 55 * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-3713
SELECT + + 55 * COUNT ( * )
----
55

query I rowsort
SELECT + + 11 + + ( 55 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3715
SELECT ALL + COUNT( * ) - - + 41 * SUM( + 41 ) DIV - 75 + 48
----
27

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + COUNT ( * ) - - + 41 * SUM ( + 41 ) / - 75 + 48
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3716
SELECT ALL + 0 * - 27 * 9 AS col2, - ( + COUNT( * ) ) * - 49
----
0
49

skipif mysql # not compatible
query II rowsort label-3716
SELECT ALL + 0 * - 27 * 9 AS col2, - ( + COUNT ( * ) ) * - 49
----
0
49

query I rowsort
SELECT - - 17 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - COUNT( * ) * - NULLIF ( COUNT( * ), + + 54 ) * - 2 * ( 11 ) + - 48 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-3718
SELECT - COUNT ( * ) * - NULLIF ( COUNT ( * ), + + 54 ) * - 2 * ( 11 ) + - 48 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT + COUNT( * ) * - COALESCE ( + + 58, + ( + - 2 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( + + 58, + ( + - 2 ) ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3720
SELECT ALL SUM( DISTINCT - 10 ) * - 48 AS col1, - CAST( - + 10 AS SIGNED )
----
480
10

skipif mysql # not compatible
query II rowsort label-3720
SELECT ALL SUM ( DISTINCT - 10 ) * - 48 AS col1, - CAST ( - + 10 AS INTEGER )
----
480
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT 95 * - ( - - COUNT( * ) ) + + - 60 - - SUM( - 12 ) + - COUNT( * ) * 25 AS col2
----
-192

skipif mysql # not compatible
query I rowsort label-3721
SELECT 95 * - ( - - COUNT ( * ) ) + + - 60 - - SUM ( - 12 ) + - COUNT ( * ) * 25 AS col2
----
-192

onlyif mysql # DIV for integer division: 
query II rowsort label-3722
SELECT + 31, 23 - + - 70 + - 61 DIV 23 AS col1
----
31
91

skipif mysql # not compatible
query II rowsort label-3722
SELECT + 31, 23 - + - 70 + - 61 / 23 AS col1
----
31
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3723
SELECT - - SUM( DISTINCT - COALESCE ( - + 58, + 41 + + 88 + - CAST( + 60 AS SIGNED ), + ( + 19 ) ) ) DIV 14
----
4

skipif mysql # not compatible
query I rowsort label-3723
SELECT - - SUM ( DISTINCT - COALESCE ( - + 58, + 41 + + 88 + - CAST ( + 60 AS INTEGER ), + ( + 19 ) ) ) / 14
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL - CASE - 72 WHEN - - 58 THEN - - 37 WHEN - 94 / - COUNT( * ) + + COUNT( * ) THEN + SUM( NULLIF ( 20, + 41 / - 69 ) ) WHEN + COUNT( * ) THEN NULL ELSE NULL END * + MIN( ALL + 5 ) + 79 * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL - CASE - 72 WHEN - - 58 THEN - - 37 WHEN - 94 / - COUNT ( * ) + + COUNT ( * ) THEN + SUM ( NULLIF ( 20, + 41 / - 69 ) ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END * + MIN ( ALL + 5 ) + 79 * 11 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT + CASE - - 67 WHEN - 35 THEN NULL WHEN ( - COUNT( - CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN CAST( COALESCE ( 59, - 54, - 98 ) AS SIGNED ) THEN + 2 / 37 + 92 WHEN - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) THEN + 8 + 15 END * - 55 - 61 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT + CASE - - 67 WHEN - 35 THEN NULL WHEN ( - COUNT ( - CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN CAST ( COALESCE ( 59, - 54, - 98 ) AS INTEGER ) THEN + 2 / 37 + 92 WHEN - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN + 8 + 15 END * - 55 - 61 col1
----
NULL

query I rowsort
SELECT - 85 * + 60 * 30
----
-153000

query III rowsort
SELECT ALL + 41 col1, + 22, 17 col0
----
41
22
17

query I rowsort
SELECT ALL + ( 49 ) * + 75 * + 65 * - 77 AS col1
----
-18393375

query II rowsort
SELECT + 72, 60 * - 25 col0
----
72
-1500

query I rowsort
SELECT ALL + 38 * + 82 + 92 AS col1
----
3208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3731
SELECT - NULLIF ( COUNT( * ), 15 ) * - + COALESCE ( + 74, + 90 + 88, 5 ) * 13 - - ( 8 ) DIV 40
----
962

skipif mysql # not compatible
query I rowsort label-3731
SELECT - NULLIF ( COUNT ( * ), 15 ) * - + COALESCE ( + 74, + 90 + 88, 5 ) * 13 - - ( 8 ) / 40
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT + CASE + ( + - 33 ) WHEN ( + 61 ) * + - COALESCE ( + COUNT( * ), 32 ) * + 6 THEN NULL WHEN ( - 87 ) THEN NULL WHEN - 80 / + 24 - - SUM( 25 ) THEN NULL WHEN + ( MIN( DISTINCT - 50 ) ) * - 66 + 10 THEN - 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT + CASE + ( + - 33 ) WHEN ( + 61 ) * + - COALESCE ( + COUNT ( * ), 32 ) * + 6 THEN NULL WHEN ( - 87 ) THEN NULL WHEN - 80 / + 24 - - SUM ( 25 ) THEN NULL WHEN + ( MIN ( DISTINCT - 50 ) ) * - 66 + 10 THEN - 51 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3733
SELECT ALL 33 * - MAX( ALL 77 ) / - 73 + + - CAST( NULL AS SIGNED ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 33 * - MAX ( ALL 77 ) / - 73 + + - CAST ( NULL AS INTEGER ) * 17
----
NULL

query I rowsort
SELECT 88 * - 33 - + 34 AS col1
----
-2938

query I rowsort
SELECT ALL + 98 * 81 AS col0
----
7938

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT COALESCE ( + 31, 12 * - 91 + - CASE - ( 42 ) WHEN 86 * - ( + COUNT( * ) ) THEN NULL ELSE - 13 END * + 52 + 48 )
----
31

skipif mysql # not compatible
query I rowsort label-3736
SELECT COALESCE ( + 31, 12 * - 91 + - CASE - ( 42 ) WHEN 86 * - ( + COUNT ( * ) ) THEN NULL ELSE - 13 END * + 52 + 48 )
----
31

query I rowsort
SELECT - 60 + + - 75 * - 28
----
2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3738
SELECT 89 * - + ( + ( + + 33 ) ) DIV - - COUNT( * ) + - + 10 * COUNT( * )
----
-2947

skipif mysql # not compatible
query I rowsort label-3738
SELECT 89 * - + ( + ( + + 33 ) ) / - - COUNT ( * ) + - + 10 * COUNT ( * )
----
-2947

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - 89 * - COUNT( * ) + - COALESCE ( - ( - 65 ), - - 51 )
----
24

skipif mysql # not compatible
query I rowsort label-3739
SELECT - 89 * - COUNT ( * ) + - COALESCE ( - ( - 65 ), - - 51 )
----
24

query I rowsort
SELECT ALL ( - + 85 ) col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3741
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 7 AS col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-3741
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 7 AS col1
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - 89 + - MAX( 29 ) * + 42
----
-1307

skipif mysql # not compatible
query I rowsort label-3742
SELECT - 89 + - MAX ( 29 ) * + 42
----
-1307

query I rowsort
SELECT ALL ( + - 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT + CASE + 50 WHEN + COUNT( ALL + + 57 ) * - - CASE MIN( ALL 13 ) WHEN 19 * - 2 THEN NULL WHEN MAX( 12 ) + 13 / 79 THEN + COUNT( * ) * + 54 END + - 3 THEN 30 + 47 WHEN 65 THEN NULL ELSE NULL END + 3 * + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT + CASE + 50 WHEN + COUNT ( ALL + + 57 ) * - - CASE MIN ( ALL 13 ) WHEN 19 * - 2 THEN NULL WHEN MAX ( 12 ) + 13 / 79 THEN + COUNT ( * ) * + 54 END + - 3 THEN 30 + 47 WHEN 65 THEN NULL ELSE NULL END + 3 * + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + - 9 - + ( NULLIF ( - 64, + MAX( DISTINCT ( - 96 ) ) + ( COUNT( * ) ) * + 48 ) ) col1
----
55

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + - 9 - + ( NULLIF ( - 64, + MAX ( DISTINCT ( - 96 ) ) + ( COUNT ( * ) ) * + 48 ) ) col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT - CAST( NULL AS SIGNED ) * + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT - CAST ( NULL AS INTEGER ) * + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT + - 1 + + COUNT( * ), - 3 col0
----
0
-3

skipif mysql # not compatible
query II rowsort label-3747
SELECT + - 1 + + COUNT ( * ), - 3 col0
----
0
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT - - 90 DIV + ( 84 ) + + 63 col1
----
64

skipif mysql # not compatible
query I rowsort label-3748
SELECT - - 90 / + ( 84 ) + + 63 col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + - CASE + 38 WHEN - 86 THEN 95 ELSE + 28 * + 72 + COUNT( * ) END * + 54
----
-108918

skipif mysql # not compatible
query I rowsort label-3749
SELECT + - CASE + 38 WHEN - 86 THEN 95 ELSE + 28 * + 72 + COUNT ( * ) END * + 54
----
-108918

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT 62 * + MIN( - - 81 )
----
5022

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT 62 * + MIN ( - - 81 )
----
5022

onlyif mysql # aggregate syntax: 
query II rowsort label-3751
SELECT - 80 AS col0, COUNT( * ) * - + ( - 88 ) * + ( 31 ) + - 35
----
-80
2693

skipif mysql # not compatible
query II rowsort label-3751
SELECT - 80 AS col0, COUNT ( * ) * - + ( - 88 ) * + ( 31 ) + - 35
----
-80
2693

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT + + 10 * + 98 * 89 * + COUNT( * ), 85 col0
----
87220
85

skipif mysql # not compatible
query II rowsort label-3752
SELECT + + 10 * + 98 * 89 * + COUNT ( * ), 85 col0
----
87220
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3753
SELECT DISTINCT + MAX( DISTINCT - + 32 ) AS col0, MIN( 44 ) + + 8 * - COALESCE ( + 84, ( 17 ) ) AS col1
----
-32
-628

skipif mysql # not compatible
query II rowsort label-3753
SELECT DISTINCT + MAX ( DISTINCT - + 32 ) AS col0, MIN ( 44 ) + + 8 * - COALESCE ( + 84, ( 17 ) ) AS col1
----
-32
-628

query I rowsort
SELECT DISTINCT + 71 * - - 5 + - 6 * + + 43 + + 74 * 21 + 64 * ( - 49 )
----
-1485

query I rowsort
SELECT ALL + + 42 * ( 43 ) + + 31 + - + 76
----
1761

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT ALL + 89, + 9 * + + 52 * + COUNT( * ) * - 43 AS col1
----
89
-20124

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL + 89, + 9 * + + 52 * + COUNT ( * ) * - 43 AS col1
----
89
-20124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3757
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2, NULLIF ( + 86, 47 )
----
NULL
86

skipif mysql # not compatible
query II rowsort label-3757
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, NULLIF ( + 86, 47 )
----
NULL
86

query I rowsort
SELECT - - 88 * 65
----
5720

query I rowsort
SELECT + - 83 * 83 AS col1
----
-6889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT - CAST( - + 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-3760
SELECT - CAST ( - + 24 AS INTEGER )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3761
SELECT ALL - - 84 DIV 32 DIV + - ( + CASE + ( - + ( 64 ) ) WHEN 93 THEN 93 WHEN - ( + 5 ) DIV MAX( + 23 ) + - 53 THEN NULL WHEN SUM( DISTINCT + 85 ) + - 4 THEN + 18 ELSE 36 END ) + + CAST( + COUNT( * ) AS SIGNED ) + COALESCE ( 13 + CASE + 73 WHEN 97 + + AVG ( ALL + 44 ) THEN 67 + 1 END, 42, - COUNT( * ), CAST( NULL AS SIGNED ) - 55 )
----
43

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - - 84 / 32 / + - ( + CASE + ( - + ( 64 ) ) WHEN 93 THEN 93 WHEN - ( + 5 ) / MAX ( + 23 ) + - 53 THEN NULL WHEN SUM ( DISTINCT + 85 ) + - 4 THEN + 18 ELSE 36 END ) + + CAST ( + COUNT ( * ) AS INTEGER ) + COALESCE ( 13 + CASE + 73 WHEN 97 + + AVG ( ALL + 44 ) THEN 67 + 1 END, 42, - COUNT ( * ), CAST ( NULL AS INTEGER ) - 55 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3762
SELECT ALL - - 18 DIV ( COUNT( * ) ) + 23, 85 + 78 DIV COALESCE ( 40 * 59 + + 50, - 96 ) AS col0
----
41
85

skipif mysql # not compatible
query II rowsort label-3762
SELECT ALL - - 18 / ( COUNT ( * ) ) + 23, 85 + 78 / COALESCE ( 40 * 59 + + 50, - 96 ) AS col0
----
41
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT COUNT( * ) * - - 69 - + ( + 76 )
----
-7

skipif mysql # not compatible
query I rowsort label-3763
SELECT COUNT ( * ) * - - 69 - + ( + 76 )
----
-7

query I rowsort
SELECT + ( + CASE 50 WHEN 90 THEN + + 11 - - ( + 29 ) - + 52 * 88 END ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT CAST( + + 24 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3765
SELECT CAST ( + + 24 AS INTEGER ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3766
SELECT ALL - 10 DIV - 38 + + 73 - - + SUM( DISTINCT 16 ) - + MIN( DISTINCT - 44 ) - 90
----
43

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - 10 / - 38 + + 73 - - + SUM ( DISTINCT 16 ) - + MIN ( DISTINCT - 44 ) - 90
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3767
SELECT CAST( + COUNT( ALL - - NULLIF ( 99, - 63 ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT CAST ( + COUNT ( ALL - - NULLIF ( 99, - 63 ) ) AS INTEGER ) AS col1
----
1

query II rowsort
SELECT + ( 93 ) AS col2, 83 * + 96 AS col0
----
93
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + 73 + + NULLIF ( - + 95, - 10 * ( - 27 ) / - 91 + 68 / + 5 ) + - 49 * - 50 * - CASE COUNT( + 75 ) / 59 + + 31 WHEN NULLIF ( - 1, 68 ) THEN + MAX( - 53 ) + COUNT( * ) ELSE + 14 END
----
-34322

skipif mysql # not compatible
query I rowsort label-3769
SELECT + 73 + + NULLIF ( - + 95, - 10 * ( - 27 ) / - 91 + 68 / + 5 ) + - 49 * - 50 * - CASE COUNT ( + 75 ) / 59 + + 31 WHEN NULLIF ( - 1, 68 ) THEN + MAX ( - 53 ) + COUNT ( * ) ELSE + 14 END
----
-34322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT 2 * - CAST( NULL AS SIGNED ) - ( + 3 ) + CAST( NULL AS SIGNED ) + + 17 / 86 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT 2 * - CAST ( NULL AS INTEGER ) - ( + 3 ) + CAST ( NULL AS INTEGER ) + + 17 / 86 * + 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3771
SELECT ALL 37 * + + COUNT( * ), 78 DIV + 74 AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-3771
SELECT ALL 37 * + + COUNT ( * ), 78 / + 74 AS col0
----
37
1

query I rowsort
SELECT 93 * - - 24 + - - 59 AS col0
----
2291

query I rowsort
SELECT ( - 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL + MAX( DISTINCT - 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL + MAX ( DISTINCT - 77 ) AS col0
----
-77

query I rowsort
SELECT + 37 * - + 54 AS col2
----
-1998

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT + CASE + 97 WHEN - 35 THEN + 83 / - - 29 * 18 + + SUM( DISTINCT 7 ) WHEN - 94 / - 35 THEN 80 WHEN + 44 + - SUM( - ( + 18 ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + CASE + 97 WHEN - 35 THEN + 83 / - - 29 * 18 + + SUM ( DISTINCT 7 ) WHEN - 94 / - 35 THEN 80 WHEN + 44 + - SUM ( - ( + 18 ) ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT ALL - 21 DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - 21 / 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT ALL - COUNT( ALL - + 22 ) AS col0, - 26 AS col0
----
-1
-26

skipif mysql # not compatible
query II rowsort label-3778
SELECT ALL - COUNT ( ALL - + 22 ) AS col0, - 26 AS col0
----
-1
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT DISTINCT MAX( + 40 ) - + 87 + + - 71 + + 90 + + - 9 + - COUNT( ALL 59 ) + - 39 * 45
----
-1793

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT MAX ( + 40 ) - + 87 + + - 71 + + 90 + + - 9 + - COUNT ( ALL 59 ) + - 39 * 45
----
-1793

query I rowsort
SELECT DISTINCT + 49 * - + ( + + 22 ) AS col0
----
-1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT - 40 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT - 40 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3782
SELECT 65 * 25, + CAST( NULL AS SIGNED ) * + + 82 AS col1
----
1625
NULL

skipif mysql # not compatible
query II rowsort label-3782
SELECT 65 * 25, + CAST ( NULL AS INTEGER ) * + + 82 AS col1
----
1625
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT 43 * - ( 75 ) * + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT 43 * - ( 75 ) * + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3784
SELECT + - 31 * + + 79 - + - COUNT( * ) AS col2, 10 DIV - 77 AS col0
----
-2448
0

skipif mysql # not compatible
query II rowsort label-3784
SELECT + - 31 * + + 79 - + - COUNT ( * ) AS col2, 10 / - 77 AS col0
----
-2448
0

query I rowsort
SELECT 1 * - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - 21 - - + CASE COUNT( * ) WHEN + 86 THEN - + 45 WHEN + - 75 THEN + - 67 WHEN + AVG ( - 60 ) / - CASE 51 WHEN - ( + 28 ) THEN + 57 * 21 + - 6 ELSE NULL END THEN NULL END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT - 21 - - + CASE COUNT ( * ) WHEN + 86 THEN - + 45 WHEN + - 75 THEN + - 67 WHEN + AVG ( - 60 ) / - CASE 51 WHEN - ( + 28 ) THEN + 57 * 21 + - 6 ELSE NULL END THEN NULL END * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT DISTINCT COALESCE ( - - 2, - + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT COALESCE ( - - 2, - + COUNT ( * ) )
----
2

query I rowsort
SELECT ALL - 89 * + 45 + - - 83 * - - NULLIF ( 53, + 9 ) * 51 AS col2
----
220344

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT - + MIN( DISTINCT + ( - 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-3789
SELECT - + MIN ( DISTINCT + ( - 10 ) )
----
10

query I rowsort
SELECT ALL - 9 + - + 43
----
-52

query I rowsort
SELECT ALL - 40 + + 58
----
18

query I rowsort
SELECT + 14 + + 84
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT COALESCE ( + 1, + 37, + 11 ) - - + 40 * + COUNT( + - ( + 74 ) )
----
41

skipif mysql # not compatible
query I rowsort label-3793
SELECT COALESCE ( + 1, + 37, + 11 ) - - + 40 * + COUNT ( + - ( + 74 ) )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT - 6 + - 69 DIV - 8 + + - 82 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - 6 + - 69 / - 8 + + - 82 AS col1
----
-80

query I rowsort
SELECT ALL + 48 + - 57 + 65 * 33 col2
----
2136

onlyif mysql # DIV for integer division: 
query II rowsort label-3796
SELECT ( - 85 ) DIV 30, - 66 AS col2
----
-2
-66

skipif mysql # not compatible
query II rowsort label-3796
SELECT ( - 85 ) / 30, - 66 AS col2
----
-2
-66

query I rowsort
SELECT ALL - + ( 20 ) + - 51
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT 26 + - COUNT( * ) + - 8 * + - 10 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-3798
SELECT 26 + - COUNT ( * ) + - 8 * + - 10 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL COUNT( * ) * - + 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL COUNT ( * ) * - + 34 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL - - MIN( ALL - 59 ) + COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - - MIN ( ALL - 59 ) + COUNT ( * ) AS col0
----
-58

query I rowsort
SELECT DISTINCT + 66 + + 90 AS col0
----
156

query I rowsort
SELECT DISTINCT - 15 * + 73 AS col2
----
-1095

query I rowsort
SELECT ALL ( + 38 ) + + 23 + - 49
----
12

query II rowsort
SELECT + 70, + 26 AS col1
----
70
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3805
SELECT ALL 14 - + ( + - CASE CAST( - ( - 38 ) AS DECIMAL ) WHEN - COALESCE ( - ( COALESCE ( + 64, + 40 + 65 ) ), + 75 + 78 ) THEN NULL WHEN - ( + COUNT( + 52 ) ) THEN + 1 ELSE 48 END ) * ( + ( 77 ) ) AS col0
----
3710

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL 14 - + ( + - CASE CAST ( - ( - 38 ) AS REAL ) WHEN - COALESCE ( - ( COALESCE ( + 64, + 40 + 65 ) ), + 75 + 78 ) THEN NULL WHEN - ( + COUNT ( + 52 ) ) THEN + 1 ELSE 48 END ) * ( + ( 77 ) ) AS col0
----
3710

query I rowsort
SELECT 21 * + 81
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT 25 * 80 * - 79 + COUNT( * ) AS col0
----
-157999

skipif mysql # not compatible
query I rowsort label-3807
SELECT 25 * 80 * - 79 + COUNT ( * ) AS col0
----
-157999

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3808
SELECT + 80 AS col0, - COUNT( * ) * - + 96 DIV 1 AS col2
----
80
96

skipif mysql # not compatible
query II rowsort label-3808
SELECT + 80 AS col0, - COUNT ( * ) * - + 96 / 1 AS col2
----
80
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT - SUM( DISTINCT - + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT - SUM ( DISTINCT - + 14 ) AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL 84 * 61 col0
----
5124

query II rowsort
SELECT 70, - 65 + + 2 AS col2
----
70
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL 1 * - COUNT( ALL + - ( ( 56 ) ) ) * - 87
----
87

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL 1 * - COUNT ( ALL + - ( ( 56 ) ) ) * - 87
----
87

query I rowsort
SELECT + 93 * 90 - 56 AS col0
----
8314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT MIN( DISTINCT + 28 ) / + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT MIN ( DISTINCT + 28 ) / + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL 48 * COUNT( * ) * + + 65 AS col2
----
3120

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL 48 * COUNT ( * ) * + + 65 AS col2
----
3120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3817
SELECT 52 + CAST( - + 65 AS SIGNED ) AS col0, 30 col1
----
-13
30

skipif mysql # not compatible
query II rowsort label-3817
SELECT 52 + CAST ( - + 65 AS INTEGER ) AS col0, 30 col1
----
-13
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3818
SELECT 91 * + NULLIF ( CASE + + CAST( + - 0 AS SIGNED ) WHEN + 45 THEN NULL WHEN + - ( - COALESCE ( + 44, + CAST( 18 AS SIGNED ), 17 * 13 ) ) THEN NULL ELSE - COUNT( * ) * - COUNT( * ) + 48 END, 78 )
----
4459

skipif mysql # not compatible
query I rowsort label-3818
SELECT 91 * + NULLIF ( CASE + + CAST ( + - 0 AS INTEGER ) WHEN + 45 THEN NULL WHEN + - ( - COALESCE ( + 44, + CAST ( 18 AS INTEGER ), 17 * 13 ) ) THEN NULL ELSE - COUNT ( * ) * - COUNT ( * ) + 48 END, 78 )
----
4459

query I rowsort
SELECT 44 - - 99 + - 39 * - - 76
----
-2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3820
SELECT DISTINCT - ( + 75 ) + - 56 DIV - ( 7 ) + - - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - ( + 75 ) + - 56 / - ( 7 ) + - - COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT CASE - 42 WHEN 0 THEN + 12 + 89 - 54 WHEN + COUNT( * ) THEN NULL ELSE NULL END + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT CASE - 42 WHEN 0 THEN + 12 + 89 - 54 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL - - MAX( ALL - 8 ) + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL - - MAX ( ALL - 8 ) + + COUNT ( * )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT + CASE - + 79 WHEN + 56 + - 39 * + 80 THEN 75 WHEN - 63 * + + 35 THEN - 40 DIV 3 ELSE - 3 * - 27 END + 67
----
148

skipif mysql # not compatible
query I rowsort label-3823
SELECT + CASE - + 79 WHEN + 56 + - 39 * + 80 THEN 75 WHEN - 63 * + + 35 THEN - 40 / 3 ELSE - 3 * - 27 END + 67
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL - 69 + - CASE + 44 WHEN + 1 * - - ( 77 ) * - + 58 * - 94 * + COALESCE ( + 63, 34 * 20 ) THEN COUNT( + 70 ) WHEN + COUNT( * ) * - MIN( DISTINCT + 17 ) THEN 89 * - 37 ELSE NULL END / ( - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL - 69 + - CASE + 44 WHEN + 1 * - - ( 77 ) * - + 58 * - 94 * + COALESCE ( + 63, 34 * 20 ) THEN COUNT ( + 70 ) WHEN + COUNT ( * ) * - MIN ( DISTINCT + 17 ) THEN 89 * - 37 ELSE NULL END / ( - 35 )
----
NULL

query I rowsort
SELECT DISTINCT 33 + 3 AS col1
----
36

query I rowsort
SELECT + 12 * + + 19
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3827
SELECT 62 + + - 52 DIV 40 * - CAST( + 37 AS SIGNED ) + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-3827
SELECT 62 + + - 52 / 40 * - CAST ( + 37 AS INTEGER ) + - COUNT ( * )
----
98

query II rowsort
SELECT DISTINCT - 21 AS col2, ( - + 64 ) + + NULLIF ( - 52, + - 75 * + 60 + - AVG ( 81 ) ) AS col0
----
-21
-116

query I rowsort
SELECT - 95 + + 69
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT - + COUNT( * ) + + 37 * - - 82 * 20 col0
----
60679

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT - + COUNT ( * ) + + 37 * - - 82 * 20 col0
----
60679

query I rowsort
SELECT DISTINCT + 75 + + 61 AS col1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3832
SELECT ALL - 17 + + NULLIF ( + + 46, + CAST( + - ( + 14 ) AS SIGNED ) ) * - MIN( 46 ) AS col1
----
-2133

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL - 17 + + NULLIF ( + + 46, + CAST ( + - ( + 14 ) AS INTEGER ) ) * - MIN ( 46 ) AS col1
----
-2133

query II rowsort
SELECT DISTINCT - 44 AS col2, 84
----
-44
84

query I rowsort
SELECT COALESCE ( - - 29, + ( 66 ) * + NULLIF ( - ( 11 ), - + 8 ) ) AS col2
----
29

query I rowsort
SELECT ALL - + 86 + + COALESCE ( + 70, + 18 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT ALL SUM( DISTINCT + - 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL SUM ( DISTINCT + - 27 ) AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT 37 + + 9 DIV - + 53 * 99 col1
----
37

skipif mysql # not compatible
query I rowsort label-3837
SELECT 37 + + 9 / - + 53 * 99 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT 47 + + CASE + 62 WHEN 3 THEN + 79 * - COUNT( * ) + + - 60 * + - COUNT( * ) WHEN - 99 * - 45 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT 47 + + CASE + 62 WHEN 3 THEN + 79 * - COUNT ( * ) + + - 60 * + - COUNT ( * ) WHEN - 99 * - 45 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT ALL + 39 - 81, 90 AS col1
----
-42
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT MAX( ALL + 63 ) * 83 AS col1
----
5229

skipif mysql # not compatible
query I rowsort label-3840
SELECT MAX ( ALL + 63 ) * 83 AS col1
----
5229

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT 27 + + + 21 + - + 1 * + + SUM( ALL 68 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-3841
SELECT 27 + + + 21 + - + 1 * + + SUM ( ALL 68 ) col1
----
-20

query I rowsort
SELECT ALL - 66 * - + 35 AS col2
----
2310

query I rowsort
SELECT DISTINCT + 12 * 28 col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL + ( 20 ) * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL + ( 20 ) * - COUNT ( * )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 36 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( 91 ) col2
----
91

query I rowsort
SELECT + 83 + - 43 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3848
SELECT + SUM( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT DISTINCT - 49 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - 49 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 30 * + 47 * + 16 AS col0
----
-22560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3851
SELECT MAX( ALL 24 ) * 34 / - - CASE - COUNT( * ) WHEN + ( - - COALESCE ( + 65, 2 * - CASE - 37 WHEN + 34 * + 97 THEN - 94 + 94 END, COALESCE ( + ( - 46 ), + 49 * 24 ), + 52 ) ) THEN NULL WHEN ( + COUNT( ALL 73 ) ) + + MIN( ALL ( + CAST( - 41 AS DECIMAL ) ) ) THEN 81 WHEN - 91 * - 26 + - 82 THEN NULL ELSE NULL END + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT MAX ( ALL 24 ) * 34 / - - CASE - COUNT ( * ) WHEN + ( - - COALESCE ( + 65, 2 * - CASE - 37 WHEN + 34 * + 97 THEN - 94 + 94 END, COALESCE ( + ( - 46 ), + 49 * 24 ), + 52 ) ) THEN NULL WHEN ( + COUNT ( ALL 73 ) ) + + MIN ( ALL ( + CAST ( - 41 AS REAL ) ) ) THEN 81 WHEN - 91 * - 26 + - 82 THEN NULL ELSE NULL END + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL + 51 * - 99 * - 99 * + - COUNT( * ) + - 26
----
-499877

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + 51 * - 99 * - 99 * + - COUNT ( * ) + - 26
----
-499877

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL + - 4 * - - SUM( DISTINCT - 87 ) * 34 + + 41 * + - COUNT( * ) AS col2
----
11791

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + - 4 * - - SUM ( DISTINCT - 87 ) * 34 + + 41 * + - COUNT ( * ) AS col2
----
11791

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + MIN( ALL + + 44 ) * + 69 col2
----
3036

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + MIN ( ALL + + 44 ) * + 69 col2
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + 39 * - - MIN( - 52 ) AS col2
----
-2028

skipif mysql # not compatible
query I rowsort label-3855
SELECT + 39 * - - MIN ( - 52 ) AS col2
----
-2028

query I rowsort
SELECT + ( - + ( + + 41 ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL COUNT( * ) + + 7
----
8

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL COUNT ( * ) + + 7
----
8

query I rowsort
SELECT - ( + 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3859
SELECT DISTINCT CASE + 5 WHEN + - 23 * 11 * + + 47 + CASE 92 WHEN - MIN( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 95 + MAX( DISTINCT 17 ) * - 3 THEN 47 + CAST( - 33 AS DECIMAL ) END / 95 THEN + 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT CASE + 5 WHEN + - 23 * 11 * + + 47 + CASE 92 WHEN - MIN ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 95 + MAX ( DISTINCT 17 ) * - 3 THEN 47 + CAST ( - 33 AS REAL ) END / 95 THEN + 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3860
SELECT ALL - MIN( + 51 ) DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - MIN ( + 51 ) / + 50
----
-1

query I rowsort
SELECT ALL + 46 + + 40 + 3 + 35 * 25 * 24 + + - 98
----
20991

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT DISTINCT + 24 DIV + 58 * + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + 24 / + 58 * + 40 AS col1
----
0

query I rowsort
SELECT - - 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT ALL MIN( 51 ) AS col1, 88
----
51
88

skipif mysql # not compatible
query II rowsort label-3864
SELECT ALL MIN ( 51 ) AS col1, 88
----
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT - COUNT( DISTINCT - - 57 ) - + - 71
----
70

skipif mysql # not compatible
query I rowsort label-3865
SELECT - COUNT ( DISTINCT - - 57 ) - + - 71
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3866
SELECT ( - 64 ), COUNT( * ) + - + 61 AS col0
----
-64
-60

skipif mysql # not compatible
query II rowsort label-3866
SELECT ( - 64 ), COUNT ( * ) + - + 61 AS col0
----
-64
-60

query II rowsort
SELECT + 12 + + 46 + - ( - + ( 31 ) ) AS col0, + 83
----
89
83

query I rowsort
SELECT + 44 * - 63
----
-2772

query I rowsort
SELECT ALL - 7 - + - 9
----
2

query I rowsort
SELECT - ( - 85 ) AS col0
----
85

query I rowsort
SELECT + 96 + + 37
----
133

query I rowsort
SELECT ALL + 34 * + 80
----
2720

onlyif mysql # DIV for integer division: 
query II rowsort label-3873
SELECT 1 AS col2, 64 DIV + 69
----
1
0

skipif mysql # not compatible
query II rowsort label-3873
SELECT 1 AS col2, 64 / + 69
----
1
0

query I rowsort
SELECT - 72 + 5 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT DISTINCT ( 62 ) * - - MIN( + 4 ) AS col0
----
248

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT ( 62 ) * - - MIN ( + 4 ) AS col0
----
248

query I rowsort
SELECT DISTINCT ( - - COALESCE ( 71, + + 21 + + 25 * 99 + - 73 + + + 22 + + 11 ) ) AS col2
----
71

query I rowsort
SELECT ALL ( - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL COUNT( ALL - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL COUNT ( ALL - 83 )
----
1

query II rowsort
SELECT DISTINCT + 95, 95
----
95
95

query I rowsort
SELECT + 54 + - ( 99 ) + 69 - 0 + + 9 * - 48 col1
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL + ( + MAX( - - ( - NULLIF ( 67, + 36 ) ) ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + ( + MAX ( - - ( - NULLIF ( 67, + 36 ) ) ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3882
SELECT - COUNT( * ) DIV - - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT - COUNT ( * ) / - - 11 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3883
SELECT - CAST( NULL AS SIGNED ) * + COUNT( ALL - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 96 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT DISTINCT + 90 * MIN( ALL - + 78 ) DIV + 5 - COUNT( * ) * - 7
----
-1397

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT + 90 * MIN ( ALL - + 78 ) / + 5 - COUNT ( * ) * - 7
----
-1397

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT ALL 78 DIV + + 35 + - 34 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL 78 / + + 35 + - 34 AS col1
----
-32

query I rowsort
SELECT ( - 82 ) col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT ALL ( - 92 ) DIV - + 92 + 29 - 21 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL ( - 92 ) / - + 92 + 29 - 21 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT - 0 + + - 71 + 8 * - + MAX( DISTINCT - - COALESCE ( + 51, 24 ) ) * + + 26
----
-10679

skipif mysql # not compatible
query I rowsort label-3888
SELECT - 0 + + - 71 + 8 * - + MAX ( DISTINCT - - COALESCE ( + 51, 24 ) ) * + + 26
----
-10679

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT ALL 22 DIV + 58 + COUNT( * ) + - - 59 * + - 75 DIV COUNT( * ) * - 86 DIV COUNT( * )
----
380551

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL 22 / + 58 + COUNT ( * ) + - - 59 * + - 75 / COUNT ( * ) * - 86 / COUNT ( * )
----
380551

query I rowsort
SELECT DISTINCT - 91 * 2 AS col1
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL 95 * - 14 * + - NULLIF ( + ( - 33 ), + 82 / + 33 + - 15 ) * + COUNT( * ) + - 78
----
-43968

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL 95 * - 14 * + - NULLIF ( + ( - 33 ), + 82 / + 33 + - 15 ) * + COUNT ( * ) + - 78
----
-43968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3892
SELECT DISTINCT COUNT( * ) * + 49 + - 14 + + ( CAST( - + COUNT( * ) AS SIGNED ) ) * + - COALESCE ( + 79, - 29, + + 73 * AVG ( ALL 8 ) ) DIV + COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT COUNT ( * ) * + 49 + - 14 + + ( CAST ( - + COUNT ( * ) AS INTEGER ) ) * + - COALESCE ( + 79, - 29, + + 73 * AVG ( ALL 8 ) ) / + COUNT ( * )
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-3893
SELECT ALL - 4 * CASE 71 WHEN + 72 THEN MAX( ALL 38 ) WHEN + 3 THEN NULL END + + 21, + COALESCE ( 83, NULLIF ( - ( + MIN( 80 ) ), COUNT( * ) ) * + NULLIF ( 81 + - 95 * + 74, 28 ) ) col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-3893
SELECT ALL - 4 * CASE 71 WHEN + 72 THEN MAX ( ALL 38 ) WHEN + 3 THEN NULL END + + 21, + COALESCE ( 83, NULLIF ( - ( + MIN ( 80 ) ), COUNT ( * ) ) * + NULLIF ( 81 + - 95 * + 74, 28 ) ) col2
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT + CASE - COUNT( ALL - - 88 ) WHEN 52 THEN + - 16 + 5 + 36 + - - 3 + + COUNT( * ) + + 73 * - COUNT( * ) * + AVG ( - 43 + 74 ) * 1 ELSE 99 END col0
----
99

skipif mysql # not compatible
query I rowsort label-3894
SELECT + CASE - COUNT ( ALL - - 88 ) WHEN 52 THEN + - 16 + 5 + 36 + - - 3 + + COUNT ( * ) + + 73 * - COUNT ( * ) * + AVG ( - 43 + 74 ) * 1 ELSE 99 END col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT - - CAST( NULL AS SIGNED ) + - 6 + + 98 / + 40 + + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT - - CAST ( NULL AS INTEGER ) + - 6 + + 98 / + 40 + + 37 AS col2
----
NULL

query I rowsort
SELECT + - 1 AS col0
----
-1

query I rowsort
SELECT ALL + + COALESCE ( 29, + + NULLIF ( + 95, 38 ) - + 64 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT + 99 * + 8 - NULLIF ( - 61, + 3 / + - 1 + - + 9 / + 11 + - + 13 ) + + COUNT( * ) * 92 + COUNT( * )
----
946

skipif mysql # not compatible
query I rowsort label-3898
SELECT + 99 * + 8 - NULLIF ( - 61, + 3 / + - 1 + - + 9 / + 11 + - + 13 ) + + COUNT ( * ) * 92 + COUNT ( * )
----
946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT ALL + CASE + - 74 WHEN + NULLIF ( + - 53, 99 * - + 38 ) * + - 60 THEN + + 60 + + 38 + 62 / CASE + AVG ( DISTINCT + ( 17 ) ) WHEN - 96 THEN 87 WHEN - 18 * 50 + 41 THEN - 83 + 56 ELSE NULL END ELSE NULL END * 18 + - 92 * CAST( - MAX( 43 ) * 83 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + CASE + - 74 WHEN + NULLIF ( + - 53, 99 * - + 38 ) * + - 60 THEN + + 60 + + 38 + 62 / CASE + AVG ( DISTINCT + ( 17 ) ) WHEN - 96 THEN 87 WHEN - 18 * 50 + 41 THEN - 83 + 56 ELSE NULL END ELSE NULL END * 18 + - 92 * CAST ( - MAX ( 43 ) * 83 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 56 col2, 9 + 4
----
56
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT + COALESCE ( 23, 21 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT + COALESCE ( 23, 21 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT DISTINCT - COUNT( 74 ) * - 78 * + - MAX( + 54 ) * - + 94 + + 79 * + 43 AS col1
----
399325

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - COUNT ( 74 ) * - 78 * + - MAX ( + 54 ) * - + 94 + + 79 * + 43 AS col1
----
399325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3903
SELECT DISTINCT - NULLIF ( - 36, + COALESCE ( - COUNT( 38 ), + COALESCE ( + 26, + COUNT( * ) + + ( + 38 ) + - 86, 10, + 88 * - 50 ) - COUNT( * ), + 16 * - 53 + - CAST( NULL AS DECIMAL ) ) ) * - 2 - + ( - CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT - NULLIF ( - 36, + COALESCE ( - COUNT ( 38 ), + COALESCE ( + 26, + COUNT ( * ) + + ( + 38 ) + - 86, 10, + 88 * - 50 ) - COUNT ( * ), + 16 * - 53 + - CAST ( NULL AS REAL ) ) ) * - 2 - + ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
-71

query I rowsort
SELECT - - 29 * 75
----
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + - ( - + 3 ) * - 61 + ( COUNT( * ) ) * + 75
----
-108

skipif mysql # not compatible
query I rowsort label-3905
SELECT + - ( - + 3 ) * - 61 + ( COUNT ( * ) ) * + 75
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT + - CAST( - 22 AS SIGNED ) + + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3906
SELECT + - CAST ( - 22 AS INTEGER ) + + COUNT ( * ) AS col2
----
23

query II rowsort
SELECT ALL 58 AS col0, + 94 AS col0
----
58
94

query II rowsort
SELECT - ( 10 ), - 37 * + 56 col2
----
-10
-2072

query I rowsort
SELECT ALL 2 * - 16
----
-32

query I rowsort
SELECT 37 + 51
----
88

query II rowsort
SELECT 73 AS col0, + 78 * - NULLIF ( + 30, 19 )
----
73
-2340

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT COALESCE ( - + ( - + 1 ), 25 ) * 78 DIV - 81 * - - 46
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT COALESCE ( - + ( - + 1 ), 25 ) * 78 / - 81 * - - 46
----
0

query I rowsort
SELECT 50 * - CASE - 8 WHEN - 17 THEN 28 WHEN + 81 * + - COALESCE ( 28, 6, - 0 ) + - - 96 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 76 * 91
----
-6916

query I rowsort
SELECT COALESCE ( 53, - 98 ) * 49 col2
----
2597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT 72 + + 88 * + COUNT( * ) DIV - - COUNT( - 98 )
----
160

skipif mysql # not compatible
query I rowsort label-3916
SELECT 72 + + 88 * + COUNT ( * ) / - - COUNT ( - 98 )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT 66 + 49 + + COUNT( * ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT 66 + 49 + + COUNT ( * ) AS col2
----
116

query I rowsort
SELECT DISTINCT 83 * + 35 AS col2
----
2905

query I rowsort
SELECT ALL + 4 + + 98
----
102

query I rowsort
SELECT DISTINCT + 86 + 10 col2
----
96

query I rowsort
SELECT DISTINCT - 32 + 61 AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3922
SELECT DISTINCT - 13, ( NULLIF ( + COUNT( * ), + COUNT( * ) * 18 ) ) AS col1
----
-13
1

skipif mysql # not compatible
query II rowsort label-3922
SELECT DISTINCT - 13, ( NULLIF ( + COUNT ( * ), + COUNT ( * ) * 18 ) ) AS col1
----
-13
1

query I rowsort
SELECT ALL 82 + - + 69 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL - MIN( - 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - MIN ( - 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL + COUNT( * ) + + ( + 7 )
----
8

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + COUNT ( * ) + + ( + 7 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + COUNT( * ) + + 27
----
28

skipif mysql # not compatible
query I rowsort label-3926
SELECT + COUNT ( * ) + + 27
----
28

query II rowsort
SELECT + 83 AS col1, 36 AS col0
----
83
36

query I rowsort
SELECT - 51 * NULLIF ( 88, - 38 + - - 41 + - 45 * + - 5 / + 55 ) + - - COALESCE ( + + 36, + 18, - 65 ) AS col2
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL - ( + COUNT( * ) ) + 95 * + - MAX( + 75 ) + - + COUNT( * ) AS col0
----
-7127

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - ( + COUNT ( * ) ) + 95 * + - MAX ( + 75 ) + - + COUNT ( * ) AS col0
----
-7127

query I rowsort
SELECT - ( + - 58 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT + COUNT( * ) AS col1, 31
----
1
31

skipif mysql # not compatible
query II rowsort label-3931
SELECT + COUNT ( * ) AS col1, 31
----
1
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ( + ( + + 79 ) ) * - + 5 + MIN( DISTINCT + 44 ) AS col2
----
-351

skipif mysql # not compatible
query I rowsort label-3932
SELECT ( + ( + + 79 ) ) * - + 5 + MIN ( DISTINCT + 44 ) AS col2
----
-351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT CAST( - - 22 AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3933
SELECT CAST ( - - 22 AS INTEGER ) AS col1
----
22

query I rowsort
SELECT ALL - 90 * - - 60 AS col2
----
-5400

onlyif mysql # DIV for integer division: 
query I rowsort label-3935
SELECT 1 DIV + 60 + 0 + + 45 * - 85 col2
----
-3825

skipif mysql # not compatible
query I rowsort label-3935
SELECT 1 / + 60 + 0 + + 45 * - 85 col2
----
-3825

query II rowsort
SELECT ALL 57 - 93 * 15 * - 13, 44 AS col1
----
18192
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL - CASE + 19 WHEN MIN( + - 45 ) - + ( - + 20 ) THEN - 90 ELSE + 72 END AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - CASE + 19 WHEN MIN ( + - 45 ) - + ( - + 20 ) THEN - 90 ELSE + 72 END AS col2
----
-72

query I rowsort
SELECT DISTINCT - - 17 * + 70
----
1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT ALL + - MIN( 17 ) - CAST( + - 75 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL + - MIN ( 17 ) - CAST ( + - 75 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3940
SELECT ALL - 49, COUNT( * ) AS col2
----
-49
1

skipif mysql # not compatible
query II rowsort label-3940
SELECT ALL - 49, COUNT ( * ) AS col2
----
-49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL - COUNT( * ) * - CASE - ( + + 32 ) WHEN + - 31 * + 29 / + ( + 72 ) * + + CASE - 89 WHEN - + 88 THEN 9 END THEN - 13 WHEN MAX( + 75 ) * + 97 THEN NULL ELSE - 69 END AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL - COUNT ( * ) * - CASE - ( + + 32 ) WHEN + - 31 * + 29 / + ( + 72 ) * + + CASE - 89 WHEN - + 88 THEN 9 END THEN - 13 WHEN MAX ( + 75 ) * + 97 THEN NULL ELSE - 69 END AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT + 23 DIV 8 + 46 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3942
SELECT + 23 / 8 + 46 AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3943
SELECT 35 AS col1, + CASE + 82 WHEN - 84 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN 42 THEN NULL ELSE 53 + + 96 + - 2 * - 68 END - + COUNT( * ) * 92 AS col1
----
35
193

skipif mysql # not compatible
query II rowsort label-3943
SELECT 35 AS col1, + CASE + 82 WHEN - 84 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN 42 THEN NULL ELSE 53 + + 96 + - 2 * - 68 END - + COUNT ( * ) * 92 AS col1
----
35
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL - COALESCE ( + + 82, + + 28, + + COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - COALESCE ( + + 82, + + 28, + + COUNT ( * ) )
----
-82

query I rowsort
SELECT ALL + 38 * - 83 + 13 AS col1
----
-3141

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ( COUNT( + - 20 ) ) * COUNT( * ) + + 7 * - 11 + - 16 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3946
SELECT ( COUNT ( + - 20 ) ) * COUNT ( * ) + + 7 * - 11 + - 16 AS col2
----
-92

query II rowsort
SELECT 78 AS col2, 87 * + 32 AS col1
----
78
2784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3948
SELECT ALL - ( + + 15 ) AS col1, - CAST( - + 20 AS SIGNED ) col0
----
-15
20

skipif mysql # not compatible
query II rowsort label-3948
SELECT ALL - ( + + 15 ) AS col1, - CAST ( - + 20 AS INTEGER ) col0
----
-15
20

query I rowsort
SELECT - ( + 13 )
----
-13

query I rowsort
SELECT 49 - + - 83 AS col1
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3951
SELECT 40 + - CAST( NULL AS SIGNED ) * - - 49 + ( - 29 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT 40 + - CAST ( NULL AS INTEGER ) * - - 49 + ( - 29 ) AS col2
----
NULL

query I rowsort
SELECT ALL 85 * 52 AS col1
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT 47 * + NULLIF ( - - COUNT( * ), 67 * - + 75 + - COUNT( * ) + - + CASE NULLIF ( - 95, - CASE + MAX( + 6 ) WHEN 98 + 17 THEN NULL ELSE 68 END * 92 - 35 ) WHEN - CASE 5 WHEN - 86 THEN - 89 + + 86 WHEN + 74 * + 94 THEN NULL END * - 52 THEN AVG ( ALL 90 ) WHEN CASE - COALESCE ( - COUNT( DISTINCT 97 ), + 45 * - COALESCE ( + 83, + 42 ) ) WHEN + 53 THEN AVG ( 51 ) * - 40 WHEN 34 THEN NULL ELSE 46 END - SUM( DISTINCT 17 ) THEN + 56 + NULLIF ( + SUM( ALL 40 ), 76 + - COALESCE ( + 43, - 32 ) ) END + 38 * 96 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3953
SELECT 47 * + NULLIF ( - - COUNT ( * ), 67 * - + 75 + - COUNT ( * ) + - + CASE NULLIF ( - 95, - CASE + MAX ( + 6 ) WHEN 98 + 17 THEN NULL ELSE 68 END * 92 - 35 ) WHEN - CASE 5 WHEN - 86 THEN - 89 + + 86 WHEN + 74 * + 94 THEN NULL END * - 52 THEN AVG ( ALL 90 ) WHEN CASE - COALESCE ( - COUNT ( DISTINCT 97 ), + 45 * - COALESCE ( + 83, + 42 ) ) WHEN + 53 THEN AVG ( 51 ) * - 40 WHEN 34 THEN NULL ELSE 46 END - SUM ( DISTINCT 17 ) THEN + 56 + NULLIF ( + SUM ( ALL 40 ), 76 + - COALESCE ( + 43, - 32 ) ) END + 38 * 96 ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3954
SELECT ALL 78 + 21 AS col0, + 51 * - CAST( + - 71 AS SIGNED ) + CAST( + 36 AS SIGNED ) + - + 79 AS col2
----
99
3578

skipif mysql # not compatible
query II rowsort label-3954
SELECT ALL 78 + 21 AS col0, + 51 * - CAST ( + - 71 AS INTEGER ) + CAST ( + 36 AS INTEGER ) + - + 79 AS col2
----
99
3578

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT 30 + - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-3955
SELECT 30 + - COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT 66 - + 69 + 61 + - + COUNT( * ) * + 30 * 82 AS col2
----
-2402

skipif mysql # not compatible
query I rowsort label-3956
SELECT 66 - + 69 + 61 + - + COUNT ( * ) * + 30 * 82 AS col2
----
-2402

query I rowsort
SELECT ALL - 8 * + 30 * + - 88
----
21120

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT 36 DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT 36 / + + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT 84 * + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT 84 * + COUNT ( * ) AS col0
----
84

query I rowsort
SELECT ALL 42 + + + 28 + - 98
----
-28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3961
SELECT 62 DIV CAST( + 83 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3961
SELECT 62 / CAST ( + 83 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT ALL + 45 * 55 AS col0, - COUNT( * )
----
2475
-1

skipif mysql # not compatible
query II rowsort label-3962
SELECT ALL + 45 * 55 AS col0, - COUNT ( * )
----
2475
-1

query I rowsort
SELECT DISTINCT - 90 * + + 1 * 94
----
-8460

query I rowsort
SELECT 75 + 91
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT ALL 71 DIV 4
----
17

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL 71 / 4
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL 83 + + 48 * + MAX( - 8 ) AS col0
----
-301

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL 83 + + 48 * + MAX ( - 8 ) AS col0
----
-301

query I rowsort
SELECT ALL 41 + 63 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - COUNT( ALL - ( + 88 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3968
SELECT - COUNT ( ALL - ( + 88 ) )
----
-1

query I rowsort
SELECT 97 * - + 69 * 79 AS col2
----
-528747

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT 13 * - ( - - 2 ) * - COUNT( * ) * + 58 + + 83 + 33 * - 86
----
-1247

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT 13 * - ( - - 2 ) * - COUNT ( * ) * + 58 + + 83 + 33 * - 86
----
-1247

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT + 94 * 69 + + - COUNT( * ) col1, COUNT( * ) * + 36 AS col0
----
6485
36

skipif mysql # not compatible
query II rowsort label-3971
SELECT + 94 * 69 + + - COUNT ( * ) col1, COUNT ( * ) * + 36 AS col0
----
6485
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT MIN( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-3972
SELECT MIN ( 4 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT - 49 * 79 DIV 27 + - 82 AS col0
----
-225

skipif mysql # not compatible
query I rowsort label-3973
SELECT - 49 * 79 / 27 + - 82 AS col0
----
-225

query I rowsort
SELECT ALL 88 * - 12 + 37
----
-1019

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT 88 * - 71 + 52 * COUNT( * ) + + 70 AS col2
----
-6126

skipif mysql # not compatible
query I rowsort label-3975
SELECT 88 * - 71 + 52 * COUNT ( * ) + + 70 AS col2
----
-6126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT + + 23 DIV - SUM( DISTINCT ( 14 ) ) + MAX( 87 ) + - 43 - - 52 col1
----
95

skipif mysql # not compatible
query I rowsort label-3976
SELECT + + 23 / - SUM ( DISTINCT ( 14 ) ) + MAX ( 87 ) + - 43 - - 52 col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT 85 * + + 8 + + - COUNT( * )
----
679

skipif mysql # not compatible
query I rowsort label-3977
SELECT 85 * + + 8 + + - COUNT ( * )
----
679

onlyif mysql # aggregate syntax: 
query II rowsort label-3978
SELECT ALL 46 * - - ( + 47 ), + NULLIF ( - 85, - 0 - - ( + + COUNT( * ) ) ) * - 35 * + COALESCE ( + + 2, + - 0 + - 42, + NULLIF ( 29, 54 ) + 25 ) * + MIN( 0 ) AS col0
----
2162
0

skipif mysql # not compatible
query II rowsort label-3978
SELECT ALL 46 * - - ( + 47 ), + NULLIF ( - 85, - 0 - - ( + + COUNT ( * ) ) ) * - 35 * + COALESCE ( + + 2, + - 0 + - 42, + NULLIF ( 29, 54 ) + 25 ) * + MIN ( 0 ) AS col0
----
2162
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT 16 + SUM( + + 99 ) * - + 94 AS col0
----
-9290

skipif mysql # not compatible
query I rowsort label-3979
SELECT 16 + SUM ( + + 99 ) * - + 94 AS col0
----
-9290

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - + COUNT( * ) * 45 + - 36 + - 62
----
-143

skipif mysql # not compatible
query I rowsort label-3980
SELECT - + COUNT ( * ) * 45 + - 36 + - 62
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT DISTINCT 73 * ( NULLIF ( + ( - - 18 ), + + CAST( NULL AS SIGNED ) ) ) col2
----
1314

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT 73 * ( NULLIF ( + ( - - 18 ), + + CAST ( NULL AS INTEGER ) ) ) col2
----
1314

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + 12 * + + 89 * COUNT( + 38 ) AS col2
----
1068

skipif mysql # not compatible
query I rowsort label-3982
SELECT + 12 * + + 89 * COUNT ( + 38 ) AS col2
----
1068

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT MIN( ALL 68 ) + + 38
----
106

skipif mysql # not compatible
query I rowsort label-3983
SELECT MIN ( ALL 68 ) + + 38
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT ALL - + CAST( NULLIF ( + 84, 51 ) AS SIGNED ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL - + CAST ( NULLIF ( + 84, 51 ) AS INTEGER ) col0
----
-84

query I rowsort
SELECT 85 + + 23 + - - 32 * - 48 * + 95
----
-145812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3986
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT 31 + - NULLIF ( + 82, - 33 * + 61 - - COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-3987
SELECT 31 + - NULLIF ( + 82, - 33 * + 61 - - COUNT ( * ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT - 40 * - 18 + - 66 + 58 * - CASE + COUNT( - - 56 ) WHEN + COUNT( * ) THEN - 38 END AS col1
----
2858

skipif mysql # not compatible
query I rowsort label-3988
SELECT - 40 * - 18 + - 66 + 58 * - CASE + COUNT ( - - 56 ) WHEN + COUNT ( * ) THEN - 38 END AS col1
----
2858

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - - 94 * - 34 + - 94 * 90 + + COUNT( * ) + - 44 * - - 12
----
-12183

skipif mysql # not compatible
query I rowsort label-3989
SELECT - - 94 * - 34 + - 94 * 90 + + COUNT ( * ) + - 44 * - - 12
----
-12183

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL + MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + MIN ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT DISTINCT + COUNT( * ) + + + 57
----
58

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT + COUNT ( * ) + + + 57
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL + CASE - + 89 WHEN - 99 - + COUNT( * ) THEN - 73 * + 21 WHEN - 1 THEN - - COALESCE ( + 16, - 57 * - COALESCE ( - COUNT( DISTINCT 0 ), 91 ) + 92, 2 ) * COALESCE ( 95 + + 50 * + 28, - 48, - 67 + - 65 ) END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + CASE - + 89 WHEN - 99 - + COUNT ( * ) THEN - 73 * + 21 WHEN - 1 THEN - - COALESCE ( + 16, - 57 * - COALESCE ( - COUNT ( DISTINCT 0 ), 91 ) + 92, 2 ) * COALESCE ( 95 + + 50 * + 28, - 48, - 67 + - 65 ) END * 64
----
NULL

query I rowsort
SELECT DISTINCT + 67 + 1
----
68

query I rowsort
SELECT DISTINCT + 94 * 82 AS col2
----
7708

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT - 3 + + - COALESCE ( - + 97, + ( SUM( DISTINCT - 72 ) ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - 3 + + - COALESCE ( - + 97, + ( SUM ( DISTINCT - 72 ) ) ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT - COUNT( * ) + 37
----
36

skipif mysql # not compatible
query I rowsort label-3996
SELECT - COUNT ( * ) + 37
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT - 22 + + 49 * SUM( - 22 ) * + COUNT( * ) AS col0
----
-1100

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT - 22 + + 49 * SUM ( - 22 ) * + COUNT ( * ) AS col0
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - 14 * + + CASE + ( 80 ) WHEN - + COUNT( * ) - - 72 THEN - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT - 14 * + + CASE + ( 80 ) WHEN - + COUNT ( * ) - - 72 THEN - 15 END
----
NULL

query I rowsort
SELECT - 19 + + - 7 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL + 49 + - 87 + 99 * - ( + MIN( DISTINCT 34 ) )
----
-3404

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + 49 + - 87 + 99 * - ( + MIN ( DISTINCT 34 ) )
----
-3404

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL - 86 + 23 + + - COUNT( * ) * - 38 * + 32 AS col0
----
1153

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - 86 + 23 + + - COUNT ( * ) * - 38 * + 32 AS col0
----
1153

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT - 84 * + MIN( DISTINCT + - 30 ) AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-4002
SELECT - 84 * + MIN ( DISTINCT + - 30 ) AS col1
----
2520

query I rowsort
SELECT ALL ( 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT - 1 + - COUNT( * ) + + 45 * + COUNT( * ) + + - COUNT( * ) * + 53
----
-10

skipif mysql # not compatible
query I rowsort label-4004
SELECT - 1 + - COUNT ( * ) + + 45 * + COUNT ( * ) + + - COUNT ( * ) * + 53
----
-10

query I rowsort
SELECT DISTINCT - 4 + 66
----
62

query I rowsort
SELECT ALL ( + 23 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4007
SELECT DISTINCT - SUM( 37 ) * - CAST( - NULLIF ( - 65, - - COUNT( * ) ) AS SIGNED ), ( - 66 ) DIV + 69 + ( 71 ) * + 82 * - COUNT( * ) * - 59 - + 64 AS col1
----
2405
343434

skipif mysql # not compatible
query II rowsort label-4007
SELECT DISTINCT - SUM ( 37 ) * - CAST ( - NULLIF ( - 65, - - COUNT ( * ) ) AS INTEGER ), ( - 66 ) / + 69 + ( 71 ) * + 82 * - COUNT ( * ) * - 59 - + 64 AS col1
----
2405
343434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT + 23 + - + ( + ( + CAST( - 66 AS SIGNED ) ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4008
SELECT + 23 + - + ( + ( + CAST ( - 66 AS INTEGER ) ) ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT ALL 29 * COUNT( * ) * - ( - 40 ) AS col2, 5 col1
----
1160
5

skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL 29 * COUNT ( * ) * - ( - 40 ) AS col2, 5 col1
----
1160
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4010
SELECT ALL + NULLIF ( + COUNT( * ), 86 ), + COUNT( * ) + + 66 + + + 83 - 62 * + - 30 * - + 68 AS col0
----
1
-126330

skipif mysql # not compatible
query II rowsort label-4010
SELECT ALL + NULLIF ( + COUNT ( * ), 86 ), + COUNT ( * ) + + 66 + + + 83 - 62 * + - 30 * - + 68 AS col0
----
1
-126330

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT DISTINCT 18 DIV 96 * + 84 * 68 + + 4
----
4

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT 18 / 96 * + 84 * 68 + + 4
----
4

query I rowsort
SELECT + - 61 col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4013
SELECT + + CAST( NULL AS SIGNED ) / - 6 / - + 10 - - - ( - - COUNT( DISTINCT - 2 ) ) + - COUNT( * ) + - 68 AS col1, 12 + - 2 + - COUNT( * ) AS col2, - + 26
----
NULL
9
-26

skipif mysql # not compatible
query III rowsort label-4013
SELECT + + CAST ( NULL AS INTEGER ) / - 6 / - + 10 - - - ( - - COUNT ( DISTINCT - 2 ) ) + - COUNT ( * ) + - 68 AS col1, 12 + - 2 + - COUNT ( * ) AS col2, - + 26
----
NULL
9
-26

query I rowsort
SELECT - 36 * + 33 * + 21 * 25
----
-623700

query I rowsort
SELECT + 5 + - - 95 col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT + - 43 * SUM( 86 ) col0
----
-3698

skipif mysql # not compatible
query I rowsort label-4016
SELECT + - 43 * SUM ( 86 ) col0
----
-3698

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4017
SELECT 64, + COALESCE ( - - ( 65 ), + COUNT( * ), ( + 53 ) ) DIV + 65 AS col2
----
64
1

skipif mysql # not compatible
query II rowsort label-4017
SELECT 64, + COALESCE ( - - ( 65 ), + COUNT ( * ), ( + 53 ) ) / + 65 AS col2
----
64
1

query II rowsort
SELECT + + 2 AS col0, 0 * ( + + 31 )
----
2
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4019
SELECT - COUNT( * ) * - CASE - + 92 WHEN + CAST( NULL AS DECIMAL ) THEN 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT - COUNT ( * ) * - CASE - + 92 WHEN + CAST ( NULL AS REAL ) THEN 72 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + - 20, - 67 + + - 81 AS col0
----
-20
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL - 55 * - NULLIF ( - 72, + + ( + + 63 ) + - 77 * - COUNT( ALL - 77 ) * + 51 + + - 94 + - COUNT( DISTINCT + ( - - 77 ) ) + - 45 )
----
-3960

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - 55 * - NULLIF ( - 72, + + ( + + 63 ) + - 77 * - COUNT ( ALL - 77 ) * + 51 + + - 94 + - COUNT ( DISTINCT + ( - - 77 ) ) + - 45 )
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT - - 75 * - + NULLIF ( + NULLIF ( 30, + + ( 72 ) ), + 24 * 32 + 13 ) + - COALESCE ( 52, - 14 + - NULLIF ( 14, + 64 * - COUNT( ALL 49 * 85 ) - - 3 * - 69 ) ) * + 11
----
-2822

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT - - 75 * - + NULLIF ( + NULLIF ( 30, + + ( 72 ) ), + 24 * 32 + 13 ) + - COALESCE ( 52, - 14 + - NULLIF ( 14, + 64 * - COUNT ( ALL 49 * 85 ) - - 3 * - 69 ) ) * + 11
----
-2822

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL + + 9 * + - COUNT( * ) + - + 39 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL + + 9 * + - COUNT ( * ) + - + 39 AS col0
----
-48

query I rowsort
SELECT ALL + + ( - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + + 17 * COUNT( * ) * - 71
----
-1207

skipif mysql # not compatible
query I rowsort label-4025
SELECT + + 17 * COUNT ( * ) * - 71
----
-1207

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL COUNT( - + 76 ) * - 85
----
-85

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL COUNT ( - + 76 ) * - 85
----
-85

query I rowsort
SELECT 17 * 30 + - 45
----
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT NULLIF ( + 97, CAST( NULL AS SIGNED ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4028
SELECT NULLIF ( + 97, CAST ( NULL AS INTEGER ) ) AS col0
----
97

query I rowsort
SELECT - NULLIF ( + 80, + 12 ) * + 78
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL 50 * - + 7 + + + COUNT( * )
----
-349

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL 50 * - + 7 + + + COUNT ( * )
----
-349

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL + COUNT( * ) * + - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + COUNT ( * ) * + - 68 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT - 60 + 16 * - - COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4032
SELECT - 60 + 16 * - - COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT DISTINCT + 27 * - + 1 * - 11 * - - 3 AS col1
----
891

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT - ( - ( - - ( - - 62 ) ) ) + - 21 * - - ( 92 ) AS col0, + ( + + NULLIF ( + COUNT( * ), - 38 ) ) AS col2
----
-1870
1

skipif mysql # not compatible
query II rowsort label-4034
SELECT - ( - ( - - ( - - 62 ) ) ) + - 21 * - - ( 92 ) AS col0, + ( + + NULLIF ( + COUNT ( * ), - 38 ) ) AS col2
----
-1870
1

query I rowsort
SELECT ALL + 45 * 21
----
945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT - 30 - + 58 + - 50 - + - CASE - 6 WHEN + MIN( ALL - 74 ) THEN + + 77 + 79 ELSE COALESCE ( - 9, + 14 ) + - 70 * + 98 END DIV NULLIF ( - 28, 52 DIV 62 ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-4036
SELECT - 30 - + 58 + - 50 - + - CASE - 6 WHEN + MIN ( ALL - 74 ) THEN + + 77 + 79 ELSE COALESCE ( - 9, + 14 ) + - 70 * + 98 END / NULLIF ( - 28, 52 / 62 ) AS col2
----
107

query I rowsort
SELECT DISTINCT ( + - 1 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4038
SELECT - 6 - - + 3 + 92 + + ( - - 8 ) AS col1, CAST( - 17 AS SIGNED ) + + 12
----
97
-5

skipif mysql # not compatible
query II rowsort label-4038
SELECT - 6 - - + 3 + 92 + + ( - - 8 ) AS col1, CAST ( - 17 AS INTEGER ) + + 12
----
97
-5

query I rowsort
SELECT ALL ( 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - CASE - 95 WHEN - COUNT( * ) THEN NULL ELSE + 1 * + ( + COUNT( * ) ) * + 63 * + + 66 * - COUNT( * ) * - 71 * + 47 END * + COUNT( - - 74 ) AS col2
----
-13875246

skipif mysql # not compatible
query I rowsort label-4040
SELECT - CASE - 95 WHEN - COUNT ( * ) THEN NULL ELSE + 1 * + ( + COUNT ( * ) ) * + 63 * + + 66 * - COUNT ( * ) * - 71 * + 47 END * + COUNT ( - - 74 ) AS col2
----
-13875246

onlyif mysql # DIV for integer division: 
query II rowsort label-4041
SELECT - 0 * + - 50, NULLIF ( - - 38, + 62 * 56 ) DIV + - 85 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-4041
SELECT - 0 * + - 50, NULLIF ( - - 38, + 62 * 56 ) / + - 85 AS col1
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4042
SELECT ALL + NULLIF ( 71, 42 * 46 ) AS col2, CAST( NULL AS SIGNED ) AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4042
SELECT ALL + NULLIF ( 71, 42 * 46 ) AS col2, CAST ( NULL AS INTEGER ) AS col1
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL 7 * + SUM( + + 79 ) + 17 * - - 5
----
638

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL 7 * + SUM ( + + 79 ) + 17 * - - 5
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL + CASE + 74 WHEN + - 85 * - 70 - - 69 - + COUNT( * ) + + 96 - 70 + + - 38 / - COALESCE ( + 3, 19 + + 38 ) * MAX( ALL 40 ) THEN NULL WHEN + 67 * 74 THEN 70 END * + SUM( DISTINCT ( + CASE - 37 WHEN 56 THEN 63 ELSE CASE 68 WHEN - 9 / 54 THEN 65 * 67 END * + 58 END ) / 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + CASE + 74 WHEN + - 85 * - 70 - - 69 - + COUNT ( * ) + + 96 - 70 + + - 38 / - COALESCE ( + 3, 19 + + 38 ) * MAX ( ALL 40 ) THEN NULL WHEN + 67 * 74 THEN 70 END * + SUM ( DISTINCT ( + CASE - 37 WHEN 56 THEN 63 ELSE CASE 68 WHEN - 9 / 54 THEN 65 * 67 END * + 58 END ) / 86 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + COUNT( + + 15 ) * - 84 + - 40 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-4045
SELECT + COUNT ( + + 15 ) * - 84 + - 40 AS col0
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT CASE + - NULLIF ( + 78, + 61 ) WHEN + 76 THEN 37 WHEN CAST( - COUNT( * ) AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT CASE + - NULLIF ( + 78, + 61 ) WHEN + 76 THEN 37 WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 6 * - 4
----
-24

query I rowsort
SELECT DISTINCT - 48 + - + 23
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT - - ( - COUNT( ALL - 32 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT - - ( - COUNT ( ALL - 32 ) )
----
-1

query I rowsort
SELECT ALL - COALESCE ( + + 7, + 65 + + - 38 ) + 91
----
84

query I rowsort
SELECT DISTINCT - + 57 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT - + ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT - + ( COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL 80 + 33
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4054
SELECT - 50 * + 47 col1, 25 * + SUM( DISTINCT + - 46 ) * + 92 + + - 86 + + 32
----
-2350
-105854

skipif mysql # not compatible
query II rowsort label-4054
SELECT - 50 * + 47 col1, 25 * + SUM ( DISTINCT + - 46 ) * + 92 + + - 86 + + 32
----
-2350
-105854

query I rowsort
SELECT DISTINCT 67 + - - 4
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT DISTINCT 20 * - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT 20 * - - COUNT ( * )
----
20

query I rowsort
SELECT ALL 55 * + 59 AS col2
----
3245

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT 13 - - + 41 + + - ( COUNT( * ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT 13 - - + 41 + + - ( COUNT ( * ) ) AS col2
----
53

query I rowsort
SELECT ( - 63 ) * + - 20 AS col1
----
1260

query I rowsort
SELECT ALL - 86 - + + ( ( 85 ) )
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT 61 + SUM( + 79 ) * COUNT( * ) + + 81 * - 55 AS col0, + 49 + COALESCE ( - COUNT( * ), 64 + - COUNT( * ) + - - 48, + 93 + + 5 ) * - - 9 AS col0
----
-4315
40

skipif mysql # not compatible
query II rowsort label-4061
SELECT 61 + SUM ( + 79 ) * COUNT ( * ) + + 81 * - 55 AS col0, + 49 + COALESCE ( - COUNT ( * ), 64 + - COUNT ( * ) + - - 48, + 93 + + 5 ) * - - 9 AS col0
----
-4315
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4062
SELECT CASE 88 WHEN 42 + 3 / - 29 THEN NULL WHEN - + COUNT( * ) * - CAST( NULL AS SIGNED ) + - + CAST( - NULLIF ( - 56, - MIN( ALL - 78 ) * 16 ) AS DECIMAL ) + + 54 * 84 THEN NULL ELSE - 91 END * + 91 AS col1
----
-8281

skipif mysql # not compatible
query I rowsort label-4062
SELECT CASE 88 WHEN 42 + 3 / - 29 THEN NULL WHEN - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - + CAST ( - NULLIF ( - 56, - MIN ( ALL - 78 ) * 16 ) AS REAL ) + + 54 * 84 THEN NULL ELSE - 91 END * + 91 AS col1
----
-8281

query I rowsort
SELECT 10 + - + 81 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT ALL 12 - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL 12 - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT 19 + + 61 * - 1 * + 64
----
-3885

query I rowsort
SELECT 26 * - 33
----
-858

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT ALL + 14 DIV 14 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL + 14 / 14 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT CAST( - 58 AS SIGNED ) + ( 57 ) * + NULLIF ( + + 84, + 98 + 76 ) * 42 * + + 60 * - - COUNT( * ) + + 44 AS col2
----
12065746

skipif mysql # not compatible
query I rowsort label-4068
SELECT CAST ( - 58 AS INTEGER ) + ( 57 ) * + NULLIF ( + + 84, + 98 + 76 ) * 42 * + + 60 * - - COUNT ( * ) + + 44 AS col2
----
12065746

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT ALL 52 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL 52 / - 54
----
0

query I rowsort
SELECT DISTINCT ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL - + COUNT( * ) * 45
----
-45

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL - + COUNT ( * ) * 45
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT ALL + + CAST( NULL AS SIGNED ) * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + + CAST ( NULL AS INTEGER ) * 35 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 39 * - 1 AS col2
----
-39

query I rowsort
SELECT - 9 + - - 42 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL + COUNT( * ) * + + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL + COUNT ( * ) * + + 84 AS col0
----
84

query I rowsort
SELECT + 1 + + 54 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - - ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4077
SELECT - - ( - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT ALL - - 98 AS col2
----
98

query I rowsort
SELECT ALL + - 29 + - + 90
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT DISTINCT - CAST( + 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT - CAST ( + 23 AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL - + COUNT( DISTINCT - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL - + COUNT ( DISTINCT - 0 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4082
SELECT + ( + - 17 ) * 40, 14 * - MIN( DISTINCT - CAST( 72 AS SIGNED ) ) AS col1
----
-680
1008

skipif mysql # not compatible
query II rowsort label-4082
SELECT + ( + - 17 ) * 40, 14 * - MIN ( DISTINCT - CAST ( 72 AS INTEGER ) ) AS col1
----
-680
1008

query I rowsort
SELECT ( + 86 ) * - + 11 * - 18
----
17028

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + MIN( - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4084
SELECT + MIN ( - 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + COALESCE ( + + ( + COUNT( * ) ), + 35 + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-4085
SELECT + COALESCE ( + + ( + COUNT ( * ) ), + 35 + 23 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4086
SELECT - + COUNT( * ) DIV 92 + - - 79 - 38 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4086
SELECT - + COUNT ( * ) / 92 + - - 79 - 38 AS col0
----
41

query II rowsort
SELECT 80 col1, 42 AS col2
----
80
42

query I rowsort
SELECT 91 * 51
----
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL + 18 - MAX( - 53 )
----
71

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + 18 - MAX ( - 53 )
----
71

query II rowsort
SELECT DISTINCT - 42, - CASE - - 77 WHEN - 5 THEN 4 * + 4 * - + 76 ELSE - + ( 52 ) END AS col1
----
-42
52

query I rowsort
SELECT 81 * + + 7 AS col1
----
567

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT DISTINCT - 17 AS col1, - COUNT( - - 95 ) + + 86 - + - 2 + - + 59 * 30 + 84 * - 61 * + 87
----
-17
-447471

skipif mysql # not compatible
query II rowsort label-4092
SELECT DISTINCT - 17 AS col1, - COUNT ( - - 95 ) + + 86 - + - 2 + - + 59 * 30 + 84 * - 61 * + 87
----
-17
-447471

query I rowsort
SELECT 91 * - + 31 + + 68 AS col0
----
-2753

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT 71 * + ( - COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-4094
SELECT 71 * + ( - COUNT ( * ) )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT 90 + + 47 * COALESCE ( 42, - 89 DIV 3 * - 52 * + ( + 55 ) + COUNT( * ) ) AS col0
----
2064

skipif mysql # not compatible
query I rowsort label-4095
SELECT 90 + + 47 * COALESCE ( 42, - 89 / 3 * - 52 * + ( + 55 ) + COUNT ( * ) ) AS col0
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL ( + CASE + 42 WHEN - - CASE 86 WHEN ( 72 ) THEN + - 62 * + 23 - 63 - 33 WHEN NULLIF ( + 36, COUNT( * ) ) * 27 THEN NULL END * ( COUNT( * ) ) THEN NULL ELSE - 61 * 25 END ) * + 61 AS col0
----
-93025

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL ( + CASE + 42 WHEN - - CASE 86 WHEN ( 72 ) THEN + - 62 * + 23 - 63 - 33 WHEN NULLIF ( + 36, COUNT ( * ) ) * 27 THEN NULL END * ( COUNT ( * ) ) THEN NULL ELSE - 61 * 25 END ) * + 61 AS col0
----
-93025

query I rowsort
SELECT ( - + 76 ) * 67
----
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT COUNT( * ) + CASE 89 WHEN - + 34 THEN NULL WHEN - 25 * + - 92 / - - 8 + + + 16 THEN NULL ELSE - CASE - 17 WHEN NULLIF ( + 96, - 90 + - - 81 ) * - 9 THEN + 67 ELSE NULL END + - 34 * + 64 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT COUNT ( * ) + CASE 89 WHEN - + 34 THEN NULL WHEN - 25 * + - 92 / - - 8 + + + 16 THEN NULL ELSE - CASE - 17 WHEN NULLIF ( + 96, - 90 + - - 81 ) * - 9 THEN + 67 ELSE NULL END + - 34 * + 64 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4099
SELECT ALL 48 AS col1, 49 + COALESCE ( - - 8, 56 * 8 + + COUNT( * ) )
----
48
57

skipif mysql # not compatible
query II rowsort label-4099
SELECT ALL 48 AS col1, 49 + COALESCE ( - - 8, 56 * 8 + + COUNT ( * ) )
----
48
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4100
SELECT - COUNT( * ) AS col2, ( + 95 ) * + ( - + 31 ) + + 42 + - - 96 AS col1
----
-1
-2807

skipif mysql # not compatible
query II rowsort label-4100
SELECT - COUNT ( * ) AS col2, ( + 95 ) * + ( - + 31 ) + + 42 + - - 96 AS col1
----
-1
-2807

query I rowsort
SELECT + 63 - - + 33
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT SUM( ALL 99 ) + 57 - + 22 + - 91
----
43

skipif mysql # not compatible
query I rowsort label-4102
SELECT SUM ( ALL 99 ) + 57 - + 22 + - 91
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL MIN( - 40 ) + 37 + + SUM( ALL - 24 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL MIN ( - 40 ) + 37 + + SUM ( ALL - 24 ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT CAST( + - 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-4104
SELECT CAST ( + - 31 AS INTEGER )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT DISTINCT + 48 + + MAX( - 21 ) + + - COUNT( * ) + - + COALESCE ( - CASE - 30 WHEN 59 * - 35 THEN - + CAST( - + COUNT( * ) AS SIGNED ) WHEN MAX( - 30 ) * NULLIF ( + COUNT( * ), 13 * 80 ) THEN - 80 ELSE NULL END, MIN( ALL 64 ), 58 ) + + COUNT( DISTINCT 80 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT + 48 + + MAX ( - 21 ) + + - COUNT ( * ) + - + COALESCE ( - CASE - 30 WHEN 59 * - 35 THEN - + CAST ( - + COUNT ( * ) AS INTEGER ) WHEN MAX ( - 30 ) * NULLIF ( + COUNT ( * ), 13 * 80 ) THEN - 80 ELSE NULL END, MIN ( ALL 64 ), 58 ) + + COUNT ( DISTINCT 80 ) AS col0
----
-53

query II rowsort
SELECT 58, - 37 + + 14 AS col2
----
58
-23

query I rowsort
SELECT DISTINCT - ( - + 99 ) + - 39 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT ALL COALESCE ( + - CAST( NULL AS SIGNED ), - 29 ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL COALESCE ( + - CAST ( NULL AS INTEGER ), - 29 ) col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT ALL - - 39 + + - CAST( - + 81 AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - - 39 + + - CAST ( - + 81 AS INTEGER )
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT - - ( + CASE 70 WHEN + CASE 84 WHEN 21 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + - 24 WHEN + + 83 * + 57 + - ( NULLIF ( - 80, - 70 ) ) / 51 * + 17 + + 63 * COUNT( * ) THEN - 93 * NULLIF ( - COUNT( * ), + 43 - COALESCE ( 21, - CASE 96 WHEN + 77 THEN + COUNT( * ) WHEN ( COUNT( * ) ) * COALESCE ( - 15 / - 59, - 18, 13 ) THEN - 55 / - 73 WHEN AVG ( - ( 63 ) ) THEN NULL END * + 53, COUNT( * ) ) ) END THEN NULL ELSE 46 * - 70 END ) * ( - 4 )
----
12880

skipif mysql # not compatible
query I rowsort label-4110
SELECT - - ( + CASE 70 WHEN + CASE 84 WHEN 21 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + - 24 WHEN + + 83 * + 57 + - ( NULLIF ( - 80, - 70 ) ) / 51 * + 17 + + 63 * COUNT ( * ) THEN - 93 * NULLIF ( - COUNT ( * ), + 43 - COALESCE ( 21, - CASE 96 WHEN + 77 THEN + COUNT ( * ) WHEN ( COUNT ( * ) ) * COALESCE ( - 15 / - 59, - 18, 13 ) THEN - 55 / - 73 WHEN AVG ( - ( 63 ) ) THEN NULL END * + 53, COUNT ( * ) ) ) END THEN NULL ELSE 46 * - 70 END ) * ( - 4 )
----
12880

query I rowsort
SELECT + - 18 + + 64
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT - 88 DIV - COALESCE ( + 1, 67 )
----
88

skipif mysql # not compatible
query I rowsort label-4112
SELECT - 88 / - COALESCE ( + 1, 67 )
----
88

query I rowsort
SELECT ALL + 26 * - 78 + + 50
----
-1978

query II rowsort
SELECT - 89 AS col0, 81 + 68 AS col2
----
-89
149

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT - 85 + COUNT( * ) AS col0, ( + 98 )
----
-84
98

skipif mysql # not compatible
query II rowsort label-4115
SELECT - 85 + COUNT ( * ) AS col0, ( + 98 )
----
-84
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT ALL CAST( - 48 AS SIGNED ) * - 96 * + + 55 - 77 - 36
----
253327

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL CAST ( - 48 AS INTEGER ) * - 96 * + + 55 - 77 - 36
----
253327

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL ( 30 ) * COUNT( + 56 ) * + MAX( - 68 ) - + 62 * - - 62 * - - 70 * + 66
----
-17761320

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL ( 30 ) * COUNT ( + 56 ) * + MAX ( - 68 ) - + 62 * - - 62 * - - 70 * + 66
----
-17761320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT COALESCE ( CAST( NULL AS SIGNED ), 13 )
----
13

skipif mysql # not compatible
query I rowsort label-4118
SELECT COALESCE ( CAST ( NULL AS INTEGER ), 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT CASE - 38 WHEN - 71 + + 27 * + COUNT( * ) THEN - + 15 END * + ( - 70 ) + 30 * + + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT CASE - 38 WHEN - 71 + + 27 * + COUNT ( * ) THEN - + 15 END * + ( - 70 ) + 30 * + + 94 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT - 6 * - NULLIF ( + + CAST( NULL AS SIGNED ), - - COUNT( * ) * - ( + 63 ) * + 91 ) + + 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT - 6 * - NULLIF ( + + CAST ( NULL AS INTEGER ), - - COUNT ( * ) * - ( + 63 ) * + 91 ) + + 87 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL COUNT( * ) * + NULLIF ( + + 20, 13 * - - NULLIF ( + 16, - - 29 ) - - 97 ) - - - MAX( ALL - 2 ) + + 94 + + 25 + COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL COUNT ( * ) * + NULLIF ( + + 20, 13 * - - NULLIF ( + 16, - - 29 ) - - 97 ) - - - MAX ( ALL - 2 ) + + 94 + + 25 + COUNT ( * )
----
142

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4122
SELECT COALESCE ( + 62, 9 DIV + 1 * ( + - 66 ) DIV CAST( NULL AS SIGNED ), - 63 DIV 40 + 36 )
----
62

skipif mysql # not compatible
query I rowsort label-4122
SELECT COALESCE ( + 62, 9 / + 1 * ( + - 66 ) / CAST ( NULL AS INTEGER ), - 63 / 40 + 36 )
----
62

query I rowsort
SELECT - 1 * - 86 * + + 72 * - 66 * + ( ( - 60 ) ) col0
----
24520320

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT - 19 DIV - - 36 * - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 19 / - - 36 * - 73 AS col0
----
0

query I rowsort
SELECT - 24 * + ( + 42 ) AS col1
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL + SUM( ALL - ( + + 69 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL + SUM ( ALL - ( + + 69 ) ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT DISTINCT + CAST( - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT + CAST ( - 22 AS INTEGER )
----
-22

query I rowsort
SELECT DISTINCT + ( + 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT + CASE + COUNT( 86 ) WHEN - 66 THEN - + 82 ELSE NULL END + + 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + CASE + COUNT ( 86 ) WHEN - 66 THEN - + 82 ELSE NULL END + + 2 col0
----
NULL

query I rowsort
SELECT ALL ( - - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + 56 * MIN( + 99 )
----
5544

skipif mysql # not compatible
query I rowsort label-4131
SELECT + 56 * MIN ( + 99 )
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT - COALESCE ( + - 67, - + COUNT( * ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4132
SELECT - COALESCE ( + - 67, - + COUNT ( * ) ) AS col2
----
67

query I rowsort
SELECT NULLIF ( 4, + 56 )
----
4

query I rowsort
SELECT DISTINCT - 69 + + 70
----
1

query I rowsort
SELECT - + 64 - - 13 * + - 19 AS col1
----
-311

query I rowsort
SELECT - ( - 25 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4137
SELECT + CAST( - + COUNT( * ) AS SIGNED ) + - 94 + - 32 + - 98 + + 15 * + + CAST( + AVG ( 77 ) AS DECIMAL ) - + COUNT( * ) * ( - CAST( NULL AS SIGNED ) ) * + 45 * + + ( - + ( + - CASE + 29 WHEN - COALESCE ( + COUNT( * ), 92, 9 * - ( - 25 * - COUNT( * ) ), 56 ) THEN ( 6 ) * 39 WHEN 70 / 40 THEN NULL ELSE 27 + - 8 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) + - 94 + - 32 + - 98 + + 15 * + + CAST ( + AVG ( 77 ) AS REAL ) - + COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ) * + 45 * + + ( - + ( + - CASE + 29 WHEN - COALESCE ( + COUNT ( * ), 92, 9 * - ( - 25 * - COUNT ( * ) ), 56 ) THEN ( 6 ) * 39 WHEN 70 / 40 THEN NULL ELSE 27 + - 8 END ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4138
SELECT DISTINCT 42 - + CAST( - 71 AS SIGNED ) AS col1, + CAST( NULL AS SIGNED ) + + 28 AS col0
----
113
NULL

skipif mysql # not compatible
query II rowsort label-4138
SELECT DISTINCT 42 - + CAST ( - 71 AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) + + 28 AS col0
----
113
NULL

query I rowsort
SELECT ( + 97 ) AS col0
----
97

query I rowsort
SELECT ALL NULLIF ( + - 0, + + 16 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4141
SELECT ALL + 0 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + 0 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT ALL 43 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL 43 / - 33
----
-1

query I rowsort
SELECT ALL 96 * 55
----
5280

query I rowsort
SELECT + COALESCE ( - 45, 47 + - 26 + - 27, + 20 ) * - + 76 AS col2
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT - 7 * - MAX( DISTINCT + - 91 )
----
-637

skipif mysql # not compatible
query I rowsort label-4145
SELECT - 7 * - MAX ( DISTINCT + - 91 )
----
-637

query I rowsort
SELECT + 78 * 45
----
3510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4147
SELECT ALL 1 * + 44 * - 67 col2, + CAST( NULL AS SIGNED ) AS col0
----
-2948
NULL

skipif mysql # not compatible
query II rowsort label-4147
SELECT ALL 1 * + 44 * - 67 col2, + CAST ( NULL AS INTEGER ) AS col0
----
-2948
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4148
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - - 59 * 48 * - 70 + CASE + - 9 WHEN - + 86 + 39 THEN + SUM( + + ( - CAST( - - 4 AS SIGNED ) ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT CAST ( NULL AS REAL ) * - - 59 * 48 * - 70 + CASE + - 9 WHEN - + 86 + 39 THEN + SUM ( + + ( - CAST ( - - 4 AS INTEGER ) ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT + COUNT( * ) * - - 18 * - 39 + 98
----
-604

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT + COUNT ( * ) * - - 18 * - 39 + 98
----
-604

query I rowsort
SELECT - 41 - - - 81
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT 65 * + CASE + 43 WHEN + 13 THEN + + ( + 25 ) * - 54 - CAST( + - 2 AS SIGNED ) - + 16 WHEN + 59 + + + ( + 97 ) THEN NULL ELSE NULL END * - 42 * - 85 + + CAST( - + 46 AS SIGNED ) * - - 70 + 23 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT 65 * + CASE + 43 WHEN + 13 THEN + + ( + 25 ) * - 54 - CAST ( + - 2 AS INTEGER ) - + 16 WHEN + 59 + + + ( + 97 ) THEN NULL ELSE NULL END * - 42 * - 85 + + CAST ( - + 46 AS INTEGER ) * - - 70 + 23 * 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT ALL - 92 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL - 92 / 99
----
0

query I rowsort
SELECT 45 + - 41 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT + CAST( NULL AS SIGNED ) + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT + CAST ( NULL AS INTEGER ) + - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT + CASE 40 WHEN + 16 THEN 25 ELSE NULL END * + 86 + - 14 + 13 + - 78 / - ( + 46 ) * + 58 * + - MAX( + + 66 ) + 59 * + 5 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + CASE 40 WHEN + 16 THEN 25 ELSE NULL END * + 86 + - 14 + 13 + - 78 / - ( + 46 ) * + 58 * + - MAX ( + + 66 ) + 59 * + 5 + - 16
----
NULL

query I rowsort
SELECT - 64 * 2 * - - 92 + - 25 + 0 AS col2
----
-11801

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL CASE + + 25 WHEN - 70 + 83 + - + 81 THEN 35 END / - COUNT( * ) * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL CASE + + 25 WHEN - 70 + 83 + - + 81 THEN 35 END / - COUNT ( * ) * - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT - 78 + MAX( ALL - 51 ) * + 75 + + 34 + + - 11 AS col0
----
-3880

skipif mysql # not compatible
query I rowsort label-4158
SELECT - 78 + MAX ( ALL - 51 ) * + 75 + + 34 + + - 11 AS col0
----
-3880

onlyif mysql # aggregate syntax: 
query II rowsort label-4159
SELECT - 17, SUM( 46 ) col1
----
-17
46

skipif mysql # not compatible
query II rowsort label-4159
SELECT - 17, SUM ( 46 ) col1
----
-17
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + NULLIF ( - COUNT( * ), - ( - 93 ) + 12 - + - 61 ) * + + 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4160
SELECT + NULLIF ( - COUNT ( * ), - ( - 93 ) + 12 - + - 61 ) * + + 33 AS col0
----
-33

query I rowsort
SELECT ALL CASE - + 22 WHEN - 98 THEN NULL WHEN + 39 + 77 * + + 63 THEN 97 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT CAST( NULL AS SIGNED ) - - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT CAST ( NULL AS INTEGER ) - - + 58
----
NULL

query I rowsort
SELECT DISTINCT - + 26 - NULLIF ( - - 56, - 43 * - 30 * 31 * + 34 + 48 + 9 ) * - - 82 AS col1
----
-4618

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT + 24 AS col1, SUM( 91 ) + - COUNT( * )
----
24
90

skipif mysql # not compatible
query II rowsort label-4164
SELECT + 24 AS col1, SUM ( 91 ) + - COUNT ( * )
----
24
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT MIN( DISTINCT + 3 ) + + 25 + + 70 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4165
SELECT MIN ( DISTINCT + 3 ) + + 25 + + 70 AS col1
----
98

query I rowsort
SELECT ALL + ( - 64 ) * - 36
----
2304

query I rowsort
SELECT DISTINCT + 41 * + 91
----
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT 65 + + 6 - + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-4168
SELECT 65 + + 6 - + - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT 5 * + MAX( + 28 ) * - - MAX( ALL 93 ) - + - 17 + 15 DIV + + 47 AS col2
----
13037

skipif mysql # not compatible
query I rowsort label-4169
SELECT 5 * + MAX ( + 28 ) * - - MAX ( ALL 93 ) - + - 17 + 15 / + + 47 AS col2
----
13037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4170
SELECT 23 * + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col2, + COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4170
SELECT 23 * + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col2, + COUNT ( * ) col0
----
1
1

query I rowsort
SELECT ( + 16 ) * - - 38 AS col0
----
608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT + ( - 4 ) / - - CASE - 61 WHEN 2 + - 43 + 41 + 15 THEN NULL WHEN + COUNT( * ) THEN - 43 * - 90 WHEN - 26 THEN NULL END + NULLIF ( 90, 82 ) - CAST( NULL AS SIGNED ) * + ( 27 ) * 94 - ( 3 ) * 57 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT + ( - 4 ) / - - CASE - 61 WHEN 2 + - 43 + 41 + 15 THEN NULL WHEN + COUNT ( * ) THEN - 43 * - 90 WHEN - 26 THEN NULL END + NULLIF ( 90, 82 ) - CAST ( NULL AS INTEGER ) * + ( 27 ) * 94 - ( 3 ) * 57 * 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT ALL - ( - - COALESCE ( + 7, - 29, 43 DIV - 59 ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL - ( - - COALESCE ( + 7, - 29, 43 / - 59 ) ) AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT - 10 * 87 DIV + 32 + - - 49
----
22

skipif mysql # not compatible
query I rowsort label-4174
SELECT - 10 * 87 / + 32 + - - 49
----
22

query I rowsort
SELECT DISTINCT + ( + + 10 ) + 31
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT CASE + - SUM( ALL 53 ) WHEN - 62 * 57 THEN - COUNT( * ) + + 55 ELSE NULL END / + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT CASE + - SUM ( ALL 53 ) WHEN - 62 * 57 THEN - COUNT ( * ) + + 55 ELSE NULL END / + 2 AS col1
----
NULL

query I rowsort
SELECT - 60 * - 58 + - - 71
----
3551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4178
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 97 + + + CAST( NULL AS SIGNED ) + + COUNT( * ) * + 68 * + ( 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 97 + + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 68 * + ( 53 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4179
SELECT 25 DIV + + CAST( COUNT( * ) AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4179
SELECT 25 / + + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
25

query II rowsort
SELECT ALL 88 * - - 64 AS col2, - ( + 46 )
----
5632
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT - MAX( ALL + 49 ) * + 51 AS col0
----
-2499

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - MAX ( ALL + 49 ) * + 51 AS col0
----
-2499

query I rowsort
SELECT 60 * + + 75 * + + 54
----
243000

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT DISTINCT - + SUM( DISTINCT - 13 ) AS col0, ( + ( - COUNT( * ) ) ) - + + 35 * 99
----
13
-3466

skipif mysql # not compatible
query II rowsort label-4183
SELECT DISTINCT - + SUM ( DISTINCT - 13 ) AS col0, ( + ( - COUNT ( * ) ) ) - + + 35 * 99
----
13
-3466

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL MAX( + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL MAX ( + 69 ) AS col2
----
69

query I rowsort
SELECT ( - 12 ) AS col1
----
-12

query I rowsort
SELECT DISTINCT + + 53 * + + 21 + + 49 AS col1
----
1162

query I rowsort
SELECT + ( + 60 ) * + 51
----
3060

query I rowsort
SELECT - 68 * - 85
----
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL + MIN( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + MIN ( ALL + 35 )
----
35

query I rowsort
SELECT DISTINCT + ( - 32 ) * - 43
----
1376

query I rowsort
SELECT - 34 * - 86
----
2924

query II rowsort
SELECT ALL + 84 * 5 AS col2, - 21
----
420
-21

query I rowsort
SELECT - - 18 AS col1
----
18

query I rowsort
SELECT - 92 + - 31
----
-123

query I rowsort
SELECT 74 * 41 col2
----
3034

query I rowsort
SELECT 10 + - 5 + - - 67 * 61
----
4092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL + 27 + + CASE - - 40 WHEN + 58 * 90 + - ( + ( COUNT( ALL 32 ) ) ) + CAST( + 27 AS SIGNED ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + 27 + + CASE - - 40 WHEN + 58 * 90 + - ( + ( COUNT ( ALL 32 ) ) ) + CAST ( + 27 AS INTEGER ) THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4198
SELECT 19 DIV - - ( - + COUNT( * ) )
----
-19

skipif mysql # not compatible
query I rowsort label-4198
SELECT 19 / - - ( - + COUNT ( * ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT 90 * - - SUM( - + 60 ) AS col2
----
-5400

skipif mysql # not compatible
query I rowsort label-4199
SELECT 90 * - - SUM ( - + 60 ) AS col2
----
-5400

query I rowsort
SELECT DISTINCT - 55 * - 22 AS col1
----
1210

query I rowsort
SELECT ALL + 28 + - 37 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT - CAST( + 65 AS SIGNED ) * + 22 + - 34 + - ( - - ( 93 ) ) + + 42
----
-1515

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT - CAST ( + 65 AS INTEGER ) * + 22 + - 34 + - ( - - ( 93 ) ) + + 42
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT CASE - 53 WHEN - COUNT( * ) / - + 75 * + 55 + - 41 + + 64 THEN NULL WHEN + 15 THEN - ( + 29 ) ELSE + + 26 * + - 38 END AS col0
----
-988

skipif mysql # not compatible
query I rowsort label-4203
SELECT CASE - 53 WHEN - COUNT ( * ) / - + 75 * + 55 + - 41 + + 64 THEN NULL WHEN + 15 THEN - ( + 29 ) ELSE + + 26 * + - 38 END AS col0
----
-988

query I rowsort
SELECT 90 * 26
----
2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4205
SELECT ALL + COUNT( ALL - + 64 ) * CAST( - + 22 AS SIGNED ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL + COUNT ( ALL - + 64 ) * CAST ( - + 22 AS INTEGER ) col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL - 83 * + - 71 + - - SUM( - - 84 ) AS col2
----
5977

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - 83 * + - 71 + - - SUM ( - - 84 ) AS col2
----
5977

query I rowsort
SELECT - 6 - - 15 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + MIN( - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4208
SELECT + MIN ( - 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT MIN( DISTINCT + - 65 ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-4209
SELECT MIN ( DISTINCT + - 65 ) col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT + CASE + COUNT( * ) WHEN 38 THEN NULL WHEN - 68 * - + COUNT( * ) * 41 + - - 84 THEN - - ( + 97 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT + CASE + COUNT ( * ) WHEN 38 THEN NULL WHEN - 68 * - + COUNT ( * ) * 41 + - - 84 THEN - - ( + 97 ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4211
SELECT DISTINCT + + 35 * 54 * + + CAST( NULL AS DECIMAL ) - + + 10 - - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT + + 35 * 54 * + + CAST ( NULL AS REAL ) - + + 10 - - 60 AS col1
----
NULL

query I rowsort
SELECT + - 46 - - + 96
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4213
SELECT ALL - CAST( NULL AS DECIMAL ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - CAST ( NULL AS REAL ) * - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT + 55 * + 0 * 97 * - - ( + + 20 ) * - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT + 55 * + 0 * 97 * - - ( + + 20 ) * - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT + - 2 + + 43 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL COUNT( * ) * + + SUM( + ( - 13 ) ) + + 73 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL COUNT ( * ) * + + SUM ( + ( - 13 ) ) + + 73 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT + 82 DIV + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4217
SELECT + 82 / + 97 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL + + CAST( + 5 AS SIGNED ) col0
----
5

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + + CAST ( + 5 AS INTEGER ) col0
----
5

query I rowsort
SELECT + 96 + + 73 + - 83
----
86

query II rowsort
SELECT ALL - 64, - 34 AS col2
----
-64
-34

query I rowsort
SELECT + ( - 3 ) col1
----
-3

query I rowsort
SELECT + - 88 * + 16 + + - 12 + 62
----
-1358

query II rowsort
SELECT DISTINCT + 28 AS col2, 95 AS col0
----
28
95

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4224
SELECT + + ( - 75 ) + - 39, CAST( NULL AS DECIMAL ) AS col0
----
-114
NULL

skipif mysql # not compatible
query II rowsort label-4224
SELECT + + ( - 75 ) + - 39, CAST ( NULL AS REAL ) AS col0
----
-114
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT - 75, + MIN( DISTINCT - 52 ) AS col0
----
-75
-52

skipif mysql # not compatible
query II rowsort label-4225
SELECT - 75, + MIN ( DISTINCT - 52 ) AS col0
----
-75
-52

query I rowsort
SELECT ALL ( - 36 ) AS col1
----
-36

query I rowsort
SELECT - 68 * + + 48 col2
----
-3264

query I rowsort
SELECT ALL - + 83 + - ( 77 ) * + + 52 * 9
----
-36119

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ALL + COUNT( * ) + - - 34 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + COUNT ( * ) + - - 34 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT - ( - COUNT( DISTINCT - - 75 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT - ( - COUNT ( DISTINCT - - 75 ) )
----
1

query I rowsort
SELECT DISTINCT 43 + 35 - 34
----
44

query I rowsort
SELECT - 72 * 82 AS col1
----
-5904

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT ALL 78 + 1 DIV ( - 35 ) DIV + 19 + - 37 - + 85 + - + 44 * + + 46 * - 94 col0
----
190212

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 78 + 1 / ( - 35 ) / + 19 + - 37 - + 85 + - + 44 * + + 46 * - 94 col0
----
190212

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL MAX( - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL MAX ( - + 89 )
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-4235
SELECT 14 AS col2, - 47 DIV 75
----
14
0

skipif mysql # not compatible
query II rowsort label-4235
SELECT 14 AS col2, - 47 / 75
----
14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + 36 + + ( - - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 36 + + ( - - COUNT ( * ) )
----
37

query II rowsort
SELECT 30 AS col1, + 34 * + 90 * - + 79 + + 0 * 48 AS col1
----
30
-241740

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4238
SELECT ALL CASE - - CAST( NULL AS DECIMAL ) WHEN - + 16 + + 21 + + - 78 THEN NULL ELSE + COUNT( * ) - + + 15 END AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL CASE - - CAST ( NULL AS REAL ) WHEN - + 16 + + 21 + + - 78 THEN NULL ELSE + COUNT ( * ) - + + 15 END AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4239
SELECT - CAST( NULL AS SIGNED ) + MAX( - 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT - CAST ( NULL AS INTEGER ) + MAX ( - 96 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT - 18 + + + 23 + 35 + - 67 - - 45 + + CAST( NULL AS SIGNED ) + - 7 * 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT - 18 + + + 23 + 35 + - 67 - - 45 + + CAST ( NULL AS INTEGER ) + - 7 * 98 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT ALL - 39 DIV + 82 + 30 + + - 20 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - 39 / + 82 + 30 + + - 20 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4242
SELECT DISTINCT + 57, 50 * - ( + CAST( NULL AS DECIMAL ) ) * + ( + 52 ) / + - COUNT( * ) AS col0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-4242
SELECT DISTINCT + 57, 50 * - ( + CAST ( NULL AS REAL ) ) * + ( + 52 ) / + - COUNT ( * ) AS col0
----
57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT DISTINCT + CAST( - + 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + CAST ( - + 61 AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL - NULLIF ( CASE ( 94 ) WHEN 86 - + 63 THEN 74 / 35 WHEN - + AVG ( ALL - 71 ) THEN + COUNT( * ) WHEN + + 74 * + 13 + - - 87 THEN NULL END, - NULLIF ( + COUNT( * ), 90 ) * - 12 ) * - COALESCE ( 78, + - 46, + 97 * 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - NULLIF ( CASE ( 94 ) WHEN 86 - + 63 THEN 74 / 35 WHEN - + AVG ( ALL - 71 ) THEN + COUNT ( * ) WHEN + + 74 * + 13 + - - 87 THEN NULL END, - NULLIF ( + COUNT ( * ), 90 ) * - 12 ) * - COALESCE ( 78, + - 46, + 97 * 32 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT ALL + 62 / 23 - - 67 * + - CAST( NULL AS SIGNED ) + + ( 22 ) / - 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + 62 / 23 - - 67 * + - CAST ( NULL AS INTEGER ) + + ( 22 ) / - 53 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT + ( - - MIN( - 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + ( - - MIN ( - 26 ) )
----
-26

query I rowsort
SELECT - 63 * - 75 + + 21
----
4746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4248
SELECT ALL 88 * 45 - - 55 + + + COUNT( * ) DIV 74 * - 84 AS col0
----
4015

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL 88 * 45 - - 55 + + + COUNT ( * ) / 74 * - 84 AS col0
----
4015

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT + 32 * - - COUNT( * ) + 24
----
56

skipif mysql # not compatible
query I rowsort label-4249
SELECT + 32 * - - COUNT ( * ) + 24
----
56

query II rowsort
SELECT DISTINCT + + 79 col1, 66
----
79
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - COUNT( 97 ) * - ( + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-4251
SELECT - COUNT ( 97 ) * - ( + 27 )
----
27

query I rowsort
SELECT + 27 + - + 34 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL + - CASE - COUNT( * ) WHEN COUNT( * ) * - 39 THEN NULL WHEN + - NULLIF ( - 83, + - 15 * + - 7 ) THEN + 33 + 37 WHEN - 60 / 19 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + - CASE - COUNT ( * ) WHEN COUNT ( * ) * - 39 THEN NULL WHEN + - NULLIF ( - 83, + - 15 * + - 7 ) THEN + 33 + 37 WHEN - 60 / 19 THEN NULL END
----
NULL

query II rowsort
SELECT + - 99 AS col1, 61 AS col1
----
-99
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT + NULLIF ( CAST( NULL AS SIGNED ), 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT + + ( + 0 ) * 26 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT + + ( + 0 ) * 26 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT + + 90 * - - MIN( - ( - + 73 ) ) - - + 53 + + 91 + + 59 + COUNT( + 25 ) * 3
----
6776

skipif mysql # not compatible
query I rowsort label-4257
SELECT + + 90 * - - MIN ( - ( - + 73 ) ) - - + 53 + + 91 + + 59 + COUNT ( + 25 ) * 3
----
6776

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT ALL + 79 * - 62, SUM( DISTINCT 79 ) * - 58 AS col0
----
-4898
-4582

skipif mysql # not compatible
query II rowsort label-4258
SELECT ALL + 79 * - 62, SUM ( DISTINCT 79 ) * - 58 AS col0
----
-4898
-4582

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4259
SELECT ALL 86 DIV - + 20 AS col0, COUNT( * ) DIV + ( + COUNT( * ) ) AS col1
----
-4
1

skipif mysql # not compatible
query II rowsort label-4259
SELECT ALL 86 / - + 20 AS col0, COUNT ( * ) / + ( + COUNT ( * ) ) AS col1
----
-4
1

query II rowsort
SELECT - 56 * - - 49 AS col0, 42 AS col2
----
-2744
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4261
SELECT - + 29 * - - CAST( + 6 AS SIGNED ) / + CASE + + 25 WHEN ( + AVG ( ALL - CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN + MAX( - 73 ) THEN - + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT - + 29 * - - CAST ( + 6 AS INTEGER ) / + CASE + + 25 WHEN ( + AVG ( ALL - CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN + MAX ( - 73 ) THEN - + 37 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + NULLIF ( + MIN( 1 ), - 2 ) * 27
----
27

skipif mysql # not compatible
query I rowsort label-4262
SELECT + NULLIF ( + MIN ( 1 ), - 2 ) * 27
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4263
SELECT + 52 DIV COUNT( * ) + - + 68 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4263
SELECT + 52 / COUNT ( * ) + - + 68 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT CASE + 98 WHEN 28 THEN - 12 * - 37 + + COUNT( * ) + + 94 - + 69 + COUNT( * ) * - + 20 + - - COALESCE ( 58, + - 69 * - 45 * - - COALESCE ( - 91, + 29 * + MIN( DISTINCT + - 14 ) / - 7 ), 4 / + AVG ( 14 ) + COUNT( ALL + 70 + + 41 ) ) WHEN MAX( DISTINCT 16 ) THEN NULL ELSE - 44 END
----
-44

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT CASE + 98 WHEN 28 THEN - 12 * - 37 + + COUNT ( * ) + + 94 - + 69 + COUNT ( * ) * - + 20 + - - COALESCE ( 58, + - 69 * - 45 * - - COALESCE ( - 91, + 29 * + MIN ( DISTINCT + - 14 ) / - 7 ), 4 / + AVG ( 14 ) + COUNT ( ALL + 70 + + 41 ) ) WHEN MAX ( DISTINCT 16 ) THEN NULL ELSE - 44 END
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT + 33 * + - 46 + - 86 DIV + - COALESCE ( 38, 44 + - 78, + 98 - - 83 + 48 ) col1
----
-1516

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT + 33 * + - 46 + - 86 / + - COALESCE ( 38, 44 + - 78, + 98 - - 83 + 48 ) col1
----
-1516

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL SUM( ALL - 29 ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL SUM ( ALL - 29 ) col1
----
-29

query I rowsort
SELECT + 73 + 28
----
101

query II rowsort
SELECT ALL 78 + - + ( 23 ) + 74 * - + 70, - 0 AS col2
----
-5125
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + 42 + + - 72 + + COUNT( * ) + 14
----
-15

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 42 + + - 72 + + COUNT ( * ) + 14
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT 35 + + SUM( - 14 )
----
21

skipif mysql # not compatible
query I rowsort label-4270
SELECT 35 + + SUM ( - 14 )
----
21

query I rowsort
SELECT ALL 24 - 71 * + 31 * 83
----
-182659

query I rowsort
SELECT 44 + + 85 * - - 73
----
6249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT 18 * - - CAST( + 96 AS SIGNED )
----
1728

skipif mysql # not compatible
query I rowsort label-4273
SELECT 18 * - - CAST ( + 96 AS INTEGER )
----
1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4274
SELECT ALL 89 - - SUM( - 8 ) * - ( - 30 ) + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL 89 - - SUM ( - 8 ) * - ( - 30 ) + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 20 * 26 col2
----
-520

onlyif mysql # DIV for integer division: 
query II rowsort label-4276
SELECT 50 DIV + + 98 AS col1, 5 AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-4276
SELECT 50 / + + 98 AS col1, 5 AS col2
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT DISTINCT MAX( - + 6 ) * - 37 AS col1
----
222

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT MAX ( - + 6 ) * - 37 AS col1
----
222

query I rowsort
SELECT - 22 * - 32 + + 86
----
790

query I rowsort
SELECT 14 - - 89 * - ( + ( + 75 ) ) + + 13 AS col2
----
-6648

query I rowsort
SELECT + ( - 1 ) AS col1
----
-1

query I rowsort
SELECT - 33 * + 3 - - + 31 + 10 + 31 * - - 16 * ( + + 55 ) + - 75
----
27147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT + + 50 * + 28 + + + 49 DIV - COUNT( 37 )
----
1351

skipif mysql # not compatible
query I rowsort label-4282
SELECT + + 50 * + 28 + + + 49 / - COUNT ( 37 )
----
1351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT - 28 - + 99 + - - MAX( DISTINCT - 93 ) * CAST( + COUNT( * ) AS SIGNED ) * + NULLIF ( - ( ( + COUNT( - - ( + - 82 ) ) ) ), 32 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4283
SELECT - 28 - + 99 + - - MAX ( DISTINCT - 93 ) * CAST ( + COUNT ( * ) AS INTEGER ) * + NULLIF ( - ( ( + COUNT ( - - ( + - 82 ) ) ) ), 32 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT CASE + + 21 WHEN - 37 THEN 70 ELSE NULL END * MIN( ALL + ( + + 5 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT CASE + + 21 WHEN - 37 THEN 70 ELSE NULL END * MIN ( ALL + ( + + 5 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 99 + + + 6 AS col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4286
SELECT ALL - CAST( + - ( + - 36 ) AS SIGNED ) AS col1, 36 + + - MAX( DISTINCT + + 94 ) - - 27 col1
----
-36
-31

skipif mysql # not compatible
query II rowsort label-4286
SELECT ALL - CAST ( + - ( + - 36 ) AS INTEGER ) AS col1, 36 + + - MAX ( DISTINCT + + 94 ) - - 27 col1
----
-36
-31

query I rowsort
SELECT ALL + 78 + + - 18
----
60

query II rowsort
SELECT ALL 53, 34 AS col2
----
53
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL 19 + + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL 19 + + COUNT ( * ) AS col2
----
20

query I rowsort
SELECT 90 + - - 16
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT 93 DIV - + 54
----
-1

skipif mysql # not compatible
query I rowsort label-4291
SELECT 93 / - + 54
----
-1

query II rowsort
SELECT 39 AS col0, - 35 AS col0
----
39
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT DISTINCT NULLIF ( - 7, + - 47 ) - - - CAST( - 98 AS SIGNED ) + + - 90 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT NULLIF ( - 7, + - 47 ) - - - CAST ( - 98 AS INTEGER ) + + - 90 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4294
SELECT - 17, - 95 * CAST( NULL AS SIGNED ) AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4294
SELECT - 17, - 95 * CAST ( NULL AS INTEGER ) AS col0
----
-17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT COUNT( * ) * + + 64
----
64

skipif mysql # not compatible
query I rowsort label-4295
SELECT COUNT ( * ) * + + 64
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT COALESCE ( - - 97, - 62 + + 1 ) + - - 37 * COUNT( + 47 ) + - 53 - - - CASE - 69 WHEN + 85 THEN - 49 WHEN - CASE - + 62 WHEN - 47 + - + CAST( - 49 AS SIGNED ) THEN - - 69 WHEN 73 + 23 THEN ( 76 ) END THEN + COALESCE ( + 47, - 76, 33, + COALESCE ( + 30, 37 ) - + CASE 90 WHEN CASE ( - 6 ) WHEN 54 - + 46 THEN + 69 WHEN + 27 * + 60 - 66 * ( 14 + - 58 ) THEN NULL ELSE NULL END * + MIN( 40 ) THEN 25 * 70 WHEN COALESCE ( + 81, MAX( DISTINCT 21 ) * NULLIF ( - CAST( NULL AS SIGNED ), 80 * 19 ) + + 50 ) + - 12 THEN NULL WHEN 97 + NULLIF ( + 25, 71 ) THEN - COUNT( * ) END ) * + 75 + 25 END * - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT COALESCE ( - - 97, - 62 + + 1 ) + - - 37 * COUNT ( + 47 ) + - 53 - - - CASE - 69 WHEN + 85 THEN - 49 WHEN - CASE - + 62 WHEN - 47 + - + CAST ( - 49 AS INTEGER ) THEN - - 69 WHEN 73 + 23 THEN ( 76 ) END THEN + COALESCE ( + 47, - 76, 33, + COALESCE ( + 30, 37 ) - + CASE 90 WHEN CASE ( - 6 ) WHEN 54 - + 46 THEN + 69 WHEN + 27 * + 60 - 66 * ( 14 + - 58 ) THEN NULL ELSE NULL END * + MIN ( 40 ) THEN 25 * 70 WHEN COALESCE ( + 81, MAX ( DISTINCT 21 ) * NULLIF ( - CAST ( NULL AS INTEGER ), 80 * 19 ) + + 50 ) + - 12 THEN NULL WHEN 97 + NULLIF ( + 25, 71 ) THEN - COUNT ( * ) END ) * + 75 + 25 END * - 41 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT 34 + + CASE - + 82 WHEN + 59 * + 28 + - CASE + 64 WHEN + COUNT( * ) * + CASE - + ( - 27 ) WHEN - ( 94 ) - SUM( + 82 ) * + + COUNT( * ) + - 83 * + + COUNT( * ) * ( + - MIN( ALL - 3 ) ) THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE + 95 END THEN 44 * - 84 END + + 77 * 24 * 22 - 64 THEN + CAST( NULL AS SIGNED ) + 77 ELSE 18 END AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4297
SELECT 34 + + CASE - + 82 WHEN + 59 * + 28 + - CASE + 64 WHEN + COUNT ( * ) * + CASE - + ( - 27 ) WHEN - ( 94 ) - SUM ( + 82 ) * + + COUNT ( * ) + - 83 * + + COUNT ( * ) * ( + - MIN ( ALL - 3 ) ) THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE + 95 END THEN 44 * - 84 END + + 77 * 24 * 22 - 64 THEN + CAST ( NULL AS INTEGER ) + 77 ELSE 18 END AS col0
----
52

query I rowsort
SELECT ALL ( 72 ) - + 67 AS col2
----
5

query I rowsort
SELECT DISTINCT 83 * + 40
----
3320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4300
SELECT ALL 39 AS col1, 68 + - - 39 * - CAST( NULL AS SIGNED ) * 3
----
39
NULL

skipif mysql # not compatible
query II rowsort label-4300
SELECT ALL 39 AS col1, 68 + - - 39 * - CAST ( NULL AS INTEGER ) * 3
----
39
NULL

query I rowsort
SELECT 24 + - 11
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4302
SELECT MAX( DISTINCT - + 90 ) - + CASE - 24 WHEN + + 75 * - - CAST( NULL AS SIGNED ) THEN - 97 + + 68 WHEN + MAX( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE + 19 END AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-4302
SELECT MAX ( DISTINCT - + 90 ) - + CASE - 24 WHEN + + 75 * - - CAST ( NULL AS INTEGER ) THEN - 97 + + 68 WHEN + MAX ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + 19 END AS col0
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT ( - CAST( + 48 AS SIGNED ) ) + 72 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4303
SELECT ( - CAST ( + 48 AS INTEGER ) ) + 72 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4304
SELECT 68 AS col1, CAST( NULL AS SIGNED ) AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-4304
SELECT 68 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT COUNT( * ) * + + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4305
SELECT COUNT ( * ) * + + 20 AS col2
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4306
SELECT CAST( NULL AS DECIMAL ) * + + 49 + ( + - 74 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT CAST ( NULL AS REAL ) * + + 49 + ( + - 74 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 74 * - NULLIF ( + + 5, 71 + - 97 * 14 )
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL 81 * - + COUNT( * ) * + 53 + - 35 AS col0
----
-4328

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL 81 * - + COUNT ( * ) * + 53 + - 35 AS col0
----
-4328

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4309
SELECT + CASE - + 40 WHEN + 51 THEN NULL WHEN + + NULLIF ( - 80, 48 ) + - 82 + + 12 * - 96 THEN + CAST( - ( + + 12 ) AS DECIMAL ) + + ( + - 80 ) END / + 3 + + AVG ( + 35 ) + + 56 + CAST( NULL AS SIGNED ) + 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT + CASE - + 40 WHEN + 51 THEN NULL WHEN + + NULLIF ( - 80, 48 ) + - 82 + + 12 * - 96 THEN + CAST ( - ( + + 12 ) AS REAL ) + + ( + - 80 ) END / + 3 + + AVG ( + 35 ) + + 56 + CAST ( NULL AS INTEGER ) + 75 col2
----
NULL

query I rowsort
SELECT 29 + - + 36
----
-7

query II rowsort
SELECT ALL + 12 * - - ( + 68 ), + 97 AS col2
----
816
97

query II rowsort
SELECT + 53 AS col1, + 36 AS col0
----
53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT 52 * 22 + + 34 + - COUNT( * ) * + - COALESCE ( + 59, 50 )
----
1237

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT 52 * 22 + + 34 + - COUNT ( * ) * + - COALESCE ( + 59, 50 )
----
1237

query I rowsort
SELECT ALL 89 * - + 93 + - 84
----
-8361

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT 8 * 72 * - 28 * - 93 + 75 + + COUNT( * ) * - 87
----
1499892

skipif mysql # not compatible
query I rowsort label-4315
SELECT 8 * 72 * - 28 * - 93 + 75 + + COUNT ( * ) * - 87
----
1499892

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + MAX( + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4316
SELECT + MAX ( + 47 )
----
47

query I rowsort
SELECT 98 + - - 39
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL - COUNT( DISTINCT + - 29 ) + 62
----
61

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - COUNT ( DISTINCT + - 29 ) + 62
----
61

query II rowsort
SELECT - ( ( - - 63 ) ) AS col2, - 87
----
-63
-87

query I rowsort
SELECT + 25 + + 22
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4321
SELECT CAST( NULL AS DECIMAL ) * - + COUNT( * ) - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT CAST ( NULL AS REAL ) * - + COUNT ( * ) - - 44
----
NULL

query I rowsort
SELECT ALL - 27 + - 90
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT + - 77 AS col0, + 78 * ( + + 56 ) + COALESCE ( - 99, + COUNT( * ) )
----
-77
4269

skipif mysql # not compatible
query II rowsort label-4323
SELECT + - 77 AS col0, + 78 * ( + + 56 ) + COALESCE ( - 99, + COUNT ( * ) )
----
-77
4269

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT DISTINCT + 58 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT + 58 / - 76 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT - 92 DIV 34 DIV + - 19
----
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT - 92 / 34 / + - 19
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT ALL + 36 * CAST( NULL AS SIGNED ) + - 8 * + + COUNT( * ) - + 29 + + - 54 * 1 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + 36 * CAST ( NULL AS INTEGER ) + - 8 * + + COUNT ( * ) - + 29 + + - 54 * 1 col2
----
NULL

query I rowsort
SELECT - 1 * 21 * - 61 * - + 56 AS col0
----
-71736

query I rowsort
SELECT ALL - 66 - + 16 AS col2
----
-82

query I rowsort
SELECT + 14 * + + 73 - - 78
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT - 96 - + ( - 69 ) * COALESCE ( COUNT( * ), - COUNT( * ) * + 25 * + 44 + COUNT( * ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4330
SELECT - 96 - + ( - 69 ) * COALESCE ( COUNT ( * ), - COUNT ( * ) * + 25 * + 44 + COUNT ( * ) ) AS col1
----
-27

query I rowsort
SELECT - 78 * + 4 AS col0
----
-312

onlyif mysql # aggregate syntax: 
query II rowsort label-4332
SELECT ALL + ( - 62 ) * - + 62 * - - 71 AS col1, + COUNT( * )
----
272924
1

skipif mysql # not compatible
query II rowsort label-4332
SELECT ALL + ( - 62 ) * - + 62 * - - 71 AS col1, + COUNT ( * )
----
272924
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - 42 - + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-4333
SELECT - 42 - + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT ALL + COUNT( * ) * 14
----
14

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + COUNT ( * ) * 14
----
14

query I rowsort
SELECT - 60 * - 49 AS col1
----
2940

query I rowsort
SELECT - 24 * + + 54 * + 45 * 32 AS col2
----
-1866240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4337
SELECT + NULLIF ( 19, + 79 ) + ( + 18 ) * 19 * + 14 * + 31 + 57 AS col2, COUNT( + 96 ) DIV COALESCE ( + 93, + 11 + + + 90 * - COUNT( * ), + 79 ) + - - 41 AS col2
----
148504
41

skipif mysql # not compatible
query II rowsort label-4337
SELECT + NULLIF ( 19, + 79 ) + ( + 18 ) * 19 * + 14 * + 31 + 57 AS col2, COUNT ( + 96 ) / COALESCE ( + 93, + 11 + + + 90 * - COUNT ( * ), + 79 ) + - - 41 AS col2
----
148504
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL 70 * + - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 70 * + - COUNT ( * )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4339
SELECT DISTINCT + CAST( NULL AS SIGNED ) / ( - - SUM( 26 ) ), COUNT( * ) * + COUNT( * ) * COUNT( ALL - 3 ) * NULLIF ( - 45, - - 97 ) + + + 3 col2
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-4339
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / ( - - SUM ( 26 ) ), COUNT ( * ) * + COUNT ( * ) * COUNT ( ALL - 3 ) * NULLIF ( - 45, - - 97 ) + + + 3 col2
----
NULL
-42

query I rowsort
SELECT DISTINCT - 74 + - 36
----
-110

query I rowsort
SELECT DISTINCT + - 0 + + 12
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT ALL + CAST( NULL AS SIGNED ) + + + 57 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 57 + - 8
----
NULL

query I rowsort
SELECT ALL + - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT 87 * + COUNT( * ) + 9 + + 50 + ( - + COUNT( * ) ) + + 54 + 31 AS col2
----
230

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT 87 * + COUNT ( * ) + 9 + + 50 + ( - + COUNT ( * ) ) + + 54 + 31 AS col2
----
230

query I rowsort
SELECT + 54 * - 56 * - 97 + - ( + 9 )
----
293319

onlyif mysql # aggregate syntax: 
query II rowsort label-4346
SELECT ALL + + MAX( DISTINCT 60 ), 75 AS col2
----
60
75

skipif mysql # not compatible
query II rowsort label-4346
SELECT ALL + + MAX ( DISTINCT 60 ), 75 AS col2
----
60
75

query I rowsort
SELECT + - 17 * - + ( + 99 ) col2
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT + + ( - + COUNT( * ) ) * 52 + + + 36 + 44 + - 90 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4348
SELECT + + ( - + COUNT ( * ) ) * 52 + + + 36 + 44 + - 90 AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT DISTINCT 8 * 0 + - 50 / + 54 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT 8 * 0 + - 50 / + 54 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL - 99 * - - MAX( ALL - ( ( + 14 ) ) ) * + - 93 + - 67
----
-128965

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - 99 * - - MAX ( ALL - ( ( + 14 ) ) ) * + - 93 + - 67
----
-128965

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT DISTINCT - 28 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - 28 / 63 AS col2
----
0

query I rowsort
SELECT ALL + ( - 15 ) AS col1
----
-15

query II rowsort
SELECT + - 90 + - + 32 AS col2, 0
----
-122
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4354
SELECT + - ( - 77 ) * - ( + 63 ), - ( + CAST( ( + COUNT( * ) ) AS SIGNED ) ) AS col0
----
-4851
-1

skipif mysql # not compatible
query II rowsort label-4354
SELECT + - ( - 77 ) * - ( + 63 ), - ( + CAST ( ( + COUNT ( * ) ) AS INTEGER ) ) AS col0
----
-4851
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT + 86 * + COUNT( * ) + 48 col2
----
134

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 86 * + COUNT ( * ) + 48 col2
----
134

query I rowsort
SELECT - + 10 - + 41 * - 61
----
2491

query I rowsort
SELECT + ( - - 41 ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT COUNT( + + CAST( NULL AS SIGNED ) ) * + - 82 - - + 64
----
64

skipif mysql # not compatible
query I rowsort label-4358
SELECT COUNT ( + + CAST ( NULL AS INTEGER ) ) * + - 82 - - + 64
----
64

query I rowsort
SELECT + 90 * - - 1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT - 96 * COALESCE ( + COUNT( DISTINCT CAST( NULL AS SIGNED ) ), COUNT( * ), - - 92, + 19 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4360
SELECT - 96 * COALESCE ( + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ), COUNT ( * ), - - 92, + 19 ) AS col2
----
0

query I rowsort
SELECT - 42 + 64 + - 38
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT SUM( + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT SUM ( + 21 ) AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT ALL 66 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL 66 / + 95 AS col0
----
0

query I rowsort
SELECT ALL ( 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT - COUNT( * ) * + - 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4365
SELECT - COUNT ( * ) * + - 47 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL SUM( + + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL SUM ( + + 70 ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT ALL - 89 DIV + - 38 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL - 89 / + - 38 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT MAX( - 99 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-4368
SELECT MAX ( - 99 ) col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT - CAST( + + 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-4369
SELECT - CAST ( + + 59 AS INTEGER )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - CASE + 34 WHEN - 18 - + 82 * ( + COUNT( * ) ) THEN + 84 + + + SUM( ALL - + 33 ) WHEN - 87 THEN NULL ELSE NULL END + + 52 + + 37 / - 59 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT - CASE + 34 WHEN - 18 - + 82 * ( + COUNT ( * ) ) THEN + 84 + + + SUM ( ALL - + 33 ) WHEN - 87 THEN NULL ELSE NULL END + + 52 + + 37 / - 59 * 47
----
NULL

query I rowsort
SELECT - 0 * - - 77 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4372
SELECT - ( - CASE + 35 WHEN + 86 THEN NULL WHEN + - 60 THEN + - 14 * + + 89 * + COUNT( * ) + - - CAST( NULL AS SIGNED ) * + 55 END ) * + NULLIF ( 25, - SUM( - ( 89 ) ) / 86 ) + 31 - - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT - ( - CASE + 35 WHEN + 86 THEN NULL WHEN + - 60 THEN + - 14 * + + 89 * + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + 55 END ) * + NULLIF ( 25, - SUM ( - ( 89 ) ) / 86 ) + 31 - - + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT + 98 * - 97 * - - 48 * + COUNT( * )
----
-456288

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT + 98 * - 97 * - - 48 * + COUNT ( * )
----
-456288

query I rowsort
SELECT ALL - 44 + - 89
----
-133

query I rowsort
SELECT - 94 + ( + ( 90 ) )
----
-4

query I rowsort
SELECT DISTINCT COALESCE ( - - 70, + 55 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4377
SELECT ALL + NULLIF ( CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ), - - 51 * - 54 / - 49 ) * + NULLIF ( 50, CAST( NULL AS SIGNED ) * - + 81 ) * + COUNT( DISTINCT + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + NULLIF ( CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ), - - 51 * - 54 / - 49 ) * + NULLIF ( 50, CAST ( NULL AS INTEGER ) * - + 81 ) * + COUNT ( DISTINCT + 4 )
----
NULL

query I rowsort
SELECT DISTINCT + 99 + + + 23
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT - - CAST( - CAST( + 50 AS SIGNED ) AS SIGNED ) + - + 44 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4379
SELECT - - CAST ( - CAST ( + 50 AS INTEGER ) AS INTEGER ) + - + 44 AS col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT - 53 - + - 72 / 46 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT - 53 - + - 72 / 46 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - + 58 AS col0, + 93 * - + 82
----
-58
-7626

query I rowsort
SELECT - 97 + + - 25 AS col1
----
-122

query I rowsort
SELECT + ( + 91 ) + ( + 3 ) AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT ALL - - 35 DIV COALESCE ( + - 79, - 79, + 92 ) DIV - - COALESCE ( + CASE - 19 WHEN - + 91 THEN + 33 DIV + - COUNT( * ) WHEN - 42 THEN NULL END, + - 37 ) + + ( + 44 ) + 87
----
131

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - - 35 / COALESCE ( + - 79, - 79, + 92 ) / - - COALESCE ( + CASE - 19 WHEN - + 91 THEN + 33 / + - COUNT ( * ) WHEN - 42 THEN NULL END, + - 37 ) + + ( + 44 ) + 87
----
131

query I rowsort
SELECT + 80 + 17
----
97

query I rowsort
SELECT - 20 * 87 col0
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT + 18 * - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + 18 * - COUNT ( * ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT + - 9 DIV 62 + 19 + - + 27 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4388
SELECT + - 9 / 62 + 19 + - + 27 AS col0
----
-8

query I rowsort
SELECT - - 80 + 45
----
125

query I rowsort
SELECT ALL + COALESCE ( - 94, - 83 * 90 )
----
-94

query I rowsort
SELECT DISTINCT - + 93 * + CASE + 82 WHEN - + 33 THEN NULL WHEN + 80 * - 74 THEN - - 97 + - + 51 ELSE - + 86 END
----
7998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4392
SELECT ALL COUNT( * ) DIV 46 - + - 97
----
97

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL COUNT ( * ) / 46 - + - 97
----
97

query I rowsort
SELECT + - 30 * + 97
----
-2910

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL + MIN( + 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + MIN ( + 80 ) AS col2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT + ( - + 21 ) DIV + 13
----
-1

skipif mysql # not compatible
query I rowsort label-4395
SELECT + ( - + 21 ) / + 13
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT 38 DIV - 84 * + 19
----
0

skipif mysql # not compatible
query I rowsort label-4396
SELECT 38 / - 84 * + 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT DISTINCT - CASE - COUNT( * ) WHEN + 88 THEN - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + 88 THEN - 45 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT DISTINCT - 80, - 78 + + COUNT( * ) * + ( + ( - + 21 ) ) * - - 75 + + - 35 AS col2
----
-80
-1688

skipif mysql # not compatible
query II rowsort label-4398
SELECT DISTINCT - 80, - 78 + + COUNT ( * ) * + ( + ( - + 21 ) ) * - - 75 + + - 35 AS col2
----
-80
-1688

query II rowsort
SELECT DISTINCT - 57, 39 * - 31 col0
----
-57
-1209

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT DISTINCT 96 * - 37, COUNT( * ) AS col0
----
-3552
1

skipif mysql # not compatible
query II rowsort label-4400
SELECT DISTINCT 96 * - 37, COUNT ( * ) AS col0
----
-3552
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT - 94 * 52 + + CASE COALESCE ( + - 69, 65 * - - 21 ) WHEN + 89 THEN 17 END AS col2, ( - + 5 ) + - 2 * MIN( + - 39 ) AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-4401
SELECT - 94 * 52 + + CASE COALESCE ( + - 69, 65 * - - 21 ) WHEN + 89 THEN 17 END AS col2, ( - + 5 ) + - 2 * MIN ( + - 39 ) AS col1
----
NULL
73

query II rowsort
SELECT DISTINCT - 70 AS col1, + 66 * - 84
----
-70
-5544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT 44 * NULLIF ( 22, 87 ) DIV + - COUNT( * )
----
-968

skipif mysql # not compatible
query I rowsort label-4403
SELECT 44 * NULLIF ( 22, 87 ) / + - COUNT ( * )
----
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - 94 * 92 - - 4 * - COUNT( * ) AS col2
----
-8652

skipif mysql # not compatible
query I rowsort label-4404
SELECT - 94 * 92 - - 4 * - COUNT ( * ) AS col2
----
-8652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT 28 - + 90 + + 27 * + 74 * 67 + + CAST( + 0 AS SIGNED )
----
133804

skipif mysql # not compatible
query I rowsort label-4405
SELECT 28 - + 90 + + 27 * + 74 * 67 + + CAST ( + 0 AS INTEGER )
----
133804

query II rowsort
SELECT - 23 AS col0, 93 + + 34
----
-23
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL 95 * - COUNT( ALL + 72 ) * - + 7 * 69 + 80 col1
----
45965

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL 95 * - COUNT ( ALL + 72 ) * - + 7 * 69 + 80 col1
----
45965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4408
SELECT 34 DIV + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-4408
SELECT 34 / + COUNT ( * ) col1
----
34

query I rowsort
SELECT 69 + - 98 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT + SUM( ALL - 58 ) * - 86 + - 64 + - 58 + + 12 + + 58 * 37 AS col2
----
7024

skipif mysql # not compatible
query I rowsort label-4410
SELECT + SUM ( ALL - 58 ) * - 86 + - 64 + - 58 + + 12 + + 58 * 37 AS col2
----
7024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4411
SELECT ALL 88 + + 49 col2, + 23 - + 86, + CASE CAST( - CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) WHEN - + NULLIF ( + 68, + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + 21 THEN - 35 * + CAST( 16 AS SIGNED ) * - 70 * + 89 * 36 - - 10 END AS col0
----
137
-63
NULL

skipif mysql # not compatible
query III rowsort label-4411
SELECT ALL 88 + + 49 col2, + 23 - + 86, + CASE CAST ( - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) WHEN - + NULLIF ( + 68, + CAST ( NULL AS REAL ) ) THEN NULL WHEN + 21 THEN - 35 * + CAST ( 16 AS INTEGER ) * - 70 * + 89 * 36 - - 10 END AS col0
----
137
-63
NULL

query I rowsort
SELECT ALL 35 col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 56
----
NULL

query II rowsort
SELECT ALL 91, + 18 + + - 58 AS col2
----
91
-40

query I rowsort
SELECT 69 * 70
----
4830

query I rowsort
SELECT ALL 52 + + - 23 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT ALL 11 + - COALESCE ( - - 7, CAST( NULL AS SIGNED ), - MAX( 9 ) ) - ( + + 6 ) * + + MAX( ALL + + 86 ) AS col0
----
-512

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL 11 + - COALESCE ( - - 7, CAST ( NULL AS INTEGER ), - MAX ( 9 ) ) - ( + + 6 ) * + + MAX ( ALL + + 86 ) AS col0
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT DISTINCT + MIN( - 17 ) * - - 45 AS col0
----
-765

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT + MIN ( - 17 ) * - - 45 AS col0
----
-765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4419
SELECT - 37 + + 30 + + 38 + - 31 DIV 32 + COUNT( * ) + 30 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4419
SELECT - 37 + + 30 + + 38 + - 31 / 32 + COUNT ( * ) + 30 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4420
SELECT ALL 99 AS col2, - COUNT( * ) * ( + 58 ) + - + COUNT( + + 66 ) AS col1
----
99
-59

skipif mysql # not compatible
query II rowsort label-4420
SELECT ALL 99 AS col2, - COUNT ( * ) * ( + 58 ) + - + COUNT ( + + 66 ) AS col1
----
99
-59

query II rowsort
SELECT - 11, 99 AS col2
----
-11
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT 58 + + - 17 + - 6 * COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT 58 + + - 17 + - 6 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 70 - - 12
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT - ( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT - ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT - + 50 col2, 99 col0
----
-50
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4426
SELECT ALL + ( + 75 ) * - 88 + - 86, + 34 DIV + COALESCE ( - 91, + + CASE - MAX( - 45 ) WHEN + + CAST( + 36 AS SIGNED ) + - + 55 - - - 12 + + MAX( ALL - 58 ) + - + MIN( ALL - - 64 ) DIV - 20 * + 30 * - + 68 + - - 62 + + 29 * 69 * - 22 THEN 35 + 65 * - COALESCE ( 77 DIV 8, + 72 + 58, ( - COALESCE ( - COUNT( 40 ), + MIN( - 62 ), - COALESCE ( + 41, - CASE - ( + 57 ) WHEN + 29 + 29 * 49 THEN NULL ELSE - 40 + 68 * NULLIF ( - AVG ( ALL - 48 ) * 56, - 99 ) END, 78 ) ) ) - 28 DIV - 8 ) ELSE + 58 END ) AS col1
----
-6686
0

skipif mysql # not compatible
query II rowsort label-4426
SELECT ALL + ( + 75 ) * - 88 + - 86, + 34 / + COALESCE ( - 91, + + CASE - MAX ( - 45 ) WHEN + + CAST ( + 36 AS INTEGER ) + - + 55 - - - 12 + + MAX ( ALL - 58 ) + - + MIN ( ALL - - 64 ) / - 20 * + 30 * - + 68 + - - 62 + + 29 * 69 * - 22 THEN 35 + 65 * - COALESCE ( 77 / 8, + 72 + 58, ( - COALESCE ( - COUNT ( 40 ), + MIN ( - 62 ), - COALESCE ( + 41, - CASE - ( + 57 ) WHEN + 29 + 29 * 49 THEN NULL ELSE - 40 + 68 * NULLIF ( - AVG ( ALL - 48 ) * 56, - 99 ) END, 78 ) ) ) - 28 / - 8 ) ELSE + 58 END ) AS col1
----
-6686
0

query II rowsort
SELECT ALL 73 AS col0, - 62
----
73
-62

query I rowsort
SELECT DISTINCT 96 * - - 63
----
6048

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT ALL 34 AS col0, 49 * - - 71 * + 23 * 19 * + 47 + - ( - + COUNT( + 97 ) )
----
34
71455182

skipif mysql # not compatible
query II rowsort label-4429
SELECT ALL 34 AS col0, 49 * - - 71 * + 23 * 19 * + 47 + - ( - + COUNT ( + 97 ) )
----
34
71455182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4430
SELECT - CAST( NULL AS SIGNED ), + 97 + + COUNT( * ) AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-4430
SELECT - CAST ( NULL AS INTEGER ), + 97 + + COUNT ( * ) AS col0
----
NULL
98

query II rowsort
SELECT ALL 56 AS col2, 9 + - + 7 AS col0
----
56
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4432
SELECT DISTINCT - COALESCE ( 60, - CAST( ( + - 25 ) AS SIGNED ) * ( + 79 ) * + + 47 + + COALESCE ( - 63, 41 ), - + 35 ) DIV CASE COUNT( * ) WHEN + + 60 THEN COUNT( * ) ELSE + + 95 + + + 28 END
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - COALESCE ( 60, - CAST ( ( + - 25 ) AS INTEGER ) * ( + 79 ) * + + 47 + + COALESCE ( - 63, 41 ), - + 35 ) / CASE COUNT ( * ) WHEN + + 60 THEN COUNT ( * ) ELSE + + 95 + + + 28 END
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT - 72 * - + CASE + 65 WHEN - COUNT( * ) * + 35 THEN + - 23 WHEN + - ( + AVG ( ALL - 51 ) ) THEN - COUNT( * ) ELSE 59 END AS col1, MAX( + - 29 ) * - - COUNT( * ) - + 8 + 41
----
4248
4

skipif mysql # not compatible
query II rowsort label-4433
SELECT - 72 * - + CASE + 65 WHEN - COUNT ( * ) * + 35 THEN + - 23 WHEN + - ( + AVG ( ALL - 51 ) ) THEN - COUNT ( * ) ELSE 59 END AS col1, MAX ( + - 29 ) * - - COUNT ( * ) - + 8 + 41
----
4248
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT - 7 / + 98 + - 71 * - 37 + + - 71 * + 31 * MAX( DISTINCT + - CASE + 64 WHEN - 19 + - 96 THEN + + 72 ELSE + 28 * + - 94 END ) * + - CAST( NULL AS SIGNED ) - 40 + - 32 - + - ( 80 ) + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT - 7 / + 98 + - 71 * - 37 + + - 71 * + 31 * MAX ( DISTINCT + - CASE + 64 WHEN - 19 + - 96 THEN + + 72 ELSE + 28 * + - 94 END ) * + - CAST ( NULL AS INTEGER ) - 40 + - 32 - + - ( 80 ) + - 38 AS col1
----
NULL

query I rowsort
SELECT + + 98 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + - MAX( DISTINCT + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4436
SELECT + - MAX ( DISTINCT + 49 ) AS col0
----
-49

query I rowsort
SELECT ALL - + 15 * - 62 * - 67 * + 82
----
-5109420

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT ALL - 2 DIV + - 79 + 30
----
30

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - 2 / + - 79 + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL - ( - COUNT( 84 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL - ( - COUNT ( 84 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT 35 * + CASE - 63 WHEN - 23 / - COUNT( * ) THEN - COALESCE ( - 9, + 55 + - 31, - - COALESCE ( + 13, 9 - 44 * - ( + 98 ) * 52, - 35 * + 31 + - 24 ) ) + - 29 * - 69 + - 68 * - 64 * 41 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT 35 * + CASE - 63 WHEN - 23 / - COUNT ( * ) THEN - COALESCE ( - 9, + 55 + - 31, - - COALESCE ( + 13, 9 - 44 * - ( + 98 ) * 52, - 35 * + 31 + - 24 ) ) + - 29 * - 69 + - 68 * - 64 * 41 * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL + 88 * CASE WHEN ( 68 ) IS NOT NULL THEN NULL ELSE 40 + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + 88 * CASE WHEN ( 68 ) IS NOT NULL THEN NULL ELSE 40 + + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + 66 ) * + - 76
----
5016

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT 47 * + 22 * + 55 AS col1, + COUNT( * )
----
56870
1

skipif mysql # not compatible
query II rowsort label-4443
SELECT 47 * + 22 * + 55 AS col1, + COUNT ( * )
----
56870
1

query II rowsort
SELECT 24 * 17 AS col1, 99 + + 88
----
408
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4445
SELECT - 27 * ( - 96 ) * + COUNT( * ) * - CAST( 49 AS SIGNED ) - - AVG ( DISTINCT - CASE - + 61 WHEN + 42 * 53 - + + 35 * + 20 THEN + 30 WHEN - - 59 THEN NULL ELSE - + 90 * + CAST( NULL AS DECIMAL ) END ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT - 27 * ( - 96 ) * + COUNT ( * ) * - CAST ( 49 AS INTEGER ) - - AVG ( DISTINCT - CASE - + 61 WHEN + 42 * 53 - + + 35 * + 20 THEN + 30 WHEN - - 59 THEN NULL ELSE - + 90 * + CAST ( NULL AS REAL ) END ) + 0
----
NULL

query I rowsort
SELECT DISTINCT 54 + - + 50
----
4

query I rowsort
SELECT 37 + + 11 * 70
----
807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT NULLIF ( + 87, - 18 ) * + CAST( NULL AS SIGNED ) - + 88 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT NULLIF ( + 87, - 18 ) * + CAST ( NULL AS INTEGER ) - + 88 + - 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4449
SELECT ALL 47 + + ( - - COALESCE ( - 50, - - NULLIF ( 49, 89 ) + + - 19, + NULLIF ( - - 87, COUNT( * ) ) * + 62 ) ) AS col1, - 65
----
-3
-65

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL 47 + + ( - - COALESCE ( - 50, - - NULLIF ( 49, 89 ) + + - 19, + NULLIF ( - - 87, COUNT ( * ) ) * + 62 ) ) AS col1, - 65
----
-3
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT CASE NULLIF ( - 57, + 76 * + COUNT( * ) + - - 82 * 50 + + + 69 ) WHEN - 71 THEN - 99 + - + 40 WHEN 13 THEN - MAX( 43 ) * 91 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT CASE NULLIF ( - 57, + 76 * + COUNT ( * ) + - - 82 * 50 + + + 69 ) WHEN - 71 THEN - 99 + - + 40 WHEN 13 THEN - MAX ( 43 ) * 91 ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 65
----
NULL

query II rowsort
SELECT ALL 41 * - 77 AS col2, - 46
----
-3157
-46

query I rowsort
SELECT ALL 53 + - 58 AS col0
----
-5

query I rowsort
SELECT ALL 11 + + 12 + + - 12
----
11

query I rowsort
SELECT DISTINCT 70 * + + 24 col1
----
1680

query I rowsort
SELECT 53 * - + 84
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT COUNT( ALL - 42 ) * - 74 * + 8 col1
----
-592

skipif mysql # not compatible
query I rowsort label-4457
SELECT COUNT ( ALL - 42 ) * - 74 * + 8 col1
----
-592

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT ALL 5 * - 63 DIV 7 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL 5 * - 63 / 7 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT 59 + + - ( - 54 ) + - - COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-4459
SELECT 59 + + - ( - 54 ) + - - COUNT ( * )
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT + 35 DIV - + 51 * 92
----
0

skipif mysql # not compatible
query I rowsort label-4460
SELECT + 35 / - + 51 * 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT COUNT( * ) + + + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4461
SELECT COUNT ( * ) + + + 25 AS col1
----
26

query I rowsort
SELECT + 79 + - CASE + 14 WHEN - - 62 THEN - 22 + - 44 + - 12 WHEN 17 + + + 89 - - 65 - 78 + ( 83 ) - 24 * 70 * + 94 * + 28 THEN NULL ELSE 43 END AS col1
----
36

query I rowsort
SELECT ALL - 93 - - - 39 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL + 24 * - + COUNT( * ) + - 67
----
-91

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + 24 * - + COUNT ( * ) + - 67
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - 2 + 77 - - CASE - 50 WHEN - NULLIF ( - - ( + - 76 ), 82 / NULLIF ( AVG ( 82 ), - + 66 * + ( - + 75 ) + COUNT( * ) * 56 ) ) THEN - COUNT( * ) / - 16 + - + 15 - + - COUNT( * ) + - - 3 * - - 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT - 2 + 77 - - CASE - 50 WHEN - NULLIF ( - - ( + - 76 ), 82 / NULLIF ( AVG ( 82 ), - + 66 * + ( - + 75 ) + COUNT ( * ) * 56 ) ) THEN - COUNT ( * ) / - 16 + - + 15 - + - COUNT ( * ) + - - 3 * - - 80 END
----
NULL

query I rowsort
SELECT DISTINCT 45 col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT DISTINCT 3 - + 79 DIV 36 DIV 31
----
3

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT 3 - + 79 / 36 / 31
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + + 77 + 11 * + MIN( ALL - - 83 )
----
990

skipif mysql # not compatible
query I rowsort label-4468
SELECT + + 77 + 11 * + MIN ( ALL - - 83 )
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4469
SELECT ALL 26 * - COALESCE ( + 16, + CAST( NULL AS SIGNED ), MIN( - 86 ) DIV - - 62 ) * + - SUM( + 40 ) col2
----
16640

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL 26 * - COALESCE ( + 16, + CAST ( NULL AS INTEGER ), MIN ( - 86 ) / - - 62 ) * + - SUM ( + 40 ) col2
----
16640

query I rowsort
SELECT - - 97 + + 74
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT - + NULLIF ( - 21, - + COUNT( * ) * - 1 * - - ( - NULLIF ( + - CASE - 55 WHEN - 75 THEN + - 15 - - + 70 WHEN - 78 + - COUNT( ALL + ( - - 85 ) ) THEN - 52 END, - + ( 95 ) * - 41 * + 71 * 90 ) ) + - 21 + 42 * + 36 * - 62 )
----
21

skipif mysql # not compatible
query I rowsort label-4471
SELECT - + NULLIF ( - 21, - + COUNT ( * ) * - 1 * - - ( - NULLIF ( + - CASE - 55 WHEN - 75 THEN + - 15 - - + 70 WHEN - 78 + - COUNT ( ALL + ( - - 85 ) ) THEN - 52 END, - + ( 95 ) * - 41 * + 71 * 90 ) ) + - 21 + 42 * + 36 * - 62 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT CAST( - - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT CAST ( - - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 73 * + ( + 6 ) * - 44 + + + 48 + - + ( + 44 ) + - + 51 AS col0
----
-19319

query I rowsort
SELECT - 45 + - 84 * - 55 * - 81 AS col1
----
-374265

query I rowsort
SELECT ALL 15 * + 87 AS col2
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT - 17 * + 63 * - 84 * + + 51 + + 80 * - 39 * 36 * + COUNT( * )
----
4475844

skipif mysql # not compatible
query I rowsort label-4476
SELECT - 17 * + 63 * - 84 * + + 51 + + 80 * - 39 * 36 * + COUNT ( * )
----
4475844

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT DISTINCT + COUNT( ( - 88 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + COUNT ( ( - 88 ) )
----
1

query I rowsort
SELECT - 96 * 28 AS col0
----
-2688

query I rowsort
SELECT + 7 * - - 73
----
511

query I rowsort
SELECT NULLIF ( - 1, + 16 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT ( - SUM( + 64 ) ) DIV - 31 + + + 3 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4481
SELECT ( - SUM ( + 64 ) ) / - 31 + + + 3 AS col2
----
5

query I rowsort
SELECT NULLIF ( - 84, + 44 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT - 60 DIV - 10
----
6

skipif mysql # not compatible
query I rowsort label-4483
SELECT - 60 / - 10
----
6

query I rowsort
SELECT - CASE WHEN 97 IS NOT NULL THEN 94 * + + 88 * 58 * - 48 + 98 - 29 WHEN 96 IN ( - - 69 * + 58 * - 8, 34 ) THEN NULL ELSE 46 END + + 64
----
23029243

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL MIN( + 65 ) * + 13 + + 92 * 60 * - + CASE - 38 WHEN + - COALESCE ( - NULLIF ( + COUNT( * ), - 60 ), 38 + 46 + - + CASE 90 WHEN - 43 THEN ( + 71 ) * - 5 END + - 54 / + 86 / 90 + - + 40 * + 21 - + COUNT( * ) + + + 76, 19 ) THEN - 28 * 95 ELSE NULL END / - MAX( 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL MIN ( + 65 ) * + 13 + + 92 * 60 * - + CASE - 38 WHEN + - COALESCE ( - NULLIF ( + COUNT ( * ), - 60 ), 38 + 46 + - + CASE 90 WHEN - 43 THEN ( + 71 ) * - 5 END + - 54 / + 86 / 90 + - + 40 * + 21 - + COUNT ( * ) + + + 76, 19 ) THEN - 28 * 95 ELSE NULL END / - MAX ( 3 )
----
NULL

query I rowsort
SELECT COALESCE ( - 58, - 72 )
----
-58

query I rowsort
SELECT ALL - 93 * + 11 + 59 AS col2
----
-964

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT DISTINCT + 67 DIV - 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT + 67 / - 44 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4489
SELECT ALL 98 * + + COALESCE ( - CAST( NULL AS SIGNED ), + - COUNT( * ) * + 15 DIV - MAX( - 20 ) ) + - + 23 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL 98 * + + COALESCE ( - CAST ( NULL AS INTEGER ), + - COUNT ( * ) * + 15 / - MAX ( - 20 ) ) + - + 23 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT ALL - 77 * - + 4 * 36 + - 96, - 82 - COUNT( * ) AS col1
----
10992
-83

skipif mysql # not compatible
query II rowsort label-4490
SELECT ALL - 77 * - + 4 * 36 + - 96, - 82 - COUNT ( * ) AS col1
----
10992
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT - 6 * 89 DIV 29 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4491
SELECT - 6 * 89 / 29 AS col1
----
-18

query I rowsort
SELECT ALL 29 * + 12 + + - 13 AS col2
----
335

query I rowsort
SELECT DISTINCT + 40 * - 14 AS col2
----
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT ALL - 85 * + - 43 / - CAST( NULL AS SIGNED ) * - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL - 85 * + - 43 / - CAST ( NULL AS INTEGER ) * - 6 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT + CAST( NULL AS SIGNED ) * 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT + CAST ( NULL AS INTEGER ) * 65 AS col2
----
NULL

query I rowsort
SELECT ALL - 64 - 28 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + ( + NULLIF ( - 8, - 14 + - 85 + + - ( 51 ) * + COUNT( * ) / + + 32 ) ) * + 47 * 48
----
-18048

skipif mysql # not compatible
query I rowsort label-4497
SELECT + ( + NULLIF ( - 8, - 14 + - 85 + + - ( 51 ) * + COUNT ( * ) / + + 32 ) ) * + 47 * 48
----
-18048

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT ALL + 64 col2, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-4498
SELECT ALL + 64 col2, COUNT ( * )
----
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT 48 * - 76 + + + COUNT( * ) AS col2
----
-3647

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT 48 * - 76 + + + COUNT ( * ) AS col2
----
-3647

query I rowsort
SELECT DISTINCT + 41 col0
----
41

query I rowsort
SELECT ALL - NULLIF ( - 45, + 11 ) * - + 52 + - + 82 + - 74 * + 30 * - 81 AS col1
----
177398

query I rowsort
SELECT - ( 29 ) AS col0
----
-29

query I rowsort
SELECT - 70 + - 13 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT - + MIN( + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4504
SELECT - + MIN ( + 81 )
----
-81

query I rowsort
SELECT ALL + NULLIF ( + + 94, ( - 52 ) * 55 + - + 27 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT - - ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4506
SELECT - - ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT - - 5 AS col0
----
5

query II rowsort
SELECT ALL 69 AS col1, 90
----
69
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4509
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - CAST ( NULL AS REAL ) + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT ALL COUNT( - 99 ) + - 46 + - - 2, - 6 AS col0
----
-43
-6

skipif mysql # not compatible
query II rowsort label-4510
SELECT ALL COUNT ( - 99 ) + - 46 + - - 2, - 6 AS col0
----
-43
-6

query I rowsort
SELECT + 29 * - 99
----
-2871

query II rowsort
SELECT DISTINCT + 63 + + - 76 + 10 col2, 28
----
-3
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL - MIN( 92 ) / - COALESCE ( - 1, + ( + ( 23 ) ) * 68 + - - 21 / - 77 ) + + + CASE - 92 WHEN + 71 THEN ( + 58 ) / - + COUNT( * ) * 84 + + 11 END + + COUNT( * ) / - - 92 / 82 + - 21 * + 32 * 14 + - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - MIN ( 92 ) / - COALESCE ( - 1, + ( + ( 23 ) ) * 68 + - - 21 / - 77 ) + + + CASE - 92 WHEN + 71 THEN ( + 58 ) / - + COUNT ( * ) * 84 + + 11 END + + COUNT ( * ) / - - 92 / 82 + - 21 * + 32 * 14 + - + 84
----
NULL

query I rowsort
SELECT - 76 * + + 1 * - + 53 * 16 + 55
----
64503

query I rowsort
SELECT - 13 * + 49 AS col1
----
-637

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT ALL + 60 DIV 4 + + 94 * 50
----
4715

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + 60 / 4 + + 94 * 50
----
4715

query I rowsort
SELECT + ( + + 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4518
SELECT DISTINCT + ( + + 86 ) DIV + COUNT( * ) + - 46 * - - 39
----
-1708

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + ( + + 86 ) / + COUNT ( * ) + - 46 * - - 39
----
-1708

query I rowsort
SELECT DISTINCT 94 * - 68
----
-6392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4520
SELECT + 43 DIV + - 68 * SUM( DISTINCT + 37 ) * MIN( + 98 ) + 51 AS col0, 3 - + + 25 * - 44
----
51
1103

skipif mysql # not compatible
query II rowsort label-4520
SELECT + 43 / + - 68 * SUM ( DISTINCT + 37 ) * MIN ( + 98 ) + 51 AS col0, 3 - + + 25 * - 44
----
51
1103

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + 94 + - 86 + - + COALESCE ( - 18, - NULLIF ( - - ( - COUNT( * ) ), ( 75 ) + + 88 ) * - - 67 * + - 43 ) + - - 82 * + NULLIF ( - 49, - ( + - 62 ) ) AS col1
----
-3992

skipif mysql # not compatible
query I rowsort label-4521
SELECT + 94 + - 86 + - + COALESCE ( - 18, - NULLIF ( - - ( - COUNT ( * ) ), ( 75 ) + + 88 ) * - - 67 * + - 43 ) + - - 82 * + NULLIF ( - 49, - ( + - 62 ) ) AS col1
----
-3992

query I rowsort
SELECT ( + + 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4523
SELECT ( + 15 ) AS col1, 67 DIV + - ( - 76 ) - + 42 * ( - - 98 ) * + MIN( + - 43 ) * 99 * NULLIF ( COUNT( * ), - 25 ) AS col1
----
15
17521812

skipif mysql # not compatible
query II rowsort label-4523
SELECT ( + 15 ) AS col1, 67 / + - ( - 76 ) - + 42 * ( - - 98 ) * + MIN ( + - 43 ) * 99 * NULLIF ( COUNT ( * ), - 25 ) AS col1
----
15
17521812

query I rowsort
SELECT ALL + ( + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - ( 99 ) * COUNT( * ) * - 50 AS col2
----
4950

skipif mysql # not compatible
query I rowsort label-4525
SELECT - ( 99 ) * COUNT ( * ) * - 50 AS col2
----
4950

onlyif mysql # aggregate syntax: 
query II rowsort label-4526
SELECT ( - 31 ), + 53 * + 90 * ( MAX( ALL - + 23 ) ) AS col1
----
-31
-109710

skipif mysql # not compatible
query II rowsort label-4526
SELECT ( - 31 ), + 53 * + 90 * ( MAX ( ALL - + 23 ) ) AS col1
----
-31
-109710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT ALL COUNT( * ) * + + COUNT( * ) - 66 DIV 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL COUNT ( * ) * + + COUNT ( * ) - 66 / 42 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT DISTINCT + 9 * + + NULLIF ( 29, 78 * + ( - + COUNT( * ) ) )
----
261

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT + 9 * + + NULLIF ( 29, 78 * + ( - + COUNT ( * ) ) )
----
261

query I rowsort
SELECT DISTINCT + NULLIF ( 15, - 5 * 53 + + 60 + - 79 * - - 19 / - + 88 ) AS col0
----
15

query I rowsort
SELECT - 75 + + 49 + - 57 * - 40 * - 82 + + 52 AS col1
----
-186934

query I rowsort
SELECT ALL + - 76 * - 1 AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT DISTINCT - + 50 * + + COUNT( + ( 96 ) ) AS col0, - 43 AS col0
----
-50
-43

skipif mysql # not compatible
query II rowsort label-4532
SELECT DISTINCT - + 50 * + + COUNT ( + ( 96 ) ) AS col0, - 43 AS col0
----
-50
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT DISTINCT - MAX( DISTINCT 86 ) * 54 + - COUNT( * ) + + 65 + - CAST( + 20 AS SIGNED ) + - MAX( - NULLIF ( + 95, + 38 ) ) * + 65 * + - 20 AS col0
----
-128100

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT - MAX ( DISTINCT 86 ) * 54 + - COUNT ( * ) + + 65 + - CAST ( + 20 AS INTEGER ) + - MAX ( - NULLIF ( + 95, + 38 ) ) * + 65 * + - 20 AS col0
----
-128100

query I rowsort
SELECT - ( 79 ) + - - 74 + + 88 * 86 * - 34
----
-257317

query I rowsort
SELECT ( + 78 ) + 11
----
89

query II rowsort
SELECT + 13 + + 7 AS col2, 71 + - - 32 AS col1
----
20
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL + 34 + + MIN( + 82 ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + 34 + + MIN ( + 82 ) AS col2
----
116

query I rowsort
SELECT DISTINCT + 23 * - ( 99 )
----
-2277

query I rowsort
SELECT ALL - 65 + + 45
----
-20

query I rowsort
SELECT DISTINCT - 6 + + 81 AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4541
SELECT COUNT( * ) DIV - - 64
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT COUNT ( * ) / - - 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4542
SELECT CASE - 58 WHEN 57 THEN NULL ELSE + CASE 42 WHEN + 22 THEN NULL WHEN - 39 * CAST( NULL AS SIGNED ) + CASE + 8 WHEN - CAST( NULL AS SIGNED ) THEN + 69 WHEN - + COUNT( * ) * + 30 + - 15 + - + 29 * - ( + + CASE 81 WHEN + - 33 * - 45 THEN NULL WHEN - SUM( DISTINCT - + 34 ) THEN NULL WHEN CAST( + 59 AS SIGNED ) * - - CASE - 79 WHEN - 26 * 99 / - ( 11 ) THEN NULL WHEN CASE - 88 WHEN - 10 * 70 + - 35 * 95 THEN NULL WHEN - ( - COUNT( * ) ) + + MAX( 21 ) THEN + 15 + COUNT( * ) END + 67 * 72 THEN MAX( DISTINCT 26 ) END + + 26 + - ( + 5 ) THEN 50 ELSE NULL END ) * - 47 THEN 32 * - 64 ELSE NULL END / - 64 THEN - 88 * 73 + - 55 END / - 9 + 30 END + 43 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT CASE - 58 WHEN 57 THEN NULL ELSE + CASE 42 WHEN + 22 THEN NULL WHEN - 39 * CAST ( NULL AS INTEGER ) + CASE + 8 WHEN - CAST ( NULL AS INTEGER ) THEN + 69 WHEN - + COUNT ( * ) * + 30 + - 15 + - + 29 * - ( + + CASE 81 WHEN + - 33 * - 45 THEN NULL WHEN - SUM ( DISTINCT - + 34 ) THEN NULL WHEN CAST ( + 59 AS INTEGER ) * - - CASE - 79 WHEN - 26 * 99 / - ( 11 ) THEN NULL WHEN CASE - 88 WHEN - 10 * 70 + - 35 * 95 THEN NULL WHEN - ( - COUNT ( * ) ) + + MAX ( 21 ) THEN + 15 + COUNT ( * ) END + 67 * 72 THEN MAX ( DISTINCT 26 ) END + + 26 + - ( + 5 ) THEN 50 ELSE NULL END ) * - 47 THEN 32 * - 64 ELSE NULL END / - 64 THEN - 88 * 73 + - 55 END / - 9 + 30 END + 43 * + 56 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT ALL ( 96 ) - - CAST( - 67 AS SIGNED ) col1
----
29

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL ( 96 ) - - CAST ( - 67 AS INTEGER ) col1
----
29

query II rowsort
SELECT ALL - 34, 66 AS col0
----
-34
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4545
SELECT ALL - 94 - - 35 * + + COUNT( * ) DIV 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - 94 - - 35 * + + COUNT ( * ) / 94 AS col2
----
-94

query I rowsort
SELECT DISTINCT 47 - 81
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT 69 DIV + - 26 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4547
SELECT 69 / + - 26 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT 4 * - - MAX( - ( + 89 ) )
----
-356

skipif mysql # not compatible
query I rowsort label-4548
SELECT 4 * - - MAX ( - ( + 89 ) )
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + COUNT( * ) * + + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + COUNT ( * ) * + + 79 AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4550
SELECT ALL - 23, - MIN( - CAST( - + 78 AS SIGNED ) ) AS col2
----
-23
-78

skipif mysql # not compatible
query II rowsort label-4550
SELECT ALL - 23, - MIN ( - CAST ( - + 78 AS INTEGER ) ) AS col2
----
-23
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT COALESCE ( + ( - 52 ), 0 DIV - 87 * - 0 ) * 26 + + + 92 + + 9 AS col1
----
-1251

skipif mysql # not compatible
query I rowsort label-4551
SELECT COALESCE ( + ( - 52 ), 0 / - 87 * - 0 ) * 26 + + + 92 + + 9 AS col1
----
-1251

query I rowsort
SELECT ALL - 62 * - 79 * + - 97 * + 92 AS col1
----
-43709752

query I rowsort
SELECT DISTINCT - - 47
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT ALL MIN( + 52 ) * - - COALESCE ( - CAST( NULL AS SIGNED ), - - CAST( - 84 AS SIGNED ) ) * - - 0
----
0

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL MIN ( + 52 ) * - - COALESCE ( - CAST ( NULL AS INTEGER ), - - CAST ( - 84 AS INTEGER ) ) * - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL - - SUM( + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - - SUM ( + 27 ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT - CAST( NULL AS SIGNED ) * - - 65 + - 56 / - COUNT( DISTINCT - 76 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT - CAST ( NULL AS INTEGER ) * - - 65 + - 56 / - COUNT ( DISTINCT - 76 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT - ( - COUNT( * ) ) + - COALESCE ( + 93, 45 * - 76 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - ( - COUNT ( * ) ) + - COALESCE ( + 93, 45 * - 76 ) AS col2
----
-92

query I rowsort
SELECT DISTINCT - 62 + - - 19
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT - ( NULLIF ( + 31, - CAST( + AVG ( 10 ) AS SIGNED ) ) ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-4559
SELECT - ( NULLIF ( + 31, - CAST ( + AVG ( 10 ) AS INTEGER ) ) ) col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT + - 43 + + 10 * COUNT( * ) + NULLIF ( - + 33, + 94 / + + 72 * 80 + COUNT( * ) - 97 + + + NULLIF ( 45, - - ( - - 87 ) - 67 ) + 27 + + 35 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT + - 43 + + 10 * COUNT ( * ) + NULLIF ( - + 33, + 94 / + + 72 * 80 + COUNT ( * ) - 97 + + + NULLIF ( 45, - - ( - - 87 ) - 67 ) + 27 + + 35 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL - SUM( + + 77 ) + - 5 * + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - SUM ( + + 77 ) + - 5 * + - COUNT ( * )
----
-72

query I rowsort
SELECT - + ( - 66 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4563
SELECT COUNT( * ) AS col2, 59 + + CAST( NULL AS SIGNED ) AS col0, + - 24 * - 5
----
1
NULL
120

skipif mysql # not compatible
query III rowsort label-4563
SELECT COUNT ( * ) AS col2, 59 + + CAST ( NULL AS INTEGER ) AS col0, + - 24 * - 5
----
1
NULL
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT - COUNT( DISTINCT - 18 ) * - + 87 + - 8 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4564
SELECT - COUNT ( DISTINCT - 18 ) * - + 87 + - 8 AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4565
SELECT DISTINCT + 77 * + COUNT( * ) * - CASE + - 17 WHEN - - 50 + - + 2 THEN + 16 + - 69 WHEN - + 18 * + + 75 * - 75 / + 56 - + + 88 THEN NULL WHEN + NULLIF ( + 89, - SUM( ALL 45 ) ) THEN NULL END + - - 46, + COUNT( * ) * + + 22 AS col2
----
NULL
22

skipif mysql # not compatible
query II rowsort label-4565
SELECT DISTINCT + 77 * + COUNT ( * ) * - CASE + - 17 WHEN - - 50 + - + 2 THEN + 16 + - 69 WHEN - + 18 * + + 75 * - 75 / + 56 - + + 88 THEN NULL WHEN + NULLIF ( + 89, - SUM ( ALL 45 ) ) THEN NULL END + - - 46, + COUNT ( * ) * + + 22 AS col2
----
NULL
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT - 47 DIV - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4566
SELECT - 47 / - 63 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT DISTINCT - 16 DIV - + 27 * - ( - 68 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT - 16 / - + 27 * - ( - 68 ) col1
----
0

query I rowsort
SELECT 44 - - - 62
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT ALL AVG ( + NULLIF ( + - CAST( NULL AS SIGNED ), 78 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL AVG ( + NULLIF ( + - CAST ( NULL AS INTEGER ), 78 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 42 * + 91
----
3822

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT DISTINCT COUNT( * ), 95 AS col0
----
1
95

skipif mysql # not compatible
query II rowsort label-4571
SELECT DISTINCT COUNT ( * ), 95 AS col0
----
1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL - 35 * COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - 35 * COUNT ( * ) AS col0
----
-35

query I rowsort
SELECT ALL - 26 * + 66 col2
----
-1716

query I rowsort
SELECT 59 * + 96 * + 62
----
351168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4575
SELECT ALL CASE - COUNT( * ) WHEN - 73 THEN NULL ELSE + 21 END * MIN( ALL - CAST( - ( 37 ) AS SIGNED ) ) * + 17 + + 49 * + + COUNT( * ) + COALESCE ( CAST( 14 AS SIGNED ), + 29 ) * + + 38 - + 54 AS col2
----
13736

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL CASE - COUNT ( * ) WHEN - 73 THEN NULL ELSE + 21 END * MIN ( ALL - CAST ( - ( 37 ) AS INTEGER ) ) * + 17 + + 49 * + + COUNT ( * ) + COALESCE ( CAST ( 14 AS INTEGER ), + 29 ) * + + 38 - + 54 AS col2
----
13736

query I rowsort
SELECT DISTINCT 41 * - 78 * - - 35 AS col0
----
-111930

query I rowsort
SELECT 72 + 79 * + 7 AS col2
----
625

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT DISTINCT - ( + - 58 ) AS col1, + CASE - 20 WHEN - 47 + - 27 THEN ( - 2 ) * - + COUNT( * ) * + ( + 39 ) * - 42 * - 0 - - 53 WHEN 38 THEN NULL WHEN - - ( + 62 ) / 57 - + 96 THEN - 71 * 12 * - AVG ( + 37 ) + - + COALESCE ( ( - - 28 ), 74 ) * - + 43 + + 15 * COUNT( * ) END * - COUNT( * ) / 32
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4578
SELECT DISTINCT - ( + - 58 ) AS col1, + CASE - 20 WHEN - 47 + - 27 THEN ( - 2 ) * - + COUNT ( * ) * + ( + 39 ) * - 42 * - 0 - - 53 WHEN 38 THEN NULL WHEN - - ( + 62 ) / 57 - + 96 THEN - 71 * 12 * - AVG ( + 37 ) + - + COALESCE ( ( - - 28 ), 74 ) * - + 43 + + 15 * COUNT ( * ) END * - COUNT ( * ) / 32
----
58
NULL

query II rowsort
SELECT ALL - 49 AS col0, - 74 AS col2
----
-49
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT + 34 DIV + 87 * 26 col0
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT + 34 / + 87 * 26 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - CASE - - 7 WHEN - 95 THEN + + 45 WHEN CASE + 40 WHEN 32 THEN - + CASE + + 6 WHEN CASE + + 29 WHEN + 8 / 30 THEN - 53 END THEN - ( + COUNT( * ) ) * 63 - - 43 / 74 WHEN - 9 THEN ( + 55 ) END / - + 76 END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT - CASE - - 7 WHEN - 95 THEN + + 45 WHEN CASE + 40 WHEN 32 THEN - + CASE + + 6 WHEN CASE + + 29 WHEN + 8 / 30 THEN - 53 END THEN - ( + COUNT ( * ) ) * 63 - - 43 / 74 WHEN - 9 THEN ( + 55 ) END / - + 76 END THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4582
SELECT + - 19 DIV + ( + + 41 ) * - 30 + COALESCE ( + + 94, + CAST( - NULLIF ( 89, - + 95 ) AS SIGNED ) * + 75 DIV - 31 ) * + ( 67 ) * - 50
----
-314900

skipif mysql # not compatible
query I rowsort label-4582
SELECT + - 19 / + ( + + 41 ) * - 30 + COALESCE ( + + 94, + CAST ( - NULLIF ( 89, - + 95 ) AS INTEGER ) * + 75 / - 31 ) * + ( 67 ) * - 50
----
-314900

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT + + 13 DIV + 13 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4583
SELECT + + 13 / + 13 AS col2
----
1

query I rowsort
SELECT - - 39 * 90 AS col2
----
3510

query I rowsort
SELECT ALL + - 25 * 75 + + 49
----
-1826

query II rowsort
SELECT ALL 99 + + 9 AS col0, 29 AS col1
----
108
29

query I rowsort
SELECT + + ( 65 ) + - 60 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT + 82 * - - COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4588
SELECT + 82 * - - COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT - 58 * 80 + + 20 + 74 + - 6 * 51 + + - 76 + - COUNT( * ) + - 78 AS col1
----
-5007

skipif mysql # not compatible
query I rowsort label-4589
SELECT - 58 * 80 + + 20 + 74 + - 6 * 51 + + - 76 + - COUNT ( * ) + - 78 AS col1
----
-5007

query I rowsort
SELECT DISTINCT + ( 22 ) * + 19 col0
----
418

query I rowsort
SELECT - - 25 * - 65 + + - 30
----
-1655

onlyif mysql # aggregate syntax: 
query II rowsort label-4592
SELECT COUNT( * ), + 44 AS col0
----
1
44

skipif mysql # not compatible
query II rowsort label-4592
SELECT COUNT ( * ), + 44 AS col0
----
1
44

query I rowsort
SELECT + + 17 + - - 80 AS col1
----
97

query I rowsort
SELECT - + 12 - + - ( 0 ) + + 59
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 41 * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 41 * 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL - COALESCE ( - 51, - 22, + + COUNT( * ), + + 15 + 97 )
----
51

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - COALESCE ( - 51, - 22, + + COUNT ( * ), + + 15 + 97 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4597
SELECT + - COUNT( * ) + - - CAST( + 82 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-4597
SELECT + - COUNT ( * ) + - - CAST ( + 82 AS INTEGER )
----
81

query I rowsort
SELECT - 36 + - 37 * 63 * - + 67 * - + 93 + - ( - 31 )
----
-14524466

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT - - SUM( DISTINCT + 26 ), - 67 * ( + 84 ) + - + 34 * + 47 AS col2
----
26
-7226

skipif mysql # not compatible
query II rowsort label-4599
SELECT - - SUM ( DISTINCT + 26 ), - 67 * ( + 84 ) + - + 34 * + 47 AS col2
----
26
-7226

query I rowsort
SELECT + CASE 62 WHEN - 30 * + + 48 / 77 * - 19 THEN + 84 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT ALL - + 36 DIV + + SUM( DISTINCT + 82 ) DIV - COUNT( * ) + + 0
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - + 36 / + + SUM ( DISTINCT + 82 ) / - COUNT ( * ) + + 0
----
0

query I rowsort
SELECT + 84 + 80
----
164

query II rowsort
SELECT DISTINCT + 67 AS col2, 74 AS col0
----
67
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4604
SELECT ALL CASE - 77 WHEN - 49 THEN + CAST( NULL AS SIGNED ) WHEN + NULLIF ( 73, 0 * - + 83 ) THEN - COUNT( * ) WHEN ( CASE + ( 69 ) WHEN + - COUNT( * ) * 93 * - 97 * - 10 / + CAST( + - 69 AS SIGNED ) THEN + + 48 * - + ( + 92 ) WHEN - 12 * - - 24 * 27 * - + NULLIF ( - 59, + + MAX( - ( + + 74 ) ) ) * 92 - 30 THEN - 61 * + AVG ( DISTINCT 59 ) END ) * - 59 THEN 96 + + 98 ELSE 28 END
----
28

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL CASE - 77 WHEN - 49 THEN + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( 73, 0 * - + 83 ) THEN - COUNT ( * ) WHEN ( CASE + ( 69 ) WHEN + - COUNT ( * ) * 93 * - 97 * - 10 / + CAST ( + - 69 AS INTEGER ) THEN + + 48 * - + ( + 92 ) WHEN - 12 * - - 24 * 27 * - + NULLIF ( - 59, + + MAX ( - ( + + 74 ) ) ) * 92 - 30 THEN - 61 * + AVG ( DISTINCT 59 ) END ) * - 59 THEN 96 + + 98 ELSE 28 END
----
28

query I rowsort
SELECT - 13 * + + 75 AS col0
----
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT ALL NULLIF ( - 83, + 51 ) DIV + 3 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL NULLIF ( - 83, + 51 ) / + 3 AS col1
----
-27

query I rowsort
SELECT ALL NULLIF ( - 51, 28 - ( - 48 ) )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4608
SELECT - ( - 24 ) AS col2, - 81 * + 64 + - 37 + - - COUNT( * ) + - - 22 AS col2
----
24
-5198

skipif mysql # not compatible
query II rowsort label-4608
SELECT - ( - 24 ) AS col2, - 81 * + 64 + - 37 + - - COUNT ( * ) + - - 22 AS col2
----
24
-5198

query I rowsort
SELECT DISTINCT - 49 * 11 AS col1
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL CASE + 16 WHEN - 7 THEN NULL WHEN + + COUNT( * ) THEN + - COUNT( * ) ELSE - 42 END AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL CASE + 16 WHEN - 7 THEN NULL WHEN + + COUNT ( * ) THEN + - COUNT ( * ) ELSE - 42 END AS col1
----
-42

query I rowsort
SELECT ALL - 40 * + 46 * COALESCE ( - 27, + 44, + 63, - 74 * + 43 ) AS col2
----
49680

onlyif mysql # aggregate syntax: 
query II rowsort label-4612
SELECT - 77 + + 69 * + - 44 AS col1, + 95 * COUNT( * )
----
-3113
95

skipif mysql # not compatible
query II rowsort label-4612
SELECT - 77 + + 69 * + - 44 AS col1, + 95 * COUNT ( * )
----
-3113
95

query I rowsort
SELECT - 89 * - 83 AS col0
----
7387

query I rowsort
SELECT - NULLIF ( + - 98, 44 ) * + 19
----
1862

query II rowsort
SELECT - 53 + 97 AS col1, 45 AS col1
----
44
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT DISTINCT + CAST( - ( + + 60 ) AS SIGNED ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT + CAST ( - ( + + 60 ) AS INTEGER ) AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4617
SELECT DISTINCT 62 DIV + COUNT( * ) + - + 68
----
-6

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT 62 / + COUNT ( * ) + - + 68
----
-6

query I rowsort
SELECT DISTINCT 68 / + + CASE 80 WHEN + ( + 46 ) * + - 94 THEN 6 * - 34 * + - 46 ELSE NULL END + + 56
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT DISTINCT - 3 / - CAST( NULL AS SIGNED ) + + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - 3 / - CAST ( NULL AS INTEGER ) + + - 97 AS col2
----
NULL

query I rowsort
SELECT ( + - 94 ) AS col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4621
SELECT ALL + CAST( - 22 AS SIGNED ) AS col0, CAST( + 7 AS SIGNED ) * - + 70 - 37 + + 70 AS col0
----
-22
-457

skipif mysql # not compatible
query II rowsort label-4621
SELECT ALL + CAST ( - 22 AS INTEGER ) AS col0, CAST ( + 7 AS INTEGER ) * - + 70 - 37 + + 70 AS col0
----
-22
-457

query I rowsort
SELECT - - 90 * 48 AS col2
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT DISTINCT + + COUNT( * ) * + 34 + ( + 33 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT + + COUNT ( * ) * + 34 + ( + 33 ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4624
SELECT + MAX( - - 8 ) * + MIN( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT + MAX ( - - 8 ) * + MIN ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT - + 93 * 16 + 37 - + - ( - 23 ) + 47 + 14 * 3 * + 27 AS col2
----
-293

onlyif mysql # aggregate syntax: 
query II rowsort label-4626
SELECT DISTINCT + 36 * 97 + + - 98, - COUNT( * ) + + 88 col2
----
3394
87

skipif mysql # not compatible
query II rowsort label-4626
SELECT DISTINCT + 36 * 97 + + - 98, - COUNT ( * ) + + 88 col2
----
3394
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT DISTINCT 15 DIV - 37 * + + 14
----
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT 15 / - 37 * + + 14
----
0

query I rowsort
SELECT ALL + + 63 * - 73 + 37 + - COALESCE ( - 32, - 2 )
----
-4530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4629
SELECT + + CAST( - + 98 AS SIGNED ) * + + 60 AS col2, CASE + - COALESCE ( - 40, - + 91 ) WHEN - 34 * 0 * - + 72 THEN NULL WHEN - 43 / - - COUNT( * ) + - - COUNT( * ) THEN - + COUNT( * ) / 55 * + - AVG ( DISTINCT - - NULLIF ( ( - ( - 39 ) ), + + 96 ) ) - + 61 WHEN + + COUNT( * ) THEN + 41 END + 37 + + + COUNT( * ) AS col2
----
-5880
NULL

skipif mysql # not compatible
query II rowsort label-4629
SELECT + + CAST ( - + 98 AS INTEGER ) * + + 60 AS col2, CASE + - COALESCE ( - 40, - + 91 ) WHEN - 34 * 0 * - + 72 THEN NULL WHEN - 43 / - - COUNT ( * ) + - - COUNT ( * ) THEN - + COUNT ( * ) / 55 * + - AVG ( DISTINCT - - NULLIF ( ( - ( - 39 ) ), + + 96 ) ) - + 61 WHEN + + COUNT ( * ) THEN + 41 END + 37 + + + COUNT ( * ) AS col2
----
-5880
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4630
SELECT ALL + + SUM( + + 98 ) AS col0, - 99 + - COUNT( * )
----
98
-100

skipif mysql # not compatible
query II rowsort label-4630
SELECT ALL + + SUM ( + + 98 ) AS col0, - 99 + - COUNT ( * )
----
98
-100

query I rowsort
SELECT + - NULLIF ( 93, + 0 ) AS col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT + COALESCE ( 71, - CAST( NULL AS SIGNED ) ) + 32
----
103

skipif mysql # not compatible
query I rowsort label-4632
SELECT + COALESCE ( 71, - CAST ( NULL AS INTEGER ) ) + 32
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT + + 8 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT + + 8 / + 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + + 35 * 78 - - SUM( + 4 ) AS col2
----
2734

skipif mysql # not compatible
query I rowsort label-4634
SELECT + + 35 * 78 - - SUM ( + 4 ) AS col2
----
2734

query II rowsort
SELECT DISTINCT - 84 * - ( - - 22 ) + 34 + - 31 AS col1, 33 AS col2
----
1851
33

query I rowsort
SELECT ALL NULLIF ( 39, 11 + - ( - 48 ) )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4637
SELECT DISTINCT CASE 96 WHEN COUNT( * ) THEN - - CASE - + 67 WHEN - 80 THEN - 65 / - CAST( + 90 AS SIGNED ) + + 24 + + COUNT( * ) * 61 + + 80 - - 0 + CAST( NULL AS SIGNED ) * 1 / + 7 END WHEN 61 + - 58 THEN - 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT CASE 96 WHEN COUNT ( * ) THEN - - CASE - + 67 WHEN - 80 THEN - 65 / - CAST ( + 90 AS INTEGER ) + + 24 + + COUNT ( * ) * 61 + + 80 - - 0 + CAST ( NULL AS INTEGER ) * 1 / + 7 END WHEN 61 + - 58 THEN - 85 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT + 19 - - 82 DIV 59 * + + COUNT( - + 28 ) + - - 99 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-4638
SELECT + 19 - - 82 / 59 * + + COUNT ( - + 28 ) + - - 99 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + COUNT( * ) * + NULLIF ( + + 78, + NULLIF ( + - 79, + - ( - 56 ) ) + 7 * + - 34 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4639
SELECT + COUNT ( * ) * + NULLIF ( + + 78, + NULLIF ( + - 79, + - ( - 56 ) ) + 7 * + - 34 ) AS col1
----
78

query I rowsort
SELECT DISTINCT 31 * 49 AS col1
----
1519

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL MAX( ALL 74 )
----
74

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL MAX ( ALL 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT + SUM( ALL + - 56 ) * + 92 AS col1
----
-5152

skipif mysql # not compatible
query I rowsort label-4642
SELECT + SUM ( ALL + - 56 ) * + 92 AS col1
----
-5152

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT 83, + COALESCE ( - 9, + COUNT( * ) ) + 25 AS col0
----
83
16

skipif mysql # not compatible
query II rowsort label-4643
SELECT 83, + COALESCE ( - 9, + COUNT ( * ) ) + 25 AS col0
----
83
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL NULLIF ( - ( + 37 ), + 62 + - COUNT( * ) + + - 26 * - + 41 )
----
-37

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL NULLIF ( - ( + 37 ), + 62 + - COUNT ( * ) + + - 26 * - + 41 )
----
-37

query I rowsort
SELECT + 65 - - 35 - - 13 + + - 35 + + 36 AS col2
----
114

query II rowsort
SELECT ALL 18, - 87 AS col0
----
18
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL + SUM( ALL 33 ) * - 6
----
-198

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + SUM ( ALL 33 ) * - 6
----
-198

query I rowsort
SELECT ALL 23 + - 92
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT 7 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT 7 / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL COUNT( * ) + 96 + - 45 * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL COUNT ( * ) + 96 + - 45 * COUNT ( * )
----
52

query I rowsort
SELECT ALL + 64 * 47
----
3008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT CAST( - 79 AS SIGNED ) * 55 - 71 + - ( + - 9 )
----
-4407

skipif mysql # not compatible
query I rowsort label-4652
SELECT CAST ( - 79 AS INTEGER ) * 55 - 71 + - ( + - 9 )
----
-4407

query I rowsort
SELECT 23 - - 79 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT COUNT( * ) * + 64 * + + COUNT( * ) * 79 * 22 AS col2
----
111232

skipif mysql # not compatible
query I rowsort label-4654
SELECT COUNT ( * ) * + 64 * + + COUNT ( * ) * 79 * 22 AS col2
----
111232

query I rowsort
SELECT NULLIF ( + + 52, + - ( - 94 ) ) col0
----
52

query II rowsort
SELECT DISTINCT + 91 + + - 17 + 6 - + + 86 AS col2, - 70
----
-6
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL - 33 + - 9 * COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL - 33 + - 9 * COUNT ( * )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT DISTINCT + + CASE + 8 WHEN - 58 * 86 - - + 36 / MAX( - 75 ) / - + 34 THEN + - 84 + COUNT( - 0 ) * + 77 * 18 END / + 56 + - NULLIF ( COALESCE ( + 98, + 61 ), - 6 + - CASE - + 95 WHEN + 23 THEN - + 51 * 37 * + 72 - + + 36 - - 41 * - 6 WHEN - 36 THEN + NULLIF ( + 36, - CAST( - ( + CASE + ( 57 ) WHEN 65 * + 71 + 6 THEN NULL WHEN + 77 * 96 THEN AVG ( DISTINCT 0 ) * 47 ELSE + COUNT( 59 ) * COUNT( * ) + 84 END ) AS SIGNED ) ) ELSE NULL END ) * + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT + + CASE + 8 WHEN - 58 * 86 - - + 36 / MAX ( - 75 ) / - + 34 THEN + - 84 + COUNT ( - 0 ) * + 77 * 18 END / + 56 + - NULLIF ( COALESCE ( + 98, + 61 ), - 6 + - CASE - + 95 WHEN + 23 THEN - + 51 * 37 * + 72 - + + 36 - - 41 * - 6 WHEN - 36 THEN + NULLIF ( + 36, - CAST ( - ( + CASE + ( 57 ) WHEN 65 * + 71 + 6 THEN NULL WHEN + 77 * 96 THEN AVG ( DISTINCT 0 ) * 47 ELSE + COUNT ( 59 ) * COUNT ( * ) + 84 END ) AS INTEGER ) ) ELSE NULL END ) * + 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT 53 * - - COUNT( * ) * - CASE - 69 WHEN - 50 * - + 79 + - 29 THEN COALESCE ( + + 65, - 75 ) END + 42 + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT 53 * - - COUNT ( * ) * - CASE - 69 WHEN - 50 * - + 79 + - 29 THEN COALESCE ( + + 65, - 75 ) END + 42 + - 82 AS col2
----
NULL

query II rowsort
SELECT ALL - 15 AS col2, + 29 AS col1
----
-15
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT MIN( DISTINCT + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4661
SELECT MIN ( DISTINCT + 40 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT DISTINCT - - 33 + + 61 + - 56 + + 69 DIV 12 * - 14 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - - 33 + + 61 + - 56 + + 69 / 12 * - 14 AS col2
----
-32

query I rowsort
SELECT ALL + - 70 + 46 + + 33 + + 50 * + 43
----
2159

query I rowsort
SELECT ( + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ( + - 95 ) * + COUNT( * ) - - 33
----
-62

skipif mysql # not compatible
query I rowsort label-4665
SELECT ( + - 95 ) * + COUNT ( * ) - - 33
----
-62

query I rowsort
SELECT ALL + 6 * + 66 AS col0
----
396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT DISTINCT + CASE ( CAST( NULL AS SIGNED ) ) WHEN + 68 THEN + 85 END * - + CAST( NULL AS SIGNED ) * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT + CASE ( CAST ( NULL AS INTEGER ) ) WHEN + 68 THEN + 85 END * - + CAST ( NULL AS INTEGER ) * - 77
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4668
SELECT ALL - - 83, 63 DIV - 75 AS col0
----
83
0

skipif mysql # not compatible
query II rowsort label-4668
SELECT ALL - - 83, 63 / - 75 AS col0
----
83
0

query I rowsort
SELECT ALL 88 - - 85 * - ( + 25 ) AS col0
----
-2037

query I rowsort
SELECT ALL + 46 * - - 15
----
690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT 22 + 81 + - - COUNT( + CAST( + 48 AS SIGNED ) ) - 26 - 61 * - - 85
----
-5107

skipif mysql # not compatible
query I rowsort label-4671
SELECT 22 + 81 + - - COUNT ( + CAST ( + 48 AS INTEGER ) ) - 26 - 61 * - - 85
----
-5107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL - NULLIF ( + CAST( 54 AS SIGNED ), 59 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - NULLIF ( + CAST ( 54 AS INTEGER ), 59 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT ALL - + 50 AS col0, - MIN( 48 )
----
-50
-48

skipif mysql # not compatible
query II rowsort label-4673
SELECT ALL - + 50 AS col0, - MIN ( 48 )
----
-50
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT ALL 66 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL 66 / - 70
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT 62 + - 35 + - 17 + - - AVG ( DISTINCT 30 ) + + + 5 + - 60 - + 3 * + CAST( NULL AS SIGNED ) * - 85 + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT 62 + - 35 + - 17 + - - AVG ( DISTINCT 30 ) + + + 5 + - 60 - + 3 * + CAST ( NULL AS INTEGER ) * - 85 + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4676
SELECT ALL 83 DIV - + NULLIF ( + 55, - 57 * - + COUNT( * ) + - 17 * - + COALESCE ( + 82, + - 20, - 40 - - 93 + - - 26 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL 83 / - + NULLIF ( + 55, - 57 * - + COUNT ( * ) + - 17 * - + COALESCE ( + 82, + - 20, - 40 - - 93 + - - 26 ) ) AS col1
----
-1

query I rowsort
SELECT ALL 60 + + 88
----
148

query I rowsort
SELECT DISTINCT + 22 + 91
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT ALL COALESCE ( + 22, 62 DIV 71 + + + 30 + 44 DIV 15 ) + + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL COALESCE ( + 22, 62 / 71 + + + 30 + 44 / 15 ) + + COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL 24 + + 37 + - MIN( DISTINCT + + 84 ) + + + COUNT( * ) + - - 54 * - ( - 27 ) * - 21 * - 0
----
-22

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL 24 + + 37 + - MIN ( DISTINCT + + 84 ) + + + COUNT ( * ) + - - 54 * - ( - 27 ) * - 21 * - 0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT 7 + - + 73 DIV - ( 90 ) * 48
----
7

skipif mysql # not compatible
query I rowsort label-4681
SELECT 7 + - + 73 / - ( 90 ) * 48
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT COUNT( ALL - + COALESCE ( + 75, - 31, + COALESCE ( - + 69, + - 38 ) + - CASE + 18 WHEN - 10 THEN + - 4 * - - 12 END + - - COALESCE ( 30, 21 / + 85 + - + 60 ) ) ) + - - 10 * 10 * 94 AS col1
----
9401

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT COUNT ( ALL - + COALESCE ( + 75, - 31, + COALESCE ( - + 69, + - 38 ) + - CASE + 18 WHEN - 10 THEN + - 4 * - - 12 END + - - COALESCE ( 30, 21 / + 85 + - + 60 ) ) ) + - - 10 * 10 * 94 AS col1
----
9401

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT ALL SUM( DISTINCT - 29 ) + - 22
----
-51

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL SUM ( DISTINCT - 29 ) + - 22
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT CAST( NULL AS SIGNED ) + - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT CAST ( NULL AS INTEGER ) + - + 6
----
NULL

query I rowsort
SELECT ALL ( 83 ) + + 97
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT ALL + 46 DIV - + 73 + - + 43 - 16
----
-59

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + 46 / - + 73 + - + 43 - 16
----
-59

query I rowsort
SELECT ALL - ( - 72 ) * 92 + 23 * - + 71 * - + 6 + - ( - 98 )
----
16520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4688
SELECT - COUNT( * ) * - + CASE - 38 WHEN - CAST( NULL AS SIGNED ) + + + COUNT( * ) THEN - CAST( - 18 AS DECIMAL ) * + COALESCE ( 92, 92 ) + + 83 + + 77 WHEN - 55 / + 88 + - - ( - + 56 ) * + 75 / 95 THEN NULL END - + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT - COUNT ( * ) * - + CASE - 38 WHEN - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) THEN - CAST ( - 18 AS REAL ) * + COALESCE ( 92, 92 ) + + 83 + + 77 WHEN - 55 / + 88 + - - ( - + 56 ) * + 75 / 95 THEN NULL END - + 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT - + 27 DIV + 3 - NULLIF ( + 33, 64 DIV 67 + - - 16 * + 44 * + 99 - + COUNT( * ) + 59 ) - + 70 * - 42 * - 9
----
-26502

skipif mysql # not compatible
query I rowsort label-4689
SELECT - + 27 / + 3 - NULLIF ( + 33, 64 / 67 + - - 16 * + 44 * + 99 - + COUNT ( * ) + 59 ) - + 70 * - 42 * - 9
----
-26502

onlyif mysql # DIV for integer division: 
query I rowsort label-4690
SELECT 65 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT 65 / - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - COUNT( * ) * 86 * 76 AS col1
----
-6536

skipif mysql # not compatible
query I rowsort label-4691
SELECT - COUNT ( * ) * 86 * 76 AS col1
----
-6536

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT ALL + MIN( DISTINCT 6 ) - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + MIN ( DISTINCT 6 ) - COUNT ( * )
----
5

query I rowsort
SELECT ALL - - 72 col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT NULLIF ( - + 35, + + 36 ) / - COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT NULLIF ( - + 35, + + 36 ) / - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4695
SELECT ALL - - NULLIF ( COUNT( * ), 60 ) DIV + 67 col2, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-4695
SELECT ALL - - NULLIF ( COUNT ( * ), 60 ) / + 67 col2, COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT DISTINCT - - 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - COUNT( ALL + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - COUNT ( ALL + 17 )
----
-1

query I rowsort
SELECT + ( + - 1 ) * + + 45 - + ( + 59 ) + NULLIF ( - 43, 87 ) - 8 AS col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT - - MIN( ( - 75 ) ) * - 69 * 68 + + - 12
----
351888

skipif mysql # not compatible
query I rowsort label-4699
SELECT - - MIN ( ( - 75 ) ) * - 69 * 68 + + - 12
----
351888

query II rowsort
SELECT 14 * - 9, - 7 AS col2
----
-126
-7

query II rowsort
SELECT - 31 * + 72, 52 * - - 57 * 54 AS col1
----
-2232
160056

query I rowsort
SELECT DISTINCT + 90 + + 29 col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL - 36 + 67 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - 36 + 67 * + COUNT ( * )
----
31

query I rowsort
SELECT ALL - 8 + + - 24 * + + 62 * - + 4 col0
----
5944

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4705
SELECT ALL + 36 + COUNT( * ) + COALESCE ( - - AVG ( + + 12 ), 61 ) - + 41 - COUNT( * ) / 61 / - ( + 82 ) / - 33 / + CASE - + 20 WHEN 97 THEN NULL WHEN - + 9 * - AVG ( + 10 ) + + + 33 + 2 THEN - + SUM( DISTINCT 69 ) * 69 * COUNT( * ) * + 73 * + 68 WHEN + CAST( - 41 AS DECIMAL ) + - - 84 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + 36 + COUNT ( * ) + COALESCE ( - - AVG ( + + 12 ), 61 ) - + 41 - COUNT ( * ) / 61 / - ( + 82 ) / - 33 / + CASE - + 20 WHEN 97 THEN NULL WHEN - + 9 * - AVG ( + 10 ) + + + 33 + 2 THEN - + SUM ( DISTINCT 69 ) * 69 * COUNT ( * ) * + 73 * + 68 WHEN + CAST ( - 41 AS REAL ) + - - 84 THEN NULL END
----
NULL

query I rowsort
SELECT - 18 * 89
----
-1602

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL 30 + CASE 55 WHEN - + COUNT( * ) THEN - 3 WHEN + + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 30 + CASE 55 WHEN - + COUNT ( * ) THEN - 3 WHEN + + 36 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT - COALESCE ( - ( - MIN( DISTINCT ( + + 50 ) ) ), - + 24 ) - - + 37
----
-13

skipif mysql # not compatible
query I rowsort label-4708
SELECT - COALESCE ( - ( - MIN ( DISTINCT ( + + 50 ) ) ), - + 24 ) - - + 37
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL COALESCE ( + - 40, - COUNT( ALL - ( - 37 ) ) * - 85 + + + 37 + + - 48 + + + CAST( + 32 AS SIGNED ) - 42 + - 52 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL COALESCE ( + - 40, - COUNT ( ALL - ( - 37 ) ) * - 85 + + + 37 + + - 48 + + + CAST ( + 32 AS INTEGER ) - 42 + - 52 ) AS col2
----
-40

query I rowsort
SELECT + 88 * + - 59
----
-5192

query I rowsort
SELECT DISTINCT 11 + - 6 AS col0
----
5

query I rowsort
SELECT DISTINCT 29 * 83
----
2407

query I rowsort
SELECT + 52 - + - 78 * 76 * - + 12 col0
----
-71084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4714
SELECT ALL CAST( NULL AS SIGNED ) * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL CAST ( NULL AS INTEGER ) * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + 28 - SUM( DISTINCT - 90 )
----
118

skipif mysql # not compatible
query I rowsort label-4715
SELECT + 28 - SUM ( DISTINCT - 90 )
----
118

query I rowsort
SELECT ALL + 74 - 63
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4717
SELECT - CASE - 0 WHEN 55 + + 86 THEN - 60 * + CAST( NULL AS SIGNED ) + + COUNT( * ) / 77 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT - CASE - 0 WHEN 55 + + 86 THEN - 60 * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) / 77 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT DISTINCT 17 AS col1, + COUNT( DISTINCT - + 44 ) AS col0
----
17
1

skipif mysql # not compatible
query II rowsort label-4718
SELECT DISTINCT 17 AS col1, + COUNT ( DISTINCT - + 44 ) AS col0
----
17
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4719
SELECT - + 66 DIV MIN( ( 13 ) ) + + 87 * + - 24 AS col2
----
-2093

skipif mysql # not compatible
query I rowsort label-4719
SELECT - + 66 / MIN ( ( 13 ) ) + + 87 * + - 24 AS col2
----
-2093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT + 60 - - 56 DIV + COUNT( * ) + + 54 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-4720
SELECT + 60 - - 56 / + COUNT ( * ) + + 54 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT + 3 + - - CASE - COUNT( * ) WHEN 7 * 82 THEN NULL ELSE + - NULLIF ( + 5, 36 * 49 + - 44 ) END
----
-2

skipif mysql # not compatible
query I rowsort label-4721
SELECT + 3 + - - CASE - COUNT ( * ) WHEN 7 * 82 THEN NULL ELSE + - NULLIF ( + 5, 36 * 49 + - 44 ) END
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + - SUM( ALL - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-4722
SELECT + - SUM ( ALL - 23 )
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-4723
SELECT ALL + NULLIF ( 51, - 36 ) AS col0, 16 DIV + + 81
----
51
0

skipif mysql # not compatible
query II rowsort label-4723
SELECT ALL + NULLIF ( 51, - 36 ) AS col0, 16 / + + 81
----
51
0

query I rowsort
SELECT + + 84 * + 51 * + + 31 + 61 * 57 AS col0
----
136281

query I rowsort
SELECT + - 10 + - - 46
----
36

query I rowsort
SELECT ALL + 40 * + 90 AS col2
----
3600

query I rowsort
SELECT + 19 * + - 34 + - COALESCE ( + 95, - 7 ) col1
----
-741

query I rowsort
SELECT + 49 * 47
----
2303

query II rowsort
SELECT ALL + 93 AS col1, 84 * - 77
----
93
-6468

query I rowsort
SELECT + - 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT + COUNT( * ) * + 83
----
83

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT + COUNT ( * ) * + 83
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT + + 83 * + 38 * + CAST( NULL AS SIGNED ) * - 55 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT + + 83 * + 38 * + CAST ( NULL AS INTEGER ) * - 55 col1
----
NULL

query I rowsort
SELECT + ( - 93 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4734
SELECT ALL - 10 * + COUNT( * ) + - CAST( NULL AS SIGNED ) * - - 27 * - - COUNT( + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - 10 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - - 27 * - - COUNT ( + 30 )
----
NULL

query I rowsort
SELECT - 42 + - 47 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL 34 * 34 + - - COUNT( * ) + + + ( - 35 ) col2
----
1122

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL 34 * 34 + - - COUNT ( * ) + + + ( - 35 ) col2
----
1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT ALL 46 * 4 + - 24 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL 46 * 4 + - 24 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT 41 * - COALESCE ( + 28, + - 19, - 99, - - 60 DIV 40 - 46 ) + 95 + 74
----
-979

skipif mysql # not compatible
query I rowsort label-4738
SELECT 41 * - COALESCE ( + 28, + - 19, - 99, - - 60 / 40 - 46 ) + 95 + 74
----
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT - 12 - + - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4739
SELECT - 12 - + - COUNT ( * ) AS col2
----
-11

query I rowsort
SELECT + ( - 97 ) + 13 * + + 91 col2
----
1086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL + COALESCE ( - 65, - 2 + 75 + 54, + CASE - 10 WHEN + + 99 THEN ( - - COALESCE ( - COUNT( * ), - MIN( + 28 ) * - 90 + - CAST( NULL AS SIGNED ), + 57 ) ) ELSE NULL END * + 0 ) + + COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL + COALESCE ( - 65, - 2 + 75 + 54, + CASE - 10 WHEN + + 99 THEN ( - - COALESCE ( - COUNT ( * ), - MIN ( + 28 ) * - 90 + - CAST ( NULL AS INTEGER ), + 57 ) ) ELSE NULL END * + 0 ) + + COUNT ( * ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - COALESCE ( 92, + 6, - 88 * - COUNT( * ) + 66 ) - 2 col0
----
-94

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - COALESCE ( 92, + 6, - 88 * - COUNT ( * ) + 66 ) - 2 col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - 76 * - COUNT( DISTINCT + NULLIF ( 66, - + 86 ) )
----
76

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 76 * - COUNT ( DISTINCT + NULLIF ( 66, - + 86 ) )
----
76

query I rowsort
SELECT ALL - 42 - + ( 11 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT - COUNT( * ) + CASE - + 77 WHEN + COUNT( * ) / - + 37 THEN SUM( 60 ) + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT - COUNT ( * ) + CASE - + 77 WHEN + COUNT ( * ) / - + 37 THEN SUM ( 60 ) + 27 END
----
NULL

query I rowsort
SELECT ALL 16 - + 19
----
-3

query II rowsort
SELECT 41 AS col0, - 83
----
41
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-4748
SELECT + - 74 + 18, - COUNT( * ) col0
----
-56
-1

skipif mysql # not compatible
query II rowsort label-4748
SELECT + - 74 + 18, - COUNT ( * ) col0
----
-56
-1

query I rowsort
SELECT + + 99 + 1
----
100

query I rowsort
SELECT ALL - ( 86 ) AS col2
----
-86

query I rowsort
SELECT + - 24 + + - 25 * 16 AS col0
----
-424

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4752
SELECT ALL - 19 DIV + + 68 col1, 93 + COUNT( * ) + 10
----
0
104

skipif mysql # not compatible
query II rowsort label-4752
SELECT ALL - 19 / + + 68 col1, 93 + COUNT ( * ) + 10
----
0
104

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT - 97 DIV + 13
----
-7

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 97 / + 13
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4754
SELECT ALL 54 * + NULLIF ( + COUNT( ALL - 80 ), + 78 ) * - - CASE WHEN NULL IS NOT NULL THEN CASE 26 WHEN + COUNT( * ) THEN NULL ELSE + - NULLIF ( + 22, 40 ) END ELSE - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL 54 * + NULLIF ( + COUNT ( ALL - 80 ), + 78 ) * - - CASE WHEN NULL IS NOT NULL THEN CASE 26 WHEN + COUNT ( * ) THEN NULL ELSE + - NULLIF ( + 22, 40 ) END ELSE - CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT DISTINCT - 11 * + NULLIF ( + 1, - - 94 - + 71 ) * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT - 11 * + NULLIF ( + 1, - - 94 - + 71 ) * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 87 AS col0, 94 AS col1
----
87
94

query I rowsort
SELECT + - 73 * - + 56
----
4088

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL - 67 * + 3 - 33 * + + SUM( + + 56 )
----
-2049

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - 67 * + 3 - 33 * + + SUM ( + + 56 )
----
-2049

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT ALL - 46 DIV + 38 + + 76 col0
----
75

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - 46 / + 38 + + 76 col0
----
75

query II rowsort
SELECT + - 97 AS col0, 81 AS col0
----
-97
81

query II rowsort
SELECT ALL + + 43, + 54 col1
----
43
54

query I rowsort
SELECT DISTINCT + + 61 AS col0
----
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4763
SELECT ALL 71 / - 44 + 38 + 54 * - + 66 * CAST( NULL AS DECIMAL ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL 71 / - 44 + 38 + 54 * - + 66 * CAST ( NULL AS REAL ) * - 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4764
SELECT ALL 37 DIV - 50 * - + MAX( + 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL 37 / - 50 * - + MAX ( + 41 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT COUNT( * ) * - 94 + + COUNT( * ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-4765
SELECT COUNT ( * ) * - 94 + + COUNT ( * ) col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT CAST( + - 64 AS SIGNED ) - + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4766
SELECT CAST ( + - 64 AS INTEGER ) - + COUNT ( * )
----
-65

query I rowsort
SELECT DISTINCT - 30 col0
----
-30

query I rowsort
SELECT DISTINCT - 73 + + 55 * + + 65 + - 25 * - - 76 AS col1
----
1602

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT COUNT( - 77 ) * - 93 col0
----
-93

skipif mysql # not compatible
query I rowsort label-4769
SELECT COUNT ( - 77 ) * - 93 col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT ALL 1 DIV + 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL 1 / + 58 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT 23 + COUNT( * ) + + 72 * - 98 AS col2
----
-7032

skipif mysql # not compatible
query I rowsort label-4771
SELECT 23 + COUNT ( * ) + + 72 * - 98 AS col2
----
-7032

query I rowsort
SELECT DISTINCT 94 - - - 57 - 75
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - COUNT( * ) * 25 + 33
----
8

skipif mysql # not compatible
query I rowsort label-4773
SELECT - COUNT ( * ) * 25 + 33
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT DISTINCT 58 - ( - 26 ) + + 29 * - + 79 * 7 * - CAST( 47 AS SIGNED )
----
753823

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT 58 - ( - 26 ) + + 29 * - + 79 * 7 * - CAST ( 47 AS INTEGER )
----
753823

query I rowsort
SELECT ALL 87 col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4776
SELECT CAST( NULL AS SIGNED ) - + ( - 94 ) * - COUNT( * ) * + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT CAST ( NULL AS INTEGER ) - + ( - 94 ) * - COUNT ( * ) * + - 67
----
NULL

query I rowsort
SELECT - + 27 AS col1
----
-27

query I rowsort
SELECT - 85 * + + 25 * - 63
----
133875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4779
SELECT ALL + 73 * 8 AS col2, CAST( - - 86 AS SIGNED )
----
584
86

skipif mysql # not compatible
query II rowsort label-4779
SELECT ALL + 73 * 8 AS col2, CAST ( - - 86 AS INTEGER )
----
584
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL - + COUNT( * ) + - NULLIF ( + 42, - 58 ) - 69 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL - + COUNT ( * ) + - NULLIF ( + 42, - 58 ) - 69 AS col1
----
-112

query I rowsort
SELECT DISTINCT + COALESCE ( + 32, + ( + 81 ) ) * 57 AS col0
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - ( COUNT( * ) ) + - NULLIF ( + + 94, 24 - ( COUNT( * ) ) + - 95 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - ( COUNT ( * ) ) + - NULLIF ( + + 94, 24 - ( COUNT ( * ) ) + - 95 ) col2
----
-95

query I rowsort
SELECT COALESCE ( - 98, - 75 ) + 25 AS col1
----
-73

query II rowsort
SELECT + 74 + 20 AS col1, + 18 AS col1
----
94
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT + NULLIF ( COUNT( DISTINCT - 59 ), - 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4785
SELECT + NULLIF ( COUNT ( DISTINCT - 59 ), - 43 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + CASE - 72 WHEN + COUNT( * ) THEN + 83 + - 41 ELSE NULL END / + + 88 + - 94 + - + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT + CASE - 72 WHEN + COUNT ( * ) THEN + 83 + - 41 ELSE NULL END / + + 88 + - 94 + - + 37 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT + + 71 * 57 - 62 DIV + 43 AS col1
----
4046

skipif mysql # not compatible
query I rowsort label-4787
SELECT + + 71 * 57 - 62 / + 43 AS col1
----
4046

query I rowsort
SELECT DISTINCT - + 32 col0
----
-32

query I rowsort
SELECT ALL - + 31 + + 92
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4790
SELECT ALL + CAST( - + 3 AS SIGNED ) DIV 39 DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL + CAST ( - + 3 AS INTEGER ) / 39 / - + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4791
SELECT - ( + + 90 ) AS col2, + SUM( ALL 23 ) + + CAST( - 57 AS SIGNED ) AS col2
----
-90
-34

skipif mysql # not compatible
query II rowsort label-4791
SELECT - ( + + 90 ) AS col2, + SUM ( ALL 23 ) + + CAST ( - 57 AS INTEGER ) AS col2
----
-90
-34

query I rowsort
SELECT 22 * - ( + 11 ) + + - 54 AS col0
----
-296

onlyif mysql # aggregate syntax: 
query II rowsort label-4793
SELECT ALL - COUNT( * ), 6 AS col1
----
-1
6

skipif mysql # not compatible
query II rowsort label-4793
SELECT ALL - COUNT ( * ), 6 AS col1
----
-1
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4794
SELECT + 98, + COUNT( * ) + 73 AS col1
----
98
74

skipif mysql # not compatible
query II rowsort label-4794
SELECT + 98, + COUNT ( * ) + 73 AS col1
----
98
74

query I rowsort
SELECT 78 + 4
----
82

query I rowsort
SELECT 81 * - + 5
----
-405

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4797
SELECT 67 AS col2, COUNT( * ) + - + COALESCE ( + 75, 95 ) + - ( + + 20 ) DIV - SUM( DISTINCT + 91 ) * - 93
----
67
-74

skipif mysql # not compatible
query II rowsort label-4797
SELECT 67 AS col2, COUNT ( * ) + - + COALESCE ( + 75, 95 ) + - ( + + 20 ) / - SUM ( DISTINCT + 91 ) * - 93
----
67
-74

query I rowsort
SELECT 87 + - 0
----
87

query I rowsort
SELECT ALL + 60 - + 94 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - MIN( + 63 ) * + - COUNT( * ) + MAX( - 87 )
----
-24

skipif mysql # not compatible
query I rowsort label-4801
SELECT - MIN ( + 63 ) * + - COUNT ( * ) + MAX ( - 87 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4802
SELECT 22 + + SUM( DISTINCT CAST( - 60 AS SIGNED ) ) + COALESCE ( - - 6, - 92 * + CASE 98 WHEN CAST( + + 1 AS SIGNED ) DIV CASE - CAST( - + 8 AS SIGNED ) WHEN + + 26 + - 97 THEN NULL ELSE + 0 + - + 33 * - 7 DIV + 85 * - + 34 * - 10 END DIV SUM( - 32 ) + - CAST( NULL AS SIGNED ) + 34 + 82 + - 40 * - 19 - - + 75 * + 24 THEN - NULLIF ( 64, 31 DIV + 69 - + 79 - + COUNT( * ) * + 45 * COALESCE ( + 92 + + 89, 19 ) ) * 85 ELSE NULL END DIV 25 )
----
-32

skipif mysql # not compatible
query I rowsort label-4802
SELECT 22 + + SUM ( DISTINCT CAST ( - 60 AS INTEGER ) ) + COALESCE ( - - 6, - 92 * + CASE 98 WHEN CAST ( + + 1 AS INTEGER ) / CASE - CAST ( - + 8 AS INTEGER ) WHEN + + 26 + - 97 THEN NULL ELSE + 0 + - + 33 * - 7 / + 85 * - + 34 * - 10 END / SUM ( - 32 ) + - CAST ( NULL AS INTEGER ) + 34 + 82 + - 40 * - 19 - - + 75 * + 24 THEN - NULLIF ( 64, 31 / + 69 - + 79 - + COUNT ( * ) * + 45 * COALESCE ( + 92 + + 89, 19 ) ) * 85 ELSE NULL END / 25 )
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4803
SELECT ALL CAST( NULL AS DECIMAL ) * - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL CAST ( NULL AS REAL ) * - 23 AS col0
----
NULL

query I rowsort
SELECT ( 24 ) * 89
----
2136

query I rowsort
SELECT - 6 * - + 70 + 75 + 69 * - 92
----
-5853

query I rowsort
SELECT 15 * - ( - + 77 ) + - + 49 AS col0
----
1106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4807
SELECT COUNT( * ) - + 6 DIV + 96 * - - 88
----
1

skipif mysql # not compatible
query I rowsort label-4807
SELECT COUNT ( * ) - + 6 / + 96 * - - 88
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4808
SELECT CAST( 97 AS SIGNED ) DIV 5 AS col0, 82 AS col1
----
19
82

skipif mysql # not compatible
query II rowsort label-4808
SELECT CAST ( 97 AS INTEGER ) / 5 AS col0, 82 AS col1
----
19
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT + 30 * - - 55 * + 73 - - CAST( NULL AS SIGNED ) - - ( + + SUM( ALL - 24 ) ) * + + 30 + SUM( ALL - + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT + 30 * - - 55 * + 73 - - CAST ( NULL AS INTEGER ) - - ( + + SUM ( ALL - 24 ) ) * + + 30 + SUM ( ALL - + 81 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT ALL COUNT( * ) * - 82 DIV - ( - 12 )
----
-6

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL COUNT ( * ) * - 82 / - ( - 12 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT 30 * - SUM( ALL - ( - 69 ) ) AS col0
----
-2070

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT 30 * - SUM ( ALL - ( - 69 ) ) AS col0
----
-2070

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL + 2 + - 55 + 61 DIV ( + + 59 )
----
-52

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL + 2 + - 55 + 61 / ( + + 59 )
----
-52

query I rowsort
SELECT ( + - 26 ) + COALESCE ( + 91, - + 2 + + 12, - - 31 )
----
65

query II rowsort
SELECT ALL 53 * 35 * 4, ( - 65 ) AS col1
----
7420
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT ALL CAST( + MAX( DISTINCT 76 ) AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL CAST ( + MAX ( DISTINCT 76 ) AS INTEGER )
----
76

query I rowsort
SELECT + 6 + COALESCE ( - 88, + - 35 * + 22 + 78 ) + + 43 * - 70
----
-3092

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL - COUNT( * ) + + 0
----
-1

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - COUNT ( * ) + + 0
----
-1

query II rowsort
SELECT 98 * 58 + - + 6, - 24 + + 88 AS col2
----
5678
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT + 9 + + + COUNT( DISTINCT - - 49 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT + 9 + + + COUNT ( DISTINCT - - 49 ) AS col2
----
10

query I rowsort
SELECT - 42 + 21 AS col1
----
-21

query I rowsort
SELECT 37 * - 35
----
-1295

query I rowsort
SELECT - ( - 85 ) + - 5 - 88 col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT DISTINCT ( + 59 ) * + 97 DIV - COUNT( * ) AS col1
----
-5723

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT ( + 59 ) * + 97 / - COUNT ( * ) AS col1
----
-5723

query I rowsort
SELECT - - 46 * 25
----
1150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4825
SELECT DISTINCT + - 99 * + COUNT( - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT + - 99 * + COUNT ( - CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT + COALESCE ( + NULLIF ( 6, + 13 ), + - 87 * + + SUM( ALL 9 ) + - 7 + + - 32 * 41 + COUNT( * ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4826
SELECT + COALESCE ( + NULLIF ( 6, + 13 ), + - 87 * + + SUM ( ALL 9 ) + - 7 + + - 32 * 41 + COUNT ( * ) ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT - 72 * - + 9 * - CAST( 97 AS SIGNED )
----
-62856

skipif mysql # not compatible
query I rowsort label-4827
SELECT - 72 * - + 9 * - CAST ( 97 AS INTEGER )
----
-62856

onlyif mysql # DIV for integer division: 
query II rowsort label-4828
SELECT ALL + ( - 70 ), + 54 DIV + 96 AS col1
----
-70
0

skipif mysql # not compatible
query II rowsort label-4828
SELECT ALL + ( - 70 ), + 54 / + 96 AS col1
----
-70
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT - NULLIF ( - 21, - 52 * - COALESCE ( - - 82, + NULLIF ( 25, - 93 ) / + - NULLIF ( - - 7, + + 41 * - 71 ) ) + 24 ) - COUNT( * ) AS col2, COUNT( * )
----
20
1

skipif mysql # not compatible
query II rowsort label-4829
SELECT - NULLIF ( - 21, - 52 * - COALESCE ( - - 82, + NULLIF ( 25, - 93 ) / + - NULLIF ( - - 7, + + 41 * - 71 ) ) + 24 ) - COUNT ( * ) AS col2, COUNT ( * )
----
20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - 36 * + SUM( + - 91 )
----
3276

skipif mysql # not compatible
query I rowsort label-4830
SELECT - 36 * + SUM ( + - 91 )
----
3276

query I rowsort
SELECT ALL + ( + 93 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT DISTINCT - COUNT( * ) DIV + ( + + COUNT( 76 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT - COUNT ( * ) / + ( + + COUNT ( 76 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL 0 * + COUNT( * ) * + + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL 0 * + COUNT ( * ) * + + 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT - 6 * - 26 * + COUNT( * )
----
156

skipif mysql # not compatible
query I rowsort label-4834
SELECT - 6 * - 26 * + COUNT ( * )
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4835
SELECT ALL - 83 * 71 AS col0, + CAST( - + CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ) DIV - - 30 * - 29 * + 80 + 22
----
-5893
22

skipif mysql # not compatible
query II rowsort label-4835
SELECT ALL - 83 * 71 AS col0, + CAST ( - + CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ) / - - 30 * - 29 * + 80 + 22
----
-5893
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL + ( + COUNT( 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + ( + COUNT ( 72 ) )
----
1

query II rowsort
SELECT - 76 * - - 77 AS col0, 40 AS col0
----
-5852
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + MIN( - 68 ) * + 2 * - 93
----
12648

skipif mysql # not compatible
query I rowsort label-4838
SELECT + MIN ( - 68 ) * + 2 * - 93
----
12648

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT + MIN( DISTINCT 24 ) + + 47
----
71

skipif mysql # not compatible
query I rowsort label-4839
SELECT + MIN ( DISTINCT 24 ) + + 47
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4840
SELECT DISTINCT + 11 * + ( - COALESCE ( ( + 14 ), - ( + + MAX( - - 33 ) ) + 79, + - 31 DIV - + COALESCE ( - 72, - - 5, + 80 ) + + CASE + COALESCE ( + 54, + + COUNT( * ) + + COUNT( * ) ) WHEN + 56 DIV 56 * 21 THEN NULL WHEN - 58 THEN 20 - + 69 END ) ) AS col2, + 73 + 59 + - 48 DIV - 66
----
-154
132

skipif mysql # not compatible
query II rowsort label-4840
SELECT DISTINCT + 11 * + ( - COALESCE ( ( + 14 ), - ( + + MAX ( - - 33 ) ) + 79, + - 31 / - + COALESCE ( - 72, - - 5, + 80 ) + + CASE + COALESCE ( + 54, + + COUNT ( * ) + + COUNT ( * ) ) WHEN + 56 / 56 * 21 THEN NULL WHEN - 58 THEN 20 - + 69 END ) ) AS col2, + 73 + 59 + - 48 / - 66
----
-154
132

query I rowsort
SELECT + 76 + + ( 65 ) + + 30 * - 44 + + + 9 * + 84
----
-423

query I rowsort
SELECT + 26 * - 84 - 99 col0
----
-2283

query I rowsort
SELECT - 46 * + - 38 AS col1
----
1748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4844
SELECT + 64 * + + 69 * + + 77 + + - 81 + 66 + - CAST( NULL AS SIGNED ) + 41 + + 69 * + COUNT( * ) + + ( CASE + - 71 WHEN - 13 / 2 * - 30 + - 40 + + - 8 THEN NULL WHEN 41 THEN - 31 END ) * 25 * + ( + NULLIF ( 4, + + 33 ) ) * + - COUNT( * ) * - ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT + 64 * + + 69 * + + 77 + + - 81 + 66 + - CAST ( NULL AS INTEGER ) + 41 + + 69 * + COUNT ( * ) + + ( CASE + - 71 WHEN - 13 / 2 * - 30 + - 40 + + - 8 THEN NULL WHEN 41 THEN - 31 END ) * 25 * + ( + NULLIF ( 4, + + 33 ) ) * + - COUNT ( * ) * - ( COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT MIN( DISTINCT 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4845
SELECT MIN ( DISTINCT 52 ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT ALL CAST( - 57 AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL CAST ( - 57 AS INTEGER ) AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT DISTINCT - + 14 + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT - + 14 + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-15

query I rowsort
SELECT ALL 16 * 42 * + 43 * - 37
----
-1069152

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL 60 + + COUNT( * ) * + + 65
----
125

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL 60 + + COUNT ( * ) * + + 65
----
125

query I rowsort
SELECT + - 85 * + - 38 + 34 AS col1
----
3264

query I rowsort
SELECT - - 90 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT + + COUNT( * ) * - + CASE + 54 WHEN MIN( DISTINCT - ( 34 ) ) / 78 THEN 52 + + 42 * 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT + + COUNT ( * ) * - + CASE + 54 WHEN MIN ( DISTINCT - ( 34 ) ) / 78 THEN 52 + + 42 * 62 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT ALL ( - + 29 ) * 79 * - SUM( DISTINCT + 65 ) col0, 66 + - 93 AS col2
----
148915
-27

skipif mysql # not compatible
query II rowsort label-4853
SELECT ALL ( - + 29 ) * 79 * - SUM ( DISTINCT + 65 ) col0, 66 + - 93 AS col2
----
148915
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT + - CAST( + - 2 AS SIGNED ) - + 33 * - 53 AS col1
----
1751

skipif mysql # not compatible
query I rowsort label-4854
SELECT + - CAST ( + - 2 AS INTEGER ) - + 33 * - 53 AS col1
----
1751

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT + 59 + - + 11 DIV - 59
----
59

skipif mysql # not compatible
query I rowsort label-4855
SELECT + 59 + - + 11 / - 59
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT + 73 + - 92 + 10 + 18 DIV 94 + 44 * + 13 * + 65 AS col1
----
37171

skipif mysql # not compatible
query I rowsort label-4856
SELECT + 73 + - 92 + 10 + 18 / 94 + 44 * + 13 * + 65 AS col1
----
37171

onlyif mysql # DIV for integer division: 
query II rowsort label-4857
SELECT 76, + 95 DIV COALESCE ( 2, - 72, - + 28, + 89 * - + 89 ) AS col0
----
76
47

skipif mysql # not compatible
query II rowsort label-4857
SELECT 76, + 95 / COALESCE ( 2, - 72, - + 28, + 89 * - + 89 ) AS col0
----
76
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT + CAST( NULL AS SIGNED ) + - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT + CAST ( NULL AS INTEGER ) + - + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT CAST( ( - - 98 ) AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4859
SELECT CAST ( ( - - 98 ) AS INTEGER ) AS col1
----
98

query I rowsort
SELECT - 12 + - 8 * + + 15 AS col2
----
-132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4861
SELECT ALL - 87 * - CAST( NULL AS DECIMAL ) * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL - 87 * - CAST ( NULL AS REAL ) * - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT 36 * + COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT 36 * + COUNT ( * ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL - CASE + 81 WHEN - + 68 * + COUNT( * ) * + 31 * + 54 * - 56 THEN NULL WHEN + 74 + - 89 - + 7 THEN - 11 / + 47 END * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - CASE + 81 WHEN - + 68 * + COUNT ( * ) * + 31 * + 54 * - 56 THEN NULL WHEN + 74 + - 89 - + 7 THEN - 11 / + 47 END * 97
----
NULL

query I rowsort
SELECT ( COALESCE ( + 0, 40 * - 54 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT - 82 DIV 56 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4865
SELECT - 82 / 56 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT + CAST( - 64 AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4866
SELECT + CAST ( - 64 AS INTEGER ) AS col1
----
-64

query I rowsort
SELECT - 35 + + + 45 * + 8
----
325

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT - 46 DIV 36
----
-1

skipif mysql # not compatible
query I rowsort label-4868
SELECT - 46 / 36
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT ALL COUNT( * ) * - CASE - 66 WHEN - + 18 THEN NULL WHEN - 11 + - COUNT( * ) + + 84 THEN + - 85 ELSE - 52 DIV 31 * + 25 DIV - + 71 * - COALESCE ( 95, + + 16 + + + 51 ) END + + 46
----
46

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL COUNT ( * ) * - CASE - 66 WHEN - + 18 THEN NULL WHEN - 11 + - COUNT ( * ) + + 84 THEN + - 85 ELSE - 52 / 31 * + 25 / - + 71 * - COALESCE ( 95, + + 16 + + + 51 ) END + + 46
----
46

query I rowsort
SELECT ALL + ( + + 5 )
----
5

query I rowsort
SELECT ( + - 40 ) AS col0
----
-40

query I rowsort
SELECT ALL - 87 * - 56 + + + 77 * - 42
----
1638

query II rowsort
SELECT - 22 * 4 + + + 29 - + 94 * 44 * 97 * 20 + 51 * + 18 * - COALESCE ( ( 54 ), - COALESCE ( + 98, + ( + - 48 ) * + 71 + 42 ), - 37 ) + + 64 AS col1, 97 AS col1
----
-8073407
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL 16 * - COUNT( + + 15 ) + + - 53
----
-69

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 16 * - COUNT ( + + 15 ) + + - 53
----
-69

query I rowsort
SELECT - 61 + + 59
----
-2

query I rowsort
SELECT ALL - 45 * - 63 + + 79 * 88 AS col2
----
9787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT - 74 + - NULLIF ( - - ( - + CAST( NULL AS SIGNED ) ), - - 37 * - 9 - + + 91 / + - 15 * - + 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT - 74 + - NULLIF ( - - ( - + CAST ( NULL AS INTEGER ) ), - - 37 * - 9 - + + 91 / + - 15 * - + 62 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT - 16 * + - 26 + - MIN( ALL + 85 ) col1
----
331

skipif mysql # not compatible
query I rowsort label-4878
SELECT - 16 * + - 26 + - MIN ( ALL + 85 ) col1
----
331

query I rowsort
SELECT - + 95 AS col2
----
-95

query I rowsort
SELECT + + 14 - - 89 AS col2
----
103

query I rowsort
SELECT - NULLIF ( - 26, + + 3 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT - - 45 + + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4882
SELECT - - 45 + + + COUNT ( * )
----
46

query I rowsort
SELECT + - 39 + + 96 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT - CASE - - SUM( ALL + 41 ) WHEN - 41 + - 14 * - COUNT( * ) THEN NULL ELSE - 98 END
----
98

skipif mysql # not compatible
query I rowsort label-4884
SELECT - CASE - - SUM ( ALL + 41 ) WHEN - 41 + - 14 * - COUNT ( * ) THEN NULL ELSE - 98 END
----
98

query I rowsort
SELECT ALL 94 - - 30 AS col2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT - 63 + + 54 - + 6 DIV - 66 - - ( - 81 )
----
-90

skipif mysql # not compatible
query I rowsort label-4886
SELECT - 63 + + 54 - + 6 / - 66 - - ( - 81 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4887
SELECT - CAST( NULL AS SIGNED ) AS col2, - 43
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-4887
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 43
----
NULL
-43

query I rowsort
SELECT ALL - 90 * + + 25 + - 96 AS col0
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - SUM( 51 ) + + COUNT( 36 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4889
SELECT - SUM ( 51 ) + + COUNT ( 36 ) AS col0
----
-50

query I rowsort
SELECT 97 + + - 28 + - 12 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - COUNT( * ) + + ( - 93 )
----
-94

skipif mysql # not compatible
query I rowsort label-4891
SELECT - COUNT ( * ) + + ( - 93 )
----
-94

query I rowsort
SELECT + 43 * + 6
----
258

query II rowsort
SELECT + 13 * + 18 + 71 AS col2, ( - 54 ) AS col2
----
305
-54

query I rowsort
SELECT + 26 + - 1
----
25

query I rowsort
SELECT 97 * + - 73 * - 20 * + 61 AS col1
----
8638820

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT COUNT( * ) * - 87 * + - 97 col0
----
8439

skipif mysql # not compatible
query I rowsort label-4896
SELECT COUNT ( * ) * - 87 * + - 97 col0
----
8439

query II rowsort
SELECT ALL 93 AS col0, 81 AS col2
----
93
81

query I rowsort
SELECT ALL - 1 * - - 77 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT COUNT( * ) + + + 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4899
SELECT COUNT ( * ) + + + 80 AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) DIV + 6
----
0

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) / + 6
----
0

query I rowsort
SELECT ALL 95 * ( + 48 )
----
4560

query I rowsort
SELECT 32 * 70 AS col0
----
2240

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT - 56 DIV + COALESCE ( + 67, - - 74 ) * ( 68 ) - - 93 + + 7
----
100

skipif mysql # not compatible
query I rowsort label-4903
SELECT - 56 / + COALESCE ( + 67, - - 74 ) * ( 68 ) - - 93 + + 7
----
100

query II rowsort
SELECT 91 AS col2, - 99 * - ( - 43 )
----
91
-4257

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT COUNT( * ) * - 48 * - 28
----
1344

skipif mysql # not compatible
query I rowsort label-4905
SELECT COUNT ( * ) * - 48 * - 28
----
1344

query I rowsort
SELECT 22 * + + 3
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT 82 + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT 82 + + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL - 66 + + SUM( DISTINCT - 78 )
----
-144

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL - 66 + + SUM ( DISTINCT - 78 )
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT DISTINCT - COUNT( * ) AS col1, + 63 AS col1
----
-1
63

skipif mysql # not compatible
query II rowsort label-4909
SELECT DISTINCT - COUNT ( * ) AS col1, + 63 AS col1
----
-1
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4910
SELECT DISTINCT ( - 98 ) + + ( + 76 ), - CAST( + + ( - 49 ) AS SIGNED ) AS col1
----
-22
49

skipif mysql # not compatible
query II rowsort label-4910
SELECT DISTINCT ( - 98 ) + + ( + 76 ), - CAST ( + + ( - 49 ) AS INTEGER ) AS col1
----
-22
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4911
SELECT ALL - NULLIF ( CASE + 12 WHEN - 1 * - + ( + 15 ) THEN NULL WHEN - MIN( 70 ) * 56 THEN 52 END, + + 71 * - - 82 + - CAST( - - 61 AS SIGNED ) + + + 21 + - 29 - + + 47 + 91 * - 91 * 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - NULLIF ( CASE + 12 WHEN - 1 * - + ( + 15 ) THEN NULL WHEN - MIN ( 70 ) * 56 THEN 52 END, + + 71 * - - 82 + - CAST ( - - 61 AS INTEGER ) + + + 21 + - 29 - + + 47 + 91 * - 91 * 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - 39 + 82 + ( - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - 39 + 82 + ( - COUNT ( * ) )
----
42

query I rowsort
SELECT 60 - 18 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL SUM( + ( - ( + 41 ) ) ) * 56 * + 95
----
-218120

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL SUM ( + ( - ( + 41 ) ) ) * 56 * + 95
----
-218120

query II rowsort
SELECT 7, - 65 col0
----
7
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT 37 * ( + ( - COUNT( * ) ) ) / - 44 * ( CASE - 71 WHEN + CAST( NULL AS SIGNED ) * + 71 * - 28 THEN - - COUNT( * ) + - 22 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT 37 * ( + ( - COUNT ( * ) ) ) / - 44 * ( CASE - 71 WHEN + CAST ( NULL AS INTEGER ) * + 71 * - 28 THEN - - COUNT ( * ) + - 22 END )
----
NULL

query II rowsort
SELECT ALL - + 42 col0, 17
----
-42
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT 94 + - - 90 * - + MIN( - NULLIF ( + 83, - + 55 + + 33 / - CAST( NULL AS SIGNED ) + 81 * + 45 - + - 30 - + 57 ) ) col1
----
7564

skipif mysql # not compatible
query I rowsort label-4918
SELECT 94 + - - 90 * - + MIN ( - NULLIF ( + 83, - + 55 + + 33 / - CAST ( NULL AS INTEGER ) + 81 * + 45 - + - 30 - + 57 ) ) col1
----
7564

query II rowsort
SELECT - 39, 47 AS col1
----
-39
47

query II rowsort
SELECT + 72 AS col2, + 9 * - 40
----
72
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4921
SELECT - CAST( + + MAX( DISTINCT + - 94 ) AS SIGNED ) * - ( 9 ) AS col0
----
-846

skipif mysql # not compatible
query I rowsort label-4921
SELECT - CAST ( + + MAX ( DISTINCT + - 94 ) AS INTEGER ) * - ( 9 ) AS col0
----
-846

query II rowsort
SELECT DISTINCT + 48, + 77 + 12 AS col0
----
48
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT DISTINCT + 69 DIV - 17
----
-4

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT + 69 / - 17
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4924
SELECT - 18 * - 33 * - 69 + COUNT( * ) * 63 + + - 2 AS col0, - ( + CASE WHEN NULL IS NULL THEN NULL ELSE + 74 END ) AS col2
----
-40925
NULL

skipif mysql # not compatible
query II rowsort label-4924
SELECT - 18 * - 33 * - 69 + COUNT ( * ) * 63 + + - 2 AS col0, - ( + CASE WHEN NULL IS NULL THEN NULL ELSE + 74 END ) AS col2
----
-40925
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + NULLIF ( + + ( + - 83 ), + + 49 + + 95 * - 61 * - COUNT( * ) ) - - COUNT( * ) + + - 41 * + - 31
----
1189

skipif mysql # not compatible
query I rowsort label-4925
SELECT + NULLIF ( + + ( + - 83 ), + + 49 + + 95 * - 61 * - COUNT ( * ) ) - - COUNT ( * ) + + - 41 * + - 31
----
1189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT COALESCE ( + 75, - + 51 ) DIV + + MIN( ALL - 8 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4926
SELECT COALESCE ( + 75, - + 51 ) / + + MIN ( ALL - 8 ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT DISTINCT + + 92 * - - CAST( - 91 AS SIGNED ) * + 19 * + MAX( DISTINCT 21 ) AS col2
----
-3340428

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + + 92 * - - CAST ( - 91 AS INTEGER ) * + 19 * + MAX ( DISTINCT 21 ) AS col2
----
-3340428

query I rowsort
SELECT ALL - - NULLIF ( 95, + - 23 * ( - 63 ) ) * + 73 * + 71 AS col1
----
492385

query I rowsort
SELECT - - 22 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4930
SELECT DISTINCT - COUNT( * ) * + + 61 DIV 22 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - COUNT ( * ) * + + 61 / 22 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT ALL SUM( + CAST( 56 AS SIGNED ) ) + - 22
----
34

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL SUM ( + CAST ( 56 AS INTEGER ) ) + - 22
----
34

query I rowsort
SELECT 26 + - - 33
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT SUM( ALL + + 49 ) col0
----
49

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT SUM ( ALL + + 49 ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT 35 + COUNT( 54 ) * + 18 * + 98 * 56
----
98819

skipif mysql # not compatible
query I rowsort label-4934
SELECT 35 + COUNT ( 54 ) * + 18 * + 98 * 56
----
98819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4935
SELECT 6 + + - 92 DIV - 33 + + + MIN( ALL + + 24 ) + - 33
----
-1

skipif mysql # not compatible
query I rowsort label-4935
SELECT 6 + + - 92 / - 33 + + + MIN ( ALL + + 24 ) + - 33
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL + SUM( 87 ) + - + ( - 20 ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + SUM ( 87 ) + - + ( - 20 ) AS col0
----
107

query I rowsort
SELECT 16 + + - 40 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT MIN( ALL + 57 ) - - 89 + + + 94
----
240

skipif mysql # not compatible
query I rowsort label-4938
SELECT MIN ( ALL + 57 ) - - 89 + + + 94
----
240

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4939
SELECT 22 DIV - + 41 * - COALESCE ( + + CAST( + 7 AS SIGNED ), + 85 + + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-4939
SELECT 22 / - + 41 * - COALESCE ( + + CAST ( + 7 AS INTEGER ), + 85 + + 90 )
----
0

query I rowsort
SELECT 61 - + 49 AS col0
----
12

query I rowsort
SELECT ALL + 48 * + - 9 + - 76 col0
----
-508

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT MAX( ALL - ( - 55 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4942
SELECT MAX ( ALL - ( - 55 ) ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT + CASE + + 19 WHEN + COUNT( * ) * 16 THEN 87 WHEN + - 99 THEN NULL ELSE NULL END * - 25 - + CASE + - 70 WHEN - - 76 * ( - - 73 ) THEN NULL WHEN 22 * + 53 THEN ( + + 99 ) WHEN 83 THEN NULL END + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT + CASE + + 19 WHEN + COUNT ( * ) * 16 THEN 87 WHEN + - 99 THEN NULL ELSE NULL END * - 25 - + CASE + - 70 WHEN - - 76 * ( - - 73 ) THEN NULL WHEN 22 * + 53 THEN ( + + 99 ) WHEN 83 THEN NULL END + + 91
----
NULL

query I rowsort
SELECT ALL + 99 * - + 89 + + 19 + + - ( + 62 ) + + 5 + + + 59 AS col2
----
-8790

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + SUM( DISTINCT + - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4945
SELECT + SUM ( DISTINCT + - 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4946
SELECT - 14 DIV - 54 + + - MAX( - 74 ) DIV - 9
----
-8

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 14 / - 54 + + - MAX ( - 74 ) / - 9
----
-8

query I rowsort
SELECT 47 + 38
----
85

query II rowsort
SELECT - 65 * - 83, NULLIF ( + 53, + 63 ) col0
----
5395
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4949
SELECT 78 * - 99 + 7 DIV + 95
----
-7722

skipif mysql # not compatible
query I rowsort label-4949
SELECT 78 * - 99 + 7 / + 95
----
-7722

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT + - 57 * - 6 + 9 * + + 23 + - - 57 + + 34 * + 17 AS col2, COUNT( * ) * + 1 * + 97
----
1184
97

skipif mysql # not compatible
query II rowsort label-4950
SELECT + - 57 * - 6 + 9 * + + 23 + - - 57 + + 34 * + 17 AS col2, COUNT ( * ) * + 1 * + 97
----
1184
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL - COUNT( * ) * 97 * + COUNT( * ) + - ( + - SUM( ALL + 42 ) ) - - COALESCE ( + CASE + COUNT( * ) WHEN - + 71 THEN NULL ELSE + + 86 END, - 98, - 84, - - 36 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL - COUNT ( * ) * 97 * + COUNT ( * ) + - ( + - SUM ( ALL + 42 ) ) - - COALESCE ( + CASE + COUNT ( * ) WHEN - + 71 THEN NULL ELSE + + 86 END, - 98, - 84, - - 36 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT + ( - ( - + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + ( - ( - + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT + 49 * - 85 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT + 49 * - 85 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL + + MIN( ALL - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL + + MIN ( ALL - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + 61 * - ( - - 28 ) * 3 + - COUNT( DISTINCT + 33 ) AS col1
----
-5125

skipif mysql # not compatible
query I rowsort label-4955
SELECT + 61 * - ( - - 28 ) * 3 + - COUNT ( DISTINCT + 33 ) AS col1
----
-5125

query I rowsort
SELECT ALL + 32 - - - 35 + 58
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4957
SELECT + - 62 + + CAST( + CASE + COALESCE ( - + 40, + 35 ) WHEN + 24 * + + 30 THEN - COUNT( - 27 ) END AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT + - 62 + + CAST ( + CASE + COALESCE ( - + 40, + 35 ) WHEN + 24 * + + 30 THEN - COUNT ( - 27 ) END AS INTEGER ) * - 64
----
NULL

query II rowsort
SELECT + - NULLIF ( + 44, - - 31 ) AS col2, 99
----
-44
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4959
SELECT - - 13 * - + 16, + COUNT( * ) * + COUNT( DISTINCT - + ( - 26 ) ) col1
----
-208
1

skipif mysql # not compatible
query II rowsort label-4959
SELECT - - 13 * - + 16, + COUNT ( * ) * + COUNT ( DISTINCT - + ( - 26 ) ) col1
----
-208
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + 25 + - 71 - - - ( + + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-4960
SELECT + 25 + - 71 - - - ( + + COUNT ( * ) )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT - + CAST( + - 76 AS SIGNED ) * + 40 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT - + CAST ( + - 76 AS INTEGER ) * + 40 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT - 9 + + CASE - - 84 WHEN + - 92 * - COUNT( * ) - - + 8 THEN 79 END + - NULLIF ( + - 96, 45 * - 59 + + 31 + + 56 * - 85 * - 9 ) + + MAX( DISTINCT ( + - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT - 9 + + CASE - - 84 WHEN + - 92 * - COUNT ( * ) - - + 8 THEN 79 END + - NULLIF ( + - 96, 45 * - 59 + + 31 + + 56 * - 85 * - 9 ) + + MAX ( DISTINCT ( + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT + ( + + 2 ) AS col2
----
2

query I rowsort
SELECT + 52 * - 15 AS col1
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT - - ( 57 ) + - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT - - ( 57 ) + - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 28 * - 54
----
-1512

query I rowsort
SELECT - 66 * 57
----
-3762

query II rowsort
SELECT 29, + 69 AS col2
----
29
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT - 42 DIV + 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4969
SELECT - 42 / + 23 AS col1
----
-1

query I rowsort
SELECT - 53 * 36 AS col1
----
-1908

query I rowsort
SELECT - 59 + 54
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT - COUNT( * ) + + 95 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4972
SELECT - COUNT ( * ) + + 95 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL + MIN( ALL + + 72 ) + - 88
----
-16

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + MIN ( ALL + + 72 ) + - 88
----
-16

query II rowsort
SELECT 16 AS col0, + 43 AS col0
----
16
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL + SUM( - - 54 ) * - 59
----
-3186

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + SUM ( - - 54 ) * - 59
----
-3186

query I rowsort
SELECT ALL ( - - 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - COUNT( * ) * - 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4977
SELECT - COUNT ( * ) * - 72 AS col1
----
72

query I rowsort
SELECT ALL + 66 * - + 2
----
-132

query II rowsort
SELECT 40, 75 AS col0
----
40
75

query II rowsort
SELECT + 24, + 55 AS col0
----
24
55

query I rowsort
SELECT + ( - 55 ) * - - 57
----
-3135

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT + 82, 15 - - + COUNT( * ) AS col0
----
82
16

skipif mysql # not compatible
query II rowsort label-4982
SELECT + 82, 15 - - + COUNT ( * ) AS col0
----
82
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4983
SELECT + 68 DIV + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4983
SELECT + 68 / + COUNT ( * ) AS col2
----
68

query I rowsort
SELECT ALL 37 * - 80 + 51
----
-2909

query I rowsort
SELECT - + 58 * 65 + 27
----
-3743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT ALL + - COUNT( * ) DIV + 17 + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL + - COUNT ( * ) / + 17 + 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT + - COUNT( ALL + 84 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + - COUNT ( ALL + 84 ) AS col2
----
-1

query II rowsort
SELECT DISTINCT + - 99 AS col0, - 50 AS col0
----
-99
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4989
SELECT ALL - - 51 * 24 * - ( 21 ) + - + 74 * 28, - COUNT( * ) + + COUNT( * ) + - 8 AS col0
----
-27776
-8

skipif mysql # not compatible
query II rowsort label-4989
SELECT ALL - - 51 * 24 * - ( 21 ) + - + 74 * 28, - COUNT ( * ) + + COUNT ( * ) + - 8 AS col0
----
-27776
-8

query I rowsort
SELECT + 43 * - 80 AS col0
----
-3440

query II rowsort
SELECT DISTINCT + - 83 AS col0, 90
----
-83
90

query I rowsort
SELECT DISTINCT + + 22 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + MAX( ALL + - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-4993
SELECT + MAX ( ALL + - 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4994
SELECT + CAST( - - COUNT( 7 ) AS SIGNED ) DIV COUNT( * ), COUNT( * ) * - 55 * - - ( + - ( - + 58 ) ) col0
----
1
-3190

skipif mysql # not compatible
query II rowsort label-4994
SELECT + CAST ( - - COUNT ( 7 ) AS INTEGER ) / COUNT ( * ), COUNT ( * ) * - 55 * - - ( + - ( - + 58 ) ) col0
----
1
-3190

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4995
SELECT - 10 * + CAST( NULL AS DECIMAL ) + + + CAST( - - NULLIF ( 70, + 15 ) AS SIGNED ) AS col0, - 85 / 32 + + CAST( NULL AS DECIMAL ) / + 90 * + 92
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4995
SELECT - 10 * + CAST ( NULL AS REAL ) + + + CAST ( - - NULLIF ( 70, + 15 ) AS INTEGER ) AS col0, - 85 / 32 + + CAST ( NULL AS REAL ) / + 90 * + 92
----
NULL
NULL

query I rowsort
SELECT ( 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4997
SELECT DISTINCT - COUNT( * ) DIV 91 + - 0 AS col1, + 39 * - - 53
----
0
2067

skipif mysql # not compatible
query II rowsort label-4997
SELECT DISTINCT - COUNT ( * ) / 91 + - 0 AS col1, + 39 * - - 53
----
0
2067

query I rowsort
SELECT ALL + COALESCE ( - 55, + - 10, - 66 ) AS col2
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-4999
SELECT - + 97 AS col2, + 44 + + - 38 DIV 10 + 65 AS col0
----
-97
106

skipif mysql # not compatible
query II rowsort label-4999
SELECT - + 97 AS col2, + 44 + + - 38 / 10 + 65 AS col0
----
-97
106

query I rowsort
SELECT + 78 + + 93
----
171

query II rowsort
SELECT + 54 + + - 19 AS col1, 50 AS col1
----
35
50

query I rowsort
SELECT + 30 + 0 AS col1
----
30

query I rowsort
SELECT - 36 * + + 30 AS col2
----
-1080

query I rowsort
SELECT DISTINCT 71 + - - 20 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL - 7 + 96 * - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - 7 + 96 * - - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5006
SELECT - 0 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT DISTINCT COUNT( DISTINCT + 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT COUNT ( DISTINCT + 76 ) AS col0
----
1

query I rowsort
SELECT - 69 col1
----
-69

query I rowsort
SELECT ALL - 7 * 10 * 92 * + 86
----
-553840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5010
SELECT + 64 + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT + 64 + - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT - 70 * ( 13 )
----
-910

query I rowsort
SELECT - ( - 73 ) - 90 * 8 + + 73
----
-574

query I rowsort
SELECT ALL + 35 * - 92 * + - 63 AS col2
----
202860

query I rowsort
SELECT 60 + 0 AS col0
----
60

query I rowsort
SELECT 95 - + - ( + 7 ) AS col1
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-5016
SELECT DISTINCT + COUNT( * ) * 36, + 65 + + 30 AS col0
----
36
95

skipif mysql # not compatible
query II rowsort label-5016
SELECT DISTINCT + COUNT ( * ) * 36, + 65 + + 30 AS col0
----
36
95

query II rowsort
SELECT ALL 98 * 2 col2, 10 col2
----
196
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL + - 99 * + COUNT( + 18 ) * + 78 + + 62 AS col1
----
-7660

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + - 99 * + COUNT ( + 18 ) * + 78 + + 62 AS col1
----
-7660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5019
SELECT + - 20 DIV - COUNT( * ) + + - 98 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5019
SELECT + - 20 / - COUNT ( * ) + + - 98 AS col0
----
-78

query I rowsort
SELECT - ( - 13 ) * 84 AS col1
----
1092

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT 35 DIV - 86 * 21 * - 45 * + - 43 * 11 + - COALESCE ( - + 1, 48, + 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5021
SELECT 35 / - 86 * 21 * - 45 * + - 43 * 11 + - COALESCE ( - + 1, 48, + 81 ) AS col1
----
1

query I rowsort
SELECT 41 * + + 13 AS col0
----
533

query I rowsort
SELECT ALL 60 + - 15 - - - 22
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5024
SELECT - - 40 * + 77 + NULLIF ( - 45, + COUNT( * ) * + CASE - + COUNT( * ) WHEN + 8 THEN - - 65 END ) AS col0, + 11 + + SUM( + ( + 96 ) ) AS col0
----
3035
107

skipif mysql # not compatible
query II rowsort label-5024
SELECT - - 40 * + 77 + NULLIF ( - 45, + COUNT ( * ) * + CASE - + COUNT ( * ) WHEN + 8 THEN - - 65 END ) AS col0, + 11 + + SUM ( + ( + 96 ) ) AS col0
----
3035
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL - 30 * - COUNT( DISTINCT 58 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - 30 * - COUNT ( DISTINCT 58 ) AS col0
----
30

query I rowsort
SELECT 20 + - 16 AS col0
----
4

query I rowsort
SELECT DISTINCT - + 81 + - 43 AS col2
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT ALL - + 31 + - 38 + + + 88 DIV - + 46 * - COUNT( + - 4 ) + + 59 * + 25 AS col2
----
1407

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - + 31 + - 38 + + + 88 / - + 46 * - COUNT ( + - 4 ) + + 59 * + 25 AS col2
----
1407

query I rowsort
SELECT CASE - 33 WHEN + 5 THEN + 80 + + 7 WHEN - - COALESCE ( - 14, - - 11 ) THEN - + 59 ELSE NULL END * - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT + MIN( + 32 ) + - - 86
----
118

skipif mysql # not compatible
query I rowsort label-5030
SELECT + MIN ( + 32 ) + - - 86
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + 84 * ( 52 ) + + - COALESCE ( 5, - MAX( ALL - 70 ) ) AS col0
----
4363

skipif mysql # not compatible
query I rowsort label-5032
SELECT + 84 * ( 52 ) + + - COALESCE ( 5, - MAX ( ALL - 70 ) ) AS col0
----
4363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT ALL COUNT( * ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL COUNT ( * ) / 94 AS col2
----
0

query I rowsort
SELECT DISTINCT + ( 96 ) + - + 86
----
10

query I rowsort
SELECT ALL 18 - + 54 AS col1
----
-36

query I rowsort
SELECT 41 * 25 * + - 40
----
-41000

query I rowsort
SELECT 31 * - - 67 col2
----
2077

query I rowsort
SELECT 86 + + 97 AS col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT 81 * - COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT 81 * - COUNT ( * ) AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT DISTINCT - + 25 DIV - 90 * - 16 * + 63
----
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT - + 25 / - 90 * - 16 * + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL - CASE - NULLIF ( ( + 9 ), 39 ) WHEN - 99 THEN NULL ELSE SUM( DISTINCT + + ( - 7 ) ) END
----
7

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL - CASE - NULLIF ( ( + 9 ), 39 ) WHEN - 99 THEN NULL ELSE SUM ( DISTINCT + + ( - 7 ) ) END
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT + COUNT( * ) + COUNT( * ) + - ( + 96 ) * 72 * MAX( DISTINCT + 48 )
----
-331774

skipif mysql # not compatible
query I rowsort label-5042
SELECT + COUNT ( * ) + COUNT ( * ) + - ( + 96 ) * 72 * MAX ( DISTINCT + 48 )
----
-331774

query I rowsort
SELECT + - 43 col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5044
SELECT ALL - COUNT( * ) AS col0, 9 * 86 AS col2
----
-1
774

skipif mysql # not compatible
query II rowsort label-5044
SELECT ALL - COUNT ( * ) AS col0, 9 * 86 AS col2
----
-1
774

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT + + 44 DIV - + 26 - + 4
----
-5

skipif mysql # not compatible
query I rowsort label-5045
SELECT + + 44 / - + 26 - + 4
----
-5

query I rowsort
SELECT + + 19 col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5047
SELECT MIN( + 67 ) * - + 94 + + ( + COUNT( - 29 ) ) DIV 64 + - COUNT( * ) * + COUNT( * )
----
-6299

skipif mysql # not compatible
query I rowsort label-5047
SELECT MIN ( + 67 ) * - + 94 + + ( + COUNT ( - 29 ) ) / 64 + - COUNT ( * ) * + COUNT ( * )
----
-6299

query I rowsort
SELECT ALL + - 83 * 77 + 10 AS col2
----
-6381

query I rowsort
SELECT ALL + 50 + - + 8
----
42

query I rowsort
SELECT ALL - COALESCE ( + 61, ( - 17 ) + - 23 ) + ( - 44 ) + + - 33 * + 59 AS col1
----
-2052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5051
SELECT 50 AS col0, 95 + - + COALESCE ( - COUNT( * ), - CAST( + + 52 AS SIGNED ) - + SUM( ALL + 32 ), + + 25 * - 60 ) + - 90 col1
----
50
6

skipif mysql # not compatible
query II rowsort label-5051
SELECT 50 AS col0, 95 + - + COALESCE ( - COUNT ( * ), - CAST ( + + 52 AS INTEGER ) - + SUM ( ALL + 32 ), + + 25 * - 60 ) + - 90 col1
----
50
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + COUNT( * ) + - - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - - 26 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 93 + + - 39 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT COUNT( * ) * 77 * 28 * 82 + - 65 AS col2
----
176727

skipif mysql # not compatible
query I rowsort label-5054
SELECT COUNT ( * ) * 77 * 28 * 82 + - 65 AS col2
----
176727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5055
SELECT ( + 38 ) - + + CASE + CASE + AVG ( DISTINCT + 57 ) WHEN - - 25 THEN + MIN( ALL 97 ) END WHEN - - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) THEN + ( + + 8 ) * + + 53 * + 72 * + 33 WHEN - 35 THEN NULL WHEN 3 + + 69 * + - 46 THEN 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT ( + 38 ) - + + CASE + CASE + AVG ( DISTINCT + 57 ) WHEN - - 25 THEN + MIN ( ALL 97 ) END WHEN - - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) THEN + ( + + 8 ) * + + 53 * + 72 * + 33 WHEN - 35 THEN NULL WHEN 3 + + 69 * + - 46 THEN 98 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT MIN( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-5056
SELECT MIN ( - 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT CAST( NULL AS SIGNED ) / - 50 * COALESCE ( COUNT( * ), 42 - - 98, - - 97 * + + 90 / 34 * + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT CAST ( NULL AS INTEGER ) / - 50 * COALESCE ( COUNT ( * ), 42 - - 98, - - 97 * + + 90 / 34 * + 26 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT DISTINCT - ( - + COUNT( * ) ) - + ( + 48 ) col0, - 49 * - 96 AS col0
----
-47
4704

skipif mysql # not compatible
query II rowsort label-5059
SELECT DISTINCT - ( - + COUNT ( * ) ) - + ( + 48 ) col0, - 49 * - 96 AS col0
----
-47
4704

query I rowsort
SELECT ALL - 6 * - 17 * - 41
----
-4182

query I rowsort
SELECT ALL - ( - + 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query III rowsort label-5062
SELECT DISTINCT - COUNT( * ) * + 76 AS col0, COUNT( * ) * - - 76, + 21 AS col2
----
-76
76
21

skipif mysql # not compatible
query III rowsort label-5062
SELECT DISTINCT - COUNT ( * ) * + 76 AS col0, COUNT ( * ) * - - 76, + 21 AS col2
----
-76
76
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT ALL 52, + SUM( DISTINCT 89 ) col0
----
52
89

skipif mysql # not compatible
query II rowsort label-5063
SELECT ALL 52, + SUM ( DISTINCT 89 ) col0
----
52
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT ALL + CAST( NULL AS SIGNED ) * - + 46 * - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 46 * - 38 AS col2
----
NULL

query I rowsort
SELECT 41 + + 72
----
113

query I rowsort
SELECT 76 * + 45
----
3420

query I rowsort
SELECT ALL NULLIF ( - 53, - 81 ) AS col0
----
-53

query I rowsort
SELECT - 17 + + + 72
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT ALL COUNT( * ) AS col0, - 16
----
1
-16

skipif mysql # not compatible
query II rowsort label-5069
SELECT ALL COUNT ( * ) AS col0, - 16
----
1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT COUNT( DISTINCT - 39 )
----
1

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT COUNT ( DISTINCT - 39 )
----
1

query I rowsort
SELECT ALL NULLIF ( 16, - + 46 ) AS col0
----
16

query I rowsort
SELECT + ( + 57 ) + + 7 + - 83 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL CASE - + NULLIF ( + - MAX( - - ( + - NULLIF ( + - 27, - ( - - 90 ) ) ) ), 32 ) WHEN - - 16 THEN NULL ELSE - - 0 END
----
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL CASE - + NULLIF ( + - MAX ( - - ( + - NULLIF ( + - 27, - ( - - 90 ) ) ) ), 32 ) WHEN - - 16 THEN NULL ELSE - - 0 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5074
SELECT ALL NULLIF ( 82, + SUM( DISTINCT - 38 ) * + CAST( + - COALESCE ( + 92, + 25 ) AS DECIMAL ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL NULLIF ( 82, + SUM ( DISTINCT - 38 ) * + CAST ( + - COALESCE ( + 92, + 25 ) AS REAL ) ) AS col1
----
82

query I rowsort
SELECT ALL 98 * + 2 AS col1
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT + COUNT( * ) * - CASE - 15 WHEN + 93 + MIN( ALL + 35 ) + 76 + - + 21 * - - 5 + + 48 * + + 67 / 68 THEN NULL ELSE 19 END AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5076
SELECT + COUNT ( * ) * - CASE - 15 WHEN + 93 + MIN ( ALL + 35 ) + 76 + - + 21 * - - 5 + + 48 * + + 67 / 68 THEN NULL ELSE 19 END AS col2
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-5077
SELECT DISTINCT 10 + + 15 + - 16 + 7 DIV + + ( 88 ) AS col2, - 12 * - 46
----
9
552

skipif mysql # not compatible
query II rowsort label-5077
SELECT DISTINCT 10 + + 15 + - 16 + 7 / + + ( 88 ) AS col2, - 12 * - 46
----
9
552

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT ALL - ( 4 ), - 9 * + + 72 * + 47 * + + 17 + + SUM( + 36 ) * + - 73 * + 25 AS col1
----
-4
-583452

skipif mysql # not compatible
query II rowsort label-5078
SELECT ALL - ( 4 ), - 9 * + + 72 * + 47 * + + 17 + + SUM ( + 36 ) * + - 73 * + 25 AS col1
----
-4
-583452

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL MAX( - - 52 ) * + 51 AS col0
----
2652

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL MAX ( - - 52 ) * + 51 AS col0
----
2652

query I rowsort
SELECT + ( + 77 ) * 45 * - ( - 35 )
----
121275

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + + 60 + - 59 + + 74 + COUNT( * ) * 17 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5081
SELECT + + 60 + - 59 + + 74 + COUNT ( * ) * 17 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syn