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 syntax: SIGNED type: 
query I rowsort label-5082
SELECT + 37 - MIN( + CAST( NULL AS SIGNED ) ) - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT + 37 - MIN ( + CAST ( NULL AS INTEGER ) ) - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5083
SELECT 46, + 83 DIV - 10 + + COUNT( * ) AS col2
----
46
-7

skipif mysql # not compatible
query II rowsort label-5083
SELECT 46, + 83 / - 10 + + COUNT ( * ) AS col2
----
46
-7

query I rowsort
SELECT DISTINCT - 32 + + + ( - + 20 ) + + 39
----
-13

query I rowsort
SELECT DISTINCT + ( 49 ) col2
----
49

query I rowsort
SELECT ALL + 63 * 57 AS col1
----
3591

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL + ( 17 ) * - - 14 + COUNT( * ) + + 1 + + 62 + + 20 AS col1
----
322

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + ( 17 ) * - - 14 + COUNT ( * ) + + 1 + + 62 + + 20 AS col1
----
322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5088
SELECT NULLIF ( - 81, + CAST( NULL AS SIGNED ) * - + MAX( - + 30 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-5088
SELECT NULLIF ( - 81, + CAST ( NULL AS INTEGER ) * - + MAX ( - + 30 ) )
----
-81

query II rowsort
SELECT ALL + 70 AS col1, - 42
----
70
-42

query I rowsort
SELECT ALL + + 56 * + - 66 * - 1
----
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL + + 36 * + COUNT( * ) / + 54 * - - 57 * - MAX( CAST( NULL AS SIGNED ) ) * - SUM( DISTINCT + ( - + 75 ) ) + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL + + 36 * + COUNT ( * ) / + 54 * - - 57 * - MAX ( CAST ( NULL AS INTEGER ) ) * - SUM ( DISTINCT + ( - + 75 ) ) + + 27
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5092
SELECT MIN( - 28 ), - 18 * 40 col0, - + 58 col1
----
-28
-720
-58

skipif mysql # not compatible
query III rowsort label-5092
SELECT MIN ( - 28 ), - 18 * 40 col0, - + 58 col1
----
-28
-720
-58

query II rowsort
SELECT + - ( 95 ) AS col2, - NULLIF ( 56, + 92 )
----
-95
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT - 43 DIV - + 78 + - 72
----
-72

skipif mysql # not compatible
query I rowsort label-5094
SELECT - 43 / - + 78 + - 72
----
-72

query I rowsort
SELECT - 53 * + + 41 AS col2
----
-2173

query I rowsort
SELECT ALL 22 * + 42 AS col0
----
924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5097
SELECT - 62 DIV SUM( - 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5097
SELECT - 62 / SUM ( - 37 ) AS col1
----
1

query II rowsort
SELECT - 61, + 60 AS col2
----
-61
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT - 68 * - - 33 + - CAST( + - 50 AS SIGNED ) + + 22 + - - 30
----
-2142

skipif mysql # not compatible
query I rowsort label-5099
SELECT - 68 * - - 33 + - CAST ( + - 50 AS INTEGER ) + + 22 + - - 30
----
-2142

query I rowsort
SELECT DISTINCT + + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT - 76 * - + COUNT( * ) + 71 + + 52
----
199

skipif mysql # not compatible
query I rowsort label-5101
SELECT - 76 * - + COUNT ( * ) + 71 + + 52
----
199

query I rowsort
SELECT - 83 * - + 41
----
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL MIN( DISTINCT 80 ) * - 3
----
-240

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL MIN ( DISTINCT 80 ) * - 3
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5104
SELECT ALL - COUNT( * ) * - + 18 - + 73 * - + CAST( + 93 AS SIGNED ) AS col1
----
6807

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL - COUNT ( * ) * - + 18 - + 73 * - + CAST ( + 93 AS INTEGER ) AS col1
----
6807

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT - ( - ( + 39 ) ) + - - 73 DIV + 31 + + - 59 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-5105
SELECT - ( - ( + 39 ) ) + - - 73 / + 31 + + - 59 AS col2
----
-18

query I rowsort
SELECT + 47 * + 18 * ( + 18 ) AS col2
----
15228

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

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

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

query I rowsort
SELECT DISTINCT + 58 * + 24 * + 63 * 74
----
6489504

query I rowsort
SELECT ALL + 85 * + + 30
----
2550

onlyif mysql # DIV for integer division: 
query II rowsort label-5111
SELECT ALL + 76 * + 23, - 65 DIV + 66 AS col2
----
1748
0

skipif mysql # not compatible
query II rowsort label-5111
SELECT ALL + 76 * + 23, - 65 / + 66 AS col2
----
1748
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT - ( - - 3 ) DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT - ( - - 3 ) / 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5113
SELECT ALL - 13 + 59 * CAST( NULL AS SIGNED ) * MAX( DISTINCT 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL - 13 + 59 * CAST ( NULL AS INTEGER ) * MAX ( DISTINCT 74 )
----
NULL

query I rowsort
SELECT DISTINCT + 59 * + 95 * - 7 * + 8 AS col1
----
-313880

query I rowsort
SELECT ALL - - 37 + - 48 col1
----
-11

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

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

query I rowsort
SELECT + 96 + + - ( + 46 ) AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5118
SELECT ALL - SUM( + + 12 ) AS col1, + CAST( + + 18 AS SIGNED ) * - 27 - 28
----
-12
-514

skipif mysql # not compatible
query II rowsort label-5118
SELECT ALL - SUM ( + + 12 ) AS col1, + CAST ( + + 18 AS INTEGER ) * - 27 - 28
----
-12
-514

query I rowsort
SELECT + + 73 * 17 AS col1
----
1241

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

query I rowsort
SELECT + 50 * 9
----
450

query I rowsort
SELECT DISTINCT 77 * + 2 AS col0
----
154

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT ALL 59 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL 59 / - 39
----
-1

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

query I rowsort
SELECT DISTINCT 94 * - - 3
----
282

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT 58 + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT 58 + + COUNT ( * )
----
59

query I rowsort
SELECT ALL 93 + + 35 col2
----
128

query II rowsort
SELECT 95 * - 69 * - 12, + 70 AS col0
----
78660
70

query I rowsort
SELECT 75 + - 81 + - - 43 * + + 33 AS col0
----
1413

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5133
SELECT ALL + 54 + + 45 * + 9 DIV - COUNT( * )
----
-351

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL + 54 + + 45 * + 9 / - COUNT ( * )
----
-351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5134
SELECT CAST( - CAST( + 87 AS SIGNED ) AS SIGNED ) + - 79 * - - 26
----
-2141

skipif mysql # not compatible
query I rowsort label-5134
SELECT CAST ( - CAST ( + 87 AS INTEGER ) AS INTEGER ) + - 79 * - - 26
----
-2141

query I rowsort
SELECT 20 * 17
----
340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT ALL - + MIN( + CAST( NULL AS SIGNED ) ) + + 75 * - - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL - + MIN ( + CAST ( NULL AS INTEGER ) ) + + 75 * - - 50 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT - COUNT( * ) + - 95 + - 50 AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - COUNT ( * ) + - 95 + - 50 AS col0
----
-146

query I rowsort
SELECT ALL + + 64 * - 15 AS col0
----
-960

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

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

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

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL + COUNT ( - 93 ) + + 87 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5142
SELECT DISTINCT - COUNT( * ) * 40 + + 73 col0, - 56 * + + 56 AS col2
----
33
-3136

skipif mysql # not compatible
query II rowsort label-5142
SELECT DISTINCT - COUNT ( * ) * 40 + + 73 col0, - 56 * + + 56 AS col2
----
33
-3136

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

query I rowsort
SELECT - 38 * + 84
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT MAX( - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5145
SELECT MAX ( - 76 ) AS col0
----
-76

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

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

query I rowsort
SELECT DISTINCT + - 59 - + - 55 * - 50
----
-2809

query I rowsort
SELECT ALL + 56 - + - 58 AS col2
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT DISTINCT + 98 DIV 96
----
1

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + 98 / 96
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT - + CASE - COUNT( * ) WHEN - + 37 THEN + 76 * + + CAST( NULL AS SIGNED ) * 49 * - ( + - 30 ) + - 30 WHEN 26 THEN - - 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - + CASE - COUNT ( * ) WHEN - + 37 THEN + 76 * + + CAST ( NULL AS INTEGER ) * 49 * - ( + - 30 ) + - 30 WHEN 26 THEN - - 37 ELSE NULL END
----
NULL

query II rowsort
SELECT - 29 AS col2, 78
----
-29
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT + 26 * + + 79 + - - 36 * + - COALESCE ( - CAST( - 63 AS SIGNED ), + + 21, - 87, COUNT( * ) - - 42 ) AS col2
----
-214

skipif mysql # not compatible
query I rowsort label-5152
SELECT + 26 * + + 79 + - - 36 * + - COALESCE ( - CAST ( - 63 AS INTEGER ), + + 21, - 87, COUNT ( * ) - - 42 ) AS col2
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT 41 + + - 77 + + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-5153
SELECT 41 + + - 77 + + COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT MIN( + 10 ) + + + 76 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5154
SELECT MIN ( + 10 ) + + + 76 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5155
SELECT + 92 DIV - MIN( ALL - 64 ) - 97 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5155
SELECT + 92 / - MIN ( ALL - 64 ) - 97 AS col2
----
-96

query I rowsort
SELECT ALL 53 * - - 88 AS col1
----
4664

query I rowsort
SELECT ALL + 49 + 22 * 4 AS col0
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT ALL - 85 + + - CAST( 92 AS SIGNED ) AS col1
----
-177

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL - 85 + + - CAST ( 92 AS INTEGER ) AS col1
----
-177

query I rowsort
SELECT ALL - 76 * + 82 * - + 3
----
18696

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL COUNT( ( - 55 ) ) + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL COUNT ( ( - 55 ) ) + - 22
----
-21

query I rowsort
SELECT ALL 94 + - + 57
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT DISTINCT 87 DIV - 76 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT 87 / - 76 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL COUNT( * ) + + 34 * - 46 * + 84 * 36 + 6
----
-4729529

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL COUNT ( * ) + + 34 * - 46 * + 84 * 36 + 6
----
-4729529

query I rowsort
SELECT DISTINCT 5 + 70 AS col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT 85 DIV 20 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5165
SELECT 85 / 20 AS col2
----
4

query I rowsort
SELECT 50 * + + 96 + 73
----
4873

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT - + NULLIF ( - 51, - COUNT( * ) - - COUNT( * ) ) col0
----
51

skipif mysql # not compatible
query I rowsort label-5167
SELECT - + NULLIF ( - 51, - COUNT ( * ) - - COUNT ( * ) ) col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL COUNT( * ) * + + 70 + + 80
----
150

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL COUNT ( * ) * + + 70 + + 80
----
150

query I rowsort
SELECT ALL 25 * - 32
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL 39 - - - NULLIF ( + NULLIF ( - 84, + COUNT( * ) ), + 80 + 15 - + 2 + - 68 * - 51 / + + COUNT( * ) + - + MAX( + 60 ) / - - 83 )
----
123

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL 39 - - - NULLIF ( + NULLIF ( - 84, + COUNT ( * ) ), + 80 + 15 - + 2 + - 68 * - 51 / + + COUNT ( * ) + - + MAX ( + 60 ) / - - 83 )
----
123

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

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

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

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

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

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

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

query I rowsort
SELECT - 72 * + + 34
----
-2448

query I rowsort
SELECT ALL - 69 * + 88 * + 68 * - 30 - + 2
----
12386878

query I rowsort
SELECT - 85 - 14
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT + 38 DIV COUNT( * ) * - + 65 + - ( CASE 99 WHEN + COUNT( * ) + 13 THEN NULL WHEN + 48 DIV + - 22 THEN NULL ELSE - 45 END )
----
-2425

skipif mysql # not compatible
query I rowsort label-5178
SELECT + 38 / COUNT ( * ) * - + 65 + - ( CASE 99 WHEN + COUNT ( * ) + 13 THEN NULL WHEN + 48 / + - 22 THEN NULL ELSE - 45 END )
----
-2425

query I rowsort
SELECT 4 * ( + - 76 ) AS col1
----
-304

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT - ( + - 34 ) AS col0, MAX( - 99 )
----
34
-99

skipif mysql # not compatible
query II rowsort label-5180
SELECT - ( + - 34 ) AS col0, MAX ( - 99 )
----
34
-99

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

skipif mysql # not compatible
query I rowsort label-5181
SELECT + MIN ( - CAST ( + - 27 AS INTEGER ) )
----
27

query I rowsort
SELECT - 42 * - 80 * + - 92 AS col2
----
-309120

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT + 88 DIV - - 5 - + 78 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-5183
SELECT + 88 / - - 5 - + 78 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL - 20 * + 88 + - CASE + 45 WHEN + 36 THEN NULL ELSE - 54 * COUNT( * ) END AS col2
----
-1706

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL - 20 * + 88 + - CASE + 45 WHEN + 36 THEN NULL ELSE - 54 * COUNT ( * ) END AS col2
----
-1706

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT + ( + + 10 ) * + 43 + 86 * - COUNT( * ) AS col2
----
344

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT + ( + + 10 ) * + 43 + 86 * - COUNT ( * ) AS col2
----
344

query I rowsort
SELECT + 48 col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL 44 * + 64 * COUNT( + 67 ) + + 11
----
2827

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL 44 * + 64 * COUNT ( + 67 ) + + 11
----
2827

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT DISTINCT 69 * 46 * - 25 * - ( + 74 ) + + CASE - - 64 WHEN + 42 + - - 95 - 50 THEN - - CAST( 24 AS SIGNED ) WHEN - + CASE + + 63 WHEN - 11 + 11 THEN 75 * 91 * - 13 END THEN NULL END * 56 + ( - + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT 69 * 46 * - 25 * - ( + 74 ) + + CASE - - 64 WHEN + 42 + - - 95 - 50 THEN - - CAST ( 24 AS INTEGER ) WHEN - + CASE + + 63 WHEN - 11 + 11 THEN 75 * 91 * - 13 END THEN NULL END * 56 + ( - + 22 )
----
NULL

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

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

query I rowsort
SELECT - 88 * 18 AS col1
----
-1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5192
SELECT COALESCE ( - + COUNT( * ), + 77 * - + 80 DIV - 42, - + 89 + + 8 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5192
SELECT COALESCE ( - + COUNT ( * ), + 77 * - + 80 / - 42, - + 89 + + 8 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT ALL 81 * 80 + + 80 DIV - 49
----
6479

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL 81 * 80 + + 80 / - 49
----
6479

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT - COUNT( ALL - + 71 ) - - ( 44 ) + - 77 * 96 * + - 30 - ( + COUNT( * ) ) * + 99
----
221704

skipif mysql # not compatible
query I rowsort label-5194
SELECT - COUNT ( ALL - + 71 ) - - ( 44 ) + - 77 * 96 * + - 30 - ( + COUNT ( * ) ) * + 99
----
221704

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL 87 * + COUNT( * ) + + 25 + SUM( + ( ( + 61 ) ) ) + - 37 * - - 52 * + 0 * - - COUNT( * )
----
173

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL 87 * + COUNT ( * ) + + 25 + SUM ( + ( ( + 61 ) ) ) + - 37 * - - 52 * + 0 * - - COUNT ( * )
----
173

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

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

query I rowsort
SELECT ALL - 38 * - 62 * + - 51 + - - 92 * + 22 * + 95 AS col2
----
72124

query II rowsort
SELECT DISTINCT + 62 col2, - 19 + - - 22 AS col2
----
62
3

query I rowsort
SELECT DISTINCT 93 * + 2 - - 42 AS col2
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT CAST( NULL AS SIGNED ) - + COALESCE ( 85, - 11 + COUNT( * ), - 74 * - 85 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + COALESCE ( 85, - 11 + COUNT ( * ), - 74 * - 85 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT - COUNT( ALL ( - 54 ) ) * - 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5201
SELECT - COUNT ( ALL ( - 54 ) ) * - 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + 92 * SUM( + 45 ) col0
----
4140

skipif mysql # not compatible
query I rowsort label-5202
SELECT + 92 * SUM ( + 45 ) col0
----
4140

query I rowsort
SELECT - 62 + + 9 AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT - CASE 39 WHEN 28 + + SUM( ALL 78 ) * - 32 THEN - COALESCE ( - 76, - 77 + - COALESCE ( - 5, - 67, + 71 - - CASE - 36 WHEN + 81 * - 97 THEN + COUNT( * ) WHEN ( 39 ) + 51 * CAST( NULL AS SIGNED ) THEN NULL WHEN - 32 THEN - 59 END * 64 ) * ( + 98 ) ) WHEN + 75 THEN - 31 * NULLIF ( - 37, 32 / 39 ) + + ( 26 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT - CASE 39 WHEN 28 + + SUM ( ALL 78 ) * - 32 THEN - COALESCE ( - 76, - 77 + - COALESCE ( - 5, - 67, + 71 - - CASE - 36 WHEN + 81 * - 97 THEN + COUNT ( * ) WHEN ( 39 ) + 51 * CAST ( NULL AS INTEGER ) THEN NULL WHEN - 32 THEN - 59 END * 64 ) * ( + 98 ) ) WHEN + 75 THEN - 31 * NULLIF ( - 37, 32 / 39 ) + + ( 26 ) END col2
----
NULL

query I rowsort
SELECT + 27 * 39 AS col1
----
1053

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

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

query I rowsort
SELECT + 44 - ( + 47 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT ALL COUNT( 17 ) DIV - COUNT( * )
----
-1

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

query I rowsort
SELECT + 56 * 57
----
3192

query I rowsort
SELECT + 15 + + 34
----
49

query I rowsort
SELECT + 20 - - 26 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT - NULLIF ( 64, MAX( + 51 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5212
SELECT - NULLIF ( 64, MAX ( + 51 ) ) AS col2
----
-64

query I rowsort
SELECT + 91 + 25
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-5214
SELECT + 8 DIV 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5214
SELECT + 8 / 49 AS col1
----
0

query I rowsort
SELECT ALL 79 * - NULLIF ( 13, - 17 + - NULLIF ( - 90, 33 / - 15 ) ) AS col2
----
-1027

query I rowsort
SELECT + 84 + ( 51 )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT COALESCE ( + COUNT( * ), + 86 ) * + CASE COUNT( * ) WHEN - 21 - + ( 15 + - 58 / ( - 13 ) ) THEN + COUNT( * ) / - 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 86 ) * + CASE COUNT ( * ) WHEN - 21 - + ( 15 + - 58 / ( - 13 ) ) THEN + COUNT ( * ) / - 86 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT + COUNT( DISTINCT 76 ) + 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5218
SELECT + COUNT ( DISTINCT 76 ) + 48 AS col2
----
49

query I rowsort
SELECT ALL ( - 79 ) + - 2 AS col1
----
-81

query I rowsort
SELECT ALL 43 * + 66 AS col0
----
2838

query I rowsort
SELECT + 66 + - 17
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL COUNT( * ) + 77 * - 52
----
-4003

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL COUNT ( * ) + 77 * - 52
----
-4003

query I rowsort
SELECT ALL - 48 + - 85 * - 89
----
7517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT ALL 72 DIV 21 + + MAX( ALL 94 - 40 )
----
57

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL 72 / 21 + + MAX ( ALL 94 - 40 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT + 84 / CAST( NULL AS SIGNED ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT + 84 / CAST ( NULL AS INTEGER ) + + 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT DISTINCT 97 DIV - 21 + 10 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT 97 / - 21 + 10 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT ALL 77 DIV + 69 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL 77 / + 69 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5230
SELECT DISTINCT 34 DIV - ( + 56 ) + ( - MAX( COALESCE ( - 28, 83 + - 66 ) ) ) * - 51 AS col0
----
-1428

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT 34 / - ( + 56 ) + ( - MAX ( COALESCE ( - 28, 83 + - 66 ) ) ) * - 51 AS col0
----
-1428

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT + CASE 86 WHEN - 2 THEN NULL WHEN COUNT( * ) + + 30 THEN ( 47 ) END + - CAST( NULL AS SIGNED ) * + AVG ( - 3 + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT + CASE 86 WHEN - 2 THEN NULL WHEN COUNT ( * ) + + 30 THEN ( 47 ) END + - CAST ( NULL AS INTEGER ) * + AVG ( - 3 + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT - COUNT( * ) * 75 - 49 col2
----
-124

skipif mysql # not compatible
query I rowsort label-5233
SELECT - COUNT ( * ) * 75 - 49 col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT - 34 - - COUNT( * ) * - 59 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5234
SELECT - 34 - - COUNT ( * ) * - 59 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL + CASE WHEN ( - 33 ) NOT BETWEEN ( NULL ) AND + 94 / + 62 THEN NULL ELSE CASE COUNT( * ) WHEN + 10 THEN NULL WHEN 33 THEN NULL WHEN 4 THEN 26 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL + CASE WHEN ( - 33 ) NOT BETWEEN ( NULL ) AND + 94 / + 62 THEN NULL ELSE CASE COUNT ( * ) WHEN + 10 THEN NULL WHEN 33 THEN NULL WHEN 4 THEN 26 END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5236
SELECT ALL - COALESCE ( 65, 16 * 73 - - 13 ) * 22 - + 6 DIV + COUNT( * ) col2
----
-1436

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - COALESCE ( 65, 16 * 73 - - 13 ) * 22 - + 6 / + COUNT ( * ) col2
----
-1436

query I rowsort
SELECT - 77 * - 49 + 26 col2
----
3799

query I rowsort
SELECT 87 * - 39 + - 0
----
-3393

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL 95 * 34 - - COUNT( + 90 - 99 ) * - 16 AS col1
----
3214

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL 95 * 34 - - COUNT ( + 90 - 99 ) * - 16 AS col1
----
3214

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL + SUM( CASE + 62 WHEN 0 * - 67 THEN - 48 ELSE NULL END ) / + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + SUM ( CASE + 62 WHEN 0 * - 67 THEN - 48 ELSE NULL END ) / + 79 AS col2
----
NULL

query I rowsort
SELECT - 75 + - 74
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - - COUNT( 16 ) + NULLIF ( 74 - 94, - COUNT( * ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5242
SELECT - - COUNT ( 16 ) + NULLIF ( 74 - 94, - COUNT ( * ) ) AS col1
----
-19

query I rowsort
SELECT + + 49 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT - SUM( ALL 71 ) * 8
----
-568

skipif mysql # not compatible
query I rowsort label-5244
SELECT - SUM ( ALL 71 ) * 8
----
-568

query I rowsort
SELECT DISTINCT - + 28 * 12
----
-336

query I rowsort
SELECT ALL - NULLIF ( + 66, + 78 ) * + ( - 89 * 84 ) AS col2
----
493416

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT - + MAX( ALL + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5248
SELECT - + MAX ( ALL + 33 ) AS col1
----
-33

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

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

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

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

query I rowsort
SELECT - - CASE 62 WHEN 64 * - 42 THEN 88 WHEN + 17 THEN NULL END
----
NULL

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

query I rowsort
SELECT DISTINCT - 67 * 28 + 3 AS col0
----
-1873

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

query I rowsort
SELECT ALL 51 + 94
----
145

query I rowsort
SELECT 44 - 18
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - COUNT( * ) - - 85 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5257
SELECT - COUNT ( * ) - - 85 AS col2
----
84

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

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

query I rowsort
SELECT ALL + + 19 + - 22
----
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5261
SELECT DISTINCT - COALESCE ( - 97, + 56 + + NULLIF ( + COUNT( * ), 18 - - COUNT( ALL 23 ) ) * + 27 ) + - 4 DIV + 15
----
97

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT - COALESCE ( - 97, + 56 + + NULLIF ( + COUNT ( * ), 18 - - COUNT ( ALL 23 ) ) * + 27 ) + - 4 / + 15
----
97

query I rowsort
SELECT 76 + - 60 AS col0
----
16

query I rowsort
SELECT ALL 77 * - 3 AS col0
----
-231

query I rowsort
SELECT DISTINCT 36 * + + 80 AS col2
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL 94 + - - COUNT( * ) + 11 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL 94 + - - COUNT ( * ) + 11 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT SUM( + + 0 ) * - 54
----
0

skipif mysql # not compatible
query I rowsort label-5266
SELECT SUM ( + + 0 ) * - 54
----
0

query I rowsort
SELECT 11 + + 6 AS col0
----
17

query I rowsort
SELECT 14 * 72 AS col0
----
1008

query I rowsort
SELECT - 73 * 91 + 50 AS col0
----
-6593

query I rowsort
SELECT ALL 93 - + + 33 + + 14
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT - MIN( + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT - MIN ( + 57 ) AS col2
----
-57

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

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

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

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

query I rowsort
SELECT DISTINCT + 82 * COALESCE ( - 69, - 81, - 21 )
----
-5658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5275
SELECT DISTINCT COUNT( * ) DIV SUM( 3 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT COUNT ( * ) / SUM ( 3 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ( + 52 ) * + ( - 64 + 41 * COUNT( * ) )
----
-1196

skipif mysql # not compatible
query I rowsort label-5276
SELECT ( + 52 ) * + ( - 64 + 41 * COUNT ( * ) )
----
-1196

query I rowsort
SELECT 29 * - 17
----
-493

query I rowsort
SELECT ( - 35 ) - - 46 AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT 36 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT 36 / - 84
----
0

query I rowsort
SELECT DISTINCT + 97 * 45
----
4365

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT NULLIF ( 38, 32 ) * ( 50 ) + - COUNT( - 21 + + ( ( - 90 ) ) ) * + 10
----
1890

skipif mysql # not compatible
query I rowsort label-5281
SELECT NULLIF ( 38, 32 ) * ( 50 ) + - COUNT ( - 21 + + ( ( - 90 ) ) ) * + 10
----
1890

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

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - - COALESCE ( COUNT ( ALL ( 47 ) ), 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5283
SELECT 41 DIV COUNT( * ) * MIN( - 31 DIV - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-5283
SELECT 41 / COUNT ( * ) * MIN ( - 31 / - 95 )
----
0

query I rowsort
SELECT ( - - 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - ( + 72 ) - MIN( + 67 )
----
-139

skipif mysql # not compatible
query I rowsort label-5285
SELECT - ( + 72 ) - MIN ( + 67 )
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT ( + 39 ) DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-5286
SELECT ( + 39 ) / 29
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5287
SELECT ALL + COALESCE ( - 13, 6 DIV 60 ) + COUNT( * ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL + COALESCE ( - 13, 6 / 60 ) + COUNT ( * ) col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT - 38 - + - 77 * CAST( 67 AS SIGNED )
----
5121

skipif mysql # not compatible
query I rowsort label-5288
SELECT - 38 - + - 77 * CAST ( 67 AS INTEGER )
----
5121

query I rowsort
SELECT ALL - 81 / 76 * CASE 87 * ( 11 ) WHEN 77 * + 24 THEN 68 WHEN + 51 + 66 THEN NULL END AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL + - 58 + + 52 + - COUNT( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 83
----
-6

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + - 58 + + 52 + - COUNT ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 83
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT - 5 + - 50 + ( 96 - COALESCE ( 8, - 99 * + COUNT( * ) ) ) DIV COALESCE ( + 81 * 20, MIN( DISTINCT + 66 ) ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-5292
SELECT - 5 + - 50 + ( 96 - COALESCE ( 8, - 99 * + COUNT ( * ) ) ) / COALESCE ( + 81 * 20, MIN ( DISTINCT + 66 ) ) col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL - CASE AVG ( DISTINCT 64 ) WHEN 49 * + 69 THEN NULL WHEN COUNT( * ) * COALESCE ( - 25, - NULLIF ( 80, 97 * - COUNT( * ) ), 16 ) + COUNT( * ) THEN 80 ELSE CAST( 55 AS SIGNED ) + - NULLIF ( - 8, - 23 * - 50 ) END AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - CASE AVG ( DISTINCT 64 ) WHEN 49 * + 69 THEN NULL WHEN COUNT ( * ) * COALESCE ( - 25, - NULLIF ( 80, 97 * - COUNT ( * ) ), 16 ) + COUNT ( * ) THEN 80 ELSE CAST ( 55 AS INTEGER ) + - NULLIF ( - 8, - 23 * - 50 ) END AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT 82 * + + 23 * CASE + ( + 39 ) WHEN 53 / 28 THEN ( - 87 ) WHEN + 23 + - COUNT( * ) THEN NULL END + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT 82 * + + 23 * CASE + ( + 39 ) WHEN 53 / 28 THEN ( - 87 ) WHEN + 23 + - COUNT ( * ) THEN NULL END + + 15
----
NULL

query I rowsort
SELECT ALL - - 79 + - 8 + - 39
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT DISTINCT - - NULLIF ( + + ( CASE 67 WHEN + 95 + 99 THEN + 24 * 18 WHEN 67 / + 1 + - COUNT( * ) * 52 THEN NULL ELSE NULL END ), + 55 ) + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT - - NULLIF ( + + ( CASE 67 WHEN + 95 + 99 THEN + 24 * 18 WHEN 67 / + 1 + - COUNT ( * ) * 52 THEN NULL ELSE NULL END ), + 55 ) + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - COUNT( ALL - + 15 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - COUNT ( ALL - + 15 ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT DISTINCT COALESCE ( 5, COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT COALESCE ( 5, COUNT ( * ) )
----
5

query I rowsort
SELECT DISTINCT - NULLIF ( - - 21, - 35 )
----
-21

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT DISTINCT - 85 + - 52 + + CAST( - 51 AS SIGNED ) - 20 * MAX( - 70 * + 35 )
----
48812

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT - 85 + - 52 + + CAST ( - 51 AS INTEGER ) - 20 * MAX ( - 70 * + 35 )
----
48812

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL + 31 + NULLIF ( + 92, NULLIF ( COUNT( * ), + COUNT( * ) + + 23 ) + 67 * + ( - ( + 25 ) * - ( COUNT( * ) ) ) )
----
123

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + 31 + NULLIF ( + 92, NULLIF ( COUNT ( * ), + COUNT ( * ) + + 23 ) + 67 * + ( - ( + 25 ) * - ( COUNT ( * ) ) ) )
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT 60 * + CAST( + ( + 25 ) AS SIGNED ) AS col2
----
1500

skipif mysql # not compatible
query I rowsort label-5303
SELECT 60 * + CAST ( + ( + 25 ) AS INTEGER ) AS col2
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL - 67 - + - SUM( + 50 )
----
-17

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL - 67 - + - SUM ( + 50 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT 75 + - MIN( 82 )
----
-7

skipif mysql # not compatible
query I rowsort label-5305
SELECT 75 + - MIN ( 82 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5306
SELECT CAST( NULL AS SIGNED ) * + 74 / COALESCE ( 94, + 61 + SUM( ALL - ( - 9 ) ) / ( + 73 + 12 * 46 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT CAST ( NULL AS INTEGER ) * + 74 / COALESCE ( 94, + 61 + SUM ( ALL - ( - 9 ) ) / ( + 73 + 12 * 46 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT ALL 23 DIV + + 35 * COALESCE ( 51, - 93 - 52 * 22 )
----
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL 23 / + + 35 * COALESCE ( 51, - 93 - 52 * 22 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5308
SELECT - 1 AS col2, + 0 * - NULLIF ( - ( 4 ), 39 ) DIV + 47
----
-1
0

skipif mysql # not compatible
query II rowsort label-5308
SELECT - 1 AS col2, + 0 * - NULLIF ( - ( 4 ), 39 ) / + 47
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT 4 DIV - + 12 * + MIN( ALL - 30 ) * 99
----
0

skipif mysql # not compatible
query I rowsort label-5309
SELECT 4 / - + 12 * + MIN ( ALL - 30 ) * 99
----
0

query I rowsort
SELECT ALL - AVG ( ALL NULLIF ( + 46, - 49 / 4 + 52 ) ) / CASE - 72 WHEN + 1 + + 79 THEN 98 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT - ( - COUNT( CASE 1 WHEN + 90 * - 14 THEN 32 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - ( - COUNT ( CASE 1 WHEN + 90 * - 14 THEN 32 END ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT COALESCE ( 29, - COUNT( * ) + ( + 64 ) ) * - 30 AS col0
----
-870

skipif mysql # not compatible
query I rowsort label-5312
SELECT COALESCE ( 29, - COUNT ( * ) + ( + 64 ) ) * - 30 AS col0
----
-870

query I rowsort
SELECT DISTINCT 22 * + - 72 * - 57 AS col2
----
90288

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL MAX( DISTINCT 88 ) * - + 21 * 79 col1
----
-145992

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL MAX ( DISTINCT 88 ) * - + 21 * 79 col1
----
-145992

query I rowsort
SELECT ALL 40 * - - 55 * - 41
----
-90200

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT 94 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-5316
SELECT 94 / + 50
----
1

query I rowsort
SELECT 29 * + 40 AS col2
----
1160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5318
SELECT 23 DIV - 99 * COALESCE ( + 42, COUNT( * ) * CAST( NULL AS SIGNED ) + COUNT( * ) ) + 43
----
43

skipif mysql # not compatible
query I rowsort label-5318
SELECT 23 / - 99 * COALESCE ( + 42, COUNT ( * ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) ) + 43
----
43

query II rowsort
SELECT DISTINCT - 71 col1, + 62 - + 92
----
-71
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT NULLIF ( - + 51, + + CASE 18 WHEN + COUNT( * ) * - 72 THEN COUNT( * ) ELSE - 44 * + 70 END ) + - 72 DIV ( 1 * - 86 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5320
SELECT NULLIF ( - + 51, + + CASE 18 WHEN + COUNT ( * ) * - 72 THEN COUNT ( * ) ELSE - 44 * + 70 END ) + - 72 / ( 1 * - 86 ) AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT - 93 DIV + 96 * 6 - - 52
----
52

skipif mysql # not compatible
query I rowsort label-5321
SELECT - 93 / + 96 * 6 - - 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT MAX( + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5322
SELECT MAX ( + 82 ) AS col1
----
82

query I rowsort
SELECT ( 87 ) * - 74 + - 46 + - 93 AS col1
----
-6577

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT ALL 11 * + + CAST( - ( 9 ) AS SIGNED ) + - 14 + + 15 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL 11 * + + CAST ( - ( 9 ) AS INTEGER ) + - 14 + + 15 AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5326
SELECT - - 95 * - - CAST( NULL AS SIGNED ) * 44 * 8 - - 73 + + 34 * SUM( + 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT - - 95 * - - CAST ( NULL AS INTEGER ) * 44 * 8 - - 73 + + 34 * SUM ( + 29 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5328
SELECT DISTINCT - + COALESCE ( 73, - COUNT( - 75 ) DIV - 63 ) * 90 + 3 AS col2
----
-6567

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - + COALESCE ( 73, - COUNT ( - 75 ) / - 63 ) * 90 + 3 AS col2
----
-6567

query I rowsort
SELECT ALL + 52 + + 94 col1
----
146

query I rowsort
SELECT - 36 + + - 51 col1
----
-87

query I rowsort
SELECT ALL - 41 + - 68 - - 39 col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5332
SELECT + - COUNT( * ) AS col1, + NULLIF ( 26, + 32 / 29 )
----
-1
26

skipif mysql # not compatible
query II rowsort label-5332
SELECT + - COUNT ( * ) AS col1, + NULLIF ( 26, + 32 / 29 )
----
-1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT + - COUNT( 96 ) * + 69 + - 40 * 82
----
-3349

skipif mysql # not compatible
query I rowsort label-5333
SELECT + - COUNT ( 96 ) * + 69 + - 40 * 82
----
-3349

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT ALL - 91 + - - COALESCE ( 40, - 68 ) + + ( - CAST( 93 AS SIGNED ) ) AS col0
----
-144

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - 91 + - - COALESCE ( 40, - 68 ) + + ( - CAST ( 93 AS INTEGER ) ) AS col0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT + ( + NULLIF ( + 37, + 94 / - SUM( ALL ( + 18 ) ) + - 26 * 91 ) ) * + 28 + 51 col2
----
1087

skipif mysql # not compatible
query I rowsort label-5336
SELECT + ( + NULLIF ( + 37, + 94 / - SUM ( ALL ( + 18 ) ) + - 26 * 91 ) ) * + 28 + 51 col2
----
1087

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

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL + COUNT ( * ) + - 98 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - COUNT( * ) * - 80 * + 20
----
1600

skipif mysql # not compatible
query I rowsort label-5338
SELECT - COUNT ( * ) * - 80 * + 20
----
1600

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

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - COUNT ( * ) / + ( COUNT ( - 80 ) ) AS col0
----
-1

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

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

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

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

query I rowsort
SELECT ALL - 99 - + ( + 7 ) * 76 * 3 + 83 * - 6
----
-2193

query I rowsort
SELECT + 60 * + 31 AS col0
----
1860

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

skipif mysql # not compatible
query I rowsort label-5345
SELECT + ( COUNT ( * ) ) - COUNT ( * ) - 56 + - COUNT ( ALL + 20 ) * 0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT ALL MIN( - - 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL MIN ( - - 85 ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5347
SELECT ALL NULLIF ( - 10, - - 83 - 94 - 52 DIV - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL NULLIF ( - 10, - - 83 - 94 - 52 / - 51 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 56, - 16 + - 35 )
----
56

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

query I rowsort
SELECT ALL - 27 * ( - 86 ) AS col2
----
2322

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT DISTINCT CASE 25 WHEN - CAST( NULL AS SIGNED ) THEN - 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT CASE 25 WHEN - CAST ( NULL AS INTEGER ) THEN - 12 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT - 76 * + COUNT( DISTINCT - 13 )
----
-76

skipif mysql # not compatible
query I rowsort label-5356
SELECT - 76 * + COUNT ( DISTINCT - 13 )
----
-76

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

query I rowsort
SELECT - 40 * + 97
----
-3880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT 92 * + 49 + + - COUNT( 25 ) DIV 91 col0
----
4508

skipif mysql # not compatible
query I rowsort label-5359
SELECT 92 * + 49 + + - COUNT ( 25 ) / 91 col0
----
4508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5360
SELECT + CASE 40 WHEN 19 / - - 60 - + 86 THEN CAST( 58 AS SIGNED ) * ( + 10 ) ELSE COALESCE ( + CAST( NULL AS SIGNED ), + 39 + - 30, - MAX( + 28 ) ) END
----
9

skipif mysql # not compatible
query I rowsort label-5360
SELECT + CASE 40 WHEN 19 / - - 60 - + 86 THEN CAST ( 58 AS INTEGER ) * ( + 10 ) ELSE COALESCE ( + CAST ( NULL AS INTEGER ), + 39 + - 30, - MAX ( + 28 ) ) END
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL - COUNT( * ) * 29 + + - 43
----
-72

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL - COUNT ( * ) * 29 + + - 43
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5362
SELECT ALL MAX( + CAST( + 41 AS SIGNED ) ) * + - 56 + - 84 DIV 51
----
-2297

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL MAX ( + CAST ( + 41 AS INTEGER ) ) * + - 56 + - 84 / 51
----
-2297

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT - 92 DIV 89 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT - 92 / 89 / + 22
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5364
SELECT DISTINCT - 14 * + 48 AS col2, - COUNT( * )
----
-672
-1

skipif mysql # not compatible
query II rowsort label-5364
SELECT DISTINCT - 14 * + 48 AS col2, - COUNT ( * )
----
-672
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL 83 * - - COUNT( * ) + SUM( ALL - 0 ) + + 69
----
152

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL 83 * - - COUNT ( * ) + SUM ( ALL - 0 ) + + 69
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + - COALESCE ( 62, + - COUNT( 19 ) * - 99 + 57 ) * COUNT( * ) + - 29 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + - COALESCE ( 62, + - COUNT ( 19 ) * - 99 + 57 ) * COUNT ( * ) + - 29 AS col2
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5367
SELECT ALL + + COALESCE ( - 65, COUNT( * ) ) * + 63 + 66 DIV 36 + ( MAX( ALL 81 ) )
----
-4013

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + + COALESCE ( - 65, COUNT ( * ) ) * + 63 + 66 / 36 + ( MAX ( ALL 81 ) )
----
-4013

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT - - 65 - + - COUNT( * ) AS col1, - 11
----
66
-11

skipif mysql # not compatible
query II rowsort label-5368
SELECT - - 65 - + - COUNT ( * ) AS col1, - 11
----
66
-11

query I rowsort
SELECT DISTINCT 99 * + + 80 * 30 * + 62 - 64 AS col0
----
14731136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT - 73 - + - 60 / + CAST( + ( 11 ) AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 73 - + - 60 / + CAST ( + ( 11 ) AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) + - NULLIF ( + - 34, + 99 / - ( + MIN( ALL + 2 ) * 46 ) )
----
35

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) + - NULLIF ( + - 34, + 99 / - ( + MIN ( ALL + 2 ) * 46 ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT - + 97 * + - 11 - - ( - + COALESCE ( + 33, 62 ) ) + 19 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT - + 97 * + - 11 - - ( - + COALESCE ( + 33, 62 ) ) + 19 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 0 + + + 87 + 36 AS col2
----
123

query I rowsort
SELECT ALL 91 * + 93 * + 93 + + 65
----
787124

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + CASE - 63 WHEN 63 + - 28 THEN - 88 + COUNT( * ) * - 32 ELSE - CASE + CASE - 7 WHEN 24 THEN NULL WHEN + COUNT( * ) THEN 44 ELSE NULL END WHEN + 65 + - 69 THEN NULL ELSE - 58 END END
----
58

skipif mysql # not compatible
query I rowsort label-5375
SELECT + CASE - 63 WHEN 63 + - 28 THEN - 88 + COUNT ( * ) * - 32 ELSE - CASE + CASE - 7 WHEN 24 THEN NULL WHEN + COUNT ( * ) THEN 44 ELSE NULL END WHEN + 65 + - 69 THEN NULL ELSE - 58 END END
----
58

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

query I rowsort
SELECT ALL + 80 * 13 + - + 51
----
989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5378
SELECT + - NULLIF ( + COUNT( * ), - CAST( - CAST( + 4 AS SIGNED ) AS SIGNED ) ) + - SUM( DISTINCT - 29 ) * 23
----
666

skipif mysql # not compatible
query I rowsort label-5378
SELECT + - NULLIF ( + COUNT ( * ), - CAST ( - CAST ( + 4 AS INTEGER ) AS INTEGER ) ) + - SUM ( DISTINCT - 29 ) * 23
----
666

query I rowsort
SELECT ALL - 39 * - 65 - + + 49 AS col2
----
2486

onlyif mysql # aggregate syntax: 
query II rowsort label-5380
SELECT - MIN( ALL - 31 ) AS col2, MIN( 55 ) * - 72
----
31
-3960

skipif mysql # not compatible
query II rowsort label-5380
SELECT - MIN ( ALL - 31 ) AS col2, MIN ( 55 ) * - 72
----
31
-3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5381
SELECT + 36 + MAX( + 85 ) DIV 3 + + 42 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-5381
SELECT + 36 + MAX ( + 85 ) / 3 + + 42 AS col1
----
106

query I rowsort
SELECT - 42 * 87 * - + ( 6 )
----
21924

query I rowsort
SELECT ALL 48 * - + 17 col2
----
-816

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

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL MIN ( 68 )
----
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT - 18 - - ( COUNT( * ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5386
SELECT - 18 - - ( COUNT ( * ) ) AS col1
----
-17

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

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

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

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

query I rowsort
SELECT ALL - 68 - + 44 + + - 4 AS col0
----
-116

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

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

query I rowsort
SELECT ALL 12 * + 91
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL MIN( - 66 ) * + 76 col0
----
-5016

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL MIN ( - 66 ) * + 76 col0
----
-5016

query I rowsort
SELECT + 82 * + 18 * + + 43 AS col0
----
63468

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

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

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

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

query I rowsort
SELECT - 35 + - 23
----
-58

query I rowsort
SELECT ALL COALESCE ( 82, 86 * 56 - - 43 ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT DISTINCT + ( + + 30 ) DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT + ( + + 30 ) / + 95
----
0

query I rowsort
SELECT + 64 + - + 26
----
38

query III rowsort
SELECT 93 AS col0, - 46 * + - 7, - ( 67 ) * 38 + + 11 AS col1
----
93
322
-2535

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

query I rowsort
SELECT + 40 + - 87 * - + 98
----
8566

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

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL CAST ( - COUNT ( - 7 ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT - 75, + 94 * - 49 + - SUM( ALL - 58 ) AS col0
----
-75
-4548

skipif mysql # not compatible
query II rowsort label-5404
SELECT - 75, + 94 * - 49 + - SUM ( ALL - 58 ) AS col0
----
-75
-4548

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT ALL CASE 23 WHEN - COUNT( * ) THEN - + 38 ELSE NULL END + - 33 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL CASE 23 WHEN - COUNT ( * ) THEN - + 38 ELSE NULL END + - 33 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT - MAX( + - 97 ) + - MIN( + 33 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - MAX ( + - 97 ) + - MIN ( + 33 ) AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5407
SELECT ALL - COUNT( * ) DIV 27 + + 50 + 32 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - COUNT ( * ) / 27 + + 50 + 32 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT - + MAX( ALL + 14 ) + + 65 col1, + 14 * 86
----
51
1204

skipif mysql # not compatible
query II rowsort label-5408
SELECT - + MAX ( ALL + 14 ) + + 65 col1, + 14 * 86
----
51
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL + + 24 / + + AVG ( - 22 ) + + - COUNT( * ) * ( CASE 19 WHEN 13 THEN 60 * - 52 WHEN - COUNT( * ) THEN - 39 / COUNT( * ) - + MIN( - 87 ) WHEN - 75 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + + 24 / + + AVG ( - 22 ) + + - COUNT ( * ) * ( CASE 19 WHEN 13 THEN 60 * - 52 WHEN - COUNT ( * ) THEN - 39 / COUNT ( * ) - + MIN ( - 87 ) WHEN - 75 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT + - 72 * 25 + - 48 + - + 0
----
-1848

query I rowsort
SELECT ALL - + 52 + + + 4
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT 19 DIV 87 + - + 12 * + + 28
----
-336

skipif mysql # not compatible
query I rowsort label-5412
SELECT 19 / 87 + - + 12 * + + 28
----
-336

query I rowsort
SELECT 13 * 5 - - - 15 + - - 68 AS col0
----
118

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

query I rowsort
SELECT 64 + - + NULLIF ( - - 1, - 42 * - 4 ) AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5416
SELECT + 47 DIV - + 3 + COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5416
SELECT + 47 / - + 3 + COUNT ( * ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL - + NULLIF ( + - 14, SUM( - 97 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - + NULLIF ( + - 14, SUM ( - 97 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL - 58 - + - NULLIF ( + - COUNT( * ), - 73 + + 31 )
----
-59

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - 58 - + - NULLIF ( + - COUNT ( * ), - 73 + + 31 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT + 93 * - 68 + + MIN( - + 48 ) + + 65 AS col1
----
-6307

skipif mysql # not compatible
query I rowsort label-5419
SELECT + 93 * - 68 + + MIN ( - + 48 ) + + 65 AS col1
----
-6307

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT DISTINCT + - 10 - MIN( ( + + 68 ) ) + - + 6 * 46
----
-354

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + - 10 - MIN ( ( + + 68 ) ) + - + 6 * 46
----
-354

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5424
SELECT 26 * 98 * + 51 + - + 90 * 58 * + CAST( + 4 AS SIGNED ) AS col0
----
109068

skipif mysql # not compatible
query I rowsort label-5424
SELECT 26 * 98 * + 51 + - + 90 * 58 * + CAST ( + 4 AS INTEGER ) AS col0
----
109068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT - CASE - 27 WHEN ( - 81 ) THEN NULL WHEN 36 - 90 THEN NULL ELSE COUNT( DISTINCT 28 ) * COUNT( * ) END DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5425
SELECT - CASE - 27 WHEN ( - 81 ) THEN NULL WHEN 36 - 90 THEN NULL ELSE COUNT ( DISTINCT 28 ) * COUNT ( * ) END / - 96 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT 85 * - COUNT( * ) * 77
----
-6545

skipif mysql # not compatible
query I rowsort label-5427
SELECT 85 * - COUNT ( * ) * 77
----
-6545

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

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

query II rowsort
SELECT ALL 86 AS col1, - 82 * 83 - - 36 AS col0
----
86
-6770

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL SUM( + 41 ) * + - 5 + - 11 col2
----
-216

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL SUM ( + 41 ) * + - 5 + - 11 col2
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT COUNT( * ) * - - 41 * + - 67 col2
----
-2747

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT COUNT ( * ) * - - 41 * + - 67 col2
----
-2747

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

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

query II rowsort
SELECT - 52 AS col0, 57 - - 31 + 19 AS col1
----
-52
107

query I rowsort
SELECT ALL 17 + 79 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT ALL NULLIF ( ( 73 ), - 57 ) * CAST( 56 AS SIGNED ) AS col1
----
4088

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL NULLIF ( ( 73 ), - 57 ) * CAST ( 56 AS INTEGER ) AS col1
----
4088

onlyif mysql # DIV for integer division: 
query I rowsort label-5436
SELECT NULLIF ( + 96, - 65 ) DIV + COALESCE ( - 76, - 74, 9 * 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-5436
SELECT NULLIF ( + 96, - 65 ) / + COALESCE ( - 76, - 74, 9 * 4 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5437
SELECT ALL 17 col1, COALESCE ( - 25, + COUNT( * ) * + 13, - + CAST( NULL AS SIGNED ) - - 59, CAST( - NULLIF ( - COUNT( * ), - 52 * ( 21 ) ) AS SIGNED ) )
----
17
-25

skipif mysql # not compatible
query II rowsort label-5437
SELECT ALL 17 col1, COALESCE ( - 25, + COUNT ( * ) * + 13, - + CAST ( NULL AS INTEGER ) - - 59, CAST ( - NULLIF ( - COUNT ( * ), - 52 * ( 21 ) ) AS INTEGER ) )
----
17
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5438
SELECT 83, 62 AS col1, - 50 + + 48 + - + 56 - - ( - CAST( NULL AS SIGNED ) ) AS col2
----
83
62
NULL

skipif mysql # not compatible
query III rowsort label-5438
SELECT 83, 62 AS col1, - 50 + + 48 + - + 56 - - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
83
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL - 65 + COUNT( * ) - + - 68 + - 12
----
-8

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - 65 + COUNT ( * ) - + - 68 + - 12
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT ALL + 2 DIV ( - + 41 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + 2 / ( - + 41 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5441
SELECT CAST( NULL AS DECIMAL ) / - COUNT( * ), - 36 AS col0
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-5441
SELECT CAST ( NULL AS REAL ) / - COUNT ( * ), - 36 AS col0
----
NULL
-36

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

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT ( COUNT ( * ) ) + - ( - ( - 4 ) ) AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT DISTINCT + 93 DIV - 5
----
-18

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT + 93 / - 5
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT - 33 * - + 3 + - 91 + + 93 * CAST( + AVG ( ALL - 52 ) AS SIGNED )
----
-4828

skipif mysql # not compatible
query I rowsort label-5444
SELECT - 33 * - + 3 + - 91 + + 93 * CAST ( + AVG ( ALL - 52 ) AS INTEGER )
----
-4828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5445
SELECT ALL 72 DIV - MIN( ALL + 27 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL 72 / - MIN ( ALL + 27 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5446
SELECT + 16, MIN( DISTINCT - 84 ) * + + COALESCE ( - 19, 8, - 41 + + 80, - ( CAST( + 73 AS SIGNED ) ) * COUNT( * ) ) * + 37 AS col2
----
16
59052

skipif mysql # not compatible
query II rowsort label-5446
SELECT + 16, MIN ( DISTINCT - 84 ) * + + COALESCE ( - 19, 8, - 41 + + 80, - ( CAST ( + 73 AS INTEGER ) ) * COUNT ( * ) ) * + 37 AS col2
----
16
59052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5447
SELECT 68 * - COUNT( * ) DIV + + 99 + + - CAST( - 3 AS SIGNED ) * - - COUNT( * ) + 6
----
9

skipif mysql # not compatible
query I rowsort label-5447
SELECT 68 * - COUNT ( * ) / + + 99 + + - CAST ( - 3 AS INTEGER ) * - - COUNT ( * ) + 6
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5448
SELECT DISTINCT - 62 - SUM( + + NULLIF ( + 80, + - NULLIF ( - ( + 33 ), 10 - + 63 ) ) ) DIV - 36 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - 62 - SUM ( + + NULLIF ( + 80, + - NULLIF ( - ( + 33 ), 10 - + 63 ) ) ) / - 36 AS col1
----
-60

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

query I rowsort
SELECT ALL - 29 * 47 AS col0
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT + NULLIF ( - COUNT( * ), COUNT( * ) - CASE - 82 WHEN - 76 THEN + 32 END )
----
-1

skipif mysql # not compatible
query I rowsort label-5451
SELECT + NULLIF ( - COUNT ( * ), COUNT ( * ) - CASE - 82 WHEN - 76 THEN + 32 END )
----
-1

query I rowsort
SELECT ALL + 13 * - 7 * - 73
----
6643

onlyif mysql # aggregate syntax: 
query II rowsort label-5453
SELECT DISTINCT - + 40 AS col1, CASE - 87 WHEN CASE - 36 WHEN CASE 5 WHEN 62 THEN NULL WHEN + 94 THEN NULL ELSE 67 END THEN COUNT( * ) WHEN + COUNT( * ) - 36 THEN NULL END * + 14 THEN NULL ELSE + 51 - 51 END
----
-40
0

skipif mysql # not compatible
query II rowsort label-5453
SELECT DISTINCT - + 40 AS col1, CASE - 87 WHEN CASE - 36 WHEN CASE 5 WHEN 62 THEN NULL WHEN + 94 THEN NULL ELSE 67 END THEN COUNT ( * ) WHEN + COUNT ( * ) - 36 THEN NULL END * + 14 THEN NULL ELSE + 51 - 51 END
----
-40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL + CASE - 27 WHEN - 90 THEN NULL WHEN - 12 + - + 56 + COUNT( * ) / 59 THEN - 81 ELSE NULL END * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + CASE - 27 WHEN - 90 THEN NULL WHEN - 12 + - + 56 + COUNT ( * ) / 59 THEN - 81 ELSE NULL END * - 44
----
NULL

query II rowsort
SELECT - 40, 33 AS col1
----
-40
33

query I rowsort
SELECT - 58 - + 31 + - - 35
----
-54

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

query II rowsort
SELECT ALL - 38, ( - - 35 ) AS col2
----
-38
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT MAX( 54 )
----
54

skipif mysql # not compatible
query I rowsort label-5459
SELECT MAX ( 54 )
----
54

query II rowsort
SELECT 40 * 46 AS col0, - 78 AS col1
----
1840
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5461
SELECT + CAST( NULL AS DECIMAL ) * - + 37 + - COUNT( * ) - - + 70 AS col0, + COUNT( ALL - 12 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5461
SELECT + CAST ( NULL AS REAL ) * - + 37 + - COUNT ( * ) - - + 70 AS col0, + COUNT ( ALL - 12 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT 58 * + + COUNT( * ) * - 9 * + 79 * - 51
----
2103138

skipif mysql # not compatible
query I rowsort label-5462
SELECT 58 * + + COUNT ( * ) * - 9 * + 79 * - 51
----
2103138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT + SUM( DISTINCT 59 ) * + ( ( + 37 ) ) - 93 + - + 60 + + 43 * 87 col2
----
5771

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + SUM ( DISTINCT 59 ) * + ( ( + 37 ) ) - 93 + - + 60 + + 43 * 87 col2
----
5771

onlyif mysql # aggregate syntax: 
query II rowsort label-5465
SELECT 98 * - COUNT( ALL 30 ), - 70 * 33 + 63 AS col0
----
-98
-2247

skipif mysql # not compatible
query II rowsort label-5465
SELECT 98 * - COUNT ( ALL 30 ), - 70 * 33 + 63 AS col0
----
-98
-2247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT - 22 * + 20 * + + ( - 83 ) * + CAST( + 67 AS SIGNED ) + 20
----
2446860

skipif mysql # not compatible
query I rowsort label-5466
SELECT - 22 * + 20 * + + ( - 83 ) * + CAST ( + 67 AS INTEGER ) + 20
----
2446860

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL + COUNT( * ) + - 44 * + 69 AS col1
----
-3035

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL + COUNT ( * ) + - 44 * + 69 AS col1
----
-3035

query I rowsort
SELECT ALL - 78 + + ( + + 82 )
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT CASE + + COUNT( * ) WHEN + 13 THEN + 97 ELSE NULL END + - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT CASE + + COUNT ( * ) WHEN + 13 THEN + 97 ELSE NULL END + - + 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5471
SELECT ALL 63 + + SUM( - 76 ) DIV - CASE 18 WHEN - - 1 * + 47 + - 80 THEN - 4 ELSE 53 END + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL 63 + + SUM ( - 76 ) / - CASE 18 WHEN - - 1 * + 47 + - 80 THEN - 4 ELSE 53 END + - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL 40 + - ( + 77 ) + + 15 + - MAX( + 97 ) - ( + 55 ) col1
----
-174

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL 40 + - ( + 77 ) + + 15 + - MAX ( + 97 ) - ( + 55 ) col1
----
-174

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5474
SELECT ALL ( CASE COUNT( * ) WHEN - COUNT( * ) + + CAST( - - ( 21 ) AS SIGNED ) * 62 THEN NULL WHEN + 67 * - 92 - + 62 * 10 THEN MIN( + ( NULLIF ( NULLIF ( 72, 31 ), - 7 - + 15 ) ) ) END ) + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL ( CASE COUNT ( * ) WHEN - COUNT ( * ) + + CAST ( - - ( 21 ) AS INTEGER ) * 62 THEN NULL WHEN + 67 * - 92 - + 62 * 10 THEN MIN ( + ( NULLIF ( NULLIF ( 72, 31 ), - 7 - + 15 ) ) ) END ) + - 37
----
NULL

query I rowsort
SELECT + - 77 + + 8 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + - 19 * NULLIF ( 52, 85 ) * + COUNT( * ) + + 99
----
-889

skipif mysql # not compatible
query I rowsort label-5476
SELECT + - 19 * NULLIF ( 52, 85 ) * + COUNT ( * ) + + 99
----
-889

query I rowsort
SELECT + + 13 * - + 52 + + 93 + - + 70 * - 48 AS col1
----
2777

query II rowsort
SELECT + + 2 + + 15 AS col0, 37 AS col2
----
17
37

query I rowsort
SELECT - - NULLIF ( 31, - 53 + + 86 ) AS col2
----
31

query I rowsort
SELECT + - 28 + + 21 AS col0
----
-7

query II rowsort
SELECT ALL + 64 - + - 26 AS col0, 60 AS col1
----
90
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + 75 + MAX( DISTINCT 60 ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-5482
SELECT + 75 + MAX ( DISTINCT 60 ) AS col0
----
135

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

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

query I rowsort
SELECT 87 * ( - 68 ) + + 8 AS col2
----
-5908

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT 76 * - - 56 + - CASE 65 WHEN + - 39 * - + 56 + + 23 / COUNT( * ) THEN - 52 + 76 * - 13 WHEN - NULLIF ( ( 81 ), + 5 + + 49 ) + + 87 THEN NULL ELSE - COUNT( * ) + CASE 89 - - 90 WHEN + 88 THEN + 60 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT 76 * - - 56 + - CASE 65 WHEN + - 39 * - + 56 + + 23 / COUNT ( * ) THEN - 52 + 76 * - 13 WHEN - NULLIF ( ( 81 ), + 5 + + 49 ) + + 87 THEN NULL ELSE - COUNT ( * ) + CASE 89 - - 90 WHEN + 88 THEN + 60 END END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT - - 37 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-5487
SELECT - - 37 / 81
----
0

query I rowsort
SELECT + - ( - 73 ) * - - 97 AS col2
----
7081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5489
SELECT 20 / CAST( NULL AS SIGNED ) + + 15 * CASE 96 WHEN CAST( NULL AS DECIMAL ) THEN - 60 WHEN + 83 * - COUNT( * ) THEN + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT 20 / CAST ( NULL AS INTEGER ) + + 15 * CASE 96 WHEN CAST ( NULL AS REAL ) THEN - 60 WHEN + 83 * - COUNT ( * ) THEN + 30 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + + MAX( ALL 57 ) * + SUM( DISTINCT 40 ) * 47 + - - 0
----
107160

skipif mysql # not compatible
query I rowsort label-5491
SELECT + + MAX ( ALL 57 ) * + SUM ( DISTINCT 40 ) * 47 + - - 0
----
107160

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5494
SELECT ALL + 40 AS col2, + 79 + 29 - + CASE + 77 WHEN ( + - AVG ( 12 ) ) * 29 THEN 22 * 75 WHEN - CASE - 46 WHEN ( CAST( NULL AS SIGNED ) ) THEN - 30 + - SUM( - 79 ) END + - 64 * - 44 THEN COUNT( * ) + - SUM( 35 + 71 ) END AS col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5494
SELECT ALL + 40 AS col2, + 79 + 29 - + CASE + 77 WHEN ( + - AVG ( 12 ) ) * 29 THEN 22 * 75 WHEN - CASE - 46 WHEN ( CAST ( NULL AS INTEGER ) ) THEN - 30 + - SUM ( - 79 ) END + - 64 * - 44 THEN COUNT ( * ) + - SUM ( 35 + 71 ) END AS col1
----
40
NULL

query I rowsort
SELECT CASE WHEN NULL IS NOT NULL THEN 78 ELSE NULL END
----
NULL

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

query I rowsort
SELECT - 35 + - + 13 AS col0
----
-48

query I rowsort
SELECT NULLIF ( + 96, - ( - 15 ) + - - 35 + CASE 73 WHEN - + 30 / 54 THEN NULL WHEN - 31 THEN NULL ELSE 2 / - 79 END / + 20 )
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL - COUNT( * ) * - COALESCE ( - MAX( DISTINCT + 71 ), 46, + 32 - SUM( DISTINCT 67 ) ) + 85
----
14

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL - COUNT ( * ) * - COALESCE ( - MAX ( DISTINCT + 71 ), 46, + 32 - SUM ( DISTINCT 67 ) ) + 85
----
14

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

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

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

query II rowsort
SELECT ALL + 49 * + + 31 + 28, + 41 + + ( - - 86 ) + + 97 AS col2
----
1547
224

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

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT SUM ( - 32 )
----
-32

query I rowsort
SELECT DISTINCT - 1 * + - 93 AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5506
SELECT ALL COUNT( * ) * - 15 * - 10 DIV - ( 2 ) + + + 26 - + 95 col2
----
-144

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL COUNT ( * ) * - 15 * - 10 / - ( 2 ) + + + 26 - + 95 col2
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT - 46 DIV NULLIF ( + 72, - + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT - 46 / NULLIF ( + 72, - + 99 )
----
0

query I rowsort
SELECT ALL + 47 - - - 84
----
-37

query II rowsort
SELECT 52 AS col2, NULLIF ( 2, 4 + - 52 ) col0
----
52
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5510
SELECT ALL - 84 * + 0 * - 66 AS col1, CASE 35 WHEN - MIN( + - 14 ) + COALESCE ( 61, 44 * - ( COUNT( * ) ) ) * + MAX( ALL - 66 * 63 ) THEN 10 END / 50 + 50 * 66
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5510
SELECT ALL - 84 * + 0 * - 66 AS col1, CASE 35 WHEN - MIN ( + - 14 ) + COALESCE ( 61, 44 * - ( COUNT ( * ) ) ) * + MAX ( ALL - 66 * 63 ) THEN 10 END / 50 + 50 * 66
----
0
NULL

query I rowsort
SELECT - 10 - + 68 * + 15 + + 83 + + + 31 * - + 14 * - 62 + - - 44 AS col0
----
26005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT + 16 * - COUNT( * ) DIV - 77 * 11 * - - 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT + 16 * - COUNT ( * ) / - 77 * 11 * - - 14 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5513
SELECT DISTINCT + ( + NULLIF ( - 44, + 7 ) ) AS col2, - 5 DIV 48
----
-44
0

skipif mysql # not compatible
query II rowsort label-5513
SELECT DISTINCT + ( + NULLIF ( - 44, + 7 ) ) AS col2, - 5 / 48
----
-44
0

query I rowsort
SELECT DISTINCT + 35 * + 32 AS col2
----
1120

onlyif mysql # aggregate syntax: 
query II rowsort label-5515
SELECT - - 39 AS col2, - ( - 49 ) + - - COUNT( * ) + 11
----
39
61

skipif mysql # not compatible
query II rowsort label-5515
SELECT - - 39 AS col2, - ( - 49 ) + - - COUNT ( * ) + 11
----
39
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT + 78 - + + COUNT( * ) - + + 42, 87 + + + 63 AS col1
----
35
150

skipif mysql # not compatible
query II rowsort label-5516
SELECT + 78 - + + COUNT ( * ) - + + 42, 87 + + + 63 AS col1
----
35
150

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

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

query I rowsort
SELECT ALL CASE + 78 WHEN - 14 - - 79 THEN NULL ELSE - 11 END
----
-11

query I rowsort
SELECT - - 46 * - 96
----
-4416

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT + - 41 * + 52 + + + ( + 34 ) + - 65 DIV + 85 * + ( - 96 ) AS col1
----
-2098

skipif mysql # not compatible
query I rowsort label-5521
SELECT + - 41 * + 52 + + + ( + 34 ) + - 65 / + 85 * + ( - 96 ) AS col1
----
-2098

query II rowsort
SELECT DISTINCT - 90 AS col2, 59 * - 28
----
-90
-1652

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + + MIN( ALL - 64 ) - + 38 + - SUM( + 20 ) * - + 27
----
438

skipif mysql # not compatible
query I rowsort label-5525
SELECT + + MIN ( ALL - 64 ) - + 38 + - SUM ( + 20 ) * - + 27
----
438

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5526
SELECT DISTINCT + MIN( - 10 ) * COUNT( * ) DIV - + 67, 65 DIV - 90 + - 21 AS col2
----
0
-21

skipif mysql # not compatible
query II rowsort label-5526
SELECT DISTINCT + MIN ( - 10 ) * COUNT ( * ) / - + 67, 65 / - 90 + - 21 AS col2
----
0
-21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5528
SELECT ALL 64 * COUNT( * ) DIV 12 - + 67 + COALESCE ( - - 15, + 98 ) * + MAX( - 73 ) * 69 AS col1
----
-75617

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL 64 * COUNT ( * ) / 12 - + 67 + COALESCE ( - - 15, + 98 ) * + MAX ( - 73 ) * 69 AS col1
----
-75617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT DISTINCT + 36 DIV - 84 + 73 DIV - MIN( - 25 ) + + + 83
----
85

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + 36 / - 84 + 73 / - MIN ( - 25 ) + + + 83
----
85

query I rowsort
SELECT + ( - 11 ) + - 99
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5531
SELECT ALL - ( + + 26 ) DIV - 98 + - 76 - - - COALESCE ( + 82, + + 56, + NULLIF ( CAST( COUNT( * ) AS SIGNED ), + CAST( NULL AS SIGNED ) ) ) + 61
----
-97

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL - ( + + 26 ) / - 98 + - 76 - - - COALESCE ( + 82, + + 56, + NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), + CAST ( NULL AS INTEGER ) ) ) + 61
----
-97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5532
SELECT + CAST( NULL AS SIGNED ) + - - CAST( COALESCE ( - + ( 16 ), - 18, + 2 * - + 95 + - + 57 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT + CAST ( NULL AS INTEGER ) + - - CAST ( COALESCE ( - + ( 16 ), - 18, + 2 * - + 95 + - + 57 ) AS REAL )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT 78 * + CAST( - COALESCE ( + MAX( - + ( - 22 ) ), + + 49 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) + 22 - - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT 78 * + CAST ( - COALESCE ( + MAX ( - + ( - 22 ) ), + + 49 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) + 22 - - 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - 29 * ( + - COALESCE ( + 92, CASE 60 WHEN COUNT( * ) / 72 - - + 1 + 77 * - 36 THEN + 34 ELSE NULL END * + SUM( DISTINCT ( - 7 ) ), 25 ) )
----
2668

skipif mysql # not compatible
query I rowsort label-5535
SELECT - 29 * ( + - COALESCE ( + 92, CASE 60 WHEN COUNT ( * ) / 72 - - + 1 + 77 * - 36 THEN + 34 ELSE NULL END * + SUM ( DISTINCT ( - 7 ) ), 25 ) )
----
2668

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

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

query I rowsort
SELECT + 76 + - + COALESCE ( - 1, 92 )
----
77

query II rowsort
SELECT ( - COALESCE ( - 85, - 3 ) ) AS col2, 70
----
85
70

query I rowsort
SELECT ALL - 15 - - 36 * + 21 AS col1
----
741

query I rowsort
SELECT ALL - 6 * - 86
----
516

query I rowsort
SELECT DISTINCT 93 * 47 * - 58
----
-253518

query I rowsort
SELECT 52 * + 97 + + 53 AS col1
----
5097

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT ALL - 15 - - + 30 DIV 66
----
-15

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - 15 - - + 30 / 66
----
-15

query I rowsort
SELECT 29 * + 39
----
1131

query II rowsort
SELECT 64 * - 28, + 56 + - 1 - + NULLIF ( - 1, - ( - 35 ) ) * - + 40 AS col2
----
-1792
15

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

query I rowsort
SELECT 54 * 19
----
1026

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

query I rowsort
SELECT ALL - 42 * - 46 * - - 27 * ( - + 93 ) AS col0
----
-4851252

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT ALL - + 17 * + 99 + COUNT( * ) AS col0
----
-1682

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL - + 17 * + 99 + COUNT ( * ) AS col0
----
-1682

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT DISTINCT - + 1 DIV + + 62 * + - 17
----
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT - + 1 / + + 62 * + - 17
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT - 85 DIV - + 86 * + - 24 col0
----
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT - 85 / - + 86 * + - 24 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5553
SELECT 33 + + COALESCE ( + + 64, + 49 * + 72 + - 69 + CAST( + CAST( - 75 AS DECIMAL ) AS SIGNED ) * + NULLIF ( - 50, 69 ) + 22 ) + + 11 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-5553
SELECT 33 + + COALESCE ( + + 64, + 49 * + 72 + - 69 + CAST ( + CAST ( - 75 AS REAL ) AS INTEGER ) * + NULLIF ( - 50, 69 ) + 22 ) + + 11 AS col2
----
108

query I rowsort
SELECT ALL - + 21 + - + ( - - 73 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5555
SELECT ALL + + 59 * 99 + + + 48 - - - 38, 68 * - - COUNT( * ) * - 20 * - ( ( 94 ) ) AS col2
----
5851
127840

skipif mysql # not compatible
query II rowsort label-5555
SELECT ALL + + 59 * 99 + + + 48 - - - 38, 68 * - - COUNT ( * ) * - 20 * - ( ( 94 ) ) AS col2
----
5851
127840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT - CAST( + - 97 AS SIGNED ) + - 94 + + - 44 + + - 88 * + 67
----
-5937

skipif mysql # not compatible
query I rowsort label-5556
SELECT - CAST ( + - 97 AS INTEGER ) + - 94 + + - 44 + + - 88 * + 67
----
-5937

query I rowsort
SELECT ALL - ( - 93 ) + - 31 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ( + 90 ) + MIN( + 31 ) * + - 59 col2
----
-1739

skipif mysql # not compatible
query I rowsort label-5558
SELECT ( + 90 ) + MIN ( + 31 ) * + - 59 col2
----
-1739

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

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - 49 + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT 2 + ( + + 3 ) * COUNT( * ) + + 26
----
31

skipif mysql # not compatible
query I rowsort label-5560
SELECT 2 + ( + + 3 ) * COUNT ( * ) + + 26
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT - COALESCE ( + COUNT( * ), + 32, - ( - + 8 ) + + 24 * + 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5562
SELECT - COALESCE ( + COUNT ( * ), + 32, - ( - + 8 ) + + 24 * + 32 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT - 10 DIV 15 * - 26 + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5563
SELECT - 10 / 15 * - 26 + 94 AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT - 47 * - 91 + ( + CAST( 1 AS SIGNED ) )
----
4278

skipif mysql # not compatible
query I rowsort label-5564
SELECT - 47 * - 91 + ( + CAST ( 1 AS INTEGER ) )
----
4278

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

skipif mysql # not compatible
query I rowsort label-5565
SELECT 13 / - COUNT ( * ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL - 46 + - COUNT( ALL - 66 )
----
-47

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL - 46 + - COUNT ( ALL - 66 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5567
SELECT DISTINCT - CAST( CAST( + NULLIF ( 69, - 16 + - + 6 ) AS DECIMAL ) AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT - CAST ( CAST ( + NULLIF ( 69, - 16 + - + 6 ) AS REAL ) AS INTEGER ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT COUNT( * ) * - NULLIF ( - ( - 53 ), 41 + - + 34 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT COUNT ( * ) * - NULLIF ( - ( - 53 ), 41 + - + 34 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL - COUNT( * ) * - 21 * 91 AS col1
----
1911

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - COUNT ( * ) * - 21 * 91 AS col1
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT COUNT( * ) / - CASE - COUNT( * ) WHEN 33 + - 94 THEN 52 WHEN COUNT( ALL + 97 ) * + 93 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT COUNT ( * ) / - CASE - COUNT ( * ) WHEN 33 + - 94 THEN 52 WHEN COUNT ( ALL + 97 ) * + 93 THEN NULL ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5572
SELECT CASE + - 53 WHEN + + CAST( NULL AS SIGNED ) * + COALESCE ( - 43, COUNT( * ) ) - + + 5 THEN NULL WHEN + MIN( DISTINCT 55 ) * 92 THEN COUNT( 75 ) END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT CASE + - 53 WHEN + + CAST ( NULL AS INTEGER ) * + COALESCE ( - 43, COUNT ( * ) ) - + + 5 THEN NULL WHEN + MIN ( DISTINCT 55 ) * 92 THEN COUNT ( 75 ) END * - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 11 col0, - 81 + + 85
----
11
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT ALL 81 DIV - ( 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL 81 / - ( 74 )
----
-1

query II rowsort
SELECT DISTINCT - 86 AS col2, + 46 + - + 65 AS col1
----
-86
-19

query I rowsort
SELECT DISTINCT 16 * 10 AS col2
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5577
SELECT - + CAST( NULL AS SIGNED ) AS col1, - 76 + - + NULLIF ( - - CASE - + 82 WHEN - - 31 * + + MIN( 78 ) + 27 THEN COUNT( * ) * + COUNT( * ) WHEN 84 * + 36 THEN NULL WHEN - MAX( 95 ) / 84 THEN NULL END, 74 ) * 38 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5577
SELECT - + CAST ( NULL AS INTEGER ) AS col1, - 76 + - + NULLIF ( - - CASE - + 82 WHEN - - 31 * + + MIN ( 78 ) + 27 THEN COUNT ( * ) * + COUNT ( * ) WHEN 84 * + 36 THEN NULL WHEN - MAX ( 95 ) / 84 THEN NULL END, 74 ) * 38 AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 16 * + 72 AS col0
----
1152

query I rowsort
SELECT 79 * + 45 AS col1
----
3555

query I rowsort
SELECT 22 * + + 91 + + 75
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL - 94 + - + 58 + - + COUNT( * ) AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - 94 + - + 58 + - + COUNT ( * ) AS col0
----
-153

query I rowsort
SELECT - COALESCE ( + - 18, + 31, + 36 )
----
18

query I rowsort
SELECT 71 - 55 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ( + 41 ) * - SUM( DISTINCT + - 42 ) * - 52 * - 18
----
1611792

skipif mysql # not compatible
query I rowsort label-5584
SELECT ( + 41 ) * - SUM ( DISTINCT + - 42 ) * - 52 * - 18
----
1611792

query I rowsort
SELECT - 26 + 40 col2
----
14

query I rowsort
SELECT ALL - - 85 + ( + 35 ) AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT - 0 + 55 + - 9 * + + COALESCE ( - 58, CAST( - COUNT( * ) AS SIGNED ) * - 5 * + NULLIF ( + + 61, 17 * 72 ) + 39 * + 88 )
----
577

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT - 0 + 55 + - 9 * + + COALESCE ( - 58, CAST ( - COUNT ( * ) AS INTEGER ) * - 5 * + NULLIF ( + + 61, 17 * 72 ) + 39 * + 88 )
----
577

query I rowsort
SELECT - - 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL - - 94 + + - 36 * + COUNT( * ) * 88 AS col1
----
-3074

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL - - 94 + + - 36 * + COUNT ( * ) * 88 AS col1
----
-3074

query II rowsort
SELECT - 21 AS col0, 75
----
-21
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT + + CASE + COUNT( * ) WHEN - 77 THEN + 56 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) END * + MIN( ALL - 66 ) * 90 + - + ( + 34 ) * - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT + + CASE + COUNT ( * ) WHEN - 77 THEN + 56 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END * + MIN ( ALL - 66 ) * 90 + - + ( + 34 ) * - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT 9 * SUM( ALL + + 78 )
----
702

skipif mysql # not compatible
query I rowsort label-5592
SELECT 9 * SUM ( ALL + + 78 )
----
702

query I rowsort
SELECT DISTINCT - NULLIF ( 39, + + COALESCE ( - 50, + 2, + 27 ) ) * + + 2 * + + 40
----
-3120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5594
SELECT ALL - CAST( - 78 AS SIGNED ) * - + 74 - - 26 AS col1
----
-5746

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - CAST ( - 78 AS INTEGER ) * - + 74 - - 26 AS col1
----
-5746

query I rowsort
SELECT DISTINCT + 5 * + 67
----
335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5596
SELECT 29 - + - 53 DIV + COUNT( * ) + - 69 * - + 99 DIV COUNT( * ) + + 73 AS col1
----
6986

skipif mysql # not compatible
query I rowsort label-5596
SELECT 29 - + - 53 / + COUNT ( * ) + - 69 * - + 99 / COUNT ( * ) + + 73 AS col1
----
6986

query I rowsort
SELECT ALL + ( 52 ) col1
----
52

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

skipif mysql # not compatible
query I rowsort label-5598
SELECT - 41 + - ( + + COUNT ( * ) ) AS col0
----
-42

query I rowsort
SELECT ALL + 51 * - 42 - 91
----
-2233

query I rowsort
SELECT COALESCE ( - - COALESCE ( - - 96, - 65 * - 12 ), 28 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT CASE + COUNT( * ) WHEN - 46 * - 1 DIV - COUNT( DISTINCT 63 ) THEN NULL ELSE ( - + 77 ) + 26 + 89 DIV COUNT( * ) - - 81 * 14 END AS col2
----
1172

skipif mysql # not compatible
query I rowsort label-5601
SELECT CASE + COUNT ( * ) WHEN - 46 * - 1 / - COUNT ( DISTINCT 63 ) THEN NULL ELSE ( - + 77 ) + 26 + 89 / COUNT ( * ) - - 81 * 14 END AS col2
----
1172

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - 34 + 78 + ( - COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-5602
SELECT - 34 + 78 + ( - COUNT ( * ) )
----
43

query I rowsort
SELECT ALL + 88 * - 91 * 60 col0
----
-480480

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + COUNT( * ) - + + 13 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5604
SELECT + COUNT ( * ) - + + 13 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT + CASE 81 WHEN + SUM( DISTINCT ( + - 49 ) ) THEN NULL WHEN - 84 - COUNT( DISTINCT 61 ) THEN 7 * + COALESCE ( + 21, 79, + 53 * + 54 - COALESCE ( 54, - COUNT( * ) * 98 + + 37, 57 - - AVG ( DISTINCT 16 ) ) ) + 58 ELSE NULL END / 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + CASE 81 WHEN + SUM ( DISTINCT ( + - 49 ) ) THEN NULL WHEN - 84 - COUNT ( DISTINCT 61 ) THEN 7 * + COALESCE ( + 21, 79, + 53 * + 54 - COALESCE ( 54, - COUNT ( * ) * 98 + + 37, 57 - - AVG ( DISTINCT 16 ) ) ) + 58 ELSE NULL END / 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT - MAX( DISTINCT - + NULLIF ( + 90, 44 * + 50 * + - 85 ) ) + - + 28
----
62

skipif mysql # not compatible
query I rowsort label-5606
SELECT - MAX ( DISTINCT - + NULLIF ( + 90, 44 * + 50 * + - 85 ) ) + - + 28
----
62

query I rowsort
SELECT DISTINCT + 71 * - - 21
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT + COUNT( * ) * + - 84 * 99 + - 24 * - COUNT( * ) + 75
----
-8217

skipif mysql # not compatible
query I rowsort label-5608
SELECT + COUNT ( * ) * + - 84 * 99 + - 24 * - COUNT ( * ) + 75
----
-8217

onlyif mysql # aggregate syntax: 
query II rowsort label-5609
SELECT - COUNT( ALL - - 40 ) AS col1, 88 AS col1
----
-1
88

skipif mysql # not compatible
query II rowsort label-5609
SELECT - COUNT ( ALL - - 40 ) AS col1, 88 AS col1
----
-1
88

query I rowsort
SELECT ALL + 23 + 42 + - 57 col0
----
8

query I rowsort
SELECT ALL 27 + + 4 * + 50 AS col2
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT 72, COUNT( * ) col0
----
72
1

skipif mysql # not compatible
query II rowsort label-5612
SELECT 72, COUNT ( * ) col0
----
72
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5613
SELECT + + 42 DIV + + 62 AS col0, + NULLIF ( 19, 21 * + 59 * + - 86 )
----
0
19

skipif mysql # not compatible
query II rowsort label-5613
SELECT + + 42 / + + 62 AS col0, + NULLIF ( 19, 21 * + 59 * + - 86 )
----
0
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5614
SELECT + 88 * - 31 * - + 52 + - ( 13 ) + + CASE + + 98 WHEN + - COALESCE ( - CAST( NULL AS SIGNED ), - NULLIF ( - + 4, + ( + 12 ) ) * ( 74 ), - MAX( DISTINCT 62 ) ) THEN - 18 END * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT + 88 * - 31 * - + 52 + - ( 13 ) + + CASE + + 98 WHEN + - COALESCE ( - CAST ( NULL AS INTEGER ), - NULLIF ( - + 4, + ( + 12 ) ) * ( 74 ), - MAX ( DISTINCT 62 ) ) THEN - 18 END * 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5615
SELECT ALL + CAST( NULLIF ( + 99, COUNT( + + NULLIF ( + 29, - 37 ) ) * + + 21 * + 94 ) AS SIGNED ) AS col2, 99 * + 19 * 0 + ( - 59 + 49 )
----
99
-10

skipif mysql # not compatible
query II rowsort label-5615
SELECT ALL + CAST ( NULLIF ( + 99, COUNT ( + + NULLIF ( + 29, - 37 ) ) * + + 21 * + 94 ) AS INTEGER ) AS col2, 99 * + 19 * 0 + ( - 59 + 49 )
----
99
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL 89 + 73 - CASE 2 WHEN - 57 + + 75 + 26 + + COUNT( * ) + 5 / 59 THEN - + 48 - + 9 ELSE NULL END + COUNT( * ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL 89 + 73 - CASE 2 WHEN - 57 + + 75 + 26 + + COUNT ( * ) + 5 / 59 THEN - + 48 - + 9 ELSE NULL END + COUNT ( * ) * 24
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL COUNT( DISTINCT - COALESCE ( 62, + - 79, - 24, - 50 ) ) + COALESCE ( - 65, CASE - 14 WHEN ( - AVG ( ALL + 3 ) ) THEN CASE ( - 14 ) WHEN 72 * - COUNT( * ) THEN - 27 + 89 WHEN 66 * 35 THEN NULL END WHEN + NULLIF ( MAX( 85 ), 94 ) THEN 35 ELSE COUNT( * ) END + 76 )
----
-64

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL COUNT ( DISTINCT - COALESCE ( 62, + - 79, - 24, - 50 ) ) + COALESCE ( - 65, CASE - 14 WHEN ( - AVG ( ALL + 3 ) ) THEN CASE ( - 14 ) WHEN 72 * - COUNT ( * ) THEN - 27 + 89 WHEN 66 * 35 THEN NULL END WHEN + NULLIF ( MAX ( 85 ), 94 ) THEN 35 ELSE COUNT ( * ) END + 76 )
----
-64

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

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

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

query II rowsort
SELECT + - 2 * + + 19 * 68 + + - 33 + 62 + + 65 AS col0, - 25 AS col0
----
-2490
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + MIN( - + 99 ) + - + 71 col0
----
-170

skipif mysql # not compatible
query I rowsort label-5622
SELECT + MIN ( - + 99 ) + - + 71 col0
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT + - 16 + - 87 + - + CAST( NULL AS SIGNED ) * - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT + - 16 + - 87 + - + CAST ( NULL AS INTEGER ) * - - 34
----
NULL

query I rowsort
SELECT + - 57 * - + 88 * + 28 col2
----
140448

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL + COUNT( * ) * - 35 + - CASE + - 50 WHEN - 99 THEN - 25 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL + COUNT ( * ) * - 35 + - CASE + - 50 WHEN - 99 THEN - 25 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT + + 41 + + 95 * + + 52 + + MAX( + COALESCE ( 3, 29 * - 0 * - - 34, - - 47 ) ) AS col0
----
4984

skipif mysql # not compatible
query I rowsort label-5626
SELECT + + 41 + + 95 * + + 52 + + MAX ( + COALESCE ( 3, 29 * - 0 * - - 34, - - 47 ) ) AS col0
----
4984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5627
SELECT - CASE 70 WHEN + - 21 + - ( + 33 ) + + 44 - 73 + - - 10 / + 83 THEN CASE - - 65 WHEN - AVG ( + 60 ) THEN COUNT( DISTINCT - 60 ) * MIN( DISTINCT + 96 * 71 + + 17 ) - - COALESCE ( 10, 61 / CASE + 78 * + 49 WHEN + COUNT( * ) THEN NULL ELSE CASE - ( - NULLIF ( 94, 59 * 0 ) ) WHEN + 95 * - COUNT( * ) THEN - COUNT( * ) * 26 + - CAST( NULL AS DECIMAL ) WHEN 55 * + ( 64 ) THEN 65 - 35 ELSE NULL END + 37 END ) / - 22 ELSE NULL END / + 93 + - CAST( NULL AS SIGNED ) * 11 WHEN COUNT( * ) + - NULLIF ( + COUNT( * ), 21 * + CASE - 78 WHEN + 33 * COALESCE ( - 88, COUNT( * ) * - COUNT( * ) + 16 * - 40 ) + CAST( NULL AS SIGNED ) THEN 14 WHEN + 91 THEN NULL END ) THEN NULL END - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT - CASE 70 WHEN + - 21 + - ( + 33 ) + + 44 - 73 + - - 10 / + 83 THEN CASE - - 65 WHEN - AVG ( + 60 ) THEN COUNT ( DISTINCT - 60 ) * MIN ( DISTINCT + 96 * 71 + + 17 ) - - COALESCE ( 10, 61 / CASE + 78 * + 49 WHEN + COUNT ( * ) THEN NULL ELSE CASE - ( - NULLIF ( 94, 59 * 0 ) ) WHEN + 95 * - COUNT ( * ) THEN - COUNT ( * ) * 26 + - CAST ( NULL AS REAL ) WHEN 55 * + ( 64 ) THEN 65 - 35 ELSE NULL END + 37 END ) / - 22 ELSE NULL END / + 93 + - CAST ( NULL AS INTEGER ) * 11 WHEN COUNT ( * ) + - NULLIF ( + COUNT ( * ), 21 * + CASE - 78 WHEN + 33 * COALESCE ( - 88, COUNT ( * ) * - COUNT ( * ) + 16 * - 40 ) + CAST ( NULL AS INTEGER ) THEN 14 WHEN + 91 THEN NULL END ) THEN NULL END - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT + - 66 + + 59 * + 96 + SUM( 81 )
----
5679

skipif mysql # not compatible
query I rowsort label-5628
SELECT + - 66 + + 59 * + 96 + SUM ( 81 )
----
5679

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL - SUM( 5 ) - + 1 col1
----
-6

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - SUM ( 5 ) - + 1 col1
----
-6

query I rowsort
SELECT + 94 + - 11 + + 14
----
97

query I rowsort
SELECT ALL NULLIF ( + 46, + - 93 )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT - 71 + - + 3 + 96 DIV 80 * + 8 * 19 + 21
----
99

skipif mysql # not compatible
query I rowsort label-5632
SELECT - 71 + - + 3 + 96 / 80 * + 8 * 19 + 21
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL 76 - - 95 + - + ( COUNT( * ) ) AS col2
----
170

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL 76 - - 95 + - + ( COUNT ( * ) ) AS col2
----
170

query I rowsort
SELECT + 41 * - 73 AS col0
----
-2993

query I rowsort
SELECT - NULLIF ( + 95, + 2 - + 4 * 3 ) + + + 93 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5636
SELECT + 58 DIV COUNT( * ) AS col2, - 51 AS col1
----
58
-51

skipif mysql # not compatible
query II rowsort label-5636
SELECT + 58 / COUNT ( * ) AS col2, - 51 AS col1
----
58
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5637
SELECT + ( COUNT( * ) ) AS col2, 91 + + 28 + - 17
----
1
102

skipif mysql # not compatible
query II rowsort label-5637
SELECT + ( COUNT ( * ) ) AS col2, 91 + + 28 + - 17
----
1
102

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

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

query I rowsort
SELECT ALL + 56 * - - 14 AS col2
----
784

onlyif mysql # aggregate syntax: 
query III rowsort label-5640
SELECT DISTINCT + 2 * COUNT( * ) AS col1, 23 * 66 * 1 AS col2, ( + + 9 ) AS col2
----
2
1518
9

skipif mysql # not compatible
query III rowsort label-5640
SELECT DISTINCT + 2 * COUNT ( * ) AS col1, 23 * 66 * 1 AS col2, ( + + 9 ) AS col2
----
2
1518
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5641
SELECT - MAX( ALL 34 ) * - NULLIF ( + NULLIF ( + + 29, + - 58 + ( 36 ) * - 78 - - - COALESCE ( + CAST( - 25 AS SIGNED ), - COUNT( * ) ) ), NULLIF ( 91, CASE + 39 WHEN 31 THEN 99 WHEN + 41 THEN MAX( - 21 ) ELSE + 61 END ) * - ( 65 ) ) * + 81
----
79866

skipif mysql # not compatible
query I rowsort label-5641
SELECT - MAX ( ALL 34 ) * - NULLIF ( + NULLIF ( + + 29, + - 58 + ( 36 ) * - 78 - - - COALESCE ( + CAST ( - 25 AS INTEGER ), - COUNT ( * ) ) ), NULLIF ( 91, CASE + 39 WHEN 31 THEN 99 WHEN + 41 THEN MAX ( - 21 ) ELSE + 61 END ) * - ( 65 ) ) * + 81
----
79866

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

query I rowsort
SELECT ALL + COALESCE ( + - 52, + 52 + - 98 )
----
-52

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

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

query II rowsort
SELECT DISTINCT + ( 72 ) AS col0, COALESCE ( ( - 35 ), - 39 )
----
72
-35

query I rowsort
SELECT ALL + COALESCE ( + ( + + 89 ), + 80, - + 10 )
----
89

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

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

query I rowsort
SELECT + + 13 * - - 4 - + 60 - 7 + - + 33 - - 29 + + 72 + - 16 * + 5 * 33
----
-2587

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5649
SELECT ALL - SUM( ALL + 85 ) * - 3 * - ( - SUM( DISTINCT + 76 ) ) + - COUNT( * ) DIV SUM( ALL NULLIF ( - 45, - 53 ) ) AS col1
----
19380

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - SUM ( ALL + 85 ) * - 3 * - ( - SUM ( DISTINCT + 76 ) ) + - COUNT ( * ) / SUM ( ALL NULLIF ( - 45, - 53 ) ) AS col1
----
19380

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - - NULLIF ( 17, - COUNT( * ) + - 40 - 53 + + - 15 ) * - 14 AS col0
----
-238

skipif mysql # not compatible
query I rowsort label-5650
SELECT - - NULLIF ( 17, - COUNT ( * ) + - 40 - 53 + + - 15 ) * - 14 AS col0
----
-238

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5651
SELECT ALL + - ( + + 16 ) DIV + 93 + - 81 * - + ( - COUNT( * ) ) + 33 AS col2, + COALESCE ( + 21, - 3 )
----
-48
21

skipif mysql # not compatible
query II rowsort label-5651
SELECT ALL + - ( + + 16 ) / + 93 + - 81 * - + ( - COUNT ( * ) ) + 33 AS col2, + COALESCE ( + 21, - 3 )
----
-48
21

query I rowsort
SELECT ALL 52 * - 92 + + 84
----
-4700

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL - + COUNT( * ) * + COALESCE ( - + 15, - - ( - 93 ) + - 88 ) + MIN( ALL + 80 )
----
95

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - + COUNT ( * ) * + COALESCE ( - + 15, - - ( - 93 ) + - 88 ) + MIN ( ALL + 80 )
----
95

query II rowsort
SELECT + ( - + 43 ), COALESCE ( - - 27, - 5 ) AS col0
----
-43
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT - 22 * + 49 + + 89 - + 81 + + 74 DIV - - MAX( DISTINCT - 66 )
----
-1071

skipif mysql # not compatible
query I rowsort label-5655
SELECT - 22 * + 49 + + 89 - + 81 + + 74 / - - MAX ( DISTINCT - 66 )
----
-1071

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5656
SELECT + + 81 * 65 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT + + 81 * 65 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL 64 * 9 + MIN( ALL - 44 ) AS col2
----
532

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL 64 * 9 + MIN ( ALL - 44 ) AS col2
----
532

query I rowsort
SELECT + 33 * + 0 + + + 42 AS col1
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-5659
SELECT ALL - 15 DIV 59 col0, 39 DIV 79 * + 41
----
0
0

skipif mysql # not compatible
query II rowsort label-5659
SELECT ALL - 15 / 59 col0, 39 / 79 * + 41
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL 65 * + + MIN( ALL 10 )
----
650

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL 65 * + + MIN ( ALL 10 )
----
650

query II rowsort
SELECT - 78, 88 AS col2
----
-78
88

query I rowsort
SELECT NULLIF ( + - 37, + ( - + 0 ) / 49 + - 99 ) * + ( + - 66 ) * - 65 AS col2
----
-158730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5663
SELECT CAST( + + COUNT( * ) AS SIGNED ) * + ( 81 ) * + 95 AS col0
----
7695

skipif mysql # not compatible
query I rowsort label-5663
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * + ( 81 ) * + 95 AS col0
----
7695

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5664
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), - 84 * - CASE - 77 WHEN 5 THEN CAST( 11 AS DECIMAL ) WHEN + 11 + + 13 - 76 THEN NULL END * - + 64 / + 74 + 28 ) - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), - 84 * - CASE - 77 WHEN 5 THEN CAST ( 11 AS REAL ) WHEN + 11 + + 13 - 76 THEN NULL END * - + 64 / + 74 + 28 ) - 94 AS col1
----
NULL

query II rowsort
SELECT - 40, + 16 AS col0
----
-40
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5666
SELECT ALL CAST( 68 AS SIGNED ) * - + 54 * 21 * - 56 + - CASE - 19 WHEN + CAST( NULL AS SIGNED ) + + COUNT( * ) THEN + 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL CAST ( 68 AS INTEGER ) * - + 54 * 21 * - 56 + - CASE - 19 WHEN + CAST ( NULL AS INTEGER ) + + COUNT ( * ) THEN + 82 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5668
SELECT DISTINCT - 43 + - 64 - + CAST( NULL AS DECIMAL ) / + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT - 43 + - 64 - + CAST ( NULL AS REAL ) / + 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5669
SELECT CASE + SUM( 58 ) WHEN + + 59 - - 63 + - + 62 THEN - 8 + + 7 WHEN - 22 THEN NULL ELSE - 92 * - - 42 END - - + NULLIF ( - 29, CAST( 2 AS SIGNED ) )
----
-3893

skipif mysql # not compatible
query I rowsort label-5669
SELECT CASE + SUM ( 58 ) WHEN + + 59 - - 63 + - + 62 THEN - 8 + + 7 WHEN - 22 THEN NULL ELSE - 92 * - - 42 END - - + NULLIF ( - 29, CAST ( 2 AS INTEGER ) )
----
-3893

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

query II rowsort
SELECT ALL - 9 AS col2, COALESCE ( 72, + 56 ) * 38 AS col1
----
-9
2736

query II rowsort
SELECT ALL - 12, - 9 + 7 * 70 AS col1
----
-12
481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5673
SELECT ALL - 26 + + + 24 / CAST( NULL AS DECIMAL ) * COALESCE ( - - SUM( - 17 ), 63 + - AVG ( 21 ) - + - 55 + - - 66, - - 85 * + 29 * - SUM( + 66 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL - 26 + + + 24 / CAST ( NULL AS REAL ) * COALESCE ( - - SUM ( - 17 ), 63 + - AVG ( 21 ) - + - 55 + - - 66, - - 85 * + 29 * - SUM ( + 66 ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 63 + + 80 AS col1
----
143

query I rowsort
SELECT + 14 * + 35 + CASE - - 55 WHEN + 86 - + 25 THEN + - 76 WHEN - + 71 / - 40 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5677
SELECT ALL + + 79 * CAST( + 94 AS SIGNED ) * + + CASE + 13 WHEN + - 61 + + - 44 * + - 66 + + - 53 + - CASE + + 20 WHEN + ( - + 69 ) THEN NULL WHEN 36 + + 34 THEN - 31 ELSE NULL END + + CASE + 34 WHEN - SUM( ALL + CAST( NULL AS SIGNED ) ) - 31 THEN 78 * COUNT( * ) WHEN + ( CASE + 2 WHEN 85 THEN NULL WHEN NULLIF ( - 16, 80 ) THEN + 92 + COALESCE ( 96, COUNT( * ) * + 59 + - ( 22 ), COUNT( * ) ) * 1 ELSE - 10 + - 52 END ) - - AVG ( - 28 ) THEN NULL ELSE NULL END * + 52 * - COUNT( DISTINCT 7 * - 92 + 95 * + 59 ) THEN NULL WHEN COUNT( * ) THEN 54 + + 30 / + CAST( - 38 + 40 AS DECIMAL ) WHEN - 78 + 82 THEN - 35 * + 39 END + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + + 79 * CAST ( + 94 AS INTEGER ) * + + CASE + 13 WHEN + - 61 + + - 44 * + - 66 + + - 53 + - CASE + + 20 WHEN + ( - + 69 ) THEN NULL WHEN 36 + + 34 THEN - 31 ELSE NULL END + + CASE + 34 WHEN - SUM ( ALL + CAST ( NULL AS INTEGER ) ) - 31 THEN 78 * COUNT ( * ) WHEN + ( CASE + 2 WHEN 85 THEN NULL WHEN NULLIF ( - 16, 80 ) THEN + 92 + COALESCE ( 96, COUNT ( * ) * + 59 + - ( 22 ), COUNT ( * ) ) * 1 ELSE - 10 + - 52 END ) - - AVG ( - 28 ) THEN NULL ELSE NULL END * + 52 * - COUNT ( DISTINCT 7 * - 92 + 95 * + 59 ) THEN NULL WHEN COUNT ( * ) THEN 54 + + 30 / + CAST ( - 38 + 40 AS REAL ) WHEN - 78 + 82 THEN - 35 * + 39 END + 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5678
SELECT DISTINCT + 95 + 98 - - 58 DIV - + 34 AS col2
----
192

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + 95 + 98 - - 58 / - + 34 AS col2
----
192

query I rowsort
SELECT - 93 + + 42 AS col1
----
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5681
SELECT ALL - CAST( + CASE + 16 WHEN COUNT( * ) THEN + - 5 - 59 WHEN 67 THEN NULL ELSE 3 END AS SIGNED ) AS col0, + 83 + - 69 * + - ( MAX( DISTINCT - - 2 ) )
----
-3
221

skipif mysql # not compatible
query II rowsort label-5681
SELECT ALL - CAST ( + CASE + 16 WHEN COUNT ( * ) THEN + - 5 - 59 WHEN 67 THEN NULL ELSE 3 END AS INTEGER ) AS col0, + 83 + - 69 * + - ( MAX ( DISTINCT - - 2 ) )
----
-3
221

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

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - 82 + + - COUNT ( * ) - + + 75 AS col1
----
-158

query II rowsort
SELECT 7 AS col1, 34 col0
----
7
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT - CAST( - NULLIF ( - - 49, + + 27 ) AS SIGNED ) * - - 49
----
2401

skipif mysql # not compatible
query I rowsort label-5684
SELECT - CAST ( - NULLIF ( - - 49, + + 27 ) AS INTEGER ) * - - 49
----
2401

query II rowsort
SELECT ALL - 67, 3 AS col1
----
-67
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT - ( - + 55 ) * CAST( + + 2 AS SIGNED ) + 76 * - 78 * ( + 90 ) + + 85
----
-533325

skipif mysql # not compatible
query I rowsort label-5687
SELECT - ( - + 55 ) * CAST ( + + 2 AS INTEGER ) + 76 * - 78 * ( + 90 ) + + 85
----
-533325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL - 30 * - COALESCE ( - CAST( NULL AS SIGNED ), 36 )
----
1080

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - 30 * - COALESCE ( - CAST ( NULL AS INTEGER ), 36 )
----
1080

query I rowsort
SELECT DISTINCT 52 * + + 94 AS col2
----
4888

query I rowsort
SELECT ALL - 86 * + 52
----
-4472

query I rowsort
SELECT 95 * + 13 AS col2
----
1235

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

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

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

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

query I rowsort
SELECT 58 * - 74
----
-4292

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

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

query I rowsort
SELECT ( + 4 ) - 17
----
-13

query I rowsort
SELECT ( + + 8 ) + 85 AS col2
----
93

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5699
SELECT 47 * 84, ( + CAST( 48 AS SIGNED ) ) DIV + - 78 col1
----
3948
0

skipif mysql # not compatible
query II rowsort label-5699
SELECT 47 * 84, ( + CAST ( 48 AS INTEGER ) ) / + - 78 col1
----
3948
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5700
SELECT 83 + 32 + - 84 + + 66 + + + 74 AS col1, - 93 * - 54 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - 70 col0
----
171
NULL

skipif mysql # not compatible
query II rowsort label-5700
SELECT 83 + 32 + - 84 + + 66 + + + 74 AS col1, - 93 * - 54 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - 70 col0
----
171
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT SUM( ALL + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5701
SELECT SUM ( ALL + 41 ) AS col2
----
41

query I rowsort
SELECT ALL 23 * - 85 + - - 12 AS col1
----
-1943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5703
SELECT DISTINCT MIN( DISTINCT ( 76 ) ) * - - SUM( + + 82 ) - + - 38 + COALESCE ( 52, + 13 + - 64 + - 7 + + MIN( + + 66 ) * + 84 + - 37, 71 ) * 11 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT MIN ( DISTINCT ( 76 ) ) * - - SUM ( + + 82 ) - + - 38 + COALESCE ( 52, + 13 + - 64 + - 7 + + MIN ( + + 66 ) * + 84 + - 37, 71 ) * 11 + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5704
SELECT 73 * + NULLIF ( COUNT( * ), 47 * + 41 * - CAST( NULL AS DECIMAL ) / + + SUM( ( + - 88 ) ) * - + 47 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5704
SELECT 73 * + NULLIF ( COUNT ( * ), 47 * + 41 * - CAST ( NULL AS REAL ) / + + SUM ( ( + - 88 ) ) * - + 47 ) AS col1
----
73

query II rowsort
SELECT DISTINCT 21 * 62 AS col1, 64
----
1302
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT ALL CAST( ( - 81 ) AS SIGNED ) * - + 16 + 45 AS col1
----
1341

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL CAST ( ( - 81 ) AS INTEGER ) * - + 16 + 45 AS col1
----
1341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT ALL + CASE - 28 WHEN + 36 THEN 12 + - 98 + + COALESCE ( 83, + ( + COALESCE ( - + COUNT( * ), CAST( NULL AS SIGNED ) / 10 * - 48 * - 10 / 57 ) ) ) WHEN 27 THEN NULL ELSE 59 * - CAST( NULL AS SIGNED ) + + 45 * + COUNT( * ) END * 40 - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + CASE - 28 WHEN + 36 THEN 12 + - 98 + + COALESCE ( 83, + ( + COALESCE ( - + COUNT ( * ), CAST ( NULL AS INTEGER ) / 10 * - 48 * - 10 / 57 ) ) ) WHEN 27 THEN NULL ELSE 59 * - CAST ( NULL AS INTEGER ) + + 45 * + COUNT ( * ) END * 40 - + 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5708
SELECT ALL - CASE - 26 WHEN - ( + 52 ) THEN + + MAX( DISTINCT + 30 ) WHEN + - CAST( NULL AS SIGNED ) THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - CASE - 26 WHEN - ( + 52 ) THEN + + MAX ( DISTINCT + 30 ) WHEN + - CAST ( NULL AS INTEGER ) THEN - 32 END
----
NULL

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

query I rowsort
SELECT - 52 * + 68 + - - 80 AS col0
----
-3456

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL + - 72 * - 71 - - MIN( - 53 ) * - 22 AS col0
----
6278

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + - 72 * - 71 - - MIN ( - 53 ) * - 22 AS col0
----
6278

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT DISTINCT + 48 * - + 73 col2, - 65 + - + COUNT( * )
----
-3504
-66

skipif mysql # not compatible
query II rowsort label-5714
SELECT DISTINCT + 48 * - + 73 col2, - 65 + - + COUNT ( * )
----
-3504
-66

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

query I rowsort
SELECT ALL + NULLIF ( + 2, 90 * + + 13 * + + 75 + + 58 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5717
SELECT - + 4 DIV + - 53 * + - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5717
SELECT - + 4 / + - 53 * + - 40 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5718
SELECT + CASE + - 46 WHEN + COALESCE ( 48, - 89 * + - COALESCE ( - - COUNT( * ), 96, + - 83 * - 0 ) / + 50 * + 74 / - + 36 * + 22, - 38 + - COUNT( * ) ) THEN + ( MIN( DISTINCT 18 ) ) + CAST( - 50 AS SIGNED ) END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT + CASE + - 46 WHEN + COALESCE ( 48, - 89 * + - COALESCE ( - - COUNT ( * ), 96, + - 83 * - 0 ) / + 50 * + 74 / - + 36 * + 22, - 38 + - COUNT ( * ) ) THEN + ( MIN ( DISTINCT 18 ) ) + CAST ( - 50 AS INTEGER ) END * 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5719
SELECT ALL CASE - - 39 WHEN + COUNT( * ) THEN - - ( + ( 37 ) ) * 2 * + 46 WHEN - + COUNT( * ) + - ( + + 66 ) THEN + CAST( - MAX( CAST( - 42 AS SIGNED ) ) AS SIGNED ) + + NULLIF ( COUNT( * ), + 29 ) ELSE 44 END col0
----
44

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL CASE - - 39 WHEN + COUNT ( * ) THEN - - ( + ( 37 ) ) * 2 * + 46 WHEN - + COUNT ( * ) + - ( + + 66 ) THEN + CAST ( - MAX ( CAST ( - 42 AS INTEGER ) ) AS INTEGER ) + + NULLIF ( COUNT ( * ), + 29 ) ELSE 44 END col0
----
44

query I rowsort
SELECT DISTINCT - 43 + 26
----
-17

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

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

query I rowsort
SELECT - 82 * - 30 * 67
----
164820

query II rowsort
SELECT - 97 AS col0, 16 - + 76 AS col0
----
-97
-60

query I rowsort
SELECT DISTINCT - 80 + - + 32 + + + ( + - 58 ) col2
----
-170

query I rowsort
SELECT ALL + 26 + - 49
----
-23

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

skipif mysql # not compatible
query I rowsort label-5726
SELECT - COUNT ( * ) - + 34 * 51 + - 81 AS col2
----
-1816

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT - SUM( + 92 ) * + - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5727
SELECT - SUM ( + 92 ) * + - COUNT ( * ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT - CASE + 47 WHEN 2 THEN + 21 END - - + MIN( ALL + 94 ) / 29 - + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT - CASE + 47 WHEN 2 THEN + 21 END - - + MIN ( ALL + 94 ) / 29 - + 48 AS col2
----
NULL

query I rowsort
SELECT ALL + 26 + - 28 * 87
----
-2410

query II rowsort
SELECT 42, 94 + + + 83 col1
----
42
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL - 63 - COUNT( + 74 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - 63 - COUNT ( + 74 ) AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5732
SELECT DISTINCT 56 * 57 - COALESCE ( - + 42, 40 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT 56 * 57 - COALESCE ( - + 42, 40 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT ALL + + 8 DIV + 81 * - 93 + + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL + + 8 / + 81 * - 93 + + 3 AS col2
----
3

query I rowsort
SELECT ( - - 25 ) * - 56 - + - ( + - 39 ) + - - 62 + 62 * - 3 AS col0
----
-1563

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT - ( + MAX( DISTINCT - 89 ) ) + + 38 * 31 AS col0
----
1267

skipif mysql # not compatible
query I rowsort label-5735
SELECT - ( + MAX ( DISTINCT - 89 ) ) + + 38 * 31 AS col0
----
1267

onlyif mysql # aggregate syntax: 
query II rowsort label-5736
SELECT + 78, - 90 * - NULLIF ( MIN( 24 ), + 60 ) * + MAX( ALL 35 ) * + 14 AS col1
----
78
1058400

skipif mysql # not compatible
query II rowsort label-5736
SELECT + 78, - 90 * - NULLIF ( MIN ( 24 ), + 60 ) * + MAX ( ALL 35 ) * + 14 AS col1
----
78
1058400

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT - ( - + 52 ) * + 84 + + COUNT( * ) + - ( + + 38 ) * 8 + + MIN( DISTINCT 28 ) + - + ( 98 )
----
3995

skipif mysql # not compatible
query I rowsort label-5739
SELECT - ( - + 52 ) * + 84 + + COUNT ( * ) + - ( + + 38 ) * 8 + + MIN ( DISTINCT 28 ) + - + ( 98 )
----
3995

query II rowsort
SELECT + 35, - 5 * 12 AS col0
----
35
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5741
SELECT ALL + COALESCE ( ( - - 34 ), 3 ) * - + CASE - 97 WHEN + MAX( DISTINCT + + 22 ) * + 95 * - + 99 * - 41 THEN NULL ELSE + + 47 * + 52 END, 22 AS col0
----
-83096
22

skipif mysql # not compatible
query II rowsort label-5741
SELECT ALL + COALESCE ( ( - - 34 ), 3 ) * - + CASE - 97 WHEN + MAX ( DISTINCT + + 22 ) * + 95 * - + 99 * - 41 THEN NULL ELSE + + 47 * + 52 END, 22 AS col0
----
-83096
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT + COALESCE ( COUNT( * ), 53 + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + COALESCE ( COUNT ( * ), 53 + + COUNT ( * ) )
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT + 53 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-5744
SELECT + 53 / 37
----
1

query I rowsort
SELECT + - 42 * 53 AS col2
----
-2226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT DISTINCT + - 8 * CAST( - 87 AS SIGNED ) * - 44 + + 10 * 66
----
-29964

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + - 8 * CAST ( - 87 AS INTEGER ) * - 44 + + 10 * 66
----
-29964

query II rowsort
SELECT 54 AS col2, 75 AS col2
----
54
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT - NULLIF ( - COUNT( ALL 87 ), NULLIF ( COUNT( * ), + 97 ) + + 89 - - 26 + + + CASE 46 WHEN 54 THEN + - 32 ELSE + - COUNT( * ) END * 4 / + 98 / + 9 )
----
1

skipif mysql # not compatible
query I rowsort label-5748
SELECT - NULLIF ( - COUNT ( ALL 87 ), NULLIF ( COUNT ( * ), + 97 ) + + 89 - - 26 + + + CASE 46 WHEN 54 THEN + - 32 ELSE + - COUNT ( * ) END * 4 / + 98 / + 9 )
----
1

query I rowsort
SELECT ALL - 87 * + 50 col2
----
-4350

query II rowsort
SELECT ALL 27 AS col2, 41
----
27
41

query I rowsort
SELECT + 88 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5752
SELECT DISTINCT 28 * 67 * - COUNT( * ) + + 91 AS col2, COUNT( * ) + 55 + - - 76 * + 79 + + COUNT( * ) * - 99
----
-1785
5961

skipif mysql # not compatible
query II rowsort label-5752
SELECT DISTINCT 28 * 67 * - COUNT ( * ) + + 91 AS col2, COUNT ( * ) + 55 + - - 76 * + 79 + + COUNT ( * ) * - 99
----
-1785
5961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5753
SELECT ALL - 39 + + - CAST( COUNT( * ) AS SIGNED ) + - 98
----
-138

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - 39 + + - CAST ( COUNT ( * ) AS INTEGER ) + - 98
----
-138

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

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

query I rowsort
SELECT DISTINCT 5 + 56
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT - CAST( NULL AS SIGNED ) * 69 / + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT - CAST ( NULL AS INTEGER ) * 69 / + 26 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5757
SELECT - CAST( + AVG ( + - 36 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-5757
SELECT - CAST ( + AVG ( + - 36 ) AS INTEGER )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5758
SELECT 17 AS col0, 39 + + 54 + + - COUNT( * ) + 72 * + ( - + CAST( + 11 AS SIGNED ) )
----
17
-700

skipif mysql # not compatible
query II rowsort label-5758
SELECT 17 AS col0, 39 + + 54 + + - COUNT ( * ) + 72 * + ( - + CAST ( + 11 AS INTEGER ) )
----
17
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL NULLIF ( - 54, + - COUNT( 66 ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL NULLIF ( - 54, + - COUNT ( 66 ) ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5760
SELECT 98, + 40 + COUNT( * ) * + CASE - - 25 WHEN 13 THEN NULL WHEN 30 * - 11 THEN + 43 END * 86 AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-5760
SELECT 98, + 40 + COUNT ( * ) * + CASE - - 25 WHEN 13 THEN NULL WHEN 30 * - 11 THEN + 43 END * 86 AS col2
----
98
NULL

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

query I rowsort
SELECT - 98 + + 44
----
-54

query I rowsort
SELECT ALL 4 - 67
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5764
SELECT ALL + CASE 35 WHEN - CAST( COUNT( * ) AS DECIMAL ) / + 69 * MAX( DISTINCT + - 54 ) THEN - ( + 27 ) END - + ( + - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL + CASE 35 WHEN - CAST ( COUNT ( * ) AS REAL ) / + 69 * MAX ( DISTINCT + - 54 ) THEN - ( + 27 ) END - + ( + - 99 )
----
NULL

query II rowsort
SELECT - 68 + - + 60 * - + ( + - 52 ), - 10 AS col2
----
-3188
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT - 27 * - COUNT( - + 58 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5766
SELECT - 27 * - COUNT ( - + 58 ) AS col2
----
27

query I rowsort
SELECT ALL + 4 * 36
----
144

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT - - 53 * + - CAST( 81 AS SIGNED )
----
-4293

skipif mysql # not compatible
query I rowsort label-5769
SELECT - - 53 * + - CAST ( 81 AS INTEGER )
----
-4293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT - - CAST( - - COUNT( * ) AS SIGNED ) + - + CAST( - + 8 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5770
SELECT - - CAST ( - - COUNT ( * ) AS INTEGER ) + - + CAST ( - + 8 AS INTEGER ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5771
SELECT + CAST( + MAX( - 96 ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-5771
SELECT + CAST ( + MAX ( - 96 ) AS INTEGER )
----
-96

query I rowsort
SELECT - + 20 * 89 AS col2
----
-1780

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT + 4 DIV + + 50 * 24 col1
----
0

skipif mysql # not compatible
query I rowsort label-5773
SELECT + 4 / + + 50 * 24 col1
----
0

query II rowsort
SELECT ALL + - 74 AS col2, + 64 - - 4
----
-74
68

onlyif mysql # DIV for integer division: 
query II rowsort label-5775
SELECT 32 AS col0, + 43 + - 8 DIV 49
----
32
43

skipif mysql # not compatible
query II rowsort label-5775
SELECT 32 AS col0, + 43 + - 8 / 49
----
32
43

query I rowsort
SELECT 24 * + - 9
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT - 70 DIV 3 - 32
----
-55

skipif mysql # not compatible
query I rowsort label-5777
SELECT - 70 / 3 - 32
----
-55

query I rowsort
SELECT ALL - + NULLIF ( 95, - 10 ) col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT ( - SUM( DISTINCT 43 ) ) * + + ( + + 7 ) AS col2
----
-301

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT ( - SUM ( DISTINCT 43 ) ) * + + ( + + 7 ) AS col2
----
-301

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

query I rowsort
SELECT 3 * - 22
----
-66

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5783
SELECT - 29 * COUNT( * ) + - + 35 * + + ( + 47 ) + + - COUNT( * ) - COUNT( * ), + 79 col1
----
-1676
79

skipif mysql # not compatible
query II rowsort label-5783
SELECT - 29 * COUNT ( * ) + - + 35 * + + ( + 47 ) + + - COUNT ( * ) - COUNT ( * ), + 79 col1
----
-1676
79

query II rowsort
SELECT + 76 AS col0, 91
----
76
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT ALL + 46 + - ( + 48 ) + + COUNT( * ) + 24
----
23

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL + 46 + - ( + 48 ) + + COUNT ( * ) + 24
----
23

onlyif mysql # aggregate syntax: 
query III rowsort label-5786
SELECT DISTINCT - COUNT( * ) col1, COUNT( * ) - - COUNT( * ) + + 50, + COALESCE ( + - COUNT( DISTINCT 19 ), + COALESCE ( - 57, - + COALESCE ( - - 89, + COUNT( * ), - SUM( 20 ) ) * 66 - + - 68 + + 45 ) ) AS col2
----
-1
52
-1

skipif mysql # not compatible
query III rowsort label-5786
SELECT DISTINCT - COUNT ( * ) col1, COUNT ( * ) - - COUNT ( * ) + + 50, + COALESCE ( + - COUNT ( DISTINCT 19 ), + COALESCE ( - 57, - + COALESCE ( - - 89, + COUNT ( * ), - SUM ( 20 ) ) * 66 - + - 68 + + 45 ) ) AS col2
----
-1
52
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5787
SELECT + CASE 57 WHEN - - ( + + COALESCE ( - NULLIF ( + 35, 47 * + COUNT( * ) ), - - 56 * - - 13 - - 62 * 13 ) ) THEN + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT + CASE 57 WHEN - - ( + + COALESCE ( - NULLIF ( + 35, 47 * + COUNT ( * ) ), - - 56 * - - 13 - - 62 * 13 ) ) THEN + - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT DISTINCT + 52 * + COUNT( ALL + 76 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT + 52 * + COUNT ( ALL + 76 ) AS col2
----
52

query I rowsort
SELECT DISTINCT 64 + + 65 + - - 98
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT CASE - 31 WHEN 86 THEN NULL WHEN 59 + MAX( DISTINCT + 27 ) THEN NULL ELSE + 75 * - 3 + 66 * COALESCE ( - 54, + MAX( ALL 96 ) + + - 83 ) END * + NULLIF ( + ( + 63 ), 61 ) + - 26 AS col0
----
-238733

skipif mysql # not compatible
query I rowsort label-5790
SELECT CASE - 31 WHEN 86 THEN NULL WHEN 59 + MAX ( DISTINCT + 27 ) THEN NULL ELSE + 75 * - 3 + 66 * COALESCE ( - 54, + MAX ( ALL 96 ) + + - 83 ) END * + NULLIF ( + ( + 63 ), 61 ) + - 26 AS col0
----
-238733

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5792
SELECT DISTINCT 52 * + + 92 AS col2, 49 * + COUNT( * ) + + + 60 + - - 16 + - - NULLIF ( + CASE - - 34 WHEN + COUNT( * ) THEN COALESCE ( + 44, 17 ) * + - 43 * + 51 WHEN + NULLIF ( - + 44, + 29 ) THEN 41 END, 39 ) AS col1
----
4784
NULL

skipif mysql # not compatible
query II rowsort label-5792
SELECT DISTINCT 52 * + + 92 AS col2, 49 * + COUNT ( * ) + + + 60 + - - 16 + - - NULLIF ( + CASE - - 34 WHEN + COUNT ( * ) THEN COALESCE ( + 44, 17 ) * + - 43 * + 51 WHEN + NULLIF ( - + 44, + 29 ) THEN 41 END, 39 ) AS col1
----
4784
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT 98 * + 2 * + ( - 39 ) * - - 66 * - MAX( DISTINCT + 34 ) AS col1
----
17153136

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT 98 * + 2 * + ( - 39 ) * - - 66 * - MAX ( DISTINCT + 34 ) AS col1
----
17153136

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT 2 DIV 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT 2 / 13 AS col0
----
0

query I rowsort
SELECT ( - - COALESCE ( + 33, 80 * - 31 ) ) - + - 71
----
104

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

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

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

skipif mysql # not compatible
query I rowsort label-5798
SELECT 0 - - + MAX ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT 46 + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5799
SELECT 46 + - COUNT ( * )
----
45

query II rowsort
SELECT DISTINCT ( + 79 ) AS col1, + ( - 39 ) col1
----
79
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT ALL 29 + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL 29 + COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT SUM( DISTINCT - 36 ) - 27 * + 56
----
-1548

skipif mysql # not compatible
query I rowsort label-5802
SELECT SUM ( DISTINCT - 36 ) - 27 * + 56
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT + ( 67 ) + - NULLIF ( - 91, COUNT( * ) ) + - 35
----
123

skipif mysql # not compatible
query I rowsort label-5803
SELECT + ( 67 ) + - NULLIF ( - 91, COUNT ( * ) ) + - 35
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT 18 + + 7, + COUNT( * ) AS col2
----
25
1

skipif mysql # not compatible
query II rowsort label-5804
SELECT 18 + + 7, + COUNT ( * ) AS col2
----
25
1

query I rowsort
SELECT DISTINCT - - 60 + + - 22 * + 74
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT ALL - + CAST( NULL AS SIGNED ) + - CASE - 43 WHEN + 98 + - + MAX( - + 57 ) * + 34 / + 3 THEN 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - + CAST ( NULL AS INTEGER ) + - CASE - 43 WHEN + 98 + - + MAX ( - + 57 ) * + 34 / + 3 THEN 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT - COALESCE ( - 47, 14 * ( - + COUNT( * ) ) + - - 43 * + + 14, 92 + + - 44 ) * ( - 43 ) + + COALESCE ( - 75, 89, 60 - - 22 ) - 57 + 76
----
-2077

skipif mysql # not compatible
query I rowsort label-5807
SELECT - COALESCE ( - 47, 14 * ( - + COUNT ( * ) ) + - - 43 * + + 14, 92 + + - 44 ) * ( - 43 ) + + COALESCE ( - 75, 89, 60 - - 22 ) - 57 + 76
----
-2077

query I rowsort
SELECT ALL - + 94 + 33 - - + 54 AS col0
----
-7

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

query I rowsort
SELECT 87 + - 63 + 65 + - 6
----
83

query I rowsort
SELECT 67 * - 48 AS col0
----
-3216

query I rowsort
SELECT 66 * - - 91 + NULLIF ( - - 17, - 87 ) AS col0
----
6023

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5814
SELECT + 82 AS col0, - COALESCE ( + COALESCE ( + 81, 3 + 69 DIV - 86, + 66 ), ( - 53 ) * - 23 )
----
82
-81

skipif mysql # not compatible
query II rowsort label-5814
SELECT + 82 AS col0, - COALESCE ( + COALESCE ( + 81, 3 + 69 / - 86, + 66 ), ( - 53 ) * - 23 )
----
82
-81

query II rowsort
SELECT + 37 AS col0, + 83 AS col2
----
37
83

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

skipif mysql # not compatible
query I rowsort label-5816
SELECT COUNT ( ALL - - 74 ) * - + 3 AS col2
----
-3

query I rowsort
SELECT ( NULLIF ( - + 18, 97 ) ) * + - 41 AS col0
----
738

query I rowsort
SELECT 92 * - 99
----
-9108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT ALL - 4 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - 4 * - CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT 66 AS col2, 74
----
66
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5821
SELECT - 59 AS col2, + CAST( - 4 AS SIGNED ) * 9 * - 94
----
-59
3384

skipif mysql # not compatible
query II rowsort label-5821
SELECT - 59 AS col2, + CAST ( - 4 AS INTEGER ) * 9 * - 94
----
-59
3384

query I rowsort
SELECT 82 * + 79 AS col2
----
6478

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5824
SELECT AVG ( ALL - 91 ) + 90 + + ( - 79 ) - - 28 * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT AVG ( ALL - 91 ) + 90 + + ( - 79 ) - - 28 * + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5825
SELECT 36 DIV + - NULLIF ( - 88, - + 88 - - + 88 + - - MAX( - CAST( NULL AS SIGNED ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT 36 / + - NULLIF ( - 88, - + 88 - - + 88 + - - MAX ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT - CAST ( - + 59 AS INTEGER ) / - CAST ( NULL AS INTEGER ) / COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5828
SELECT ALL - 6 + 55 + 96 + - - ( 45 ) * 58 DIV COUNT( * ) + + + 71 * 19 AS col1
----
4104

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - 6 + 55 + 96 + - - ( 45 ) * 58 / COUNT ( * ) + + + 71 * 19 AS col1
----
4104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5829
SELECT + + 37 DIV - + COUNT( * ) + - SUM( - + 8 ) * - 22 + + 82
----
-131

skipif mysql # not compatible
query I rowsort label-5829
SELECT + + 37 / - + COUNT ( * ) + - SUM ( - + 8 ) * - 22 + + 82
----
-131

query I rowsort
SELECT ALL + 31 + + 55 * + 19 + 24 + + + 21 AS col1
----
1121

query I rowsort
SELECT ALL 22 * + 26 AS col2
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + - MIN( 19 ) * + 73 * - 13 col0
----
18031

skipif mysql # not compatible
query I rowsort label-5832
SELECT + - MIN ( 19 ) * + 73 * - 13 col0
----
18031

onlyif mysql # aggregate syntax: 
query II rowsort label-5833
SELECT + CASE - 3 WHEN + - COUNT( + ( - - 65 ) ) THEN - + 5 / 58 + + - 48 + + + COUNT( * ) * 47 END + + 54 col1, 84 * - - 37
----
NULL
3108

skipif mysql # not compatible
query II rowsort label-5833
SELECT + CASE - 3 WHEN + - COUNT ( + ( - - 65 ) ) THEN - + 5 / 58 + + - 48 + + + COUNT ( * ) * 47 END + + 54 col1, 84 * - - 37
----
NULL
3108

query I rowsort
SELECT ALL 36 + + 62
----
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5836
SELECT + 19 * - - 78 + - NULLIF ( COALESCE ( - ( - CAST( - 16 AS SIGNED ) ), - CAST( - 27 AS SIGNED ) + + 29 ), + 75 ) col2
----
1498

skipif mysql # not compatible
query I rowsort label-5836
SELECT + 19 * - - 78 + - NULLIF ( COALESCE ( - ( - CAST ( - 16 AS INTEGER ) ), - CAST ( - 27 AS INTEGER ) + + 29 ), + 75 ) col2
----
1498

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL + + COALESCE ( 75, + 70 ) * - + 57 + - - COUNT( * ) + 50
----
-4224

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL + + COALESCE ( 75, + 70 ) * - + 57 + - - COUNT ( * ) + 50
----
-4224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT DISTINCT + 43 * + 70 + + 6 * COUNT( * ) DIV + - ( - 71 ) * 53
----
3010

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT + 43 * + 70 + + 6 * COUNT ( * ) / + - ( - 71 ) * 53
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT SUM( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-5839
SELECT SUM ( 62 )
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT - 8 * - 82 * - + COUNT( * )
----
-656

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT - 8 * - 82 * - + COUNT ( * )
----
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT + 14 * 73 - - 80 * - ( + - COUNT( * ) )
----
1102

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT + 14 * 73 - - 80 * - ( + - COUNT ( * ) )
----
1102

onlyif mysql # aggregate syntax: 
query II rowsort label-5843
SELECT 75 * + - 0 - + COUNT( * ) * - 81 * + COALESCE ( 72, COUNT( * ) ) + + 78, - 45 * - 68 col2
----
5910
3060

skipif mysql # not compatible
query II rowsort label-5843
SELECT 75 * + - 0 - + COUNT ( * ) * - 81 * + COALESCE ( 72, COUNT ( * ) ) + + 78, - 45 * - 68 col2
----
5910
3060

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

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

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

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

query I rowsort
SELECT COALESCE ( - + 76, - 80 * + - 44 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL + NULLIF ( + 32, + NULLIF ( + 53, MIN( + - 16 ) ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + NULLIF ( + 32, + NULLIF ( + 53, MIN ( + - 16 ) ) ) AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5848
SELECT - 82 - - 12 + + COUNT( * ) DIV + - NULLIF ( - 86, 73 )
----
-70

skipif mysql # not compatible
query I rowsort label-5848
SELECT - 82 - - 12 + + COUNT ( * ) / + - NULLIF ( - 86, 73 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT - 88 * COUNT( * ) AS col2, + 47
----
-88
47

skipif mysql # not compatible
query II rowsort label-5849
SELECT - 88 * COUNT ( * ) AS col2, + 47
----
-88
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5850
SELECT - ( - 72 ) - - + NULLIF ( - CAST( 77 AS SIGNED ), - - 22 ) + + 48 * + + COUNT( DISTINCT 80 ) * + 28 * 48 + + MAX( ALL + 1 )
----
64508

skipif mysql # not compatible
query I rowsort label-5850
SELECT - ( - 72 ) - - + NULLIF ( - CAST ( 77 AS INTEGER ), - - 22 ) + + 48 * + + COUNT ( DISTINCT 80 ) * + 28 * 48 + + MAX ( ALL + 1 )
----
64508

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

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

query I rowsort
SELECT - 28 * + 4 AS col1
----
-112

query I rowsort
SELECT - 4 - + 63
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT ALL + 45 DIV ( 96 ) DIV - ( + + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL + 45 / ( 96 ) / - ( + + 53 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5855
SELECT - NULLIF ( + CAST( 60 AS DECIMAL ), - + 20 ) / 87 + + + ( + ( + - ( + 81 ) ) ) + 36 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT - NULLIF ( + CAST ( 60 AS REAL ), - + 20 ) / 87 + + + ( + ( + - ( + 81 ) ) ) + 36 * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 22 * - - 39 col0, 46 AS col2
----
-858
46

query I rowsort
SELECT + 98 * 92
----
9016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5858
SELECT ALL - 73 + + - 39 + + + 93 * - CAST( NULL AS SIGNED ) + + 48 * - NULLIF ( 5, + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL - 73 + + - 39 + + + 93 * - CAST ( NULL AS INTEGER ) + + 48 * - NULLIF ( 5, + 70 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT - 91 + 4 + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT - 91 + 4 + - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT ALL 56 * CAST( NULL AS SIGNED ) * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL 56 * CAST ( NULL AS INTEGER ) * - 33
----
NULL

query I rowsort
SELECT - + 41 * 92 + 43
----
-3729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5863
SELECT DISTINCT + CAST( + 50 AS SIGNED ) + + - 57 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT + CAST ( + 50 AS INTEGER ) + + - 57 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL MIN( DISTINCT + 42 ) + + - ( + 32 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL MIN ( DISTINCT + 42 ) + + - ( + 32 ) AS col0
----
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT - 81 + + 64 - + 94 + 62 DIV - + 66
----
-111

skipif mysql # not compatible
query I rowsort label-5866
SELECT - 81 + + 64 - + 94 + 62 / - + 66
----
-111

query I rowsort
SELECT + 50 * - 21
----
-1050

query I rowsort
SELECT DISTINCT - NULLIF ( + 6, - 27 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT - + 89 - + - ( 24 ) DIV 95 + + - 77
----
-166

skipif mysql # not compatible
query I rowsort label-5869
SELECT - + 89 - + - ( 24 ) / 95 + + - 77
----
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-5870
SELECT ALL - COUNT( * ) + - 62 col0, + 83
----
-63
83

skipif mysql # not compatible
query II rowsort label-5870
SELECT ALL - COUNT ( * ) + - 62 col0, + 83
----
-63
83

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

query I rowsort
SELECT + - ( - NULLIF ( + 26, + + 6 * + - 98 ) ) * + + 26 AS col0
----
676

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

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

query I rowsort
SELECT + + 39 + 30
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5875
SELECT DISTINCT - 67 DIV 7 + - + 81 - - + 77 + - 78 * - - MIN( - + 90 ) + + 6 * + - ( + 83 ) * - 14 AS col0
----
13979

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT - 67 / 7 + - + 81 - - + 77 + - 78 * - - MIN ( - + 90 ) + + 6 * + - ( + 83 ) * - 14 AS col0
----
13979

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT DISTINCT 76 DIV - - 31 - + 67 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT 76 / - - 31 - + 67 AS col1
----
-65

query I rowsort
SELECT + + 87 * - 29 + - 87 AS col0
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT + - ( - + COUNT( * ) ) * 95 + - CASE + 13 WHEN + 79 THEN 91 * + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT + - ( - + COUNT ( * ) ) * 95 + - CASE + 13 WHEN + 79 THEN 91 * + 20 END
----
NULL

query I rowsort
SELECT + 93 + + + 22
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-5880
SELECT + 6 * + MAX( + 94 ) AS col2, 81 * - - NULLIF ( - + 3, 89 * + CASE + NULLIF ( - + SUM( - 76 ), + 55 ) WHEN - - ( 97 ) * + NULLIF ( + 12, - 96 ) - + - ( - - 3 ) THEN - COUNT( * ) + + 29 WHEN 56 THEN NULL ELSE + 79 END + + COUNT( * ) * + 33 ) * - CASE 85 + 23 WHEN + ( ( + 68 ) ) + + 37 THEN + 26 END
----
564
NULL

skipif mysql # not compatible
query II rowsort label-5880
SELECT + 6 * + MAX ( + 94 ) AS col2, 81 * - - NULLIF ( - + 3, 89 * + CASE + NULLIF ( - + SUM ( - 76 ), + 55 ) WHEN - - ( 97 ) * + NULLIF ( + 12, - 96 ) - + - ( - - 3 ) THEN - COUNT ( * ) + + 29 WHEN 56 THEN NULL ELSE + 79 END + + COUNT ( * ) * + 33 ) * - CASE 85 + 23 WHEN + ( ( + 68 ) ) + + 37 THEN + 26 END
----
564
NULL

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

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

query I rowsort
SELECT + 68 * - + 95 + + + 10 AS col0
----
-6450

query I rowsort
SELECT DISTINCT 47 * + NULLIF ( - - 27, + - 95 )
----
1269

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5884
SELECT ALL + 47 col1, CAST( NULL AS SIGNED ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-5884
SELECT ALL + 47 col1, CAST ( NULL AS INTEGER ) AS col2
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT + MIN( - 6 ) * 85
----
-510

skipif mysql # not compatible
query I rowsort label-5885
SELECT + MIN ( - 6 ) * 85
----
-510

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

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

query I rowsort
SELECT ALL - 49 * - 24
----
1176

query I rowsort
SELECT - 28 + + - 11 - - 92 AS col1
----
53

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

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

query I rowsort
SELECT - 46 * - 85
----
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT - 30 * COUNT( * ) + + - ( - + 40 ) + + 97 * - 36 AS col0
----
-3482

skipif mysql # not compatible
query I rowsort label-5892
SELECT - 30 * COUNT ( * ) + + - ( - + 40 ) + + 97 * - 36 AS col0
----
-3482

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL - 69 * MAX( DISTINCT + 83 ) + ( + 23 ) AS col1
----
-5704

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL - 69 * MAX ( DISTINCT + 83 ) + ( + 23 ) AS col1
----
-5704

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT - 98 DIV + + 15
----
-6

skipif mysql # not compatible
query I rowsort label-5894
SELECT - 98 / + + 15
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT + ( - - MAX( ALL + 95 ) ) + - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5895
SELECT + ( - - MAX ( ALL + 95 ) ) + - - COUNT ( * )
----
96

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

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

query I rowsort
SELECT ALL 92 + + + ( - - 56 ) AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL MIN( + 12 ) + - - 77 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL MIN ( + 12 ) + - - 77 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT - 87 + + 39 + - 7 + COUNT( * ) + - 76 * - 67 - - 88 AS col0
----
5126

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - 87 + + 39 + - 7 + COUNT ( * ) + - 76 * - 67 - - 88 AS col0
----
5126

onlyif mysql # aggregate syntax: 
query II rowsort label-5900
SELECT DISTINCT 71 AS col1, - COUNT( * ) AS col0
----
71
-1

skipif mysql # not compatible
query II rowsort label-5900
SELECT DISTINCT 71 AS col1, - COUNT ( * ) AS col0
----
71
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5901
SELECT ALL - 84 + + + 86 - + COALESCE ( + 76, + 80, + 74 * - 2 ) + + + 74 + - CAST( 39 AS SIGNED ) DIV - 76 * - 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - 84 + + + 86 - + COALESCE ( + 76, + 80, + 74 * - 2 ) + + + 74 + - CAST ( 39 AS INTEGER ) / - 76 * - 13 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT 79 * + - MAX( + - 32 ) + - - COUNT( + 37 ) * + + 20 * 83 AS col1
----
4188

skipif mysql # not compatible
query I rowsort label-5902
SELECT 79 * + - MAX ( + - 32 ) + - - COUNT ( + 37 ) * + + 20 * 83 AS col1
----
4188

query I rowsort
SELECT DISTINCT - 73 + - 3 + 4 + + ( + 32 )
----
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT DISTINCT + 82 DIV ( 37 )
----
2

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT + 82 / ( 37 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT COUNT( - 36 ) + - + NULLIF ( - 39, - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-5906
SELECT COUNT ( - 36 ) + - + NULLIF ( - 39, - COUNT ( * ) )
----
40

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT 44 - + + CASE CAST( 48 AS SIGNED ) WHEN + COUNT( * ) * 55 THEN - COUNT( * ) - ( + 12 ) - CASE - NULLIF ( + - 20, + 19 ) WHEN 32 * + CASE + 64 WHEN 37 + ( - MAX( DISTINCT - - 65 ) ) * AVG ( 57 ) THEN NULL WHEN + 0 THEN NULL ELSE - 94 + 45 * + 83 END + 94 THEN 90 WHEN + 66 - 7 / + 96 THEN 59 - - 97 END WHEN COUNT( DISTINCT + 82 ) * 32 + COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT 44 - + + CASE CAST ( 48 AS INTEGER ) WHEN + COUNT ( * ) * 55 THEN - COUNT ( * ) - ( + 12 ) - CASE - NULLIF ( + - 20, + 19 ) WHEN 32 * + CASE + 64 WHEN 37 + ( - MAX ( DISTINCT - - 65 ) ) * AVG ( 57 ) THEN NULL WHEN + 0 THEN NULL ELSE - 94 + 45 * + 83 END + 94 THEN 90 WHEN + 66 - 7 / + 96 THEN 59 - - 97 END WHEN COUNT ( DISTINCT + 82 ) * 32 + COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5909
SELECT DISTINCT COALESCE ( + - 53, - 1 * - 62 + - MAX( ALL - 49 ) * - + 11 DIV + AVG ( ALL + + 56 ) + - 95 ) AS col2, SUM( DISTINCT 85 ) + 57 * + NULLIF ( 95, - - 45 )
----
-53
5500

skipif mysql # not compatible
query II rowsort label-5909
SELECT DISTINCT COALESCE ( + - 53, - 1 * - 62 + - MAX ( ALL - 49 ) * - + 11 / + AVG ( ALL + + 56 ) + - 95 ) AS col2, SUM ( DISTINCT 85 ) + 57 * + NULLIF ( 95, - - 45 )
----
-53
5500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5910
SELECT ALL CASE - - 93 WHEN ( CAST( + 96 AS SIGNED ) ) - - + 15 THEN NULL WHEN + - 29 / 94 THEN + 96 + COUNT( * ) - 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL CASE - - 93 WHEN ( CAST ( + 96 AS INTEGER ) ) - - + 15 THEN NULL WHEN + - 29 / 94 THEN + 96 + COUNT ( * ) - 81 END AS col2
----
NULL

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

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

query I rowsort
SELECT + 64 + + 68 AS col1
----
132

query I rowsort
SELECT + 8 * - 2
----
-16

query I rowsort
SELECT 93 * - ( + 70 ) + + 18 * - - 0
----
-6510

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT DISTINCT 35 DIV + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT 35 / + 81 AS col2
----
0

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

query II rowsort
SELECT + 30 AS col0, + 5
----
30
5

onlyif mysql # DIV for integer division: 
query III rowsort label-5918
SELECT DISTINCT + 63 DIV + - 13 AS col1, + ( + - 26 ) AS col0, 70
----
-4
-26
70

skipif mysql # not compatible
query III rowsort label-5918
SELECT DISTINCT + 63 / + - 13 AS col1, + ( + - 26 ) AS col0, 70
----
-4
-26
70

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT CAST( + 57 AS SIGNED ) * 11 * - + CASE + 8 WHEN - 13 THEN 1 WHEN + 68 + - - 34 THEN NULL END + + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT CAST ( + 57 AS INTEGER ) * 11 * - + CASE + 8 WHEN - 13 THEN 1 WHEN + 68 + - - 34 THEN NULL END + + 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT COUNT( * ) - - NULLIF ( + + COUNT( * ), + 46 ) + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5922
SELECT COUNT ( * ) - - NULLIF ( + + COUNT ( * ), + 46 ) + + COUNT ( * ) AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5923
SELECT COUNT( * ) * - - 9 col2, + 36 * 69 DIV 80 * - + 67
----
9
-2077

skipif mysql # not compatible
query II rowsort label-5923
SELECT COUNT ( * ) * - - 9 col2, + 36 * 69 / 80 * - + 67
----
9
-2077

query I rowsort
SELECT ALL 92 + 81 AS col2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL 51 + + ( + + MIN( + 92 ) )
----
143

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL 51 + + ( + + MIN ( + 92 ) )
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-5926
SELECT DISTINCT - 59 AS col0, COUNT( * ) + - + 3
----
-59
-2

skipif mysql # not compatible
query II rowsort label-5926
SELECT DISTINCT - 59 AS col0, COUNT ( * ) + - + 3
----
-59
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5927
SELECT ALL - 62, CASE + 86 WHEN + + 46 * 94 - - 21 + + CAST( 17 AS DECIMAL ) + ( + COUNT( * ) ) * 77 / + COUNT( + 43 ) THEN - - 20 END AS col1
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-5927
SELECT ALL - 62, CASE + 86 WHEN + + 46 * 94 - - 21 + + CAST ( 17 AS REAL ) + ( + COUNT ( * ) ) * 77 / + COUNT ( + 43 ) THEN - - 20 END AS col1
----
-62
NULL

query I rowsort
SELECT ( - 25 ) * - 52 AS col1
----
1300

query II rowsort
SELECT ALL - 72, 86 + 0 AS col0
----
-72
86

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

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

query I rowsort
SELECT ALL ( - 20 ) + 91 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT - 72 * - 35 * - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT - 72 * - 35 * - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - - 69 AS col2, 95 * + + 58 AS col1
----
69
5510

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5935
SELECT ALL 22 AS col2, + CASE + 78 WHEN 48 THEN + - 72 * + COUNT( * ) + 67 + + 17 WHEN + 40 * 89 THEN NULL ELSE NULL END + - 26
----
22
NULL

skipif mysql # not compatible
query II rowsort label-5935
SELECT ALL 22 AS col2, + CASE + 78 WHEN 48 THEN + - 72 * + COUNT ( * ) + 67 + + 17 WHEN + 40 * 89 THEN NULL ELSE NULL END + - 26
----
22
NULL

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

query II rowsort
SELECT - 45 AS col2, COALESCE ( 13, - 32 ) + - 31 * - 52
----
-45
1625

query I rowsort
SELECT + 79 + - 79 * - 99
----
7900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5939
SELECT - COUNT( + CAST( 73 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5939
SELECT - COUNT ( + CAST ( 73 AS INTEGER ) ) AS col0
----
-1

query I rowsort
SELECT 87 * + 52
----
4524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5941
SELECT ALL - 76 DIV - - MIN( ALL + 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - 76 / - - MIN ( ALL + 60 )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT 64 + - ( + + COUNT( * ) ) col1
----
63

skipif mysql # not compatible
query I rowsort label-5943
SELECT 64 + - ( + + COUNT ( * ) ) col1
----
63

query I rowsort
SELECT ALL + 85 * - 26
----
-2210

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT 49 * + 29 * - COUNT( * ) - 61 col1
----
-1482

skipif mysql # not compatible
query I rowsort label-5946
SELECT 49 * + 29 * - COUNT ( * ) - 61 col1
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT + MIN( 54 ) * - + 23 AS col1
----
-1242

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT + MIN ( 54 ) * - + 23 AS col1
----
-1242

query I rowsort
SELECT 76 + - - ( 71 )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT - 84 / 3 / + - 70 + + NULLIF ( - CASE 26 WHEN - 31 * 51 + 10 + 92 / - 35 + - 73 THEN - 74 ELSE NULL END, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT - 84 / 3 / + - 70 + + NULLIF ( - CASE 26 WHEN - 31 * 51 + 10 + 92 / - 35 + - 73 THEN - 74 ELSE NULL END, COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT COALESCE ( - + 47, + MIN( ALL - 77 ) * - MIN( ALL - 32 ) * 47 * + 26 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5950
SELECT COALESCE ( - + 47, + MIN ( ALL - 77 ) * - MIN ( ALL - 32 ) * 47 * + 26 ) AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5951
SELECT NULLIF ( + + 64, - 87 * + COUNT( * ) * 88 * - ( - 81 ) + + 36 ) DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-5951
SELECT NULLIF ( + + 64, - 87 * + COUNT ( * ) * 88 * - ( - 81 ) + + 36 ) / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT 21 + + NULLIF ( - COUNT( * ), COUNT( * ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5952
SELECT 21 + + NULLIF ( - COUNT ( * ), COUNT ( * ) ) AS col2
----
20

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5954
SELECT ALL CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) / + CASE + - 71 WHEN - + ( - 59 ) + - COUNT( * ) * - - 40 / - 30 / COUNT( * ) * + - 57 * - - 86 THEN + 53 WHEN - ( + 35 ) THEN - CAST( NULL AS SIGNED ) + 45 ELSE 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL CAST ( CAST ( NULL AS REAL ) AS INTEGER ) / + CASE + - 71 WHEN - + ( - 59 ) + - COUNT ( * ) * - - 40 / - 30 / COUNT ( * ) * + - 57 * - - 86 THEN + 53 WHEN - ( + 35 ) THEN - CAST ( NULL AS INTEGER ) + 45 ELSE 36 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5955
SELECT DISTINCT - 98 * + 21 * 69 + - SUM( ALL + + ( 36 ) ) + - 62 + - + 39 DIV + 56 * 33 AS col2
----
-142100

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT - 98 * + 21 * 69 + - SUM ( ALL + + ( 36 ) ) + - 62 + - + 39 / + 56 * 33 AS col2
----
-142100

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

skipif mysql # not compatible
query I rowsort label-5956
SELECT - 27 / + COUNT ( * ) + - 24 AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5957
SELECT ALL - CASE + + 20 WHEN CASE + + NULLIF ( - + 68, - + COALESCE ( 86, - 67, + 83 + SUM( ALL - - 20 ) DIV - - COUNT( * ) * - 26 ) ) WHEN - 82 THEN NULL WHEN - 72 * 57 THEN NULL ELSE + 99 DIV 46 + - 47 + - 42 + + 43 * + 68 - + 35 END + + 25 THEN + MIN( CAST( NULL AS SIGNED ) ) WHEN - 12 THEN NULL ELSE 2 DIV - 72 END * 67 + - ( - COALESCE ( 67, + COUNT( * ) ) )
----
67

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - CASE + + 20 WHEN CASE + + NULLIF ( - + 68, - + COALESCE ( 86, - 67, + 83 + SUM ( ALL - - 20 ) / - - COUNT ( * ) * - 26 ) ) WHEN - 82 THEN NULL WHEN - 72 * 57 THEN NULL ELSE + 99 / 46 + - 47 + - 42 + + 43 * + 68 - + 35 END + + 25 THEN + MIN ( CAST ( NULL AS INTEGER ) ) WHEN - 12 THEN NULL ELSE 2 / - 72 END * 67 + - ( - COALESCE ( 67, + COUNT ( * ) ) )
----
67

query I rowsort
SELECT + 39 * + 84 * 10 * 75
----
2457000

query II rowsort
SELECT ALL - 14 * - - ( - 98 ) * + 41 * 88 AS col1, 79
----
4950176
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT DISTINCT - COUNT( * ) * + 58 + + + 49
----
-9

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT - COUNT ( * ) * + 58 + + + 49
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5961
SELECT + 15 + + - 59 DIV - COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5961
SELECT + 15 + + - 59 / - COUNT ( * ) AS col1
----
74

query I rowsort
SELECT DISTINCT - 88 * 17 * 47 + - - 99 AS col2
----
-70213

query I rowsort
SELECT - 3 * - 90 * - 60
----
-16200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5964
SELECT ALL + - 34 * + - 52 + + - MAX( + 60 ) - + 93 DIV CAST( - 22 AS SIGNED ) AS col1
----
1712

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + - 34 * + - 52 + + - MAX ( + 60 ) - + 93 / CAST ( - 22 AS INTEGER ) AS col1
----
1712

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ( CASE - ( - 43 ) WHEN NULLIF ( + + AVG ( ALL - 40 ), 64 ) + + - COUNT( * ) THEN + NULLIF ( + COUNT( * ), - - 57 * + 57 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT ( CASE - ( - 43 ) WHEN NULLIF ( + + AVG ( ALL - 40 ), 64 ) + + - COUNT ( * ) THEN + NULLIF ( + COUNT ( * ), - - 57 * + 57 ) END ) AS col1
----
NULL

query I rowsort
SELECT + + ( 28 ) + + + 90 AS col1
----
118

query I rowsort
SELECT ALL + COALESCE ( 37, + 98 + + 98, - 98 * - 19 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5968
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN + 55 THEN - 56 WHEN - - ( - 39 ) * + + 67 + 35 THEN NULL WHEN 17 * - NULLIF ( - 32, - 26 + - + COUNT( * ) ) + - 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN + 55 THEN - 56 WHEN - - ( - 39 ) * + + 67 + 35 THEN NULL WHEN 17 * - NULLIF ( - 32, - 26 + - + COUNT ( * ) ) + - 67 THEN NULL END
----
NULL

query I rowsort
SELECT + - 2 * 83 - - - 62 * + 78 + + 83
----
-4919

query I rowsort
SELECT + 33 + 18 + - 34
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT ALL COALESCE ( + - COUNT( * ), + 46 + COUNT( * ) + - + CASE - + 25 WHEN 6 THEN - - 71 DIV - 21 * ( + 48 ) * + 70 * 93 WHEN + ( 41 ) THEN NULL END * 72, + COUNT( * ) ) * - + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL COALESCE ( + - COUNT ( * ), + 46 + COUNT ( * ) + - + CASE - + 25 WHEN 6 THEN - - 71 / - 21 * ( + 48 ) * + 70 * 93 WHEN + ( 41 ) THEN NULL END * 72, + COUNT ( * ) ) * - + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5972
SELECT ALL - ( - COUNT( * ) ) AS col1, 39 * 64
----
1
2496

skipif mysql # not compatible
query II rowsort label-5972
SELECT ALL - ( - COUNT ( * ) ) AS col1, 39 * 64
----
1
2496

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5974
SELECT + 86 + - - CAST( NULL AS SIGNED ), 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-5974
SELECT + 86 + - - CAST ( NULL AS INTEGER ), 53 AS col0
----
NULL
53

query I rowsort
SELECT + 90 * + 47 AS col2
----
4230

onlyif mysql # DIV for integer division: 
query II rowsort label-5976
SELECT - 60 * + 4 + 59 + + - 76 * 59 * 92 DIV + - 35 AS col2, - 28 col2
----
11605
-28

skipif mysql # not compatible
query II rowsort label-5976
SELECT - 60 * + 4 + 59 + + - 76 * 59 * 92 / + - 35 AS col2, - 28 col2
----
11605
-28

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5979
SELECT ALL + NULLIF ( ( - CASE WHEN - 22 NOT IN ( 17, 90, + + COUNT( * ) * + NULLIF ( 62, - 44 + 68 ) * + 94, + CAST( NULL AS SIGNED ) + - 84, 52, 62 ) THEN - ( 35 ) + - 14 * - + 64 ELSE NULL END ), + - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + NULLIF ( ( - CASE WHEN - 22 NOT IN ( 17, 90, + + COUNT ( * ) * + NULLIF ( 62, - 44 + 68 ) * + 94, + CAST ( NULL AS INTEGER ) + - 84, 52, 62 ) THEN - ( 35 ) + - 14 * - + 64 ELSE NULL END ), + - 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT 87 * + 69 + - ( + + COUNT( * ) )
----
6002

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT 87 * + 69 + - ( + + COUNT ( * ) )
----
6002

onlyif mysql # aggregate syntax: 
query II rowsort label-5981
SELECT + + 76 * - COUNT( * ), 84 col1
----
-76
84

skipif mysql # not compatible
query II rowsort label-5981
SELECT + + 76 * - COUNT ( * ), 84 col1
----
-76
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5982
SELECT ALL - - COALESCE ( - 28, 84 + + + 86, + 99 ) + + COALESCE ( + + CASE - - 2 WHEN - + 85 THEN NULL WHEN COUNT( * ) * 77 THEN 56 DIV - 97 END, 77 )
----
49

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - - COALESCE ( - 28, 84 + + + 86, + 99 ) + + COALESCE ( + + CASE - - 2 WHEN - + 85 THEN NULL WHEN COUNT ( * ) * 77 THEN 56 / - 97 END, 77 )
----
49

query I rowsort
SELECT - + 59 + 94
----
35

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

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

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

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

query I rowsort
SELECT - 82 * - + 96
----
7872

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT ALL 61 DIV + 81 + - 20 * + + 87 AS col0
----
-1740

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL 61 / + 81 + - 20 * + + 87 AS col0
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL + COUNT( * ) * 32 * + 22
----
704

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL + COUNT ( * ) * 32 * + 22
----
704

query I rowsort
SELECT - 46 * + - ( + 10 ) AS col1
----
460

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

query I rowsort
SELECT ALL + CASE COALESCE ( 29, - 15 ) WHEN - 15 THEN 56 + - + NULLIF ( - 73, - 55 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL + MIN( ALL 65 )
----
65

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL + MIN ( ALL 65 )
----
65

query I rowsort
SELECT ALL - 28 * + + 39
----
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT - 10 + 83 DIV + 48
----
-9

skipif mysql # not compatible
query I rowsort label-5997
SELECT - 10 + 83 / + 48
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT 46 DIV ( - + 18 ) DIV + 89 + + + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5998
SELECT 46 / ( - + 18 ) / + 89 + + + 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5999
SELECT ALL + 61 * + + COALESCE ( + 50, - + COUNT( + + ( - ( 61 ) ) ) * + 77 + 66 ) * 86 - - + 52, 44 AS col0
----
262352
44

skipif mysql # not compatible
query II rowsort label-5999
SELECT ALL + 61 * + + COALESCE ( + 50, - + COUNT ( + + ( - ( 61 ) ) ) * + 77 + 66 ) * 86 - - + 52, 44 AS col0
----
262352
44

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

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

query I rowsort
SELECT - 80 * - - 18
----
-1440

query II rowsort
SELECT ALL + 97 col1, - 99 * - + 22 AS col2
----
97
2178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6003
SELECT + - COALESCE ( CASE 32 WHEN CAST( - 87 AS SIGNED ) THEN - 89 * 24 WHEN ( - + 79 ) THEN NULL ELSE NULL END, 22, + 59 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6003
SELECT + - COALESCE ( CASE 32 WHEN CAST ( - 87 AS INTEGER ) THEN - 89 * 24 WHEN ( - + 79 ) THEN NULL ELSE NULL END, 22, + 59 ) AS col2
----
-22

query I rowsort
SELECT DISTINCT 2 * 67 * - 85
----
-11390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT - + CAST( - - 28 AS SIGNED ) * - 80 - 18
----
2222

skipif mysql # not compatible
query I rowsort label-6005
SELECT - + CAST ( - - 28 AS INTEGER ) * - 80 - 18
----
2222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6006
SELECT ALL - - COUNT( 47 ) DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - - COUNT ( 47 ) / - 69 AS col0
----
0

query II rowsort
SELECT ALL + + 25, - 7 * + ( - 70 ) AS col1
----
25
490

query I rowsort
SELECT + NULLIF ( + 29, + 76 )
----
29

query I rowsort
SELECT DISTINCT - 42 * + 86
----
-3612

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6010
SELECT - ( - CAST( NULL AS SIGNED ) ) * 48, 0 AS col0, - + 46 + - 72 AS col2
----
NULL
0
-118

skipif mysql # not compatible
query III rowsort label-6010
SELECT - ( - CAST ( NULL AS INTEGER ) ) * 48, 0 AS col0, - + 46 + - 72 AS col2
----
NULL
0
-118

query I rowsort
SELECT + 17 * - 74 + - 53 AS col1
----
-1311

query I rowsort
SELECT ALL 91 * - 77 AS col0
----
-7007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6013
SELECT - 61 * + CAST( - - COUNT( + 32 ) AS SIGNED ) / NULLIF ( + CAST( CASE COUNT( * ) WHEN 88 / + 65 / 31 + + - 61 + - + 16 + + + 89 * - 22 + + + 7 * + 75 - - 80 - + - 47 * + - ( 69 ) + - NULLIF ( + - AVG ( 27 ), 58 * 8 ) THEN 15 END AS DECIMAL ), 17 - + 40 / SUM( ALL + 27 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT - 61 * + CAST ( - - COUNT ( + 32 ) AS INTEGER ) / NULLIF ( + CAST ( CASE COUNT ( * ) WHEN 88 / + 65 / 31 + + - 61 + - + 16 + + + 89 * - 22 + + + 7 * + 75 - - 80 - + - 47 * + - ( 69 ) + - NULLIF ( + - AVG ( 27 ), 58 * 8 ) THEN 15 END AS REAL ), 17 - + 40 / SUM ( ALL + 27 ) ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - + SUM( ALL - 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6015
SELECT - + SUM ( ALL - 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT + + 65 / + AVG ( ALL + - 89 ) + - CASE - 29 WHEN COUNT( * ) * + 51 + + COUNT( * ) - + 61 * + 79 THEN 35 END * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6016
SELECT + + 65 / + AVG ( ALL + - 89 ) + - CASE - 29 WHEN COUNT ( * ) * + 51 + + COUNT ( * ) - + 61 * + 79 THEN 35 END * + 93
----
NULL

query I rowsort
SELECT ALL + 49 * + 79 AS col0
----
3871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6018
SELECT + + CASE - - 74 WHEN - COUNT( * ) * 76 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - + 90 END * - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT + + CASE - - 74 WHEN - COUNT ( * ) * 76 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - + 90 END * - - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6019
SELECT - COALESCE ( - ( - ( + COUNT( 82 ) ) ), + - CAST( + - 40 AS SIGNED ) - + 29, 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6019
SELECT - COALESCE ( - ( - ( + COUNT ( 82 ) ) ), + - CAST ( + - 40 AS INTEGER ) - + 29, 79 ) AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL 80 + + COUNT ( * ) + + COUNT ( * ) * ( + 34 ) / 64 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT + 19 - - - 51 + - + 31 / 15 / - + CAST( NULL AS SIGNED ) * - CASE - 27 WHEN 73 THEN NULL WHEN - NULLIF ( - COUNT( * ), - 67 ) THEN + 2 / + + MAX( ALL - 68 ) + - 45 END - - - ( - ( + + ( + 43 ) ) ) + - 30 / - 57 * + 62 / + 34 - + ( 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT + 19 - - - 51 + - + 31 / 15 / - + CAST ( NULL AS INTEGER ) * - CASE - 27 WHEN 73 THEN NULL WHEN - NULLIF ( - COUNT ( * ), - 67 ) THEN + 2 / + + MAX ( ALL - 68 ) + - 45 END - - - ( - ( + + ( + 43 ) ) ) + - 30 / - 57 * + 62 / + 34 - + ( 93 )
----
NULL

query I rowsort
SELECT ALL ( + 0 ) + + ( - 37 ) AS col0
----
-37

query I rowsort
SELECT - 63 + - 27
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT - SUM( - 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6024
SELECT - SUM ( - 2 ) AS col1
----
2

query I rowsort
SELECT ALL 3 + - + 27
----
-24

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

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

query I rowsort
SELECT DISTINCT 70 * - 69
----
-4830

query I rowsort
SELECT - ( - - 44 )
----
-44

query I rowsort
SELECT 21 * + 86 * + 71 AS col2
----
128226

onlyif mysql # DIV for integer division: 
query I rowsort label-6030
SELECT 92 + 22 + 52 * 37 DIV - - 58 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-6030
SELECT 92 + 22 + 52 * 37 / - - 58 AS col0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT DISTINCT 5 * CAST( + 51 AS SIGNED ) AS col0
----
255

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT 5 * CAST ( + 51 AS INTEGER ) AS col0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ( - 2 ) + - CASE - 16 WHEN ( + 21 ) * COALESCE ( + + 53, ( COUNT( * ) ) ) THEN - ( 73 ) * + - 47 WHEN - 77 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT ( - 2 ) + - CASE - 16 WHEN ( + 21 ) * COALESCE ( + + 53, ( COUNT ( * ) ) ) THEN - ( 73 ) * + - 47 WHEN - 77 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL COUNT( DISTINCT 15 ) + + + 76
----
77

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL COUNT ( DISTINCT 15 ) + + + 76
----
77

query II rowsort
SELECT DISTINCT 34 * 57 * ( 99 ) AS col0, 12 AS col1
----
191862
12

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - 32 * + + COUNT( * ) + + 70 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-6037
SELECT - 32 * + + COUNT ( * ) + + 70 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6038
SELECT MAX( + 99 ) DIV - 64 + + COUNT( - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-6038
SELECT MAX ( + 99 ) / - 64 + + COUNT ( - 57 )
----
0

query I rowsort
SELECT ALL 98 - 93 AS col0
----
5

query I rowsort
SELECT - 69 * - + 79 + - 15
----
5436

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6042
SELECT DISTINCT COALESCE ( - 43, 97, - - 37 ) DIV + ( - 89 ) * + + 41
----
0

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT COALESCE ( - 43, 97, - - 37 ) / + ( - 89 ) * + + 41
----
0

query I rowsort
SELECT DISTINCT + 42 - + + 72 + + 38
----
8

query I rowsort
SELECT ALL - 46 * + + 39 + 92
----
-1702

query I rowsort
SELECT 13 * - + 71 + 11 col0
----
-912

query I rowsort
SELECT - 18 + - 41
----
-59

query II rowsort
SELECT + NULLIF ( + - 68, + 2 / 79 ) AS col1, - ( + 10 ) AS col0
----
-68
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6048
SELECT ALL - - COUNT( ALL 30 ) col1, 39 + - + MIN( - - 5 ) * - CAST( NULL AS DECIMAL ) - + COUNT( * ) - - 11
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6048
SELECT ALL - - COUNT ( ALL 30 ) col1, 39 + - + MIN ( - - 5 ) * - CAST ( NULL AS REAL ) - + COUNT ( * ) - - 11
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL + - COUNT( * ) + CASE - + 37 WHEN + + COALESCE ( + 12, - 67 ) * - ( - - 0 ) THEN - + 53 END + 7 - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL + - COUNT ( * ) + CASE - + 37 WHEN + + COALESCE ( + 12, - 67 ) * - ( - - 0 ) THEN - + 53 END + 7 - 26 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT DISTINCT - 61 + - COALESCE ( CAST( - 94 AS SIGNED ), + NULLIF ( 70, + CAST( NULL AS SIGNED ) ) * + ( + 19 ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT - 61 + - COALESCE ( CAST ( - 94 AS INTEGER ), + NULLIF ( 70, + CAST ( NULL AS INTEGER ) ) * + ( + 19 ) ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT DISTINCT - SUM( ALL 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT - SUM ( ALL 44 ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6052
SELECT - COUNT( * ) DIV - NULLIF ( ( + 24 ), - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-6052
SELECT - COUNT ( * ) / - NULLIF ( ( + 24 ), - 99 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT + 17 + + NULLIF ( + 52, COUNT( * ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6053
SELECT + 17 + + NULLIF ( + 52, COUNT ( * ) ) AS col0
----
69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT + 31 + + 1 - + 63 DIV - 96 * + 94 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6055
SELECT + 31 + + 1 - + 63 / - 96 * + 94 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL + 4 * + 81 * + 16 + + COUNT( + 44 )
----
5185

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + 4 * + 81 * + 16 + + COUNT ( + 44 )
----
5185

query I rowsort
SELECT DISTINCT 29 * 17
----
493

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL COUNT( DISTINCT + ( 78 ) ) + + + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL COUNT ( DISTINCT + ( 78 ) ) + + + 83 AS col2
----
84

query I rowsort
SELECT 92 * + + 17
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT NULLIF ( + 85, + 99 + COUNT( * ) * + 5 ) * - MIN( + - 43 )
----
3655

skipif mysql # not compatible
query I rowsort label-6060
SELECT NULLIF ( + 85, + 99 + COUNT ( * ) * + 5 ) * - MIN ( + - 43 )
----
3655

query I rowsort
SELECT 1 * + 22 * + 97 * + + 51 col2
----
108834

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT - COUNT( * ) * + - 37 * 55 * - 4
----
-8140

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT - COUNT ( * ) * + - 37 * 55 * - 4
----
-8140

query I rowsort
SELECT COALESCE ( - 87, 10 ) * + + 16 col1
----
-1392

query II rowsort
SELECT - 47, 23 AS col0
----
-47
23

query I rowsort
SELECT 17 * - ( 63 ) * - 27 + + 25
----
28942

query I rowsort
SELECT ALL 51 * + 13 AS col2
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT MIN( + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-6067
SELECT MIN ( + 21 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6068
SELECT ALL CASE + 71 WHEN + CAST( NULL AS SIGNED ) + - + 78 + + 99 + 12 + + 63 + - 0 + - - COALESCE ( + + COUNT( * ), + COALESCE ( + 15, 55, + ( + 53 ) + - COUNT( * ) * + - 34 ) - + - 47 - + 55 + - 36 * - 25 * COUNT( * ) ) * - COUNT( * ) * - 76 + - - 64 THEN 91 WHEN + 12 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL CASE + 71 WHEN + CAST ( NULL AS INTEGER ) + - + 78 + + 99 + 12 + + 63 + - 0 + - - COALESCE ( + + COUNT ( * ), + COALESCE ( + 15, 55, + ( + 53 ) + - COUNT ( * ) * + - 34 ) - + - 47 - + 55 + - 36 * - 25 * COUNT ( * ) ) * - COUNT ( * ) * - 76 + - - 64 THEN 91 WHEN + 12 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 68 * - - 44
----
2992

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6070
SELECT COALESCE ( - 91, - + 24, - + 1 ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT COALESCE ( - 91, - + 24, - + 1 ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6071
SELECT + COALESCE ( - 82, 50 * 10 DIV - + 52 + + CAST( NULL AS SIGNED ) + + + 28 * 45 * + + CAST( NULL AS SIGNED ) )
----
-82

skipif mysql # not compatible
query I rowsort label-6071
SELECT + COALESCE ( - 82, 50 * 10 / - + 52 + + CAST ( NULL AS INTEGER ) + + + 28 * 45 * + + CAST ( NULL AS INTEGER ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT + 30 * + - ( - 94 ) * + 79 + 34 + COUNT( * )
----
222815

skipif mysql # not compatible
query I rowsort label-6072
SELECT + 30 * + - ( - 94 ) * + 79 + 34 + COUNT ( * )
----
222815

onlyif mysql # aggregate syntax: 
query II rowsort label-6073
SELECT - 69, 50 + COUNT( * ) + + NULLIF ( + - 97, + + ( - + 88 ) ) + COUNT( * ) + + + 95 AS col0
----
-69
50

skipif mysql # not compatible
query II rowsort label-6073
SELECT - 69, 50 + COUNT ( * ) + + NULLIF ( + - 97, + + ( - + 88 ) ) + COUNT ( * ) + + + 95 AS col0
----
-69
50

query I rowsort
SELECT ALL - + ( + + 13 ) AS col0
----
-13

query I rowsort
SELECT + 90 * - 71 * + 27 AS col0
----
-172530

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT - 99 DIV - 75 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6076
SELECT - 99 / - 75 AS col2
----
1

query I rowsort
SELECT ALL - + 38 + - 51
----
-89

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

query I rowsort
SELECT - 56 + - 7 AS col1
----
-63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT ALL - 68 * 59 DIV + 58
----
-69

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - 68 * 59 / + 58
----
-69

query I rowsort
SELECT DISTINCT + 41 * + - 85 AS col2
----
-3485

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6083
SELECT ALL + NULLIF ( 61, + 56 + + CAST( - 30 AS DECIMAL ) ) * + + 68 AS col1
----
4148

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + NULLIF ( 61, + 56 + + CAST ( - 30 AS REAL ) ) * + + 68 AS col1
----
4148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6084
SELECT - - 87 AS col2, + 13 DIV - MIN( - - 66 )
----
87
0

skipif mysql # not compatible
query II rowsort label-6084
SELECT - - 87 AS col2, + 13 / - MIN ( - - 66 )
----
87
0

query I rowsort
SELECT ALL 59 * 85 AS col0
----
5015

query I rowsort
SELECT ALL COALESCE ( 43, + + 29 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT ALL COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6087
SELECT ALL COUNT ( * ), COUNT ( * )
----
1
1

query II rowsort
SELECT 31 AS col0, + 22 + 27 + - 48 + - 64 * 32
----
31
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL MIN( + - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL MIN ( + - 51 ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * + 42 * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 42 * - 4
----
NULL

query I rowsort
SELECT - 40 - 73 col0
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6092
SELECT ALL + COUNT( 5 ) DIV COUNT( * ) DIV 80 * 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + COUNT ( 5 ) / COUNT ( * ) / 80 * 6 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT ALL - 23 - - CAST( NULL AS SIGNED ) / 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - 23 - - CAST ( NULL AS INTEGER ) / 25
----
NULL

query I rowsort
SELECT - 87 + 13
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6095
SELECT - MIN( DISTINCT + 71 ) AS col2, + COUNT( * ) * + 55 - + 40 AS col0
----
-71
15

skipif mysql # not compatible
query II rowsort label-6095
SELECT - MIN ( DISTINCT + 71 ) AS col2, + COUNT ( * ) * + 55 - + 40 AS col0
----
-71
15

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

skipif mysql # not compatible
query I rowsort label-6096
SELECT - 4 / COUNT ( * ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT DISTINCT + 51 * CASE + + 26 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE - COUNT( * ) * + 4 END AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT + 51 * CASE + + 26 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - COUNT ( * ) * + 4 END AS col0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT - 80 + + + 84 + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6098
SELECT - 80 + + + 84 + - COUNT ( * )
----
3

query I rowsort
SELECT DISTINCT COALESCE ( - - 40, + 60 )
----
40

query I rowsort
SELECT + 9 + 45
----
54

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

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

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

query II rowsort
SELECT + 68, ( - 11 ) + - 64 AS col1
----
68
-75

query II rowsort
SELECT + 47 AS col1, + 41 AS col2
----
47
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + 70 * - 79 + COUNT( * ) AS col1
----
-5529

skipif mysql # not compatible
query I rowsort label-6106
SELECT + 70 * - 79 + COUNT ( * ) AS col1
----
-5529

query II rowsort
SELECT + - 73 AS col2, + 27 AS col0
----
-73
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6108
SELECT ALL + - 97 col1, + CASE 92 WHEN 95 * - COUNT( * ) THEN + - 65 + + + ( COALESCE ( - 0, + AVG ( 33 ) * + + 40 + + ( - - 55 ) + - CASE + COUNT( - + 38 ) WHEN + COUNT( * ) * - + MIN( + + NULLIF ( NULLIF ( + - 76, ( 13 ) + - + 69 ), - 84 ) ) / + 78 THEN - 65 * 63 WHEN COUNT( * ) * + COUNT( + 23 * CAST( - 31 * - 90 AS SIGNED ) ) THEN + COUNT( * ) * 95 ELSE 31 + AVG ( 22 ) * 16 END - - 61 * 79 ) ) END AS col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6108
SELECT ALL + - 97 col1, + CASE 92 WHEN 95 * - COUNT ( * ) THEN + - 65 + + + ( COALESCE ( - 0, + AVG ( 33 ) * + + 40 + + ( - - 55 ) + - CASE + COUNT ( - + 38 ) WHEN + COUNT ( * ) * - + MIN ( + + NULLIF ( NULLIF ( + - 76, ( 13 ) + - + 69 ), - 84 ) ) / + 78 THEN - 65 * 63 WHEN COUNT ( * ) * + COUNT ( + 23 * CAST ( - 31 * - 90 AS INTEGER ) ) THEN + COUNT ( * ) * 95 ELSE 31 + AVG ( 22 ) * 16 END - - 61 * 79 ) ) END AS col0
----
-97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6109
SELECT DISTINCT - 44 * + COALESCE ( - - 82, + - 41 - COUNT( * ) + - 56 DIV - 74 + - 5 ) + - - COUNT( * ) - 10 + + 36 AS col1, 11
----
-3581
11

skipif mysql # not compatible
query II rowsort label-6109
SELECT DISTINCT - 44 * + COALESCE ( - - 82, + - 41 - COUNT ( * ) + - 56 / - 74 + - 5 ) + - - COUNT ( * ) - 10 + + 36 AS col1, 11
----
-3581
11

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

skipif mysql # not compatible
query I rowsort label-6110
SELECT - COUNT ( * ) * COUNT ( * ) + - - 98 AS col0
----
97

query II rowsort
SELECT ALL + + 80 AS col1, 53
----
80
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6112
SELECT ALL 6 * + 67 + 43 + + CASE - ( - - 62 ) WHEN 26 * 32 + + 51 * COALESCE ( SUM( + - NULLIF ( - 71, - 75 ) ), 87, - COUNT( * ) ) THEN NULL WHEN CAST( + + 13 AS SIGNED ) + - - 15 THEN - - 57 ELSE CAST( NULL AS SIGNED ) + - - 40 + + - 21 END + + 52 * 86 * + 51 / - 33 + 94 * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL 6 * + 67 + 43 + + CASE - ( - - 62 ) WHEN 26 * 32 + + 51 * COALESCE ( SUM ( + - NULLIF ( - 71, - 75 ) ), 87, - COUNT ( * ) ) THEN NULL WHEN CAST ( + + 13 AS INTEGER ) + - - 15 THEN - - 57 ELSE CAST ( NULL AS INTEGER ) + - - 40 + + - 21 END + + 52 * 86 * + 51 / - 33 + 94 * 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL - 1 * MIN( DISTINCT - 63 ) + - - 25 + - 47 * + + 25 + + 95
----
-992

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - 1 * MIN ( DISTINCT - 63 ) + - - 25 + - 47 * + + 25 + + 95
----
-992

query I rowsort
SELECT - 85 * - 32 + ( - - ( 26 ) ) AS col1
----
2746

query II rowsort
SELECT 15 col0, 73 AS col0
----
15
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL + + MAX( + NULLIF ( - ( - + 97 ), 61 ) )
----
97

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL + + MAX ( + NULLIF ( - ( - + 97 ), 61 ) )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6117
SELECT ALL + 8 * - COALESCE ( - - 42, + 43 + - + CAST( NULL AS SIGNED ) + - + 78 * - 29, 85 DIV 81 + + 90 + 17 ) + + + SUM( ALL 93 ) * - 32
----
-3312

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + 8 * - COALESCE ( - - 42, + 43 + - + CAST ( NULL AS INTEGER ) + - + 78 * - 29, 85 / 81 + + 90 + 17 ) + + + SUM ( ALL 93 ) * - 32
----
-3312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6118
SELECT DISTINCT - COUNT( * ) * 96 - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - COUNT ( * ) * 96 - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6119
SELECT - 23 * CAST( 73 AS SIGNED ) DIV - 9
----
186

skipif mysql # not compatible
query I rowsort label-6119
SELECT - 23 * CAST ( 73 AS INTEGER ) / - 9
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL ( + - MAX( 71 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL ( + - MAX ( 71 ) ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT 91 * + CASE + - 86 WHEN + 78 THEN + + 77 ELSE NULL END + + COUNT( * ) / + MAX( DISTINCT - 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT 91 * + CASE + - 86 WHEN + 78 THEN + + 77 ELSE NULL END + + COUNT ( * ) / + MAX ( DISTINCT - 15 ) AS col0
----
NULL

query I rowsort
SELECT - 99 * 89 AS col0
----
-8811

query II rowsort
SELECT - ( + 51 ), - 84 col0
----
-51
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT - COUNT( * ) + COALESCE ( + COUNT( * ), - 76, + 36 )
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT - COUNT ( * ) + COALESCE ( + COUNT ( * ), - 76, + 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT + SUM( ALL + + 19 ) * - + 22 AS col2
----
-418

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT + SUM ( ALL + + 19 ) * - + 22 AS col2
----
-418

query I rowsort
SELECT + 63 * - ( - 59 ) AS col2
----
3717

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT - CASE 42 WHEN 63 THEN + MIN( - 43 ) * - + SUM( DISTINCT 52 ) * + COUNT( * ) END + 56 * - SUM( ALL + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT - CASE 42 WHEN 63 THEN + MIN ( - 43 ) * - + SUM ( DISTINCT 52 ) * + COUNT ( * ) END + 56 * - SUM ( ALL + 38 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( - 74 ) * - 45 AS col2
----
3330

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

query II rowsort
SELECT ALL ( + 62 ) AS col0, - ( - 12 ) * - - CASE 39 WHEN - 73 THEN - 48 * - 49 + - ( + ( + + 92 ) ) ELSE + 0 END
----
62
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT - 33 * COUNT( * ), - 34 + - - 27 + - 40 * + 85 * + 31 AS col0
----
-33
-105407

skipif mysql # not compatible
query II rowsort label-6133
SELECT - 33 * COUNT ( * ), - 34 + - - 27 + - 40 * + 85 * + 31 AS col0
----
-33
-105407

query I rowsort
SELECT ALL COALESCE ( - + 98, - 49, + 82 )
----
-98

query II rowsort
SELECT DISTINCT - 20 + + - 18 AS col0, + 75 * + + 61 * - + 35 + 86
----
-38
-160039

query I rowsort
SELECT ALL + 65 + + + 5 AS col1
----
70

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

query II rowsort
SELECT - 97 * + 84 col1, 92 AS col0
----
-8148
92

query II rowsort
SELECT - 3 * - 52, - 81 AS col2
----
156
-81

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT DISTINCT - 20 + - 95 AS col2, - 7 + + COUNT( * ) AS col0
----
-115
-6

skipif mysql # not compatible
query II rowsort label-6141
SELECT DISTINCT - 20 + - 95 AS col2, - 7 + + COUNT ( * ) AS col0
----
-115
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6142
SELECT + CASE WHEN NOT + 84 NOT BETWEEN - 78 + 98 * 51 AND - ( ( - 28 ) ) * COUNT( * ) + + - 65 THEN NULL ELSE 16 DIV + 34 + + - 98 END DIV + 70 - ( - - CASE - COALESCE ( + 73, + - 66 * - 89 * - 72 ) WHEN COUNT( * ) DIV + 4 * CAST( - - 18 AS SIGNED ) + + + COUNT( * ) - - 88 THEN NULL WHEN 92 THEN NULL ELSE COUNT( * ) END ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6142
SELECT + CASE WHEN NOT + 84 NOT BETWEEN - 78 + 98 * 51 AND - ( ( - 28 ) ) * COUNT ( * ) + + - 65 THEN NULL ELSE 16 / + 34 + + - 98 END / + 70 - ( - - CASE - COALESCE ( + 73, + - 66 * - 89 * - 72 ) WHEN COUNT ( * ) / + 4 * CAST ( - - 18 AS INTEGER ) + + + COUNT ( * ) - - 88 THEN NULL WHEN 92 THEN NULL ELSE COUNT ( * ) END ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT ALL - - MIN( - 32 ) + - 15 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - - MIN ( - 32 ) + - 15 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - 11 - - NULLIF ( 83, + - 98 ) * - - MIN( ALL ( 46 ) )
----
3807

skipif mysql # not compatible
query I rowsort label-6144
SELECT - 11 - - NULLIF ( 83, + - 98 ) * - - MIN ( ALL ( 46 ) )
----
3807

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6147
SELECT DISTINCT - ( + COALESCE ( + 20, + ( - COALESCE ( + - 65, - + 84 ) ) * + - COALESCE ( + + 36, - 27 - - 70, + MAX( DISTINCT + 15 ) + - COUNT( * ) + + - 65 + - 9 DIV - - AVG ( ALL + 50 ) ) ) ) AS col0, SUM( - - 14 )
----
-20
14

skipif mysql # not compatible
query II rowsort label-6147
SELECT DISTINCT - ( + COALESCE ( + 20, + ( - COALESCE ( + - 65, - + 84 ) ) * + - COALESCE ( + + 36, - 27 - - 70, + MAX ( DISTINCT + 15 ) + - COUNT ( * ) + + - 65 + - 9 / - - AVG ( ALL + 50 ) ) ) ) AS col0, SUM ( - - 14 )
----
-20
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT COUNT( * ) + + - COALESCE ( + COUNT( * ), + + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-6149
SELECT COUNT ( * ) + + - COALESCE ( + COUNT ( * ), + + 80 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6150
SELECT ALL - ( - 83 ) AS col0, SUM( CAST( NULL AS DECIMAL ) ) AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-6150
SELECT ALL - ( - 83 ) AS col0, SUM ( CAST ( NULL AS REAL ) ) AS col1
----
83
NULL

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

skipif mysql # not compatible
query I rowsort label-6151
SELECT + + CAST ( + MAX ( DISTINCT + 46 ) AS INTEGER )
----
46

query I rowsort
SELECT 85 + - ( 47 ) col2
----
38

query I rowsort
SELECT ALL - ( + ( 23 ) ) * + - ( + NULLIF ( - 77, - COALESCE ( - 17, - - 57 ) ) ) - + 62
----
-1833

onlyif mysql # aggregate syntax: 
query II rowsort label-6154
SELECT 95 + - 19 * + 70, - COUNT( * ) AS col1
----
-1235
-1

skipif mysql # not compatible
query II rowsort label-6154
SELECT 95 + - 19 * + 70, - COUNT ( * ) AS col1
----
-1235
-1

query I rowsort
SELECT 30 * + ( + 98 ) AS col1
----
2940

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6156
SELECT ALL 5 * - 53 * 78 AS col2, COUNT( - ( - CAST( - + 54 AS DECIMAL ) ) )
----
-20670
1

skipif mysql # not compatible
query II rowsort label-6156
SELECT ALL 5 * - 53 * 78 AS col2, COUNT ( - ( - CAST ( - + 54 AS REAL ) ) )
----
-20670
1

query I rowsort
SELECT ALL - 81 col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT 20 DIV - 80 * + + 31
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT 20 / - 80 * + + 31
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL COUNT( * ) + + MAX( DISTINCT + + 14 ) + - 12 * + 42
----
-489

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL COUNT ( * ) + + MAX ( DISTINCT + + 14 ) + - 12 * + 42
----
-489

query I rowsort
SELECT ALL - 97 + - - 3
----
-94

query I rowsort
SELECT ALL - 34 + COALESCE ( + 52, + 11, - - 47 )
----
18

query I rowsort
SELECT 61 - 19 - + 96 * 83 AS col1
----
-7926

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT COUNT( * ) + + + COUNT( * ) DIV - 58 * + - 56 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6165
SELECT COUNT ( * ) + + + COUNT ( * ) / - 58 * + - 56 AS col2
----
1

query I rowsort
SELECT 45 + 66 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT 80 * + - COUNT( * ) * - - 72 * - COUNT( * ) * ( - 46 ) * + 40 * - 26
----
275558400

skipif mysql # not compatible
query I rowsort label-6167
SELECT 80 * + - COUNT ( * ) * - - 72 * - COUNT ( * ) * ( - 46 ) * + 40 * - 26
----
275558400

query I rowsort
SELECT ALL - 34 + - 31 * ( 72 ) * - 8 AS col2
----
17822

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

skipif mysql # not compatible
query II rowsort label-6169
SELECT 85, COUNT ( * ) / + ( - ( - COUNT ( * ) ) ) AS col2
----
85
1

query I rowsort
SELECT ( 78 ) + 84 AS col0
----
162

query I rowsort
SELECT ALL - 36 + 97
----
61

query I rowsort
SELECT NULLIF ( + 67, + ( 7 ) / 98 + - - 60 * - 11 * - 4 ) + - - 68 AS col0
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT ALL + + COUNT( * ) + - 80 + COUNT( * ) DIV + - 67
----
-79

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL + + COUNT ( * ) + - 80 + COUNT ( * ) / + - 67
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL - MAX( DISTINCT 17 ) - + 73
----
-90

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - MAX ( DISTINCT 17 ) - + 73
----
-90

query II rowsort
SELECT 82 + + 70 * 26 AS col0, + 99
----
1902
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT ALL - - 14 DIV + + 27
----
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - - 14 / + + 27
----
0

query II rowsort
SELECT + 83 AS col1, 2 AS col1
----
83
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT + ( + CASE 92 WHEN - ( - 50 ) THEN 60 ELSE + + MIN( + - 7 ) END ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6178
SELECT + ( + CASE 92 WHEN - ( - 50 ) THEN 60 ELSE + + MIN ( + - 7 ) END ) AS col0
----
-7

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

skipif mysql # not compatible
query I rowsort label-6179
SELECT + COALESCE ( + COUNT ( * ), - 32 ) AS col1
----
1

query I rowsort
SELECT ALL - - 39 - - 75 * - ( 71 )
----
-5286

onlyif mysql # aggregate syntax: 
query II rowsort label-6181
SELECT DISTINCT - - 60 AS col0, + COUNT( DISTINCT + - 0 ) AS col2
----
60
1

skipif mysql # not compatible
query II rowsort label-6181
SELECT DISTINCT - - 60 AS col0, + COUNT ( DISTINCT + - 0 ) AS col2
----
60
1

query II rowsort
SELECT + 68 AS col1, 88
----
68
88

query I rowsort
SELECT ALL + + 47 - 67 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6184
SELECT 85 * MAX( ALL + 16 ) AS col2, NULLIF ( - CAST( NULL AS DECIMAL ), - CASE + - 43 WHEN + 12 THEN + 38 + - COUNT( * ) + + - 96 / + + 64 ELSE NULL END / 32 ) AS col2
----
1360
NULL

skipif mysql # not compatible
query II rowsort label-6184
SELECT 85 * MAX ( ALL + 16 ) AS col2, NULLIF ( - CAST ( NULL AS REAL ), - CASE + - 43 WHEN + 12 THEN + 38 + - COUNT ( * ) + + - 96 / + + 64 ELSE NULL END / 32 ) AS col2
----
1360
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT DISTINCT 87 DIV 79 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT 87 / 79 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6186
SELECT 31 * + - ( + 79 ) AS col1, + 68 * - + COUNT( * ) * + - CAST( - + 97 AS SIGNED )
----
-2449
-6596

skipif mysql # not compatible
query II rowsort label-6186
SELECT 31 * + - ( + 79 ) AS col1, + 68 * - + COUNT ( * ) * + - CAST ( - + 97 AS INTEGER )
----
-2449
-6596

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT - 75 DIV + - 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-6187
SELECT - 75 / + - 77 col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6189
SELECT - 56 * + MIN( + 12 ) * + COUNT( * ) + - 39 AS col0, - 1 AS col2
----
-711
-1

skipif mysql # not compatible
query II rowsort label-6189
SELECT - 56 * + MIN ( + 12 ) * + COUNT ( * ) + - 39 AS col0, - 1 AS col2
----
-711
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT COUNT( * ) + - 29 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6190
SELECT COUNT ( * ) + - 29 AS col2
----
-28

query I rowsort
SELECT 11 * - COALESCE ( 24, + - 55 + - 4 )
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT COUNT( * ) + + + ( 97 ) * - 67 * - COUNT( * ) AS col1
----
6500

skipif mysql # not compatible
query I rowsort label-6192
SELECT COUNT ( * ) + + + ( 97 ) * - 67 * - COUNT ( * ) AS col1
----
6500

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT ALL - CASE + + 97 WHEN - 73 + - 22 THEN + - 18 + + - NULLIF ( - COUNT( * ), + - 24 + - 82 / - COUNT( * ) * 54 ) WHEN + 31 THEN + COUNT( * ) + + COALESCE ( + ( + 11 ), 13 + + CAST( + ( - 60 ) AS SIGNED ) ) END + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL - CASE + + 97 WHEN - 73 + - 22 THEN + - 18 + + - NULLIF ( - COUNT ( * ), + - 24 + - 82 / - COUNT ( * ) * 54 ) WHEN + 31 THEN + COUNT ( * ) + + COALESCE ( + ( + 11 ), 13 + + CAST ( + ( - 60 ) AS INTEGER ) ) END + - 89 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6195
SELECT ALL - CAST( + 63 AS SIGNED ), - 8 col2
----
-63
-8

skipif mysql # not compatible
query II rowsort label-6195
SELECT ALL - CAST ( + 63 AS INTEGER ), - 8 col2
----
-63
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6196
SELECT - 17 * + COUNT( * ) * - 33 + + 84 DIV 67 * + ( COUNT( * ) ) * + COUNT( * ) + + - NULLIF ( - 85, - ( + 78 ) + AVG ( - ( 2 ) ) + - 11 )
----
647

skipif mysql # not compatible
query I rowsort label-6196
SELECT - 17 * + COUNT ( * ) * - 33 + + 84 / 67 * + ( COUNT ( * ) ) * + COUNT ( * ) + + - NULLIF ( - 85, - ( + 78 ) + AVG ( - ( 2 ) ) + - 11 )
----
647

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT ALL - 38 + + CAST( NULL AS SIGNED ) + - + ( + 40 ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - 38 + + CAST ( NULL AS INTEGER ) + - + ( + 40 ) * 9
----
NULL

query I rowsort
SELECT DISTINCT 51 + - 43 + - 76 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-6200
SELECT ALL 10 + - COUNT( * ) * - 31 * 19 AS col2, + 41 AS col0
----
599
41

skipif mysql # not compatible
query II rowsort label-6200
SELECT ALL 10 + - COUNT ( * ) * - 31 * 19 AS col2, + 41 AS col0
----
599
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6201
SELECT ALL 86 + + 28, + COUNT( * ) * 63 + - + 22 col0
----
114
41

skipif mysql # not compatible
query II rowsort label-6201
SELECT ALL 86 + + 28, + COUNT ( * ) * 63 + - + 22 col0
----
114
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT COUNT( DISTINCT - 82 ) * - 70 * 36 * + COUNT( * )
----
-2520

skipif mysql # not compatible
query I rowsort label-6202
SELECT COUNT ( DISTINCT - 82 ) * - 70 * 36 * + COUNT ( * )
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT 90 + - - 53 + + COUNT( * ) * + + MIN( ALL - 74 )
----
69

skipif mysql # not compatible
query I rowsort label-6203
SELECT 90 + - - 53 + + COUNT ( * ) * + + MIN ( ALL - 74 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6204
SELECT ALL 38 DIV + - MAX( ALL 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL 38 / + - MAX ( ALL 50 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT CASE + 92 WHEN + COUNT( * ) + + 13 THEN NULL WHEN - 73 + - 76 THEN NULL WHEN ( + 54 ) THEN 2 END / NULLIF ( 11, + SUM( DISTINCT + 69 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT CASE + 92 WHEN + COUNT ( * ) + + 13 THEN NULL WHEN - 73 + - 76 THEN NULL WHEN ( + 54 ) THEN 2 END / NULLIF ( 11, + SUM ( DISTINCT + 69 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6206
SELECT ALL 50 + + SUM( 45 ) + 15, COUNT( * ) AS col2
----
110
1

skipif mysql # not compatible
query II rowsort label-6206
SELECT ALL 50 + + SUM ( 45 ) + 15, COUNT ( * ) AS col2
----
110
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6207
SELECT DISTINCT - 43 * - 6 - - + COUNT( * ) DIV NULLIF ( + 68, - + 64 ) + - 2 AS col2
----
256

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT - 43 * - 6 - - + COUNT ( * ) / NULLIF ( + 68, - + 64 ) + - 2 AS col2
----
256

onlyif mysql # DIV for integer division: 
query I rowsort label-6208
SELECT ALL 46 - + 55 DIV + 53
----
45

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL 46 - + 55 / + 53
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6209
SELECT ALL CASE - 56 WHEN 74 * + COUNT( * ) + + 62 THEN NULL ELSE - COUNT( * ) END * MAX( - 45 ) + + 18 * + CASE + - 45 WHEN + + 23 * COUNT( * ) / + CAST( NULL AS SIGNED ) * NULLIF ( COUNT( * ), 39 ) + 53 + + + CAST( MAX( ALL 87 ) AS SIGNED ) + + COUNT( * ) * 63 THEN NULL ELSE - 87 * + CAST( NULL AS SIGNED ) + - 26 END * + 12 + + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL CASE - 56 WHEN 74 * + COUNT ( * ) + + 62 THEN NULL ELSE - COUNT ( * ) END * MAX ( - 45 ) + + 18 * + CASE + - 45 WHEN + + 23 * COUNT ( * ) / + CAST ( NULL AS INTEGER ) * NULLIF ( COUNT ( * ), 39 ) + 53 + + + CAST ( MAX ( ALL 87 ) AS INTEGER ) + + COUNT ( * ) * 63 THEN NULL ELSE - 87 * + CAST ( NULL AS INTEGER ) + - 26 END * + 12 + + ( COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT 51 DIV + 26 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6210
SELECT 51 / + 26 AS col0
----
1

query I rowsort
SELECT 38 * + + 38 + + 30 + - 66 * + 76 * + 21 AS col2
----
-103862

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

query I rowsort
SELECT - - 30 AS col1
----
30

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

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

query I rowsort
SELECT - 51 col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6216
SELECT + COALESCE ( - 30, - - 8 * + + COUNT( * ) * + MAX( DISTINCT + 52 ) * - - 77 + + 41 + COUNT( * ) * COUNT( * ) + 81 - + COUNT( * ), CAST( NULL AS SIGNED ) + - 14 ) - - + 27 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6216
SELECT + COALESCE ( - 30, - - 8 * + + COUNT ( * ) * + MAX ( DISTINCT + 52 ) * - - 77 + + 41 + COUNT ( * ) * COUNT ( * ) + 81 - + COUNT ( * ), CAST ( NULL AS INTEGER ) + - 14 ) - - + 27 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT + + SUM( DISTINCT - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT + + SUM ( DISTINCT - 85 ) AS col2
----
-85

query I rowsort
SELECT ALL + + 11 * + 18 + 1 AS col1
----
199

query I rowsort
SELECT - - 3 * ( 4 ) + + ( + - 20 )
----
-8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6221
SELECT + 89 + 71 + - CASE + 69 WHEN - 85 * - 49 + + COUNT( ALL + + 4 ) THEN - COUNT( * ) WHEN - 4 + CAST( NULL AS SIGNED ) / + 53 THEN NULL ELSE NULL END AS col0, - 63
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-6221
SELECT + 89 + 71 + - CASE + 69 WHEN - 85 * - 49 + + COUNT ( ALL + + 4 ) THEN - COUNT ( * ) WHEN - 4 + CAST ( NULL AS INTEGER ) / + 53 THEN NULL ELSE NULL END AS col0, - 63
----
NULL
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6222
SELECT DISTINCT + - 44 DIV + - 64 + - - 50
----
50

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT + - 44 / + - 64 + - - 50
----
50

query I rowsort
SELECT ALL + 48 * + CASE - 19 WHEN + 92 + - 61 THEN 75 END + - 93 * + 92 * - 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6224
SELECT + - 42 DIV 41 * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6224
SELECT + - 42 / 41 * - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - 82 * 41 AS col0
----
-3362

query I rowsort
SELECT DISTINCT + 24 * + 25
----
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6227
SELECT DISTINCT + COALESCE ( 83, AVG ( - COALESCE ( - CAST( - + 35 AS SIGNED ), - 97 ) ) + - - 7 + + - 33 + NULLIF ( + COUNT( * ), AVG ( - 36 ) ) + + - 86 * + 78 * - COUNT( DISTINCT + + 73 ) ) * + - 4 + - 28 - - 45 + CAST( NULL AS SIGNED ) - - ( - ( + 86 ) ) / - - 17 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + COALESCE ( 83, AVG ( - COALESCE ( - CAST ( - + 35 AS INTEGER ), - 97 ) ) + - - 7 + + - 33 + NULLIF ( + COUNT ( * ), AVG ( - 36 ) ) + + - 86 * + 78 * - COUNT ( DISTINCT + + 73 ) ) * + - 4 + - 28 - - 45 + CAST ( NULL AS INTEGER ) - - ( - ( + 86 ) ) / - - 17 * - 21
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT DISTINCT ( - + 32 ) * - 7 + - CAST( + 97 AS SIGNED )
----
127

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT ( - + 32 ) * - 7 + - CAST ( + 97 AS INTEGER )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL 70 * 81 + SUM( DISTINCT - 12 )
----
5658

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL 70 * 81 + SUM ( DISTINCT - 12 )
----
5658

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT ALL + 79 DIV 13 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + 79 / 13 AS col0
----
6

query II rowsort
SELECT + 86 AS col1, 29 AS col1
----
86
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT ALL - 76 * - 46 + - 44 + - 29 DIV 98 * 57 AS col1
----
3452

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL - 76 * - 46 + - 44 + - 29 / 98 * 57 AS col1
----
3452

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6234
SELECT - 76 * + - 7 + - + 10 DIV - 46 - + + COUNT( * ) AS col1, - 45 * 44
----
531
-1980

skipif mysql # not compatible
query II rowsort label-6234
SELECT - 76 * + - 7 + - + 10 / - 46 - + + COUNT ( * ) AS col1, - 45 * 44
----
531
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL 7 * - + 3 + + COUNT( * ) + - ( 96 ) + + - 63 + + + 41 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL 7 * - + 3 + + COUNT ( * ) + - ( 96 ) + + - 63 + + + 41 AS col0
----
-138

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

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

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

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

query I rowsort
SELECT - 92 - 27
----
-119

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6241
SELECT DISTINCT 97 - - NULLIF ( 78, + + 65 ) + COUNT( * ) * + 5 DIV - 84 + - + 25 AS col0
----
150

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT 97 - - NULLIF ( 78, + + 65 ) + COUNT ( * ) * + 5 / - 84 + - + 25 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL 56 - - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL 56 - - COUNT ( * )
----
57

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

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

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL COUNT ( * ) - - CAST ( NULL AS INTEGER ) * + 28 * - 49 + 9 + - 57
----
NULL

query I rowsort
SELECT + - 9 * - 51
----
459

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

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

query I rowsort
SELECT + + 34 - + 39 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT - + 64 + - CASE + - 40 WHEN - COUNT( * ) + + + 42 + - - 16 THEN + ( - 47 ) ELSE NULL END * - + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT - + 64 + - CASE + - 40 WHEN - COUNT ( * ) + + + 42 + - - 16 THEN + ( - 47 ) ELSE NULL END * - + 75 AS col2
----
NULL

query I rowsort
SELECT + - 59 - 86
----
-145

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

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL 97 - - + COUNT ( * ) AS col2
----
98

query I rowsort
SELECT - 67 * 93
----
-6231

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT MIN( - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-6252
SELECT MIN ( - + 6 )
----
-6

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

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

query I rowsort
SELECT + 54 * 64
----
3456

query II rowsort
SELECT ALL + 89 col1, - 88 * + 3 AS col2
----
89
-264

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

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

query I rowsort
SELECT + 21 + - + 81 * + 61 * 54 AS col2
----
-266793

onlyif mysql # aggregate syntax: 
query II rowsort label-6258
SELECT ALL + 38 * + ( - 18 ) AS col1, 17 + - COUNT( * ) AS col0
----
-684
16

skipif mysql # not compatible
query II rowsort label-6258
SELECT ALL + 38 * + ( - 18 ) AS col1, 17 + - COUNT ( * ) AS col0
----
-684
16

query I rowsort
SELECT DISTINCT 65 * - - 43 AS col1
----
2795

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

query I rowsort
SELECT + + 88 * - 12 + + - 19 AS col1
----
-1075

query II rowsort
SELECT ALL + 4, + ( + - 53 ) AS col2
----
4
-53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT - - 8 + - + 35 + + NULLIF ( MAX( + 15 ), COUNT( * ) + 27 * SUM( ALL - 23 ) ) + ( + 95 ) * 10 * - - 44 * - 1
----
-41812

skipif mysql # not compatible
query I rowsort label-6264
SELECT - - 8 + - + 35 + + NULLIF ( MAX ( + 15 ), COUNT ( * ) + 27 * SUM ( ALL - 23 ) ) + ( + 95 ) * 10 * - - 44 * - 1
----
-41812

query I rowsort
SELECT + + 37 col0
----
37

query I rowsort
SELECT + 82 + - 69
----
13

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

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

query I rowsort
SELECT ALL + NULLIF ( + 85, - 46 )
----
85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6270
SELECT ALL - SUM( + 26 ) DIV + CASE - 92 WHEN 66 THEN - 23 + 13 WHEN + - 54 + - 77 + - - 8 * - - ( - - 9 ) THEN - 90 * - 72 ELSE - - COUNT( * ) + - ( - 36 ) DIV 69 * - COALESCE ( + + CASE WHEN NOT 99 IS NOT NULL THEN ( - 68 ) ELSE + 72 + + 38 END, COUNT( - + 48 ) * - + NULLIF ( - 72, + 69 ) + + 15 DIV + COUNT( * ) ) * + 83 END - - 88 + - 10
----
52

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - SUM ( + 26 ) / + CASE - 92 WHEN 66 THEN - 23 + 13 WHEN + - 54 + - 77 + - - 8 * - - ( - - 9 ) THEN - 90 * - 72 ELSE - - COUNT ( * ) + - ( - 36 ) / 69 * - COALESCE ( + + CASE WHEN NOT 99 IS NOT NULL THEN ( - 68 ) ELSE + 72 + + 38 END, COUNT ( - + 48 ) * - + NULLIF ( - 72, + 69 ) + + 15 / + COUNT ( * ) ) * + 83 END - - 88 + - 10
----
52

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

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

query I rowsort
SELECT + 22 + + 36 + 88 col0
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT DISTINCT - 66 DIV - 93 + 99 * - NULLIF ( - 42, - 0 ) AS col1
----
4158

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - 66 / - 93 + 99 * - NULLIF ( - 42, - 0 ) AS col1
----
4158

query I rowsort
SELECT ALL 34 * 67 * 92 + + ( + - 10 ) - - + 48 AS col2
----
209614

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT ALL + 10 AS col0, ( NULLIF ( + 24, - COUNT( * ) ) ) * 89
----
10
2136

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL + 10 AS col0, ( NULLIF ( + 24, - COUNT ( * ) ) ) * 89
----
10
2136

query I rowsort
SELECT ALL + 75 * 41 AS col1
----
3075

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT ALL + 39 * - - COUNT( * ) - 99
----
-60

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + 39 * - - COUNT ( * ) - 99
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT - COUNT( * ) + - - 7 * - 82 col1
----
-575

skipif mysql # not compatible
query I rowsort label-6279
SELECT - COUNT ( * ) + - - 7 * - 82 col1
----
-575

query I rowsort
SELECT ALL 90 * 48 - - + ( + + 25 )
----
4345

onlyif mysql # aggregate syntax: 
query II rowsort label-6281
SELECT ALL + 45, - COUNT( ALL - - 78 ) AS col1
----
45
-1

skipif mysql # not compatible
query II rowsort label-6281
SELECT ALL + 45, - COUNT ( ALL - - 78 ) AS col1
----
45
-1

query I rowsort
SELECT ALL - 76 * - + 92 AS col2
----
6992

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6284
SELECT COALESCE ( + 0, + NULLIF ( + COUNT( * ), + 47 ), - 75 DIV + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6284
SELECT COALESCE ( + 0, + NULLIF ( + COUNT ( * ), + 47 ), - 75 / + COUNT ( * ) ) AS col2
----
0

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

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

query II rowsort
SELECT - 12 + + 21 col1, 31 * - 70 + - 8 * 75 * - 24
----
9
12230

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

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

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

skipif mysql # not compatible
query I rowsort label-6288
SELECT COUNT ( * ) / + + 91 + + - ( + + CAST ( - 37 AS INTEGER ) )
----
37

query II rowsort
SELECT - - 37 AS col0, + 92 * + 55
----
37
5060

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT + - 3 * - COUNT( * ) + 79
----
82

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT + - 3 * - COUNT ( * ) + 79
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6293
SELECT ALL + - CAST( NULL AS DECIMAL ) * COUNT( * ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL + - CAST ( NULL AS REAL ) * COUNT ( * ) * 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6294
SELECT SUM( ALL + - 18 ) DIV - 36
----
0

skipif mysql # not compatible
query I rowsort label-6294
SELECT SUM ( ALL + - 18 ) / - 36
----
0

query I rowsort
SELECT DISTINCT + 90 + + - 86 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6296
SELECT - + CASE - COUNT( * ) WHEN - - 18 THEN NULL WHEN ( + CAST( + - 98 AS DECIMAL ) ) THEN NULL ELSE + + COUNT( * ) + 83 END AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-6296
SELECT - + CASE - COUNT ( * ) WHEN - - 18 THEN NULL WHEN ( + CAST ( + - 98 AS REAL ) ) THEN NULL ELSE + + COUNT ( * ) + 83 END AS col1
----
-84

query I rowsort
SELECT ALL - 15 + + - 73 AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6298
SELECT ALL 38 + + ( + - 34 ) * + NULLIF ( - + 0, - COUNT( 9 ) ) DIV + 35 * - 32 + + SUM( DISTINCT 62 )
----
100

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL 38 + + ( + - 34 ) * + NULLIF ( - + 0, - COUNT ( 9 ) ) / + 35 * - 32 + + SUM ( DISTINCT 62 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT 8 - - + CASE - COUNT( DISTINCT + - 12 ) WHEN + 76 THEN - - COUNT( * ) + + COUNT( * ) * + 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT 8 - - + CASE - COUNT ( DISTINCT + - 12 ) WHEN + 76 THEN - - COUNT ( * ) + + COUNT ( * ) * + 30 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6300
SELECT ALL CASE - + 15 WHEN NULLIF ( 65, - COUNT( * ) * 57 - - 13 - CASE + CAST( 62 AS SIGNED ) WHEN + 59 + - COUNT( * ) + + + 45 THEN - 42 * + - 51 * + 25 * COUNT( * ) + - COUNT( * ) * - 50 WHEN NULLIF ( + 20, + 92 ) THEN - - 23 WHEN - 78 * + 56 * 80 THEN + 65 END - + 35 * + - 64 / - 38 ) THEN - 14 * - 67 WHEN - 45 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL CASE - + 15 WHEN NULLIF ( 65, - COUNT ( * ) * 57 - - 13 - CASE + CAST ( 62 AS INTEGER ) WHEN + 59 + - COUNT ( * ) + + + 45 THEN - 42 * + - 51 * + 25 * COUNT ( * ) + - COUNT ( * ) * - 50 WHEN NULLIF ( + 20, + 92 ) THEN - - 23 WHEN - 78 * + 56 * 80 THEN + 65 END - + 35 * + - 64 / - 38 ) THEN - 14 * - 67 WHEN - 45 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT 39 * - 12 * + MIN( + 43 ) col2
----
-20124

skipif mysql # not compatible
query I rowsort label-6301
SELECT 39 * - 12 * + MIN ( + 43 ) col2
----
-20124

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT DISTINCT 64 * + MIN( ALL - 54 )
----
-3456

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT 64 * + MIN ( ALL - 54 )
----
-3456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6303
SELECT 29 + + COUNT( * ) * + - 14 + COALESCE ( 15, - - NULLIF ( ( - - ( + 28 ) ), + + COUNT( * ) + + - 57 ) * - - 70 ) + - + COUNT( * ) DIV - 85 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6303
SELECT 29 + + COUNT ( * ) * + - 14 + COALESCE ( 15, - - NULLIF ( ( - - ( + 28 ) ), + + COUNT ( * ) + + - 57 ) * - - 70 ) + - + COUNT ( * ) / - 85 AS col1
----
30

query I rowsort
SELECT ALL 93 * - + 2 AS col0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT 6 DIV 84 * + + 41 + 47 + + + 36
----
83

skipif mysql # not compatible
query I rowsort label-6305
SELECT 6 / 84 * + + 41 + 47 + + + 36
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT CAST( - - SUM( ALL + + CAST( - - 26 AS SIGNED ) ) AS SIGNED ) - - 58 - + + 94 + + 10 * + 68
----
670

skipif mysql # not compatible
query I rowsort label-6306
SELECT CAST ( - - SUM ( ALL + + CAST ( - - 26 AS INTEGER ) ) AS INTEGER ) - - 58 - + + 94 + + 10 * + 68
----
670

query I rowsort
SELECT DISTINCT 28 * + 14 AS col2
----
392

query I rowsort
SELECT ALL 87 * - 37 * - 59 AS col2
----
189921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6309
SELECT ( CAST( NULL AS SIGNED ) ) + 94 * + AVG ( + 57 ) * + - ( - - COUNT( + + 58 ) ) + 68 + - - NULLIF ( 96, 25 * + NULLIF ( 78, + 39 - 62 * 84 + - + 49 ) ) - 59 * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT ( CAST ( NULL AS INTEGER ) ) + 94 * + AVG ( + 57 ) * + - ( - - COUNT ( + + 58 ) ) + 68 + - - NULLIF ( 96, 25 * + NULLIF ( 78, + 39 - 62 * 84 + - + 49 ) ) - 59 * - 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6310
SELECT DISTINCT SUM( + + 38 ) - + - 84 AS col0, 54 DIV - 72 AS col2
----
122
0

skipif mysql # not compatible
query II rowsort label-6310
SELECT DISTINCT SUM ( + + 38 ) - + - 84 AS col0, 54 / - 72 AS col2
----
122
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT 44 * + 9 + + ( 20 ) * + - COUNT( * ) * - COUNT( * ) * - ( - - 44 )
----
-484

skipif mysql # not compatible
query I rowsort label-6312
SELECT 44 * + 9 + + ( 20 ) * + - COUNT ( * ) * - COUNT ( * ) * - ( - - 44 )
----
-484

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6313
SELECT ALL 21 - + 43 + + 31 * - 60 - + 89 * - CAST( - 75 AS SIGNED ) AS col0, - ( - 88 ) col1
----
-8557
88

skipif mysql # not compatible
query II rowsort label-6313
SELECT ALL 21 - + 43 + + 31 * - 60 - + 89 * - CAST ( - 75 AS INTEGER ) AS col0, - ( - 88 ) col1
----
-8557
88

query I rowsort
SELECT 5 * - 46 + + 51 * - 70 * - 31
----
110440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ALL - + MIN( DISTINCT 81 ) * - 24
----
1944

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL - + MIN ( DISTINCT 81 ) * - 24
----
1944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT CAST( NULL AS SIGNED ) - + 62 * 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT CAST ( NULL AS INTEGER ) - + 62 * 58 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL + 93 * COUNT( * ) - - 63 col1
----
156

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + 93 * COUNT ( * ) - - 63 col1
----
156

query I rowsort
SELECT DISTINCT NULLIF ( 94, - - 42 ) + 3
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT - 3 DIV 55 * 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6320
SELECT - 3 / 55 * 96 AS col0
----
0

query I rowsort
SELECT - 42 + 74 + + - 18
----
14

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

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

query I rowsort
SELECT 54 + 8 col2
----
62

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6325
SELECT DISTINCT - 77 / + COUNT( * ) + + - ( CASE + + 31 WHEN + COUNT( * ) THEN NULL WHEN + + 77 THEN + 48 * - 22 END ) - - + NULLIF ( 30, + - 72 ) AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6325
SELECT DISTINCT - 77 / + COUNT ( * ) + + - ( CASE + + 31 WHEN + COUNT ( * ) THEN NULL WHEN + + 77 THEN + 48 * - 22 END ) - - + NULLIF ( 30, + - 72 ) AS col2, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT DISTINCT + 19 + 12 * 52 col2
----
643

query I rowsort
SELECT ALL + 61 + 44
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT COUNT( * ) + - 58 * - 42
----
2437

skipif mysql # not compatible
query I rowsort label-6328
SELECT COUNT ( * ) + - 58 * - 42
----
2437

query I rowsort
SELECT ALL - - 25 + 7 col2
----
32

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

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

query I rowsort
SELECT ALL - 20 + + 54 AS col1
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT COUNT( ALL + - 54 ) + - - 46 + + 2 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6333
SELECT COUNT ( ALL + - 54 ) + - - 46 + + 2 AS col0
----
49

query I rowsort
SELECT DISTINCT - 93 * + 88
----
-8184

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6336
SELECT 64 DIV 66 * - COUNT( * ) AS col0, 98
----
0
98

skipif mysql # not compatible
query II rowsort label-6336
SELECT 64 / 66 * - COUNT ( * ) AS col0, 98
----
0
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT ALL 39 DIV 39 * 92
----
92

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL 39 / 39 * 92
----
92

query I rowsort
SELECT DISTINCT 74 * + NULLIF ( 0, 26 )
----
0

query II rowsort
SELECT ALL - 51, 99 col2
----
-51
99

query I rowsort
SELECT + 74 * + 80
----
5920

query II rowsort
SELECT ALL + 35 AS col1, NULLIF ( - 98, - 55 ) AS col0
----
35
-98

query I rowsort
SELECT DISTINCT 38 * + 49 AS col1
----
1862

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT ALL + 50 AS col1, ( - 32 ) - + MIN( ALL - - 41 ) AS col0
----
50
-73

skipif mysql # not compatible
query II rowsort label-6343
SELECT ALL + 50 AS col1, ( - 32 ) - + MIN ( ALL - - 41 ) AS col0
----
50
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + COALESCE ( 62, + 29 - - 42 ) + + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-6344
SELECT + COALESCE ( 62, + 29 - - 42 ) + + - COUNT ( * )
----
61

query II rowsort
SELECT DISTINCT + 38 AS col0, + 98
----
38
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL 30 + + COUNT( * ) + - 45 + + 22
----
8

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL 30 + + COUNT ( * ) + - 45 + + 22
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6347
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) * + ( + 88 )
----
NULL

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

query I rowsort
SELECT ALL - 25 + + - 23 AS col2
----
-48

query II rowsort
SELECT 30, + 46 col1
----
30
46

query II rowsort
SELECT + 70 AS col1, 10
----
70
10

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

skipif mysql # not compatible
query I rowsort label-6351
SELECT + - 75 * + 0 * - CAST ( NULL AS INTEGER ) / ( - COUNT ( * ) ) + 47
----
NULL

query I rowsort
SELECT - - 70 + - - 6 AS col2
----
76

query II rowsort
SELECT 67 AS col0, 21 col0
----
67
21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT ALL - 20 DIV - - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL - 20 / - - 77 AS col1
----
0

query I rowsort
SELECT DISTINCT + 87 * - NULLIF ( 93, + 0 * - ( 96 ) - 56 ) + + 52
----
-8039

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

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

query I rowsort
SELECT ALL + - 85 - + 86
----
-171

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + 82 - + + 65 + + 8 * COUNT( * ) + - 72 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 82 - + + 65 + + 8 * COUNT ( * ) + - 72 AS col1
----
-47

query I rowsort
SELECT - 88 * + - 53 AS col1
----
4664

query II rowsort
SELECT - ( 72 ) * + - 25 * - 69 AS col0, 91 AS col2
----
-124200
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL NULLIF ( + 65, - + COUNT( * ) * 40 * + 88 )
----
65

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL NULLIF ( + 65, - + COUNT ( * ) * 40 * + 88 )
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT - COALESCE ( COUNT( * ), - 16 ) - 35 * - 3 * + 82
----
8609

skipif mysql # not compatible
query I rowsort label-6365
SELECT - COALESCE ( COUNT ( * ), - 16 ) - 35 * - 3 * + 82
----
8609

query I rowsort
SELECT ALL ( + 47 ) col0
----
47

query I rowsort
SELECT ALL - 44 * - - 2
----
-88

query II rowsort
SELECT ALL + ( 54 ) col1, + 1 AS col2
----
54
1

query I rowsort
SELECT - 92 * - 7 * + 54
----
34776

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

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

query II rowsort
SELECT ( 65 ) AS col1, 32
----
65
32

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

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

query I rowsort
SELECT - 14 + - 64
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6375
SELECT DISTINCT + + NULLIF ( ( + 54 ), 69 ) * CAST( NULL AS DECIMAL ) / COALESCE ( CAST( + 97 AS SIGNED ), 40 / - 51, + 18, - - 53 ) * + ( COUNT( * ) ) + 36 - - MAX( ALL - 61 ) * - 38 + CAST( NULL AS SIGNED ) + - COUNT( - 12 ) * 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + + NULLIF ( ( + 54 ), 69 ) * CAST ( NULL AS REAL ) / COALESCE ( CAST ( + 97 AS INTEGER ), 40 / - 51, + 18, - - 53 ) * + ( COUNT ( * ) ) + 36 - - MAX ( ALL - 61 ) * - 38 + CAST ( NULL AS INTEGER ) + - COUNT ( - 12 ) * 95 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6376
SELECT DISTINCT + - ( - CASE - + COALESCE ( - 69, - 77 * + ( ( + MAX( 81 ) ) ) * NULLIF ( - + 9, + + ( + 65 ) * + COUNT( * ) - - 78 + + 70 * COUNT( * ) + 34 + 81 * + - COALESCE ( 58, + - CASE - + COALESCE ( - + MAX( - + 54 ), + ( 28 ) ) WHEN + CAST( - SUM( DISTINCT 85 ) AS DECIMAL ) THEN + MAX( DISTINCT + 62 ) / 52 * + 31 END ) + 93 ), 60 ) WHEN + MAX( - 49 ) THEN 41 ELSE NULLIF ( 56, 26 + CASE + 58 WHEN NULLIF ( SUM( 27 ), COUNT( * ) / - 93 ) + - 26 THEN NULL WHEN + 73 + + ( NULLIF ( - 90, COUNT( * ) + 11 ) + ( 81 ) ) THEN - 66 ELSE NULL END ) END ) * 62 + COUNT( * )
----
3473

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT + - ( - CASE - + COALESCE ( - 69, - 77 * + ( ( + MAX ( 81 ) ) ) * NULLIF ( - + 9, + + ( + 65 ) * + COUNT ( * ) - - 78 + + 70 * COUNT ( * ) + 34 + 81 * + - COALESCE ( 58, + - CASE - + COALESCE ( - + MAX ( - + 54 ), + ( 28 ) ) WHEN + CAST ( - SUM ( DISTINCT 85 ) AS REAL ) THEN + MAX ( DISTINCT + 62 ) / 52 * + 31 END ) + 93 ), 60 ) WHEN + MAX ( - 49 ) THEN 41 ELSE NULLIF ( 56, 26 + CASE + 58 WHEN NULLIF ( SUM ( 27 ), COUNT ( * ) / - 93 ) + - 26 THEN NULL WHEN + 73 + + ( NULLIF ( - 90, COUNT ( * ) + 11 ) + ( 81 ) ) THEN - 66 ELSE NULL END ) END ) * 62 + COUNT ( * )
----
3473

query I rowsort
SELECT ALL - + 81 * 36 + + - ( - 42 )
----
-2874

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6379
SELECT + COUNT( 22 ) DIV 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6379
SELECT + COUNT ( 22 ) / 17 AS col0
----
0

query I rowsort
SELECT ALL + + 62 * + 40 + + 13
----
2493

query I rowsort
SELECT - 33 * - 25 AS col1
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT - COUNT( * ) - + - 26
----
25

skipif mysql # not compatible
query I rowsort label-6382
SELECT - COUNT ( * ) - + - 26
----
25

query I rowsort
SELECT + ( - 98 ) * - 38 + 1
----
3725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6384
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 3 + + MAX( 30 ) + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 3 + + MAX ( 30 ) + + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT + SUM( ALL + 45 ) + - SUM( + 33 )
----
12

skipif mysql # not compatible
query I rowsort label-6385
SELECT + SUM ( ALL + 45 ) + - SUM ( + 33 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6386
SELECT ALL - 80 * COUNT( 7 ) - - 69 DIV ( + 78 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL - 80 * COUNT ( 7 ) - - 69 / ( + 78 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-6387
SELECT - COUNT( ALL - 54 ) AS col0, - 8 col1
----
-1
-8

skipif mysql # not compatible
query II rowsort label-6387
SELECT - COUNT ( ALL - 54 ) AS col0, - 8 col1
----
-1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL - COUNT( * ) * + 59 - + + CASE - 68 WHEN + 22 + + 45 + + ( - 43 ) THEN 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL - COUNT ( * ) * + 59 - + + CASE - 68 WHEN + 22 + + 45 + + ( - 43 ) THEN 84 END AS col0
----
NULL

query I rowsort
SELECT + + 3 + + 66
----
69

query II rowsort
SELECT + 49 * - - 11 AS col2, 47
----
539
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + - COALESCE ( - + 78, - COUNT( DISTINCT + 29 ), - COUNT( * ) * + + 4 + 90 * 64 ) + + COALESCE ( + + 43, + + COUNT( * ) * + + 74 ) + - + COALESCE ( - + 2, - 60, - + ( - + 28 ) ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-6391
SELECT + - COALESCE ( - + 78, - COUNT ( DISTINCT + 29 ), - COUNT ( * ) * + + 4 + 90 * 64 ) + + COALESCE ( + + 43, + + COUNT ( * ) * + + 74 ) + - + COALESCE ( - + 2, - 60, - + ( - + 28 ) ) AS col0
----
123

query II rowsort
SELECT + 24 + - 68, - 67 AS col2
----
-44
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL 70 - + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL 70 - + COUNT ( * )
----
69

query I rowsort
SELECT - ( - 98 ) + - 47
----
51

query I rowsort
SELECT ALL 64 * 82 AS col2
----
5248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6396
SELECT DISTINCT CAST( + COUNT( DISTINCT + + CAST( - - 69 AS SIGNED ) ) AS SIGNED ) DIV 57 * - - 50 + + NULLIF ( + 35, + 54 ) * - - 3 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT CAST ( + COUNT ( DISTINCT + + CAST ( - - 69 AS INTEGER ) ) AS INTEGER ) / 57 * - - 50 + + NULLIF ( + 35, + 54 ) * - - 3 AS col2
----
105

query I rowsort
SELECT ALL NULLIF ( - 55, + 4 )
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT + ( 98 ) + + + COUNT( * ) * - - 27 + - 4 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-6399
SELECT + ( 98 ) + + + COUNT ( * ) * - - 27 + - 4 AS col0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6400
SELECT ALL 10 * + + 59 * + 67, CAST( NULL AS SIGNED ) AS col1
----
39530
NULL

skipif mysql # not compatible
query II rowsort label-6400
SELECT ALL 10 * + + 59 * + 67, CAST ( NULL AS INTEGER ) AS col1
----
39530
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6401
SELECT + ( 81 ) DIV - 23, ( - - MAX( DISTINCT + 47 ) ) * - 40 AS col1
----
-3
-1880

skipif mysql # not compatible
query II rowsort label-6401
SELECT + ( 81 ) / - 23, ( - - MAX ( DISTINCT + 47 ) ) * - 40 AS col1
----
-3
-1880

query II rowsort
SELECT 3, - 20 AS col2
----
3
-20

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

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL 4 * + - COUNT ( * ) / + 77
----
0

query I rowsort
SELECT ( + 69 ) * + 46 AS col1
----
3174

query I rowsort
SELECT 99 + - 30 * + ( 91 ) AS col2
----
-2631

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6406
SELECT CAST( - - 15 AS SIGNED ) DIV + 8 AS col2, 64 col2
----
1
64

skipif mysql # not compatible
query II rowsort label-6406
SELECT CAST ( - - 15 AS INTEGER ) / + 8 AS col2, 64 col2
----
1
64

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

skipif mysql # not compatible
query I rowsort label-6407
SELECT 6 * - COUNT ( * )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT 15 * + 81 * + CAST( + 10 AS SIGNED ) AS col0
----
12150

skipif mysql # not compatible
query I rowsort label-6408
SELECT 15 * + 81 * + CAST ( + 10 AS INTEGER ) AS col0
----
12150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6409
SELECT DISTINCT - COUNT( - CAST( + 65 AS SIGNED ) ) AS col0, + 26 DIV + 7
----
-1
3

skipif mysql # not compatible
query II rowsort label-6409
SELECT DISTINCT - COUNT ( - CAST ( + 65 AS INTEGER ) ) AS col0, + 26 / + 7
----
-1
3

query I rowsort
SELECT 96 + - 26
----
70

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6412
SELECT - 73 * - 69 + + 32 - - - NULLIF ( + + 22, - 4 * - 79 * - + 22 ) + - - 56 * ( + - 67 ) * + CAST( NULL AS DECIMAL ) * + 51 * - - 13 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT - 73 * - 69 + + 32 - - - NULLIF ( + + 22, - 4 * - 79 * - + 22 ) + - - 56 * ( + - 67 ) * + CAST ( NULL AS REAL ) * + 51 * - - 13 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6413
SELECT DISTINCT + COUNT( * ) + + + 26 DIV + 84 + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT + COUNT ( * ) + + + 26 / + 84 + - 41
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT + + 56 * 38 * + COUNT( * ) - + + 2 + + MAX( DISTINCT + 1 ) AS col2
----
2127

skipif mysql # not compatible
query I rowsort label-6414
SELECT + + 56 * 38 * + COUNT ( * ) - + + 2 + + MAX ( DISTINCT + 1 ) AS col2
----
2127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6415
SELECT CASE + COUNT( * ) WHEN + 56 * + 63 / - 89 THEN NULL WHEN ( - MIN( + 35 ) ) / + 37 THEN NULL WHEN + 1 + - 37 THEN + 47 WHEN NULLIF ( COUNT( * ), + ( + 75 ) - + - ( + 99 ) + - 65 ) * + CAST( NULL AS DECIMAL ) THEN + NULLIF ( 27, - + 60 * - 24 * + 68 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT CASE + COUNT ( * ) WHEN + 56 * + 63 / - 89 THEN NULL WHEN ( - MIN ( + 35 ) ) / + 37 THEN NULL WHEN + 1 + - 37 THEN + 47 WHEN NULLIF ( COUNT ( * ), + ( + 75 ) - + - ( + 99 ) + - 65 ) * + CAST ( NULL AS REAL ) THEN + NULLIF ( 27, - + 60 * - 24 * + 68 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + 94 * - 30
----
-2820

query I rowsort
SELECT - 95 * 87 - - + 65 AS col1
----
-8200

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT + 31 + 61 * - + 1 + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-6418
SELECT + 31 + 61 * - + 1 + + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-6419
SELECT ALL - COUNT( * ) AS col1, 52 + + - 13
----
-1
39

skipif mysql # not compatible
query II rowsort label-6419
SELECT ALL - COUNT ( * ) AS col1, 52 + + - 13
----
-1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + COALESCE ( MIN( 96 ), - 42 ) + 91 * 49 col1
----
4555

skipif mysql # not compatible
query I rowsort label-6420
SELECT + COALESCE ( MIN ( 96 ), - 42 ) + 91 * 49 col1
----
4555

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

query I rowsort
SELECT 60 * + + 58 AS col1
----
3480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT + + CASE + 58 WHEN + 88 THEN NULL WHEN + 45 / COALESCE ( - 4, + 90, - - AVG ( + ( - 26 ) ) ) - 39 THEN NULL WHEN + ( ( - 27 ) ) * - + 52 THEN + 38 - NULLIF ( - MIN( 17 ), - - 92 ) + + CASE 67 WHEN 7 THEN NULL WHEN - 14 THEN + COUNT( * ) * CAST( + NULLIF ( - + 89, COUNT( * ) * 45 * - COUNT( * ) ) AS SIGNED ) WHEN - SUM( ALL - 86 ) THEN NULL END * - 50 WHEN + + ( 33 ) THEN + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT + + CASE + 58 WHEN + 88 THEN NULL WHEN + 45 / COALESCE ( - 4, + 90, - - AVG ( + ( - 26 ) ) ) - 39 THEN NULL WHEN + ( ( - 27 ) ) * - + 52 THEN + 38 - NULLIF ( - MIN ( 17 ), - - 92 ) + + CASE 67 WHEN 7 THEN NULL WHEN - 14 THEN + COUNT ( * ) * CAST ( + NULLIF ( - + 89, COUNT ( * ) * 45 * - COUNT ( * ) ) AS INTEGER ) WHEN - SUM ( ALL - 86 ) THEN NULL END * - 50 WHEN + + ( 33 ) THEN + 2 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT 1 * - + 38 + + 96 + - COUNT( * ) * - - 25 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6424
SELECT 1 * - + 38 + + 96 + - COUNT ( * ) * - - 25 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT + 85 * + COUNT( + 3 ) * + - 26 AS col0
----
-2210

skipif mysql # not compatible
query I rowsort label-6425
SELECT + 85 * + COUNT ( + 3 ) * + - 26 AS col0
----
-2210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6426
SELECT ALL - COUNT( * ) DIV - CAST( 57 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL - COUNT ( * ) / - CAST ( 57 AS INTEGER ) AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6428
SELECT COUNT( * ) * + ( - + 91 ) AS col2, 27
----
-91
27

skipif mysql # not compatible
query II rowsort label-6428
SELECT COUNT ( * ) * + ( - + 91 ) AS col2, 27
----
-91
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6429
SELECT 98 + - 63 + 57 + - + 77 DIV - 47 * + COUNT( * ) + - ( + - 54 ) + - 2 * 86 AS col2, + SUM( + 12 )
----
-25
12

skipif mysql # not compatible
query II rowsort label-6429
SELECT 98 + - 63 + 57 + - + 77 / - 47 * + COUNT ( * ) + - ( + - 54 ) + - 2 * 86 AS col2, + SUM ( + 12 )
----
-25
12

query I rowsort
SELECT + 47 * - 42 col1
----
-1974

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT - 52 * - NULLIF ( + 30, 87 ) DIV + - 2 AS col1
----
-780

skipif mysql # not compatible
query I rowsort label-6431
SELECT - 52 * - NULLIF ( + 30, 87 ) / + - 2 AS col1
----
-780

query I rowsort
SELECT ALL 23 * + 34
----
782

query I rowsort
SELECT ALL + 89 * - 80 AS col0
----
-7120

query II rowsort
SELECT DISTINCT 73, 92 * + 80 * 41 AS col2
----
73
301760

query I rowsort
SELECT DISTINCT + 71 * - + 35 * + 9 * + - ( - 68 )
----
-1520820

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT COUNT( + 63 ) - 54 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6436
SELECT COUNT ( + 63 ) - 54 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT 64 + COUNT( * ) * - 84 - 17 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6437
SELECT 64 + COUNT ( * ) * - 84 - 17 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-6438
SELECT 50, MIN( - 96 ) AS col2
----
50
-96

skipif mysql # not compatible
query II rowsort label-6438
SELECT 50, MIN ( - 96 ) AS col2
----
50
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL MAX( 82 ) + - + 74
----
8

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL MAX ( 82 ) + - + 74
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT MAX( - + 77 ) - + 6 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6441
SELECT MAX ( - + 77 ) - + 6 AS col1
----
-83

query II rowsort
SELECT - 48 AS col2, 59 AS col2
----
-48
59

query I rowsort
SELECT DISTINCT 62 + - 84 + 46
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT ALL 21 DIV MAX( + 96 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL 21 / MAX ( + 96 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT MIN( + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-6445
SELECT MIN ( + 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6446
SELECT ALL - - 37 col1, 32 * + CAST( NULL AS SIGNED ) - + 80 + + 17 col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-6446
SELECT ALL - - 37 col1, 32 * + CAST ( NULL AS INTEGER ) - + 80 + + 17 col0
----
37
NULL

query I rowsort
SELECT 75 * - 39 + + ( - 90 )
----
-3015

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT 81 * - COUNT( * ) * + 34
----
-2754

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT 81 * - COUNT ( * ) * + 34
----
-2754

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6451
SELECT ALL - + 59, COALESCE ( - - 48, + 99 DIV + 17 ) col0
----
-59
48

skipif mysql # not compatible
query II rowsort label-6451
SELECT ALL - + 59, COALESCE ( - - 48, + 99 / + 17 ) col0
----
-59
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6452
SELECT + COALESCE ( - 75, + COALESCE ( + - 45, - 15 - 15 ) * - 14 * 28 DIV + MIN( DISTINCT - ( + + 58 ) ) )
----
-75

skipif mysql # not compatible
query I rowsort label-6452
SELECT + COALESCE ( - 75, + COALESCE ( + - 45, - 15 - 15 ) * - 14 * 28 / + MIN ( DISTINCT - ( + + 58 ) ) )
----
-75

query II rowsort
SELECT ALL - + 3, - ( 39 ) AS col1
----
-3
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6454
SELECT ALL - + 54 - - COALESCE ( + + 98, + + 78, - 54 * + - 84 * + 18 + + 14 + - COALESCE ( CAST( NULL AS SIGNED ), + - 10 ) ) - - 81 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL - + 54 - - COALESCE ( + + 98, + + 78, - 54 * + - 84 * + 18 + + 14 + - COALESCE ( CAST ( NULL AS INTEGER ), + - 10 ) ) - - 81 AS col2
----
125

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

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL + 53 * + - COUNT ( * ) AS col0
----
-53

query I rowsort
SELECT 74 * - 34 AS col2
----
-2516

query I rowsort
SELECT + + 90 col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT - CAST( NULL AS SIGNED ) + + NULLIF ( - + 55, + - 85 ) + + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT - CAST ( NULL AS INTEGER ) + + NULLIF ( - + 55, + - 85 ) + + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT 23 + + NULLIF ( - COUNT( * ), + NULLIF ( 35, - + 99 / + - COUNT( * ) + - + 72 - - CASE - 61 WHEN - COUNT( * ) THEN NULL ELSE + + COUNT( * ) + 92 END * NULLIF ( - AVG ( ALL - COALESCE ( + 90, - + 35 ) ), - + 86 ) ) + 21 ) + - 49 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6459
SELECT 23 + + NULLIF ( - COUNT ( * ), + NULLIF ( 35, - + 99 / + - COUNT ( * ) + - + 72 - - CASE - 61 WHEN - COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) + 92 END * NULLIF ( - AVG ( ALL - COALESCE ( + 90, - + 35 ) ), - + 86 ) ) + 21 ) + - 49 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT + SUM( - 14 ), + 18 - - 82 col0
----
-14
100

skipif mysql # not compatible
query II rowsort label-6460
SELECT + SUM ( - 14 ), + 18 - - 82 col0
----
-14
100

onlyif mysql # aggregate syntax: 
query II rowsort label-6461
SELECT DISTINCT 10 * + 46 AS col2, - COUNT( * ) AS col2
----
460
-1

skipif mysql # not compatible
query II rowsort label-6461
SELECT DISTINCT 10 * + 46 AS col2, - COUNT ( * ) AS col2
----
460
-1

query I rowsort
SELECT - 90 * 25 + 44 - + + 28 + ( + 22 )
----
-2212

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT ALL - 57 * - 70 AS col1, - COUNT( * )
----
3990
-1

skipif mysql # not compatible
query II rowsort label-6463
SELECT ALL - 57 * - 70 AS col1, - COUNT ( * )
----
3990
-1

query I rowsort
SELECT 74 + - - 82 - - 17
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6465
SELECT DISTINCT 75 DIV - COUNT( * ) AS col0, ( + COUNT( * ) ) AS col0
----
-75
1

skipif mysql # not compatible
query II rowsort label-6465
SELECT DISTINCT 75 / - COUNT ( * ) AS col0, ( + COUNT ( * ) ) AS col0
----
-75
1

query I rowsort
SELECT - 81 + - 42 + - 82
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT ALL - 30 + + - MAX( ( - 0 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - 30 + + - MAX ( ( - 0 ) ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6468
SELECT - 99 - - COALESCE ( - - 58, + - ( 41 ), 96 DIV 57 ) + - CAST( - 94 AS SIGNED ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6468
SELECT - 99 - - COALESCE ( - - 58, + - ( 41 ), 96 / 57 ) + - CAST ( - 94 AS INTEGER ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - CASE - - AVG ( - 52 ) WHEN + + 85 * - 3 - - CASE + COUNT( * ) WHEN 42 * 58 THEN 91 ELSE NULL END - - 37 THEN - 90 END + + 17 + + 47 * - + 98 * + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT - CASE - - AVG ( - 52 ) WHEN + + 85 * - 3 - - CASE + COUNT ( * ) WHEN 42 * 58 THEN 91 ELSE NULL END - - 37 THEN - 90 END + + 17 + + 47 * - + 98 * + 32 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6470
SELECT - CAST( - COALESCE ( + - 69, - - COUNT( * ) + + + 78 * + 60 ) AS SIGNED ) - - ( + 21 ) + + + 79 + 16 DIV - + CAST( + 37 AS SIGNED ) * + 59 + 40 + 46 * - 35
----
-1539

skipif mysql # not compatible
query I rowsort label-6470
SELECT - CAST ( - COALESCE ( + - 69, - - COUNT ( * ) + + + 78 * + 60 ) AS INTEGER ) - - ( + 21 ) + + + 79 + 16 / - + CAST ( + 37 AS INTEGER ) * + 59 + 40 + 46 * - 35
----
-1539

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6471
SELECT - 45 DIV - 30, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6471
SELECT - 45 / - 30, + COUNT ( * )
----
1
1

query II rowsort
SELECT + 51 + 71 AS col0, 28 - + 5
----
122
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6473
SELECT ALL - AVG ( ALL + + 51 ) + CASE 34 WHEN + + 47 + 98 THEN + 83 + 41 + + 13 WHEN 88 THEN NULL END * NULLIF ( 75, COUNT( * ) ) AS col1, + 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6473
SELECT ALL - AVG ( ALL + + 51 ) + CASE 34 WHEN + + 47 + 98 THEN + 83 + 41 + + 13 WHEN 88 THEN NULL END * NULLIF ( 75, COUNT ( * ) ) AS col1, + 0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT - 13 + - COUNT( + 50 )
----
-14

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT - 13 + - COUNT ( + 50 )
----
-14

query I rowsort
SELECT - NULLIF ( - 63, + + 56 ) + + - 54 AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6476
SELECT ALL - 95 + + 64, MIN( 25 ) AS col2
----
-31
25

skipif mysql # not compatible
query II rowsort label-6476
SELECT ALL - 95 + + 64, MIN ( 25 ) AS col2
----
-31
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL - 22 * - 21 * + COUNT( * ) AS col0
----
462

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL - 22 * - 21 * + COUNT ( * ) AS col0
----
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6478
SELECT - CASE + CASE - + 87 WHEN - + 31 THEN - + 95 WHEN + 49 THEN - + 92 - 43 + + ( - + 26 ) END WHEN + COUNT( * ) THEN - - CAST( NULL AS SIGNED ) WHEN - + ( - 70 ) + - 61 THEN - 37 END + - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT - CASE + CASE - + 87 WHEN - + 31 THEN - + 95 WHEN + 49 THEN - + 92 - 43 + + ( - + 26 ) END WHEN + COUNT ( * ) THEN - - CAST ( NULL AS INTEGER ) WHEN - + ( - 70 ) + - 61 THEN - 37 END + - 52 AS col0
----
NULL

query I rowsort
SELECT + 61 + + 32
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT + 0 + - 15 - - COUNT( * ) * - + 84 col2
----
-99

skipif mysql # not compatible
query I rowsort label-6481
SELECT + 0 + - 15 - - COUNT ( * ) * - + 84 col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT - 18 * - 17 / 1 - + + CAST( NULL AS SIGNED ) * - - 87 + + CAST( 86 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT - 18 * - 17 / 1 - + + CAST ( NULL AS INTEGER ) * - - 87 + + CAST ( 86 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 40 * - 47 AS col2
----
-1880

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

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

skipif mysql # not compatible
query I rowsort label-6485
SELECT + - 16 * - ( - 43 ) * - COUNT ( * ) AS col1
----
688

query I rowsort
SELECT + + 41 * - - 71 AS col0
----
2911

query I rowsort
SELECT + + 74 * - COALESCE ( - 92, - 82, - 43 ) + 27 AS col1
----
6835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT + 43 * NULLIF ( CAST( NULL AS SIGNED ), + 43 ) * + - 45 * 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT + 43 * NULLIF ( CAST ( NULL AS INTEGER ), + 43 ) * + - 45 * 61 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6489
SELECT DISTINCT - 24 * CASE - 79 WHEN + - CAST( 48 AS SIGNED ) - - 1 THEN NULL WHEN + 55 THEN NULL WHEN + 94 THEN + 8 - - COUNT( * ) WHEN - + NULLIF ( - 18, ( 27 ) + + + 6 ) THEN NULL END * + + 98 + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT - 24 * CASE - 79 WHEN + - CAST ( 48 AS INTEGER ) - - 1 THEN NULL WHEN + 55 THEN NULL WHEN + 94 THEN + 8 - - COUNT ( * ) WHEN - + NULLIF ( - 18, ( 27 ) + + + 6 ) THEN NULL END * + + 98 + 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6490
SELECT DISTINCT + COALESCE ( + 15, + 87, + 29 + + COALESCE ( 2, 88 * + COUNT( * ) + 25 + 13 + + 87 DIV CAST( COUNT( * ) AS SIGNED ) DIV 85 + - ( + + 49 ) * - - 65 + + - 14, + ( + 61 ), - 26 * - + 34 + + 35 * + 54 ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT + COALESCE ( + 15, + 87, + 29 + + COALESCE ( 2, 88 * + COUNT ( * ) + 25 + 13 + + 87 / CAST ( COUNT ( * ) AS INTEGER ) / 85 + - ( + + 49 ) * - - 65 + + - 14, + ( + 61 ), - 26 * - + 34 + + 35 * + 54 ) ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + 68 * - + SUM( - - 39 ) * + 66 + + 10 + - - 22
----
-175000

skipif mysql # not compatible
query I rowsort label-6491
SELECT + 68 * - + SUM ( - - 39 ) * + 66 + + 10 + - - 22
----
-175000

query I rowsort
SELECT + 69 * + - 46
----
-3174

query I rowsort
SELECT ALL 87 * 7 + + - 27 - + 55
----
527

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

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

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

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

query I rowsort
SELECT ALL - 99 + - 54 + - 23
----
-176

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

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

query I rowsort
SELECT ALL 45 * COALESCE ( + 4, 60 ) AS col2
----
180

query I rowsort
SELECT ALL ( 52 ) AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT - 9 * 68 DIV + 14 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6500
SELECT - 9 * 68 / + 14 AS col1
----
-43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT - 62 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT - 62 / 96
----
0

query I rowsort
SELECT - 79 + + 37 AS col2
----
-42

query I rowsort
SELECT - NULLIF ( 47, + 37 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL + 66 * - - COUNT( * ) * NULLIF ( 25, - - 87 )
----
1650

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + 66 * - - COUNT ( * ) * NULLIF ( 25, - - 87 )
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT - MIN( ALL - - 86 ) * 27 * + - 90 AS col1
----
208980

skipif mysql # not compatible
query I rowsort label-6506
SELECT - MIN ( ALL - - 86 ) * 27 * + - 90 AS col1
----
208980

query II rowsort
SELECT ALL 73 AS col2, 47 + - - 80
----
73
127

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

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

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

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

query I rowsort
SELECT - + ( - - ( - 94 ) ) + - 35 AS col2
----
59

query I rowsort
SELECT + + 31 * 60
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT + - MAX( ALL 86 ) - - ( - + 50 ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-6512
SELECT + - MAX ( ALL 86 ) - - ( - + 50 ) AS col0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT MIN( DISTINCT + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6513
SELECT MIN ( DISTINCT + 22 ) AS col2
----
22

query I rowsort
SELECT - 4 * - 62 AS col2
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL - 63 / + 30 + 56 + + - 95 / - ( - - CASE + COUNT( * ) WHEN - - 36 THEN - 63 ELSE NULL END ) * 53 * AVG ( DISTINCT - + 20 ) * - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - 63 / + 30 + 56 + + - 95 / - ( - - CASE + COUNT ( * ) WHEN - - 36 THEN - 63 ELSE NULL END ) * 53 * AVG ( DISTINCT - + 20 ) * - 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT + 92 AS col0, + 81 + 59 + - - 21 + - 54 + 22 * + 11 * + 63 + COUNT( * ) AS col2
----
92
15354

skipif mysql # not compatible
query II rowsort label-6516
SELECT + 92 AS col0, + 81 + 59 + - - 21 + - 54 + 22 * + 11 * + 63 + COUNT ( * ) AS col2
----
92
15354

query II rowsort
SELECT ALL + + 66 col2, 29
----
66
29

query I rowsort
SELECT ALL + 98 + - 57 col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT SUM( DISTINCT + + 26 ) + + 3
----
29

skipif mysql # not compatible
query I rowsort label-6519
SELECT SUM ( DISTINCT + + 26 ) + + 3
----
29

query I rowsort
SELECT 73 + - + 72 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT ALL SUM( ALL COALESCE ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), 42 ) ) - 25 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL SUM ( ALL COALESCE ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), 42 ) ) - 25 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6522
SELECT COUNT( * ) + + CASE 67 WHEN - + 86 THEN + - 24 DIV + 7 * + NULLIF ( 35, + 40 ) * - COUNT( * ) ELSE - 45 + COUNT( * ) END + ( + + 21 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6522
SELECT COUNT ( * ) + + CASE 67 WHEN - + 86 THEN + - 24 / + 7 * + NULLIF ( 35, + 40 ) * - COUNT ( * ) ELSE - 45 + COUNT ( * ) END + ( + + 21 ) AS col1
----
-22

query I rowsort
SELECT 24 + + - 85 AS col2
----
-61

query I rowsort
SELECT - 44 col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT 34 + 38 * 33 + - ( - ( - COUNT( * ) ) ) AS col0
----
1287

skipif mysql # not compatible
query I rowsort label-6525
SELECT 34 + 38 * 33 + - ( - ( - COUNT ( * ) ) ) AS col0
----
1287

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

skipif mysql # not compatible
query I rowsort label-6526
SELECT 43 + 90 - + - COUNT ( * ) AS col1
----
134

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

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL 56 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6528
SELECT DISTINCT SUM( - - 26 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT SUM ( - - 26 ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 95 * 11 * ( 18 ) * - + 10 + 27 + - + 61 AS col1
----
-188134

query I rowsort
SELECT ALL - CASE - 76 WHEN - 69 THEN NULL WHEN + - 7 THEN + 68 END AS col2
----
NULL

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

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

query I rowsort
SELECT - 48 + 31 + - 67
----
-84

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6534
SELECT DISTINCT + 21 DIV - 22 + - - 23 * + 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT + 21 / - 22 + - - 23 * + 0 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL - 63 + - 58
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6536
SELECT DISTINCT + ( 63 ) + 55 - - COUNT( DISTINCT + - 28 ) + + 68 - + 45 * + - 48 * + - CAST( NULL AS SIGNED ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT + ( 63 ) + 55 - - COUNT ( DISTINCT + - 28 ) + + 68 - + 45 * + - 48 * + - CAST ( NULL AS INTEGER ) * + 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT + - 37 DIV - NULLIF ( - + 54, - 93 * + 17 ) + 61 * NULLIF ( - 75, 55 ) * - + 39 AS col2
----
178425

skipif mysql # not compatible
query I rowsort label-6537
SELECT + - 37 / - NULLIF ( - + 54, - 93 * + 17 ) + 61 * NULLIF ( - 75, 55 ) * - + 39 AS col2
----
178425

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL + COUNT( * ) + NULLIF ( SUM( - 16 ), + 35 ) * + ( 75 ) + + 84 col0
----
-1115

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + COUNT ( * ) + NULLIF ( SUM ( - 16 ), + 35 ) * + ( 75 ) + + 84 col0
----
-1115

query I rowsort
SELECT DISTINCT - ( 75 ) + - 38
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT + ( - ( + MIN( 78 ) ) )
----
-78

skipif mysql # not compatible
query I rowsort label-6540
SELECT + ( - ( + MIN ( 78 ) ) )
----
-78

query I rowsort
SELECT - 78 * 28 * - 88
----
192192

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

query I rowsort
SELECT + - 78 col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT - 61 + COUNT( * ) * - 23 * 65 * + 89
----
-133116

skipif mysql # not compatible
query I rowsort label-6544
SELECT - 61 + COUNT ( * ) * - 23 * 65 * + 89
----
-133116

query I rowsort
SELECT - 35 * + 8 * + 13 + + 67
----
-3573

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6546
SELECT ALL COUNT( + 50 ) + 89 / + 93 + COUNT( * ) + 19 * - + CAST( NULL AS DECIMAL ) / - COUNT( ALL - 82 ) * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL COUNT ( + 50 ) + 89 / + 93 + COUNT ( * ) + 19 * - + CAST ( NULL AS REAL ) / - COUNT ( ALL - 82 ) * - 14
----
NULL

query I rowsort
SELECT 80 * + + 68
----
5440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT DISTINCT - COALESCE ( + - ( + + CAST( NULL AS SIGNED ) ), - 1, + + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - COALESCE ( + - ( + + CAST ( NULL AS INTEGER ) ), - 1, + + 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT COUNT( + 60 ) - - 40
----
41

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT COUNT ( + 60 ) - - 40
----
41

query II rowsort
SELECT DISTINCT - 60 AS col2, 70
----
-60
70

query II rowsort
SELECT + 28, + 37 + + 42 + - 20 + + 13 + - - 87 AS col1
----
28
159

query I rowsort
SELECT DISTINCT + 81 - - - 40 * + 82
----
-3199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6553
SELECT COALESCE ( - - CAST( + - 80 AS SIGNED ), + + 79, + - 6 ) * + - 45 + - 8 col1
----
3592

skipif mysql # not compatible
query I rowsort label-6553
SELECT COALESCE ( - - CAST ( + - 80 AS INTEGER ), + + 79, + - 6 ) * + - 45 + - 8 col1
----
3592

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT ( + - 70 ) DIV 48 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6554
SELECT ( + - 70 ) / 48 col0
----
-1

query II rowsort
SELECT - 39 AS col0, - 0
----
-39
0

query I rowsort
SELECT ALL + 64 * + 95 AS col1
----
6080

query I rowsort
SELECT ALL - 9 * 97 AS col1
----
-873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6558
SELECT DISTINCT 79 DIV COALESCE ( + NULLIF ( - 15, 21 ), - 52 + - 24 ) * - NULLIF ( - + 31, CASE 48 WHEN + CAST( NULL AS SIGNED ) DIV - + 54 DIV 99 THEN 98 ELSE + 48 * - - COUNT( * ) END ) DIV 15 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT 79 / COALESCE ( + NULLIF ( - 15, 21 ), - 52 + - 24 ) * - NULLIF ( - + 31, CASE 48 WHEN + CAST ( NULL AS INTEGER ) / - + 54 / 99 THEN 98 ELSE + 48 * - - COUNT ( * ) END ) / 15 AS col2
----
-10

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

skipif mysql # not compatible
query I rowsort label-6559
SELECT - MIN ( ALL - 46 )
----
46

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

skipif mysql # not compatible
query I rowsort label-6560
SELECT 18 * + COUNT ( * ) * + 1 * + 8 AS col2
----
144

query I rowsort
SELECT - 37 + + + 55 * 46
----
2493

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT NULLIF ( + + 58, + ( MIN( + 26 ) ) + - + 96 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-6562
SELECT NULLIF ( + + 58, + ( MIN ( + 26 ) ) + - + 96 ) col1
----
58

query I rowsort
SELECT 95 + 77
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - - MIN( + - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-6564
SELECT - - MIN ( + - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + COUNT( * ) + CASE + 11 WHEN - 73 * + 14 THEN + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT + COUNT ( * ) + CASE + 11 WHEN - 73 * + 14 THEN + 96 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6566
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) + - 35 * + 15 + - 36 AS col0, 95 AS col2
----
-560
95

skipif mysql # not compatible
query II rowsort label-6566
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) + - 35 * + 15 + - 36 AS col0, 95 AS col2
----
-560
95

query I rowsort
SELECT ALL 3 + + 92
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6568
SELECT DISTINCT 47 + + + 38 * - 53 * + - MIN( DISTINCT - - 50 ), CAST( - 29 AS SIGNED ) * + 60 * - 16 + + + ( + + 36 ) col1
----
100747
27876

skipif mysql # not compatible
query II rowsort label-6568
SELECT DISTINCT 47 + + + 38 * - 53 * + - MIN ( DISTINCT - - 50 ), CAST ( - 29 AS INTEGER ) * + 60 * - 16 + + + ( + + 36 ) col1
----
100747
27876

query I rowsort
SELECT + ( - NULLIF ( 29, 9 ) ) - - 96 * - ( + + COALESCE ( - 86, + 90 ) )
----
8227

query I rowsort
SELECT ALL 65 + + 99
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT DISTINCT + - 90 + MAX( ALL + 98 ) + + 2
----
10

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT + - 90 + MAX ( ALL + 98 ) + + 2
----
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT + 62 DIV - + 19 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6573
SELECT + 62 / - + 19 AS col0
----
-3

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

skipif mysql # not compatible
query I rowsort label-6574
SELECT - - 71 * - COUNT ( * )
----
-71

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6576
SELECT ALL - 32 * 52 * 6 + COALESCE ( + + 20, 46 * - 0 ) DIV - COUNT( * ) * - COUNT( * ) + - + 89
----
-10053

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - 32 * 52 * 6 + COALESCE ( + + 20, 46 * - 0 ) / - COUNT ( * ) * - COUNT ( * ) + - + 89
----
-10053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT - + 10 - - + 64 - 10 - + CAST( + 79 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-6577
SELECT - + 10 - - + 64 - 10 - + CAST ( + 79 AS INTEGER )
----
-35

query I rowsort
SELECT DISTINCT + - CASE - 67 WHEN - 21 + - 25 THEN + 54 END
----
NULL

query I rowsort
SELECT - 99 * + 52 col1
----
-5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT ALL - 40 * + - CAST( NULL AS SIGNED ) * - - 55 * - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL - 40 * + - CAST ( NULL AS INTEGER ) * - - 55 * - 39 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6582
SELECT ALL + COUNT( * ) AS col2, 93 AS col2
----
1
93

skipif mysql # not compatible
query II rowsort label-6582
SELECT ALL + COUNT ( * ) AS col2, 93 AS col2
----
1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6583
SELECT COALESCE ( - - 94, - + 70 - - - COALESCE ( + 99, - - 59 ) DIV - 39 + + 8 + 67 + - + ( - COUNT( * ) ) * + NULLIF ( - - 0, 90 + - COUNT( * ) ) + + 97 + + COUNT( * ) + + COUNT( * ) * 68 * - - 68 * - CAST( - 27 AS SIGNED ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6583
SELECT COALESCE ( - - 94, - + 70 - - - COALESCE ( + 99, - - 59 ) / - 39 + + 8 + 67 + - + ( - COUNT ( * ) ) * + NULLIF ( - - 0, 90 + - COUNT ( * ) ) + + 97 + + COUNT ( * ) + + COUNT ( * ) * 68 * - - 68 * - CAST ( - 27 AS INTEGER ) ) AS col2
----
94

query I rowsort
SELECT ALL - 34 * + 54 - + - 96
----
-1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6585
SELECT CAST( NULL AS SIGNED ) * + + 3 + - + 35 + + - 26 * - 43 * - COUNT( * ) * - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6585
SELECT CAST ( NULL AS INTEGER ) * + + 3 + - + 35 + + - 26 * - 43 * - COUNT ( * ) * - 14 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6586
SELECT - CAST( - 31 AS SIGNED ) + - CASE + 98 WHEN - 81 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT - CAST ( - 31 AS INTEGER ) + - CASE + 98 WHEN - 81 THEN COUNT ( * ) END
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6588
SELECT MAX ( - + 32 )
----
-32

query II rowsort
SELECT ALL + 50 AS col0, 76 * - 45
----
50
-3420

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT DISTINCT COALESCE ( + COUNT( * ), 82, ( - 59 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT COALESCE ( + COUNT ( * ), 82, ( - 59 ) ) AS col0
----
1

query I rowsort
SELECT + 79 + + 55 AS col1
----
134

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

query I rowsort
SELECT + 91 + 5 col2
----
96

query I rowsort
SELECT - - NULLIF ( - 67, + - 39 ) col0
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT MAX( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-6597
SELECT MAX ( ALL 71 )
----
71

query I rowsort
SELECT + + 68 + 42
----
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT DISTINCT + COUNT( * ) + 91 * - + 42 * + 53
----
-202565

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT + COUNT ( * ) + 91 * - + 42 * + 53
----
-202565

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

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

query I rowsort
SELECT - 37 * NULLIF ( - 84, - 30 ) AS col1
----
3108

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

skipif mysql # not compatible
query I rowsort label-6603
SELECT + + COUNT ( * ) + + 23 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6604
SELECT + CAST( 23 AS SIGNED ) * + - CAST( NULL AS DECIMAL ) / COUNT( * ) + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT + CAST ( 23 AS INTEGER ) * + - CAST ( NULL AS REAL ) / COUNT ( * ) + + 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6605
SELECT ALL - COUNT( * ) DIV + 85 - - + 89 + + 93 + + + ( - + 48 ) + - 89 + 38 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - COUNT ( * ) / + 85 - - + 89 + + 93 + + + ( - + 48 ) + - 89 + 38 AS col2
----
83

query II rowsort
SELECT + - 81 * - 42 + - ( 23 ) AS col1, - 70 AS col1
----
3379
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL - MAX( + ( + - 10 ) ) * - + 57
----
-570

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - MAX ( + ( + - 10 ) ) * - + 57
----
-570

query I rowsort
SELECT + 27 * 54 + + + 33 col1
----
1491

query I rowsort
SELECT ALL 81 * - - 79
----
6399

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT 8 DIV 37 + + 2
----
2

skipif mysql # not compatible
query I rowsort label-6610
SELECT 8 / 37 + + 2
----
2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6612
SELECT ( - + ( 17 ) ), + 23 * + MAX( DISTINCT 79 ) AS col2
----
-17
1817

skipif mysql # not compatible
query II rowsort label-6612
SELECT ( - + ( 17 ) ), + 23 * + MAX ( DISTINCT 79 ) AS col2
----
-17
1817

query I rowsort
SELECT - 87 + - - 54 col2
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-6614
SELECT - 45 DIV - + 10, + 34 * + 90 AS col2
----
4
3060

skipif mysql # not compatible
query II rowsort label-6614
SELECT - 45 / - + 10, + 34 * + 90 AS col2
----
4
3060

query I rowsort
SELECT + 57 * - ( - - 95 ) AS col0
----
-5415

query I rowsort
SELECT - 63 + - 45 * - - 90 AS col1
----
-4113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6617
SELECT - 88 * + + CAST( NULL AS SIGNED ) + + MIN( ALL - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT - 88 * + + CAST ( NULL AS INTEGER ) + + MIN ( ALL - 39 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6618
SELECT - 9 DIV + + 40 AS col0, COUNT( * ) * + + 93 + - 24 + + 60 + - 52 + + COUNT( * ) AS col2
----
0
78

skipif mysql # not compatible
query II rowsort label-6618
SELECT - 9 / + + 40 AS col0, COUNT ( * ) * + + 93 + - 24 + + 60 + - 52 + + COUNT ( * ) AS col2
----
0
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT - NULLIF ( + - 35, - 3 * 50 + - 25 + + NULLIF ( 24, + 17 ) * + COUNT( * ) - - 31 + - 50 + - + ( - 87 ) + - 80 * + COUNT( * ) * + + 84 * + 7 * + + NULLIF ( - 32, - NULLIF ( 34, 97 ) ) ) * + 89 AS col0
----
3115

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT - NULLIF ( + - 35, - 3 * 50 + - 25 + + NULLIF ( 24, + 17 ) * + COUNT ( * ) - - 31 + - 50 + - + ( - 87 ) + - 80 * + COUNT ( * ) * + + 84 * + 7 * + + NULLIF ( - 32, - NULLIF ( 34, 97 ) ) ) * + 89 AS col0
----
3115

query I rowsort
SELECT ALL + 1 * + 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL + 86 * + 83 + - MAX( ALL - 36 ) col0
----
7174

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL + 86 * + 83 + - MAX ( ALL - 36 ) col0
----
7174

query I rowsort
SELECT NULLIF ( 12, - 99 + 98 * 45 * - - 11 )
----
12

query I rowsort
SELECT NULLIF ( - 27, 29 * + 81 )
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-6625
SELECT - + 3 * - + 92 AS col0, 80 DIV - 44 + - 14 AS col0
----
276
-15

skipif mysql # not compatible
query II rowsort label-6625
SELECT - + 3 * - + 92 AS col0, 80 / - 44 + - 14 AS col0
----
276
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT SUM( ALL - - 95 ) * - 46 - 42 + + - COUNT( * ) AS col0
----
-4413

skipif mysql # not compatible
query I rowsort label-6626
SELECT SUM ( ALL - - 95 ) * - 46 - 42 + + - COUNT ( * ) AS col0
----
-4413

query I rowsort
SELECT ALL - 68 * 60 + - 52 col0
----
-4132

query I rowsort
SELECT ALL 99 * 31
----
3069

query I rowsort
SELECT 73 * - 76 + + - 9 + - + 84 AS col2
----
-5641

onlyif mysql # DIV for integer division: 
query I rowsort label-6630
SELECT ALL - 31 + 67 DIV 36 + - + 73 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - 31 + 67 / 36 + - + 73 AS col2
----
-103

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6632
SELECT ALL - 82 * COUNT( * ) AS col1, + COALESCE ( + 28, - + COUNT( * ) * + 95 + 53 + - 80 )
----
-82
28

skipif mysql # not compatible
query II rowsort label-6632
SELECT ALL - 82 * COUNT ( * ) AS col1, + COALESCE ( + 28, - + COUNT ( * ) * + 95 + 53 + - 80 )
----
-82
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT MAX( DISTINCT - 89 ) + + 87 + + 30 * - + 72 * + ( + + 98 ) AS col2
----
-211682

skipif mysql # not compatible
query I rowsort label-6633
SELECT MAX ( DISTINCT - 89 ) + + 87 + + 30 * - + 72 * + ( + + 98 ) AS col2
----
-211682

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT + COUNT( - NULLIF ( + 80, - 14 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6634
SELECT + COUNT ( - NULLIF ( + 80, - 14 ) ) AS col0
----
1

query I rowsort
SELECT 27 + + 21 + - + 77 AS col2
----
-29

query I rowsort
SELECT DISTINCT 83 - 41 col0
----
42

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6638
SELECT DISTINCT - + 14 * CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + - + 60 * + 83 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT - + 14 * CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + - + 60 * + 83 col1
----
NULL

query I rowsort
SELECT DISTINCT + 88 * - 4 * - 71
----
24992

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6640
SELECT DISTINCT 28 DIV - 48 + - ( - + CAST( - - 99 AS SIGNED ) )
----
99

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT 28 / - 48 + - ( - + CAST ( - - 99 AS INTEGER ) )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6641
SELECT DISTINCT 9, + 48 * - CASE - COALESCE ( - ( - 3 ), COALESCE ( - - COUNT( * ), - + 21 ) ) WHEN + - 58 * + - 55 THEN - ( - + 38 ) WHEN 12 THEN + + ( + 40 ) ELSE NULL END / + 70 * + - 98 AS col2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6641
SELECT DISTINCT 9, + 48 * - CASE - COALESCE ( - ( - 3 ), COALESCE ( - - COUNT ( * ), - + 21 ) ) WHEN + - 58 * + - 55 THEN - ( - + 38 ) WHEN 12 THEN + + ( + 40 ) ELSE NULL END / + 70 * + - 98 AS col2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT 79 - - + MAX( DISTINCT 70 ) + + COUNT( * )
----
150

skipif mysql # not compatible
query I rowsort label-6642
SELECT 79 - - + MAX ( DISTINCT 70 ) + + COUNT ( * )
----
150

query I rowsort
SELECT 18 * - - 19
----
342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6644
SELECT DISTINCT COUNT( * ) DIV 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT COUNT ( * ) / 64 AS col2
----
0

query II rowsort
SELECT 54 col2, + 79 AS col2
----
54
79

query I rowsort
SELECT ALL 28 * + 94
----
2632

query I rowsort
SELECT 8 * - 22 AS col0
----
-176

query I rowsort
SELECT 43 * - 11
----
-473

query II rowsort
SELECT DISTINCT - 47 AS col0, + 14
----
-47
14

query I rowsort
SELECT DISTINCT 63 * + 99 AS col1
----
6237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT ALL CAST( NULL AS SIGNED ) + - COALESCE ( + + 30, + 31 + - 87 * + 64 ) * + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL CAST ( NULL AS INTEGER ) + - COALESCE ( + + 30, + 31 + - 87 * + 64 ) * + 89 AS col0
----
NULL

query I rowsort
SELECT - 47 * - + 63 - - 55
----
3016

query I rowsort
SELECT ALL 92 * - 7 * - 92 * + ( - 56 ) col0
----
-3317888

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT COUNT( * ) * 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6654
SELECT COUNT ( * ) * 22 AS col0
----
22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT ALL CAST( - + 49 AS SIGNED ) + - 19 + - + 0
----
-68

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL CAST ( - + 49 AS INTEGER ) + - 19 + - + 0
----
-68

query I rowsort
SELECT 78 * + + 14 + + - 77
----
1015

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6658
SELECT NULLIF ( - 47, + + COUNT( * ) ) * 78 - 40 * - - CAST( NULL AS DECIMAL ) * CASE - 51 WHEN - + 64 + + 87 THEN + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT NULLIF ( - 47, + + COUNT ( * ) ) * 78 - 40 * - - CAST ( NULL AS REAL ) * CASE - 51 WHEN - + 64 + + 87 THEN + 91 END
----
NULL

query I rowsort
SELECT 33 + - + 67 AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6660
SELECT 78 DIV 89 * + 43 * - 6 col1
----
0

skipif mysql # not compatible
query I rowsort label-6660
SELECT 78 / 89 * + 43 * - 6 col1
----
0

query I rowsort
SELECT ALL - 35 + - 51
----
-86

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

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT COUNT ( * ) / + NULLIF ( + 63, + 41 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6663
SELECT 73 * - - ( + - 59 ) AS col0, COUNT( * ) AS col2
----
-4307
1

skipif mysql # not compatible
query II rowsort label-6663
SELECT 73 * - - ( + - 59 ) AS col0, COUNT ( * ) AS col2
----
-4307
1

query I rowsort
SELECT ALL 32 * - 54 AS col0
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL - - MAX( + 68 ) - - + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL - - MAX ( + 68 ) - - + COUNT ( * )
----
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6666
SELECT + COALESCE ( + COUNT( * ), + 62 ) * + 92 * - COUNT( * ) * - 30 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT + COALESCE ( + COUNT ( * ), + 62 ) * + 92 * - COUNT ( * ) * - 30 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT 21 DIV + 82 col0
----
0

skipif mysql # not compatible
query I rowsort label-6667
SELECT 21 / + 82 col0
----
0

query I rowsort
SELECT - 89 + 16 col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT - 92 - + 12 + - 2 + + 11 + - + MAX( DISTINCT 43 ) + + - 93 AS col2
----
-231

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - 92 - + 12 + - 2 + + 11 + - + MAX ( DISTINCT 43 ) + + - 93 AS col2
----
-231

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT - 29, 88 + - + COUNT( * ) * + 44 AS col2
----
-29
44

skipif mysql # not compatible
query II rowsort label-6670
SELECT - 29, 88 + - + COUNT ( * ) * + 44 AS col2
----
-29
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT ALL + NULLIF ( - 19, + + COUNT( 35 ) * 61 )
----
-19

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL + NULLIF ( - 19, + + COUNT ( 35 ) * 61 )
----
-19

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

query I rowsort
SELECT - 31 + - 93
----
-124

query I rowsort
SELECT 70 - - 35
----
105

query I rowsort
SELECT 89 + + 65 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT + NULLIF ( - ( - 76 ), 6 + - + NULLIF ( + 25, + + 19 ) ) * MAX( ALL 9 )
----
684

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT + NULLIF ( - ( - 76 ), 6 + - + NULLIF ( + 25, + + 19 ) ) * MAX ( ALL 9 )
----
684

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT 8 DIV + 36 * 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6678
SELECT 8 / + 36 * 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT - CASE - - 21 WHEN - - COUNT( * ) THEN NULL WHEN + 88 THEN NULL ELSE - 85 END + + - 16 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT - CASE - - 21 WHEN - - COUNT ( * ) THEN NULL WHEN + 88 THEN NULL ELSE - 85 END + + - 16 AS col1
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT ALL - COUNT( * ) * ( - 63 ) + + 96 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL - COUNT ( * ) * ( - 63 ) + + 96 AS col2
----
159

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6682
SELECT 24 + - 26 + + SUM( ALL - - CAST( + CASE 75 WHEN - 4 * + + 98 + 78 THEN - COALESCE ( + 87, - - 66 - - - 69 * 36 ) END AS DECIMAL ) ), + 49 col0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-6682
SELECT 24 + - 26 + + SUM ( ALL - - CAST ( + CASE 75 WHEN - 4 * + + 98 + 78 THEN - COALESCE ( + 87, - - 66 - - - 69 * 36 ) END AS REAL ) ), + 49 col0
----
NULL
49

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

query I rowsort
SELECT ALL 5 * + 38 * + 38 * + 23 + - - 76 * + 28 * 93 AS col1
----
363964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT DISTINCT - CAST( - 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT - CAST ( - 87 AS INTEGER )
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6686
SELECT DISTINCT - ( - + 10 ) * + CASE - + COALESCE ( 91, 77 + + CAST( NULL AS DECIMAL ) * - + 6 * - 1 ) WHEN + 92 THEN - + 87 + + - COUNT( * ) ELSE NULL END * + 93 + - 65 * + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - ( - + 10 ) * + CASE - + COALESCE ( 91, 77 + + CAST ( NULL AS REAL ) * - + 6 * - 1 ) WHEN + 92 THEN - + 87 + + - COUNT ( * ) ELSE NULL END * + 93 + - 65 * + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT COUNT( DISTINCT - 91 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6687
SELECT COUNT ( DISTINCT - 91 ) AS col0
----
1

query I rowsort
SELECT ( + 33 ) + - + 12 - + 58 * 42
----
-2415

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT MIN( + 59 ) + 72
----
131

skipif mysql # not compatible
query I rowsort label-6689
SELECT MIN ( + 59 ) + 72
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT + 38 * 73 + - 57 * + - 36 + COALESCE ( + - 38, - 12, 95 * - + 74 * - COUNT( * ) * + 46 * - 0 - - 97 + - 43 * COUNT( * ) )
----
4788

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT + 38 * 73 + - 57 * + - 36 + COALESCE ( + - 38, - 12, 95 * - + 74 * - COUNT ( * ) * + 46 * - 0 - - 97 + - 43 * COUNT ( * ) )
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL 8 * + - COUNT( * ) * - + 69
----
552

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL 8 * + - COUNT ( * ) * - + 69
----
552

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT ALL - + CAST( + AVG ( DISTINCT + 16 ) AS SIGNED ) * - + ( - 94 ) * 11 + 0
----
-16544

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - + CAST ( + AVG ( DISTINCT + 16 ) AS INTEGER ) * - + ( - 94 ) * 11 + 0
----
-16544

query I rowsort
SELECT DISTINCT 2 * + 3 AS col1
----
6

query I rowsort
SELECT ALL ( 49 ) - - 74
----
123

query I rowsort
SELECT DISTINCT + + 81
----
81

query I rowsort
SELECT + 90 - 98
----
-8

query I rowsort
SELECT + 60 * 27 + + 48
----
1668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6699
SELECT DISTINCT + + COALESCE ( + 82, + COUNT( * ) * - 66 * - 55, + CAST( NULL AS SIGNED ) ) col0
----
82

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT + + COALESCE ( + 82, + COUNT ( * ) * - 66 * - 55, + CAST ( NULL AS INTEGER ) ) col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL + MIN( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + MIN ( + 0 )
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT - + 38 * + + COUNT( * ) DIV + + 53 * + 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-6702
SELECT - + 38 * + + COUNT ( * ) / + + 53 * + 76 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6703
SELECT DISTINCT + COUNT( * ) / - - 30 - - COUNT( * ) + 13 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + COUNT ( * ) / - - 30 - - COUNT ( * ) + 13 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT 68 * 33 - COUNT( * )
----
2243

skipif mysql # not compatible
query I rowsort label-6704
SELECT 68 * 33 - COUNT ( * )
----
2243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6705
SELECT ALL + 99 * + ( + + CAST( - + 65 AS SIGNED ) )
----
-6435

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + 99 * + ( + + CAST ( - + 65 AS INTEGER ) )
----
-6435

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT ALL + 88 DIV + 36
----
2

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + 88 / + 36
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6707
SELECT + CAST( + 83 AS SIGNED ) * 35 * COUNT( * ) DIV 22 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-6707
SELECT + CAST ( + 83 AS INTEGER ) * 35 * COUNT ( * ) / 22 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT - 76 * - MAX( ALL - 28 ) * 9 AS col2
----
-19152

skipif mysql # not compatible
query I rowsort label-6708
SELECT - 76 * - MAX ( ALL - 28 ) * 9 AS col2
----
-19152

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

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

query I rowsort
SELECT + 33 + + 39 col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6711
SELECT ALL + NULLIF ( + + 24, - + CAST( NULL AS SIGNED ) + 37 + - 24 * + - 82 * - ( + - 39 ) - + ( - - COUNT( * ) ) - ( 8 ) - + 31 * - 54 ) * 77 AS col0
----
1848

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL + NULLIF ( + + 24, - + CAST ( NULL AS INTEGER ) + 37 + - 24 * + - 82 * - ( + - 39 ) - + ( - - COUNT ( * ) ) - ( 8 ) - + 31 * - 54 ) * 77 AS col0
----
1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6712
SELECT - 64 + + 18 * - + CASE 15 WHEN - + 35 * + 46 + 50 THEN 29 * - 6 + 44 * + + COUNT( * ) DIV 73 WHEN 91 THEN NULL ELSE - MAX( - + 35 ) END * 54, + 83 AS col2
----
-34084
83

skipif mysql # not compatible
query II rowsort label-6712
SELECT - 64 + + 18 * - + CASE 15 WHEN - + 35 * + 46 + 50 THEN 29 * - 6 + 44 * + + COUNT ( * ) / 73 WHEN 91 THEN NULL ELSE - MAX ( - + 35 ) END * 54, + 83 AS col2
----
-34084
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT ALL COUNT( * ) * + + 68 * + 31 AS col0
----
2108

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL COUNT ( * ) * + + 68 * + 31 AS col0
----
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - 28 * - 61 * + + ( - COUNT( * ) )
----
-1708

skipif mysql # not compatible
query I rowsort label-6714
SELECT - 28 * - 61 * + + ( - COUNT ( * ) )
----
-1708

query II rowsort
SELECT - 87 + 82 + - 91 col2, + 45 * - 79
----
-96
-3555

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6717
SELECT ALL - 78 + 71 + - - 41 * - CASE - - 83 WHEN - ( + MAX( - - 5 ) ) * + + CAST( - 67 AS SIGNED ) + + 12 THEN - 20 + + - 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL - 78 + 71 + - - 41 * - CASE - - 83 WHEN - ( + MAX ( - - 5 ) ) * + + CAST ( - 67 AS INTEGER ) + + 12 THEN - 20 + + - 10 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6719
SELECT ALL + ( 31 ) + - COUNT( * ) + + + 45 * + COUNT( * ) + - 16 DIV - COALESCE ( 84, - COUNT( * ) ) * - 46 + + COUNT( * ) DIV - 59 * + 26 + + - COUNT( * ) * 48 * - COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL + ( 31 ) + - COUNT ( * ) + + + 45 * + COUNT ( * ) + - 16 / - COALESCE ( 84, - COUNT ( * ) ) * - 46 + + COUNT ( * ) / - 59 * + 26 + + - COUNT ( * ) * 48 * - COUNT ( * )
----
123

query I rowsort
SELECT - 92 + - 67 AS col1
----
-159

query I rowsort
SELECT DISTINCT + 5 * - + 69 AS col0
----
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6722
SELECT ALL + MIN( ALL CAST( NULL AS SIGNED ) ) / - 55 + + - COUNT( * ) + + + 10 * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + MIN ( ALL CAST ( NULL AS INTEGER ) ) / - 55 + + - COUNT ( * ) + + + 10 * + 10
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT ALL + MAX( - 22 ) * 22, + 4 AS col1
----
-484
4

skipif mysql # not compatible
query II rowsort label-6723
SELECT ALL + MAX ( - 22 ) * 22, + 4 AS col1
----
-484
4

query I rowsort
SELECT ( - - 72 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT + ( 71 ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT + ( 71 ) / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL + MIN( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL + MIN ( 96 )
----
96

query I rowsort
SELECT ALL + 88 * - 3 AS col0
----
-264

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6728
SELECT 15 DIV + CAST( + 40 AS SIGNED ) - + + 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6728
SELECT 15 / + CAST ( + 40 AS INTEGER ) - + + 17 AS col2
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL + COALESCE ( - SUM( 96 ), + + SUM( 98 ) + - + ( + 34 ) + - 58, - 2 )
----
-96

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + COALESCE ( - SUM ( 96 ), + + SUM ( 98 ) + - + ( + 34 ) + - 58, - 2 )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6731
SELECT ALL MIN( ALL - 5 ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL MIN ( ALL - 5 ) / + 53
----
0

query I rowsort
SELECT + + 33 - + - 49
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6733
SELECT ALL - + 49 DIV - 58 * - NULLIF ( 24, - 60 ) * - 46 - ( - 31 ) + - CAST( - COUNT( + + 7 ) AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL - + 49 / - 58 * - NULLIF ( 24, - 60 ) * - 46 - ( - 31 ) + - CAST ( - COUNT ( + + 7 ) AS INTEGER ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT + COUNT( DISTINCT - 53 ) * CASE 99 WHEN 28 THEN - COUNT( * ) * + ( - + ( + COUNT( * ) ) ) ELSE + 27 END + - COUNT( * ) - + 37
----
-11

skipif mysql # not compatible
query I rowsort label-6734
SELECT + COUNT ( DISTINCT - 53 ) * CASE 99 WHEN 28 THEN - COUNT ( * ) * + ( - + ( + COUNT ( * ) ) ) ELSE + 27 END + - COUNT ( * ) - + 37
----
-11

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6736
SELECT - ( - - 22 ) * + ( - - 21 ) - 19 AS col0, COUNT( * )
----
-481
1

skipif mysql # not compatible
query II rowsort label-6736
SELECT - ( - - 22 ) * + ( - - 21 ) - 19 AS col0, COUNT ( * )
----
-481
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT ALL - 3 * - - 99 * - ( + 62 ) * - 69 + - CAST( - 58 AS SIGNED ) + + 66
----
-1270442

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - 3 * - - 99 * - ( + 62 ) * - 69 + - CAST ( - 58 AS INTEGER ) + + 66
----
-1270442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6739
SELECT + + 97 + ( + NULLIF ( 67, 65 ) ) * - + 1 * + - CAST( + ( 62 ) AS SIGNED )
----
4251

skipif mysql # not compatible
query I rowsort label-6739
SELECT + + 97 + ( + NULLIF ( 67, 65 ) ) * - + 1 * + - CAST ( + ( 62 ) AS INTEGER )
----
4251

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

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

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

query II rowsort
SELECT DISTINCT - 59 * + 78 + - 71, 31 * + 56 + + 1 col2
----
-4673
1737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT + CASE - 16 WHEN - - 52 / + 11 - 19 * - 30 THEN NULL WHEN + CAST( - COUNT( * ) AS SIGNED ) + + 67 - - 59 THEN 33 WHEN ( 89 ) + 2 THEN - 0 * 95 ELSE - 30 END + + 64 + + + 91 + - 84 * + 5 + + 1
----
-294

skipif mysql # not compatible
query I rowsort label-6743
SELECT + CASE - 16 WHEN - - 52 / + 11 - 19 * - 30 THEN NULL WHEN + CAST ( - COUNT ( * ) AS INTEGER ) + + 67 - - 59 THEN 33 WHEN ( 89 ) + 2 THEN - 0 * 95 ELSE - 30 END + + 64 + + + 91 + - 84 * + 5 + + 1
----
-294

query I rowsort
SELECT + 64 + 59
----
123

query I rowsort
SELECT ALL - 89 * - 56 + - 85 * 93
----
-2921

onlyif mysql # aggregate syntax: 
query II rowsort label-6746
SELECT - + 7, 4 + + - COUNT( * ) AS col2
----
-7
3

skipif mysql # not compatible
query II rowsort label-6746
SELECT - + 7, 4 + + - COUNT ( * ) AS col2
----
-7
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6748
SELECT + + 45 + COUNT( * ) * 53 * + 1 * CAST( NULL AS SIGNED ) / - + MAX( ALL - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT + + 45 + COUNT ( * ) * 53 * + 1 * CAST ( NULL AS INTEGER ) / - + MAX ( ALL - 8 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6749
SELECT + - 71 DIV + + 16 - + + 71, + 83 col0
----
-75
83

skipif mysql # not compatible
query II rowsort label-6749
SELECT + - 71 / + + 16 - + + 71, + 83 col0
----
-75
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT ALL 5 + - + 32 DIV 54
----
5

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL 5 + - + 32 / 54
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT DISTINCT SUM( ALL + 95 ) + 20 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT SUM ( ALL + 95 ) + 20 AS col2
----
115

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6753
SELECT ALL NULLIF ( - - 17, + 72 ) + - COUNT( * ), 47 AS col2
----
16
47

skipif mysql # not compatible
query II rowsort label-6753
SELECT ALL NULLIF ( - - 17, + 72 ) + - COUNT ( * ), 47 AS col2
----
16
47

query I rowsort
SELECT ALL 69 + + 68 AS col1
----
137

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

query I rowsort
SELECT + 51 - - - 16
----
35

query II rowsort
SELECT 8 AS col1, 77
----
8
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6758
SELECT ALL ( + - 71 ) * MAX( ALL - ( + ( 45 ) ) ) + - - 10, 51 AS col0
----
3205
51

skipif mysql # not compatible
query II rowsort label-6758
SELECT ALL ( + - 71 ) * MAX ( ALL - ( + ( 45 ) ) ) + - - 10, 51 AS col0
----
3205
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT + 68 + 99 * + - NULLIF ( - - 1, + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT + 68 + 99 * + - NULLIF ( - - 1, + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6760
SELECT - CASE - - AVG ( DISTINCT - 85 ) WHEN + + ( - 73 ) THEN NULL WHEN + 53 * 99 + + 69 + - + 48 THEN NULL WHEN + COUNT( * ) - + + 2 * + + 93 THEN - 54 ELSE NULL END + - - 12 AS col2, COUNT( * ) + 36
----
NULL
37

skipif mysql # not compatible
query II rowsort label-6760
SELECT - CASE - - AVG ( DISTINCT - 85 ) WHEN + + ( - 73 ) THEN NULL WHEN + 53 * 99 + + 69 + - + 48 THEN NULL WHEN + COUNT ( * ) - + + 2 * + + 93 THEN - 54 ELSE NULL END + - - 12 AS col2, COUNT ( * ) + 36
----
NULL
37

query I rowsort
SELECT - 33 * + 18
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL COALESCE ( - + 53, 28 * COUNT( * ) + - - MAX( - 3 ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL COALESCE ( - + 53, 28 * COUNT ( * ) + - - MAX ( - 3 ) ) AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6763
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + 73 * - 56 + - - 36 + + - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + 73 * - 56 + - - 36 + + - 20 AS col2
----
NULL

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

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

query II rowsort
SELECT ALL - 3 AS col2, 92 AS col2
----
-3
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6766
SELECT DISTINCT + 29 - + COUNT( * ) - - 64 * - CAST( - + NULLIF ( - + 53, - CAST( - 30 AS SIGNED ) ) AS SIGNED ) + - 32 * - + COUNT( + 48 ), + 79 AS col0
----
-3332
79

skipif mysql # not compatible
query II rowsort label-6766
SELECT DISTINCT + 29 - + COUNT ( * ) - - 64 * - CAST ( - + NULLIF ( - + 53, - CAST ( - 30 AS INTEGER ) ) AS INTEGER ) + - 32 * - + COUNT ( + 48 ), + 79 AS col0
----
-3332
79

query II rowsort
SELECT 88 AS col2, + 93 + 79 + 80 col1
----
88
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6768
SELECT + MIN( - CAST( - ( - COALESCE ( + + 32, - + 79, + 52 * - 64 + + - 21 ) ) AS SIGNED ) ) DIV - - SUM( CAST( + 67 AS SIGNED ) ) + - + 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6768
SELECT + MIN ( - CAST ( - ( - COALESCE ( + + 32, - + 79, + 52 * - 64 + + - 21 ) ) AS INTEGER ) ) / - - SUM ( CAST ( + 67 AS INTEGER ) ) + - + 66 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6769
SELECT DISTINCT - CASE WHEN - CASE + 20 WHEN - - 51 * - + COUNT( * ) + - - 3 + ( 7 ) + - 81 * 65 THEN NULL WHEN - 2 THEN NULL WHEN 23 THEN - NULLIF ( - + 79, - + 12 ) ELSE - 13 END IN ( - 57, 51 * - - 95, - 98, + 46, + 72 - + ( + 20 ), - CAST( COUNT( + 45 ) AS SIGNED ), - CAST( NULL AS SIGNED ) ) THEN + + 29 * + 60 * + 27 * - + NULLIF ( - 30, 98 * - COUNT( * ) + - 23 + + 76 ) * + 1 WHEN NOT 90 + + 17 * 60 IS NULL THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT - CASE WHEN - CASE + 20 WHEN - - 51 * - + COUNT ( * ) + - - 3 + ( 7 ) + - 81 * 65 THEN NULL WHEN - 2 THEN NULL WHEN 23 THEN - NULLIF ( - + 79, - + 12 ) ELSE - 13 END IN ( - 57, 51 * - - 95, - 98, + 46, + 72 - + ( + 20 ), - CAST ( COUNT ( + 45 ) AS INTEGER ), - CAST ( NULL AS INTEGER ) ) THEN + + 29 * + 60 * + 27 * - + NULLIF ( - 30, 98 * - COUNT ( * ) + - 23 + + 76 ) * + 1 WHEN NOT 90 + + 17 * 60 IS NULL THEN NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL - + 47 * - 46 * - COUNT ( * )
----
-2162

query I rowsort
SELECT + COALESCE ( - 42, + - 53 * + 54, 77 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT - 43 * + COUNT( * ) * - NULLIF ( + + 28, + + MAX( DISTINCT - + 98 ) ) * - 40 * - 5 - + - 66 + - - ( + - 53 ) + 72 col1
----
240885

skipif mysql # not compatible
query I rowsort label-6772
SELECT - 43 * + COUNT ( * ) * - NULLIF ( + + 28, + + MAX ( DISTINCT - + 98 ) ) * - 40 * - 5 - + - 66 + - - ( + - 53 ) + 72 col1
----
240885

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6774
SELECT DISTINCT - 47 AS col1, COALESCE ( + 61, 24, - CAST( - 59 AS SIGNED ) DIV 82 + - CAST( NULL AS SIGNED ) )
----
-47
61

skipif mysql # not compatible
query II rowsort label-6774
SELECT DISTINCT - 47 AS col1, COALESCE ( + 61, 24, - CAST ( - 59 AS INTEGER ) / 82 + - CAST ( NULL AS INTEGER ) )
----
-47
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6775
SELECT DISTINCT - + 43 AS col0, 5 * - CAST( NULL AS SIGNED )
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-6775
SELECT DISTINCT - + 43 AS col0, 5 * - CAST ( NULL AS INTEGER )
----
-43
NULL

query II rowsort
SELECT ALL - - 82 AS col2, 29 col0
----
82
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT DISTINCT - - 5 * - 86 + + + MAX( DISTINCT 9 ) * + 4 + - COUNT( * )
----
-395

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT - - 5 * - 86 + + + MAX ( DISTINCT 9 ) * + 4 + - COUNT ( * )
----
-395

query II rowsort
SELECT ALL - - 66 AS col2, + 93 * + 37 * + 96 AS col1
----
66
330336

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + - MIN( ALL + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-6779
SELECT + - MIN ( ALL + 57 )
----
-57

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

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

query II rowsort
SELECT ALL - 63, 97 AS col0
----
-63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT SUM( + 61 ) * + 54 AS col2
----
3294

skipif mysql # not compatible
query I rowsort label-6782
SELECT SUM ( + 61 ) * + 54 AS col2
----
3294

query I rowsort
SELECT DISTINCT + - 92 + 3 AS col0
----
-89

query I rowsort
SELECT + ( - + 18 ) * - 88
----
1584

query I rowsort
SELECT ALL 54 + - 62 AS col0
----
-8

query I rowsort
SELECT ALL 68 + 65 + + 95 * + + 30 * - 68
----
-193667

query I rowsort
SELECT 45 - + 37
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT ALL 99 * + - 31 * + NULLIF ( + 86, + - CAST( + 81 AS SIGNED ) ) * + 1 AS col1
----
-263934

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL 99 * + - 31 * + NULLIF ( + 86, + - CAST ( + 81 AS INTEGER ) ) * + 1 AS col1
----
-263934

query I rowsort
SELECT ALL - 14 + + - 71 + 80 * 71 AS col0
----
5595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT 53 * - CAST( + 25 AS SIGNED ) AS col1
----
-1325

skipif mysql # not compatible
query I rowsort label-6790
SELECT 53 * - CAST ( + 25 AS INTEGER ) AS col1
----
-1325

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

skipif mysql # not compatible
query I rowsort label-6791
SELECT ( - - 42 ) - + COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL 15 - + 26 * + 94 - + + COUNT( * ) AS col2
----
-2430

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL 15 - + 26 * + 94 - + + COUNT ( * ) AS col2
----
-2430

onlyif mysql # aggregate syntax: 
query II rowsort label-6793
SELECT ALL 91 - - 86 - - - 68 AS col0, 78 * + + COUNT( * ) + - ( + NULLIF ( + + 91, - - 68 * - 8 + + 86 ) ) + + 44 AS col1
----
109
31

skipif mysql # not compatible
query II rowsort label-6793
SELECT ALL 91 - - 86 - - - 68 AS col0, 78 * + + COUNT ( * ) + - ( + NULLIF ( + + 91, - - 68 * - 8 + + 86 ) ) + + 44 AS col1
----
109
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6794
SELECT DISTINCT 50 DIV COUNT( * ) AS col0, 93, 11 AS col1
----
50
93
11

skipif mysql # not compatible
query III rowsort label-6794
SELECT DISTINCT 50 / COUNT ( * ) AS col0, 93, 11 AS col1
----
50
93
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - 25 * - MAX( ALL - 30 )
----
-750

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - 25 * - MAX ( ALL - 30 )
----
-750

query I rowsort
SELECT DISTINCT 14 * 50 * 60 * 29 AS col1
----
1218000

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ( - + MAX( ALL + + 81 ) ) + + 45 + - 17 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6797
SELECT ( - + MAX ( ALL + + 81 ) ) + + 45 + - 17 AS col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT 87 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-6798
SELECT 87 / 61
----
1

query I rowsort
SELECT ALL 49 * 30 * 57
----
83790

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT MIN( DISTINCT 52 ) + - 52
----
0

skipif mysql # not compatible
query I rowsort label-6800
SELECT MIN ( DISTINCT 52 ) + - 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6801
SELECT - CAST( COUNT( * ) AS SIGNED ), - 81 * - 42 * + ( - 60 ) AS col2
----
-1
-204120

skipif mysql # not compatible
query II rowsort label-6801
SELECT - CAST ( COUNT ( * ) AS INTEGER ), - 81 * - 42 * + ( - 60 ) AS col2
----
-1
-204120

query I rowsort
SELECT DISTINCT - NULLIF ( - 9, + COALESCE ( + - 68, - 93 ) * - 61 )
----
9

query I rowsort
SELECT DISTINCT - 25 * - - COALESCE ( + - 46, - 52 ) + - 74 * - ( - 50 ) + - 2
----
-2552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT ALL CAST( 50 AS SIGNED ) * - + 6 col2
----
-300

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL CAST ( 50 AS INTEGER ) * - + 6 col2
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT DISTINCT - ( ( - - ( ( + 86 ) ) ) ) + + + COUNT( - - 82 ) + CASE + 39 WHEN - 11 * - ( - + ( 34 ) ) + + + 42 + + + COUNT( * ) THEN - 68 WHEN - 73 THEN 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT - ( ( - - ( ( + 86 ) ) ) ) + + + COUNT ( - - 82 ) + CASE + 39 WHEN - 11 * - ( - + ( 34 ) ) + + + 42 + + + COUNT ( * ) THEN - 68 WHEN - 73 THEN 76 END AS col1
----
NULL

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

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

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

query I rowsort
SELECT - NULLIF ( 19, 31 * + - 90 ) - - - 61
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL + - 40 + - - 6 + - - COUNT( * ) * - 76 * - 92 AS col0
----
6958

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL + - 40 + - - 6 + - - COUNT ( * ) * - 76 * - 92 AS col0
----
6958

query I rowsort
SELECT - 23 * + 29 - - + 46
----
-621

query I rowsort
SELECT 80 + - + 39 * 1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL - - 27 + - 16 * + COUNT( * ) * - ( - 18 )
----
-261

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - - 27 + - 16 * + COUNT ( * ) * - ( - 18 )
----
-261

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6813
SELECT ALL + 49 DIV COALESCE ( 17, + - 49, + 31 ) col1, 16 + + 31 + - 43 + - + MIN( DISTINCT 23 ) * + 36 col1
----
2
-824

skipif mysql # not compatible
query II rowsort label-6813
SELECT ALL + 49 / COALESCE ( 17, + - 49, + 31 ) col1, 16 + + 31 + - 43 + - + MIN ( DISTINCT 23 ) * + 36 col1
----
2
-824

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT DISTINCT + + 61 * + SUM( + - 93 )
----
-5673

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + + 61 * + SUM ( + - 93 )
----
-5673

query II rowsort
SELECT DISTINCT - + 98 + - 75 AS col1, 57
----
-173
57

onlyif mysql # DIV for integer division: 
query II rowsort label-6816
SELECT ALL + - 35 + 35, 95 DIV 58 AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6816
SELECT ALL + - 35 + 35, 95 / 58 AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT 37 + MIN( 78 ) * - 34 AS col0
----
-2615

skipif mysql # not compatible
query I rowsort label-6817
SELECT 37 + MIN ( 78 ) * - 34 AS col0
----
-2615

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6819
SELECT ALL COUNT( * ) AS col0, - 70 * - 16 AS col2
----
1
1120

skipif mysql # not compatible
query II rowsort label-6819
SELECT ALL COUNT ( * ) AS col0, - 70 * - 16 AS col2
----
1
1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6820
SELECT 17 DIV - NULLIF ( - NULLIF ( + + 14, 81 ), + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6820
SELECT 17 / - NULLIF ( - NULLIF ( + + 14, 81 ), + COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6821
SELECT MIN( ALL 57 ) * + - SUM( - - 65 ) DIV - COUNT( * ) AS col0
----
3705

skipif mysql # not compatible
query I rowsort label-6821
SELECT MIN ( ALL 57 ) * + - SUM ( - - 65 ) / - COUNT ( * ) AS col0
----
3705

query I rowsort
SELECT 24 + 6 AS col2
----
30

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6825
SELECT DISTINCT NULLIF ( - 98, COUNT( * ) / + + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 89 + + - COUNT( * ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT NULLIF ( - 98, COUNT ( * ) / + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 89 + + - COUNT ( * ) ) AS col1
----
-98

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

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

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

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL SUM ( - 34 )
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL - 66 * + - COALESCE ( + 96, 21 ) * ( COUNT( * ) ) AS col2
----
6336

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL - 66 * + - COALESCE ( + 96, 21 ) * ( COUNT ( * ) ) AS col2
----
6336

onlyif mysql # aggregate syntax: 
query II rowsort label-6831
SELECT + COUNT( ALL - 78 ) * - 1 * + 83 AS col0, + 3 AS col2
----
-83
3

skipif mysql # not compatible
query II rowsort label-6831
SELECT + COUNT ( ALL - 78 ) * - 1 * + 83 AS col0, + 3 AS col2
----
-83
3

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

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

query I rowsort
SELECT - 79 + 65 AS col1
----
-14

query II rowsort
SELECT - 97 AS col0, + 59 + - 79 AS col2
----
-97
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6835
SELECT - COUNT( * ) * - 99 * - - 64 AS col0, - 65
----
6336
-65

skipif mysql # not compatible
query II rowsort label-6835
SELECT - COUNT ( * ) * - 99 * - - 64 AS col0, - 65
----
6336
-65

query I rowsort
SELECT + 37 + + 0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6837
SELECT + COUNT( * ) + + 3 * - 16 - 15 AS col2, 51
----
-62
51

skipif mysql # not compatible
query II rowsort label-6837
SELECT + COUNT ( * ) + + 3 * - 16 - 15 AS col2, 51
----
-62
51

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

query I rowsort
SELECT ALL NULLIF ( 68, + - 85 )
----
68

query I rowsort
SELECT DISTINCT + 38 + - 4 col2
----
34

query I rowsort
SELECT - CASE 59 WHEN + 89 / + 79 * + 34 THEN 16 ELSE + - 43 END
----
43

query II rowsort
SELECT 93 AS col1, 2 AS col1
----
93
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT + 57 * + AVG ( DISTINCT - - NULLIF ( 89, - 94 ) ) + COUNT( * ) + - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT + 57 * + AVG ( DISTINCT - - NULLIF ( 89, - 94 ) ) + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6845
SELECT ALL - CAST( NULL AS SIGNED ) * - AVG ( ALL 71 ) + + 62 + + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL - CAST ( NULL AS INTEGER ) * - AVG ( ALL 71 ) + + 62 + + 24 AS col1
----
NULL

query II rowsort
SELECT ALL ( 92 ) * - 22, 73 + + 85 AS col1
----
-2024
158

onlyif mysql # aggregate syntax: 
query II rowsort label-6847
SELECT DISTINCT + + 15 * COUNT( * ) + + COUNT( * ), + 89 * - 65 * 10 + COUNT( + 91 ) + + 53 + 20 AS col1
----
16
-57776

skipif mysql # not compatible
query II rowsort label-6847
SELECT DISTINCT + + 15 * COUNT ( * ) + + COUNT ( * ), + 89 * - 65 * 10 + COUNT ( + 91 ) + + 53 + 20 AS col1
----
16
-57776

onlyif mysql # aggregate syntax: 
query II rowsort label-6848
SELECT ALL + 84 AS col0, 22 * + + COUNT( * ) + + 2 - + 78 - + 14 * - 97 AS col0
----
84
1304

skipif mysql # not compatible
query II rowsort label-6848
SELECT ALL + 84 AS col0, 22 * + + COUNT ( * ) + + 2 - + 78 - + 14 * - 97 AS col0
----
84
1304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6849
SELECT CAST( + 82 AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6849
SELECT CAST ( + 82 AS INTEGER ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL + - 49 * 69 + + 10 * - 82 * - COUNT( - 28 )
----
-2561

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL + - 49 * 69 + + 10 * - 82 * - COUNT ( - 28 )
----
-2561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT + - CAST( NULLIF ( - - 39, + 54 ) AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-6851
SELECT + - CAST ( NULLIF ( - - 39, + 54 ) AS INTEGER )
----
-39

query I rowsort
SELECT - + 47 * 35 - 9
----
-1654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6853
SELECT - 42 * - COALESCE ( - COUNT( * ), NULLIF ( - 62, 25 ) + CAST( COUNT( * ) AS SIGNED ), 79 ) - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-6853
SELECT - 42 * - COALESCE ( - COUNT ( * ), NULLIF ( - 62, 25 ) + CAST ( COUNT ( * ) AS INTEGER ), 79 ) - COUNT ( * )
----
-43

query I rowsort
SELECT + 52 - - - 27 + 90 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - COUNT( * ) * - 83 * 34 AS col2
----
2822

skipif mysql # not compatible
query I rowsort label-6855
SELECT - COUNT ( * ) * - 83 * 34 AS col2
----
2822

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6856
SELECT + 45 * + 88 col0, CAST( ( - 39 ) AS SIGNED )
----
3960
-39

skipif mysql # not compatible
query II rowsort label-6856
SELECT + 45 * + 88 col0, CAST ( ( - 39 ) AS INTEGER )
----
3960
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL 54 * + 36 - + ( + CAST( - 7 AS SIGNED ) ) * 80
----
2504

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL 54 * + 36 - + ( + CAST ( - 7 AS INTEGER ) ) * 80
----
2504

query I rowsort
SELECT DISTINCT + 42 * + 15 AS col1
----
630

query I rowsort
SELECT ALL NULLIF ( + 15, - 33 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT - COUNT( ALL 21 ) - + 2 + + + 92 col1
----
89

skipif mysql # not compatible
query I rowsort label-6860
SELECT - COUNT ( ALL 21 ) - + 2 + + + 92 col1
----
89

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6862
SELECT DISTINCT + 43 * - - MIN( ALL + 26 ) * - 62 AS col0, 42
----
-69316
42

skipif mysql # not compatible
query II rowsort label-6862
SELECT DISTINCT + 43 * - - MIN ( ALL + 26 ) * - 62 AS col0, 42
----
-69316
42

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6865
SELECT ALL CASE - - COUNT( * ) WHEN 69 THEN NULL WHEN - 54 * - 49 + + CAST( - 25 AS SIGNED ) + - + 75 + + COUNT( * ) / - 99 + + 63 + 33 THEN NULL ELSE - 70 END
----
-70

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL CASE - - COUNT ( * ) WHEN 69 THEN NULL WHEN - 54 * - 49 + + CAST ( - 25 AS INTEGER ) + - + 75 + + COUNT ( * ) / - 99 + + 63 + 33 THEN NULL ELSE - 70 END
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6866
SELECT - 38 + MIN( DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), 20, + - 94 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-6866
SELECT - 38 + MIN ( DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), 20, + - 94 ) )
----
-18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT ALL + 98 DIV ( - 4 )
----
-24

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL + 98 / ( - 4 )
----
-24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT + 38 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-6870
SELECT + 38 / 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6871
SELECT DISTINCT - 80 * ( 97 ) DIV + COUNT( * )
----
-7760

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT - 80 * ( 97 ) / + COUNT ( * )
----
-7760

query I rowsort
SELECT ALL + 26 + + 69 * - 89
----
-6115

query I rowsort
SELECT DISTINCT + 53 + - 35
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT DISTINCT - 86 + + + 54 + - - 24 * - + 46 * - 2 + - COUNT( * ) AS col2
----
2175

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - 86 + + + 54 + - - 24 * - + 46 * - 2 + - COUNT ( * ) AS col2
----
2175

query I rowsort
SELECT DISTINCT NULLIF ( - 36, - 8 ) + - 2 * 6
----
-48

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

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

query I rowsort
SELECT DISTINCT + 42 * + 60
----
2520

query I rowsort
SELECT ALL - 84 + - 7 * 96
----
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT - COALESCE ( 99, - 60 ) + + CAST( + 57 AS SIGNED ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6879
SELECT - COALESCE ( 99, - 60 ) + + CAST ( + 57 AS INTEGER ) AS col0
----
-42

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT - - 4 + COUNT( * ) col0, - 34 AS col2
----
5
-34

skipif mysql # not compatible
query II rowsort label-6881
SELECT - - 4 + COUNT ( * ) col0, - 34 AS col2
----
5
-34

query I rowsort
SELECT + - 98 * + 92
----
-9016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT ALL + + MIN( DISTINCT - + 93 ) DIV + - 41 + + - MIN( + 16 )
----
-14

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL + + MIN ( DISTINCT - + 93 ) / + - 41 + + - MIN ( + 16 )
----
-14

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6885
SELECT DISTINCT + + 37 DIV + ( + 87 ) + 96, 88 AS col2
----
96
88

skipif mysql # not compatible
query II rowsort label-6885
SELECT DISTINCT + + 37 / + ( + 87 ) + 96, 88 AS col2
----
96
88

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT + + 71 * - + CASE + NULLIF ( 71, + 4 * - NULLIF ( - 68, - 7 ) ) WHEN + + CAST( NULL AS SIGNED ) THEN + 55 + + 33 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT + + 71 * - + CASE + NULLIF ( 71, + 4 * - NULLIF ( - 68, - 7 ) ) WHEN + + CAST ( NULL AS INTEGER ) THEN + 55 + + 33 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 66 * 40 * - + 49 * - 50
----
6468000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT - + 86 * + - MIN( DISTINCT 68 ) + + 33 + - + SUM( ALL - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT - + 86 * + - MIN ( DISTINCT 68 ) + + 33 + - + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6890
SELECT + + 27 + + - 68 + - MAX( + 89 ) DIV - 63 + + MIN( ALL + 57 ) * + 24
----
1328

skipif mysql # not compatible
query I rowsort label-6890
SELECT + + 27 + + - 68 + - MAX ( + 89 ) / - 63 + + MIN ( ALL + 57 ) * + 24
----
1328

query I rowsort
SELECT 64 * + 95 - + 96 AS col1
----
5984

query I rowsort
SELECT DISTINCT COALESCE ( 51, + NULLIF ( - 60, - 73 + 50 ) ) * + 89 col1
----
4539

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ( 46 ) * COUNT( + 26 )
----
46

skipif mysql # not compatible
query I rowsort label-6894
SELECT ( 46 ) * COUNT ( + 26 )
----
46

query I rowsort
SELECT 49 + + 16 + + + 47 * 35 col2
----
1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6896
SELECT ( - 6 ) + + - 5 + 79 DIV + 90 + - - 11 * - 3 + - + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-6896
SELECT ( - 6 ) + + - 5 + 79 / + 90 + - - 11 * - 3 + - + COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT 94 * + ( - SUM( 57 ) ) * + 17 AS col1
----
-91086

skipif mysql # not compatible
query I rowsort label-6897
SELECT 94 * + ( - SUM ( 57 ) ) * + 17 AS col1
----
-91086

query I rowsort
SELECT DISTINCT 68 + + 35 + + - NULLIF ( - 88, - 68 )
----
191

query I rowsort
SELECT ALL 97 + - 57 - 31 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6900
SELECT ALL + 94 + + + 45 + 83 * NULLIF ( CAST( NULL AS SIGNED ), - ( + 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + 94 + + + 45 + 83 * NULLIF ( CAST ( NULL AS INTEGER ), - ( + 68 ) )
----
NULL

query I rowsort
SELECT 84 + + 92 AS col0
----
176

query I rowsort
SELECT DISTINCT 32 + 22 AS col1
----
54

query I rowsort
SELECT 93 + - 13 + - + 79
----
1

query I rowsort
SELECT 96 * - + 62 * - 21
----
124992

query I rowsort
SELECT ALL 67 * 76
----
5092

query I rowsort
SELECT 3 + 72 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL - MIN( 65 ) + 21
----
-44

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - MIN ( 65 ) + 21
----
-44

query I rowsort
SELECT 73 + 88 * - 65
----
-5647

query I rowsort
SELECT 95 col2
----
95

query I rowsort
SELECT 18 + + 4 * 18
----
90

query I rowsort
SELECT 22 * 38
----
836

query I rowsort
SELECT 28 + 4 * - 71
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT 83 - CASE + AVG ( DISTINCT 16 ) + - 79 * ( - 83 ) WHEN 38 THEN + COUNT( * ) + 21 * + 37 END * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT 83 - CASE + AVG ( DISTINCT 16 ) + - 79 * ( - 83 ) WHEN 38 THEN + COUNT ( * ) + 21 * + 37 END * 3
----
NULL

query I rowsort
SELECT ALL - 32 * ( 29 )
----
-928

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

query I rowsort
SELECT ALL - 59 - - 11 col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6917
SELECT - COUNT( * ) * ( 20 ) + ( + NULLIF ( - COUNT( ALL 97 ), CAST( 61 AS SIGNED ) ) - + 18 * 83 ) DIV - 33
----
25

skipif mysql # not compatible
query I rowsort label-6917
SELECT - COUNT ( * ) * ( 20 ) + ( + NULLIF ( - COUNT ( ALL 97 ), CAST ( 61 AS INTEGER ) ) - + 18 * 83 ) / - 33
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL + MIN( ALL - 64 ) * + 91 AS col1
----
-5824

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL + MIN ( ALL - 64 ) * + 91 AS col1
----
-5824

query I rowsort
SELECT ALL + ( 64 ) * - 38
----
-2432

query I rowsort
SELECT ALL - CASE 78 WHEN 18 THEN NULL WHEN + 83 + - 31 THEN 95 END AS col0
----
NULL

query I rowsort
SELECT 36 * 68
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT DISTINCT - SUM( - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT - SUM ( - 65 ) AS col2
----
65

query I rowsort
SELECT ALL 86 * + 57
----
4902

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

skipif mysql # not compatible
query I rowsort label-6925
SELECT 68 / + 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6926
SELECT DISTINCT - 24 DIV - MAX( - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT - 24 / - MAX ( - 32 )
----
0

query I rowsort
SELECT 42 - + ( 10 ) AS col0
----
32

query I rowsort
SELECT + 72 col2
----
72

query I rowsort
SELECT ALL 33 + 60 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT 52 - - SUM( + 31 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6930
SELECT 52 - - SUM ( + 31 ) AS col1
----
83

query I rowsort
SELECT ALL 50 * + 24
----
1200

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT 58 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT 58 / + 70 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6933
SELECT + 76 * + CAST( - 92 AS SIGNED ) + CAST( NULL AS SIGNED ) / - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT + 76 * + CAST ( - 92 AS INTEGER ) + CAST ( NULL AS INTEGER ) / - 68
----
NULL

query I rowsort
SELECT ALL 27 * 73
----
1971

query I rowsort
SELECT DISTINCT 85 * + 42
----
3570

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

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

query I rowsort
SELECT DISTINCT + 53 + 63 * - 1 AS col1
----
-10

query I rowsort
SELECT ALL 20 + + NULLIF ( 99, - 97 )
----
119

query I rowsort
SELECT ( 77 ) - 93
----
-16

query I rowsort
SELECT ALL 91 * 52
----
4732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6941
SELECT CAST( COALESCE ( SUM( DISTINCT 19 ), + 60 ) AS SIGNED ) * MIN( ALL 61 ) AS col1
----
1159

skipif mysql # not compatible
query I rowsort label-6941
SELECT CAST ( COALESCE ( SUM ( DISTINCT 19 ), + 60 ) AS INTEGER ) * MIN ( ALL 61 ) AS col1
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT SUM( - 63 ) - 34 * 64
----
-2239

skipif mysql # not compatible
query I rowsort label-6942
SELECT SUM ( - 63 ) - 34 * 64
----
-2239

query I rowsort
SELECT ALL 43 + 59 AS col2
----
102

query I rowsort
SELECT ( + ( - 30 ) ) + 71
----
41

query I rowsort
SELECT - ( 23 ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6946
SELECT ALL COUNT( DISTINCT + CAST( - 65 AS DECIMAL ) ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL COUNT ( DISTINCT + CAST ( - 65 AS REAL ) ) * 52
----
52

query I rowsort
SELECT ALL - + ( 35 ) * - 82 AS col1
----
2870

query I rowsort
SELECT 42 * NULLIF ( 74 * - 88, 3 ) AS col1
----
-273504

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT DISTINCT COALESCE ( 40, + 55 * COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT COALESCE ( 40, + 55 * COUNT ( * ) )
----
40

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6951
SELECT ALL + 90 - + 54 * ( COALESCE ( + NULLIF ( + ( 18 ), + COUNT( - CAST( NULL AS DECIMAL ) ) ), 48 ) )
----
-882

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + 90 - + 54 * ( COALESCE ( + NULLIF ( + ( 18 ), + COUNT ( - CAST ( NULL AS REAL ) ) ), 48 ) )
----
-882

query I rowsort
SELECT ALL - 10 - - 55 * 52 AS col2
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT 51 * + ( MAX( ALL 91 ) * + 83 ) AS col1
----
385203

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT 51 * + ( MAX ( ALL 91 ) * + 83 ) AS col1
----
385203

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT + NULLIF ( - COUNT( * ), NULLIF ( COUNT( DISTINCT + 21 ), 46 + 13 ) ) + - 11
----
-12

skipif mysql # not compatible
query I rowsort label-6954
SELECT + NULLIF ( - COUNT ( * ), NULLIF ( COUNT ( DISTINCT + 21 ), 46 + 13 ) ) + - 11
----
-12

query I rowsort
SELECT CASE 65 WHEN 80 THEN - 81 END / + 64
----
NULL

query I rowsort
SELECT 13 + + 60
----
73

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

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

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

query I rowsort
SELECT ALL - 0 / CASE - 96 WHEN + 74 THEN 24 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6960
SELECT - CAST( 41 AS SIGNED ) * 79 + 75 * + 67
----
1786

skipif mysql # not compatible
query I rowsort label-6960
SELECT - CAST ( 41 AS INTEGER ) * 79 + 75 * + 67
----
1786

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6962
SELECT DISTINCT - 52 * + 49 + - COUNT( 42 ) DIV + 22
----
-2548

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT - 52 * + 49 + - COUNT ( 42 ) / + 22
----
-2548

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT - 51 + 54 * CAST( 25 AS SIGNED ) AS col1
----
1299

skipif mysql # not compatible
query I rowsort label-6965
SELECT - 51 + 54 * CAST ( 25 AS INTEGER ) AS col1
----
1299

query I rowsort
SELECT ALL 79 * 7 + 77
----
630

query I rowsort
SELECT 2 * - + 4 + + 67 * + 32
----
2136

query I rowsort
SELECT NULLIF ( 4, + 73 + + 86 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6969
SELECT + 97 DIV - + 51 + MIN( 31 )
----
30

skipif mysql # not compatible
query I rowsort label-6969
SELECT + 97 / - + 51 + MIN ( 31 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT + 10 * + - COUNT( * ) - - 46
----
36

skipif mysql # not compatible
query I rowsort label-6970
SELECT + 10 * + - COUNT ( * ) - - 46
----
36

query I rowsort
SELECT ALL 91 * + 8 + 25 * - 7 col0
----
553

query I rowsort
SELECT - 15 + - 88 + COALESCE ( 94, 79 + 11 ) col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT 39 * NULLIF ( 9, COUNT( * ) / 56 ) + 65
----
416

skipif mysql # not compatible
query I rowsort label-6973
SELECT 39 * NULLIF ( 9, COUNT ( * ) / 56 ) + 65
----
416

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6975
SELECT ALL 97 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL 97 / + 26
----
3

query I rowsort
SELECT ALL - 76 + + 91 * 56
----
5020

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT - COUNT( * ) * 99 * 9 col1
----
-891

skipif mysql # not compatible
query I rowsort label-6977
SELECT - COUNT ( * ) * 99 * 9 col1
----
-891

query I rowsort
SELECT + 55 * - 1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT 78 - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT 78 - COUNT ( * )
----
77

query I rowsort
SELECT - 7 + + 20 col1
----
13

query I rowsort
SELECT - + 53 * + 52 + + 35 AS col0
----
-2721

query I rowsort
SELECT + 21 * - 3 * + 48
----
-3024

query I rowsort
SELECT + - 25 + + + 75 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6984
SELECT + - SUM( + - CAST( NULL AS SIGNED ) ) / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT + - SUM ( + - CAST ( NULL AS INTEGER ) ) / 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6985
SELECT ALL - CASE - COUNT( * ) WHEN - COUNT( * ) + + 57 THEN 91 ELSE 81 - - NULLIF ( 56 + COALESCE ( - COUNT( * ), 13 DIV - AVG ( ALL - 31 * ( - 17 ) ) ), - 59 DIV 33 ) DIV - CAST( + 86 * 16 + + 81 * - 96 AS SIGNED ) END DIV 7
----
-11

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL - CASE - COUNT ( * ) WHEN - COUNT ( * ) + + 57 THEN 91 ELSE 81 - - NULLIF ( 56 + COALESCE ( - COUNT ( * ), 13 / - AVG ( ALL - 31 * ( - 17 ) ) ), - 59 / 33 ) / - CAST ( + 86 * 16 + + 81 * - 96 AS INTEGER ) END / 7
----
-11

query I rowsort
SELECT + + 50 + + 49 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT + - MIN( - 84 ) + + MIN( 99 + 95 )
----
278

skipif mysql # not compatible
query I rowsort label-6987
SELECT + - MIN ( - 84 ) + + MIN ( 99 + 95 )
----
278

query I rowsort
SELECT + 93 + + 60 * 93 AS col0
----
5673

query I rowsort
SELECT + 97 * 7 * + 39 AS col2
----
26481

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + 37 * MAX( ALL + 88 )
----
3256

skipif mysql # not compatible
query I rowsort label-6990
SELECT + 37 * MAX ( ALL + 88 )
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - COUNT( * ) + - - 4 + 25
----
28

skipif mysql # not compatible
query I rowsort label-6991
SELECT - COUNT ( * ) + - - 4 + 25
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6992
SELECT DISTINCT + MAX( - - 33 ) * - CAST( - 2 / + 58 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT + MAX ( - - 33 ) * - CAST ( - 2 / + 58 AS INTEGER )
----
0

query I rowsort
SELECT ALL COALESCE ( - 42, + 68 * + 10 ) col1
----
-42

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

skipif mysql # not compatible
query I rowsort label-6994
SELECT + 64 / + + CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6996
SELECT ALL - ( + NULLIF ( 39, - 27 ) ) DIV - 51 + SUM( - ( - 9 ) )
----
9

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL - ( + NULLIF ( 39, - 27 ) ) / - 51 + SUM ( - ( - 9 ) )
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT CAST( - 5 AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6998
SELECT CAST ( - 5 AS INTEGER ) AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6999
SELECT ALL 6 DIV + - 36 * 69 + COUNT( * ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL 6 / + - 36 * 69 + COUNT ( * ) / 38
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7002
SELECT ALL + 23 AS col1, NULLIF ( - + 60, COUNT( * ) ) + 35 / + CAST( NULL AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-7002
SELECT ALL + 23 AS col1, NULLIF ( - + 60, COUNT ( * ) ) + 35 / + CAST ( NULL AS INTEGER )
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7003
SELECT + COUNT( * ) DIV CAST( + 20 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT + COUNT ( * ) / CAST ( + 20 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT - ( 50 ) + - 19
----
-69

query I rowsort
SELECT ( ( 11 ) ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7006
SELECT - ( + 39 ) DIV 63 + + 68
----
68

skipif mysql # not compatible
query I rowsort label-7006
SELECT - ( + 39 ) / 63 + + 68
----
68

query I rowsort
SELECT ALL + NULLIF ( - + NULLIF ( + + 13, - 69 + - 91 * CASE 16 WHEN + 57 + 19 * 77 THEN 82 END ), 60 + + 33 ) * + ( + 24 )
----
-312

query I rowsort
SELECT ( - 48 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7009
SELECT DISTINCT + 62 DIV COUNT( * ) * - 52
----
-3224

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT + 62 / COUNT ( * ) * - 52
----
-3224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT ALL 99 * - MIN( 70 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL 99 * - MIN ( 70 ) + CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT ALL 5 * 59 - - - 32
----
263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT + ( - - 40 ) - 88 + + CAST( NULL AS SIGNED ) * 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT + ( - - 40 ) - 88 + + CAST ( NULL AS INTEGER ) * 50 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7014
SELECT COALESCE ( + 75, - + ( COUNT( * ) ) DIV + 50 + 66 * 16 )
----
75

skipif mysql # not compatible
query I rowsort label-7014
SELECT COALESCE ( + 75, - + ( COUNT ( * ) ) / + 50 + 66 * 16 )
----
75

query I rowsort
SELECT - 32 * 25 AS col0
----
-800

query I rowsort
SELECT ALL - 72 * 51
----
-3672

query I rowsort
SELECT NULLIF ( 79, - CASE 90 WHEN + 59 THEN - 88 * 36 ELSE NULL END ) col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7018
SELECT 99 * - CAST( COUNT( ALL 71 ) AS SIGNED ) + + 94 col2
----
-5

skipif mysql # not compatible
query I rowsort label-7018
SELECT 99 * - CAST ( COUNT ( ALL 71 ) AS INTEGER ) + + 94 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT - COUNT( DISTINCT - - 91 ) * - 40 * + MAX( 79 ) AS col0
----
3160

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT - COUNT ( DISTINCT - - 91 ) * - 40 * + MAX ( 79 ) AS col0
----
3160

query II rowsort
SELECT ALL + + 44, + 6 AS col0
----
44
6

query I rowsort
SELECT - - 71 * + 89
----
6319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7022
SELECT ALL + AVG ( + CAST( NULL AS SIGNED ) ) * + 90 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL + AVG ( + CAST ( NULL AS INTEGER ) ) * + 90 * + 19
----
NULL

query I rowsort
SELECT - + 96 - 3
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7024
SELECT ALL + 28 AS col1, + 71 + 12 + - CAST( ( SUM( DISTINCT 2 ) ) AS SIGNED ) * 11
----
28
61

skipif mysql # not compatible
query II rowsort label-7024
SELECT ALL + 28 AS col1, + 71 + 12 + - CAST ( ( SUM ( DISTINCT 2 ) ) AS INTEGER ) * 11
----
28
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7025
SELECT - - COUNT( * ) + - COALESCE ( - + 86, SUM( CAST( 84 AS SIGNED ) ) - 99 DIV 15 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7025
SELECT - - COUNT ( * ) + - COALESCE ( - + 86, SUM ( CAST ( 84 AS INTEGER ) ) - 99 / 15 ) AS col1
----
87

query I rowsort
SELECT - 55 * + 62
----
-3410

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT - - SUM( + ( + 34 ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7027
SELECT - - SUM ( + ( + 34 ) ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL MIN( + 52 ) * 46 * - 33
----
-78936

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL MIN ( + 52 ) * 46 * - 33
----
-78936

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ( ( + 54 ) ) * NULLIF ( 8 * 59 + - 80, - 24 + - MAX( DISTINCT + 63 ) ) AS col1
----
21168

skipif mysql # not compatible
query I rowsort label-7030
SELECT ( ( + 54 ) ) * NULLIF ( 8 * 59 + - 80, - 24 + - MAX ( DISTINCT + 63 ) ) AS col1
----
21168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7031
SELECT DISTINCT + 22 DIV - 45 * - + 8 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT + 22 / - 45 * - + 8 * + COUNT ( * )
----
0

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

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

query I rowsort
SELECT ALL + COALESCE ( - + 50, ( + 52 ) ) AS col0
----
-50

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

query I rowsort
SELECT ALL + - 42 * - - 87
----
-3654

query I rowsort
SELECT + 62 + 36 + - 27 AS col2
----
71

query I rowsort
SELECT ALL 1 + 56 AS col0
----
57

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

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

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

query I rowsort
SELECT 99 + 85
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT 78 - + - 8 + + 12 + - CASE 26 WHEN + NULLIF ( - SUM( 78 ), ( - 88 ) ) * + 10 THEN NULL ELSE 88 - - 30 * + 65 END
----
-1940

skipif mysql # not compatible
query I rowsort label-7041
SELECT 78 - + - 8 + + 12 + - CASE 26 WHEN + NULLIF ( - SUM ( 78 ), ( - 88 ) ) * + 10 THEN NULL ELSE 88 - - 30 * + 65 END
----
-1940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT MIN( DISTINCT - 15 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT MIN ( DISTINCT - 15 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 61 + - 53 + + 46 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7044
SELECT ALL 28 + + 52 + 97 + MIN( DISTINCT - 44 ) + - COUNT( * ) * - CAST( + 41 + - COALESCE ( - COUNT( CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED ) * 33 + COALESCE ( + 14, 36 ) * 18, 24 ) * CAST( 0 AS SIGNED ) AS SIGNED ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL 28 + + 52 + 97 + MIN ( DISTINCT - 44 ) + - COUNT ( * ) * - CAST ( + 41 + - COALESCE ( - COUNT ( CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) * 33 + COALESCE ( + 14, 36 ) * 18, 24 ) * CAST ( 0 AS INTEGER ) AS INTEGER ) AS col0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7045
SELECT + CASE NULLIF ( + COUNT( * ), ( COUNT( * ) ) + COUNT( * ) * + COUNT( * ) ) WHEN 79 THEN - 10 ELSE - CAST( NULL AS SIGNED ) END * - COALESCE ( 84, - 11 ) + MIN( + 95 + + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT + CASE NULLIF ( + COUNT ( * ), ( COUNT ( * ) ) + COUNT ( * ) * + COUNT ( * ) ) WHEN 79 THEN - 10 ELSE - CAST ( NULL AS INTEGER ) END * - COALESCE ( 84, - 11 ) + MIN ( + 95 + + 99 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7046
SELECT ALL COUNT( * ) + - 23 + - 13 DIV 17 col2
----
-22

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL COUNT ( * ) + - 23 + - 13 / 17 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + 1 * NULLIF ( 89, - + 76 ) * 93 + + SUM( 1 ) AS col0
----
8278

skipif mysql # not compatible
query I rowsort label-7047
SELECT + 1 * NULLIF ( 89, - + 76 ) * 93 + + SUM ( 1 ) AS col0
----
8278

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

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

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

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

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

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

query I rowsort
SELECT ( - - CASE + + 29 WHEN + 15 THEN NULL WHEN 88 * 63 THEN NULL ELSE 52 END ) + - ( 84 )
----
-32

query II rowsort
SELECT ALL 68 - + 74, + 49 * - 67 AS col1
----
-6
-3283

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7054
SELECT 49 * - NULLIF ( SUM( + ( - 34 ) ), + COUNT( * ) + 81 * COUNT( * ) ) + + 79 DIV + 44 col2
----
1667

skipif mysql # not compatible
query I rowsort label-7054
SELECT 49 * - NULLIF ( SUM ( + ( - 34 ) ), + COUNT ( * ) + 81 * COUNT ( * ) ) + + 79 / + 44 col2
----
1667

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT MIN( + + 17 ) * 94 * + 0 + - 76 col0
----
-76

skipif mysql # not compatible
query I rowsort label-7055
SELECT MIN ( + + 17 ) * 94 * + 0 + - 76 col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT + 51 DIV - + NULLIF ( + 29, 76 ) + - ( 12 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7056
SELECT + 51 / - + NULLIF ( + 29, 76 ) + - ( 12 ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT ALL + ( + 55 ) / + COUNT( * ) - + 81 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + ( + 55 ) / + COUNT ( * ) - + 81 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7058
SELECT 12 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-7058
SELECT 12 / + 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT - COALESCE ( - + ( - 94 ), - 52 * COUNT( * ) + 58 ) + + 86
----
-8

skipif mysql # not compatible
query I rowsort label-7059
SELECT - COALESCE ( - + ( - 94 ), - 52 * COUNT ( * ) + 58 ) + + 86
----
-8

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

query I rowsort
SELECT ALL + + 82 * + + 88 AS col2
----
7216

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT ALL 88 + + 87 DIV 86 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL 88 + + 87 / 86 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT DISTINCT NULLIF ( + - 8, - SUM( - - 48 ) / 39 )
----
-8

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT NULLIF ( + - 8, - SUM ( - - 48 ) / 39 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT ALL - - 94 + ( + CAST( NULL AS SIGNED ) ) * - - 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - - 94 + ( + CAST ( NULL AS INTEGER ) ) * - - 16 col0
----
NULL

query I rowsort
SELECT ALL - - 78 + 92 col0
----
170

query I rowsort
SELECT 34 + - + 77 + - 21
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL - 21 + - COUNT( - 75 )
----
-22

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL - 21 + - COUNT ( - 75 )
----
-22

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

query I rowsort
SELECT + 77 + - 89 * - 15
----
1412

query II rowsort
SELECT - 52 AS col1, - 62 + + 6
----
-52
-56

query II rowsort
SELECT - 54 AS col2, - 81 AS col1
----
-54
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT ALL + 7 + 10 + COUNT( * ) + NULLIF ( + + 35, 46 ) * + MIN( ALL + 84 * ( 56 ) )
----
164658

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL + 7 + 10 + COUNT ( * ) + NULLIF ( + + 35, 46 ) * + MIN ( ALL + 84 * ( 56 ) )
----
164658

query I rowsort
SELECT ALL 87 * + 53
----
4611

query II rowsort
SELECT 36, 21 col0
----
36
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT ALL - 80 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL - 80 / 88 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT 77 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-7077
SELECT 77 / - 99
----
0

query II rowsort
SELECT 45 col1, 65 AS col2
----
45
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7079
SELECT DISTINCT - 62 * - + 92 * + + ( CAST( + + 63 AS SIGNED ) ) AS col2
----
359352

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT - 62 * - + 92 * + + ( CAST ( + + 63 AS INTEGER ) ) AS col2
----
359352

query I rowsort
SELECT ALL + 7 - + 9 AS col1
----
-2

query II rowsort
SELECT DISTINCT - 64, ( - ( 95 ) ) AS col2
----
-64
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7082
SELECT COALESCE ( + - 78, + 67 + + 29 * COUNT( * ) + 39 ) DIV + 22 - + ( CAST( 44 AS SIGNED ) )
----
-47

skipif mysql # not compatible
query I rowsort label-7082
SELECT COALESCE ( + - 78, + 67 + + 29 * COUNT ( * ) + 39 ) / + 22 - + ( CAST ( 44 AS INTEGER ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT COALESCE ( - COUNT( * ), 27, - 94 ) * - 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7083
SELECT COALESCE ( - COUNT ( * ), 27, - 94 ) * - 40 AS col0
----
40

query II rowsort
SELECT DISTINCT - 54 AS col0, 94 AS col2
----
-54
94

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

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

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

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

query I rowsort
SELECT NULLIF ( 16, + 61 ) * - 17 col1
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT COUNT( * ) - + 26 * - + 44 + - + CASE + 57 WHEN + 84 THEN 51 * - 45 ELSE 55 END
----
1090

skipif mysql # not compatible
query I rowsort label-7088
SELECT COUNT ( * ) - + 26 * - + 44 + - + CASE + 57 WHEN + 84 THEN 51 * - 45 ELSE 55 END
----
1090

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT COUNT( - 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7089
SELECT COUNT ( - 36 ) AS col2
----
1

query I rowsort
SELECT 28 * + 19 AS col2
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT - CASE + 52 WHEN + CASE + 73 WHEN + CASE + MAX( 32 ) WHEN - 5 + + MIN( + NULLIF ( + 59, + NULLIF ( 35, + 4 ) ) ) * + 74 THEN 5 * 68 WHEN + 24 THEN NULL WHEN 54 * - 52 THEN NULL ELSE + 13 * 53 END THEN - 99 * + 28 END THEN - 6 * ( + COUNT( * ) * 81 ) ELSE COUNT( * ) + NULLIF ( 41, - 76 * - 75 ) * - 45 END col1
----
1844

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT - CASE + 52 WHEN + CASE + 73 WHEN + CASE + MAX ( 32 ) WHEN - 5 + + MIN ( + NULLIF ( + 59, + NULLIF ( 35, + 4 ) ) ) * + 74 THEN 5 * 68 WHEN + 24 THEN NULL WHEN 54 * - 52 THEN NULL ELSE + 13 * 53 END THEN - 99 * + 28 END THEN - 6 * ( + COUNT ( * ) * 81 ) ELSE COUNT ( * ) + NULLIF ( 41, - 76 * - 75 ) * - 45 END col1
----
1844

query I rowsort
SELECT DISTINCT ( - + ( - 66 ) ) * 24
----
1584

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

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

query I rowsort
SELECT + 67 + + 6 * - + 33 * - - 39 col0
----
-7655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT - CAST( + ( + + SUM( DISTINCT + + 65 ) ) AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-7095
SELECT - CAST ( + ( + + SUM ( DISTINCT + + 65 ) ) AS INTEGER )
----
-65

query I rowsort
SELECT - 59 + 42 * 70
----
2881

query I rowsort
SELECT DISTINCT 29 + + 34 + + + ( + 77 ) + - 94 col1
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT DISTINCT SUM( DISTINCT + 10 ) + 54 - 99
----
-35

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT SUM ( DISTINCT + 10 ) + 54 - 99
----
-35

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

query I rowsort
SELECT DISTINCT - 30 + - - 25
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7102
SELECT ALL 0 DIV + 80 - CASE WHEN NOT + 81 IS NOT NULL THEN NULL ELSE - CAST( - 41 AS SIGNED ) * NULLIF ( + 68, + ( - 88 ) * 16 ) + - 51 * - COALESCE ( - 20 * - 54, COUNT( * ), CAST( 59 AS SIGNED ) ) END * COUNT( * )
----
-57868

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL 0 / + 80 - CASE WHEN NOT + 81 IS NOT NULL THEN NULL ELSE - CAST ( - 41 AS INTEGER ) * NULLIF ( + 68, + ( - 88 ) * 16 ) + - 51 * - COALESCE ( - 20 * - 54, COUNT ( * ), CAST ( 59 AS INTEGER ) ) END * COUNT ( * )
----
-57868

query I rowsort
SELECT - NULLIF ( - 82, 29 * + 23 + 29 * 71 ) AS col1
----
82

query I rowsort
SELECT - - 49 col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT + 92 * + - 96 DIV COUNT( ALL - - 29 )
----
-8832

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 92 * + - 96 / COUNT ( ALL - - 29 )
----
-8832

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

query I rowsort
SELECT DISTINCT + 48 + - 81
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7108
SELECT DISTINCT - MIN( CAST( - 11 AS SIGNED ) ) + - 1 + + 27
----
37

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT - MIN ( CAST ( - 11 AS INTEGER ) ) + - 1 + + 27
----
37

query I rowsort
SELECT ALL - - 62 - 23 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT 57 - CASE 89 WHEN - COUNT( * ) THEN - 60 ELSE + 27 * + 50 END
----
-1293

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT 57 - CASE 89 WHEN - COUNT ( * ) THEN - 60 ELSE + 27 * + 50 END
----
-1293

query I rowsort
SELECT - 69 * - 3
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7112
SELECT ALL COALESCE ( + - COALESCE ( - ( + - 74 ), - 73, 6 + 95 ), ( CAST( SUM( CASE 47 WHEN 80 THEN ( - 26 ) * + 29 + - 47 ELSE NULL END ) AS SIGNED ) ) * 21 - NULLIF ( - 3, 20 ) DIV - 52, + ( - COUNT( * ) ), - 0 DIV 14 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL COALESCE ( + - COALESCE ( - ( + - 74 ), - 73, 6 + 95 ), ( CAST ( SUM ( CASE 47 WHEN 80 THEN ( - 26 ) * + 29 + - 47 ELSE NULL END ) AS INTEGER ) ) * 21 - NULLIF ( - 3, 20 ) / - 52, + ( - COUNT ( * ) ), - 0 / 14 ) AS col2
----
-74

query II rowsort
SELECT - 10 AS col1, 12
----
-10
12

query I rowsort
SELECT ALL - 75 - - 50 + 66 + 92
----
133

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

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

query I rowsort
SELECT - 33 * 36
----
-1188

query I rowsort
SELECT - 39 * + 13
----
-507

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT - 56 - COUNT( * ) - - + 1 + 41 + + - 64 - + ( SUM( 84 ) ) AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-7118
SELECT - 56 - COUNT ( * ) - - + 1 + 41 + + - 64 - + ( SUM ( 84 ) ) AS col1
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7119
SELECT - 32 - - - ( + MIN( DISTINCT + + CAST( + 71 AS SIGNED ) ) ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-7119
SELECT - 32 - - - ( + MIN ( DISTINCT + + CAST ( + 71 AS INTEGER ) ) ) AS col0
----
-103

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

query I rowsort
SELECT 85 * 55 + 24 AS col0
----
4699

onlyif mysql # aggregate syntax: 
query II rowsort label-7122
SELECT ALL - 13 * + MIN( 15 ) * + 34 AS col1, 88 + + - 87
----
-6630
1

skipif mysql # not compatible
query II rowsort label-7122
SELECT ALL - 13 * + MIN ( 15 ) * + 34 AS col1, 88 + + - 87
----
-6630
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT DISTINCT + CAST( + + 62 AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT + CAST ( + + 62 AS INTEGER ) AS col2
----
62

query I rowsort
SELECT DISTINCT - 31 * + - 42 AS col2
----
1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT 50 / - CASE + ( + 14 ) WHEN + 92 THEN NULL WHEN NULLIF ( ( ( CASE - COUNT( * ) WHEN - 37 THEN + 65 END ) ), 3 + + COUNT( ALL 41 ) * - 61 ) THEN NULL WHEN 24 + + CAST( 80 + + COUNT( * ) AS SIGNED ) THEN 89 END + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT 50 / - CASE + ( + 14 ) WHEN + 92 THEN NULL WHEN NULLIF ( ( ( CASE - COUNT ( * ) WHEN - 37 THEN + 65 END ) ), 3 + + COUNT ( ALL 41 ) * - 61 ) THEN NULL WHEN 24 + + CAST ( 80 + + COUNT ( * ) AS INTEGER ) THEN 89 END + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL - COALESCE ( + 94, + 6 * + 32 + - 88 + + + 71, 38 - MIN( - 99 ) ) * + CASE 15 WHEN + 83 THEN 10 WHEN - 56 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL - COALESCE ( + 94, + 6 * + 32 + - 88 + + + 71, 38 - MIN ( - 99 ) ) * + CASE 15 WHEN + 83 THEN 10 WHEN - 56 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 59 * 34
----
2006

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + COUNT( * ) + - + 0 * 12
----
1

skipif mysql # not compatible
query I rowsort label-7128
SELECT + COUNT ( * ) + - + 0 * 12
----
1

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

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

skipif mysql # not compatible
query I rowsort label-7130
SELECT ( - COUNT ( - 90 ) )
----
-1

query II rowsort
SELECT ALL + 73 AS col1, + 50 * - 66
----
73
-3300

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT ALL - - 66 * + 0 + 79 + - 60 DIV + 93 + - 67 * 99
----
-6554

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL - - 66 * + 0 + 79 + - 60 / + 93 + - 67 * 99
----
-6554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT - + 23 * - 42 + - 37 + + 93 + + COALESCE ( MIN( + 47 ), - 48 - - 80 ) - CAST( ( NULLIF ( + NULLIF ( + 23, - 39 ), 77 * 15 ) ) - - ( - COUNT( * ) ) AS SIGNED ) * - 90 AS col1
----
3049

skipif mysql # not compatible
query I rowsort label-7133
SELECT - + 23 * - 42 + - 37 + + 93 + + COALESCE ( MIN ( + 47 ), - 48 - - 80 ) - CAST ( ( NULLIF ( + NULLIF ( + 23, - 39 ), 77 * 15 ) ) - - ( - COUNT ( * ) ) AS INTEGER ) * - 90 AS col1
----
3049

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT 42 * COUNT( * ) + + ( + 38 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7134
SELECT 42 * COUNT ( * ) + + ( + 38 ) AS col2
----
80

query II rowsort
SELECT 47, + 11 AS col0
----
47
11

query I rowsort
SELECT ALL 3 * - - 4 * + - 22 + - 26
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT DISTINCT - - CASE COALESCE ( - + 36, - 94 ) WHEN 45 + 59 * 77 THEN NULL WHEN - 20 THEN NULL ELSE + COUNT( + 4 ) * - ( 97 ) END * + 59 + 4 AS col2
----
-5719

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT - - CASE COALESCE ( - + 36, - 94 ) WHEN 45 + 59 * 77 THEN NULL WHEN - 20 THEN NULL ELSE + COUNT ( + 4 ) * - ( 97 ) END * + 59 + 4 AS col2
----
-5719

query I rowsort
SELECT + + 65 * 76 AS col1
----
4940

query I rowsort
SELECT DISTINCT 90 * + 72 + 31 + + - NULLIF ( - 62, 28 + 6 ) * 57 col1
----
10045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT DISTINCT 89 * + NULLIF ( + CAST( - - 85 AS SIGNED ), + 91 + 89 * - ( - SUM( + 82 ) * 54 ) ) + 11 * 55 AS col1
----
8170

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT 89 * + NULLIF ( + CAST ( - - 85 AS INTEGER ), + 91 + 89 * - ( - SUM ( + 82 ) * 54 ) ) + 11 * 55 AS col1
----
8170

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT + + 32 * + - NULLIF ( + 18, - + COUNT( * ) )
----
-576

skipif mysql # not compatible
query I rowsort label-7141
SELECT + + 32 * + - NULLIF ( + 18, - + COUNT ( * ) )
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT ALL ( + + 79 ) * - - 28 * - 40 - - + COUNT( * )
----
-88479

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL ( + + 79 ) * - - 28 * - 40 - - + COUNT ( * )
----
-88479

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT + 76 + + - 71 + + COUNT( * ) + + - 73 + - - 68 * - 92 AS col0
----
-6323

skipif mysql # not compatible
query I rowsort label-7143
SELECT + 76 + + - 71 + + COUNT ( * ) + + - 73 + - - 68 * - 92 AS col0
----
-6323

query II rowsort
SELECT - 38 AS col1, 27 + - 64 AS col2
----
-38
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT + MAX( - 5 ) + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7145
SELECT + MAX ( - 5 ) + COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT + ( - 29 ) - + + 95
----
-124

query II rowsort
SELECT - 11 AS col1, - 98
----
-11
-98

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7149
SELECT ALL + 0, 86 * + COUNT( * ) * - 13 AS col0
----
0
-1118

skipif mysql # not compatible
query II rowsort label-7149
SELECT ALL + 0, 86 * + COUNT ( * ) * - 13 AS col0
----
0
-1118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7150
SELECT ALL ( CASE CASE - + AVG ( ALL - - 17 ) WHEN - SUM( ALL 29 ) THEN + 5 / 22 ELSE 43 + - COALESCE ( - 76, 77 * + 26 ) END WHEN 49 THEN - 65 * 9 - + ( CAST( COUNT( * ) AS DECIMAL ) ) WHEN 87 * + 19 THEN 78 WHEN 31 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL ( CASE CASE - + AVG ( ALL - - 17 ) WHEN - SUM ( ALL 29 ) THEN + 5 / 22 ELSE 43 + - COALESCE ( - 76, 77 * + 26 ) END WHEN 49 THEN - 65 * 9 - + ( CAST ( COUNT ( * ) AS REAL ) ) WHEN 87 * + 19 THEN 78 WHEN 31 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT + + 64 + 40
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT DISTINCT - 58 - COALESCE ( + 57, CAST( + 24 AS SIGNED ), - - 28 ) AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - 58 - COALESCE ( + 57, CAST ( + 24 AS INTEGER ), - - 28 ) AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL + COUNT( * ) / - 15 * - CASE - 5 WHEN - - 64 * - + 46 - - - ( COUNT( * ) ) + + 11 * + 46 - - NULLIF ( - 96, + 11 - + CASE 18 WHEN 91 THEN + 58 - + 68 * CASE + 48 WHEN - ( 18 ) THEN 15 * 78 ELSE - COALESCE ( 18, 23 * 27 + 44, 17, + 5 + + 4 ) * 23 END WHEN COUNT( * ) - 42 THEN + 51 * + 64 WHEN - ( + COUNT( * ) ) THEN - 68 ELSE - MAX( DISTINCT ( + 31 ) ) * ( - 70 ) END ) THEN + 81 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + COUNT ( * ) / - 15 * - CASE - 5 WHEN - - 64 * - + 46 - - - ( COUNT ( * ) ) + + 11 * + 46 - - NULLIF ( - 96, + 11 - + CASE 18 WHEN 91 THEN + 58 - + 68 * CASE + 48 WHEN - ( 18 ) THEN 15 * 78 ELSE - COALESCE ( 18, 23 * 27 + 44, 17, + 5 + + 4 ) * 23 END WHEN COUNT ( * ) - 42 THEN + 51 * + 64 WHEN - ( + COUNT ( * ) ) THEN - 68 ELSE - MAX ( DISTINCT ( + 31 ) ) * ( - 70 ) END ) THEN + 81 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7154
SELECT DISTINCT 10 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT 10 / - 54
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7155
SELECT + COALESCE ( - + 3, 8 ) DIV + - COUNT( * ) - - 68 * 84
----
5715

skipif mysql # not compatible
query I rowsort label-7155
SELECT + COALESCE ( - + 3, 8 ) / + - COUNT ( * ) - - 68 * 84
----
5715

query I rowsort
SELECT ALL 45 * 37 AS col2
----
1665

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT - 15 * - CAST( + 27 AS SIGNED ) * COALESCE ( - 32, + + 82 )
----
-12960

skipif mysql # not compatible
query I rowsort label-7158
SELECT - 15 * - CAST ( + 27 AS INTEGER ) * COALESCE ( - 32, + + 82 )
----
-12960

query I rowsort
SELECT - 33 + - - 26 + + 52 * 71 AS col1
----
3685

query I rowsort
SELECT ALL - 44 * - 96 AS col2
----
4224

query I rowsort
SELECT + 79 * - - 6 AS col0
----
474

query I rowsort
SELECT ALL ( 66 ) col1
----
66

query I rowsort
SELECT ALL 3 * + 8
----
24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7165
SELECT DISTINCT + 47 DIV - 72 + + + ( + MAX( ALL 10 ) ), 56 AS col1
----
10
56

skipif mysql # not compatible
query II rowsort label-7165
SELECT DISTINCT + 47 / - 72 + + + ( + MAX ( ALL 10 ) ), 56 AS col1
----
10
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7166
SELECT - COUNT( * ) * + - 83 DIV 71 AS col1, + COUNT( * ) AS col0
----
1
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7167
SELECT ALL + - ( ( + - 47 ) ) * ( - 22 ) DIV COUNT( * ) * COUNT( * )
----
-1034

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + - ( ( + - 47 ) ) * ( - 22 ) / COUNT ( * ) * COUNT ( * )
----
-1034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT ALL - 97 + 41 * - CAST( 44 AS SIGNED )
----
-1901

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL - 97 + 41 * - CAST ( 44 AS INTEGER )
----
-1901

query II rowsort
SELECT + ( 2 ), 80 AS col1
----
2
80

query I rowsort
SELECT ALL + - 0 + - 93 * - 80 * - 90 AS col0
----
-669600

query I rowsort
SELECT ALL + 5 * + + 67
----
335

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT + CASE + 84 WHEN - - 85 * + 57 + - - 49 THEN NULL WHEN - + MAX( DISTINCT 25 ) THEN ( + 20 ) + + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT + CASE + 84 WHEN - - 85 * + 57 + - - 49 THEN NULL WHEN - + MAX ( DISTINCT 25 ) THEN ( + 20 ) + + 36 END
----
NULL

query I rowsort
SELECT DISTINCT - ( + 51 ) * 79 * + 51 + - + 93 AS col1
----
-205572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT - CAST( + 95 AS SIGNED ) + + + 2 + + 55
----
-38

skipif mysql # not compatible
query I rowsort label-7174
SELECT - CAST ( + 95 AS INTEGER ) + + + 2 + + 55
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT - COUNT( * ) - + SUM( - NULLIF ( + + 74, + - 75 ) )
----
73

skipif mysql # not compatible
query I rowsort label-7175
SELECT - COUNT ( * ) - + SUM ( - NULLIF ( + + 74, + - 75 ) )
----
73

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

query I rowsort
SELECT 12 * - ( 18 ) AS col1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL - MIN( DISTINCT - ( - ( + 67 ) ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL - MIN ( DISTINCT - ( - ( + 67 ) ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT DISTINCT - + ( - COUNT( * ) ) - ( + - 68 ) + + 16 col1
----
85

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT - + ( - COUNT ( * ) ) - ( + - 68 ) + + 16 col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7180
SELECT DISTINCT - MIN( ALL 40 ) * - 91 DIV + - COUNT( * ) + 51 AS col1
----
-3589

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - MIN ( ALL 40 ) * - 91 / + - COUNT ( * ) + 51 AS col1
----
-3589

query II rowsort
SELECT + 28 + - 86 AS col1, - 10 + - + 16 AS col0
----
-58
-26

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

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

query I rowsort
SELECT ALL 69 * 58
----
4002

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

query II rowsort
SELECT - 5 AS col0, - 40
----
-5
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT 77 - - 11 + - ( + - 77 ) + 64 + - CASE ( 83 ) WHEN + 63 THEN - 56 + + 30 * + COUNT( * ) ELSE NULL END / 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT 77 - - 11 + - ( + - 77 ) + 64 + - CASE ( 83 ) WHEN + 63 THEN - 56 + + 30 * + COUNT ( * ) ELSE NULL END / 37 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 10, 33 * 59 AS col1
----
10
1947

onlyif mysql # DIV for integer division: 
query I rowsort label-7188
SELECT COALESCE ( + 42, 20 ) DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT COALESCE ( + 42, 20 ) / 56 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT ALL 27 AS col2, + COUNT( * ) * + 74 * 61
----
27
4514

skipif mysql # not compatible
query II rowsort label-7189
SELECT ALL 27 AS col2, + COUNT ( * ) * + 74 * 61
----
27
4514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT CAST( NULL AS SIGNED ) / 3 * + 26 * + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT CAST ( NULL AS INTEGER ) / 3 * + 26 * + 76 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - 94 / + 78 THEN + COUNT( - 15 ) + - COUNT( * ) END + + + COUNT( * ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - 94 / + 78 THEN + COUNT ( - 15 ) + - COUNT ( * ) END + + + COUNT ( * ) * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT COUNT( * ) * + 43 * - ( - + 54 ) * - 5 AS col0
----
-11610

skipif mysql # not compatible
query I rowsort label-7192
SELECT COUNT ( * ) * + 43 * - ( - + 54 ) * - 5 AS col0
----
-11610

query I rowsort
SELECT 11 + + - 57 col1
----
-46

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

skipif mysql # not compatible
query I rowsort label-7194
SELECT 47 - + COUNT ( * ) AS col2
----
46

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7197
SELECT 82 AS col0, 18 * + COUNT( * )
----
82
18

skipif mysql # not compatible
query II rowsort label-7197
SELECT 82 AS col0, 18 * + COUNT ( * )
----
82
18

query I rowsort
SELECT DISTINCT - - 95
----
95

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7202
SELECT + - 9 AS col2, + CAST( ( + 75 ) AS SIGNED )
----
-9
75

skipif mysql # not compatible
query II rowsort label-7202
SELECT + - 9 AS col2, + CAST ( ( + 75 ) AS INTEGER )
----
-9
75

query I rowsort
SELECT + - 55 * + 20 + + 40 AS col0
----
-1060

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7205
SELECT 24 * + + 44 + + 81 * - 58 + - 18 + + + 0 + - NULLIF ( - 3, + 59 * ( - 55 ) ) * 94 * + NULLIF ( 48 DIV 75, + 55 * COUNT( * ) + 31 ) col2
----
-3660

skipif mysql # not compatible
query I rowsort label-7205
SELECT 24 * + + 44 + + 81 * - 58 + - 18 + + + 0 + - NULLIF ( - 3, + 59 * ( - 55 ) ) * 94 * + NULLIF ( 48 / 75, + 55 * COUNT ( * ) + 31 ) col2
----
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT + NULLIF ( COUNT( * ), - 91 + 93 * - - 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7206
SELECT + NULLIF ( COUNT ( * ), - 91 + 93 * - - 10 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL - + NULLIF ( - 11, + 24 * COUNT ( * ) )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT - ( - 47 ) * 57, - 1 * - MIN( 54 ) col1
----
2679
54

skipif mysql # not compatible
query II rowsort label-7208
SELECT - ( - 47 ) * 57, - 1 * - MIN ( 54 ) col1
----
2679
54

onlyif mysql # DIV for integer division: 
query II rowsort label-7209
SELECT ALL + + 56 * 32 DIV - COALESCE ( + 76, - 47 * - 24 ), - 23 + - 95 + 89 col0
----
-23
-29

skipif mysql # not compatible
query II rowsort label-7209
SELECT ALL + + 56 * 32 / - COALESCE ( + 76, - 47 * - 24 ), - 23 + - 95 + 89 col0
----
-23
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7210
SELECT ALL - 69 * - + SUM( 43 ), + 11 - - 49 AS col0
----
2967
60

skipif mysql # not compatible
query II rowsort label-7210
SELECT ALL - 69 * - + SUM ( 43 ), + 11 - - 49 AS col0
----
2967
60

query I rowsort
SELECT ALL - - 69 col0
----
69

query I rowsort
SELECT DISTINCT - NULLIF ( - - CASE 34 WHEN + 30 THEN NULL ELSE + 60 END, - 82 * + 16 - - 32 )
----
-60

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

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

query I rowsort
SELECT ALL - ( + 17 ) * + ( - 65 )
----
1105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7215
SELECT 6 * CAST( 16 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-7215
SELECT 6 * CAST ( 16 AS INTEGER )
----
96

query I rowsort
SELECT 77 + + ( + 38 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT 22 + + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7217
SELECT 22 + + COUNT ( * ) AS col0
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL COUNT( * ) + 62
----
63

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

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

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

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL MIN ( ALL - 59 )
----
-59

query II rowsort
SELECT DISTINCT - 72 + - + 4, 15 * - - 41 AS col0
----
-76
615

query I rowsort
SELECT DISTINCT ( + NULLIF ( - - 80, + 93 ) ) * 26
----
2080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT ALL - SUM( ALL + ( - 80 ) ) + 24 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL - SUM ( ALL + ( - 80 ) ) + 24 AS col0
----
104

query I rowsort
SELECT - 38 * + 43 AS col1
----
-1634

query I rowsort
SELECT + 20 + - 20 * - 93
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL 2 + - ( - COUNT( * ) ) + + 98 + + + 69 * ( + - NULLIF ( 35, 82 ) )
----
-2314

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL 2 + - ( - COUNT ( * ) ) + + 98 + + + 69 * ( + - NULLIF ( 35, 82 ) )
----
-2314

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

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

query I rowsort
SELECT DISTINCT + 82 * + 84 AS col1
----
6888

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7232
SELECT + - 8 - - CAST( 19 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-7232
SELECT + - 8 - - CAST ( 19 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT + - COALESCE ( 96, 80 + + + 29 + - COUNT( * ) * - 75 + - + 24, - 78 )
----
-96

skipif mysql # not compatible
query I rowsort label-7233
SELECT + - COALESCE ( 96, 80 + + + 29 + - COUNT ( * ) * - 75 + - + 24, - 78 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT + + COUNT( * ) * - MIN( ALL + - 51 ) * CASE 95 WHEN 41 * - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + 37 WHEN 17 THEN NULL ELSE NULL END + + 60 - 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT + + COUNT ( * ) * - MIN ( ALL + - 51 ) * CASE 95 WHEN 41 * - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 37 WHEN 17 THEN NULL ELSE NULL END + + 60 - 64 AS col0
----
NULL

query I rowsort
SELECT + + 34 - - + CASE - 53 WHEN 84 THEN + COALESCE ( + + 7, + 30, + 36 ) WHEN - 57 THEN 21 + + 55 * - 82 ELSE NULL END + 52 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7236
SELECT + - 28 DIV 56 * - 86
----
0

skipif mysql # not compatible
query I rowsort label-7236
SELECT + - 28 / 56 * - 86
----
0

query I rowsort
SELECT ALL 73 * 66
----
4818

query I rowsort
SELECT + 43 * CASE - + COALESCE ( + 99, - + 84, + + 54, + 26 ) WHEN 70 THEN NULL WHEN 67 THEN NULL ELSE - 95 * 45 + - 67 END AS col0
----
-186706

query I rowsort
SELECT + 56 * 50
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT DISTINCT - 78 * COUNT( * ) + + 63 + 37 + - - 21 * - 48 * + + 47 - - - 39 * ( - 92 ) AS col1
----
-43766

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - 78 * COUNT ( * ) + + 63 + 37 + - - 21 * - 48 * + + 47 - - - 39 * ( - 92 ) AS col1
----
-43766

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL + COALESCE ( - 53, + 94 * - 55, - COUNT( * ), + - 87 )
----
-53

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL + COALESCE ( - 53, + 94 * - 55, - COUNT ( * ), + - 87 )
----
-53

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

query II rowsort
SELECT - - 27 * 20, + 96 AS col0
----
540
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT + 59 * 0 * + + 26 * MIN( + 92 ) * - 95
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT + 59 * 0 * + + 26 * MIN ( + 92 ) * - 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7246
SELECT + CAST( 76 AS SIGNED ), 63 AS col1
----
76
63

skipif mysql # not compatible
query II rowsort label-7246
SELECT + CAST ( 76 AS INTEGER ), 63 AS col1
----
76
63

query I rowsort
SELECT - 92 - - 49 col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL - COUNT( + + 92 ) * - + 49 + + 4 + + + 13 + 22 * 3
----
132

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - COUNT ( + + 92 ) * - + 49 + + 4 + + + 13 + 22 * 3
----
132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL - ( COUNT( * ) ) * 58 + - - ( + 39 )
----
-19

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL - ( COUNT ( * ) ) * 58 + - - ( + 39 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7251
SELECT ALL + CAST( - - 56 AS SIGNED ) * - SUM( + 23 ) + + 57 AS col2
----
-1231

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL + CAST ( - - 56 AS INTEGER ) * - SUM ( + 23 ) + + 57 AS col2
----
-1231

query I rowsort
SELECT - ( 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT + 62 - 15 + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-7253
SELECT + 62 - 15 + + COUNT ( * )
----
48

query II rowsort
SELECT - 21 * 93 * - 18 AS col0, - 2 + 77 + 72
----
35154
147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - MIN( + 88 ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-7256
SELECT - MIN ( + 88 ) col0
----
-88

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7258
SELECT + 79 + - + 71 * COALESCE ( + + 84, - ( - 23 ) + - COALESCE ( - 14, + + COUNT( * ) + + 88 ) - 62 * - 88, CAST( NULL AS SIGNED ) * 49 + - CASE COUNT( CAST( 46 AS SIGNED ) ) + 62 WHEN 3 * 80 - 42 * 39 THEN NULL ELSE COALESCE ( COUNT( * ), - 63, 82, COUNT( + 32 ) ) * 54 + 94 END ) + + 18
----
-5867

skipif mysql # not compatible
query I rowsort label-7258
SELECT + 79 + - + 71 * COALESCE ( + + 84, - ( - 23 ) + - COALESCE ( - 14, + + COUNT ( * ) + + 88 ) - 62 * - 88, CAST ( NULL AS INTEGER ) * 49 + - CASE COUNT ( CAST ( 46 AS INTEGER ) ) + 62 WHEN 3 * 80 - 42 * 39 THEN NULL ELSE COALESCE ( COUNT ( * ), - 63, 82, COUNT ( + 32 ) ) * 54 + 94 END ) + + 18
----
-5867

query I rowsort
SELECT ALL - 23 - + + 47 + 72 - + - 77 AS col1
----
79

query I rowsort
SELECT DISTINCT COALESCE ( + + 81, - 93, 26 ) AS col0
----
81

query II rowsort
SELECT ALL 47, + 81 + - + COALESCE ( - - 84, 49 ) AS col2
----
47
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT - 60 + - - 70 + - COUNT( * ) * - 81 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7262
SELECT - 60 + - - 70 + - COUNT ( * ) * - 81 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL - 18 - MAX( + 38 )
----
-56

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - 18 - MAX ( + 38 )
----
-56

query I rowsort
SELECT - 4 + 97 - + 22 + 52 * 82 + - 13 + - 25 * 55
----
2947

query I rowsort
SELECT + 74 * 5 + + 38 AS col2
----
408

query I rowsort
SELECT DISTINCT - 27 * - + 93
----
2511

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT + 88 - + 70 + 36 * + - 99 * - 38 + - ( - MIN( ALL - + 54 ) ) AS col1
----
135396

skipif mysql # not compatible
query I rowsort label-7267
SELECT + 88 - + 70 + 36 * + - 99 * - 38 + - ( - MIN ( ALL - + 54 ) ) AS col1
----
135396

onlyif mysql # DIV for integer division: 
query I rowsort label-7268
SELECT + 1 - + + ( 30 ) DIV - 75
----
1

skipif mysql # not compatible
query I rowsort label-7268
SELECT + 1 - + + ( 30 ) / - 75
----
1

query I rowsort
SELECT - NULLIF ( + 70, + 94 ) + 68 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL + - CASE 95 WHEN - COUNT( * ) THEN - 84 - 97 + 8 WHEN - 80 * COUNT( * ) + + - 22 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + - CASE 95 WHEN - COUNT ( * ) THEN - 84 - 97 + 8 WHEN - 80 * COUNT ( * ) + + - 22 THEN NULL END col2
----
NULL

query II rowsort
SELECT + 85, 6 * 68 + + ( - 90 ) + - + 83 AS col1
----
85
235

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT + + 47 + + + 21 - + + 65 DIV - + 21
----
71

skipif mysql # not compatible
query I rowsort label-7273
SELECT + + 47 + + + 21 - + + 65 / - + 21
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT + - CASE + COUNT( * ) WHEN - 48 THEN - 19 * 95 WHEN + - NULLIF ( COUNT( * ), - - 88 ) * 27 * - 76 THEN - 37 END + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT + - CASE + COUNT ( * ) WHEN - 48 THEN - 19 * 95 WHEN + - NULLIF ( COUNT ( * ), - - 88 ) * 27 * - 76 THEN - 37 END + - 75
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT + 61 * + 51 * + MAX( DISTINCT 39 ) + COUNT( * ) * + 92 + - MAX( - 77 ) + MIN( DISTINCT 95 ) + 90 * - 55 col1
----
116643

skipif mysql # not compatible
query I rowsort label-7276
SELECT + 61 * + 51 * + MAX ( DISTINCT 39 ) + COUNT ( * ) * + 92 + - MAX ( - 77 ) + MIN ( DISTINCT 95 ) + 90 * - 55 col1
----
116643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7277
SELECT + 30 * 94 + + 37 / - - 96 + + - COUNT( ALL - - 6 ) * + COUNT( DISTINCT - 50 ) * - - CAST( NULL AS SIGNED ) + + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT + 30 * 94 + + 37 / - - 96 + + - COUNT ( ALL - - 6 ) * + COUNT ( DISTINCT - 50 ) * - - CAST ( NULL AS INTEGER ) + + - 65
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + COUNT ( * ) / - - 25 + + 29 AS col0
----
29

query II rowsort
SELECT ALL + 41 AS col1, ( 22 ) AS col1
----
41
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT COUNT( * ) * + 57 + - 91 * 26 AS col1
----
-2309

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT COUNT ( * ) * + 57 + - 91 * 26 AS col1
----
-2309

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT ALL 39 * 68 * + COUNT( * )
----
2652

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL 39 * 68 * + COUNT ( * )
----
2652

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT NULLIF ( - + COUNT( * ), - 23 * 85 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7285
SELECT NULLIF ( - + COUNT ( * ), - 23 * 85 ) + COUNT ( * )
----
0

query I rowsort
SELECT 50 * 15 col0
----
750

query I rowsort
SELECT ALL - 55 - 19 col1
----
-74

query II rowsort
SELECT DISTINCT 29 AS col2, - 29
----
29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT 46 + 25 / - 13 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT 46 + 25 / - 13 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 88 AS col1, + 50 + + 46 AS col2
----
-88
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7291
SELECT ALL 90, + SUM( 71 ) col2
----
90
71

skipif mysql # not compatible
query II rowsort label-7291
SELECT ALL 90, + SUM ( 71 ) col2
----
90
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7292
SELECT ALL 92 col0, CAST( 23 AS SIGNED )
----
92
23

skipif mysql # not compatible
query II rowsort label-7292
SELECT ALL 92 col0, CAST ( 23 AS INTEGER )
----
92
23

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

skipif mysql # not compatible
query I rowsort label-7293
SELECT COUNT ( * ) * + MIN ( ALL - + 13 ) AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7294
SELECT - 84 AS col2, - SUM( - 1 ) * + ( 21 ) + 95 - + - ( - CAST( + - 46 AS SIGNED ) ) AS col0
----
-84
162

skipif mysql # not compatible
query II rowsort label-7294
SELECT - 84 AS col2, - SUM ( - 1 ) * + ( 21 ) + 95 - + - ( - CAST ( + - 46 AS INTEGER ) ) AS col0
----
-84
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT ALL - - MAX( 18 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL - - MAX ( 18 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT 22 DIV - - 53 - 73
----
-73

skipif mysql # not compatible
query I rowsort label-7296
SELECT 22 / - - 53 - 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT - 16 * + 23 + 61 - + SUM( 48 ) + + 83 - + 16 * + + 71 AS col1
----
-1408

skipif mysql # not compatible
query I rowsort label-7297
SELECT - 16 * + 23 + 61 - + SUM ( 48 ) + + 83 - + 16 * + + 71 AS col1
----
-1408

onlyif mysql # DIV for integer division: 
query I rowsort label-7298
SELECT ALL + + 49 DIV - + 87 - - 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL + + 49 / - + 87 - - 54 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7299
SELECT + COUNT( * ) DIV + 79 + - COALESCE ( + 83, + + ( + + COUNT( * ) ) - ( - - 43 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-7299
SELECT + COUNT ( * ) / + 79 + - COALESCE ( + 83, + + ( + + COUNT ( * ) ) - ( - - 43 ) )
----
-83

query II rowsort
SELECT DISTINCT 2 col0, COALESCE ( 4, + 3, - 84 ) AS col0
----
2
4

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

skipif mysql # not compatible
query I rowsort label-7301
SELECT - + MAX ( - 94 )
----
94

query I rowsort
SELECT ALL - NULLIF ( 97, 61 * - 76 * - 25 )
----
-97

query II rowsort
SELECT DISTINCT 85 AS col0, 44 - - 20 + - 79 * - 48
----
85
3856

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

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

query II rowsort
SELECT DISTINCT 47 AS col0, 54 AS col1
----
47
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7306
SELECT - 74 * + CASE - NULLIF ( - 61, + 57 + + CAST( NULL AS SIGNED ) + - - 61 ) WHEN 34 THEN + 67 WHEN - + COUNT( * ) THEN + - 24 ELSE NULL END * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT - 74 * + CASE - NULLIF ( - 61, + 57 + + CAST ( NULL AS INTEGER ) + - - 61 ) WHEN 34 THEN + 67 WHEN - + COUNT ( * ) THEN + - 24 ELSE NULL END * 21 AS col0
----
NULL

query I rowsort
SELECT 12 - + + ( + 84 ) AS col2
----
-72

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

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

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

query III rowsort
SELECT 44 AS col0, - 99 AS col2, + 38 + - 91 + - 64 AS col1
----
44
-99
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-7311
SELECT - COUNT( - 56 ) AS col2, + 87 * + 28 - - 25 col2
----
-1
2461

skipif mysql # not compatible
query II rowsort label-7311
SELECT - COUNT ( - 56 ) AS col2, + 87 * + 28 - - 25 col2
----
-1
2461

query II rowsort
SELECT + - 4, - 67 AS col1
----
-4
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7313
SELECT ALL - 91 AS col0, CAST( NULL AS SIGNED )
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-7313
SELECT ALL - 91 AS col0, CAST ( NULL AS INTEGER )
----
-91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7314
SELECT + CAST( NULL AS SIGNED ), 8 * - - MIN( 8 ) / + 58 + + + CASE - ( 35 ) WHEN + - ( - 5 ) THEN - + 29 WHEN + 50 * - 50 + - 91 / 51 THEN - 24 + + 23 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7314
SELECT + CAST ( NULL AS INTEGER ), 8 * - - MIN ( 8 ) / + 58 + + + CASE - ( 35 ) WHEN + - ( - 5 ) THEN - + 29 WHEN + 50 * - 50 + - 91 / 51 THEN - 24 + + 23 ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT ALL - + NULLIF ( + - 91, - 3 + - 56 * 8 ) col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7316
SELECT + - CAST( - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT + - CAST ( - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7317
SELECT DISTINCT + 40 + + 11 + - 24 + 21 + - - COALESCE ( - 61, - + 86 ) * - + 19 * + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT + 40 + + 11 + - 24 + 21 + - - COALESCE ( - 61, - + 86 ) * - + 19 * + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 86 + - 33
----
53

query I rowsort
SELECT - 94 * + 13 - 89 + 6
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ALL + 68 + - NULLIF ( + SUM( DISTINCT + - 35 ), - 41 ) + - COUNT( * ) + + - ( + ( + 16 ) ) * + 77 - 97 AS col0
----
-1227

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + 68 + - NULLIF ( + SUM ( DISTINCT + - 35 ), - 41 ) + - COUNT ( * ) + + - ( + ( + 16 ) ) * + 77 - 97 AS col0
----
-1227

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

skipif mysql # not compatible
query I rowsort label-7321
SELECT COUNT ( * ) + 80 AS col2
----
81

query I rowsort
SELECT ALL 85 * + 19
----
1615

query I rowsort
SELECT ALL - 66 col0
----
-66

query I rowsort
SELECT DISTINCT 20 * - + 85 AS col1
----
-1700

query II rowsort
SELECT DISTINCT 32 * + 59, 39 AS col0
----
1888
39

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

skipif mysql # not compatible
query I rowsort label-7326
SELECT NULLIF ( - COUNT ( * ), - 29 + CAST ( NULL AS INTEGER ) ) + + 90
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT 40 * - MAX( - 8 ) AS col0
----
320

skipif mysql # not compatible
query I rowsort label-7327
SELECT 40 * - MAX ( - 8 ) AS col0
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT CASE - 81 WHEN + COUNT( * ) THEN - 4 WHEN + + SUM( DISTINCT 62 ) THEN NULL WHEN COUNT( * ) + - + 98 * + + 86 * - 82 THEN + - AVG ( 93 ) * CASE + 50 WHEN 77 THEN + ( COUNT( * ) ) ELSE 80 + - 61 END + + 75 END * 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT CASE - 81 WHEN + COUNT ( * ) THEN - 4 WHEN + + SUM ( DISTINCT 62 ) THEN NULL WHEN COUNT ( * ) + - + 98 * + + 86 * - 82 THEN + - AVG ( 93 ) * CASE + 50 WHEN 77 THEN + ( COUNT ( * ) ) ELSE 80 + - 61 END + + 75 END * 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT 97 * + 26 + + 30 + + SUM( ALL + ( 11 ) ) - 49 * NULLIF ( + - 20, + CAST( + - ( - - 33 ) AS SIGNED ) * 4 )
----
3543

skipif mysql # not compatible
query I rowsort label-7329
SELECT 97 * + 26 + + 30 + + SUM ( ALL + ( 11 ) ) - 49 * NULLIF ( + - 20, + CAST ( + - ( - - 33 ) AS INTEGER ) * 4 )
----
3543

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT 78 + 73, COALESCE ( + 86, - 53, + 41 ) * COUNT( * ) * + COUNT( * ) + - 30 AS col2
----
151
56

skipif mysql # not compatible
query II rowsort label-7330
SELECT 78 + 73, COALESCE ( + 86, - 53, + 41 ) * COUNT ( * ) * + COUNT ( * ) + - 30 AS col2
----
151
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7331
SELECT ALL + + COUNT( * ) DIV + + 10 + - 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL + + COUNT ( * ) / + + 10 + - 43 AS col2
----
-43

query I rowsort
SELECT + 13 * - 41 * - - 46 AS col0
----
-24518

query II rowsort
SELECT ALL - ( 26 ), 44 AS col0
----
-26
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7334
SELECT - COALESCE ( - + ( + 31 ), + + MIN( ALL + - 56 ), + 3 DIV - 46 + + 30 - - 26 * - 12 * COUNT( * ) ) - 68 + 34 * - 48 AS col1
----
-1669

skipif mysql # not compatible
query I rowsort label-7334
SELECT - COALESCE ( - + ( + 31 ), + + MIN ( ALL + - 56 ), + 3 / - 46 + + 30 - - 26 * - 12 * COUNT ( * ) ) - 68 + 34 * - 48 AS col1
----
-1669

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT + 44 * - SUM( ALL - + 28 ) - + 66 + + 16 AS col2
----
1182

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT + 44 * - SUM ( ALL - + 28 ) - + 66 + + 16 AS col2
----
1182

query I rowsort
SELECT - 36 - - ( - 77 )
----
-113

query III rowsort
SELECT DISTINCT - 83 + - 96 AS col2, 95, + 46 AS col0
----
-179
95
46

query I rowsort
SELECT 27 + + ( - 16 ) - + 94 AS col0
----
-83

query I rowsort
SELECT + COALESCE ( + 87, - 26 - 5 - + - 9 ) + - 68 + - 64 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL - 90 + + + MAX( ALL + 11 )
----
-79

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL - 90 + + + MAX ( ALL + 11 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT ( - 83 ) DIV 4 + - + 25 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7341
SELECT ( - 83 ) / 4 + - + 25 AS col0
----
-45

query I rowsort
SELECT - 34 + - - 2 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT NULLIF ( COUNT( * ), 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7343
SELECT NULLIF ( COUNT ( * ), 2 ) AS col2
----
1

query I rowsort
SELECT - 27 * 36
----
-972

query II rowsort
SELECT + 9, + 53 * + - 41 * + 48 AS col2
----
9
-104304

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT 36 * + 34 * + 50 DIV 5 + - + 83 AS col0
----
12157

skipif mysql # not compatible
query I rowsort label-7346
SELECT 36 * + 34 * + 50 / 5 + - + 83 AS col0
----
12157

query II rowsort
SELECT ALL + ( + + 92 ) * - 70 * + 84, 8 * + + 12 col1
----
-540960
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT DISTINCT - COUNT( * ) * - + ( - + 32 ) * - 8 * + 58 - + - 64 AS col2
----
14912

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT - COUNT ( * ) * - + ( - + 32 ) * - 8 * + 58 - + - 64 AS col2
----
14912

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT - 85 + - 19 - + - ( COUNT( * ) )
----
-103

skipif mysql # not compatible
query I rowsort label-7349
SELECT - 85 + - 19 - + - ( COUNT ( * ) )
----
-103

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

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

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

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

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

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

query I rowsort
SELECT - 49 + + - 58 AS col0
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7355
SELECT + ( + 99 ) DIV + + 81 + + 42 * + COALESCE ( - 59, COUNT( * ) ) AS col1
----
-2477

skipif mysql # not compatible
query I rowsort label-7355
SELECT + ( + 99 ) / + + 81 + + 42 * + COALESCE ( - 59, COUNT ( * ) ) AS col1
----
-2477

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT - COUNT( * ) + + 30 + - 41 * - COUNT( - + 13 ) + + COUNT( * ) + 14 - COALESCE ( - 20, + 46, + + 73 + 63 ) * 29 * + 56 AS col0
----
32565

skipif mysql # not compatible
query I rowsort label-7356
SELECT - COUNT ( * ) + + 30 + - 41 * - COUNT ( - + 13 ) + + COUNT ( * ) + 14 - COALESCE ( - 20, + 46, + + 73 + 63 ) * 29 * + 56 AS col0
----
32565

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT DISTINCT 37 DIV - + 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT 37 / - + 77 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT ALL COALESCE ( + COUNT( * ), - 47 * - AVG ( + 85 ) DIV + 64 + 72 + + 13 * MIN( + 50 ), 76 * - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL COALESCE ( + COUNT ( * ), - 47 * - AVG ( + 85 ) / + 64 + 72 + + 13 * MIN ( + 50 ), 76 * - 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL - 6 * - COUNT( ALL - 71 )
----
6

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL - 6 * - COUNT ( ALL - 71 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7361
SELECT ALL + 95 + + 27 + - + COUNT( * ) DIV - 41 + - 24
----
98

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + 95 + + 27 + - + COUNT ( * ) / - 41 + - 24
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT + COUNT( * ) + + 11
----
12

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT + COUNT ( * ) + + 11
----
12

query I rowsort
SELECT ALL 51 + + 29
----
80

query I rowsort
SELECT + 20 + - 14 col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7365
SELECT ALL - 4 + + MAX( ALL + 25 ) - 3 + 74 * 47 - - COUNT( ( - 89 ) ) DIV 12 - - - MIN( - 57 ) AS col1
----
3553

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL - 4 + + MAX ( ALL + 25 ) - 3 + 74 * 47 - - COUNT ( ( - 89 ) ) / 12 - - - MIN ( - 57 ) AS col1
----
3553

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT - - COALESCE ( + 25, COUNT( * ) * - + 3 + - COUNT( + 5 ) * 76 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7366
SELECT - - COALESCE ( + 25, COUNT ( * ) * - + 3 + - COUNT ( + 5 ) * 76 ) AS col2
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL COUNT( - 23 ) + 47 * - 85 AS col0
----
-3994

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL COUNT ( - 23 ) + 47 * - 85 AS col0
----
-3994

query II rowsort
SELECT - 60 AS col2, 55 AS col0
----
-60
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7370
SELECT CASE WHEN NOT NULL IN ( COALESCE ( + 75, - + 78 * - + 6 - 92 - + ( - 53 ) + + - MIN( + 14 ) ) ) THEN + 40 - - - 12 DIV 8 WHEN ( 43 * + COUNT( * ) ) NOT IN ( 56 ) THEN 78 DIV + ( + 14 ) ELSE + AVG ( DISTINCT 87 ) END AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7370
SELECT CASE WHEN NOT NULL IN ( COALESCE ( + 75, - + 78 * - + 6 - 92 - + ( - 53 ) + + - MIN ( + 14 ) ) ) THEN + 40 - - - 12 / 8 WHEN ( 43 * + COUNT ( * ) ) NOT IN ( 56 ) THEN 78 / + ( + 14 ) ELSE + AVG ( DISTINCT 87 ) END AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7371
SELECT DISTINCT - 60 + 88 + + + 78 + + CASE + CASE NULLIF ( - - 6, + + CAST( NULL AS SIGNED ) * - 13 * - 10 ) WHEN + 79 + COALESCE ( + - 50, 13 * + 91 ) * - 41 THEN COALESCE ( COUNT( * ), 58 + 36 * - 21 ) - 89 END WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 72 * 42 END * 26 * 10 col0
----
786346

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT - 60 + 88 + + + 78 + + CASE + CASE NULLIF ( - - 6, + + CAST ( NULL AS INTEGER ) * - 13 * - 10 ) WHEN + 79 + COALESCE ( + - 50, 13 * + 91 ) * - 41 THEN COALESCE ( COUNT ( * ), 58 + 36 * - 21 ) - 89 END WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 72 * 42 END * 26 * 10 col0
----
786346

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT + MAX( + 42 ) * + 51 + + + 27
----
2169

skipif mysql # not compatible
query I rowsort label-7372
SELECT + MAX ( + 42 ) * + 51 + + + 27
----
2169

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT ALL + 27 DIV 37 * - 88 - 21 + - 42 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + 27 / 37 * - 88 - 21 + - 42 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-7374
SELECT - 11, + 16 - + 98 * - + COUNT( * ) * - + 87 AS col0
----
-11
-8510

skipif mysql # not compatible
query II rowsort label-7374
SELECT - 11, + 16 - + 98 * - + COUNT ( * ) * - + 87 AS col0
----
-11
-8510

query I rowsort
SELECT ALL ( - 26 ) * + 85 * 21 - - 92 col0
----
-46318

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT + 22 - - - MIN( + 52 )
----
-30

skipif mysql # not compatible
query I rowsort label-7376
SELECT + 22 - - - MIN ( + 52 )
----
-30

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7379
SELECT 77 DIV + COUNT( * ) + + + 54 AS col1
----
131

skipif mysql # not compatible
query I rowsort label-7379
SELECT 77 / + COUNT ( * ) + + + 54 AS col1
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT DISTINCT - 96 DIV - 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT - 96 / - 76 AS col2
----
1

query I rowsort
SELECT - 68 * 40
----
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL + SUM( ALL - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL + SUM ( ALL - 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT + 47 * - COUNT( * ) - + + 70 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-7383
SELECT + 47 * - COUNT ( * ) - + + 70 AS col2
----
-117

query I rowsort
SELECT + 32 * - 90
----
-2880

query I rowsort
SELECT ALL + NULLIF ( - 52, 63 + 0 - + - 49 ) AS col0
----
-52

query II rowsort
SELECT ( 96 ), 69 AS col0
----
96
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT - SUM( DISTINCT + 76 ) + 36
----
-40

skipif mysql # not compatible
query I rowsort label-7387
SELECT - SUM ( DISTINCT + 76 ) + 36
----
-40

query I rowsort
SELECT COALESCE ( 44, 10 )
----
44

query I rowsort
SELECT ALL + 6 * + 62
----
372

query II rowsort
SELECT DISTINCT + 88 * + 42, 10 AS col1
----
3696
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT - + 38 * - MIN( - 17 ) AS col1
----
-646

skipif mysql # not compatible
query I rowsort label-7391
SELECT - + 38 * - MIN ( - 17 ) AS col1
----
-646

query I rowsort
SELECT DISTINCT 13 * - + 82 + - 10 + - 50 * 63 * - 91 + - 26
----
285548

query I rowsort
SELECT - 57 - + ( 16 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL NULLIF ( + COUNT( * ), - NULLIF ( + 25, COALESCE ( + + ( ( 49 ) ), 27 ) / - 93 * 74 + + 6 + - 39 * - COUNT( ALL + 2 ) - + 11 / 1 * 44 + + 78 ) ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL NULLIF ( + COUNT ( * ), - NULLIF ( + 25, COALESCE ( + + ( ( 49 ) ), 27 ) / - 93 * 74 + + 6 + - 39 * - COUNT ( ALL + 2 ) - + 11 / 1 * 44 + + 78 ) ) * 9
----
9

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

query I rowsort
SELECT ALL - + 71 + 44 + + 37 AS col0
----
10

query I rowsort
SELECT ALL + 42 - - NULLIF ( + 68, - 12 * 39 + - 91 ) * + + 82 AS col2
----
5618

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT ALL + ( 73 ), - SUM( + + 30 ) AS col2
----
73
-30

skipif mysql # not compatible
query II rowsort label-7398
SELECT ALL + ( 73 ), - SUM ( + + 30 ) AS col2
----
73
-30

query I rowsort
SELECT ALL - - ( - 84 ) * + COALESCE ( + + 94, - 64 ) + 30 AS col1
----
-7866

onlyif mysql # aggregate syntax: 
query II rowsort label-7400
SELECT ALL + 98 * + 46 + - ( 26 ) + 55 + 72 + 79 AS col1, - COUNT( * ) * - + 51
----
4688
51

skipif mysql # not compatible
query II rowsort label-7400
SELECT ALL + 98 * + 46 + - ( 26 ) + 55 + 72 + 79 AS col1, - COUNT ( * ) * - + 51
----
4688
51

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

skipif mysql # not compatible
query I rowsort label-7401
SELECT - MAX ( DISTINCT - 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT 66 * + - 23 + - + 37 * + ( + - COUNT( * ) ) * - - 3 + + COUNT( * ) + + 60
----
-1346

skipif mysql # not compatible
query I rowsort label-7402
SELECT 66 * + - 23 + - + 37 * + ( + - COUNT ( * ) ) * - - 3 + + COUNT ( * ) + + 60
----
-1346

query I rowsort
SELECT 25 + - 39
----
-14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT COALESCE ( 68, 32 ) + - MIN( - 84 ) + 80 AS col1
----
232

skipif mysql # not compatible
query I rowsort label-7406
SELECT COALESCE ( 68, 32 ) + - MIN ( - 84 ) + 80 AS col1
----
232

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

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

query I rowsort
SELECT ALL 62 * - 58 AS col1
----
-3596

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT 73 * - COUNT( * ) * - 93 + COALESCE ( - - 65, CASE - 37 WHEN + MAX( - 46 ) THEN - 89 ELSE NULL END ) + + COUNT( * ) + 68 * - 73 * ( 84 ) AS col2
----
-410121

skipif mysql # not compatible
query I rowsort label-7409
SELECT 73 * - COUNT ( * ) * - 93 + COALESCE ( - - 65, CASE - 37 WHEN + MAX ( - 46 ) THEN - 89 ELSE NULL END ) + + COUNT ( * ) + 68 * - 73 * ( 84 ) AS col2
----
-410121

onlyif mysql # DIV for integer division: 
query I rowsort label-7410
SELECT + 68 DIV - - ( - 29 ) + + 12
----
10

skipif mysql # not compatible
query I rowsort label-7410
SELECT + 68 / - - ( - 29 ) + + 12
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7411
SELECT DISTINCT 9 DIV + 39 * - + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT 9 / + 39 * - + 89 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-7412
SELECT 59 + - 81 + + - ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7413
SELECT 66 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 49 * - - 76 AS col1
----
3724

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ALL + COUNT( * ) + 32 * - 99 AS col1
----
-3167

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + COUNT ( * ) + 32 * - 99 AS col1
----
-3167

query I rowsort
SELECT ALL - 47 + - - 25 * + 49 * + + 9
----
10978

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

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

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

query I rowsort
SELECT DISTINCT 19 + 78
----
97

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

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

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

query I rowsort
SELECT ALL + + ( - 62 ) + - 35
----
-97

query I rowsort
SELECT - 16 + + 50 col0
----
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT - 4 * - MAX( ALL - 2 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT - 4 * - MAX ( ALL - 2 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT MIN( ALL - 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT MIN ( ALL - 94 ) AS col1
----
-94

query I rowsort
SELECT 55 + 89 AS col2
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-7430
SELECT 4 * - 21 + + + COUNT( * ), - 95 AS col1
----
-83
-95

skipif mysql # not compatible
query II rowsort label-7430
SELECT 4 * - 21 + + + COUNT ( * ), - 95 AS col1
----
-83
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-7431
SELECT 35 DIV - - 91
----
0

skipif mysql # not compatible
query I rowsort label-7431
SELECT 35 / - - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT - CASE COUNT( * ) WHEN + + 85 THEN NULL WHEN 71 - + 37 * + + 20 + - 76 THEN + - 98 * 61 ELSE - 21 END
----
21

skipif mysql # not compatible
query I rowsort label-7432
SELECT - CASE COUNT ( * ) WHEN + + 85 THEN NULL WHEN 71 - + 37 * + + 20 + - 76 THEN + - 98 * 61 ELSE - 21 END
----
21

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

skipif mysql # not compatible
query II rowsort label-7433
SELECT DISTINCT COUNT ( * ) AS col0, 89 AS col0
----
1
89

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - 23 / 67
----
0

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

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

query I rowsort
SELECT ALL 63 * + - 35 * + - 26 AS col2
----
57330

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT 47 AS col1, 75 + + 74 + 96 + + 31 * + + NULLIF ( + - MIN( - 64 ), + ( - 24 ) ) col1
----
47
2229

skipif mysql # not compatible
query II rowsort label-7439
SELECT 47 AS col1, 75 + + 74 + 96 + + 31 * + + NULLIF ( + - MIN ( - 64 ), + ( - 24 ) ) col1
----
47
2229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7440
SELECT ALL + NULLIF ( + COALESCE ( + 76, - AVG ( 39 ) ), - COUNT( * ) + - + 9 ) DIV + + 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + NULLIF ( + COALESCE ( + 76, - AVG ( 39 ) ), - COUNT ( * ) + - + 9 ) / + + 96 col1
----
0

query I rowsort
SELECT 56 * + - 10 AS col1
----
-560

query I rowsort
SELECT 46 * 7
----
322

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

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

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

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

query I rowsort
SELECT ALL + 64 * - 51 + 8 * + 25 AS col2
----
-3064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT - CAST( COALESCE ( + - 60, - 45 - + 36 / - 88, - - 73 ) AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT - CAST ( COALESCE ( + - 60, - 45 - + 36 / - 88, - - 73 ) AS INTEGER ) AS col1
----
60

query I rowsort
SELECT ALL 76 * COALESCE ( - - 28, + + 47 ) + 28
----
2156

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

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

query II rowsort
SELECT ALL - 10 AS col1, - 75 AS col0
----
-10
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7450
SELECT DISTINCT 69 * - - 0 + + CAST( 6 AS SIGNED ), 62 * ( + 75 ) * + 31 AS col2
----
6
144150

skipif mysql # not compatible
query II rowsort label-7450
SELECT DISTINCT 69 * - - 0 + + CAST ( 6 AS INTEGER ), 62 * ( + 75 ) * + 31 AS col2
----
6
144150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL COUNT( * ) * COUNT( * ) + - 54 + + COUNT( * ) * - ( + 67 )
----
-120

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL COUNT ( * ) * COUNT ( * ) + - 54 + + COUNT ( * ) * - ( + 67 )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL 13 * 44 + - 46 * - COUNT( * )
----
618

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL 13 * 44 + - 46 * - COUNT ( * )
----
618

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT + CASE + - COUNT( * ) WHEN - - 1 THEN 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT + CASE + - COUNT ( * ) WHEN - - 1 THEN 52 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL - CASE + + 8 WHEN - + ( 74 ) / + COUNT( * ) + + + 71 + + 84 THEN - 70 WHEN + + 7 THEN 46 ELSE NULL END * 98 + 89 + + 15 * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL - CASE + + 8 WHEN - + ( 74 ) / + COUNT ( * ) + + + 71 + + 84 THEN - 70 WHEN + + 7 THEN 46 ELSE NULL END * 98 + 89 + + 15 * 84 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL 6 - + - 80 + + 27 * + COALESCE ( + - 37, COUNT( * ) + 31 )
----
-913

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL 6 - + - 80 + + 27 * + COALESCE ( + - 37, COUNT ( * ) + 31 )
----
-913

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT 45 * + + 66 * - SUM( + 60 ) * + + 88 AS col1
----
-15681600

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT 45 * + + 66 * - SUM ( + 60 ) * + + 88 AS col1
----
-15681600

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT - - 62 + - SUM( - + 63 )
----
125

skipif mysql # not compatible
query I rowsort label-7459
SELECT - - 62 + - SUM ( - + 63 )
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT + - 34 + + 75 * + 44 * COUNT( * ), + COUNT( * ) * - 49 * - 57 AS col2
----
3266
2793

skipif mysql # not compatible
query II rowsort label-7460
SELECT + - 34 + + 75 * + 44 * COUNT ( * ), + COUNT ( * ) * - 49 * - 57 AS col2
----
3266
2793

onlyif mysql # aggregate syntax: 
query II rowsort label-7461
SELECT + 60 * - + 93, COUNT( * ) AS col0
----
-5580
1

skipif mysql # not compatible
query II rowsort label-7461
SELECT + 60 * - + 93, COUNT ( * ) AS col0
----
-5580
1

query II rowsort
SELECT 74 AS col1, - 31 + - 18 AS col1
----
74
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT + - CAST( + 75 AS SIGNED ) + + + 12 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7463
SELECT + - CAST ( + 75 AS INTEGER ) + + + 12 AS col0
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT ALL - - COUNT( * ) * 76 * + 35
----
2660

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL - - COUNT ( * ) * 76 * + 35
----
2660

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

query I rowsort
SELECT DISTINCT 75 * + - 57 AS col1
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT DISTINCT CASE COUNT( * ) WHEN + 26 * + 27 THEN ( 23 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT CASE COUNT ( * ) WHEN + 26 * + 27 THEN ( 23 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 21 + 42
----
21

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

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

query I rowsort
SELECT - 33 + + 45 + - 88 + + 90
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT - 37 + - COALESCE ( - 32, + SUM( 95 ) + + - 78 + + - COALESCE ( - 68, - - 20 ) ) * - ( - 30 ) * - 27
----
-25957

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - 37 + - COALESCE ( - 32, + SUM ( 95 ) + + - 78 + + - COALESCE ( - 68, - - 20 ) ) * - ( - 30 ) * - 27
----
-25957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7473
SELECT ALL CASE - 27 WHEN + - CAST( NULL AS SIGNED ) * + 62 + 58 - + COUNT( + 35 ) THEN + 70 WHEN + - 86 THEN + 67 WHEN - ( 14 ) * + 9 + + 67 / + + 16 + + + ( + 9 ) + 25 * 60 / 45 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL CASE - 27 WHEN + - CAST ( NULL AS INTEGER ) * + 62 + 58 - + COUNT ( + 35 ) THEN + 70 WHEN + - 86 THEN + 67 WHEN - ( 14 ) * + 9 + + 67 / + + 16 + + + ( + 9 ) + 25 * 60 / 45 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 91 - - 90 * - + 74
----
-6569

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT DISTINCT COUNT( DISTINCT - 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT COUNT ( DISTINCT - 11 ) AS col0
----
1

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

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

query I rowsort
SELECT ALL - 20 + + NULLIF ( + 60, - 51 ) + + 73 * - - 93
----
6829

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

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

query II rowsort
SELECT ALL 67 * - 78 AS col0, 52 AS col2
----
-5226
52

query I rowsort
SELECT DISTINCT 65 * 54 + - + 87 - - 75 * - + 25 AS col2
----
1548

query I rowsort
SELECT ALL + 48 * + 49
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT + COUNT( * ) + - MIN( DISTINCT + 89 ) - 25 col1
----
-113

skipif mysql # not compatible
query I rowsort label-7483
SELECT + COUNT ( * ) + - MIN ( DISTINCT + 89 ) - 25 col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL 40 * 21 * COUNT( * ) - + - ( 5 ) col2
----
845

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL 40 * 21 * COUNT ( * ) - + - ( 5 ) col2
----
845

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

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

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

query I rowsort
SELECT ALL - 75 * - - 66
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT + - NULLIF ( + 70, - ( - AVG ( - 22 ) ) + + - 24 * + 7 * + - 18 + - - 8 * + MIN( 77 ) + - 80 + - 21 ) * - 55 + - + COUNT( * ) + - + ( + 81 ) + 61 + 36 * 49 AS col2
----
5593

skipif mysql # not compatible
query I rowsort label-7488
SELECT + - NULLIF ( + 70, - ( - AVG ( - 22 ) ) + + - 24 * + 7 * + - 18 + - - 8 * + MIN ( 77 ) + - 80 + - 21 ) * - 55 + - + COUNT ( * ) + - + ( + 81 ) + 61 + 36 * 49 AS col2
----
5593

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7489
SELECT - - COUNT( * ) * + - 11 + - 36 DIV - - 12
----
-14

skipif mysql # not compatible
query I rowsort label-7489
SELECT - - COUNT ( * ) * + - 11 + - 36 / - - 12
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + MAX( + 30 ) + + 3 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7490
SELECT + MAX ( + 30 ) + + 3 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT + 78 * + + MAX( ALL + 9 ) AS col0
----
702

skipif mysql # not compatible
query I rowsort label-7491
SELECT + 78 * + + MAX ( ALL + 9 ) AS col0
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL ( 0 ) * + 88 + - 32 - - 9 * + COALESCE ( - 20, + NULLIF ( CASE - + MAX( ALL + 37 ) WHEN COUNT( * ) * 74 + - + 66 * + 90 THEN - - 78 * 58 WHEN - 65 THEN + ( 65 ) WHEN + 15 THEN NULL ELSE + 6 END, + 35 * 45 ), - 29 + - 85 ) + - 69
----
-281

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL ( 0 ) * + 88 + - 32 - - 9 * + COALESCE ( - 20, + NULLIF ( CASE - + MAX ( ALL + 37 ) WHEN COUNT ( * ) * 74 + - + 66 * + 90 THEN - - 78 * 58 WHEN - 65 THEN + ( 65 ) WHEN + 15 THEN NULL ELSE + 6 END, + 35 * 45 ), - 29 + - 85 ) + - 69
----
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + + COUNT( * ) + - + 66 - - - 64 + 96
----
-33

skipif mysql # not compatible
query I rowsort label-7493
SELECT + + COUNT ( * ) + - + 66 - - - 64 + 96
----
-33

query I rowsort
SELECT ALL + ( + + 43 ) col2
----
43

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

skipif mysql # not compatible
query I rowsort label-7495
SELECT + + 0 * - - COUNT ( * ) * + 58 / + ( - + 53 ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT + 37 + + MIN( + - 94 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7497
SELECT + 37 + + MIN ( + - 94 ) AS col2
----
-57

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( 67, 89 ) * + - 90 AS col1
----
-6030

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL - 57 * - 13 * + COUNT( * ) * 31 + - 4 AS col1
----
22967

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL - 57 * - 13 * + COUNT ( * ) * 31 + - 4 AS col1
----
22967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7502
SELECT + - 73 * - CAST( ( - 37 ) AS SIGNED ) * 24
----
-64824

skipif mysql # not compatible
query I rowsort label-7502
SELECT + - 73 * - CAST ( ( - 37 ) AS INTEGER ) * 24
----
-64824

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

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL CAST ( + + 9 AS INTEGER ) + + CAST ( + - AVG ( DISTINCT - - 7 ) AS INTEGER ) - + COUNT ( * )
----
1

query I rowsort
SELECT + 16 * - 1
----
-16

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-7506
SELECT ALL 3 + 8 * - 21 AS col2, 18, COUNT( * ) AS col2
----
-165
18
1

skipif mysql # not compatible
query III rowsort label-7506
SELECT ALL 3 + 8 * - 21 AS col2, 18, COUNT ( * ) AS col2
----
-165
18
1

query II rowsort
SELECT - 6 AS col0, 88
----
-6
88

query II rowsort
SELECT 18 col0, - 74 AS col2
----
18
-74

query I rowsort
SELECT ALL + 88 + 54 col1
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7510
SELECT + MIN( ALL 15 ) * + 47 / - + MAX( DISTINCT - + 10 ) + + 74 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT + MIN ( ALL 15 ) * + 47 / - + MAX ( DISTINCT - + 10 ) + + 74 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 15 + - - 32
----
17

query II rowsort
SELECT - 16 col1, 56
----
-16
56

query I rowsort
SELECT DISTINCT 2 + - NULLIF ( 4, + - 98 ) AS col2
----
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT DISTINCT + 70 + 44 + - 66 DIV - 45
----
115

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT + 70 + 44 + - 66 / - 45
----
115

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7517
SELECT - CAST( NULL AS SIGNED ) AS col0, ( - ( + COALESCE ( 94, + - COUNT( * ) ) ) ) + COUNT( * ) AS col0
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-7517
SELECT - CAST ( NULL AS INTEGER ) AS col0, ( - ( + COALESCE ( 94, + - COUNT ( * ) ) ) ) + COUNT ( * ) AS col0
----
NULL
-93

query II rowsort
SELECT - 80 AS col1, + 88 AS col1
----
-80
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT + NULLIF ( - 47, + 25 * - NULLIF ( + - 87, NULLIF ( - COUNT( * ), + 31 * + COUNT( * ) ) ) * - 25 * + ( - - COALESCE ( + + 52, - ( + + COUNT( * ) ) ) ) ) * - - COUNT( * ) * 98 AS col0
----
-4606

skipif mysql # not compatible
query I rowsort label-7519
SELECT + NULLIF ( - 47, + 25 * - NULLIF ( + - 87, NULLIF ( - COUNT ( * ), + 31 * + COUNT ( * ) ) ) * - 25 * + ( - - COALESCE ( + + 52, - ( + + COUNT ( * ) ) ) ) ) * - - COUNT ( * ) * 98 AS col0
----
-4606

query I rowsort
SELECT - 25 * + COALESCE ( + 52, + 43 + 95 - + 42 * 68 + - - 69 ) col2
----
-1300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT - 96 + - 45 * - COUNT( * ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7523
SELECT - 96 + - 45 * - COUNT ( * ) AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT + ( + 8 ) * COUNT( * ) + - 22 / + - 19 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT + ( + 8 ) * COUNT ( * ) + - 22 / + - 19 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL COUNT ( * ) / + - MAX ( - 69 ) - - 37 - + 76
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT ALL + + 45 DIV MIN( ALL + ( - 2 ) ) - - - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL + + 45 / MIN ( ALL + ( - 2 ) ) - - - COUNT ( * ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT DISTINCT + - 79 * + 3 * + COUNT( * ) AS col2, ( - 3 ) * + - 38 * + ( + COALESCE ( 5, - CASE - 27 WHEN + NULLIF ( 94, - - 25 ) THEN + 30 ELSE 98 END * + 33 + COUNT( * ), 12 / ( 42 ) ) ) * CASE + 21 WHEN - 5 + - 22 THEN COUNT( * ) + + 54 * COUNT( * ) ELSE NULL END AS col0
----
-237
NULL

skipif mysql # not compatible
query II rowsort label-7527
SELECT DISTINCT + - 79 * + 3 * + COUNT ( * ) AS col2, ( - 3 ) * + - 38 * + ( + COALESCE ( 5, - CASE - 27 WHEN + NULLIF ( 94, - - 25 ) THEN + 30 ELSE 98 END * + 33 + COUNT ( * ), 12 / ( 42 ) ) ) * CASE + 21 WHEN - 5 + - 22 THEN COUNT ( * ) + + 54 * COUNT ( * ) ELSE NULL END AS col0
----
-237
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7528
SELECT DISTINCT - + 62 DIV + CAST( COUNT( + - 37 ) AS SIGNED ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT - + 62 / + CAST ( COUNT ( + - 37 ) AS INTEGER ) col0
----
-62

query I rowsort
SELECT ALL - 84 * - 14
----
1176

query I rowsort
SELECT - 58 * NULLIF ( ( 88 ), 93 * - 78 ) - + COALESCE ( + 28, - 20 + 5 ) AS col1
----
-5132

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL - + NULLIF ( 80, - ( MIN( DISTINCT - 24 ) ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - + NULLIF ( 80, - ( MIN ( DISTINCT - 24 ) ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT + 42 + + COUNT( * ) * - 56 AS col0, 2 + - + 53 AS col2
----
-14
-51

skipif mysql # not compatible
query II rowsort label-7532
SELECT + 42 + + COUNT ( * ) * - 56 AS col0, 2 + - + 53 AS col2
----
-14
-51

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7534
SELECT + 24 AS col0, - MIN( DISTINCT 13 )
----
24
-13

skipif mysql # not compatible
query II rowsort label-7534
SELECT + 24 AS col0, - MIN ( DISTINCT 13 )
----
24
-13

query I rowsort
SELECT DISTINCT + - 7 * + 69 AS col2
----
-483

query I rowsort
SELECT ALL - - 45 + + 76 + + 21 * + 56 + 17
----
1314

query I rowsort
SELECT ALL - - 9 col2
----
9

query I rowsort
SELECT + + 25 col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL + MIN( DISTINCT + 90 ) + + + 33 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL + MIN ( DISTINCT + 90 ) + + + 33 AS col2
----
123

query I rowsort
SELECT ALL + 8 + + 57
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT DISTINCT 36 + - + 11 + + - CAST( NULL AS SIGNED ) / COALESCE ( + 58, + CAST( NULL AS SIGNED ) * - 28, - 36, 97 ) * 40 * + 87 / 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT 36 + - + 11 + + - CAST ( NULL AS INTEGER ) / COALESCE ( + 58, + CAST ( NULL AS INTEGER ) * - 28, - 36, 97 ) * 40 * + 87 / 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT COUNT( * ) + 82 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7542
SELECT COUNT ( * ) + 82 AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7543
SELECT DISTINCT 45 * - 17, 42 * + NULLIF ( + 12, - - COALESCE ( + - 39, + - MIN( DISTINCT - + 83 ) ) * - 60 * + ( - COUNT( * ) ) / + 21 * 66 + + 86 ) * - - 62 * - 41 - + 29 + + + 46 AS col0
----
-765
-1281151

skipif mysql # not compatible
query II rowsort label-7543
SELECT DISTINCT 45 * - 17, 42 * + NULLIF ( + 12, - - COALESCE ( + - 39, + - MIN ( DISTINCT - + 83 ) ) * - 60 * + ( - COUNT ( * ) ) / + 21 * 66 + + 86 ) * - - 62 * - 41 - + 29 + + + 46 AS col0
----
-765
-1281151

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT 49 + - MIN( 74 )
----
-25

skipif mysql # not compatible
query I rowsort label-7545
SELECT 49 + - MIN ( 74 )
----
-25

query I rowsort
SELECT ALL 97 + - 58
----
39

query I rowsort
SELECT DISTINCT - 74 * - + CASE + + 4 WHEN - ( - 70 ) * - 16 + + 90 + - - 98 * - 46 * + 22 THEN + - 64 * COALESCE ( - 7, - 5 - + 41 + - 76 ) END
----
NULL

query I rowsort
SELECT ALL 44 * - - 54 AS col0
----
2376

query I rowsort
SELECT DISTINCT 3 - + - 45 + - 92
----
-44

query I rowsort
SELECT ( - 13 ) + - 39
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT ALL 38 - - 58 DIV - 47 + + 82 + - 87 - 50
----
-18

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL 38 - - 58 / - 47 + + 82 + - 87 - 50
----
-18

query I rowsort
SELECT 94 + - 85 col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT 3 + + 62 DIV - ( - - 65 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7553
SELECT 3 + + 62 / - ( - - 65 ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT DISTINCT 49 - - CAST( - 4 AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT 49 - - CAST ( - 4 AS INTEGER ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL - + ( + 71 ) AS col2, - SUM( DISTINCT + 30 )
----
-71
-30

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL - + ( + 71 ) AS col2, - SUM ( DISTINCT + 30 )
----
-71
-30

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

query I rowsort
SELECT ALL - 44 * 41 AS col1
----
-1804

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT ALL - + 85 * - COALESCE ( + + ( - - ( 6 ) ), + 85 * - 91 + - 4 * - + 41 DIV + - 9, 36 )
----
510

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - + 85 * - COALESCE ( + + ( - - ( 6 ) ), + 85 * - 91 + - 4 * - + 41 / + - 9, 36 )
----
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7559
SELECT - 1 * - + 58 + + 68 + + 45 AS col1, - 71 DIV + MIN( 19 )
----
171
-3

skipif mysql # not compatible
query II rowsort label-7559
SELECT - 1 * - + 58 + + 68 + + 45 AS col1, - 71 / + MIN ( 19 )
----
171
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL 23 + - COUNT( * ) - + SUM( + ( - ( - 34 ) ) )
----
-12

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL 23 + - COUNT ( * ) - + SUM ( + ( - ( - 34 ) ) )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT ALL - + 9 + + 70 * 97 + - + 31, - COUNT( ALL - 83 ) * + 38 * 21 + - 64 * + 86 AS col0
----
6750
-6302

skipif mysql # not compatible
query II rowsort label-7561
SELECT ALL - + 9 + + 70 * 97 + - + 31, - COUNT ( ALL - 83 ) * + 38 * 21 + - 64 * + 86 AS col0
----
6750
-6302

onlyif mysql # aggregate syntax: 
query II rowsort label-7562
SELECT 25 + + ( - + COUNT( * ) ) - 91 AS col2, COUNT( * ) + - COUNT( * ) AS col0
----
-67
0

skipif mysql # not compatible
query II rowsort label-7562
SELECT 25 + + ( - + COUNT ( * ) ) - 91 AS col2, COUNT ( * ) + - COUNT ( * ) AS col0
----
-67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + ( CASE + - 74 WHEN + 77 THEN + 40 ELSE COUNT( * ) END ) * + + 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7563
SELECT + ( CASE + - 74 WHEN + 77 THEN + 40 ELSE COUNT ( * ) END ) * + + 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL - - COUNT( * ) * - + 57 + + 11 * 52 * - + 20
----
-11497

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL - - COUNT ( * ) * - + 57 + + 11 * 52 * - + 20
----
-11497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT ALL - AVG ( + 78 ) + - CAST( NULL AS SIGNED ) + - 67 * 55 * - NULLIF ( - - ( - - 38 ), + + 70 + 49 + - 54 ) / - COALESCE ( + 73, - 71 ) * + 60 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - AVG ( + 78 ) + - CAST ( NULL AS INTEGER ) + - 67 * 55 * - NULLIF ( - - ( - - 38 ), + + 70 + 49 + - 54 ) / - COALESCE ( + 73, - 71 ) * + 60 + 84
----
NULL

query I rowsort
SELECT 4 * - 2 * 90 AS col0
----
-720

query I rowsort
SELECT ALL + - ( 96 ) * + + 28 AS col1
----
-2688

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7569
SELECT ALL - 15 + - + 21 * + 12, 65 * - COUNT( * ) * - - 96 AS col1
----
-267
-6240

skipif mysql # not compatible
query II rowsort label-7569
SELECT ALL - 15 + - + 21 * + 12, 65 * - COUNT ( * ) * - - 96 AS col1
----
-267
-6240

query I rowsort
SELECT ALL - ( - 66 ) * + 16 AS col2
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT DISTINCT - 70 - 69 + + + ( - 65 ) * + NULLIF ( 57, - 65 / - COUNT( * ) * + COALESCE ( + 76, + ( + + 56 ) ) * 90 / - - 43 + 76 + + 7 + + + 3 )
----
-3844

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT - 70 - 69 + + + ( - 65 ) * + NULLIF ( 57, - 65 / - COUNT ( * ) * + COALESCE ( + 76, + ( + + 56 ) ) * 90 / - - 43 + 76 + + 7 + + + 3 )
----
-3844

query I rowsort
SELECT 55 * - 8
----
-440

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT DISTINCT NULLIF ( - 89, + COUNT( * ) ), - 49 * + 52 AS col2
----
-89
-2548

skipif mysql # not compatible
query II rowsort label-7573
SELECT DISTINCT NULLIF ( - 89, + COUNT ( * ) ), - 49 * + 52 AS col2
----
-89
-2548

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

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

query I rowsort
SELECT ALL 90 * COALESCE ( - + 44, + 72, - 89 ) AS col0
----
-3960

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7576
SELECT 10 DIV CAST( - COALESCE ( - ( - 4 ), - ( - - 4 ) ) AS SIGNED ) * + 56 AS col1, 36
----
-112
36

skipif mysql # not compatible
query II rowsort label-7576
SELECT 10 / CAST ( - COALESCE ( - ( - 4 ), - ( - - 4 ) ) AS INTEGER ) * + 56 AS col1, 36
----
-112
36

query I rowsort
SELECT ALL 8 * - 59 AS col0
----
-472

query II rowsort
SELECT - 78 AS col1, 20 AS col0
----
-78
20

query I rowsort
SELECT ALL - 26 * - - 31 AS col0
----
-806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7580
SELECT DISTINCT CASE - - CAST( 21 AS SIGNED ) WHEN 62 THEN + 43 / + + COUNT( * ) ELSE NULL END AS col2, NULLIF ( - - 82, + + 90 + - 54 * - NULLIF ( + SUM( ALL + 10 ), ( + 88 ) ) ) * + + 47 + + 24 + COUNT( * ) * + 72 * - 12 AS col2
----
NULL
3014

skipif mysql # not compatible
query II rowsort label-7580
SELECT DISTINCT CASE - - CAST ( 21 AS INTEGER ) WHEN 62 THEN + 43 / + + COUNT ( * ) ELSE NULL END AS col2, NULLIF ( - - 82, + + 90 + - 54 * - NULLIF ( + SUM ( ALL + 10 ), ( + 88 ) ) ) * + + 47 + + 24 + COUNT ( * ) * + 72 * - 12 AS col2
----
NULL
3014

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7581
SELECT DISTINCT 37 col0, 17 * 34 AS col0, + + COUNT( * ) DIV - - 57
----
37
578
0

skipif mysql # not compatible
query III rowsort label-7581
SELECT DISTINCT 37 col0, 17 * 34 AS col0, + + COUNT ( * ) / - - 57
----
37
578
0

query I rowsort
SELECT DISTINCT 89 * 2 * 87 * - + 61 AS col1
----
-944646

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT + 53 DIV + 8
----
6

skipif mysql # not compatible
query I rowsort label-7585
SELECT + 53 / + 8
----
6

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

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

skipif mysql # not compatible
query II rowsort label-7587
SELECT - 52, - CAST ( NULL AS REAL ) AS col0
----
-52
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7588
SELECT + COUNT( * ) + - 66 + - CAST( 10 AS SIGNED ) + 14 * - 99
----
-1461

skipif mysql # not compatible
query I rowsort label-7588
SELECT + COUNT ( * ) + - 66 + - CAST ( 10 AS INTEGER ) + 14 * - 99
----
-1461

query II rowsort
SELECT ALL + + 50, + 83 AS col2
----
50
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT DISTINCT - + COUNT( * ) * - + NULLIF ( - + COUNT( * ), + - 42 ) + + + COALESCE ( 97, + - COUNT( * ) ) * - 5
----
-486

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT - + COUNT ( * ) * - + NULLIF ( - + COUNT ( * ), + - 42 ) + + + COALESCE ( 97, + - COUNT ( * ) ) * - 5
----
-486

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

query I rowsort
SELECT ALL + 66 * - 55 + - - 67 AS col1
----
-3563

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + + 77 - + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7593
SELECT + + 77 - + COUNT ( * ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7594
SELECT ALL COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) ) * 6 * + 79 * 14 AS col0
----
6636

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) * 6 * + 79 * 14 AS col0
----
6636

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

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

query I rowsort
SELECT + + 2 * 39 * 25 + - 45
----
1905

query I rowsort
SELECT DISTINCT + 38 * 85 AS col0
----
3230

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7598
SELECT - - COALESCE ( - NULLIF ( + - ( + ( - 85 ) ), 99 / 53 ), - CASE 77 WHEN COUNT( * ) THEN - COUNT( * ) - - 95 WHEN COUNT( * ) / - + COUNT( * ) * 66 THEN NULL END * + + 60 - - 61 ) * - NULLIF ( - CAST( NULL AS DECIMAL ), - ( - COUNT( * ) ) - + COUNT( * ) ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT - - COALESCE ( - NULLIF ( + - ( + ( - 85 ) ), 99 / 53 ), - CASE 77 WHEN COUNT ( * ) THEN - COUNT ( * ) - - 95 WHEN COUNT ( * ) / - + COUNT ( * ) * 66 THEN NULL END * + + 60 - - 61 ) * - NULLIF ( - CAST ( NULL AS REAL ), - ( - COUNT ( * ) ) - + COUNT ( * ) ) - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT + - 0 DIV - 10 + + 44 + + 80 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-7599
SELECT + - 0 / - 10 + + 44 + + 80 AS col2
----
124

query I rowsort
SELECT - - 94 * + 2
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT DISTINCT + COALESCE ( 83, + 35, + COALESCE ( - 20, - - MIN( DISTINCT 42 ), ( + NULLIF ( - CASE + + MAX( ALL 15 ) WHEN + ( + + CASE 76 WHEN + 55 THEN - CAST( NULL AS SIGNED ) * 40 WHEN + 18 THEN NULL ELSE NULL END ) THEN NULL WHEN - + 30 THEN + ( + 30 ) * ( + 67 ) ELSE + 18 + + COUNT( * ) END, + 18 + 26 ) ) ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + COALESCE ( 83, + 35, + COALESCE ( - 20, - - MIN ( DISTINCT 42 ), ( + NULLIF ( - CASE + + MAX ( ALL 15 ) WHEN + ( + + CASE 76 WHEN + 55 THEN - CAST ( NULL AS INTEGER ) * 40 WHEN + 18 THEN NULL ELSE NULL END ) THEN NULL WHEN - + 30 THEN + ( + 30 ) * ( + 67 ) ELSE + 18 + + COUNT ( * ) END, + 18 + 26 ) ) ) ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT ALL + 44 * - CASE - + 94 WHEN COUNT( * ) * 90 * COUNT( * ) * - 44 * + 30 THEN NULLIF ( - + 6, - 43 ) * - 50 + + 8 ELSE NULL END + + 36 - + - 98 * + - CASE + + 40 WHEN + 55 THEN NULL WHEN - COUNT( * ) * + + CAST( NULL AS SIGNED ) * COUNT( * ) THEN + 6 ELSE NULL END + - COUNT( * ) * - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL + 44 * - CASE - + 94 WHEN COUNT ( * ) * 90 * COUNT ( * ) * - 44 * + 30 THEN NULLIF ( - + 6, - 43 ) * - 50 + + 8 ELSE NULL END + + 36 - + - 98 * + - CASE + + 40 WHEN + 55 THEN NULL WHEN - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN + 6 ELSE NULL END + - COUNT ( * ) * - 67 AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7605
SELECT DISTINCT + 1 AS col2, MIN( 68 ) col0
----
1
68

skipif mysql # not compatible
query II rowsort label-7605
SELECT DISTINCT + 1 AS col2, MIN ( 68 ) col0
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT COUNT( * ) * + ( 12 ) * - 79 - + + COUNT( * ) * + 21 col1
----
-969

skipif mysql # not compatible
query I rowsort label-7606
SELECT COUNT ( * ) * + ( 12 ) * - 79 - + + COUNT ( * ) * + 21 col1
----
-969

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7608
SELECT + COUNT( * ) DIV + + COUNT( * ), + 72 AS col1
----
1
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT + ( + MIN( DISTINCT - 85 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7609
SELECT + ( + MIN ( DISTINCT - 85 ) ) AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7610
SELECT ALL - 57 * 32 col1, - COUNT( - 87 ) / - + 69 * + CAST( NULL AS SIGNED ) + + + 11
----
-1824
NULL

skipif mysql # not compatible
query II rowsort label-7610
SELECT ALL - 57 * 32 col1, - COUNT ( - 87 ) / - + 69 * + CAST ( NULL AS INTEGER ) + + + 11
----
-1824
NULL

query I rowsort
SELECT - 26 * + - 56 col1
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT - 85 * SUM( ALL 7 )
----
-595

skipif mysql # not compatible
query I rowsort label-7612
SELECT - 85 * SUM ( ALL 7 )
----
-595

query I rowsort
SELECT - 2 - 41
----
-43

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT - 73 + - + ( NULLIF ( + 62, + 17 * 52 ) ) DIV + ( + - 33 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7616
SELECT - 73 + - + ( NULLIF ( + 62, + 17 * 52 ) ) / + ( + - 33 ) AS col1
----
-72

query I rowsort
SELECT ALL - 57 * + 27 AS col0
----
-1539

query I rowsort
SELECT - 90 * - 9 col1
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7619
SELECT - CAST( NULL AS SIGNED ) + + - 65 AS col0, - CASE 77 WHEN - 47 + - - 29 THEN NULL WHEN - 31 * COUNT( * ) * + 3 THEN COUNT( * ) * + + 11 + + 59 * + 75 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7619
SELECT - CAST ( NULL AS INTEGER ) + + - 65 AS col0, - CASE 77 WHEN - 47 + - - 29 THEN NULL WHEN - 31 * COUNT ( * ) * + 3 THEN COUNT ( * ) * + + 11 + + 59 * + 75 END
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7620
SELECT ALL CAST( - 83 AS SIGNED ), + 48 AS col1
----
-83
48

skipif mysql # not compatible
query II rowsort label-7620
SELECT ALL CAST ( - 83 AS INTEGER ), + 48 AS col1
----
-83
48

query I rowsort
SELECT - 43 + + 88
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT DISTINCT - COUNT( * ) + + + NULLIF ( 74, - - 87 * + CASE + 27 WHEN + CASE + - 15 WHEN + + 55 THEN + 33 WHEN + - ( 89 ) THEN NULL END THEN - 42 WHEN + - 95 * - 50 * 62 + - COUNT( * ) * + MAX( ALL + 79 ) / 69 + + 45 - + 78 / 84 THEN + ( 19 ) - - 30 END ) + 84 * - 14
----
-1103

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT - COUNT ( * ) + + + NULLIF ( 74, - - 87 * + CASE + 27 WHEN + CASE + - 15 WHEN + + 55 THEN + 33 WHEN + - ( 89 ) THEN NULL END THEN - 42 WHEN + - 95 * - 50 * 62 + - COUNT ( * ) * + MAX ( ALL + 79 ) / 69 + + 45 - + 78 / 84 THEN + ( 19 ) - - 30 END ) + 84 * - 14
----
-1103

query II rowsort
SELECT 20 AS col0, 21 * - - 25 * + 21 * + 44
----
20
485100

query I rowsort
SELECT DISTINCT + 49 + - 58 * - 43 + 36 * - 9
----
2219

onlyif mysql # DIV for integer division: 
query II rowsort label-7626
SELECT ALL - - 43 + + 98 col0, + 21 DIV + 56
----
141
0

skipif mysql # not compatible
query II rowsort label-7626
SELECT ALL - - 43 + + 98 col0, + 21 / + 56
----
141
0

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

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

query I rowsort
SELECT + 56 + 42 * - - 34
----
1484

onlyif mysql # aggregate syntax: 
query II rowsort label-7629
SELECT - + COUNT( * ) AS col1, - ( + ( + 90 ) ) * - CASE 45 WHEN 32 THEN + 13 WHEN 29 * + ( + - 58 ) THEN NULL ELSE - 41 END + ( + COUNT( * ) )
----
-1
-3689

skipif mysql # not compatible
query II rowsort label-7629
SELECT - + COUNT ( * ) AS col1, - ( + ( + 90 ) ) * - CASE 45 WHEN 32 THEN + 13 WHEN 29 * + ( + - 58 ) THEN NULL ELSE - 41 END + ( + COUNT ( * ) )
----
-1
-3689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT DISTINCT + 78 + NULLIF ( + + 79, + - 46 ) - + + CAST( NULL AS SIGNED ) / - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT + 78 + NULLIF ( + + 79, + - 46 ) - + + CAST ( NULL AS INTEGER ) / - 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - + 72 * - - SUM( + - 45 ) + 97 + - COUNT( ALL 40 ) * + 90 * + - COUNT( * ) AS col1
----
3427

skipif mysql # not compatible
query I rowsort label-7631
SELECT - + 72 * - - SUM ( + - 45 ) + 97 + - COUNT ( ALL 40 ) * + 90 * + - COUNT ( * ) AS col1
----
3427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT ALL + CAST( 63 AS SIGNED ) + CAST( - 64 AS SIGNED ) - + + 17
----
-18

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL + CAST ( 63 AS INTEGER ) + CAST ( - 64 AS INTEGER ) - + + 17
----
-18

query II rowsort
SELECT DISTINCT 37 AS col2, + 42 col1
----
37
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT MIN( 85 ) + - 3
----
82

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT MIN ( 85 ) + - 3
----
82

query I rowsort
SELECT ALL ( - 83 ) + - 77
----
-160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7636
SELECT COUNT( * ) AS col2, COUNT( * ) DIV - 81 AS col2
----
1
0

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

query II rowsort
SELECT ALL - 75, 85 AS col0
----
-75
85

query I rowsort
SELECT ALL 75 + 30 col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT DISTINCT + 26 DIV + 74 + COUNT( * ) AS col2
----
1

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

query II rowsort
SELECT + + 45 * - 78, + 74 col0
----
-3510
74

query I rowsort
SELECT + + 40 * + 7
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT - - 54 * - COALESCE ( - 18, 76 ) + + ( - COUNT( * ) ) * - + NULLIF ( - - 52, - 27 )
----
1024

skipif mysql # not compatible
query I rowsort label-7642
SELECT - - 54 * - COALESCE ( - 18, 76 ) + + ( - COUNT ( * ) ) * - + NULLIF ( - - 52, - 27 )
----
1024

query I rowsort
SELECT + - 71 * - ( + - 52 )
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT 54 * - + 55 + ( CASE - 2 WHEN + + ( + 7 ) + - - 42 + - ( + 28 ) + 38 + 12 / - 91 THEN - COUNT( * ) ELSE + - ( - 86 ) + SUM( 73 ) * - MIN( DISTINCT - 64 ) * + 51 END ) * 49 AS col0
----
11676572

skipif mysql # not compatible
query I rowsort label-7644
SELECT 54 * - + 55 + ( CASE - 2 WHEN + + ( + 7 ) + - - 42 + - ( + 28 ) + 38 + 12 / - 91 THEN - COUNT ( * ) ELSE + - ( - 86 ) + SUM ( 73 ) * - MIN ( DISTINCT - 64 ) * + 51 END ) * 49 AS col0
----
11676572

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT + 64 * - + COALESCE ( - - 5, - COALESCE ( - 61, + 85 - - COUNT( * ) ) + + 22, - + 64 * + 64 - + + ( + + 24 ) ) * + COALESCE ( - + 44, - - 55 ) + + - ( - + 87 ) * + NULLIF ( NULLIF ( 5, - 12 ), - 89 ) + + 80
----
14595

skipif mysql # not compatible
query I rowsort label-7650
SELECT + 64 * - + COALESCE ( - - 5, - COALESCE ( - 61, + 85 - - COUNT ( * ) ) + + 22, - + 64 * + 64 - + + ( + + 24 ) ) * + COALESCE ( - + 44, - - 55 ) + + - ( - + 87 ) * + NULLIF ( NULLIF ( 5, - 12 ), - 89 ) + + 80
----
14595

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ( - NULLIF ( + MIN( DISTINCT + 27 ), + 85 + 90 * + 70 * 14 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-7652
SELECT ( - NULLIF ( + MIN ( DISTINCT + 27 ), + 85 + 90 * + 70 * 14 ) )
----
-27

query I rowsort
SELECT - 3 + - 32
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT - 61 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-7654
SELECT - 61 / - 50
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT DISTINCT + 80 DIV + 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT + 80 / + 37 AS col0
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-7656
SELECT 3 DIV - 59 col2, + ( - NULLIF ( 21, + - 38 ) ) AS col2
----
0
-21

skipif mysql # not compatible
query II rowsort label-7656
SELECT 3 / - 59 col2, + ( - NULLIF ( 21, + - 38 ) ) AS col2
----
0
-21

query I rowsort
SELECT 9 * - 26 AS col2
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL - 26 + 31 + - COUNT( * ) * - + 61 * + + 62
----
3787

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - 26 + 31 + - COUNT ( * ) * - + 61 * + + 62
----
3787

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7659
SELECT CAST( + + 79 AS SIGNED ) DIV 18 * + 90 AS col0
----
360

skipif mysql # not compatible
query I rowsort label-7659
SELECT CAST ( + + 79 AS INTEGER ) / 18 * + 90 AS col0
----
360

query I rowsort
SELECT ALL + 54 * + ( - - ( - 67 ) ) AS col2
----
-3618

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT CASE 90 WHEN + 31 THEN - - 67 + 22 WHEN + MIN( DISTINCT + 66 ) THEN NULL WHEN - - AVG ( ALL - - 30 ) * + + COUNT( DISTINCT - - 73 ) * + 6 / - + 11 + - 86 + + + 1 THEN NULL END AS col2, - 19 AS col2
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-7661
SELECT CASE 90 WHEN + 31 THEN - - 67 + 22 WHEN + MIN ( DISTINCT + 66 ) THEN NULL WHEN - - AVG ( ALL - - 30 ) * + + COUNT ( DISTINCT - - 73 ) * + 6 / - + 11 + - 86 + + + 1 THEN NULL END AS col2, - 19 AS col2
----
NULL
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7662
SELECT ALL - 65 * + + 36 + + NULLIF ( ( + 80 ), - - 89 * 48 ) AS col0, 7 + - COALESCE ( COALESCE ( 86, - 85 ), - ( - ( 78 ) ) - + 71, + + 80 + + - 84 + + - COUNT( * ) ) * - + 91 AS col1
----
-2260
7833

skipif mysql # not compatible
query II rowsort label-7662
SELECT ALL - 65 * + + 36 + + NULLIF ( ( + 80 ), - - 89 * 48 ) AS col0, 7 + - COALESCE ( COALESCE ( 86, - 85 ), - ( - ( 78 ) ) - + 71, + + 80 + + - 84 + + - COUNT ( * ) ) * - + 91 AS col1
----
-2260
7833

query I rowsort
SELECT DISTINCT - + 65 + - - NULLIF ( + - 64, - 30 ) AS col1
----
-129

query II rowsort
SELECT DISTINCT - + 48 * - 10 col1, + 99 AS col2
----
480
99

query I rowsort
SELECT DISTINCT - 74 + + - 47 col2
----
-121

query I rowsort
SELECT ALL + 15 + + - 89 + + 17 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7667
SELECT ALL + COUNT( * ) * + MAX( 50 ) AS col0, ( + - 49 )
----
50
-49

skipif mysql # not compatible
query II rowsort label-7667
SELECT ALL + COUNT ( * ) * + MAX ( 50 ) AS col0, ( + - 49 )
----
50
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7668
SELECT + COUNT( * ) - 81 + + - 65 AS col1, CAST( NULL AS SIGNED ) * - ( + - ( + - 79 ) ) / 57
----
-145
NULL

skipif mysql # not compatible
query II rowsort label-7668
SELECT + COUNT ( * ) - 81 + + - 65 AS col1, CAST ( NULL AS INTEGER ) * - ( + - ( + - 79 ) ) / 57
----
-145
NULL

query II rowsort
SELECT - ( + + 94 ), + 64 AS col1
----
-94
64

query I rowsort
SELECT DISTINCT - 13 + + 77 * 91 AS col0
----
6994

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL + 55 - - NULLIF ( + + 37, + + 21 * - 19 + AVG ( ALL - 12 ) - MAX( ALL 26 ) )
----
92

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + 55 - - NULLIF ( + + 37, + + 21 * - 19 + AVG ( ALL - 12 ) - MAX ( ALL 26 ) )
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-7672
SELECT ALL - + 35 - 50 AS col0, + 39 DIV + 4
----
-85
9

skipif mysql # not compatible
query II rowsort label-7672
SELECT ALL - + 35 - 50 AS col0, + 39 / + 4
----
-85
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT ( - 14 ) + + 36 DIV - 21
----
-15

skipif mysql # not compatible
query I rowsort label-7673
SELECT ( - 14 ) + + 36 / - 21
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT ALL + + COALESCE ( - + 74, - COALESCE ( + 45, + 35 DIV + 61 + 69 * + 9 + MAX( DISTINCT CASE + 41 WHEN + 16 * + 10 THEN 58 WHEN + 9 * 21 THEN NULL END ) ) * + 31 ) * + - 23 AS col2
----
1702

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL + + COALESCE ( - + 74, - COALESCE ( + 45, + 35 / + 61 + 69 * + 9 + MAX ( DISTINCT CASE + 41 WHEN + 16 * + 10 THEN 58 WHEN + 9 * 21 THEN NULL END ) ) * + 31 ) * + - 23 AS col2
----
1702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7675
SELECT ALL + 28 * + 27, 74 + - 21 + - CAST( + 77 AS SIGNED ) * - - 64 col1
----
756
-4875

skipif mysql # not compatible
query II rowsort label-7675
SELECT ALL + 28 * + 27, 74 + - 21 + - CAST ( + 77 AS INTEGER ) * - - 64 col1
----
756
-4875

query I rowsort
SELECT DISTINCT - - 19 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT 40 + - COUNT( * ) * + + 37 + - 68 + - - COUNT( * ) * - 18 * 83 + - + 87 * 26
----
-3821

skipif mysql # not compatible
query I rowsort label-7677
SELECT 40 + - COUNT ( * ) * + + 37 + - 68 + - - COUNT ( * ) * - 18 * 83 + - + 87 * 26
----
-3821

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

skipif mysql # not compatible
query I rowsort label-7678
SELECT COUNT ( * ) * + - 33 * + 57 AS col1
----
-1881

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT 75 + - + 33 DIV + 44 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7679
SELECT 75 + - + 33 / + 44 AS col1
----
75

query II rowsort
SELECT 53, - 87 AS col2
----
53
-87

query II rowsort
SELECT ALL - 49 AS col1, - 51 * - - 24 AS col1
----
-49
-1224

onlyif mysql # aggregate syntax: 
query II rowsort label-7682
SELECT 59, + ( + 31 ) + + COUNT( DISTINCT + CASE + 22 WHEN 27 - + 25 THEN + ( - 24 ) END ) AS col1
----
59
31

skipif mysql # not compatible
query II rowsort label-7682
SELECT 59, + ( + 31 ) + + COUNT ( DISTINCT + CASE + 22 WHEN 27 - + 25 THEN + ( - 24 ) END ) AS col1
----
59
31

query I rowsort
SELECT ALL - 94 + - 75
----
-169

query II rowsort
SELECT ALL - 55 AS col2, 81 * 18 AS col1
----
-55
1458

query I rowsort
SELECT DISTINCT - 26 col2
----
-26

query I rowsort
SELECT ( + - 46 ) * - 17 * + 57
----
44574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7687
SELECT ALL COUNT( * ) + + - ( - 52 ) DIV + 81 + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL COUNT ( * ) + + - ( - 52 ) / + 81 + + COUNT ( * ) AS col2
----
2

query II rowsort
SELECT + 29 AS col2, + 10
----
29
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT 95 * 0 * 81 + - + 87 + + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7689
SELECT 95 * 0 * 81 + - + 87 + + COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT ALL ( - 90 ) + + 50, + COUNT( DISTINCT - 30 ) AS col1
----
-40
1

skipif mysql # not compatible
query II rowsort label-7690
SELECT ALL ( - 90 ) + + 50, + COUNT ( DISTINCT - 30 ) AS col1
----
-40
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7691
SELECT 44 - - + 39 DIV - + 71 * - 18 * - - 3
----
44

skipif mysql # not compatible
query I rowsort label-7691
SELECT 44 - - + 39 / - + 71 * - 18 * - - 3
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT COUNT( * ) + + 66 * - ( MIN( + 31 ) ) AS col2
----
-2045

skipif mysql # not compatible
query I rowsort label-7692
SELECT COUNT ( * ) + + 66 * - ( MIN ( + 31 ) ) AS col2
----
-2045

query I rowsort
SELECT ALL 47 + - 41 + + - 24
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL - 19 + - 27 + + ( - - MAX( 45 ) ) + - ( - 89 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL - 19 + - 27 + + ( - - MAX ( 45 ) ) + - ( - 89 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT CASE + 57 WHEN - CAST( CASE COUNT( * ) WHEN CAST( + COALESCE ( + 94, + - ( - 54 ), - + 92 * + 92 ) AS SIGNED ) THEN NULL ELSE + MAX( ALL + 0 ) + - 67 END AS SIGNED ) THEN + COALESCE ( - 87, + 9, - + 90, - 11 + - 10 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT CASE + 57 WHEN - CAST ( CASE COUNT ( * ) WHEN CAST ( + COALESCE ( + 94, + - ( - 54 ), - + 92 * + 92 ) AS INTEGER ) THEN NULL ELSE + MAX ( ALL + 0 ) + - 67 END AS INTEGER ) THEN + COALESCE ( - 87, + 9, - + 90, - 11 + - 10 ) END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT DISTINCT - 28 * - 22 + 10 * + 1 DIV - 23 AS col0
----
616

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT - 28 * - 22 + 10 * + 1 / - 23 AS col0
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT 78 - - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT 78 - - COUNT ( * )
----
79

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7700
SELECT ALL - 84 - - 1 DIV 32, - COUNT( * ) AS col0
----
-84
-1

skipif mysql # not compatible
query II rowsort label-7700
SELECT ALL - 84 - - 1 / 32, - COUNT ( * ) AS col0
----
-84
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT 94 * - - MIN( + + 74 ) * - 16 AS col1
----
-111296

skipif mysql # not compatible
query I rowsort label-7701
SELECT 94 * - - MIN ( + + 74 ) * - 16 AS col1
----
-111296

query I rowsort
SELECT ALL + + 71 * + 58 AS col0
----
4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT ALL - 34 * CAST( NULL AS SIGNED ) * - COALESCE ( 40, 66, 99, + - 51 ) + + + 99 + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - 34 * CAST ( NULL AS INTEGER ) * - COALESCE ( 40, 66, 99, + - 51 ) + + + 99 + + 62
----
NULL

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

query II rowsort
SELECT + 16 * 8 * - 36 AS col1, + 23 col2
----
-4608
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT - NULLIF ( + + MIN( + 33 ), + + 79 * + + 20 )
----
-33

skipif mysql # not compatible
query I rowsort label-7707
SELECT - NULLIF ( + + MIN ( + 33 ), + + 79 * + + 20 )
----
-33

query II rowsort
SELECT - 82 * + ( + - 75 ) AS col0, 62 * + 63 * - + 96
----
6150
-374976

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

query II rowsort
SELECT DISTINCT - ( + 76 ), + 2 col1
----
-76
2

query II rowsort
SELECT 65 + - 97 AS col0, 49 AS col2
----
-32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT NULLIF ( 15, - NULLIF ( + - NULLIF ( - 5, 49 * 81 + - 34 - 79 * + + 73 - + CASE COUNT( + 26 ) WHEN - 83 THEN - NULLIF ( - 55, + 80 ) WHEN - + 93 THEN NULL ELSE NULL END ), - 7 ) ) - - + 5 + + + CASE 43 WHEN - 16 * - - 17 * 69 THEN - 42 ELSE 22 END + + 56 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7712
SELECT NULLIF ( 15, - NULLIF ( + - NULLIF ( - 5, 49 * 81 + - 34 - 79 * + + 73 - + CASE COUNT ( + 26 ) WHEN - 83 THEN - NULLIF ( - 55, + 80 ) WHEN - + 93 THEN NULL ELSE NULL END ), - 7 ) ) - - + 5 + + + CASE 43 WHEN - 16 * - - 17 * 69 THEN - 42 ELSE 22 END + + 56 AS col0
----
98

query I rowsort
SELECT DISTINCT - 14 * 40 + - - 66
----
-494

query I rowsort
SELECT ALL 44 * + 42 * + 92 * - 64 col1
----
-10881024

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT - 50 DIV - 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7715
SELECT - 50 / - 46 AS col0
----
1

query I rowsort
SELECT - 67 + - - 35 AS col2
----
-32

query I rowsort
SELECT ALL + NULLIF ( - + COALESCE ( + - 70, - 9 * - - 17 * + - 36 ), - - 34 - - - 76 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT 99 * + 84 DIV - ( + COUNT( + 59 ) ) + + 43 AS col2
----
-8273

skipif mysql # not compatible
query I rowsort label-7718
SELECT 99 * + 84 / - ( + COUNT ( + 59 ) ) + + 43 AS col2
----
-8273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7719
SELECT ALL - 3 * + 95 * CASE - 44 WHEN + 40 THEN NULL ELSE 14 END / CAST( NULL AS DECIMAL ) * - 44 + - COUNT( * ) col0, - NULLIF ( - 4, - 30 ) * + 89 + + 26 * + 32 * - 15
----
NULL
-12124

skipif mysql # not compatible
query II rowsort label-7719
SELECT ALL - 3 * + 95 * CASE - 44 WHEN + 40 THEN NULL ELSE 14 END / CAST ( NULL AS REAL ) * - 44 + - COUNT ( * ) col0, - NULLIF ( - 4, - 30 ) * + 89 + + 26 * + 32 * - 15
----
NULL
-12124

query I rowsort
SELECT - 31 * - 91 AS col1
----
2821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7721
SELECT - 55 * - NULLIF ( - CASE - COUNT( * ) WHEN 25 THEN NULL WHEN NULLIF ( + 27, - + 82 * 60 ) THEN NULL ELSE - ( - ( + 19 ) ) - + CAST( NULL AS SIGNED ) * - 48 END, + + 8 ) + + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT - 55 * - NULLIF ( - CASE - COUNT ( * ) WHEN 25 THEN NULL WHEN NULLIF ( + 27, - + 82 * 60 ) THEN NULL ELSE - ( - ( + 19 ) ) - + CAST ( NULL AS INTEGER ) * - 48 END, + + 8 ) + + 50 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT ALL 78 DIV 14 * + 10
----
50

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL 78 / 14 * + 10
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7723
SELECT - 84 / - CASE + 40 WHEN + + 5 * - 64 * CAST( NULL AS DECIMAL ) THEN 61 WHEN 70 THEN - + MIN( - 84 ) + + + 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT - 84 / - CASE + 40 WHEN + + 5 * - 64 * CAST ( NULL AS REAL ) THEN 61 WHEN 70 THEN - + MIN ( - 84 ) + + + 13 END AS col2
----
NULL

query I rowsort
SELECT + 90 + + 97 * - 69
----
-6603

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7727
SELECT DISTINCT + CAST( + 30 AS SIGNED ), - 99 DIV - COUNT( * ) AS col1
----
30
99

skipif mysql # not compatible
query II rowsort label-7727
SELECT DISTINCT + CAST ( + 30 AS INTEGER ), - 99 / - COUNT ( * ) AS col1
----
30
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL + MIN( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + MIN ( + 94 )
----
94

query I rowsort
SELECT ALL + 99 * 62
----
6138

query II rowsort
SELECT + 97 * - 81, 99 AS col1
----
-7857
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL 67 - CASE - + 81 WHEN + 69 THEN 46 + - - 96 + + - 86 * + + SUM( - ( 65 ) ) ELSE SUM( - - ( + - 1 ) ) - - 55 END AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL 67 - CASE - + 81 WHEN + 69 THEN 46 + - - 96 + + - 86 * + + SUM ( - ( 65 ) ) ELSE SUM ( - - ( + - 1 ) ) - - 55 END AS col2
----
13

query I rowsort
SELECT - 37 * - ( + CASE + 84 WHEN - 66 * 19 THEN NULL ELSE - 0 + - 25 END )
----
-925

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7734
SELECT + 64 - - + 76, COUNT( * ) * - + 68 AS col2
----
140
-68

skipif mysql # not compatible
query II rowsort label-7734
SELECT + 64 - - + 76, COUNT ( * ) * - + 68 AS col2
----
140
-68

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

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

query I rowsort
SELECT + 77 - - 35 * - + 43 + ( 12 )
----
-1416

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

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

query I rowsort
SELECT ALL - 72 - + + 38
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT + + 67 * - 60 + + SUM( - + 20 ) * - 61
----
-2800

skipif mysql # not compatible
query I rowsort label-7739
SELECT + + 67 * - 60 + + SUM ( - + 20 ) * - 61
----
-2800

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT DISTINCT - 39 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT - 39 / 94
----
0

query I rowsort
SELECT ALL - 23 * - + 24
----
552

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

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

query I rowsort
SELECT - 36 * + 64 + + 94 AS col2
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT - 78 * SUM( + 86 ) AS col0
----
-6708

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT - 78 * SUM ( + 86 ) AS col0
----
-6708

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7746
SELECT - - COALESCE ( 19, + 28 * - 5 + + CAST( NULL AS SIGNED ) + 15 )
----
19

skipif mysql # not compatible
query I rowsort label-7746
SELECT - - COALESCE ( 19, + 28 * - 5 + + CAST ( NULL AS INTEGER ) + 15 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ALL - SUM( 14 ) * 76
----
-1064

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL - SUM ( 14 ) * 76
----
-1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7748
SELECT + MAX( ALL 99 ) DIV - - 94 AS col2, COALESCE ( + 78, - 67 + + 6 * + 21, - 87 ) AS col2
----
1
78

skipif mysql # not compatible
query II rowsort label-7748
SELECT + MAX ( ALL 99 ) / - - 94 AS col2, COALESCE ( + 78, - 67 + + 6 * + 21, - 87 ) AS col2
----
1
78

query I rowsort
SELECT DISTINCT 21 * - 87 AS col1
----
-1827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT DISTINCT 71 DIV - ( + + COUNT( * ) ) + + 53 * + ( 42 ) AS col0
----
2155

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT 71 / - ( + + COUNT ( * ) ) + + 53 * + ( 42 ) AS col0
----
2155

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT - 44 * + ( - CAST( ( 27 ) AS SIGNED ) ) AS col1
----
1188

skipif mysql # not compatible
query I rowsort label-7752
SELECT - 44 * + ( - CAST ( ( 27 ) AS INTEGER ) ) AS col1
----
1188

onlyif mysql # DIV for integer division: 
query I rowsort label-7753
SELECT DISTINCT NULLIF ( + 17, - ( - 91 ) ) DIV 46 - - + 33 + - 38 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT NULLIF ( + 17, - ( - 91 ) ) / 46 - - + 33 + - 38 AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT + CAST( + + COALESCE ( + 83, - + 33 ) AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-7754
SELECT + CAST ( + + COALESCE ( + 83, - + 33 ) AS INTEGER )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7755
SELECT ALL - COUNT( * ) * - COUNT( * ) DIV + 23 * 68 + - - 16 AS col1, 54 * - + 65 AS col0
----
16
-3510

skipif mysql # not compatible
query II rowsort label-7755
SELECT ALL - COUNT ( * ) * - COUNT ( * ) / + 23 * 68 + - - 16 AS col1, 54 * - + 65 AS col0
----
16
-3510

query I rowsort
SELECT ( 74 )
----
74

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

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

query I rowsort
SELECT - 84 + - 95 + + + 40 * 84
----
3181

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7760
SELECT ALL + 44 * - 15 - - 18 AS col2, COUNT( * ) + + MAX( - 25 ) + + + 62 + - 81 * + 15 * - 1 AS col2
----
-642
1253

skipif mysql # not compatible
query II rowsort label-7760
SELECT ALL + 44 * - 15 - - 18 AS col2, COUNT ( * ) + + MAX ( - 25 ) + + + 62 + - 81 * + 15 * - 1 AS col2
----
-642
1253

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

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

query I rowsort
SELECT - 13 * + 88 AS col0
----
-1144

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7764
SELECT DISTINCT 46 * + + 14 * ( 90 ) * - COUNT( * ) * - 9 - MIN( - 75 ) * CAST( + + 54 AS SIGNED ) * - 67 + CASE 87 WHEN + COUNT( DISTINCT + + 5 ) THEN + 28 - + 41 ELSE + 49 * - CAST( NULL AS SIGNED ) + ( + 39 ) END + + - CASE - + 67 WHEN - ( + 79 ) * 71 THEN ( + 30 ) ELSE NULL END * + CAST( NULL AS DECIMAL ) - COALESCE ( + NULLIF ( 63, - COUNT( * ) ), - 0, - 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT 46 * + + 14 * ( 90 ) * - COUNT ( * ) * - 9 - MIN ( - 75 ) * CAST ( + + 54 AS INTEGER ) * - 67 + CASE 87 WHEN + COUNT ( DISTINCT + + 5 ) THEN + 28 - + 41 ELSE + 49 * - CAST ( NULL AS INTEGER ) + ( + 39 ) END + + - CASE - + 67 WHEN - ( + 79 ) * 71 THEN ( + 30 ) ELSE NULL END * + CAST ( NULL AS REAL ) - COALESCE ( + NULLIF ( 63, - COUNT ( * ) ), - 0, - 39 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7765
SELECT ALL + - COUNT( * ) * MIN( DISTINCT 76 ) DIV 73 * ( - + ( - - NULLIF ( - ( + 49 ), - - 82 ) ) ) + - MAX( ALL - 51 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + - COUNT ( * ) * MIN ( DISTINCT 76 ) / 73 * ( - + ( - - NULLIF ( - ( + 49 ), - - 82 ) ) ) + - MAX ( ALL - 51 ) AS col2
----
2

query II rowsort
SELECT + 95 AS col0, - 90 AS col0
----
95
-90

query II rowsort
SELECT + 95 + - 71 + - - 81 * - 11 * + - 39 col0, - 76
----
34773
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-7768
SELECT - - COUNT( * ) + - COALESCE ( + 57, + 39 * - - 71 * + NULLIF ( - COUNT( * ), 58 * - - 48 / + - 53 + + 76 ) ), + MIN( + + 45 ) AS col1
----
-56
45

skipif mysql # not compatible
query II rowsort label-7768
SELECT - - COUNT ( * ) + - COALESCE ( + 57, + 39 * - - 71 * + NULLIF ( - COUNT ( * ), 58 * - - 48 / + - 53 + + 76 ) ), + MIN ( + + 45 ) AS col1
----
-56
45

query I rowsort
SELECT + 9 * - ( COALESCE ( + 6, - + 83 ) ) * - 18 * + 60
----
58320

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT + + 56 DIV COALESCE ( - - 46, + 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7771
SELECT + + 56 / COALESCE ( - - 46, + 82 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT - 71 * + + 88 * + - CAST( - 59 AS SIGNED ) AS col1
----
-368632

skipif mysql # not compatible
query I rowsort label-7772
SELECT - 71 * + + 88 * + - CAST ( - 59 AS INTEGER ) AS col1
----
-368632

query I rowsort
SELECT + 12 col0
----
12

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

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

query I rowsort
SELECT DISTINCT - 74 col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7776
SELECT DISTINCT 85 * + - MIN( ALL + - 13 ) AS col2, - ( + + ( 11 ) ) DIV + CAST( - + 49 AS SIGNED ) + - + 44 AS col2
----
1105
-44

skipif mysql # not compatible
query II rowsort label-7776
SELECT DISTINCT 85 * + - MIN ( ALL + - 13 ) AS col2, - ( + + ( 11 ) ) / + CAST ( - + 49 AS INTEGER ) + - + 44 AS col2
----
1105
-44

query I rowsort
SELECT + ( - 34 ) + 67 AS col2
----
33

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7780
SELECT - - 26 AS col2, COUNT( * ) DIV + - 11 AS col0
----
26
0

skipif mysql # not compatible
query II rowsort label-7780
SELECT - - 26 AS col2, COUNT ( * ) / + - 11 AS col0
----
26
0

query II rowsort
SELECT ( + + 24 ) * 87, 94 col0
----
2088
94

query I rowsort
SELECT ALL 80 + 79 col1
----
159

query I rowsort
SELECT ALL ( - - 56 ) + - - 75 * - - 85
----
6431

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT 50 + - 84 * - COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT 50 + - 84 * - COUNT ( * )
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7786
SELECT ( + 3 ) DIV 71 * - CAST( AVG ( DISTINCT - 67 ) AS SIGNED ) * - - 20 + - + 35 + + COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7786
SELECT ( + 3 ) / 71 * - CAST ( AVG ( DISTINCT - 67 ) AS INTEGER ) * - - 20 + - + 35 + + COUNT ( * ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT COUNT( + 19 ) * 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7787
SELECT COUNT ( + 19 ) * 11 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7788
SELECT 4 AS col2, ( CAST( NULL AS SIGNED ) ) + 66
----
4
NULL

skipif mysql # not compatible
query II rowsort label-7788
SELECT 4 AS col2, ( CAST ( NULL AS INTEGER ) ) + 66
----
4
NULL

query II rowsort
SELECT 12, + 65 AS col0
----
12
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT 36 * CAST( + + 53 AS SIGNED ) + + 77
----
1985

skipif mysql # not compatible
query I rowsort label-7790
SELECT 36 * CAST ( + + 53 AS INTEGER ) + + 77
----
1985

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL - MIN( - - 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - MIN ( - - 53 ) AS col1
----
-53

query II rowsort
SELECT + 71, - 13 AS col2
----
71
-13

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT 44 + - + COALESCE ( COALESCE ( + + CAST( - 92 AS SIGNED ), - 7 * + 56 ), + COALESCE ( - ( - 68 ), COUNT( * ), - + 8 * + 27 ) )
----
136

skipif mysql # not compatible
query I rowsort label-7794
SELECT 44 + - + COALESCE ( COALESCE ( + + CAST ( - 92 AS INTEGER ), - 7 * + 56 ), + COALESCE ( - ( - 68 ), COUNT ( * ), - + 8 * + 27 ) )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL ( 50 ) - - + COUNT( * ) * 46
----
96

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL ( 50 ) - - + COUNT ( * ) * 46
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7796
SELECT ALL - 83 AS col1, + 10 - CAST( 69 AS SIGNED ) + + 51 + + 61 AS col1
----
-83
53

skipif mysql # not compatible
query II rowsort label-7796
SELECT ALL - 83 AS col1, + 10 - CAST ( 69 AS INTEGER ) + + 51 + + 61 AS col1
----
-83
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7797
SELECT DISTINCT - CASE 16 WHEN + + 13 * - COUNT( * ) - + NULLIF ( + + 40, + 35 * - 39 ) THEN + + 81 ELSE NULL END AS col2, + 18 DIV - 97 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7797
SELECT DISTINCT - CASE 16 WHEN + + 13 * - COUNT ( * ) - + NULLIF ( + + 40, + 35 * - 39 ) THEN + + 81 ELSE NULL END AS col2, + 18 / - 97 AS col0
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT CAST( + 14 AS SIGNED ) * - - 75 + - COALESCE ( 45, + + 74 ) * - 19 * - 63 * - - 3 AS col2
----
-160545

skipif mysql # not compatible
query I rowsort label-7798
SELECT CAST ( + 14 AS INTEGER ) * - - 75 + - COALESCE ( 45, + + 74 ) * - 19 * - 63 * - - 3 AS col2
----
-160545

query II rowsort
SELECT ALL - + 63 AS col1, + 82
----
-63
82

query II rowsort
SELECT DISTINCT - 71 AS col2, + 49 + 64
----
-71
113

query II rowsort
SELECT DISTINCT - + 81 AS col2, 2 AS col0
----
-81
2

query II rowsort
SELECT ALL - 48 AS col2, - 59 * + + 97 AS col1
----
-48
-5723

query II rowsort
SELECT ALL - - 29, 84 * - 91 AS col2
----
29
-7644

query I rowsort
SELECT DISTINCT + + 14 * + + 7 col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT 38 * + + CAST( + 50 AS SIGNED )
----
1900

skipif mysql # not compatible
query I rowsort label-7805
SELECT 38 * + + CAST ( + 50 AS INTEGER )
----
1900

query II rowsort
SELECT ALL + 56 * - 34, + CASE + 69 WHEN + 90 THEN - 80 ELSE NULL END + + + 99 / + + 70 * - - 7 * - 13 AS col0
----
-1904
NULL

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

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL COUNT ( * ) + + 94 AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7808
SELECT - CASE COUNT( - ( + 47 ) ) WHEN 79 / - 38 THEN NULL WHEN + CAST( - 48 AS SIGNED ) + CASE - + COUNT( * ) WHEN - + 30 + - + 7 THEN - 18 WHEN 94 * - CAST( + + 6 AS SIGNED ) THEN NULL ELSE NULL END - - 22 * + - CAST( + 25 AS SIGNED ) - + 20 - + + 93 * + 15 - - - 66 + - 85 THEN NULL WHEN - 12 THEN NULL ELSE - + 95 * - 60 END AS col1
----
-5700

skipif mysql # not compatible
query I rowsort label-7808
SELECT - CASE COUNT ( - ( + 47 ) ) WHEN 79 / - 38 THEN NULL WHEN + CAST ( - 48 AS INTEGER ) + CASE - + COUNT ( * ) WHEN - + 30 + - + 7 THEN - 18 WHEN 94 * - CAST ( + + 6 AS INTEGER ) THEN NULL ELSE NULL END - - 22 * + - CAST ( + 25 AS INTEGER ) - + 20 - + + 93 * + 15 - - - 66 + - 85 THEN NULL WHEN - 12 THEN NULL ELSE - + 95 * - 60 END AS col1
----
-5700

query I rowsort
SELECT DISTINCT + + 22 * - + 75 + - + 63
----
-1713

query I rowsort
SELECT 61 * 15 AS col1
----
915

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7811
SELECT - 53 AS col2, MIN( + + 28 ) - - 74 DIV MIN( 34 ) - 65 DIV - 45 + + 81 * - 27
----
-53
-2156

skipif mysql # not compatible
query II rowsort label-7811
SELECT - 53 AS col2, MIN ( + + 28 ) - - 74 / MIN ( 34 ) - 65 / - 45 + + 81 * - 27
----
-53
-2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT DISTINCT + - ( + + 29 ) + - CASE + + 46 WHEN + - CAST( + 58 AS SIGNED ) THEN + 76 * - ( + 28 ) + + - COALESCE ( + 49, ( - ( - 88 ) ), 47 ) WHEN - ( COUNT( + 85 ) ) THEN NULL ELSE NULL END + - AVG ( 31 ) * - 87 * + AVG ( - 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT + - ( + + 29 ) + - CASE + + 46 WHEN + - CAST ( + 58 AS INTEGER ) THEN + 76 * - ( + 28 ) + + - COALESCE ( + 49, ( - ( - 88 ) ), 47 ) WHEN - ( COUNT ( + 85 ) ) THEN NULL ELSE NULL END + - AVG ( 31 ) * - 87 * + AVG ( - 14 ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 9 + 11 AS col1
----
2

query I rowsort
SELECT 40 - + 43 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7815
SELECT + 76 AS col2, COUNT( * ) - 50 AS col2
----
76
-49

skipif mysql # not compatible
query II rowsort label-7815
SELECT + 76 AS col2, COUNT ( * ) - 50 AS col2
----
76
-49

query I rowsort
SELECT DISTINCT + - 80 + - 67 + - 8 * - 38
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT 77 + + COUNT( * ) * + 89
----
166

skipif mysql # not compatible
query I rowsort label-7817
SELECT 77 + + COUNT ( * ) * + 89
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT MIN( ALL - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT MIN ( ALL - 94 )
----
-94

query II rowsort
SELECT DISTINCT 26 * - + 15 AS col2, - 24
----
-390
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL MIN( ALL + + 18 ) - 41
----
-23

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL MIN ( ALL + + 18 ) - 41
----
-23

query I rowsort
SELECT 3 + - 63 - - 10
----
-50

query I rowsort
SELECT ALL - 61 * 68 - + 43 + + - 20
----
-4211

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT NULLIF ( - + 39, ( + 18 ) * COUNT( * ) + + 37 + - 44 * 99 * - 77 ) * + + MAX( + 1 )
----
-39

skipif mysql # not compatible
query I rowsort label-7823
SELECT NULLIF ( - + 39, ( + 18 ) * COUNT ( * ) + + 37 + - 44 * 99 * - 77 ) * + + MAX ( + 1 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL 36 * - COUNT( * ) - 31 + COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL 36 * - COUNT ( * ) - 31 + COUNT ( * ) AS col2
----
-66

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

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

query I rowsort
SELECT - CASE 88 WHEN - - 85 THEN + 84 ELSE NULL END * + + 62 + + 38 * + 25
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7827
SELECT CAST ( - 59 AS INTEGER ) * + + CAST ( NULL AS REAL )
----
NULL

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

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

query II rowsort
SELECT - 17 * ( + 78 ) - 94 * - + 55 AS col0, + 97
----
3844
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT COUNT( * ) * 90 + 76 + - - 83
----
249

skipif mysql # not compatible
query I rowsort label-7830
SELECT COUNT ( * ) * 90 + 76 + - - 83
----
249

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

query I rowsort
SELECT 14 + 11 - + 59
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL + 34 * + CASE COUNT( * ) WHEN - - 36 THEN NULL ELSE + 76 END + - ( ( 38 ) ) * 70 * SUM( + NULLIF ( + - 75, + - ( 7 ) ) )
----
202084

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL + 34 * + CASE COUNT ( * ) WHEN - - 36 THEN NULL ELSE + 76 END + - ( ( 38 ) ) * 70 * SUM ( + NULLIF ( + - 75, + - ( 7 ) ) )
----
202084

query II rowsort
SELECT DISTINCT + - 99 + 70 AS col1, - 52 AS col0
----
-29
-52

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7836
SELECT ALL - COUNT( * ) * - COUNT( + 91 ) + + CASE 20 WHEN + + 58 - - 63 + + 25 THEN - 82 WHEN 43 THEN NULL ELSE + COUNT( * ) * - - CAST( NULL AS DECIMAL ) + 63 * + 94 * 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL - COUNT ( * ) * - COUNT ( + 91 ) + + CASE 20 WHEN + + 58 - - 63 + + 25 THEN - 82 WHEN 43 THEN NULL ELSE + COUNT ( * ) * - - CAST ( NULL AS REAL ) + 63 * + 94 * 34 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + 10 + + 91 + COUNT( * ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-7837
SELECT + 10 + + 91 + COUNT ( * ) AS col2
----
102

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

skipif mysql # not compatible
query I rowsort label-7838
SELECT + + 0 * + 75 + - COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT + 93 + - 97 col1, COUNT( * )
----
-4
1

skipif mysql # not compatible
query II rowsort label-7839
SELECT + 93 + - 97 col1, COUNT ( * )
----
-4
1

query I rowsort
SELECT + - 71 * + 43 * - 70 + - 50
----
213660

onlyif mysql # aggregate syntax: 
query II rowsort label-7841
SELECT ALL + COUNT( 26 ) AS col0, 18 + + 86 AS col1
----
1
104

skipif mysql # not compatible
query II rowsort label-7841
SELECT ALL + COUNT ( 26 ) AS col0, 18 + + 86 AS col1
----
1
104

query I rowsort
SELECT + NULLIF ( - ( - 7 ), + - 79 * - 60 + 86 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - 73 + - 64 / - + CASE MAX( ALL 19 ) WHEN - 31 + 4 THEN - SUM( DISTINCT + 70 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT - 73 + - 64 / - + CASE MAX ( ALL 19 ) WHEN - 31 + 4 THEN - SUM ( DISTINCT + 70 ) END col2
----
NULL

query I rowsort
SELECT ALL ( 72 ) + + + ( + 96 ) * + CASE - 30 WHEN 34 THEN NULL ELSE + 43 END
----
4200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT DISTINCT + 67 * - 0 + - 25 + + COALESCE ( - 28, + + 14, 5 * + 78 ) + 51 + + CAST( NULL AS SIGNED ) * + - 20 * NULLIF ( - COALESCE ( 51, + - COUNT( * ) * - COUNT( * ) - - 30 * - - 68 + 24 + 9 ), + 78 ) * 18 * + 58 - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT + 67 * - 0 + - 25 + + COALESCE ( - 28, + + 14, 5 * + 78 ) + 51 + + CAST ( NULL AS INTEGER ) * + - 20 * NULLIF ( - COALESCE ( 51, + - COUNT ( * ) * - COUNT ( * ) - - 30 * - - 68 + 24 + 9 ), + 78 ) * 18 * + 58 - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL - 8 + + 17 - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - 8 + + 17 - - COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT DISTINCT + MIN( DISTINCT 85 ) * 22 * - 16 + 99
----
-29821

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT + MIN ( DISTINCT 85 ) * 22 * - 16 + 99
----
-29821

onlyif mysql # aggregate syntax: 
query II rowsort label-7848
SELECT 94 col0, MAX( + 27 )
----
94
27

skipif mysql # not compatible
query II rowsort label-7848
SELECT 94 col0, MAX ( + 27 )
----
94
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7849
SELECT - CAST( NULL AS SIGNED ) * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7849
SELECT - CAST ( NULL AS INTEGER ) * + 60 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 35 * - 5 AS col0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL COALESCE ( COALESCE ( + + 67, + - COUNT( * ) * - MAX( + 20 ) + - 13, - MAX( - + 64 ) * 6 ), 36 * - 75 + NULLIF ( 18, - + 50 - - 10 ), - 4 )
----
67

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL COALESCE ( COALESCE ( + + 67, + - COUNT ( * ) * - MAX ( + 20 ) + - 13, - MAX ( - + 64 ) * 6 ), 36 * - 75 + NULLIF ( 18, - + 50 - - 10 ), - 4 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT - 85 + + 69 + + + COUNT( * ) + + ( - 94 ) * 30 AS col1
----
-2835

skipif mysql # not compatible
query I rowsort label-7852
SELECT - 85 + + 69 + + + COUNT ( * ) + + ( - 94 ) * 30 AS col1
----
-2835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7853
SELECT 29 AS col0, CASE + - CAST( NULL AS SIGNED ) WHEN + 58 * + 23 THEN NULL WHEN - - 23 + + - COUNT( * ) * + - 80 - - 1 + COUNT( * ) THEN CAST( 82 AS SIGNED ) * + - 95 + + 34 - + + 66 * ( COUNT( * ) ) * COALESCE ( + - 8, - 34, - 71 + - - MIN( ALL 15 ) + 91 / - 81 ) - 92 * + 84 - - 88 WHEN COUNT( * ) / - 91 THEN + 80 * 27 END + - 50
----
29
NULL

skipif mysql # not compatible
query II rowsort label-7853
SELECT 29 AS col0, CASE + - CAST ( NULL AS INTEGER ) WHEN + 58 * + 23 THEN NULL WHEN - - 23 + + - COUNT ( * ) * + - 80 - - 1 + COUNT ( * ) THEN CAST ( 82 AS INTEGER ) * + - 95 + + 34 - + + 66 * ( COUNT ( * ) ) * COALESCE ( + - 8, - 34, - 71 + - - MIN ( ALL 15 ) + 91 / - 81 ) - 92 * + 84 - - 88 WHEN COUNT ( * ) / - 91 THEN + 80 * 27 END + - 50
----
29
NULL

query I rowsort
SELECT DISTINCT ( 51 )
----
51

query I rowsort
SELECT ALL 49 * + 73 * + + 56
----
200312

query I rowsort
SELECT - 14 * + 23 AS col2
----
-322

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT DISTINCT COALESCE ( + ( 94 ), + 40 DIV 89 + + + ( - ( 6 ) ) + + 27 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT COALESCE ( + ( 94 ), + 40 / 89 + + + ( - ( 6 ) ) + + 27 ) AS col1
----
94

query I rowsort
SELECT ( 62 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT 9 / + 37 + - - CASE 51 WHEN + COUNT( * ) + - 96 + - CAST( 19 AS SIGNED ) / COUNT( + 89 ) + + 58 + - 17 + MAX( ALL - 43 ) THEN CASE - ( - + 63 ) WHEN - - COUNT( * ) + - + COUNT( * ) + 39 THEN + 68 END END + 70 + - 61 * + - COALESCE ( + 16, 58 * + 1 + - - 19 ) - 44 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT 9 / + 37 + - - CASE 51 WHEN + COUNT ( * ) + - 96 + - CAST ( 19 AS INTEGER ) / COUNT ( + 89 ) + + 58 + - 17 + MAX ( ALL - 43 ) THEN CASE - ( - + 63 ) WHEN - - COUNT ( * ) + - + COUNT ( * ) + 39 THEN + 68 END END + 70 + - 61 * + - COALESCE ( + 16, 58 * + 1 + - - 19 ) - 44 / 40
----
NULL

query I rowsort
SELECT ALL + ( - 33 ) * - 97
----
3201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7861
SELECT - 78 * - ( - CAST( NULL AS SIGNED ) ) * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT - 78 * - ( - CAST ( NULL AS INTEGER ) ) * + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT 19 / 70 - 60 * 52 * - - COUNT( * ) + - 15 + 77 + 47 + + + CASE - - 8 WHEN + 42 THEN - - 65 ELSE - 99 * - + ( - NULLIF ( CASE + + COUNT( * ) WHEN - COUNT( * ) THEN + 78 WHEN + 47 * - + 50 + + 0 THEN - 14 ELSE NULL END, ( 60 ) ) ) END * + 22 / 45 * + COUNT( ALL + COALESCE ( ( 73 ), + 56 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT 19 / 70 - 60 * 52 * - - COUNT ( * ) + - 15 + 77 + 47 + + + CASE - - 8 WHEN + 42 THEN - - 65 ELSE - 99 * - + ( - NULLIF ( CASE + + COUNT ( * ) WHEN - COUNT ( * ) THEN + 78 WHEN + 47 * - + 50 + + 0 THEN - 14 ELSE NULL END, ( 60 ) ) ) END * + 22 / 45 * + COUNT ( ALL + COALESCE ( ( 73 ), + 56 ) ) AS col0
----
NULL

query I rowsort
SELECT ( 37 )
----
37

query I rowsort
SELECT DISTINCT + 28 * - 3
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL + SUM( DISTINCT + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + SUM ( DISTINCT + 31 ) AS col2
----
31

query I rowsort
SELECT ALL ( - 49 ) * - + 27 + + 77 AS col1
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT DISTINCT + - 80 * - MIN( ALL + 70 )
----
5600

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT + - 80 * - MIN ( ALL + 70 )
----
5600

query I rowsort
SELECT ALL + 11 * - - 5 - + ( 11 ) + - ( - 59 ) + + - 99
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + 50 + + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7869
SELECT + 50 + + - COUNT ( * )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7870
SELECT - 94 DIV - 72 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7870
SELECT - 94 / - 72 AS col0
----
1

query II rowsort
SELECT + 20 AS col1, 2 * 99 - - 53 AS col0
----
20
251

query II rowsort
SELECT + - 98 AS col1, 77 + + 94 + + 7
----
-98
178

onlyif mysql # aggregate syntax: 
query II rowsort label-7873
SELECT ALL 17 * + COUNT( * ) + 65 AS col0, 66 * 24 AS col2
----
82
1584

skipif mysql # not compatible
query II rowsort label-7873
SELECT ALL 17 * + COUNT ( * ) + 65 AS col0, 66 * 24 AS col2
----
82
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT - COUNT( + 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7874
SELECT - COUNT ( + 15 ) AS col2
----
-1

query I rowsort
SELECT + 30 * - - 45 AS col2
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-7876
SELECT 67 * 70 DIV - - 59 + + 20
----
99

skipif mysql # not compatible
query I rowsort label-7876
SELECT 67 * 70 / - - 59 + + 20
----
99

query I rowsort
SELECT DISTINCT - 62 * + 3 AS col1
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-7878
SELECT ALL 25 * - + COUNT( * ) + + 53 AS col2, 61 + + - COUNT( * ) * - - 82 + + - 77 AS col0
----
28
-98

skipif mysql # not compatible
query II rowsort label-7878
SELECT ALL 25 * - + COUNT ( * ) + + 53 AS col2, 61 + + - COUNT ( * ) * - - 82 + + - 77 AS col0
----
28
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT ALL CAST( + + 13 AS SIGNED ) * + + 38 + - 98 + - 41 AS col0
----
355

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL CAST ( + + 13 AS INTEGER ) * + + 38 + - 98 + - 41 AS col0
----
355

query I rowsort
SELECT + NULLIF ( - 90, + 79 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT + - COUNT( * ) * + 93
----
-93

skipif mysql # not compatible
query I rowsort label-7881
SELECT + - COUNT ( * ) * + 93
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT ALL NULLIF ( - - COALESCE ( - + 71, + 66, 35 - + 9 DIV - 43 DIV + - 36 ), - - 93 * - 88 + + AVG ( 73 ) ) * + 17 - + + 79 DIV + 30 AS col1
----
-1209

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL NULLIF ( - - COALESCE ( - + 71, + 66, 35 - + 9 / - 43 / + - 36 ), - - 93 * - 88 + + AVG ( 73 ) ) * + 17 - + + 79 / + 30 AS col1
----
-1209

query I rowsort
SELECT ALL - 81 * 94 + + 41 + - + 43 - + 38 col0
----
-7654

query I rowsort
SELECT + 80 * - 94 AS col0
----
-7520

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT 63 * + + 85 + + COUNT( * ) * - - 50 + - 64 + 71 AS col2
----
5412

skipif mysql # not compatible
query I rowsort label-7885
SELECT 63 * + + 85 + + COUNT ( * ) * - - 50 + - 64 + 71 AS col2
----
5412

query II rowsort
SELECT + 78, 6 col2
----
78
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7887
SELECT + CAST( - 96 AS SIGNED ) - COUNT( * ) * - 16, 13 * + 22 AS col0
----
-80
286

skipif mysql # not compatible
query II rowsort label-7887
SELECT + CAST ( - 96 AS INTEGER ) - COUNT ( * ) * - 16, 13 * + 22 AS col0
----
-80
286

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL COALESCE ( + + 15, + ( + 90 ), - COUNT( * ) + 3 )
----
15

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL COALESCE ( + + 15, + ( + 90 ), - COUNT ( * ) + 3 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL CASE - 42 WHEN 64 + + 20 THEN + 66 / 29 + + COUNT( * ) ELSE + + 44 * CASE NULLIF ( - 30, - 14 ) WHEN ( + 16 ) / + ( + + 45 ) * MIN( DISTINCT - - NULLIF ( + 72, + 12 / 98 ) ) + - COUNT( * ) - + - 63 * 42 * - - 84 THEN 15 + + 97 END + - 40 * + 34 / - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL CASE - 42 WHEN 64 + + 20 THEN + 66 / 29 + + COUNT ( * ) ELSE + + 44 * CASE NULLIF ( - 30, - 14 ) WHEN ( + 16 ) / + ( + + 45 ) * MIN ( DISTINCT - - NULLIF ( + 72, + 12 / 98 ) ) + - COUNT ( * ) - + - 63 * 42 * - - 84 THEN 15 + + 97 END + - 40 * + 34 / - 4 END
----
NULL

query I rowsort
SELECT + 62 * + 95 AS col0
----
5890

query I rowsort
SELECT - 20 + - + 43 + + - ( + 72 ) col0
----
-135

onlyif mysql # DIV for integer division: 
query II rowsort label-7892
SELECT ALL ( - - 62 ) col1, 41 DIV - 8
----
62
-5

skipif mysql # not compatible
query II rowsort label-7892
SELECT ALL ( - - 62 ) col1, 41 / - 8
----
62
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL SUM( + 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL SUM ( + 16 ) AS col2
----
16

query I rowsort
SELECT ALL - 86 * - 36 * + 39
----
120744

query I rowsort
SELECT - 14 - + 27 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + 26 * - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 26 * - COUNT ( * )
----
-26

query I rowsort
SELECT - 31 * 38
----
-1178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT DISTINCT - COUNT( * ) * + - NULLIF ( + 71, + COALESCE ( + NULLIF ( 86, - CAST( NULL AS SIGNED ) * 9 + + COUNT( * ) ), 20 ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - COUNT ( * ) * + - NULLIF ( + 71, + COALESCE ( + NULLIF ( 86, - CAST ( NULL AS INTEGER ) * 9 + + COUNT ( * ) ), 20 ) ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT - CAST( - CAST( - 61 AS SIGNED ) AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-7899
SELECT - CAST ( - CAST ( - 61 AS INTEGER ) AS INTEGER )
----
-61

query I rowsort
SELECT - 66 + + 32
----
-34

query I rowsort
SELECT ALL - ( - 63 ) * + 19 AS col0
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT ( - + SUM( DISTINCT - COALESCE ( - 18, - 76 ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT ( - + SUM ( DISTINCT - COALESCE ( - 18, - 76 ) ) )
----
-18

query I rowsort
SELECT - 95 * - 47 AS col2
----
4465

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT - COUNT( + + 83 ) + - 69
----
-70

skipif mysql # not compatible
query I rowsort label-7904
SELECT - COUNT ( + + 83 ) + - 69
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 60 + + 56
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7907
SELECT - 48 DIV ( - 10 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7907
SELECT - 48 / ( - 10 ) AS col2
----
4

query I rowsort
SELECT ALL + + 56 AS col0
----
56

query I rowsort
SELECT + CASE - 64 WHEN - 98 * + CASE + ( + 51 ) WHEN + 93 * - - ( + 19 ) THEN NULL WHEN 34 THEN NULL WHEN + 3 THEN NULL WHEN 26 + + - 80 THEN 82 END THEN + - 71 * + + 92 + + 23 WHEN 16 + - 41 THEN NULL ELSE - 50 END
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL - - 11 / 56 + 69 - + - 38 * + ( SUM( ALL - + CASE + NULLIF ( CAST( NULL AS SIGNED ), - - 22 + - 0 ) WHEN + 80 THEN NULL WHEN - 56 THEN - 58 * - 75 * 93 + + 97 END ) ) * COUNT( * ) * - 0 + 39 + + - ( - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - - 11 / 56 + 69 - + - 38 * + ( SUM ( ALL - + CASE + NULLIF ( CAST ( NULL AS INTEGER ), - - 22 + - 0 ) WHEN + 80 THEN NULL WHEN - 56 THEN - 58 * - 75 * 93 + + 97 END ) ) * COUNT ( * ) * - 0 + 39 + + - ( - 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT - NULLIF ( + - 76, - COUNT( * ) ) * - 68 - + - 87 + + + COALESCE ( - 90, + ( - 61 ) * - 6 + - COALESCE ( 49, COUNT( * ) ) ) AS col2
----
-5171

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT - NULLIF ( + - 76, - COUNT ( * ) ) * - 68 - + - 87 + + + COALESCE ( - 90, + ( - 61 ) * - 6 + - COALESCE ( 49, COUNT ( * ) ) ) AS col2
----
-5171

query I rowsort
SELECT 77 * + 56 + + - 42
----
4270

query I rowsort
SELECT DISTINCT - 66 * + + 7 AS col2
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT + 82 DIV + - 71 + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7914
SELECT + 82 / + - 71 + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT DISTINCT - 87 col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT ALL + 33 * CAST( NULL AS SIGNED ) * - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + 33 * CAST ( NULL AS INTEGER ) * - + 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7917
SELECT 46 + + - 2 AS col1, + ( + + COUNT( * ) ) + 35 * - 86 + 41 AS col1
----
44
-2968

skipif mysql # not compatible
query II rowsort label-7917
SELECT 46 + + - 2 AS col1, + ( + + COUNT ( * ) ) + 35 * - 86 + 41 AS col1
----
44
-2968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7918
SELECT + - 48 * - + 11 * - COUNT( * ) + + + COALESCE ( - COUNT( * ), - + COUNT( * ) + COUNT( * ) DIV 35 )
----
-529

skipif mysql # not compatible
query I rowsort label-7918
SELECT + - 48 * - + 11 * - COUNT ( * ) + + + COALESCE ( - COUNT ( * ), - + COUNT ( * ) + COUNT ( * ) / 35 )
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL ( MAX( + ( - 16 ) ) ) - + 16 col0
----
-32

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL ( MAX ( + ( - 16 ) ) ) - + 16 col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7920
SELECT DISTINCT - CAST( + 95 AS SIGNED ) AS col2, + 6 * 67 - + + 55 + - 67
----
-95
280

skipif mysql # not compatible
query II rowsort label-7920
SELECT DISTINCT - CAST ( + 95 AS INTEGER ) AS col2, + 6 * 67 - + + 55 + - 67
----
-95
280

query I rowsort
SELECT ALL - 72 * + 47 + - + 21 AS col2
----
-3405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7922
SELECT COUNT( * ) + - 67 DIV - 57 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7922
SELECT COUNT ( * ) + - 67 / - 57 AS col0
----
2

query I rowsort
SELECT - 22 * 13 AS col0
----
-286

query I rowsort
SELECT - 91 + - 88 AS col0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + COUNT( * ) + + 58 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7925
SELECT + COUNT ( * ) + + 58 AS col1
----
59

query I rowsort
SELECT ( 43 ) * - 38 * 40 AS col1
----
-65360

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT DISTINCT + 89 DIV - 42
----
-2

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT + 89 / - 42
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7928
SELECT - 75 * 96 + - - ( - COUNT( * ) ) * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT - 75 * 96 + - - ( - COUNT ( * ) ) * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7929
SELECT CAST( NULL AS DECIMAL ) - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT CAST ( NULL AS REAL ) - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL COUNT( * ) * + 23 * + - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL COUNT ( * ) * + 23 * + - COUNT ( * ) AS col2
----
-23

query I rowsort
SELECT 12 + + 82
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT ALL - 17 DIV + - 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL - 17 / + - 24 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7933
SELECT COUNT( * ) DIV - + NULLIF ( SUM( 76 ), CAST( NULL AS SIGNED ) ) * 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7933
SELECT COUNT ( * ) / - + NULLIF ( SUM ( 76 ), CAST ( NULL AS INTEGER ) ) * 42 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7934
SELECT ( + + 65 ) + CAST( NULL AS SIGNED ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7934
SELECT ( + + 65 ) + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * )
----
NULL
1

query I rowsort
SELECT 28 * + 92 AS col2
----
2576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT 18 * 19 DIV + - ( - + COUNT( * ) ) AS col0
----
342

skipif mysql # not compatible
query I rowsort label-7936
SELECT 18 * 19 / + - ( - + COUNT ( * ) ) AS col0
----
342

query I rowsort
SELECT DISTINCT - 73 + 91
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7938
SELECT DISTINCT 27 AS col1, 96 DIV - - 26 * COUNT( * )
----
27
3

skipif mysql # not compatible
query II rowsort label-7938
SELECT DISTINCT 27 AS col1, 96 / - - 26 * COUNT ( * )
----
27
3

query I rowsort
SELECT ALL + 10 + - 69 * 75 col1
----
-5165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT DISTINCT 89 + 91 + + - 26 + - COUNT( DISTINCT - ( + - COALESCE ( 94, 63 + - + 10, 11, - 69 / 71 ) ) ) + COUNT( * ) / - CAST( NULL AS SIGNED ) * 51 * 74 * - ( - + 17 ) * + - 12 - - 95 / - - 80 * - 24 + MAX( DISTINCT + + 6 ) / 70 / 20 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT 89 + 91 + + - 26 + - COUNT ( DISTINCT - ( + - COALESCE ( 94, 63 + - + 10, 11, - 69 / 71 ) ) ) + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 51 * 74 * - ( - + 17 ) * + - 12 - - 95 / - - 80 * - 24 + MAX ( DISTINCT + + 6 ) / 70 / 20 * - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ( + 78 ) + ( 23 ) - MAX( - 61 ) AS col0
----
162

skipif mysql # not compatible
query I rowsort label-7941
SELECT ( + 78 ) + ( 23 ) - MAX ( - 61 ) AS col0
----
162

query I rowsort
SELECT ALL - 86 + + 35 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL - 28 * - ( + COALESCE ( - 63, - - COUNT( * ) * - + 0 ) ) AS col0
----
-1764

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - 28 * - ( + COALESCE ( - 63, - - COUNT ( * ) * - + 0 ) ) AS col0
----
-1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7944
SELECT 17 DIV COUNT( * ) * + + ( COUNT( * ) ) + - 53 AS col1, 36
----
-36
36

skipif mysql # not compatible
query II rowsort label-7944
SELECT 17 / COUNT ( * ) * + + ( COUNT ( * ) ) + - 53 AS col1, 36
----
-36
36

query I rowsort
SELECT + + COALESCE ( 45, - - 77 * + + 76 )
----
45

query I rowsort
SELECT ALL + - 38 - 98 * - + 54 - + 51
----
5203

query II rowsort
SELECT - 16 AS col2, - 78 AS col0
----
-16
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7948
SELECT ALL - MIN( DISTINCT - 38 ) - - CASE + 67 WHEN 91 THEN - - CAST( NULL AS SIGNED ) + - + 25 WHEN + 3 * 93 + + - 75 THEN NULL WHEN + 7 THEN NULL ELSE NULL END - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL - MIN ( DISTINCT - 38 ) - - CASE + 67 WHEN 91 THEN - - CAST ( NULL AS INTEGER ) + - + 25 WHEN + 3 * 93 + + - 75 THEN NULL WHEN + 7 THEN NULL ELSE NULL END - 15
----
NULL

query I rowsort
SELECT 92 * + ( + - 9 ) AS col1
----
-828

query I rowsort
SELECT DISTINCT - - ( - - 22 ) AS col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT - 53 * + 17 * - 99 - + CAST( NULL AS SIGNED ) * + 4 / - 5 + 35 / + - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT - 53 * + 17 * - 99 - + CAST ( NULL AS INTEGER ) * + 4 / - 5 + 35 / + - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT + 66 * 2 * COUNT( * ) * - - 64 + - - 82 + + 64 AS col0
----
8594

skipif mysql # not compatible
query I rowsort label-7952
SELECT + 66 * 2 * COUNT ( * ) * - - 64 + - - 82 + + 64 AS col0
----
8594

onlyif mysql # aggregate syntax: 
query III rowsort label-7953
SELECT ALL - NULLIF ( + SUM( 58 ), + CASE - 73 WHEN - 34 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - + 17 THEN - 90 + - + 29 END ) AS col0, 90, + 82 AS col0
----
-58
90
82

skipif mysql # not compatible
query III rowsort label-7953
SELECT ALL - NULLIF ( + SUM ( 58 ), + CASE - 73 WHEN - 34 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - + 17 THEN - 90 + - + 29 END ) AS col0, 90, + 82 AS col0
----
-58
90
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT + COUNT( - 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7954
SELECT + COUNT ( - 53 ) AS col2
----
1

query I rowsort
SELECT + - 30 AS col0
----
-30

query I rowsort
SELECT + NULLIF ( + 45, - 63 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + 19 * - ( COUNT( * ) ) + + - 5 * 18
----
-109

skipif mysql # not compatible
query I rowsort label-7957
SELECT + 19 * - ( COUNT ( * ) ) + + - 5 * 18
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + SUM( DISTINCT - 33 ) * - - 72 + - 25
----
-2401

skipif mysql # not compatible
query I rowsort label-7958
SELECT + SUM ( DISTINCT - 33 ) * - - 72 + - 25
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL - - MAX( DISTINCT + 2 ) * + 55 - + 86 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL - - MAX ( DISTINCT + 2 ) * + 55 - + 86 AS col2
----
24

query I rowsort
SELECT ( + 56 ) AS col2
----
56

query I rowsort
SELECT ALL - + 72 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 1 / - CASE + + 7 WHEN - COUNT( * ) * + 86 THEN NULL ELSE - + AVG ( ALL + + 59 ) + + 62 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 1 / - CASE + + 7 WHEN - COUNT ( * ) * + 86 THEN NULL ELSE - + AVG ( ALL + + 59 ) + + 62 END AS col2
----
NULL

query II rowsort
SELECT ALL - 83 AS col1, 59 AS col1
----
-83
59

query I rowsort
SELECT DISTINCT - ( - 37 ) col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT ALL - CAST( 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL - CAST ( 3 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7966
SELECT COUNT( * ) * - - 85 DIV - 28 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7966
SELECT COUNT ( * ) * - - 85 / - 28 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT 28 - - 95 DIV 71 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7967
SELECT 28 - - 95 / 71 AS col0
----
29

query II rowsort
SELECT ALL 90 + 17 - - 56 * - 50, 66 + - + 45 AS col0
----
-2693
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL SUM( DISTINCT + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL SUM ( DISTINCT + 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7970
SELECT COUNT( * ) DIV - + 93 * + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7970
SELECT COUNT ( * ) / - + 93 * + 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT 47 + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-7971
SELECT 47 + COUNT ( * )
----
48

query I rowsort
SELECT ALL 43 * - 44 AS col2
----
-1892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT ALL 19 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL 19 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 48 + - 76 + + 36
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7975
SELECT CAST( 51 AS SIGNED ) - + - 64 DIV + 91 * - + CAST( 77 AS SIGNED ) + + 53 col0
----
104

skipif mysql # not compatible
query I rowsort label-7975
SELECT CAST ( 51 AS INTEGER ) - + - 64 / + 91 * - + CAST ( 77 AS INTEGER ) + + 53 col0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7976
SELECT - + CAST( - + COALESCE ( 32, + 66 + 4 * - - 7 ) AS SIGNED ) AS col0, 89
----
32
89

skipif mysql # not compatible
query II rowsort label-7976
SELECT - + CAST ( - + COALESCE ( 32, + 66 + 4 * - - 7 ) AS INTEGER ) AS col0, 89
----
32
89

query I rowsort
SELECT - - 37 AS col1
----
37

query I rowsort
SELECT DISTINCT - 74 - - 60 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL + + 35 * - - SUM( - + 93 ) AS col1
----
-3255

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL + + 35 * - - SUM ( - + 93 ) AS col1
----
-3255

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT - MAX( + + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-7980
SELECT - MAX ( + + 82 )
----
-82

query I rowsort
SELECT ALL + + ( - 78 )
----
-78

query I rowsort
SELECT DISTINCT + 83 * + - 81
----
-6723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT CAST( + 58 AS SIGNED ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7983
SELECT CAST ( + 58 AS INTEGER ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7984
SELECT + + 0 DIV + MAX( ALL - 67 ) * - 19
----
0

skipif mysql # not compatible
query I rowsort label-7984
SELECT + + 0 / + MAX ( ALL - 67 ) * - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - 73 * + - 45 * NULLIF ( + MIN( DISTINCT - + 9 ), + NULLIF ( 39, 99 - + 7 ) ) + + + 97 AS col0
----
-29468

skipif mysql # not compatible
query I rowsort label-7985
SELECT - 73 * + - 45 * NULLIF ( + MIN ( DISTINCT - + 9 ), + NULLIF ( 39, 99 - + 7 ) ) + + + 97 AS col0
----
-29468

query II rowsort
SELECT ALL + - 43 AS col2, 58 AS col0
----
-43
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7987
SELECT - 35 DIV - 58 * SUM( ( + 75 ) ) + 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7987
SELECT - 35 / - 58 * SUM ( ( + 75 ) ) + 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL SUM( 83 ) * 34
----
2822

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL SUM ( 83 ) * 34
----
2822

query I rowsort
SELECT ALL + - CASE - 74 WHEN + 71 THEN + 81 END AS col2
----
NULL

query I rowsort
SELECT - ( - ( + + 21 ) ) + 99 * - - 1 AS col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7991
SELECT ALL + 65 AS col0, - 85 * 97 + + CAST( ( - 37 ) AS SIGNED ) + + - ( - - ( + - 77 ) ) * + 73 - + 73 AS col1
----
65
-2734

skipif mysql # not compatible
query II rowsort label-7991
SELECT ALL + 65 AS col0, - 85 * 97 + + CAST ( ( - 37 ) AS INTEGER ) + + - ( - - ( + - 77 ) ) * + 73 - + 73 AS col1
----
65
-2734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7992
SELECT ALL - 53 * + - 96 + + NULLIF ( 54, - + CASE + 94 WHEN 54 + + COUNT( * ) - - - 88 * - + NULLIF ( + - 2, COUNT( 92 ) ) * - - 40 THEN 0 WHEN - - 54 THEN - + 90 + - + CAST( NULL AS SIGNED ) END ) + ( + - 38 ) + COUNT( * ) col0
----
5105

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - 53 * + - 96 + + NULLIF ( 54, - + CASE + 94 WHEN 54 + + COUNT ( * ) - - - 88 * - + NULLIF ( + - 2, COUNT ( 92 ) ) * - - 40 THEN 0 WHEN - - 54 THEN - + 90 + - + CAST ( NULL AS INTEGER ) END ) + ( + - 38 ) + COUNT ( * ) col0
----
5105

query I rowsort
SELECT - 97 * - - 33
----
-3201

onlyif mysql # aggregate syntax: 
query II rowsort label-7994
SELECT MIN( + 63 ), 36 AS col1
----
63
36

skipif mysql # not compatible
query II rowsort label-7994
SELECT MIN ( + 63 ), 36 AS col1
----
63
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7995
SELECT + 85 DIV + SUM( ALL 65 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7995
SELECT + 85 / + SUM ( ALL 65 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT + MIN( - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT + MIN ( - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT - 61 * + + MIN( ALL + 97 ) AS col2
----
-5917

skipif mysql # not compatible
query I rowsort label-7997
SELECT - 61 * + + MIN ( ALL + 97 ) AS col2
----
-5917

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - MAX( ALL 79 ) + + 69 - - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7998
SELECT - MAX ( ALL 79 ) + + 69 - - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL 16 * + ( 73 ) * COUNT( * ) + 32
----
1200

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL 16 * + ( 73 ) * COUNT ( * ) + 32
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT - COUNT( * ) + - 3 + 33
----
29

skipif mysql # not compatible
query I rowsort label-8000
SELECT - COUNT ( * ) + - 3 + 33
----
29

query I rowsort
SELECT DISTINCT ( + 99 )
----
99

query I rowsort
SELECT ALL 95 + + 53 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - SUM( + - 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8003
SELECT - SUM ( + - 91 ) AS col0
----
91

query I rowsort
SELECT + 77 + + 6
----
83

query I rowsort
SELECT DISTINCT ( 95 ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8006
SELECT + CAST( + 24 AS SIGNED ) + - COUNT( * ) DIV + 46 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8006
SELECT + CAST ( + 24 AS INTEGER ) + - COUNT ( * ) / + 46 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8007
SELECT + CAST( CASE 52 WHEN + 44 * + 56 + - - 24 THEN NULL WHEN - 90 * 67 + + AVG ( + 37 ) * - 80 THEN 76 ELSE NULL END AS SIGNED ) * 1 * + 7 / + 19 AS col0, - 21 + + - 30
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-8007
SELECT + CAST ( CASE 52 WHEN + 44 * + 56 + - - 24 THEN NULL WHEN - 90 * 67 + + AVG ( + 37 ) * - 80 THEN 76 ELSE NULL END AS INTEGER ) * 1 * + 7 / + 19 AS col0, - 21 + + - 30
----
NULL
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-8008
SELECT - - 89 + 25 AS col1, 88 DIV - - 81
----
114
1

skipif mysql # not compatible
query II rowsort label-8008
SELECT - - 89 + 25 AS col1, 88 / - - 81
----
114
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8009
SELECT - CAST( COUNT( ALL - ( 4 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8009
SELECT - CAST ( COUNT ( ALL - ( 4 ) ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT 87 * - 13 + + 80 AS col2
----
-1051

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8011
SELECT - SUM( DISTINCT + 35 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT - SUM ( DISTINCT + 35 ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 31 + - + 38 + + 38 + - 90 + + 65 + - 11 * - 97 - - + 80
----
1153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT - 74 * - CAST( - CASE - + 54 WHEN 56 THEN - - 64 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT - 74 * - CAST ( - CASE - + 54 WHEN 56 THEN - - 64 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + - 70 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8015
SELECT + - COALESCE ( + CAST( 19 AS SIGNED ), MAX( 61 ), + - MAX( 66 ) ), - SUM( DISTINCT + 63 ) * + 7 AS col2, 89 AS col2
----
-19
-441
89

skipif mysql # not compatible
query III rowsort label-8015
SELECT + - COALESCE ( + CAST ( 19 AS INTEGER ), MAX ( 61 ), + - MAX ( 66 ) ), - SUM ( DISTINCT + 63 ) * + 7 AS col2, 89 AS col2
----
-19
-441
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8016
SELECT ALL 71 * - COUNT( * ) col1, 47
----
-71
47

skipif mysql # not compatible
query II rowsort label-8016
SELECT ALL 71 * - COUNT ( * ) col1, 47
----
-71
47

query I rowsort
SELECT ALL + COALESCE ( - 0, - 16 + + 30, + 87 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8018
SELECT DISTINCT + - COUNT( * ) DIV + 29 + - 72 + - NULLIF ( - 61, - 84 + - - AVG ( - + 23 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT + - COUNT ( * ) / + 29 + - 72 + - NULLIF ( - 61, - 84 + - - AVG ( - + 23 ) )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8019
SELECT MAX( CAST( NULL AS SIGNED ) ), 25 AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-8019
SELECT MAX ( CAST ( NULL AS INTEGER ) ), 25 AS col2
----
NULL
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT ALL ( - 96 ) / CASE NULLIF ( - 6, 97 * CASE + - 42 WHEN - + 9 * - 62 THEN + SUM( ALL + 15 ) / + 4 * + - ( - + 11 ) END + + ( - NULLIF ( - COALESCE ( 26, + 38 - CASE + 57 WHEN 66 * + 32 * - + 0 + + ( + 7 ) * - + 71 THEN + + AVG ( + - 88 ) * + 1 - - NULLIF ( - COUNT( * ), + COUNT( * ) ) / - CAST( - MIN( ALL 44 ) - - 7 AS SIGNED ) WHEN 94 THEN NULL ELSE NULL END, 1 + 25 ), COUNT( * ) ) ) + NULLIF ( 0 + - 78 * COUNT( * ), - 93 / + 67 + 34 * 44 ) * + 55 ) WHEN + 15 + - ( COUNT( * ) + + COUNT( * ) ) THEN COUNT( * ) * + 12 WHEN 5 THEN 41 WHEN - NULLIF ( 86, 0 ) + - 44 THEN + MIN( ALL 17 ) END + ( 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL ( - 96 ) / CASE NULLIF ( - 6, 97 * CASE + - 42 WHEN - + 9 * - 62 THEN + SUM ( ALL + 15 ) / + 4 * + - ( - + 11 ) END + + ( - NULLIF ( - COALESCE ( 26, + 38 - CASE + 57 WHEN 66 * + 32 * - + 0 + + ( + 7 ) * - + 71 THEN + + AVG ( + - 88 ) * + 1 - - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) / - CAST ( - MIN ( ALL 44 ) - - 7 AS INTEGER ) WHEN 94 THEN NULL ELSE NULL END, 1 + 25 ), COUNT ( * ) ) ) + NULLIF ( 0 + - 78 * COUNT ( * ), - 93 / + 67 + 34 * 44 ) * + 55 ) WHEN + 15 + - ( COUNT ( * ) + + COUNT ( * ) ) THEN COUNT ( * ) * + 12 WHEN 5 THEN 41 WHEN - NULLIF ( 86, 0 ) + - 44 THEN + MIN ( ALL 17 ) END + ( 66 )
----
NULL

query I rowsort
SELECT ( 52 ) col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT + ( - MIN( ALL - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT + ( - MIN ( ALL - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ( 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8024
SELECT ALL + 81 * + 62 + - - 47 AS col2, ( + 8 ) DIV - COUNT( * ) - + 55 AS col0
----
5069
-63

skipif mysql # not compatible
query II rowsort label-8024
SELECT ALL + 81 * + 62 + - - 47 AS col2, ( + 8 ) / - COUNT ( * ) - + 55 AS col0
----
5069
-63

query I rowsort
SELECT + 79 * 42 AS col0
----
3318

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT + 32 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT + 32 / + 66
----
0

query I rowsort
SELECT - 49 * - 68
----
3332

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT COALESCE ( + - 20, - COUNT( * ) ) col2, 65 AS col1
----
-20
65

skipif mysql # not compatible
query II rowsort label-8028
SELECT COALESCE ( + - 20, - COUNT ( * ) ) col2, 65 AS col1
----
-20
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * - CASE 81 WHEN - 89 THEN 45 + 10 - 64 ELSE - + 57 END + 0 + COALESCE ( + + 20, - CASE + SUM( - - 60 ) WHEN + + 50 THEN - 81 + + COALESCE ( + CAST( - 77 AS SIGNED ), COUNT( * ) * + 61 ) * + 72 ELSE NULL END + 94 - + 0 ) + + 19 * - SUM( DISTINCT - 87 ) + + COUNT( * ) col0
----
1617

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * - CASE 81 WHEN - 89 THEN 45 + 10 - 64 ELSE - + 57 END + 0 + COALESCE ( + + 20, - CASE + SUM ( - - 60 ) WHEN + + 50 THEN - 81 + + COALESCE ( + CAST ( - 77 AS INTEGER ), COUNT ( * ) * + 61 ) * + 72 ELSE NULL END + 94 - + 0 ) + + 19 * - SUM ( DISTINCT - 87 ) + + COUNT ( * ) col0
----
1617

query II rowsort
SELECT DISTINCT + 71 * - 99 + - + 4 AS col0, + 14
----
-7033
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8031
SELECT DISTINCT + NULLIF ( - 44, - 1 * - 71 ) AS col2, - COUNT( * ) + 78 AS col1
----
-44
77

skipif mysql # not compatible
query II rowsort label-8031
SELECT DISTINCT + NULLIF ( - 44, - 1 * - 71 ) AS col2, - COUNT ( * ) + 78 AS col1
----
-44
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT ALL - 24 DIV 57 * + + 89 * - 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL - 24 / 57 * + + 89 * - 1 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT + 13 * - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-8033
SELECT + 13 * - COUNT ( * )
----
-13

query I rowsort
SELECT - ( - - 72 ) * + + 86 AS col2
----
-6192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8035
SELECT 62 - - 75 * 25, CAST( - - 92 AS SIGNED ) + - ( - 16 ) * 69 * - 3 * - - 32 AS col2
----
1937
-105892

skipif mysql # not compatible
query II rowsort label-8035
SELECT 62 - - 75 * 25, CAST ( - - 92 AS INTEGER ) + - ( - 16 ) * 69 * - 3 * - - 32 AS col2
----
1937
-105892

onlyif mysql # DIV for integer division: 
query II rowsort label-8036
SELECT - 29 AS col1, 44 DIV + - 19
----
-29
-2

skipif mysql # not compatible
query II rowsort label-8036
SELECT - 29 AS col1, 44 / + - 19
----
-29
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8037
SELECT 72 + + COUNT( ALL 30 ) + + - CAST( NULL AS DECIMAL ) * + 51 * + 97 * + - 19 + 77, 40 AS col0
----
NULL
40

skipif mysql # not compatible
query II rowsort label-8037
SELECT 72 + + COUNT ( ALL 30 ) + + - CAST ( NULL AS REAL ) * + 51 * + 97 * + - 19 + 77, 40 AS col0
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + 25 * - + COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + 25 * - + COUNT ( * ) AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT COUNT( * ) + - + 16 + + + CASE - COUNT( * ) WHEN + COALESCE ( + - 30, + 37, + + 39 + + 16 ) + - + ( - + ( - + CAST( 60 AS SIGNED ) ) ) + - 13 * - + ( COUNT( * ) ) * 57 THEN - 76 * 5 END * + + CAST( - 31 AS SIGNED ) / + 75 * - 38 * + 5 - MIN( - ( - - 78 ) ) * 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT COUNT ( * ) + - + 16 + + + CASE - COUNT ( * ) WHEN + COALESCE ( + - 30, + 37, + + 39 + + 16 ) + - + ( - + ( - + CAST ( 60 AS INTEGER ) ) ) + - 13 * - + ( COUNT ( * ) ) * 57 THEN - 76 * 5 END * + + CAST ( - 31 AS INTEGER ) / + 75 * - 38 * + 5 - MIN ( - ( - - 78 ) ) * 13 AS col2
----
NULL

query I rowsort
SELECT - 84 col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL + 5 * - + 93 - + 80 + + + COALESCE ( - MIN( + + 11 ), - 10 ) * - 73 AS col1
----
258

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL + 5 * - + 93 - + 80 + + + COALESCE ( - MIN ( + + 11 ), - 10 ) * - 73 AS col1
----
258

query I rowsort
SELECT - 92 * + ( - - 64 ) AS col2
----
-5888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8043
SELECT CAST( NULL AS SIGNED ) + + 95 - + + CASE - + ( - + 90 ) WHEN 91 / 81 + - CASE - - 25 WHEN + MIN( - 71 ) THEN NULL WHEN - 68 * + 1 + + 22 * 6 THEN + 28 ELSE - - AVG ( ( + CAST( ( + 83 ) AS SIGNED ) ) ) END + 80 + - COUNT( * ) * - 56 THEN NULL WHEN - + 45 + - 11 THEN NULL ELSE COUNT( * ) * - ( + + COALESCE ( - 29, 72 * + 91 * + 13 * 78 ) ) END / 24 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT CAST ( NULL AS INTEGER ) + + 95 - + + CASE - + ( - + 90 ) WHEN 91 / 81 + - CASE - - 25 WHEN + MIN ( - 71 ) THEN NULL WHEN - 68 * + 1 + + 22 * 6 THEN + 28 ELSE - - AVG ( ( + CAST ( ( + 83 ) AS INTEGER ) ) ) END + 80 + - COUNT ( * ) * - 56 THEN NULL WHEN - + 45 + - 11 THEN NULL ELSE COUNT ( * ) * - ( + + COALESCE ( - 29, 72 * + 91 * + 13 * 78 ) ) END / 24 * 37
----
NULL

query I rowsort
SELECT 5 + - COALESCE ( - 31, + - 40 * 60 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT COUNT( * ) * 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8045
SELECT COUNT ( * ) * 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL + CASE 45 WHEN + - COUNT( * ) THEN + + COUNT( * ) WHEN 37 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL + CASE 45 WHEN + - COUNT ( * ) THEN + + COUNT ( * ) WHEN 37 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 87, + 24 ) AS col0
----
87

query I rowsort
SELECT ( - 30 ) AS col0
----
-30

query I rowsort
SELECT ALL + 73 * + 81 col2
----
5913

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8050
SELECT CAST( NULL AS DECIMAL ) * - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT CAST ( NULL AS REAL ) * - - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL - MIN( ALL - 18 ) + - 46
----
-28

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL - MIN ( ALL - 18 ) + - 46
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL COUNT( * ) + 12 - + 53 * 49 * - 29 AS col0
----
75326

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL COUNT ( * ) + 12 - + 53 * 49 * - 29 AS col0
----
75326

onlyif mysql # aggregate syntax: 
query II rowsort label-8053
SELECT - - COUNT( * ) * + + 10 - - 7 col1, COALESCE ( COUNT( * ), - 45 * + 53 - - COALESCE ( - ( - 39 ), - COUNT( DISTINCT - 41 ) ) )
----
17
1

skipif mysql # not compatible
query II rowsort label-8053
SELECT - - COUNT ( * ) * + + 10 - - 7 col1, COALESCE ( COUNT ( * ), - 45 * + 53 - - COALESCE ( - ( - 39 ), - COUNT ( DISTINCT - 41 ) ) )
----
17
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT DISTINCT - COUNT( * ) AS col2, + 5
----
-1
5

skipif mysql # not compatible
query II rowsort label-8054
SELECT DISTINCT - COUNT ( * ) AS col2, + 5
----
-1
5

query I rowsort
SELECT ALL 61 + + 99 col1
----
160

onlyif mysql # DIV for integer division: 
query II rowsort label-8056
SELECT - 31 * 58 DIV - - ( 60 ) col0, + 2 AS col0
----
-29
2

skipif mysql # not compatible
query II rowsort label-8056
SELECT - 31 * 58 / - - ( 60 ) col0, + 2 AS col0
----
-29
2

query I rowsort
SELECT - 88 * + + 71 + - 23 AS col2
----
-6271

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT MIN( + 6 ) * 75 - + 87 + - + 15
----
348

skipif mysql # not compatible
query I rowsort label-8058
SELECT MIN ( + 6 ) * 75 - + 87 + - + 15
----
348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8059
SELECT ALL MAX( ALL + 91 ) + + + ( - + 34 ) DIV + 5 + - 8 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL MAX ( ALL + 91 ) + + + ( - + 34 ) / + 5 + - 8 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL + COUNT( * ) + + + 68 - + + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + COUNT ( * ) + + + 68 - + + COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT 1 * + + NULLIF ( + 24, - MIN( + 52 ) ) + - - 57
----
81

skipif mysql # not compatible
query I rowsort label-8061
SELECT 1 * + + NULLIF ( + 24, - MIN ( + 52 ) ) + - - 57
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL 20 - + 27 + - 76 + + + 71 * - 14 * - - 81 - - CASE + 94 WHEN + 59 * + + 99 + COALESCE ( + 76, - 25 * CASE - 11 WHEN + + 69 THEN + - 81 WHEN + 82 / - 92 THEN - COALESCE ( - NULLIF ( + + COALESCE ( 52, + 24 + - 14, + - ( - 67 ) + 61 + + 45 ), + + COUNT( * ) ), - 17 ) / - 20 + ( + + 37 ) WHEN - COUNT( * ) + + 48 THEN NULL END, - 37 ) / + 42 THEN NULL WHEN - ( + ( 32 ) ) THEN 62 + + 35 / 4 ELSE NULL END / 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL 20 - + 27 + - 76 + + + 71 * - 14 * - - 81 - - CASE + 94 WHEN + 59 * + + 99 + COALESCE ( + 76, - 25 * CASE - 11 WHEN + + 69 THEN + - 81 WHEN + 82 / - 92 THEN - COALESCE ( - NULLIF ( + + COALESCE ( 52, + 24 + - 14, + - ( - 67 ) + 61 + + 45 ), + + COUNT ( * ) ), - 17 ) / - 20 + ( + + 37 ) WHEN - COUNT ( * ) + + 48 THEN NULL END, - 37 ) / + 42 THEN NULL WHEN - ( + ( 32 ) ) THEN 62 + + 35 / 4 ELSE NULL END / 26 AS col0
----
NULL

query I rowsort
SELECT 92 * - 81 + - 41
----
-7493

query I rowsort
SELECT ALL 66 * - 23 AS col0
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT 82 + + + 71 * + SUM( 60 ) + - 17 col1
----
4325

skipif mysql # not compatible
query I rowsort label-8065
SELECT 82 + + + 71 * + SUM ( 60 ) + - 17 col1
----
4325

query I rowsort
SELECT 53 * + ( + 49 )
----
2597

query I rowsort
SELECT 88 * + 5 AS col0
----
440

query I rowsort
SELECT 91 + + - 64
----
27

query II rowsort
SELECT DISTINCT 19 * + 16 * - + 58 * + 84 AS col0, + 17
----
-1481088
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8070
SELECT 78 * + + 20 * - - 22 * - + CAST( NULL AS SIGNED ) * + - 0 * + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT 78 * + + 20 * - - 22 * - + CAST ( NULL AS INTEGER ) * + - 0 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 65 * + 71
----
4615

query I rowsort
SELECT ALL 24 * - 72 AS col0
----
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8073
SELECT ALL - - 29 DIV 5 + - - COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - - 29 / 5 + - - COUNT ( * ) AS col0
----
6

query I rowsort
SELECT - 90 + + - 68
----
-158

query I rowsort
SELECT + 29 * 73 * + 1
----
2117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8076
SELECT + 13 DIV - MIN( 50 ) + + NULLIF ( + MAX( DISTINCT + 31 ), - 77 ) col2, - 41 * - 29 * + 24 * 71 + + COALESCE ( - CAST( + 61 AS SIGNED ), COUNT( * ) ) + - 77
----
31
2025918

skipif mysql # not compatible
query II rowsort label-8076
SELECT + 13 / - MIN ( 50 ) + + NULLIF ( + MAX ( DISTINCT + 31 ), - 77 ) col2, - 41 * - 29 * + 24 * 71 + + COALESCE ( - CAST ( + 61 AS INTEGER ), COUNT ( * ) ) + - 77
----
31
2025918

query I rowsort
SELECT - + COALESCE ( + + 90, 89 * - 57 ) AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8078
SELECT - SUM( - 39 ) + - + COALESCE ( + 94, + 5, 49 DIV + 39 * + - COUNT( * ) * 58 ) + 61
----
6

skipif mysql # not compatible
query I rowsort label-8078
SELECT - SUM ( - 39 ) + - + COALESCE ( + 94, + 5, 49 / + 39 * + - COUNT ( * ) * 58 ) + 61
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT - COUNT( - 14 ) + COUNT( * ) * 61 * + 42 - + 16
----
2545

skipif mysql # not compatible
query I rowsort label-8079
SELECT - COUNT ( - 14 ) + COUNT ( * ) * 61 * + 42 - + 16
----
2545

query I rowsort
SELECT ALL 49 + - 84
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT ALL + 33 + + ( 54 ) * 31 DIV - - ( - 98 )
----
16

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL + 33 + + ( 54 ) * 31 / - - ( - 98 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8082
SELECT ALL - 11 + 52 AS col1, SUM( DISTINCT + 11 ) + + 31
----
41
42

skipif mysql # not compatible
query II rowsort label-8082
SELECT ALL - 11 + 52 AS col1, SUM ( DISTINCT + 11 ) + + 31
----
41
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT - CASE - 11 WHEN + + 92 THEN - + 97 * + - COUNT( * ) ELSE NULL END AS col1, 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-8083
SELECT - CASE - 11 WHEN + + 92 THEN - + 97 * + - COUNT ( * ) ELSE NULL END AS col1, 18
----
NULL
18

query I rowsort
SELECT + 29 + - 10 + + NULLIF ( - - 63, 66 ) * - 12 AS col2
----
-737

query I rowsort
SELECT CASE 12 WHEN - 55 * + 22 THEN + + 57 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT ( 85 ) + + 38 DIV 44 * + + 53 + + + 97 DIV - 17 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8086
SELECT ( 85 ) + + 38 / 44 * + + 53 + + + 97 / - 17 AS col0
----
80

query I rowsort
SELECT 31 * - 21
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT MAX( ALL - 13 ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-8088
SELECT MAX ( ALL - 13 ) col2
----
-13

query I rowsort
SELECT DISTINCT 85 * - 57 AS col1
----
-4845

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT + COUNT( * ) * 7 - + ( - - 89 ) + - SUM( 72 ) * 41
----
-3034

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT + COUNT ( * ) * 7 - + ( - - 89 ) + - SUM ( 72 ) * 41
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT + COUNT( * ) * - - 10
----
10

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT + COUNT ( * ) * - - 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT + COUNT( ALL - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-8092
SELECT + COUNT ( ALL - 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT - SUM( ALL + 99 ) / + + 66 * 72 / - + CASE - ( - + COUNT( * ) ) WHEN 31 + - - ( + - 9 ) + + 97 THEN 48 WHEN + 10 THEN NULL END * ( COUNT( * ) ) * 30 + - 87 * - COALESCE ( + + 30, + 99 + 37 + - COUNT( * ), + 20 + ( - + ( + - 56 ) ) + + 60 + COALESCE ( + + 55, COALESCE ( + - 33, 77 ) * - COUNT( * ) ) * - + 36, + 11 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT - SUM ( ALL + 99 ) / + + 66 * 72 / - + CASE - ( - + COUNT ( * ) ) WHEN 31 + - - ( + - 9 ) + + 97 THEN 48 WHEN + 10 THEN NULL END * ( COUNT ( * ) ) * 30 + - 87 * - COALESCE ( + + 30, + 99 + 37 + - COUNT ( * ), + 20 + ( - + ( + - 56 ) ) + + 60 + COALESCE ( + + 55, COALESCE ( + - 33, 77 ) * - COUNT ( * ) ) * - + 36, + 11 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8094
SELECT - 66 - + ( - 91 ) AS col0, NULLIF ( 7, + COUNT( * ) ) AS col0
----
25
7

skipif mysql # not compatible
query II rowsort label-8094
SELECT - 66 - + ( - 91 ) AS col0, NULLIF ( 7, + COUNT ( * ) ) AS col0
----
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT SUM( - 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8095
SELECT SUM ( - 48 ) AS col2
----
-48

query I rowsort
SELECT DISTINCT - 52 * - + 71
----
3692

query I rowsort
SELECT + 36 * + - 47 AS col2
----
-1692

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT SUM( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8098
SELECT SUM ( DISTINCT - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT COUNT( ALL + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-8099
SELECT COUNT ( ALL + 55 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8100
SELECT COUNT( * ) AS col0, 31
----
1
31

skipif mysql # not compatible
query II rowsort label-8100
SELECT COUNT ( * ) AS col0, 31
----
1
31

query I rowsort
SELECT + 1 * - 76 + - 4 + - 18 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT COUNT( DISTINCT 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8102
SELECT COUNT ( DISTINCT 49 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8103
SELECT - - 67 * + + 65 * + + COUNT( - 8 ) * + CAST( - 7 AS SIGNED )
----
-30485

skipif mysql # not compatible
query I rowsort label-8103
SELECT - - 67 * + + 65 * + + COUNT ( - 8 ) * + CAST ( - 7 AS INTEGER )
----
-30485

query I rowsort
SELECT + 83 * + + 93
----
7719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8105
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + - ( + SUM( 53 ) ) * - - 55 / + - CASE - 92 WHEN - AVG ( 42 ) THEN 98 * + 21 END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + - ( + SUM ( 53 ) ) * - - 55 / + - CASE - 92 WHEN - AVG ( 42 ) THEN 98 * + 21 END * 77
----
NULL

query I rowsort
SELECT - + ( - - 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8107
SELECT - + 73 col0, 70 DIV 75 + - MAX( + 83 ) + - 37 + + + 36 + CAST( + - 24 AS SIGNED ) * + ( - ( + 53 ) ) + + 89 * 87 AS col1
----
-73
8931

skipif mysql # not compatible
query II rowsort label-8107
SELECT - + 73 col0, 70 / 75 + - MAX ( + 83 ) + - 37 + + + 36 + CAST ( + - 24 AS INTEGER ) * + ( - ( + 53 ) ) + + 89 * 87 AS col1
----
-73
8931

query I rowsort
SELECT + + 28 * - 67
----
-1876

query I rowsort
SELECT + 41 + + 97
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8110
SELECT ALL 80 * + ( MIN( - - 63 ) ) + + 69 - - + ( - ( COALESCE ( - 50, COUNT( * ) DIV + 46 + + 2 ) ) ) + - + COUNT( ( 19 ) ) + + 45 * - COUNT( * ) DIV + ( + 93 ) * - + 40 + - + 92 AS col0, + 38 * 54 * - - ( 57 ) * + 50
----
5066
5848200

skipif mysql # not compatible
query II rowsort label-8110
SELECT ALL 80 * + ( MIN ( - - 63 ) ) + + 69 - - + ( - ( COALESCE ( - 50, COUNT ( * ) / + 46 + + 2 ) ) ) + - + COUNT ( ( 19 ) ) + + 45 * - COUNT ( * ) / + ( + 93 ) * - + 40 + - + 92 AS col0, + 38 * 54 * - - ( 57 ) * + 50
----
5066
5848200

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT + 95 + + MAX( 64 ) * + - 69 AS col0
----
-4321

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT + 95 + + MAX ( 64 ) * + - 69 AS col0
----
-4321

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL NULLIF ( + 45, COALESCE ( - 79, + - MAX( 35 ) ) * 91 + - + COUNT( * ) ) + - COUNT( * ) - 75 * - 88 * COUNT( * )
----
6644

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL NULLIF ( + 45, COALESCE ( - 79, + - MAX ( 35 ) ) * 91 + - + COUNT ( * ) ) + - COUNT ( * ) - 75 * - 88 * COUNT ( * )
----
6644

query I rowsort
SELECT DISTINCT 98 + 57 AS col0
----
155

query I rowsort
SELECT + 68 + + 62
----
130

query I rowsort
SELECT ALL 38 + + 47 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT - NULLIF ( 84, + NULLIF ( 35, - - CASE - + 92 WHEN + 54 THEN 21 END * + ( + 25 ) * + ( - MAX( DISTINCT - 33 ) ) ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT - NULLIF ( 84, + NULLIF ( 35, - - CASE - + 92 WHEN + 54 THEN 21 END * + ( + 25 ) * + ( - MAX ( DISTINCT - 33 ) ) ) ) AS col1
----
-84

query I rowsort
SELECT ALL ( ( - 92 ) )
----
-92

query I rowsort
SELECT DISTINCT 65 + + + 12 AS col1
----
77

query I rowsort
SELECT + - 7 + + + 27 + + - 92 * + 52
----
-4764

query I rowsort
SELECT - - ( + NULLIF ( - 28, + 36 ) )
----
-28

query I rowsort
SELECT ( 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL - ( + + 9 ) + - 87 + ( + + 62 ) + + 82 * 86 - + - CAST( NULL AS SIGNED ) + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - ( + + 9 ) + - 87 + ( + + 62 ) + + 82 * 86 - + - CAST ( NULL AS INTEGER ) + + 17
----
NULL

query I rowsort
SELECT - - 24 AS col1
----
24

query I rowsort
SELECT DISTINCT + NULLIF ( + - 84, - 58 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT ALL - 19 - + MAX( + 1 ), + 41 AS col0
----
-20
41

skipif mysql # not compatible
query II rowsort label-8125
SELECT ALL - 19 - + MAX ( + 1 ), + 41 AS col0
----
-20
41

query I rowsort
SELECT + 88 * + 13 - 82 - 59 + + 46 * - 99 + + 99 + - 79
----
-3531

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT - SUM( DISTINCT - 42 ) * - - 88 col1
----
3696

skipif mysql # not compatible
query I rowsort label-8127
SELECT - SUM ( DISTINCT - 42 ) * - - 88 col1
----
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT ALL - 37 * + + CASE 83 WHEN + + ( + + CASE - COALESCE ( 93, + 8, - + COUNT( * ) ) WHEN - 56 THEN - SUM( + + 28 ) WHEN - + 2 + 53 THEN 70 END ) + - CASE 42 WHEN - 99 + - - 62 THEN - + 86 WHEN - - 52 THEN + CASE + 78 WHEN + 73 + + + MAX( + - CAST( NULL AS SIGNED ) ) + + 37 THEN + 21 * + 87 END * + ( + COUNT( * ) ) END + - 16 * 48 THEN - 65 * + 18 + + - 95 + + COUNT( NULLIF ( + 68, - 50 ) ) ELSE 95 + 63 * COUNT( * ) END * 91 AS col2
----
-531986

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - 37 * + + CASE 83 WHEN + + ( + + CASE - COALESCE ( 93, + 8, - + COUNT ( * ) ) WHEN - 56 THEN - SUM ( + + 28 ) WHEN - + 2 + 53 THEN 70 END ) + - CASE 42 WHEN - 99 + - - 62 THEN - + 86 WHEN - - 52 THEN + CASE + 78 WHEN + 73 + + + MAX ( + - CAST ( NULL AS INTEGER ) ) + + 37 THEN + 21 * + 87 END * + ( + COUNT ( * ) ) END + - 16 * 48 THEN - 65 * + 18 + + - 95 + + COUNT ( NULLIF ( + 68, - 50 ) ) ELSE 95 + 63 * COUNT ( * ) END * 91 AS col2
----
-531986

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT + 97 + - 2 + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8129
SELECT + 97 + - 2 + + COUNT ( * )
----
96

query II rowsort
SELECT + 48 AS col2, ( 55 ) AS col1
----
48
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT COUNT( * ) * - NULLIF ( + - 18, 4 ) + + - 12
----
6

skipif mysql # not compatible
query I rowsort label-8131
SELECT COUNT ( * ) * - NULLIF ( + - 18, 4 ) + + - 12
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ( ( + + COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8132
SELECT ( ( + + COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT NULLIF ( + 28, CASE + 16 WHEN 38 + COALESCE ( 59, - ( + 49 ) ) THEN + AVG ( - 63 ) + - AVG ( ALL - 41 ) WHEN + + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END ) * - 87 + - 90
----
-2526

skipif mysql # not compatible
query I rowsort label-8133
SELECT NULLIF ( + 28, CASE + 16 WHEN 38 + COALESCE ( 59, - ( + 49 ) ) THEN + AVG ( - 63 ) + - AVG ( ALL - 41 ) WHEN + + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END ) * - 87 + - 90
----
-2526

onlyif mysql # aggregate syntax: 
query II rowsort label-8134
SELECT - COUNT( * ) * + + ( + 7 ) * + + ( ( 96 ) ) AS col2, - 71 + 4 AS col2
----
-672
-67

skipif mysql # not compatible
query II rowsort label-8134
SELECT - COUNT ( * ) * + + ( + 7 ) * + + ( ( 96 ) ) AS col2, - 71 + 4 AS col2
----
-672
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8135
SELECT + NULLIF ( + + 3, + ( - - ( + 12 ) ) + + CASE + + COUNT( * ) WHEN 81 * ( - SUM( DISTINCT + 98 ) ) THEN 37 WHEN - NULLIF ( - 98, + 33 ) THEN NULL WHEN - ( + - 12 ) DIV - 5 * - COUNT( * ) + 69 * 7 + - + 10 THEN - COALESCE ( - 57, COUNT( * ) ) END ) DIV - 63 + + COUNT( * ) DIV - - 92 + + 5
----
5

skipif mysql # not compatible
query I rowsort label-8135
SELECT + NULLIF ( + + 3, + ( - - ( + 12 ) ) + + CASE + + COUNT ( * ) WHEN 81 * ( - SUM ( DISTINCT + 98 ) ) THEN 37 WHEN - NULLIF ( - 98, + 33 ) THEN NULL WHEN - ( + - 12 ) / - 5 * - COUNT ( * ) + 69 * 7 + - + 10 THEN - COALESCE ( - 57, COUNT ( * ) ) END ) / - 63 + + COUNT ( * ) / - - 92 + + 5
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8136
SELECT - ( - 20 ) DIV + ( 90 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT - ( - 20 ) / + ( 90 ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8137
SELECT DISTINCT + COALESCE ( ( ( + ( - 86 ) ) ), - 73 - + COUNT( * ), - 14 + - 5 + + 14 - + - 14 ) AS col1, + 47 + - 62
----
-86
-15

skipif mysql # not compatible
query II rowsort label-8137
SELECT DISTINCT + COALESCE ( ( ( + ( - 86 ) ) ), - 73 - + COUNT ( * ), - 14 + - 5 + + 14 - + - 14 ) AS col1, + 47 + - 62
----
-86
-15

query I rowsort
SELECT - 43 + + + 40 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL + 66 * - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL + 66 * - COUNT ( * ) AS col2
----
-66

query I rowsort
SELECT ( + - 78 ) AS col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT DISTINCT + 93 DIV + 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT + 93 / + 68 AS col0
----
1

query I rowsort
SELECT 66 * - - 48 * - 62 * - - 18 + - - 66
----
-3535422

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL ( + 40 ) * - 31 * + - COUNT( * ) + 97 AS col1
----
1337

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL ( + 40 ) * - 31 * + - COUNT ( * ) + 97 AS col1
----
1337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8144
SELECT - 92 * + 83 + + ( 62 ) + - + COUNT( * ) + - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT - 92 * + 83 + + ( 62 ) + - + COUNT ( * ) + - CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8145
SELECT COALESCE ( + ( + + COUNT( * ) ), - - 14 ) AS col0, - 26
----
1
-26

skipif mysql # not compatible
query II rowsort label-8145
SELECT COALESCE ( + ( + + COUNT ( * ) ), - - 14 ) AS col0, - 26
----
1
-26

query I rowsort
SELECT - + 37 * - - 94 col2
----
-3478

query II rowsort
SELECT + - 32 + + 86 - - - 88 - - + 51 AS col0, + 72 AS col2
----
17
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL + 90 * + 0 + + COALESCE ( - 90, + 96 ) - - CAST( NULL AS SIGNED ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + 90 * + 0 + + COALESCE ( - 90, + 96 ) - - CAST ( NULL AS INTEGER ) * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT + MIN( ALL 3 ) + 98 + - + MIN( DISTINCT NULLIF ( 17, + - 31 ) ) - - SUM( + + 91 ) * 29 * + 83 AS col0
----
219121

skipif mysql # not compatible
query I rowsort label-8149
SELECT + MIN ( ALL 3 ) + 98 + - + MIN ( DISTINCT NULLIF ( 17, + - 31 ) ) - - SUM ( + + 91 ) * 29 * + 83 AS col0
----
219121

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT - COUNT( * ) * 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8150
SELECT - COUNT ( * ) * 77 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT COUNT( * ) col1, - MAX( + 18 ) * - ( - 20 ) + - + 7
----
1
-367

skipif mysql # not compatible
query II rowsort label-8151
SELECT COUNT ( * ) col1, - MAX ( + 18 ) * - ( - 20 ) + - + 7
----
1
-367

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - 39 * + COUNT( - + ( + 21 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-8152
SELECT - 39 * + COUNT ( - + ( + 21 ) )
----
-39

query I rowsort
SELECT DISTINCT - ( 47 )
----
-47

query I rowsort
SELECT CASE - - 71 WHEN - ( + 98 ) THEN + 5 END AS col1
----
NULL

query II rowsort
SELECT - - 60 AS col0, 24 - + 71 AS col2
----
60
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ( - COUNT( DISTINCT - 46 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8156
SELECT ( - COUNT ( DISTINCT - 46 ) )
----
-1

query I rowsort
SELECT + + 56 * - - 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8158
SELECT ALL MIN( DISTINCT + CAST( 44 AS SIGNED ) ) - - 92
----
136

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL MIN ( DISTINCT + CAST ( 44 AS INTEGER ) ) - - 92
----
136

query I rowsort
SELECT + - 28 + - 51 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT + 55 - - COALESCE ( + ( - 40 ), + 41 + - 83 * + - MIN( 86 ) ) * + 48 AS col2
----
-1865

skipif mysql # not compatible
query I rowsort label-8160
SELECT + 55 - - COALESCE ( + ( - 40 ), + 41 + - 83 * + - MIN ( 86 ) ) * + 48 AS col2
----
-1865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8161
SELECT + + CASE + 29 WHEN 40 THEN 35 + - ( + CAST( + ( ( 23 ) ) AS SIGNED ) ) * 1 END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT + + CASE + 29 WHEN 40 THEN 35 + - ( + CAST ( + ( ( 23 ) ) AS INTEGER ) ) * 1 END + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( - ( + 71 ) ) AS col0
----
-71

query I rowsort
SELECT ALL 38 * + - 54
----
-2052

query I rowsort
SELECT - NULLIF ( + ( 71 ), 59 * + 88 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT ALL NULLIF ( 40, CAST( NULL AS SIGNED ) + 91 - 1 * - 87 * 28 * 42 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL NULLIF ( 40, CAST ( NULL AS INTEGER ) + 91 - 1 * - 87 * 28 * 42 ) AS col0
----
40

query I rowsort
SELECT + 26 + 52
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT + SUM( - + 91 ) * - NULLIF ( 74, - 4 ) * + 54 AS col0
----
363636

skipif mysql # not compatible
query I rowsort label-8167
SELECT + SUM ( - + 91 ) * - NULLIF ( 74, - 4 ) * + 54 AS col0
----
363636

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT SUM( DISTINCT - - 83 ) * + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8168
SELECT SUM ( DISTINCT - - 83 ) * + COUNT ( * ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8169
SELECT 56 DIV 30 * + 39 * 72
----
2808

skipif mysql # not compatible
query I rowsort label-8169
SELECT 56 / 30 * + 39 * 72
----
2808

query I rowsort
SELECT 92 * - - 97
----
8924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8171
SELECT CAST( - + 31 AS SIGNED ) DIV - COUNT( * ) + + 63 + - 3 DIV 59 + - - ( - ( + + 88 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8171
SELECT CAST ( - + 31 AS INTEGER ) / - COUNT ( * ) + + 63 + - 3 / 59 + - - ( - ( + + 88 ) ) AS col0
----
6

query I rowsort
SELECT 91 * - 88
----
-8008

query I rowsort
SELECT ALL 1 + 53
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT COUNT( * ) + 91 + - 39 * - ( - 32 ) * + + ( - 99 ) col0
----
123644

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT COUNT ( * ) + 91 + - 39 * - ( - 32 ) * + + ( - 99 ) col0
----
123644

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL - COUNT( * ) + - 72 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - COUNT ( * ) + - 72 AS col0
----
-73

query I rowsort
SELECT ( + 24 ) * - 83 AS col0
----
-1992

query I rowsort
SELECT 16 * - + COALESCE ( - + 0, + 42 ) * + 69 + 60 + + + 5
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8178
SELECT CAST( + 74 AS SIGNED ) - + + 17 DIV + ( + 63 ) AS col1, + 40 col0
----
74
40

skipif mysql # not compatible
query II rowsort label-8178
SELECT CAST ( + 74 AS INTEGER ) - + + 17 / + ( + 63 ) AS col1, + 40 col0
----
74
40

query II rowsort
SELECT + 9 - - 67 col1, ( 7 ) * - 45 * - 48 * - 83
----
76
-1254960

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL + - 42 + - MIN( DISTINCT + 67 ) + + 16
----
-93

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL + - 42 + - MIN ( DISTINCT + 67 ) + + 16
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT CASE - 4 WHEN - 73 * 66 + + + 90 / AVG ( ALL CAST( + - 63 AS SIGNED ) ) * 78 + - 75 + + + 32 - COALESCE ( - 43, - ( + COUNT( * ) ), - COUNT( * ) * 1, + - 36 * + COUNT( * ) ) THEN - AVG ( DISTINCT + + CAST( + - 30 AS SIGNED ) ) * + + 37 * - 49 END * + 61 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT CASE - 4 WHEN - 73 * 66 + + + 90 / AVG ( ALL CAST ( + - 63 AS INTEGER ) ) * 78 + - 75 + + + 32 - COALESCE ( - 43, - ( + COUNT ( * ) ), - COUNT ( * ) * 1, + - 36 * + COUNT ( * ) ) THEN - AVG ( DISTINCT + + CAST ( + - 30 AS INTEGER ) ) * + + 37 * - 49 END * + 61 col0
----
NULL

query I rowsort
SELECT ALL + 95 + 35 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT - - COUNT( * ) * ( 85 ) + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-8183
SELECT - - COUNT ( * ) * ( 85 ) + + COUNT ( * )
----
86

query I rowsort
SELECT 28 - 53 * + 54 col2
----
-2834

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL - - COALESCE ( MAX( ALL + 15 ), - 22 )
----
15

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL - - COALESCE ( MAX ( ALL + 15 ), - 22 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT COUNT( * ) * + 80, + 59 * - 19 AS col1
----
80
-1121

skipif mysql # not compatible
query II rowsort label-8186
SELECT COUNT ( * ) * + 80, + 59 * - 19 AS col1
----
80
-1121

query I rowsort
SELECT ALL + 93 * 73 - - 88 * 52 AS col1
----
11365

query I rowsort
SELECT DISTINCT + - 96 * + 83
----
-7968

query I rowsort
SELECT - 75 * - 8 * 78 AS col1
----
46800

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT DISTINCT + CASE - - COUNT( * ) WHEN ( - 85 ) THEN + ( - CASE 11 WHEN + SUM( - ( - 48 ) ) THEN + 75 END ) ELSE + - ( 52 ) * - 21 + - 46 END, + COUNT( * ) AS col0
----
1046
1

skipif mysql # not compatible
query II rowsort label-8190
SELECT DISTINCT + CASE - - COUNT ( * ) WHEN ( - 85 ) THEN + ( - CASE 11 WHEN + SUM ( - ( - 48 ) ) THEN + 75 END ) ELSE + - ( 52 ) * - 21 + - 46 END, + COUNT ( * ) AS col0
----
1046
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT COUNT( * ) * + + 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8191
SELECT COUNT ( * ) * + + 5 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8192
SELECT DISTINCT 2 * - - 41 * + 69 AS col2, + COUNT( * ) * - 65 * 5 col2, - - COUNT( * ) * 77 * + CAST( + 60 AS SIGNED ) + + + 54
----
5658
-325
4674

skipif mysql # not compatible
query III rowsort label-8192
SELECT DISTINCT 2 * - - 41 * + 69 AS col2, + COUNT ( * ) * - 65 * 5 col2, - - COUNT ( * ) * 77 * + CAST ( + 60 AS INTEGER ) + + + 54
----
5658
-325
4674

query I rowsort
SELECT 63 - - CASE - 55 WHEN - 11 THEN - 37 END + - 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT ALL + 11 DIV + - ( - 48 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL + 11 / + - ( - 48 ) AS col0
----
0

query I rowsort
SELECT 72 * - 9
----
-648

query I rowsort
SELECT DISTINCT 55 * - 50
----
-2750

query I rowsort
SELECT DISTINCT - 93 * + 12 * - - ( + 72 ) AS col0
----
-80352

query I rowsort
SELECT ALL 25 + + CASE + 87 WHEN - 35 * 83 THEN NULL WHEN 78 THEN NULL ELSE - 25 END AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT 91 DIV - + 22
----
-4

skipif mysql # not compatible
query I rowsort label-8199
SELECT 91 / - + 22
----
-4

query I rowsort
SELECT ALL 1 + + 15 + - 89
----
-73

query I rowsort
SELECT DISTINCT 60 + - ( - - 77 ) - + ( - - 56 ) AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8202
SELECT + ( - 51 ) * - 66 * + ( - 29 ) + - + ( + CASE + COUNT( * ) WHEN - 53 THEN + 79 + - - 12 + ( - 41 ) + 59 * + 26 ELSE COUNT( * ) * - 7 END ) + + CAST( - COUNT( * ) AS SIGNED ) * - 61 * + 98 * - + COUNT( 93 ) AS col2
----
-103585

skipif mysql # not compatible
query I rowsort label-8202
SELECT + ( - 51 ) * - 66 * + ( - 29 ) + - + ( + CASE + COUNT ( * ) WHEN - 53 THEN + 79 + - - 12 + ( - 41 ) + 59 * + 26 ELSE COUNT ( * ) * - 7 END ) + + CAST ( - COUNT ( * ) AS INTEGER ) * - 61 * + 98 * - + COUNT ( 93 ) AS col2
----
-103585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8203
SELECT ( - CAST( - 42 AS SIGNED ) ) - + + 4 + - - 44 DIV + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8203
SELECT ( - CAST ( - 42 AS INTEGER ) ) - + + 4 + - - 44 / + COUNT ( * ) AS col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT 17 DIV + + COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8204
SELECT 17 / + + COUNT ( * ) AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT ( + 50 ) * + 8 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT ( + 50 ) * + 8 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT SUM( ALL ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT SUM ( ALL ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8207
SELECT + 84 DIV + + 45 + - - ( - - 21 ) AS col2, 88 AS col0
----
22
88

skipif mysql # not compatible
query II rowsort label-8207
SELECT + 84 / + + 45 + - - ( - - 21 ) AS col2, 88 AS col0
----
22
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT ALL 18 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL 18 / 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8209
SELECT - - 3 * + + MAX( 53 ) + - - ( + - 61 ) * - 27 AS col0, 48 * - CAST( NULL AS SIGNED ) * 30 AS col0, - ( + + 99 )
----
1806
NULL
-99

skipif mysql # not compatible
query III rowsort label-8209
SELECT - - 3 * + + MAX ( 53 ) + - - ( + - 61 ) * - 27 AS col0, 48 * - CAST ( NULL AS INTEGER ) * 30 AS col0, - ( + + 99 )
----
1806
NULL
-99

query I rowsort
SELECT DISTINCT + ( 34 ) * - 27 AS col1
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT + 16 - + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT + 16 - + COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + CASE + 56 WHEN - + COUNT( * ) THEN - - 36 WHEN - + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT + CASE + 56 WHEN - + COUNT ( * ) THEN - - 36 WHEN - + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 57 + 8 AS col1
----
-49

query I rowsort
SELECT ALL - 83 - - + 9 * - ( 8 ) - + 47 AS col0
----
-202

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT + + COALESCE ( - 11, - 13 DIV + + 32, 61 )
----
-11

skipif mysql # not compatible
query I rowsort label-8215
SELECT + + COALESCE ( - 11, - 13 / + + 32, 61 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT COUNT( * ) + - ( + 68 )
----
-67

skipif mysql # not compatible
query I rowsort label-8216
SELECT COUNT ( * ) + - ( + 68 )
----
-67

query II rowsort
SELECT ALL - - 49 col2, - 8 + 95
----
49
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8218
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 97 AS col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8220
SELECT DISTINCT - ( - 6 ) DIV - ( - COUNT( * ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT - ( - 6 ) / - ( - COUNT ( * ) ) AS col0
----
6

query II rowsort
SELECT ALL - 9 AS col1, 4 * + - 79 - - + 53 - - + 93 + + 19 * + + 64 col2
----
-9
1046

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT ALL 40 AS col2, COUNT( * ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-8222
SELECT ALL 40 AS col2, COUNT ( * ) AS col1
----
40
1

query I rowsort
SELECT 99 * + 76 * 77 * ( + 82 )
----
47506536

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT DISTINCT - 40 DIV + + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT - 40 / + + 84 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT - + ( 92 ) + 64 / - + CAST( NULL AS SIGNED ) * + 19 / 31 * - + AVG ( - + 58 ) * + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT - + ( 92 ) + 64 / - + CAST ( NULL AS INTEGER ) * + 19 / 31 * - + AVG ( - + 58 ) * + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT - - COUNT( 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8226
SELECT - - COUNT ( 77 ) AS col0
----
1

query I rowsort
SELECT ALL - - 31 * 66 AS col2
----
2046

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT - 74 DIV 62 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8228
SELECT - 74 / 62 AS col0
----
-1

query I rowsort
SELECT - 79 * - 51
----
4029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT - CAST( + 40 AS SIGNED ) * 50 col2
----
-2000

skipif mysql # not compatible
query I rowsort label-8230
SELECT - CAST ( + 40 AS INTEGER ) * 50 col2
----
-2000

query I rowsort
SELECT ALL + 6 + 79 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT - ( - CASE + 5 WHEN + + 18 THEN NULL WHEN - 35 THEN + COUNT( * ) * + 31 ELSE MAX( 55 ) END ) + - 6 * 12 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8232
SELECT - ( - CASE + 5 WHEN + + 18 THEN NULL WHEN - 35 THEN + COUNT ( * ) * + 31 ELSE MAX ( 55 ) END ) + - 6 * 12 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL - 79 * - MAX( + - 93 )
----
-7347

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL - 79 * - MAX ( + - 93 )
----
-7347

query I rowsort
SELECT DISTINCT + 24 + + COALESCE ( + - 84, - 63, + 65 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT - 34 DIV 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - 34 / 28 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8236
SELECT - CAST( NULL AS SIGNED ) * - 85, 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-8236
SELECT - CAST ( NULL AS INTEGER ) * - 85, 23 AS col1
----
NULL
23

query I rowsort
SELECT ALL - 6 + - + 52 * - + 17 AS col2
----
878

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT DISTINCT + 52 + 99 + - 99 * MAX( DISTINCT - 58 ) AS col2
----
5893

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT + 52 + 99 + - 99 * MAX ( DISTINCT - 58 ) AS col2
----
5893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8239
SELECT ALL COUNT( * ) + + 39, + 3 + - 8 + 23 - - 36 * - CAST( - CASE 83 WHEN + + 48 THEN 1 END AS SIGNED ) * CAST( NULL AS SIGNED ) col2, - - ( + SUM( ALL - 6 ) ) col0
----
40
NULL
-6

skipif mysql # not compatible
query III rowsort label-8239
SELECT ALL COUNT ( * ) + + 39, + 3 + - 8 + 23 - - 36 * - CAST ( - CASE 83 WHEN + + 48 THEN 1 END AS INTEGER ) * CAST ( NULL AS INTEGER ) col2, - - ( + SUM ( ALL - 6 ) ) col0
----
40
NULL
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8240
SELECT - COALESCE ( 79, + 97 + - - 67 + 3 + 44 ) + - MAX( DISTINCT - + ( + + 48 ) ) AS col1, + 60 AS col1
----
-31
60

skipif mysql # not compatible
query II rowsort label-8240
SELECT - COALESCE ( 79, + 97 + - - 67 + 3 + 44 ) + - MAX ( DISTINCT - + ( + + 48 ) ) AS col1, + 60 AS col1
----
-31
60

query I rowsort
SELECT ALL NULLIF ( - 32, - ( - 99 ) )
----
-32

query I rowsort
SELECT - 54 * + 98 * 74 * - 4 * ( - 33 )
----
-51692256

onlyif mysql # aggregate syntax: 
query II rowsort label-8243
SELECT ALL COALESCE ( - - 53, - 36 ) * 15 * 72 + - + COUNT( * ) * 7 / CASE + - 29 WHEN + 76 THEN + COUNT( * ) ELSE NULL END * 42, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8243
SELECT ALL COALESCE ( - - 53, - 36 ) * 15 * 72 + - + COUNT ( * ) * 7 / CASE + - 29 WHEN + 76 THEN + COUNT ( * ) ELSE NULL END * 42, - COUNT ( * ) AS col2
----
NULL
-1

query I rowsort
SELECT ALL + ( 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8245
SELECT DISTINCT - SUM( ALL 94 ) DIV - MAX( ALL - 1 ) DIV - COUNT( * ) + + 26 + + CASE 3 WHEN - 78 THEN NULL WHEN + ( - 23 ) * - - CASE + - COUNT( ALL 23 ) WHEN - 67 THEN COUNT( - - 56 ) + + 27 WHEN ( 2 ) THEN 82 * + 22 * 90 * - 1 + + - 40 ELSE NULL END * + + 64 * NULLIF ( - + 81, 1 DIV 14 * - 50 DIV + - COUNT( * ) ) + + - 89 - + 33 THEN NULL WHEN - 73 THEN ( - 98 ) ELSE - + 91 + + 91 * 14 END AS col1
----
1303

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - SUM ( ALL 94 ) / - MAX ( ALL - 1 ) / - COUNT ( * ) + + 26 + + CASE 3 WHEN - 78 THEN NULL WHEN + ( - 23 ) * - - CASE + - COUNT ( ALL 23 ) WHEN - 67 THEN COUNT ( - - 56 ) + + 27 WHEN ( 2 ) THEN 82 * + 22 * 90 * - 1 + + - 40 ELSE NULL END * + + 64 * NULLIF ( - + 81, 1 / 14 * - 50 / + - COUNT ( * ) ) + + - 89 - + 33 THEN NULL WHEN - 73 THEN ( - 98 ) ELSE - + 91 + + 91 * 14 END AS col1
----
1303

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ( - CASE + 40 WHEN - 93 * + ( + ( - + 37 ) ) + - COALESCE ( - 74, 22, + ( + 6 ), - + 93 * - 57 ) THEN - MIN( DISTINCT + 80 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT ( - CASE + 40 WHEN - 93 * + ( + ( - + 37 ) ) + - COALESCE ( - 74, 22, + ( + 6 ), - + 93 * - 57 ) THEN - MIN ( DISTINCT + 80 ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8247
SELECT ALL - + ( - 44 ) * + COUNT( ALL - 42 ) col2, - 14 col0
----
44
-14

skipif mysql # not compatible
query II rowsort label-8247
SELECT ALL - + ( - 44 ) * + COUNT ( ALL - 42 ) col2, - 14 col0
----
44
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT + + ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT + + ( - - COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT + - ( + 63 ), - 23 AS col0
----
-63
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT + + COUNT( - + 42 ) * + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8250
SELECT + + COUNT ( - + 42 ) * + 65 AS col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT ALL + 63 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL + 63 / + 90 AS col2
----
0

query I rowsort
SELECT + 7 - 90 * - 87 AS col1
----
7837

query I rowsort
SELECT DISTINCT + + 82 AS col1
----
82

query I rowsort
SELECT ALL ( + 11 ) * 81
----
891

query I rowsort
SELECT + + 66 * + + ( - ( + + 39 ) ) * - - 27 * - 75 AS col2
----
5212350

query I rowsort
SELECT DISTINCT + ( + 24 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8257
SELECT + 95 * - 85 + COUNT( * ) + + 87 - + + 51 DIV - + 59 AS col2
----
-7987

skipif mysql # not compatible
query I rowsort label-8257
SELECT + 95 * - 85 + COUNT ( * ) + + 87 - + + 51 / - + 59 AS col2
----
-7987

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT + + 16 - + 93 + + COUNT( * ) * + 74
----
-3

skipif mysql # not compatible
query I rowsort label-8258
SELECT + + 16 - + 93 + + COUNT ( * ) * + 74
----
-3

query I rowsort
SELECT ALL + 11 * + + 2 - + CASE + 84 WHEN + 97 THEN + 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT + - 5 * - - COUNT( * ) + + + 89 + + 74 col1
----
158

skipif mysql # not compatible
query I rowsort label-8260
SELECT + - 5 * - - COUNT ( * ) + + + 89 + + 74 col1
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT - 8 * - + 21 + 77 * + - SUM( ALL 42 ) DIV 6 - - + 33 + - - 20 AS col1
----
-318

skipif mysql # not compatible
query I rowsort label-8261
SELECT - 8 * - + 21 + 77 * + - SUM ( ALL 42 ) / 6 - - + 33 + - - 20 AS col1
----
-318

query I rowsort
SELECT - - NULLIF ( - 97, + 19 ) AS col2
----
-97

query I rowsort
SELECT + 68 * 53 AS col0
----
3604

query I rowsort
SELECT ALL 50 + - 36 AS col1
----
14

query I rowsort
SELECT ALL 85 + + - 22 AS col0
----
63

query II rowsort
SELECT - 97 AS col1, 95 * + 18 AS col2
----
-97
1710

query I rowsort
SELECT ALL + 75 + - 66 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT - 72 * + + CAST( NULL AS SIGNED ) * + - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT - 72 * + + CAST ( NULL AS INTEGER ) * + - 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT ALL + COUNT( * ) DIV + - 93 col0
----
0

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL + COUNT ( * ) / + - 93 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8270
SELECT 90 col0, - 34 * - - CAST( 26 AS SIGNED )
----
90
-884

skipif mysql # not compatible
query II rowsort label-8270
SELECT 90 col0, - 34 * - - CAST ( 26 AS INTEGER )
----
90
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT - 90 DIV - - 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8271
SELECT - 90 / - - 70 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - 49 + + + MAX( - 4 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8272
SELECT - 49 + + + MAX ( - 4 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT DISTINCT + 30 * - CASE 88 WHEN COUNT( * ) * - MIN( + - 1 ) THEN - 25 WHEN 30 THEN + + 83 ELSE + 24 END
----
-720

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT + 30 * - CASE 88 WHEN COUNT ( * ) * - MIN ( + - 1 ) THEN - 25 WHEN 30 THEN + + 83 ELSE + 24 END
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT - 78 - 98 + - COUNT( * ) - + SUM( 8 ) * - - 41
----
-505

skipif mysql # not compatible
query I rowsort label-8274
SELECT - 78 - 98 + - COUNT ( * ) - + SUM ( 8 ) * - - 41
----
-505

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT - ( + 8 ) + + 36 DIV + 42
----
-8

skipif mysql # not compatible
query I rowsort label-8275
SELECT - ( + 8 ) + + 36 / + 42
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT DISTINCT CAST( + 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT CAST ( + 95 AS INTEGER )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT DISTINCT + COUNT( * ) * - + 3
----
-3

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + COUNT ( * ) * - + 3
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT ALL + 85 DIV 68
----
1

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + 85 / 68
----
1

query I rowsort
SELECT DISTINCT ( + 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8280
SELECT + 15 DIV + 76 - CASE + 43 WHEN + + 7 THEN + ( - SUM( ALL + ( - 84 ) ) ) ELSE 79 END * + - 22 AS col1, 5 * 95
----
1738
475

skipif mysql # not compatible
query II rowsort label-8280
SELECT + 15 / + 76 - CASE + 43 WHEN + + 7 THEN + ( - SUM ( ALL + ( - 84 ) ) ) ELSE 79 END * + - 22 AS col1, 5 * 95
----
1738
475

query I rowsort
SELECT ALL + + 86 AS col2
----
86

query I rowsort
SELECT - 25 + + ( - 90 ) + NULLIF ( + 45, + ( + 36 ) )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8283
SELECT - + 78 * 23 * - + CAST( NULL AS SIGNED ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT - + 78 * 23 * - + CAST ( NULL AS INTEGER ) + - 19
----
NULL

query I rowsort
SELECT CASE 31 WHEN AVG ( 11 ) THEN + 40 ELSE NULL END * + - COALESCE ( + 90, 45 / + + 19 + + 76, - 77 ) + - 93 * 71 col0
----
NULL

query I rowsort
SELECT + 48 * - - 59 AS col1
----
2832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT - CAST( NULL AS SIGNED ) / + 6 / 71 + + - MAX( ALL - 22 ) + COUNT( DISTINCT - ( + 10 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT - CAST ( NULL AS INTEGER ) / + 6 / 71 + + - MAX ( ALL - 22 ) + COUNT ( DISTINCT - ( + 10 ) )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 3, 66 + NULLIF ( + ( 11 ), + - 45 - + 11 * 91 ) )
----
3

query I rowsort
SELECT - 5 + + + 83 + 45 * - + 65
----
-2847

query I rowsort
SELECT ALL + 6 * + 87 * 69 * 48
----
1728864

onlyif mysql # DIV for integer division: 
query II rowsort label-8290
SELECT - - 95 * 31 * 12 AS col1, + 24 DIV + 46 AS col1
----
35340
0

skipif mysql # not compatible
query II rowsort label-8290
SELECT - - 95 * 31 * 12 AS col1, + 24 / + 46 AS col1
----
35340
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT - 60 * + MAX( - 98 ) + + 14
----
5894

skipif mysql # not compatible
query I rowsort label-8291
SELECT - 60 * + MAX ( - 98 ) + + 14
----
5894

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL + + MAX( ALL 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + + MAX ( ALL 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT + + ( - 51 ) * - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT + + ( - 51 ) * - COUNT ( * )
----
51

query I rowsort
SELECT + 72 * + + 10
----
720

onlyif mysql # DIV for integer division: 
query II rowsort label-8295
SELECT 70 DIV - + COALESCE ( - + NULLIF ( + + 38, - 18 + + + 60 * 84 ), + 70 ) AS col1, 50 * - - 66
----
1
3300

skipif mysql # not compatible
query II rowsort label-8295
SELECT 70 / - + COALESCE ( - + NULLIF ( + + 38, - 18 + + + 60 * 84 ), + 70 ) AS col1, 50 * - - 66
----
1
3300

query I rowsort
SELECT 59 * + - ( 90 ) AS col0
----
-5310

query I rowsort
SELECT DISTINCT 34 + + 19
----
53

query I rowsort
SELECT ALL 38 + - - 20 + - 9 * COALESCE ( + 18, - + 16 * - 33 + 38 - + 56 ) AS col0
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT DISTINCT - CASE + 18 WHEN 18 THEN + 83 WHEN - + 70 + + 52 - 36 + + 52 * + - CAST( NULL AS SIGNED ) / + ( - ( - 55 ) ) * - AVG ( ALL 50 ) + + 17 * 86 - - - 60 THEN NULL WHEN - - 49 THEN NULL ELSE NULL END + 64 col0
----
-19

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT - CASE + 18 WHEN 18 THEN + 83 WHEN - + 70 + + 52 - 36 + + 52 * + - CAST ( NULL AS INTEGER ) / + ( - ( - 55 ) ) * - AVG ( ALL 50 ) + + 17 * 86 - - - 60 THEN NULL WHEN - - 49 THEN NULL ELSE NULL END + 64 col0
----
-19

query I rowsort
SELECT DISTINCT 50 + + - 20 AS col1
----
30

query I rowsort
SELECT ALL 9 + + 90
----
99

query II rowsort
SELECT 73 AS col2, - 6 * - 20 col1
----
73
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT NULLIF ( + 64, + 81 ) + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT NULLIF ( + 64, + 81 ) + + COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT 81, + CASE + COALESCE ( - - 41, 19 * + 18 - 78, + 26 ) WHEN + + 63 THEN - 23 - - - COUNT( * ) / + 91 / + 77 WHEN - 71 * - - MAX( ALL - + 57 ) + 69 THEN - COUNT( * ) WHEN 55 + + + 19 * + 64 * + 74 THEN NULL END AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-8304
SELECT 81, + CASE + COALESCE ( - - 41, 19 * + 18 - 78, + 26 ) WHEN + + 63 THEN - 23 - - - COUNT ( * ) / + 91 / + 77 WHEN - 71 * - - MAX ( ALL - + 57 ) + 69 THEN - COUNT ( * ) WHEN 55 + + + 19 * + 64 * + 74 THEN NULL END AS col1
----
81
NULL

query I rowsort
SELECT DISTINCT 37 * + 30 AS col1
----
1110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8306
SELECT DISTINCT CASE 83 WHEN - - CAST( NULL AS DECIMAL ) + + 81 THEN - 2 * 93 + + + 3 WHEN - - 23 + 5 THEN - 93 * + + 1 END + - 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT CASE 83 WHEN - - CAST ( NULL AS REAL ) + + 81 THEN - 2 * 93 + + + 3 WHEN - - 23 + 5 THEN - 93 * + + 1 END + - 54 col2
----
NULL

query I rowsort
SELECT 17 + + - 35 + + - 77 * + 94 AS col1
----
-7256

query I rowsort
SELECT ALL 72 * 76 * - - 66
----
361152

query I rowsort
SELECT ALL 31 - + 1 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8310
SELECT DISTINCT 1 * - MAX( ALL + CASE - ( + 92 ) WHEN - 56 THEN NULL ELSE + 48 * - CAST( + - 0 AS SIGNED ) + + 52 END ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT 1 * - MAX ( ALL + CASE - ( + 92 ) WHEN - 56 THEN NULL ELSE + 48 * - CAST ( + - 0 AS INTEGER ) + + 52 END ) AS col0
----
-52

query I rowsort
SELECT NULLIF ( + 52, - 52 ) - + - 96 AS col1
----
148

query II rowsort
SELECT ALL 62 AS col1, 1 AS col2
----
62
1

query II rowsort
SELECT - 63, 76 AS col0
----
-63
76

query I rowsort
SELECT ALL 95 - - 36 * + - NULLIF ( 52, - 97 ) AS col0
----
-1777

query II rowsort
SELECT ALL 20 AS col0, 34
----
20
34

query I rowsort
SELECT 26 * + - 18
----
-468

query I rowsort
SELECT 32 + + 37 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT ALL - 46 col2, + SUM( ALL + + 62 ) AS col1
----
-46
62

skipif mysql # not compatible
query II rowsort label-8318
SELECT ALL - 46 col2, + SUM ( ALL + + 62 ) AS col1
----
-46
62

query II rowsort
SELECT - 53 * + 73, + 95 - + 34 AS col2
----
-3869
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT 49 + + SUM( - 82 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8320
SELECT 49 + + SUM ( - 82 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT SUM( + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8321
SELECT SUM ( + 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - MAX( - COALESCE ( + 53, 66, - 89 * + 18 + 46 * 47 ) ) * - 32 - + 13 - COUNT( * ) AS col2
----
-1710

skipif mysql # not compatible
query I rowsort label-8322
SELECT - MAX ( - COALESCE ( + 53, 66, - 89 * + 18 + 46 * 47 ) ) * - 32 - + 13 - COUNT ( * ) AS col2
----
-1710

query I rowsort
SELECT DISTINCT 41 * + + 37 AS col1
----
1517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8324
SELECT COALESCE ( - COUNT( * ), - 52 DIV + - 3 - - CAST( - CAST( + 20 AS DECIMAL ) AS SIGNED ) * + 38 ) * + 78 - 15
----
-93

skipif mysql # not compatible
query I rowsort label-8324
SELECT COALESCE ( - COUNT ( * ), - 52 / + - 3 - - CAST ( - CAST ( + 20 AS REAL ) AS INTEGER ) * + 38 ) * + 78 - 15
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT DISTINCT - + NULLIF ( CAST( - MAX( DISTINCT 36 ) AS SIGNED ), - + MIN( 82 ) + - 71 ) * + + 73 AS col2
----
2628

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT - + NULLIF ( CAST ( - MAX ( DISTINCT 36 ) AS INTEGER ), - + MIN ( 82 ) + - 71 ) * + + 73 AS col2
----
2628

query I rowsort
SELECT + 3 * - 76 col1
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT + CAST( + - ( + 6 ) AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-8327
SELECT + CAST ( + - ( + 6 ) AS INTEGER )
----
-6

query I rowsort
SELECT - 69 * - 77 AS col0
----
5313

query II rowsort
SELECT ALL + - 11 + - 41 AS col1, 79
----
-52
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT + - SUM( ALL - + 94 ), COUNT( * ) AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-8330
SELECT + - SUM ( ALL - + 94 ), COUNT ( * ) AS col0
----
94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL - 19 + 28 + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL - 19 + 28 + COUNT ( * )
----
10

query I rowsort
SELECT + 92 - + 67 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL + ( - + 68 ) + + CASE + 18 WHEN + 21 THEN - COUNT( * ) + 14 + - + 16 WHEN + - NULLIF ( + COUNT( * ), - + 81 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL + ( - + 68 ) + + CASE + 18 WHEN + 21 THEN - COUNT ( * ) + 14 + - + 16 WHEN + - NULLIF ( + COUNT ( * ), - + 81 ) THEN NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 87 ) + 60 AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8335
SELECT ALL - MIN( + - 22 ) + - + 29 + - 51 DIV - + 64 - - 98
----
91

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - MIN ( + - 22 ) + - + 29 + - 51 / - + 64 - - 98
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT 64 * - ( - 42 ) + + COUNT( * ) + + MAX( + 12 ) * - 57 - - - 42 * + 89
----
-1733

skipif mysql # not compatible
query I rowsort label-8336
SELECT 64 * - ( - 42 ) + + COUNT ( * ) + + MAX ( + 12 ) * - 57 - - - 42 * + 89
----
-1733

query I rowsort
SELECT ALL - ( 19 ) + 45 AS col1
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8338
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + ( - 49 ) / 88 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT + CAST ( NULL AS REAL ) * + ( - 49 ) / 88 + 8
----
NULL

query I rowsort
SELECT ALL + 47 * NULLIF ( - 54, + + 33 + + 95 )
----
-2538

query II rowsort
SELECT 1 - 40 AS col2, 16
----
-39
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8341
SELECT ( + 21 ) - + - 72 * 64 DIV - COUNT( * ) AS col0
----
-4587

skipif mysql # not compatible
query I rowsort label-8341
SELECT ( + 21 ) - + - 72 * 64 / - COUNT ( * ) AS col0
----
-4587

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL CASE + 20 WHEN NULLIF ( + 87, - 30 ) THEN - SUM( + - 37 ) * - + 83 + + - 85 WHEN - 68 THEN NULL END - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL CASE + 20 WHEN NULLIF ( + 87, - 30 ) THEN - SUM ( + - 37 ) * - + 83 + + - 85 WHEN - 68 THEN NULL END - - 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8343
SELECT ALL 31 - + - 56, COUNT( * ) DIV - + 91 - + + 68 * - 93 AS col2
----
87
6324

skipif mysql # not compatible
query II rowsort label-8343
SELECT ALL 31 - + - 56, COUNT ( * ) / - + 91 - + + 68 * - 93 AS col2
----
87
6324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8344
SELECT DISTINCT 90 DIV - 55 * + COUNT( * ), + 28 AS col2
----
-1
28

skipif mysql # not compatible
query II rowsort label-8344
SELECT DISTINCT 90 / - 55 * + COUNT ( * ), + 28 AS col2
----
-1
28

query I rowsort
SELECT DISTINCT + 76 - 7 AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8346
SELECT ALL - 12 DIV 56 AS col0, 12 * ( + 62 ) * - CAST( NULL AS SIGNED ) + 48 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8346
SELECT ALL - 12 / 56 AS col0, 12 * ( + 62 ) * - CAST ( NULL AS INTEGER ) + 48 AS col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT DISTINCT - 3 DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT - 3 / 59 AS col2
----
0

query I rowsort
SELECT 97 + - - 64 + + ( - 45 ) * - + 96
----
4481

query I rowsort
SELECT ( - 98 ) * + 80 + + 34 + + 48
----
-7758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8350
SELECT COUNT( * ) + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8350
SELECT COUNT ( * ) + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( - 60 ) * - + 60
----
3600

query II rowsort
SELECT 22 + - - 72 AS col0, 83 AS col0
----
94
83

query I rowsort
SELECT + 51 * + 87
----
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT + MIN( DISTINCT + ( 58 ) ) + - - 6 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8354
SELECT + MIN ( DISTINCT + ( 58 ) ) + - - 6 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + 74 + SUM( ALL + - 28 ) * 13 AS col1
----
-290

skipif mysql # not compatible
query I rowsort label-8355
SELECT + 74 + SUM ( ALL + - 28 ) * 13 AS col1
----
-290

onlyif mysql # aggregate syntax: 
query II rowsort label-8356
SELECT DISTINCT + MIN( + 65 ) col2, + COUNT( * ) AS col0
----
65
1

skipif mysql # not compatible
query II rowsort label-8356
SELECT DISTINCT + MIN ( + 65 ) col2, + COUNT ( * ) AS col0
----
65
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8357
SELECT 43 * + 54 + - - 79 + + 31 * 85 AS col2, 75 * + COUNT( * ) DIV - + 92 * - 49 * - CASE - 38 WHEN + 3 - - ( MAX( DISTINCT + 52 ) ) THEN 87 WHEN + - 55 + + + 20 THEN NULL WHEN + - 39 * - 43 + - AVG ( DISTINCT - 97 ) THEN NULL ELSE - + MAX( DISTINCT 75 ) * + 81 END
----
5036
0

skipif mysql # not compatible
query II rowsort label-8357
SELECT 43 * + 54 + - - 79 + + 31 * 85 AS col2, 75 * + COUNT ( * ) / - + 92 * - 49 * - CASE - 38 WHEN + 3 - - ( MAX ( DISTINCT + 52 ) ) THEN 87 WHEN + - 55 + + + 20 THEN NULL WHEN + - 39 * - 43 + - AVG ( DISTINCT - 97 ) THEN NULL ELSE - + MAX ( DISTINCT 75 ) * + 81 END
----
5036
0

query I rowsort
SELECT ALL + - 64 + - 16 * 37
----
-656

query I rowsort
SELECT + 96 - - ( - 41 ) * 91 AS col0
----
-3635

query I rowsort
SELECT ALL 70 + + 97 AS col1
----
167

query I rowsort
SELECT + 68 / + CASE 13 WHEN + - 48 THEN + COALESCE ( - ( + 21 ), + 74 - - + 98 ) + - - 49 END + + - 92 - 42 - + - 51
----
NULL

query I rowsort
SELECT ALL 72 * - 34 + - 4 AS col0
----
-2452

query I rowsort
SELECT DISTINCT + - 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8364
SELECT ALL 97 * + - 59 + + ( + 18 ) + + + 78, COUNT( * ) + COUNT( * ) + - 63 AS col1
----
-5627
-61

skipif mysql # not compatible
query II rowsort label-8364
SELECT ALL 97 * + - 59 + + ( + 18 ) + + + 78, COUNT ( * ) + COUNT ( * ) + - 63 AS col1
----
-5627
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT - COUNT( * ) * 56
----
-56

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT - COUNT ( * ) * 56
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8366
SELECT ALL + COALESCE ( - CAST( + + 50 AS SIGNED ), - 45 + - 47 + - + 98 * - 27 + - + CASE 64 WHEN 25 + 40 - + - ( - + 69 ) + 93 + - 25 + + - 98 / - 69 * + 57 THEN - CAST( NULL AS SIGNED ) WHEN ( 35 ) THEN + SUM( ALL + 41 ) + - - 3 END + + CASE 52 WHEN - CASE - 94 WHEN + MAX( DISTINCT - 27 ) + CAST( + + 4 AS DECIMAL ) + 15 + 73 * 92 THEN + 62 * - ( - + 90 ) + - + 30 * - AVG ( - 87 ) + + 63 * + 37 ELSE 40 * + 20 END THEN 80 WHEN + 33 THEN - COUNT( * ) END + 98 * - 79 * - 46 * - 11 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + COALESCE ( - CAST ( + + 50 AS INTEGER ), - 45 + - 47 + - + 98 * - 27 + - + CASE 64 WHEN 25 + 40 - + - ( - + 69 ) + 93 + - 25 + + - 98 / - 69 * + 57 THEN - CAST ( NULL AS INTEGER ) WHEN ( 35 ) THEN + SUM ( ALL + 41 ) + - - 3 END + + CASE 52 WHEN - CASE - 94 WHEN + MAX ( DISTINCT - 27 ) + CAST ( + + 4 AS REAL ) + 15 + 73 * 92 THEN + 62 * - ( - + 90 ) + - + 30 * - AVG ( - 87 ) + + 63 * + 37 ELSE 40 * + 20 END THEN 80 WHEN + 33 THEN - COUNT ( * ) END + 98 * - 79 * - 46 * - 11 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT - ( 30 ) * + NULLIF ( - - CASE + 7 WHEN + - 71 + - 5 - - COUNT( * ) THEN COUNT( * ) END, + 46 ) / 16 + - COUNT( + 75 ) - - 4 * + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT - ( 30 ) * + NULLIF ( - - CASE + 7 WHEN + - 71 + - 5 - - COUNT ( * ) THEN COUNT ( * ) END, + 46 ) / 16 + - COUNT ( + 75 ) - - 4 * + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT COUNT( DISTINCT 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8368
SELECT COUNT ( DISTINCT 88 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + ( - + 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8370
SELECT ALL CASE + + 55 WHEN 78 THEN 99 WHEN - + CAST( NULL AS SIGNED ) THEN 88 + - CAST( - + MIN( + + 79 ) AS SIGNED ) + COUNT( * ) * + 41 WHEN - 25 THEN + 42 ELSE NULL END * - MIN( + 62 ) * - 36 + 52 + - - 91 - - CASE + 20 WHEN + - 12 THEN NULL ELSE 78 END / + - 36 * - + MIN( DISTINCT - - 10 ) - - SUM( ALL - 80 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL CASE + + 55 WHEN 78 THEN 99 WHEN - + CAST ( NULL AS INTEGER ) THEN 88 + - CAST ( - + MIN ( + + 79 ) AS INTEGER ) + COUNT ( * ) * + 41 WHEN - 25 THEN + 42 ELSE NULL END * - MIN ( + 62 ) * - 36 + 52 + - - 91 - - CASE + 20 WHEN + - 12 THEN NULL ELSE 78 END / + - 36 * - + MIN ( DISTINCT - - 10 ) - - SUM ( ALL - 80 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8371
SELECT - 26 + + 59 * - + COUNT( * ), - 35 AS col1
----
-85
-35

skipif mysql # not compatible
query II rowsort label-8371
SELECT - 26 + + 59 * - + COUNT ( * ), - 35 AS col1
----
-85
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8372
SELECT - CAST( NULL AS DECIMAL ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT - CAST ( NULL AS REAL ) * 82
----
NULL

query I rowsort
SELECT - 43 * + - 42 * 41 AS col0
----
74046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8374
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 7 * - 71
----
497

query I rowsort
SELECT ALL - 17 * COALESCE ( 43, + 38, + + 60 ) AS col1
----
-731

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT - MAX( DISTINCT + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-8377
SELECT - MAX ( DISTINCT + 97 )
----
-97

query I rowsort
SELECT - 54 - + - 98 + + - 81 + - - 48 AS col0
----
11

query I rowsort
SELECT - 71 * + 13 AS col2
----
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 77 + COUNT ( * )
----
78

query I rowsort
SELECT ALL ( + 73 ) AS col2
----
73

query I rowsort
SELECT DISTINCT ( 23 )
----
23

query I rowsort
SELECT - 65 + + 75
----
10

query I rowsort
SELECT - 41 + 34
----
-7

query I rowsort
SELECT ALL ( - ( + - 9 ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT + COUNT( * ) + + - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + COUNT ( * ) + + - 55 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8387
SELECT + 72 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8387
SELECT + 72 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + + COUNT( * ) + - - 12
----
13

skipif mysql # not compatible
query I rowsort label-8388
SELECT + + COUNT ( * ) + - - 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT - - COUNT( - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-8389
SELECT - - COUNT ( - 33 )
----
1

query I rowsort
SELECT ALL + 44 + - 3 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - + 38 * + 60 * - - ( COUNT( * ) )
----
-2280

skipif mysql # not compatible
query I rowsort label-8391
SELECT - + 38 * + 60 * - - ( COUNT ( * ) )
----
-2280

query I rowsort
SELECT + + 58 + - + 86 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT ALL + CAST( - 58 AS SIGNED ) * - 13 * - + 23
----
-17342

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL + CAST ( - 58 AS INTEGER ) * - 13 * - + 23
----
-17342

query II rowsort
SELECT - 98, 45 AS col0
----
-98
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8395
SELECT + - 83 * - COALESCE ( 69, + - COUNT( * ), + 55, 14 + + 23 ) + - + 93 * + - MIN( ALL + CAST( NULL AS SIGNED ) ) + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT + - 83 * - COALESCE ( 69, + - COUNT ( * ), + 55, 14 + + 23 ) + - + 93 * + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) + 61
----
NULL

query II rowsort
SELECT ALL 71 AS col1, - ( - - NULLIF ( - - 25, + 7 + 45 ) ) AS col2
----
71
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL - COUNT( * ) * + 35
----
-35

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - COUNT ( * ) * + 35
----
-35

query I rowsort
SELECT DISTINCT + ( 43 ) AS col2
----
43

query II rowsort
SELECT + 33 AS col2, + 59
----
33
59

query II rowsort
SELECT ALL + 96 col0, - 47 AS col2
----
96
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8401
SELECT ALL + 51 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL + 51 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + ( + + COUNT( * ) ) + - 74 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-8402
SELECT + ( + + COUNT ( * ) ) + - 74 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT + ( - SUM( + 69 ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8403
SELECT + ( - SUM ( + 69 ) ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT DISTINCT + SUM( + 38 ), 99 AS col1
----
38
99

skipif mysql # not compatible
query II rowsort label-8404
SELECT DISTINCT + SUM ( + 38 ), 99 AS col1
----
38
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL + 30 * - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + 30 * - COUNT ( * ) AS col0
----
-30

query I rowsort
SELECT - 17 * - 63 - 22
----
1049

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL 29 * + 64 - COUNT( * ) * - + COUNT( * )
----
1857

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL 29 * + 64 - COUNT ( * ) * - + COUNT ( * )
----
1857

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT DISTINCT 78 * + 14 * - - AVG ( 56 ) * 27 - - CASE + + 43 WHEN + 62 + + + 51 + - COUNT( * ) THEN + 29 / + SUM( + 69 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT 78 * + 14 * - - AVG ( 56 ) * 27 - - CASE + + 43 WHEN + 62 + + + 51 + - COUNT ( * ) THEN + 29 / + SUM ( + 69 ) END col2
----
NULL

query I rowsort
SELECT 30 * + 42 + - - 53 AS col0
----
1313

query I rowsort
SELECT ALL 13 * + - 63
----
-819

query I rowsort
SELECT ALL 72 * + 18 AS col2
----
1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8412
SELECT - 84 * + + COALESCE ( - - 78, 66 * + - 36 DIV COALESCE ( - + COUNT( * ), + COUNT( * ) DIV - 66 DIV - NULLIF ( - 29, + COUNT( + 79 ) ), - CAST( NULL AS SIGNED ) + - CASE - COUNT( * ) WHEN - 18 + + CASE WHEN NULL IS NOT NULL THEN 82 END THEN NULL WHEN + MAX( - 53 ) * + - 49 THEN 31 WHEN - CAST( + COUNT( * ) AS SIGNED ) * + + 11 * - 39 + - 90 * ( + CAST( + 46 AS SIGNED ) ) * 63 + - 94 - ( 70 ) + MAX( + 51 ) THEN NULL END ) + + 10, + + 98 )
----
-6552

skipif mysql # not compatible
query I rowsort label-8412
SELECT - 84 * + + COALESCE ( - - 78, 66 * + - 36 / COALESCE ( - + COUNT ( * ), + COUNT ( * ) / - 66 / - NULLIF ( - 29, + COUNT ( + 79 ) ), - CAST ( NULL AS INTEGER ) + - CASE - COUNT ( * ) WHEN - 18 + + CASE WHEN NULL IS NOT NULL THEN 82 END THEN NULL WHEN + MAX ( - 53 ) * + - 49 THEN 31 WHEN - CAST ( + COUNT ( * ) AS INTEGER ) * + + 11 * - 39 + - 90 * ( + CAST ( + 46 AS INTEGER ) ) * 63 + - 94 - ( 70 ) + MAX ( + 51 ) THEN NULL END ) + + 10, + + 98 )
----
-6552

query I rowsort
SELECT - 60 * 73 + - + 59
----
-4439

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL + SUM( DISTINCT - ( - - 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL + SUM ( DISTINCT - ( - - 25 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT 31 * + - CASE 61 WHEN 95 THEN NULL WHEN + 19 / - 32 * - ( + SUM( + 7 ) ) + ( + ( 86 ) ) THEN NULL WHEN 8 THEN + MAX( + 17 ) ELSE + ( 92 ) + 71 END - 93
----
-5146

skipif mysql # not compatible
query I rowsort label-8415
SELECT 31 * + - CASE 61 WHEN 95 THEN NULL WHEN + 19 / - 32 * - ( + SUM ( + 7 ) ) + ( + ( 86 ) ) THEN NULL WHEN 8 THEN + MAX ( + 17 ) ELSE + ( 92 ) + 71 END - 93
----
-5146

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT - MAX( DISTINCT 55 ) * + + 16 + + 42
----
-838

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT - MAX ( DISTINCT 55 ) * + + 16 + + 42
----
-838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT DISTINCT CAST( + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT CAST ( + 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT DISTINCT + COUNT( * ) * - - 18 + - 87 DIV + + 52 - - 71
----
88

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT + COUNT ( * ) * - - 18 + - 87 / + + 52 - - 71
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT DISTINCT 78 * - SUM( 77 ) + + CAST( - + 25 AS SIGNED ) + 98
----
-5933

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT 78 * - SUM ( 77 ) + + CAST ( - + 25 AS INTEGER ) + 98
----
-5933

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT ALL + - 93 + ( - 20 ) + - - ( 55 ) * - 95 - - - 16, + COUNT( * ) AS col2
----
-5354
1

skipif mysql # not compatible
query II rowsort label-8420
SELECT ALL + - 93 + ( - 20 ) + - - ( 55 ) * - 95 - - - 16, + COUNT ( * ) AS col2
----
-5354
1

query I rowsort
SELECT DISTINCT - 89 + + 66 col0
----
-23

query I rowsort
SELECT NULLIF ( + 38, + 73 ) + + 15
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT - SUM( DISTINCT - 35 ) * + 58
----
2030

skipif mysql # not compatible
query I rowsort label-8423
SELECT - SUM ( DISTINCT - 35 ) * + 58
----
2030

query I rowsort
SELECT DISTINCT - - 80 + - 69 + + 84
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + 22 + - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8425
SELECT + 22 + - COUNT ( * )
----
21

query I rowsort
SELECT ALL - + 5 + + 82 - + ( - 97 ) AS col0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT DISTINCT + + 88 * + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT + + 88 * + - COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT DISTINCT SUM( ALL 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT SUM ( ALL 88 ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT DISTINCT + CAST( - 36 AS SIGNED ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + CAST ( - 36 AS INTEGER ) col2
----
-36

query I rowsort
SELECT ALL - 41 - - 5
----
-36

query I rowsort
SELECT + 81 * - 93 + + 55
----
-7478

onlyif mysql # DIV for integer division: 
query I rowsort label-8432
SELECT DISTINCT + 30 DIV + + 78
----
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT + 30 / + + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT DISTINCT + - 63 - MIN( - + 60 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + - 63 - MIN ( - + 60 ) AS col1
----
-3

query I rowsort
SELECT ( - 4 ) * + 20 * - 75 * + 42
----
252000

query II rowsort
SELECT + 38 + + 73, + 47 col2
----
111
47

query II rowsort
SELECT 52 + 92, 68 AS col1
----
144
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL COUNT( + + 58 ) - + 91 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL COUNT ( + + 58 ) - + 91 AS col0
----
-90

query I rowsort
SELECT - 30 * - + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT - 89 * + 29 AS col0
----
-2581

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT + 38 DIV 62 + - 52 + + 63 + - 40
----
-29

skipif mysql # not compatible
query I rowsort label-8440
SELECT + 38 / 62 + - 52 + + 63 + - 40
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT 0 + - COUNT( ALL - 42 ) - 65
----
-66

skipif mysql # not compatible
query I rowsort label-8441
SELECT 0 + - COUNT ( ALL - 42 ) - 65
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT ALL - 26 * - SUM( - 21 ) AS col2, + 84 + 63 AS col0
----
-546
147

skipif mysql # not compatible
query II rowsort label-8442
SELECT ALL - 26 * - SUM ( - 21 ) AS col2, + 84 + 63 AS col0
----
-546
147

query II rowsort
SELECT 74 AS col2, 41
----
74
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8444
SELECT COUNT( * ) * - ( CASE - ( + + 5 ) WHEN 82 * + ( + COUNT( * ) ) / + 13 THEN NULL WHEN + CAST( - 17 AS SIGNED ) / + + ( 17 ) * - 97 + - + 17 + + 20 * COUNT( * ) - + - 74 + + + 29 THEN + - MIN( + 12 ) + ( 88 ) ELSE - 84 END )
----
84

skipif mysql # not compatible
query I rowsort label-8444
SELECT COUNT ( * ) * - ( CASE - ( + + 5 ) WHEN 82 * + ( + COUNT ( * ) ) / + 13 THEN NULL WHEN + CAST ( - 17 AS INTEGER ) / + + ( 17 ) * - 97 + - + 17 + + 20 * COUNT ( * ) - + - 74 + + + 29 THEN + - MIN ( + 12 ) + ( 88 ) ELSE - 84 END )
----
84

query I rowsort
SELECT ALL - 55 col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT 63 * - 94 + + 45 + + CASE + - 91 WHEN + + CAST( NULL AS SIGNED ) THEN - 72 ELSE + 53 END col2
----
-5824

skipif mysql # not compatible
query I rowsort label-8446
SELECT 63 * - 94 + + 45 + + CASE + - 91 WHEN + + CAST ( NULL AS INTEGER ) THEN - 72 ELSE + 53 END col2
----
-5824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8447
SELECT DISTINCT COUNT( * ) DIV + - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT COUNT ( * ) / + - 19 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT COUNT( * ) * - COALESCE ( 14, + 41 * + 76 + + 86, - COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8448
SELECT COUNT ( * ) * - COALESCE ( 14, + 41 * + 76 + + 86, - COUNT ( * ) ) AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT 51 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-8449
SELECT 51 / + 92
----
0

query I rowsort
SELECT ALL 19 + + 31 AS col1
----
50

query I rowsort
SELECT 54 * - ( + - ( + 28 ) ) + - 85
----
1427

query I rowsort
SELECT - 80 * - + 18 + - 52
----
1388

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8453
SELECT ALL COALESCE ( + 76, - CAST( + - ( + - 58 ) AS SIGNED ), - 30 ) + - 49 DIV - - 17 + + 97 * + 94 + + 19 + - + 73 + + 61 AS col2
----
9199

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL COALESCE ( + 76, - CAST ( + - ( + - 58 ) AS INTEGER ), - 30 ) + - 49 / - - 17 + + 97 * + 94 + + 19 + - + 73 + + 61 AS col2
----
9199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT DISTINCT - NULLIF ( + 8, - - 99 - + CAST( NULL AS SIGNED ) )
----
-8

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT - NULLIF ( + 8, - - 99 - + CAST ( NULL AS INTEGER ) )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8455
SELECT ALL ( - COUNT( * ) ) + 16 AS col0, 91 * - ( + 33 ) AS col0
----
15
-3003

skipif mysql # not compatible
query II rowsort label-8455
SELECT ALL ( - COUNT ( * ) ) + 16 AS col0, 91 * - ( + 33 ) AS col0
----
15
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT + CAST( + 90 AS SIGNED ) * - 43
----
-3870

skipif mysql # not compatible
query I rowsort label-8456
SELECT + CAST ( + 90 AS INTEGER ) * - 43
----
-3870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT - 63 + + + 40 + + - 17 * + 54 + + - 52 * + CAST( 55 AS SIGNED ) AS col1
----
-3801

skipif mysql # not compatible
query I rowsort label-8457
SELECT - 63 + + + 40 + + - 17 * + 54 + + - 52 * + CAST ( 55 AS INTEGER ) AS col1
----
-3801

query I rowsort
SELECT DISTINCT 32 + + 60 * + + 72 * + NULLIF ( - + 92, NULLIF ( - + 23, - + 72 * 84 ) ) AS col2
----
-397408

query II rowsort
SELECT DISTINCT - 46 AS col2, + 14 + + - 59 * - 78 AS col2
----
-46
4616

query I rowsort
SELECT ALL COALESCE ( + - 85, - - 35 ) col2
----
-85

query I rowsort
SELECT 20 * 66 - 67
----
1253

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT ALL SUM( 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL SUM ( 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT - COUNT( * ) * + 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - COUNT ( * ) * + 53 AS col0
----
-53

query I rowsort
SELECT ALL + 54 col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT ALL CAST( 58 AS SIGNED ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL CAST ( 58 AS INTEGER ) AS col1
----
58

query I rowsort
SELECT ALL + - 2 * + 70 col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT + 84 * - + ( - + COUNT( * ) ) * + 83
----
6972

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT + 84 * - + ( - + COUNT ( * ) ) * + 83
----
6972

query I rowsort
SELECT - 92 + + 93
----
1

query I rowsort
SELECT - 36 * + 87 col2
----
-3132

query I rowsort
SELECT DISTINCT + ( - - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL NULLIF ( + - 10, - COUNT( * ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL NULLIF ( + - 10, - COUNT ( * ) ) AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8472
SELECT ALL ( ( - COUNT( * ) ) ) DIV + 49 AS col0, - 71
----
0
-71

skipif mysql # not compatible
query II rowsort label-8472
SELECT ALL ( ( - COUNT ( * ) ) ) / + 49 AS col0, - 71
----
0
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT - ( COUNT( + + 51 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT - ( COUNT ( + + 51 ) )
----
-1

query I rowsort
SELECT ALL + ( + + 12 ) * - + ( 11 ) * + + 86 - 8 + ( COALESCE ( 2, 67 ) ) AS col1
----
-11358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT COUNT( CAST( + - 23 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8475
SELECT COUNT ( CAST ( + - 23 AS INTEGER ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT 67 DIV 46 + + + 37 col2
----
38

skipif mysql # not compatible
query I rowsort label-8476
SELECT 67 / 46 + + + 37 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT MIN( 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8477
SELECT MIN ( 53 ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8478
SELECT COUNT( * ) + 50, + 51 * - - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8478
SELECT COUNT ( * ) + 50, + 51 * - - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8479
SELECT DISTINCT + 31 * CAST( + - COUNT( * ) AS SIGNED ) + - 18 * + ( - 82 ) + - + 65 AS col1, 84 AS col1
----
1380
84

skipif mysql # not compatible
query II rowsort label-8479
SELECT DISTINCT + 31 * CAST ( + - COUNT ( * ) AS INTEGER ) + - 18 * + ( - 82 ) + - + 65 AS col1, 84 AS col1
----
1380
84

onlyif mysql # DIV for integer division: 
query II rowsort label-8480
SELECT 25 - + - 62 - 97 + - 4, 40 DIV - 70 AS col0
----
-14
0

skipif mysql # not compatible
query II rowsort label-8480
SELECT 25 - + - 62 - 97 + - 4, 40 / - 70 AS col0
----
-14
0

query I rowsort
SELECT ALL + 95 * + - 35 AS col0
----
-3325

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT + 86 * + SUM( DISTINCT 25 ) + + 15 col1
----
2165

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT + 86 * + SUM ( DISTINCT 25 ) + + 15 col1
----
2165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8483
SELECT 68 * - 0 + - + CAST( - 86 AS SIGNED ) + - + 23 DIV + - 27 + - + ( + - 47 )
----
133

skipif mysql # not compatible
query I rowsort label-8483
SELECT 68 * - 0 + - + CAST ( - 86 AS INTEGER ) + - + 23 / + - 27 + - + ( + - 47 )
----
133

query II rowsort
SELECT ALL - 6, + 29 + + + 7 AS col2
----
-6
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8485
SELECT DISTINCT + 19, CAST( NULL AS SIGNED ) + 33 AS col1
----
19
NULL

skipif mysql # not compatible
query II rowsort label-8485
SELECT DISTINCT + 19, CAST ( NULL AS INTEGER ) + 33 AS col1
----
19
NULL

query I rowsort
SELECT ALL 6 + 35
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT MAX( DISTINCT + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8487
SELECT MAX ( DISTINCT + 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT + COALESCE ( 95, - - 35 * ( + 91 ) + + COUNT( * ) ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT + COALESCE ( 95, - - 35 * ( + 91 ) + + COUNT ( * ) ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 40 + - + ( - 1 ) AS col0
----
-39

query I rowsort
SELECT + ( - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT + - 1 * + + ( - + 61 ) * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-8491
SELECT + - 1 * + + ( - + 61 ) * COUNT ( * )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT + + 26 + - + 41 * + ( - 29 ) / + 68 * - 76 * CAST( NULL AS SIGNED ) + - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT + + 26 + - + 41 * + ( - 29 ) / + 68 * - 76 * CAST ( NULL AS INTEGER ) + - 84 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8493
SELECT DISTINCT + 38 col1, - MIN( ALL - CAST( NULL AS DECIMAL ) )
----
38
NULL

skipif mysql # not compatible
query II rowsort label-8493
SELECT DISTINCT + 38 col1, - MIN ( ALL - CAST ( NULL AS REAL ) )
----
38
NULL

query I rowsort
SELECT ALL - 46 - + 20 + + 39 + COALESCE ( + 80, + 68 )
----
53

query I rowsort
SELECT + 54 * 37
----
1998

query I rowsort
SELECT ALL 37 * + 58 * + 33 col0
----
70818

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT + ( + - 15 ) + 87 DIV 37 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8497
SELECT + ( + - 15 ) + 87 / 37 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT CASE 50 WHEN 67 THEN NULL WHEN 1 THEN - ( - NULLIF ( 69, - 21 * COUNT( * ) + - 92 + - ( - MAX( ALL 15 ) ) + 15 * 59 * + 58 + + 54 + - 27 * 89 * + + 15 * + 47 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT CASE 50 WHEN 67 THEN NULL WHEN 1 THEN - ( - NULLIF ( 69, - 21 * COUNT ( * ) + - 92 + - ( - MAX ( ALL 15 ) ) + 15 * 59 * + 58 + + 54 + - 27 * 89 * + + 15 * + 47 ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + - 0 * + + 9 AS col0
----
0

query I rowsort
SELECT - - 94 * - 76 AS col2
----
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT + - 8 + COUNT( * ) * + 12 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8501
SELECT + - 8 + COUNT ( * ) * + 12 AS col0
----
4

query II rowsort
SELECT ALL 29, + 35 * + 42 AS col1
----
29
1470

query I rowsort
SELECT ALL + 39 * - 66
----
-2574

query I rowsort
SELECT DISTINCT + 81 + - 48 * - ( - - 79 ) * 99 + 44 col0
----
375533

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + MAX( DISTINCT - + NULLIF ( - 54, - 20 ) ) + - - 79
----
133

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + MAX ( DISTINCT - + NULLIF ( - 54, - 20 ) ) + - - 79
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT DISTINCT + 36 DIV + + 49 + + MIN( DISTINCT + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + 36 / + + 49 + + MIN ( DISTINCT + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ( + COUNT( DISTINCT - 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8507
SELECT ( + COUNT ( DISTINCT - 72 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8508
SELECT ALL - COUNT( * ) / + 27 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - COUNT ( * ) / + 27 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT 99 DIV - - 37 + - 93 + ( + - 15 ) DIV - 32 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8509
SELECT 99 / - - 37 + - 93 + ( + - 15 ) / - 32 AS col2
----
-91

query I rowsort
SELECT DISTINCT - 59 * 39 + - 61
----
-2362

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL + NULLIF ( + 60, + 78 * + 40 * ( CASE + ( 51 ) WHEN + 79 THEN NULL WHEN - - 53 THEN + 48 + 77 * COUNT( * ) / - 88 ELSE - 22 + - 19 - + - 21 * - 51 END ) )
----
60

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + NULLIF ( + 60, + 78 * + 40 * ( CASE + ( 51 ) WHEN + 79 THEN NULL WHEN - - 53 THEN + 48 + 77 * COUNT ( * ) / - 88 ELSE - 22 + - 19 - + - 21 * - 51 END ) )
----
60

query I rowsort
SELECT ( + 80 ) AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT DISTINCT 7 * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT 7 * + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8515
SELECT - 41 / - 48 * 73 * - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT - 41 / - 48 * 73 * - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT + COALESCE ( - 6, - - ( + 30 ) DIV - - 69 * 6 * 76 * + 43 + - + 70 )
----
-6

skipif mysql # not compatible
query I rowsort label-8516
SELECT + COALESCE ( - 6, - - ( + 30 ) / - - 69 * 6 * 76 * + 43 + - + 70 )
----
-6

query I rowsort
SELECT ALL 72 * 51 - + 54
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - COUNT( * ) * 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8518
SELECT - COUNT ( * ) * 0 AS col1
----
0

query I rowsort
SELECT - ( + + 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + MIN( + 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8520
SELECT + MIN ( + 37 ) AS col0
----
37

query I rowsort
SELECT DISTINCT + - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + 25 + + COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-8522
SELECT + 25 + + COUNT ( * ) col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT ALL + - CAST( + + 96 AS SIGNED ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + - CAST ( + + 96 AS INTEGER ) AS col2
----
-96

query I rowsort
SELECT DISTINCT + 17 * - 74 AS col1
----
-1258

query I rowsort
SELECT - - 68 col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + 52 * - - 7 + - COUNT( DISTINCT 49 )
----
363

skipif mysql # not compatible
query I rowsort label-8526
SELECT + 52 * - - 7 + - COUNT ( DISTINCT 49 )
----
363

query I rowsort
SELECT - + 78 * 66 AS col1
----
-5148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8528
SELECT ALL + COUNT( * ) DIV - 76 + 59 + + 90 + + + 83
----
232

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + COUNT ( * ) / - 76 + 59 + + 90 + + + 83
----
232

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT + + 29 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-8529
SELECT + + 29 / 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8530
SELECT + + NULLIF ( - 46, - COALESCE ( + 80, + 15 + + 57 * + 50 ) ) + CASE + COUNT( * ) WHEN - 54 * + + 97 * COUNT( * ) * + 29 - + 9 THEN + 94 + - 80 - - 69 - - + CASE - CAST( NULL AS SIGNED ) WHEN + 34 THEN + 35 * - 96 END * 37 * + 85 * + 43 / - 98 * - + 43 WHEN - NULLIF ( + - 17, + - 14 - 97 + - + MIN( ALL - + 64 ) ) THEN NULL END * - - 92 + COUNT( * ) - + 90 + - + 14 * - + COUNT( * ) * + COUNT( * ) / - - CAST( 92 AS SIGNED ) - + 15 + + - 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT + + NULLIF ( - 46, - COALESCE ( + 80, + 15 + + 57 * + 50 ) ) + CASE + COUNT ( * ) WHEN - 54 * + + 97 * COUNT ( * ) * + 29 - + 9 THEN + 94 + - 80 - - 69 - - + CASE - CAST ( NULL AS INTEGER ) WHEN + 34 THEN + 35 * - 96 END * 37 * + 85 * + 43 / - 98 * - + 43 WHEN - NULLIF ( + - 17, + - 14 - 97 + - + MIN ( ALL - + 64 ) ) THEN NULL END * - - 92 + COUNT ( * ) - + 90 + - + 14 * - + COUNT ( * ) * + COUNT ( * ) / - - CAST ( 92 AS INTEGER ) - + 15 + + - 69 col0
----
NULL

query I rowsort
SELECT DISTINCT + 90 + - - 91 AS col2
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT + 54 DIV - 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8532
SELECT + 54 / - 51 AS col0
----
-1

query I rowsort
SELECT ALL 24 + - 49 AS col2
----
-25

query I rowsort
SELECT ALL - 52 + 48 + 9 + 93 * 62 col2
----
5771

query I rowsort
SELECT DISTINCT + 41 * 24
----
984

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT + 55 DIV 2
----
27

skipif mysql # not compatible
query I rowsort label-8536
SELECT + 55 / 2
----
27

query I rowsort
SELECT - ( - - 3 ) AS col1
----
-3

query II rowsort
SELECT 71 AS col1, 94
----
71
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT - COUNT( * ) * 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-8539
SELECT - COUNT ( * ) * 92 AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT ALL CAST( NULL AS SIGNED ) + - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL CAST ( NULL AS INTEGER ) + - + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8541
SELECT + 49 - 77 + - COUNT( ALL + + NULLIF ( - NULLIF ( 84, - + 33 ), CAST( NULL AS DECIMAL ) + 6 * + 85 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8541
SELECT + 49 - 77 + - COUNT ( ALL + + NULLIF ( - NULLIF ( 84, - + 33 ), CAST ( NULL AS REAL ) + 6 * + 85 ) ) AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8542
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT + CAST ( NULL AS REAL ) + + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + 92 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT ALL ( - CAST( - ( 21 ) AS SIGNED ) ) + + 56 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL ( - CAST ( - ( 21 ) AS INTEGER ) ) + + 56 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 5 * - + 99 + + ( 64 )
----
-431

query I rowsort
SELECT 60 * + + 27
----
1620

query I rowsort
SELECT ALL 77 * - ( 66 ) * - 3
----
15246

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL - MAX( DISTINCT 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL - MAX ( DISTINCT 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT 44 + - + NULLIF ( - COUNT( * ), + - 46 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8549
SELECT 44 + - + NULLIF ( - COUNT ( * ), + - 46 ) AS col1
----
45

query II rowsort
SELECT + 18 AS col2, 50
----
18
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL - 5 - + COUNT( ALL + 88 ) + + 53 * - COUNT( * ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - 5 - + COUNT ( ALL + 88 ) + + 53 * - COUNT ( * ) col1
----
-59

query I rowsort
SELECT 50 * + 72 * - 99 AS col0
----
-356400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8553
SELECT ALL - 89, + 22 + 51 + - 26 + + 95 DIV + 84 + + COUNT( * ) col2
----
-89
49

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL - 89, + 22 + 51 + - 26 + + 95 / + 84 + + COUNT ( * ) col2
----
-89
49

query I rowsort
SELECT 60 + + 57 AS col1
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8555
SELECT ALL - - CASE + 13 WHEN + + 80 * + + 40 THEN - + 35 * + + COUNT( * ) * COALESCE ( 32, - 14 * - + 40 + + 32 ) ELSE + 73 END - 58 + + 23 AS col2, COUNT( * ) / + 47 / 29 + CASE - + 75 WHEN - 94 THEN - 3 END + - - 64 + - + 44 / - CAST( - + 15 AS SIGNED ) * + COALESCE ( + 8, + 35 )
----
38
NULL

skipif mysql # not compatible
query II rowsort label-8555
SELECT ALL - - CASE + 13 WHEN + + 80 * + + 40 THEN - + 35 * + + COUNT ( * ) * COALESCE ( 32, - 14 * - + 40 + + 32 ) ELSE + 73 END - 58 + + 23 AS col2, COUNT ( * ) / + 47 / 29 + CASE - + 75 WHEN - 94 THEN - 3 END + - - 64 + - + 44 / - CAST ( - + 15 AS INTEGER ) * + COALESCE ( + 8, + 35 )
----
38
NULL

query I rowsort
SELECT - 13 + - - 64 AS col0
----
51

query I rowsort
SELECT ALL - 6 col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8558
SELECT + + COUNT( * ), + 35 AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-8558
SELECT + + COUNT ( * ), + 35 AS col1
----
1
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8559
SELECT COUNT( * ) * + MIN( DISTINCT + 32 ) + + COUNT( * ) DIV + + 33 * 48 col0
----
32

skipif mysql # not compatible
query I rowsort label-8559
SELECT COUNT ( * ) * + MIN ( DISTINCT + 32 ) + + COUNT ( * ) / + + 33 * 48 col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8560
SELECT 95 DIV 60 DIV - 9 col0, - 17 DIV - 38 * COUNT( * ) + + - 12 * - + 69 AS col1
----
0
828

skipif mysql # not compatible
query II rowsort label-8560
SELECT 95 / 60 / - 9 col0, - 17 / - 38 * COUNT ( * ) + + - 12 * - + 69 AS col1
----
0
828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8561
SELECT - 45 * + 99 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8561
SELECT - 45 * + 99 * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 54 * + 84 AS col0
----
-4536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT - 89 * - ( + + 66 ) * CAST( NULL AS SIGNED ) + + + 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT - 89 * - ( + + 66 ) * CAST ( NULL AS INTEGER ) + + + 43 col0
----
NULL

query II rowsort
SELECT ALL - - 28, 75 col1
----
28
75

query II rowsort
SELECT - 35 AS col2, + 53 * + 12
----
-35
636

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT 21 + 62 + - 47 * + ( + COUNT( * ) ) col2
----
36

skipif mysql # not compatible
query I rowsort label-8566
SELECT 21 + 62 + - 47 * + ( + COUNT ( * ) ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT - + MAX( DISTINCT + 55 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-8567
SELECT - + MAX ( DISTINCT + 55 ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL + ( - + MAX( + 17 ) ) + + + 21
----
4

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + ( - + MAX ( + 17 ) ) + + + 21
----
4

query II rowsort
SELECT ALL - 0 AS col0, - 95
----
0
-95

query I rowsort
SELECT ALL - 11 + + ( 80 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT COUNT( * ) + + 16 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8571
SELECT COUNT ( * ) + + 16 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8572
SELECT + CAST( NULL AS SIGNED ) + - - COUNT( DISTINCT - 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT + CAST ( NULL AS INTEGER ) + - - COUNT ( DISTINCT - 75 ) AS col0
----
NULL

query I rowsort
SELECT ALL CASE 55 WHEN + 59 THEN NULL WHEN + 94 THEN NULL WHEN - + 77 THEN - 12 END + + 24 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8574
SELECT 45 DIV 53 * 44
----
0

skipif mysql # not compatible
query I rowsort label-8574
SELECT 45 / 53 * 44
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8575
SELECT ALL 44 + - 90 AS col1, COUNT( * ) col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-8575
SELECT ALL 44 + - 90 AS col1, COUNT ( * ) col2
----
-46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT - COUNT( + + 93 ) + - COUNT( ALL - 6 )
----
-2

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT - COUNT ( + + 93 ) + - COUNT ( ALL - 6 )
----
-2

query I rowsort
SELECT ALL 96 * - 28
----
-2688

query I rowsort
SELECT 35 + + + ( - 91 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL - 36 + - + 54 * COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL - 36 + - + 54 * COUNT ( * ) AS col1
----
-90

query I rowsort
SELECT ALL 90 - 16
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT ALL CASE + 88 WHEN 50 THEN NULL ELSE - 8 END * + COALESCE ( + + 72, + COALESCE ( + 67, 0, - 18, - 16 ) * + 68 * + COUNT( * ) * + 17 * 95 + - 15 - COALESCE ( 34, - - MAX( 49 ) * + 10, 56 + - 33 + - 69 + - COUNT( - 97 ) ) * - 85 DIV - + 40 + 20 ) * + + 56 * 26 AS col0
----
-838656

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL CASE + 88 WHEN 50 THEN NULL ELSE - 8 END * + COALESCE ( + + 72, + COALESCE ( + 67, 0, - 18, - 16 ) * + 68 * + COUNT ( * ) * + 17 * 95 + - 15 - COALESCE ( 34, - - MAX ( 49 ) * + 10, 56 + - 33 + - 69 + - COUNT ( - 97 ) ) * - 85 / - + 40 + 20 ) * + + 56 * 26 AS col0
----
-838656

query I rowsort
SELECT ALL 36 * - ( + + 80 ) AS col2
----
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT 70 + - 96 * 11 + - 52 + - 71 DIV + 82 AS col1
----
-1038

skipif mysql # not compatible
query I rowsort label-8583
SELECT 70 + - 96 * 11 + - 52 + - 71 / + 82 AS col1
----
-1038

query I rowsort
SELECT ALL 54 - + + 57 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT COUNT( * ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8585
SELECT COUNT ( * ) * COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 14 * + 7 + - - 47 AS col1
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8587
SELECT ALL 30 DIV - + 32 * MAX( 99 ) AS col0, 78 DIV - 72
----
0
-1

skipif mysql # not compatible
query II rowsort label-8587
SELECT ALL 30 / - + 32 * MAX ( 99 ) AS col0, 78 / - 72
----
0
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8588
SELECT SUM( DISTINCT 77 ) AS col2, COUNT( * ) DIV - 86
----
77
0

skipif mysql # not compatible
query II rowsort label-8588
SELECT SUM ( DISTINCT 77 ) AS col2, COUNT ( * ) / - 86
----
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT + - CASE - + 0 WHEN COUNT( * ) THEN 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8589
SELECT + - CASE - + 0 WHEN COUNT ( * ) THEN 19 END AS col2
----
NULL

query I rowsort
SELECT 18 * - ( + ( + 4 ) ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT ALL - COUNT( DISTINCT - + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL - COUNT ( DISTINCT - + 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT DISTINCT + 84 * - COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT + 84 * - COUNT ( * ) AS col1
----
-84

query I rowsort
SELECT 66 * + + 74 * 1 + + + 93 * + - 26 + + 73 + - - 69 * - + 28
----
607

query I rowsort
SELECT 10 + - 82 col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT 41 * - 69 * + COUNT( * )
----
-2829

skipif mysql # not compatible
query I rowsort label-8595
SELECT 41 * - 69 * + COUNT ( * )
----
-2829

query I rowsort
SELECT 56 + - ( + 28 ) + 46 * + 69 AS col2
----
3202

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT + MIN( DISTINCT 87 ) AS col0, 45 col1
----
87
45

skipif mysql # not compatible
query II rowsort label-8597
SELECT + MIN ( DISTINCT 87 ) AS col0, 45 col1
----
87
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL + 76 + - 11 + + - ( + 21 ) * - CAST( + 87 AS SIGNED )
----
1892

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + 76 + - 11 + + - ( + 21 ) * - CAST ( + 87 AS INTEGER )
----
1892

query I rowsort
SELECT + 96 + 8 AS col1
----
104

query I rowsort
SELECT DISTINCT - 65 + + - 19 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8601
SELECT - 43 * 88 + + 10 * - + 0 * + - CASE - 94 WHEN + 71 THEN ( 44 ) ELSE - + CAST( - 29 AS SIGNED ) DIV - NULLIF ( 60, 26 ) + - 16 END
----
-3784

skipif mysql # not compatible
query I rowsort label-8601
SELECT - 43 * 88 + + 10 * - + 0 * + - CASE - 94 WHEN + 71 THEN ( 44 ) ELSE - + CAST ( - 29 AS INTEGER ) / - NULLIF ( 60, 26 ) + - 16 END
----
-3784

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT DISTINCT + - COUNT( * ) + 10 + - 58
----
-49

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT + - COUNT ( * ) + 10 + - 58
----
-49

query I rowsort
SELECT DISTINCT - - 88 AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8604
SELECT ALL - COUNT( * ) + - 0, NULLIF ( + 61, + MIN( ALL - + 9 ) ) AS col0
----
-1
61

skipif mysql # not compatible
query II rowsort label-8604
SELECT ALL - COUNT ( * ) + - 0, NULLIF ( + 61, + MIN ( ALL - + 9 ) ) AS col0
----
-1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT CASE - 72 WHEN - COUNT( * ) / + - 65 * + 82 * - - 1 THEN 45 WHEN - ( + + 80 ) THEN NULL ELSE + MIN( + 9 ) * - + 33 END
----
-297

skipif mysql # not compatible
query I rowsort label-8605
SELECT CASE - 72 WHEN - COUNT ( * ) / + - 65 * + 82 * - - 1 THEN 45 WHEN - ( + + 80 ) THEN NULL ELSE + MIN ( + 9 ) * - + 33 END
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT 0 DIV - ( - + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-8606
SELECT 0 / - ( - + 84 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT - 45 + COUNT( * ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-8607
SELECT - 45 + COUNT ( * ) col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8608
SELECT DISTINCT + - 9 + + - CAST( NULL AS SIGNED ) - 18 + ( + 92 ) AS col1, + 7 * - - 19 AS col2
----
NULL
133

skipif mysql # not compatible
query II rowsort label-8608
SELECT DISTINCT + - 9 + + - CAST ( NULL AS INTEGER ) - 18 + ( + 92 ) AS col1, + 7 * - - 19 AS col2
----
NULL
133

query I rowsort
SELECT ALL - - 47 + + 91 AS col1
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT 16 DIV + + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8610
SELECT 16 / + + 67 AS col1
----
0

query I rowsort
SELECT ALL - 40 * + - 45
----
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-8612
SELECT 26 * - 76 * + 26 AS col2, COUNT( * ) col0
----
-51376
1

skipif mysql # not compatible
query II rowsort label-8612
SELECT 26 * - 76 * + 26 AS col2, COUNT ( * ) col0
----
-51376
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT ALL - 68 - + 52 / + + 41 * 7 * CAST( NULL AS SIGNED ) + - + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL - 68 - + 52 / + + 41 * 7 * CAST ( NULL AS INTEGER ) + - + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT DISTINCT NULLIF ( + COUNT( * ), + 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 57 ) AS col2
----
1

query I rowsort
SELECT ALL 14 - - - 76
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8616
SELECT ALL 90 - 50 + - - COUNT( * ) AS col2, + ( + ( 73 ) )
----
41
73

skipif mysql # not compatible
query II rowsort label-8616
SELECT ALL 90 - 50 + - - COUNT ( * ) AS col2, + ( + ( 73 ) )
----
41
73

query I rowsort
SELECT - 96 * - - ( - + 32 ) AS col2
----
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT - 32 * + MIN( ALL + 77 ) AS col2
----
-2464

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT - 32 * + MIN ( ALL + 77 ) AS col2
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT DISTINCT COALESCE ( + MAX( - 68 ), + 57 )
----
-68

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT COALESCE ( + MAX ( - 68 ), + 57 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8620
SELECT + COUNT( * ) * + 56 DIV - MIN( ALL + 28 )
----
-2

skipif mysql # not compatible
query I rowsort label-8620
SELECT + COUNT ( * ) * + 56 / - MIN ( ALL + 28 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8621
SELECT DISTINCT NULLIF ( - 44, - COUNT( * ) ), - ( + 67 ) DIV + NULLIF ( + 34, 39 ) AS col0
----
-44
-1

skipif mysql # not compatible
query II rowsort label-8621
SELECT DISTINCT NULLIF ( - 44, - COUNT ( * ) ), - ( + 67 ) / + NULLIF ( + 34, 39 ) AS col0
----
-44
-1

query I rowsort
SELECT ALL + 5 - 30 + + + ( - + 39 )
----
-64

query I rowsort
SELECT - 60 * + + 67 AS col1
----
-4020

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - 36 - - - 38 + - 45 + 83 + - + 20 * + COUNT( * ) * 36 * - + SUM( 7 ) AS col2
----
5004

skipif mysql # not compatible
query I rowsort label-8624
SELECT - 36 - - - 38 + - 45 + 83 + - + 20 * + COUNT ( * ) * 36 * - + SUM ( 7 ) AS col2
----
5004

query I rowsort
SELECT DISTINCT 41 * - + 88 AS col0
----
-3608

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT DISTINCT + 88 DIV - + 68 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT + 88 / - + 68 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT + COUNT( ALL + + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-8627
SELECT + COUNT ( ALL + + 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL 3 * MAX( + 96 ) + 22 AS col1
----
310

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL 3 * MAX ( + 96 ) + 22 AS col1
----
310

query I rowsort
SELECT + 58 - 77
----
-19

query I rowsort
SELECT - 70 * + 44 col0
----
-3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8631
SELECT + 21 DIV - 28 + - COUNT( 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8631
SELECT + 21 / - 28 + - COUNT ( 35 ) AS col1
----
-1

query I rowsort
SELECT + 35 * - ( COALESCE ( + 80, 43 + + 6 ) )
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + SUM( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-8633
SELECT + SUM ( - 83 )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT + 52 DIV + 27 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 52 / + 27 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT CASE - 20 WHEN 23 THEN 18 * - 51 WHEN COUNT( - ( - 42 ) ) * 41 THEN 75 + 17 WHEN - CASE ( + 37 ) WHEN NULLIF ( 88, 31 ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - 35 THEN - COUNT( 90 ) END THEN CASE - 19 WHEN 18 * + ( - 26 * 68 ) + 76 / 9 THEN COUNT( * ) * + COUNT( * ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT CASE - 20 WHEN 23 THEN 18 * - 51 WHEN COUNT ( - ( - 42 ) ) * 41 THEN 75 + 17 WHEN - CASE ( + 37 ) WHEN NULLIF ( 88, 31 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 35 THEN - COUNT ( 90 ) END THEN CASE - 19 WHEN 18 * + ( - 26 * 68 ) + 76 / 9 THEN COUNT ( * ) * + COUNT ( * ) END END AS col1
----
NULL

query I rowsort
SELECT ALL - ( 75 ) * 60 + - 2 AS col1
----
-4502

query I rowsort
SELECT ALL + 86 * 36 + ( + 28 ) AS col0
----
3124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8638
SELECT + CAST( - 82 AS SIGNED ) * COUNT( * ) + ( 82 + + 72 ) DIV - 74 col2
----
-84

skipif mysql # not compatible
query I rowsort label-8638
SELECT + CAST ( - 82 AS INTEGER ) * COUNT ( * ) + ( 82 + + 72 ) / - 74 col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT 16 * - 67 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT 16 * - 67 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - 15 ) col2
----
-15

query I rowsort
SELECT ALL ( 64 ) * 14 + 21 * + 20
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL + 20 * COUNT( * ) + 54
----
74

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + 20 * COUNT ( * ) + 54
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT CASE + 69 WHEN 80 + 56 THEN + ( COUNT( * ) ) + + 16 WHEN 58 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT CASE + 69 WHEN 80 + 56 THEN + ( COUNT ( * ) ) + + 16 WHEN 58 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 14 * + 49 + 28 col1
----
714

query I rowsort
SELECT COALESCE ( 40, 33, 22 - 64 ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT + CASE - COUNT( * ) WHEN 61 THEN + 34 WHEN - CAST( NULL AS SIGNED ) * - 63 THEN 22 ELSE 47 END
----
47

skipif mysql # not compatible
query I rowsort label-8646
SELECT + CASE - COUNT ( * ) WHEN 61 THEN + 34 WHEN - CAST ( NULL AS INTEGER ) * - 63 THEN 22 ELSE 47 END
----
47

query I rowsort
SELECT - 62 * + 43 AS col1
----
-2666

query I rowsort
SELECT DISTINCT + 26 * 7 + + 7 AS col1
----
189

query I rowsort
SELECT + ( + 36 )
----
36

query I rowsort
SELECT + 9 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL + MAX( 81 )
----
81

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL + MAX ( 81 )
----
81

query I rowsort
SELECT + 26 - 23
----
3

query I rowsort
SELECT DISTINCT - 49 * + 99 - - 83 AS col0
----
-4768

query I rowsort
SELECT ALL 27 col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT DISTINCT 32 * NULLIF ( CASE 59 WHEN NULLIF ( 81, 43 ) - - 42 THEN CAST( - AVG ( 61 ) AS SIGNED ) / 4 WHEN + MIN( DISTINCT NULLIF ( - 34, - 4 - 41 / 31 ) ) + - 20 * - 23 THEN 81 END, + 22 * 21 + ( 11 ) * COUNT( * ) ) - - 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT 32 * NULLIF ( CASE 59 WHEN NULLIF ( 81, 43 ) - - 42 THEN CAST ( - AVG ( 61 ) AS INTEGER ) / 4 WHEN + MIN ( DISTINCT NULLIF ( - 34, - 4 - 41 / 31 ) ) + - 20 * - 23 THEN 81 END, + 22 * 21 + ( 11 ) * COUNT ( * ) ) - - 36 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - MIN( 37 ) * + 88 AS col2
----
-3256

skipif mysql # not compatible
query I rowsort label-8656
SELECT - MIN ( 37 ) * + 88 AS col2
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL COUNT( ALL 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL COUNT ( ALL 24 ) AS col2
----
1

query I rowsort
SELECT - 72 - + 11 * - 4 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8659
SELECT DISTINCT COALESCE ( 5, - CAST( + 55 AS SIGNED ), 35 + - MAX( ALL 36 ) )
----
5

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT COALESCE ( 5, - CAST ( + 55 AS INTEGER ), 35 + - MAX ( ALL 36 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + COUNT( * ) + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-8660
SELECT + COUNT ( * ) + - 56
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8661
SELECT ALL + 73 DIV + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL + 73 / + COUNT ( * )
----
73

query I rowsort
SELECT DISTINCT + 64 * 51 AS col2
----
3264

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT - 36 + 33 DIV - 20 col1
----
-37

skipif mysql # not compatible
query I rowsort label-8663
SELECT - 36 + 33 / - 20 col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8664
SELECT - 95 DIV COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-8664
SELECT - 95 / COUNT ( * )
----
-95

query I rowsort
SELECT ALL - 46 * + ( + 33 )
----
-1518

query I rowsort
SELECT DISTINCT + 92 * - 94
----
-8648

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - MIN( 14 ) + - 60 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8667
SELECT - MIN ( 14 ) + - 60 AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - NULLIF ( COUNT( * ), 7 * + 41 ) * - 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8669
SELECT - NULLIF ( COUNT ( * ), 7 * + 41 ) * - 78 AS col0
----
78

query I rowsort
SELECT DISTINCT + 1 * + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL - 47 + - ( NULLIF ( COUNT( * ), 31 ) - 22 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL - 47 + - ( NULLIF ( COUNT ( * ), 31 ) - 22 ) AS col0
----
-26

query I rowsort
SELECT - ( - 95 ) * 18
----
1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8673
SELECT DISTINCT - 29 + - 89 DIV NULLIF ( 19 * MAX( ALL - 45 ), 35 ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT - 29 + - 89 / NULLIF ( 19 * MAX ( ALL - 45 ), 35 ) col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8674
SELECT ALL CAST( 60 AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL CAST ( 60 AS INTEGER ) AS col1
----
60

query I rowsort
SELECT - CASE 34 WHEN ( - 42 ) + 15 THEN + 10 ELSE - 85 * + 70 END * + 60 AS col2
----
357000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT + - 31 + - CASE + CASE - CAST( 3 AS SIGNED ) WHEN 57 + 60 THEN NULL WHEN 84 THEN 23 ELSE NULL END WHEN 94 - - 5 * ( 81 ) THEN + 59 * - 90 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT + - 31 + - CASE + CASE - CAST ( 3 AS INTEGER ) WHEN 57 + 60 THEN NULL WHEN 84 THEN 23 ELSE NULL END WHEN 94 - - 5 * ( 81 ) THEN + 59 * - 90 END AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 54 ) + 89 AS col1
----
35

query I rowsort
SELECT - ( 20 ) col2
----
-20

query I rowsort
SELECT + - ( 80 ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8680
SELECT ALL + + CASE - 2 WHEN - 20 THEN NULL WHEN 99 - 16 / - CAST( NULL AS SIGNED ) THEN 43 WHEN COALESCE ( + 44, - COUNT( * ) - 26 ) THEN 14 / - 97 ELSE NULL END / 4 + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL + + CASE - 2 WHEN - 20 THEN NULL WHEN 99 - 16 / - CAST ( NULL AS INTEGER ) THEN 43 WHEN COALESCE ( + 44, - COUNT ( * ) - 26 ) THEN 14 / - 97 ELSE NULL END / 4 + 91 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + ( 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT - 82 * - SUM( - ( 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8682
SELECT - 82 * - SUM ( - ( 0 ) ) AS col2
----
0

query I rowsort
SELECT ALL 22 * + 7
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL + SUM( ALL + 46 ) * - 61 AS col0
----
-2806

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + SUM ( ALL + 46 ) * - 61 AS col0
----
-2806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8685
SELECT ALL + 24 DIV MIN( ALL 44 ) + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + 24 / MIN ( ALL 44 ) + 65 AS col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT - 49 DIV 26
----
-1

skipif mysql # not compatible
query I rowsort label-8686
SELECT - 49 / 26
----
-1

query I rowsort
SELECT + - 29 * 82
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL - COUNT( * ) * - 66
----
66

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - COUNT ( * ) * - 66
----
66

query I rowsort
SELECT + - ( + 36 )
----
-36

query I rowsort
SELECT + + 55 * 86
----
4730

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT + - COUNT( - 53 ) / - CASE - 85 WHEN 30 THEN - 71 + 19 WHEN - 98 + - 66 THEN - 31 + 41 END - 85 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT + - COUNT ( - 53 ) / - CASE - 85 WHEN 30 THEN - 71 + 19 WHEN - 98 + - 66 THEN - 31 + 41 END - 85 * 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8692
SELECT ALL COALESCE ( - ( + 46 ), - 38, 83 * - 99 + 38 ) DIV + NULLIF ( + 74, ( + COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL COALESCE ( - ( + 46 ), - 38, 83 * - 99 + 38 ) / + NULLIF ( + 74, ( + COUNT ( * ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8693
SELECT + 98 * - ( - ( + 28 ) DIV - ( COUNT( * ) ) ) AS col1
----
-2744

skipif mysql # not compatible
query I rowsort label-8693
SELECT + 98 * - ( - ( + 28 ) / - ( COUNT ( * ) ) ) AS col1
----
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT - + MAX( DISTINCT 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT - + MAX ( DISTINCT 1 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 67 - 17 * 85
----
-1378

query I rowsort
SELECT DISTINCT 32 * + - 92
----
-2944

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT COUNT( * ) * - 77 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8697
SELECT COUNT ( * ) * - 77 AS col2
----
-77

query I rowsort
SELECT ( - 30 ) * - 84 AS col2
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT DISTINCT CAST( 86 AS SIGNED ) * 35
----
3010

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT CAST ( 86 AS INTEGER ) * 35
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT MIN( DISTINCT - 46 ) + 35 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-8700
SELECT MIN ( DISTINCT - 46 ) + 35 * - COUNT ( * )
----
-81

query I rowsort
SELECT ALL 13 * + 14
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ( COUNT( * ) ) * 79
----
79

skipif mysql # not compatible
query I rowsort label-8702
SELECT ( COUNT ( * ) ) * 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT + 96 * + COUNT( * ) + ( 26 ) * + 12 AS col1
----
408

skipif mysql # not compatible
query I rowsort label-8703
SELECT + 96 * + COUNT ( * ) + ( 26 ) * + 12 AS col1
----
408

query I rowsort
SELECT ALL 31 * - 16
----
-496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 55 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 55 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 36 + + + 2 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT 89 DIV + 18 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8707
SELECT 89 / + 18 AS col2
----
4

query I rowsort
SELECT 60 * - 96
----
-5760

query I rowsort
SELECT 95 * + + 29 * - ( + NULLIF ( 18, - 57 + + NULLIF ( + COALESCE ( 97, - 12 ), 86 ) ) )
----
-49590

query I rowsort
SELECT DISTINCT + ( + 16 ) + 16
----
32

query I rowsort
SELECT ALL - 80 + + + 57
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - COUNT( * ) - 95
----
-96

skipif mysql # not compatible
query I rowsort label-8712
SELECT - COUNT ( * ) - 95
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT ALL ( 62 ) DIV + 10
----
6

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL ( 62 ) / + 10
----
6

query I rowsort
SELECT ALL + + 57 + - - ( CASE + COALESCE ( + 1, ( + 12 ) * - 75 + 46 * 20 ) WHEN - 28 * + 8 THEN 55 END ) / 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8715
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * 73
----
-73

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT + + 15 + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT + + 15 + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL + NULLIF ( 56, - 22 * + MAX( DISTINCT 56 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL + NULLIF ( 56, - 22 * + MAX ( DISTINCT 56 ) ) AS col0
----
56

query I rowsort
SELECT + - ( 40 ) col2
----
-40

query I rowsort
SELECT NULLIF ( + 24, + 34 )
----
24

query I rowsort
SELECT - 69 * + 30 + - 41 + - ( 21 ) AS col2
----
-2132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT CAST( - 38 AS SIGNED ) - 79 * - 50
----
3912

skipif mysql # not compatible
query I rowsort label-8721
SELECT CAST ( - 38 AS INTEGER ) - 79 * - 50
----
3912

query I rowsort
SELECT ALL - + 72 AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8723
SELECT + 46 + + - 97 DIV + 16
----
40

skipif mysql # not compatible
query I rowsort label-8723
SELECT + 46 + + - 97 / + 16
----
40

query I rowsort
SELECT + 16 * + + CASE - 46 WHEN AVG ( 97 ) THEN - 22 WHEN + 53 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - ( - 41 ) * + 67
----
2747

query I rowsort
SELECT ALL + 4 - + 45 * 60 AS col1
----
-2696

query I rowsort
SELECT ALL - - 90 * - 38 AS col2
----
-3420

query I rowsort
SELECT + 81 * + 23 + 2 AS col1
----
1865

query I rowsort
SELECT 21 * - 26
----
-546

query I rowsort
SELECT ALL - ( - 26 )
----
26

query I rowsort
SELECT 25 * - 67 AS col0
----
-1675

query II rowsort
SELECT 63 AS col1, + 32 - + 35 AS col1
----
63
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL + COUNT( * ) * + - 30 * + 27 AS col0
----
-810

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL + COUNT ( * ) * + - 30 * + 27 AS col0
----
-810

query I rowsort
SELECT 91 * - 74 + - 89
----
-6823

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT 80 * + MAX( ALL + 95 )
----
7600

skipif mysql # not compatible
query I rowsort label-8735
SELECT 80 * + MAX ( ALL + 95 )
----
7600

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT 10 * 20 DIV 28 - - 57 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8736
SELECT 10 * 20 / 28 - - 57 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT - SUM( DISTINCT 73 ) * 67 + - 18 AS col0
----
-4909

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT - SUM ( DISTINCT 73 ) * 67 + - 18 AS col0
----
-4909

query I rowsort
SELECT ALL + 19 * - 49 AS col2
----
-931

query I rowsort
SELECT DISTINCT + 1 + COALESCE ( 30, - CASE WHEN NOT 72 BETWEEN NULL AND 68 + - 0 THEN 21 END ) - 21 AS col1
----
10

query I rowsort
SELECT ALL - 46 + - 84 + 47 + - 84 * 66
----
-5627

query I rowsort
SELECT 79 * - - 73 col2
----
5767

query I rowsort
SELECT 86 - CASE - 50 WHEN - 97 * 82 THEN 25 * 91 + 79 END + 79 * 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT MIN( DISTINCT - + 56 ) + - + 13 - 75
----
-144

skipif mysql # not compatible
query I rowsort label-8743
SELECT MIN ( DISTINCT - + 56 ) + - + 13 - 75
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT CASE - 67 WHEN - - SUM( + 2 ) THEN - 49 WHEN + COUNT( * ) THEN 92 * 75 ELSE NULL END - + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT CASE - 67 WHEN - - SUM ( + 2 ) THEN - 49 WHEN + COUNT ( * ) THEN 92 * 75 ELSE NULL END - + 61 AS col2
----
NULL

query I rowsort
SELECT ALL 24 * + 48 col0
----
1152

query I rowsort
SELECT 69 + 16
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8747
SELECT 5 + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) + + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT 5 + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) + + 29 AS col2
----
NULL

query II rowsort
SELECT 63, - 25 + - 85 AS col0
----
63
-110

query II rowsort
SELECT - 67 AS col0, - 61 AS col2
----
-67
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8750
SELECT ALL COUNT( * ) + + 45 + - - 18 * ( 27 DIV + 29 )
----
46

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL COUNT ( * ) + + 45 + - - 18 * ( 27 / + 29 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT CASE + 86 WHEN + 27 THEN + 57 * COUNT( * ) ELSE + 55 END + - CAST( - 32 AS SIGNED ) col0
----
87

skipif mysql # not compatible
query I rowsort label-8751
SELECT CASE + 86 WHEN + 27 THEN + 57 * COUNT ( * ) ELSE + 55 END + - CAST ( - 32 AS INTEGER ) col0
----
87

query II rowsort
SELECT 74, 23 col1
----
74
23

query I rowsort
SELECT ALL 88 * - 89 * + - 93 AS col2
----
728376

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT + COUNT( * ) + + ( - COUNT( DISTINCT + 77 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8754
SELECT + COUNT ( * ) + + ( - COUNT ( DISTINCT + 77 ) ) AS col1
----
0

query II rowsort
SELECT ALL 87 AS col2, + 51 - - 71 AS col1
----
87
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8756
SELECT DISTINCT CASE - 30 WHEN - + 21 + COALESCE ( COUNT( * ) + 52, + MIN( 0 ) ) THEN - 41 WHEN - SUM( ALL + 86 ) THEN NULL ELSE - 5 DIV 15 END
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT CASE - 30 WHEN - + 21 + COALESCE ( COUNT ( * ) + 52, + MIN ( 0 ) ) THEN - 41 WHEN - SUM ( ALL + 86 ) THEN NULL ELSE - 5 / 15 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT + SUM( + 36 ) + - - 48
----
84

skipif mysql # not compatible
query I rowsort label-8757
SELECT + SUM ( + 36 ) + - - 48
----
84

query I rowsort
SELECT 87 * + 22
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT - 87 + + - COUNT( * ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-8759
SELECT - 87 + + - COUNT ( * ) col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT + COALESCE ( 24, 33 * 95 ) DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + COALESCE ( 24, 33 * 95 ) / + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT - COALESCE ( CASE + 16 WHEN - 46 THEN NULL WHEN + 19 + + 51 THEN NULL ELSE - 70 * COUNT( * ) END, + 98 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - COALESCE ( CASE + 16 WHEN - 46 THEN NULL WHEN + 19 + + 51 THEN NULL ELSE - 70 * COUNT ( * ) END, + 98 ) AS col1
----
70

query I rowsort
SELECT 66 * + 91
----
6006

query I rowsort
SELECT 10 * 38
----
380

query I rowsort
SELECT + 53 * + 76 * + 43
----
173204

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL + CASE - COUNT( * ) WHEN 80 + - 82 * - 44 THEN 66 + - 90 WHEN 83 * + 90 THEN - 56 ELSE - 78 END AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + CASE - COUNT ( * ) WHEN 80 + - 82 * - 44 THEN 66 + - 90 WHEN 83 * + 90 THEN - 56 ELSE - 78 END AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT DISTINCT 27 DIV + - MAX( DISTINCT - - 14 ) + - 92 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT 27 / + - MAX ( DISTINCT - - 14 ) + - 92 AS col2
----
-93

query II rowsort
SELECT 52, 85 AS col1
----
52
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT - + ( - 12 ) * CAST( + 8 AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8768
SELECT - + ( - 12 ) * CAST ( + 8 AS INTEGER ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT SUM( - - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8769
SELECT SUM ( - - 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL + 72 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL + 72 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8771
SELECT + + 82, COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-8771
SELECT + + 82, COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2
----
82
NULL

query I rowsort
SELECT - 44 * - NULLIF ( CASE + - 40 WHEN + 63 + - 2 THEN 5 ELSE NULL END, + 12 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT - CASE + 79 WHEN - COUNT( * ) THEN - - 18 END - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT - CASE + 79 WHEN - COUNT ( * ) THEN - - 18 END - - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT 44 * - COUNT( + 14 ) + + 97 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT 44 * - COUNT ( + 14 ) + + 97 AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8776
SELECT ALL MIN( - 0 ) * 59 DIV + + 62 + ( 63 ) + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL MIN ( - 0 ) * 59 / + + 62 + ( 63 ) + - COUNT ( * )
----
62

query II rowsort
SELECT - 78 * - 87, 67 + - 25 AS col1
----
6786
42

query I rowsort
SELECT DISTINCT - 42 * 82 * - CASE + 21 WHEN - 64 THEN + 96 ELSE 94 END * 98 AS col1
----
31726128

query I rowsort
SELECT + 60 + - 34 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT - COUNT( DISTINCT ( + - 68 ) ) + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT - COUNT ( DISTINCT ( + - 68 ) ) + - 86
----
-87

query I rowsort
SELECT ALL + 15 + - NULLIF ( 49, + 69 )
----
-34

query I rowsort
SELECT + 12 + - 19 + 72 - 12 * 47 col1
----
-499

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT COUNT( + + 52 ) + + 62 + - 62 * 22 * CASE + 47 WHEN ( 0 ) THEN - 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT COUNT ( + + 52 ) + + 62 + - 62 * 22 * CASE + 47 WHEN ( 0 ) THEN - 20 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8784
SELECT ALL + 25 * + - 38 * - 66 * + - CAST( 71 AS SIGNED ) * + COUNT( * )
----
-4451700

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + 25 * + - 38 * - 66 * + - CAST ( 71 AS INTEGER ) * + COUNT ( * )
----
-4451700

query I rowsort
SELECT DISTINCT - 70 * 71 AS col0
----
-4970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8786
SELECT ALL COALESCE ( - - 43, - 60 * + - 23 + 59 ) DIV - MIN( ( + 41 ) + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL COALESCE ( - - 43, - 60 * + - 23 + 59 ) / - MIN ( ( + 41 ) + 33 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT ( + SUM( DISTINCT - - NULLIF ( - + 33, + 5 ) ) )
----
-33

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT ( + SUM ( DISTINCT - - NULLIF ( - + 33, + 5 ) ) )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT - 88 - 42 - - - 8 DIV 89 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-8788
SELECT - 88 - 42 - - - 8 / 89 AS col0
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT - NULLIF ( + 66, CASE + COUNT( * ) WHEN + 50 THEN 50 * - 30 WHEN 39 + 96 / + CASE 90 * 83 - - ( 14 + 56 ) WHEN + 83 * ( + COALESCE ( 74, NULLIF ( 57, 22 ) + 43 * + 99, 11 ) / 46 ) THEN NULL WHEN + ( + ( - 88 ) ) - 94 THEN NULL WHEN - COUNT( * ) * 74 - 9 THEN - CAST( ( 87 ) AS SIGNED ) * + 17 END THEN - 74 ELSE 17 END * - NULLIF ( COALESCE ( 15, CAST( NULL AS SIGNED ) ) * + 81, 87 * - ( + 79 ) + 49 ) ) + + 11 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8789
SELECT - NULLIF ( + 66, CASE + COUNT ( * ) WHEN + 50 THEN 50 * - 30 WHEN 39 + 96 / + CASE 90 * 83 - - ( 14 + 56 ) WHEN + 83 * ( + COALESCE ( 74, NULLIF ( 57, 22 ) + 43 * + 99, 11 ) / 46 ) THEN NULL WHEN + ( + ( - 88 ) ) - 94 THEN NULL WHEN - COUNT ( * ) * 74 - 9 THEN - CAST ( ( 87 ) AS INTEGER ) * + 17 END THEN - 74 ELSE 17 END * - NULLIF ( COALESCE ( 15, CAST ( NULL AS INTEGER ) ) * + 81, 87 * - ( + 79 ) + 49 ) ) + + 11 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - - 6 * - - COUNT( * ) * - + 92
----
-552

skipif mysql # not compatible
query I rowsort label-8790
SELECT - - 6 * - - COUNT ( * ) * - + 92
----
-552

query I rowsort
SELECT ALL + COALESCE ( - + 5, - - 19, + 25 + + 53, + 88 ) - + 38
----
-43

query I rowsort
SELECT - ( + + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT + - COUNT( - 59 ) - + 6
----
-7

skipif mysql # not compatible
query I rowsort label-8793
SELECT + - COUNT ( - 59 ) - + 6
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8794
SELECT DISTINCT COUNT( * ) * 25 * 7 + - CAST( NULL AS SIGNED ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT COUNT ( * ) * 25 * 7 + - CAST ( NULL AS INTEGER ) + 76
----
NULL

query I rowsort
SELECT ALL - 14 col2
----
-14

query I rowsort
SELECT - - 73 AS col2
----
73

query I rowsort
SELECT ALL - 1 * - 96 AS col0
----
96

query I rowsort
SELECT 21 * 29 + - + 47 + - 35 + - COALESCE ( 21, - 19, - 21 * - 39 + - 74 ) + 65
----
571

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT - - 67 DIV - 36 + - 74
----
-75

skipif mysql # not compatible
query I rowsort label-8799
SELECT - - 67 / - 36 + - 74
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8800
SELECT + + COUNT( * ) DIV + SUM( - + ( - - 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8800
SELECT + + COUNT ( * ) / + SUM ( - + ( - - 99 ) )
----
0

query I rowsort
SELECT ALL + + 84 AS col0
----
84

query I rowsort
SELECT + ( - 24 ) AS col1
----
-24

query I rowsort
SELECT - 26 * 4 AS col1
----
-104

query I rowsort
SELECT ( + - 76 ) AS col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT ALL 96 DIV + COUNT( 81 ) + - - SUM( 25 ) - + 28 DIV 12
----
119

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL 96 / + COUNT ( 81 ) + - - SUM ( 25 ) - + 28 / 12
----
119

query I rowsort
SELECT - 90 * 75 * + COALESCE ( - 73, - 41, 65 )
----
492750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8807
SELECT + COUNT( DISTINCT + - 31 ) DIV - COUNT( * ) + + - 7 + + - 18 DIV - ( + CAST( - 11 AS SIGNED ) )
----
-9

skipif mysql # not compatible
query I rowsort label-8807
SELECT + COUNT ( DISTINCT + - 31 ) / - COUNT ( * ) + + - 7 + + - 18 / - ( + CAST ( - 11 AS INTEGER ) )
----
-9

query I rowsort
SELECT ALL 96 * - 82 + - 42
----
-7914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 56 * 2 AS col2
----
-112

query I rowsort
SELECT + 54 + - + 95 AS col0
----
-41

query I rowsort
SELECT - CASE WHEN NULL NOT IN ( + 10 ) THEN 53 ELSE + 4 END * 82
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT NULLIF ( - 31, COALESCE ( - COALESCE ( + 40, - COUNT( * ) + 91 ), + CASE WHEN NOT COUNT( * ) IN ( 79 ) THEN ( - 81 ) * COUNT( ALL 83 / + 8 ) END - + 63 ) * + 23 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8813
SELECT NULLIF ( - 31, COALESCE ( - COALESCE ( + 40, - COUNT ( * ) + 91 ), + CASE WHEN NOT COUNT ( * ) IN ( 79 ) THEN ( - 81 ) * COUNT ( ALL 83 / + 8 ) END - + 63 ) * + 23 ) AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8814
SELECT ALL SUM( ALL + - 32 ) * CAST( NULL AS SIGNED ) + + 62 - - - 15 + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL SUM ( ALL + - 32 ) * CAST ( NULL AS INTEGER ) + + 62 - - - 15 + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL 12 * + - 5 * - COUNT( * ) * + 23 col2
----
1380

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL 12 * + - 5 * - COUNT ( * ) * + 23 col2
----
1380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8816
SELECT + 1 * - NULLIF ( - 46, - COUNT( * ) + + - 51 + + 47 * COALESCE ( - 34, + 9 * 73, - 92 - + COUNT( * ) * - ( - 52 + 52 ) ) ) - 87 DIV + 55 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8816
SELECT + 1 * - NULLIF ( - 46, - COUNT ( * ) + + - 51 + + 47 * COALESCE ( - 34, + 9 * 73, - 92 - + COUNT ( * ) * - ( - 52 + 52 ) ) ) - 87 / + 55 AS col2
----
45

query I rowsort
SELECT NULLIF ( + + 72, - 43 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL 20 * - SUM( DISTINCT + 10 ) - - 39 * + - 77
----
-3203

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL 20 * - SUM ( DISTINCT + 10 ) - - 39 * + - 77
----
-3203

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT COALESCE ( COUNT( * ), - 6, + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8819
SELECT COALESCE ( COUNT ( * ), - 6, + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT ALL + MAX( ALL + 39 ) * COUNT( DISTINCT 50 ) - ( 92 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL + MAX ( ALL + 39 ) * COUNT ( DISTINCT 50 ) - ( 92 ) col0
----
-53

query I rowsort
SELECT DISTINCT + 12 / + CASE + 34 WHEN 92 THEN NULL WHEN - - 15 + 50 THEN COALESCE ( 89, 52 ) END
----
NULL

query I rowsort
SELECT - 72 + - NULLIF ( - 32, 20 ) AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT - - 21 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT - - 21 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 46 * + - 91 AS col1
----
4186

query I rowsort
SELECT ALL + 57 * - - 41 AS col1
----
2337

query I rowsort
SELECT - + 52 + - 47
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT - + 86 * 64 * - 26 * + COUNT( ALL - 98 ) - COUNT( * ) - + 16
----
143087

skipif mysql # not compatible
query I rowsort label-8827
SELECT - + 86 * 64 * - 26 * + COUNT ( ALL - 98 ) - COUNT ( * ) - + 16
----
143087

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT - COALESCE ( 54, + 83 + + 80 DIV 91 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8828
SELECT - COALESCE ( 54, + 83 + + 80 / 91 ) AS col2
----
-54

query I rowsort
SELECT + 8 * - 63 + - 86 + 56 AS col2
----
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT COUNT( * ) * 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-8830
SELECT COUNT ( * ) * 96 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8831
SELECT ALL + + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL + + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) * - 67
----
NULL

query I rowsort
SELECT 50 + + + 7 + - + 65
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT ALL + 52 AS col0, ( - COUNT( * ) )
----
52
-1

skipif mysql # not compatible
query II rowsort label-8833
SELECT ALL + 52 AS col0, ( - COUNT ( * ) )
----
52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT - COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT - COUNT ( * ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL - 5 * + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL - 5 * + COUNT ( * )
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8836
SELECT ALL CAST( + ( - 22 ) AS SIGNED ) DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL CAST ( + ( - 22 ) AS INTEGER ) / - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - COUNT( * ) + 44 + - + 50 * - 54
----
2743

skipif mysql # not compatible
query I rowsort label-8837
SELECT - COUNT ( * ) + 44 + - + 50 * - 54
----
2743

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8838
SELECT ( - COALESCE ( - CASE + CAST( NULL AS DECIMAL ) WHEN - - 20 THEN - 22 + - CASE + COALESCE ( 69, - 83 * + 69 ) WHEN ( 34 ) THEN + 7 * - 97 END END, 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8838
SELECT ( - COALESCE ( - CASE + CAST ( NULL AS REAL ) WHEN - - 20 THEN - 22 + - CASE + COALESCE ( 69, - 83 * + 69 ) WHEN ( 34 ) THEN + 7 * - 97 END END, 91 ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT 88 + + SUM( + 17 ) * + 95 AS col0
----
1703

skipif mysql # not compatible
query I rowsort label-8839
SELECT 88 + + SUM ( + 17 ) * + 95 AS col0
----
1703

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8840
SELECT ALL CAST( NULL AS DECIMAL ) + - ( 37 ) * 66 / + - ( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL CAST ( NULL AS REAL ) + - ( 37 ) * 66 / + - ( 79 )
----
NULL

query I rowsort
SELECT DISTINCT 50 + 42 AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT + 98 + - - 39 DIV 84 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8842
SELECT + 98 + - - 39 / 84 AS col0
----
98

query I rowsort
SELECT DISTINCT - CASE + 54 WHEN - 50 THEN NULL ELSE - 45 END
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT 51 * 81 * ( + - COUNT( * ) ) + - 36 + - ( - 21 ) * - 66 * 52 AS col0
----
-76239

skipif mysql # not compatible
query I rowsort label-8844
SELECT 51 * 81 * ( + - COUNT ( * ) ) + - 36 + - ( - 21 ) * - 66 * 52 AS col0
----
-76239

query I rowsort
SELECT DISTINCT - 14 + - 7 - + 92 * + 26 * - + 21
----
50211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT ALL CAST( 32 AS SIGNED ) * - 56
----
-1792

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL CAST ( 32 AS INTEGER ) * - 56
----
-1792

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT SUM( DISTINCT 52 ) * + + 89 * - + 47 + + + 84
----
-217432

skipif mysql # not compatible
query I rowsort label-8847
SELECT SUM ( DISTINCT 52 ) * + + 89 * - + 47 + + + 84
----
-217432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT CAST( 37 AS SIGNED ) * + 98 AS col0
----
3626

skipif mysql # not compatible
query I rowsort label-8848
SELECT CAST ( 37 AS INTEGER ) * + 98 AS col0
----
3626

query I rowsort
SELECT 63 - 49 AS col1
----
14

query II rowsort
SELECT + 42 AS col1, 61
----
42
61

query I rowsort
SELECT 88 * - 94 * + 65 + + + 9 AS col2
----
-537671

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT 8 DIV - 11
----
0

skipif mysql # not compatible
query I rowsort label-8852
SELECT 8 / - 11
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8853
SELECT ALL COUNT( * ) - - 45 DIV - 58
----
1

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL COUNT ( * ) - - 45 / - 58
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8854
SELECT CAST( - - 54 AS SIGNED ) * - 45 col0
----
-2430

skipif mysql # not compatible
query I rowsort label-8854
SELECT CAST ( - - 54 AS INTEGER ) * - 45 col0
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT 85 + - MIN( ALL 25 )
----
60

skipif mysql # not compatible
query I rowsort label-8855
SELECT 85 + - MIN ( ALL 25 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8856
SELECT + 53 col2, - 88 * - - COUNT( * )
----
53
-88

skipif mysql # not compatible
query II rowsort label-8856
SELECT + 53 col2, - 88 * - - COUNT ( * )
----
53
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT + 35 * COUNT( * ) + COUNT( * ) * + MIN( + - 60 ) * + 44 AS col1
----
-2605

skipif mysql # not compatible
query I rowsort label-8857
SELECT + 35 * COUNT ( * ) + COUNT ( * ) * + MIN ( + - 60 ) * + 44 AS col1
----
-2605

query I rowsort
SELECT ALL 6 - - 99
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT ALL 65 / - - COUNT( * ) * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL 65 / - - COUNT ( * ) * ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 4 * - 59 AS col1
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL + MAX( - 4 ) * + 75 AS col1
----
-300

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + MAX ( - 4 ) * + 75 AS col1
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL MAX( ALL 93 ) * - 8 * - + 29
----
21576

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL MAX ( ALL 93 ) * - 8 * - + 29
----
21576

query II rowsort
SELECT + 66 col2, ( + - 62 ) - + 66
----
66
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8864
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN + NULLIF ( 4, - 53 + + COUNT( DISTINCT - COALESCE ( + 63, - 57 * ( 1 ), - 2 / 10 ) ) ) THEN NULL ELSE - 53 END * COUNT( DISTINCT - 67 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN + NULLIF ( 4, - 53 + + COUNT ( DISTINCT - COALESCE ( + 63, - 57 * ( 1 ), - 2 / 10 ) ) ) THEN NULL ELSE - 53 END * COUNT ( DISTINCT - 67 ) AS col0
----
-53

query I rowsort
SELECT + 83 * 91 AS col2
----
7553

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT DISTINCT COUNT( * ) AS col2, + COALESCE ( + 22, + COUNT( * ) + 25 ) AS col1
----
1
22

skipif mysql # not compatible
query II rowsort label-8866
SELECT DISTINCT COUNT ( * ) AS col2, + COALESCE ( + 22, + COUNT ( * ) + 25 ) AS col1
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT - SUM( DISTINCT - - 67 ) * + NULLIF ( - - 25, + 76 ) AS col1
----
-1675

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT - SUM ( DISTINCT - - 67 ) * + NULLIF ( - - 25, + 76 ) AS col1
----
-1675

onlyif mysql # DIV for integer division: 
query II rowsort label-8868
SELECT ALL + 8 AS col1, 13 DIV - - COALESCE ( - COALESCE ( + - 87, ( + 16 ) ), 84 )
----
8
0

skipif mysql # not compatible
query II rowsort label-8868
SELECT ALL + 8 AS col1, 13 / - - COALESCE ( - COALESCE ( + - 87, ( + 16 ) ), 84 )
----
8
0

query II rowsort
SELECT ALL - 23 AS col0, - 29 * - 44 * + - 90 - - 86 + + 84 AS col0
----
-23
-114670

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT + COALESCE ( + 47, CASE + 9 WHEN + NULLIF ( - 36, - 1 ) + 48 THEN 41 WHEN + COUNT( * ) / + 9 + AVG ( DISTINCT - 33 ) THEN NULL END ) + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT + COALESCE ( + 47, CASE + 9 WHEN + NULLIF ( - 36, - 1 ) + 48 THEN 41 WHEN + COUNT ( * ) / + 9 + AVG ( DISTINCT - 33 ) THEN NULL END ) + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL + SUM( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL + SUM ( ALL - 73 )
----
-73

query I rowsort
SELECT - + ( - 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8873
SELECT DISTINCT - CAST( - + 76 AS SIGNED ), CASE + ( + - CAST( NULL AS SIGNED ) ) WHEN - 65 THEN - 79 END / + 72 col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-8873
SELECT DISTINCT - CAST ( - + 76 AS INTEGER ), CASE + ( + - CAST ( NULL AS INTEGER ) ) WHEN - 65 THEN - 79 END / + 72 col2
----
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL + 85 + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + 85 + COUNT ( * )
----
86

query I rowsort
SELECT + ( - + 19 ) + - 11 col2
----
-30

query II rowsort
SELECT ALL 86 AS col0, 64 + - 82 * - + NULLIF ( + + 61, 50 ) * 50 + + 28
----
86
250192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8877
SELECT 36 DIV 44 * SUM( 90 ) DIV - + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8877
SELECT 36 / 44 * SUM ( 90 ) / - + 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT + 83 * + COALESCE ( + 57, - + 77 ) + - NULLIF ( - MAX( ( - 22 ) ), - ( - 25 ) / + 78 )
----
4709

skipif mysql # not compatible
query I rowsort label-8878
SELECT + 83 * + COALESCE ( + 57, - + 77 ) + - NULLIF ( - MAX ( ( - 22 ) ), - ( - 25 ) / + 78 )
----
4709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT DISTINCT - + 14 + CAST( - + COUNT( * ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT - + 14 + CAST ( - + COUNT ( * ) AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL 79 + 38 * + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL 79 + 38 * + - COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8881
SELECT - COUNT( * ) - + + CAST( 66 AS SIGNED ) * - COALESCE ( - + 82, + - 4 + 97 ) col0
----
-5413

skipif mysql # not compatible
query I rowsort label-8881
SELECT - COUNT ( * ) - + + CAST ( 66 AS INTEGER ) * - COALESCE ( - + 82, + - 4 + 97 ) col0
----
-5413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT ALL - - 47 + + CAST( 77 AS SIGNED ) + + ( - + 37 ) * COUNT( * ) * - NULLIF ( - ( + 44 ), NULLIF ( + COALESCE ( ( - 11 ), - NULLIF ( 49, 16 + + 26 ) ), + 21 + - COUNT( * ) ) ) + 59
----
-1445

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL - - 47 + + CAST ( 77 AS INTEGER ) + + ( - + 37 ) * COUNT ( * ) * - NULLIF ( - ( + 44 ), NULLIF ( + COALESCE ( ( - 11 ), - NULLIF ( 49, 16 + + 26 ) ), + 21 + - COUNT ( * ) ) ) + 59
----
-1445

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT MIN( + 78 ) + + + ( + - 60 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8883
SELECT MIN ( + 78 ) + + + ( + - 60 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT ALL - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 65 * + 96 + + 68 AS col0, 94 * - + 84 AS col0
----
6308
-7896

query I rowsort
SELECT + 88 * - 94 - - ( ( 49 ) ) - + - 19
----
-8204

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT 2 DIV + + 78 * - 90 * - + 51 * + - 44 - - 35
----
35

skipif mysql # not compatible
query I rowsort label-8887
SELECT 2 / + + 78 * - 90 * - + 51 * + - 44 - - 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT 69 * - - COUNT( * ) - + - 10
----
79

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT 69 * - - COUNT ( * ) - + - 10
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-8889
SELECT + 31 * 21 DIV 74 + + ( + - 21 ), + 7 AS col1
----
-13
7

skipif mysql # not compatible
query II rowsort label-8889
SELECT + 31 * 21 / 74 + + ( + - 21 ), + 7 AS col1
----
-13
7

query II rowsort
SELECT DISTINCT - 11 * 10 AS col1, CASE - 4 WHEN + 42 THEN NULL WHEN + - 84 THEN + - 32 END * - 94 AS col2
----
-110
NULL

query I rowsort
SELECT 14 * - + NULLIF ( 80, + 97 * - ( + 62 ) )
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8892
SELECT 33 + + CASE 15 WHEN + - CAST( 71 AS SIGNED ) THEN + 9 * 12 WHEN MIN( 74 ) * + 41 THEN 68 WHEN 9 DIV 44 THEN NULL ELSE + CAST( 79 AS SIGNED ) DIV - 41 END
----
32

skipif mysql # not compatible
query I rowsort label-8892
SELECT 33 + + CASE 15 WHEN + - CAST ( 71 AS INTEGER ) THEN + 9 * 12 WHEN MIN ( 74 ) * + 41 THEN 68 WHEN 9 / 44 THEN NULL ELSE + CAST ( 79 AS INTEGER ) / - 41 END
----
32

query II rowsort
SELECT ( - 92 ) AS col1, ( - + ( 91 ) )
----
-92
-91

query I rowsort
SELECT DISTINCT + + 55 AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8895
SELECT + - 69 + - 21 + + 32 + + 41 DIV SUM( DISTINCT 54 ) * + - 0 + + 86 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8895
SELECT + - 69 + - 21 + + 32 + + 41 / SUM ( DISTINCT 54 ) * + - 0 + + 86 AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT ALL - - 66 * COUNT( * ) AS col1, - NULLIF ( - 28, + - ( 41 ) * + - 85 ) + - 87 AS col0
----
66
-59

skipif mysql # not compatible
query II rowsort label-8896
SELECT ALL - - 66 * COUNT ( * ) AS col1, - NULLIF ( - 28, + - ( 41 ) * + - 85 ) + - 87 AS col0
----
66
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT + - 19 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-8897
SELECT + - 19 / 73
----
0

query II rowsort
SELECT + + 8 + 34, - COALESCE ( + + 55, - 48 + ( - 95 ) * 75 ) AS col0
----
42
-55

query I rowsort
SELECT + 84 + ( + NULLIF ( 2, - - 28 * + + 13 * - + 66 - + 22 * 99 - 2 ) )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8900
SELECT - 53 + + 2 AS col1, - 55 - - COUNT( 27 )
----
-51
-54

skipif mysql # not compatible
query II rowsort label-8900
SELECT - 53 + + 2 AS col1, - 55 - - COUNT ( 27 )
----
-51
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT ALL 23 + + NULLIF ( - COUNT( * ), + NULLIF ( 35, - + 99 / + - COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) * 77 ) + + MIN( DISTINCT 23 ) ) + 65
----
87

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL 23 + + NULLIF ( - COUNT ( * ), + NULLIF ( 35, - + 99 / + - COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) * 77 ) + + MIN ( DISTINCT 23 ) ) + 65
----
87

query I rowsort
SELECT 41 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT - MIN( + 74 ) + + + 2 * + 54 * + 71 + 24
----
7618

skipif mysql # not compatible
query I rowsort label-8903
SELECT - MIN ( + 74 ) + + + 2 * + 54 * + 71 + 24
----
7618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT DISTINCT ( MAX( - CASE - 52 WHEN + CAST( + 8 AS SIGNED ) + + - 47 THEN 46 + ( - 5 ) WHEN 1 / 30 THEN NULL ELSE NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT ( MAX ( - CASE - 52 WHEN + CAST ( + 8 AS INTEGER ) + + - 47 THEN 46 + ( - 5 ) WHEN 1 / 30 THEN NULL ELSE NULL END ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL - 73 + + + 63 + - - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - 73 + + + 63 + - - COUNT ( * )
----
-9

query I rowsort
SELECT + + 67 + + 59 + - + 2 AS col0
----
124

query II rowsort
SELECT ALL + 62 * + 37, 85 AS col0
----
2294
85

query I rowsort
SELECT DISTINCT - 15 - - - 72 + + 6 * 3 * - 53
----
-1041

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - COUNT( * ) + + COUNT( + + 1 ) + 88
----
88

skipif mysql # not compatible
query I rowsort label-8909
SELECT - COUNT ( * ) + + COUNT ( + + 1 ) + 88
----
88

query I rowsort
SELECT ALL - 97 * 41
----
-3977

query I rowsort
SELECT - 31 * - 8 col0
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT ALL + SUM( ALL 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL + SUM ( ALL 7 ) col0
----
7

query I rowsort
SELECT ALL - 97 * - 63
----
6111

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT 25 DIV - 23 + 40 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8914
SELECT 25 / - 23 + 40 AS col1
----
39

query I rowsort
SELECT ( + - 55 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8916
SELECT - 77 + - MAX( 23 ) * + CAST( NULL AS SIGNED ) + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT - 77 + - MAX ( 23 ) * + CAST ( NULL AS INTEGER ) + 60 AS col2
----
NULL

query I rowsort
SELECT ALL + ( - - 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8918
SELECT - COUNT( * ) DIV 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8918
SELECT - COUNT ( * ) / 16 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT - 53 DIV - 26 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8919
SELECT - 53 / - 26 AS col1
----
2

query I rowsort
SELECT + 30 * - 62 * + 83 * - + 15
----
2315700

query I rowsort
SELECT 26 * 32 + + 49 * - 84 + + 62
----
-3222

query I rowsort
SELECT ALL + ( - 52 ) AS col0
----
-52

query I rowsort
SELECT ( ( 13 ) )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8924
SELECT - 51 DIV - - 74 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8924
SELECT - 51 / - - 74 + + COUNT ( * )
----
1

query II rowsort
SELECT DISTINCT + NULLIF ( 4, - 56 ), - 33 AS col1
----
4
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL + NULLIF ( + 33, 39 + 82 * + COUNT( * ) + - 22 * - CASE + 54 WHEN 24 + 10 THEN NULL ELSE - 14 END * + 27 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + NULLIF ( + 33, 39 + 82 * + COUNT ( * ) + - 22 * - CASE + 54 WHEN 24 + 10 THEN NULL ELSE - 14 END * + 27 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT + + 2 AS col2, COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-8927
SELECT + + 2 AS col2, COUNT ( * )
----
2
1

query I rowsort
SELECT DISTINCT + - 27 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT ALL + - 46 * 73 DIV + + 15 + - 9
----
-232

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + - 46 * 73 / + + 15 + - 9
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT + ( CAST( + + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 98 END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT + ( CAST ( + + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 98 END AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT DISTINCT - + CAST( - + 27 AS SIGNED ) * CAST( + 18 AS SIGNED ) + - + 20 AS col0
----
466

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT - + CAST ( - + 27 AS INTEGER ) * CAST ( + 18 AS INTEGER ) + - + 20 AS col0
----
466

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT + + MAX( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT + + MAX ( + 98 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT - 68 DIV + + 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8933
SELECT - 68 / + + 51 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT + ( - - 84 ) + COUNT( * ) AS col1, + 6 AS col0
----
85
6

skipif mysql # not compatible
query II rowsort label-8934
SELECT + ( - - 84 ) + COUNT ( * ) AS col1, + 6 AS col0
----
85
6

query II rowsort
SELECT ALL + 30, 54 * + 56 + 34 AS col2
----
30
3058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT DISTINCT CAST( + - 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT CAST ( + - 71 AS INTEGER )
----
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8937
SELECT ALL 72 * + 87 + + COALESCE ( + 92, + - 32 + 92 + 52 - - CAST( - 79 AS SIGNED ) DIV 53 ) col1
----
6356

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL 72 * + 87 + + COALESCE ( + 92, + - 32 + 92 + 52 - - CAST ( - 79 AS INTEGER ) / 53 ) col1
----
6356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT + - 96 * + CAST( 4 AS SIGNED ) * + ( 99 )
----
-38016

skipif mysql # not compatible
query I rowsort label-8938
SELECT + - 96 * + CAST ( 4 AS INTEGER ) * + ( 99 )
----
-38016

query I rowsort
SELECT + + 22 * + + 55 AS col0
----
1210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8940
SELECT ALL ( - 53 ) * COUNT( * ) DIV - 69 * - + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL ( - 53 ) * COUNT ( * ) / - 69 * - + 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT ALL + ( 15 ) * COUNT( * ) + + 93
----
108

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL + ( 15 ) * COUNT ( * ) + + 93
----
108

query I rowsort
SELECT + 71 - 84 - - + 5
----
-8

query I rowsort
SELECT - ( + + 25 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL 13 * - SUM( DISTINCT 17 ) * - 52
----
11492

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL 13 * - SUM ( DISTINCT 17 ) * - 52
----
11492

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL CASE - 11 WHEN + + 36 * - + 96 + 58 THEN NULL WHEN ( + 55 ) THEN NULL ELSE - - 50 + + - 91 + MAX( DISTINCT 3 ) END AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL CASE - 11 WHEN + + 36 * - + 96 + 58 THEN NULL WHEN ( + 55 ) THEN NULL ELSE - - 50 + + - 91 + MAX ( DISTINCT 3 ) END AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + MAX( ALL + 87 ) + + 32 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-8946
SELECT + MAX ( ALL + 87 ) + + 32 AS col0
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT ALL - CASE COUNT( * ) WHEN CAST( - 0 AS SIGNED ) * - + 87 THEN NULL WHEN 21 * + COUNT( * ) THEN - 15 * - 49 ELSE - 33 END * 31
----
1023

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL - CASE COUNT ( * ) WHEN CAST ( - 0 AS INTEGER ) * - + 87 THEN NULL WHEN 21 * + COUNT ( * ) THEN - 15 * - 49 ELSE - 33 END * 31
----
1023

onlyif mysql # aggregate syntax: 
query II rowsort label-8948
SELECT - 78 * NULLIF ( - 46, + 86 * + - COUNT( * ) ), - 84 * + 8 AS col1
----
3588
-672

skipif mysql # not compatible
query II rowsort label-8948
SELECT - 78 * NULLIF ( - 46, + 86 * + - COUNT ( * ) ), - 84 * + 8 AS col1
----
3588
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT + CAST( NULL AS SIGNED ) + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT + CAST ( NULL AS INTEGER ) + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT 39 * COUNT( * ) + 57 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8950
SELECT 39 * COUNT ( * ) + 57 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8951
SELECT ALL + 66 * CAST( NULLIF ( - + COUNT( * ), + - 86 * - - 73 + - - 55 ) AS SIGNED ) * + 47
----
-3102

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + 66 * CAST ( NULLIF ( - + COUNT ( * ), + - 86 * - - 73 + - - 55 ) AS INTEGER ) * + 47
----
-3102

query I rowsort
SELECT 39 * 12 - - + 99
----
567

query I rowsort
SELECT 40 * - 85 + - + 44
----
-3444

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT ALL + + 24 DIV + - ( - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + + 24 / + - ( - 35 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8955
SELECT ALL + COUNT( * ) + - COUNT( * ) - + SUM( ( + 21 ) ) * - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + COUNT ( * ) + - COUNT ( * ) - + SUM ( ( + 21 ) ) * - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT + 59 col0
----
59

query I rowsort
SELECT DISTINCT - + 78 col1
----
-78

query I rowsort
SELECT + 53 * 0 + + 19 + + - 65 AS col1
----
-46

query I rowsort
SELECT - 36 * + 70 + + - 78 + + - 3 + - 38 * + 13 AS col2
----
-3095

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - 6 + + COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - 6 + + COUNT ( * ) col1
----
-5

query I rowsort
SELECT DISTINCT - - 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + SUM( DISTINCT - 0 ) * + 40
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT + SUM ( DISTINCT - 0 ) * + 40
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT ALL - CAST( + 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL - CAST ( + 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT - 2 + - COUNT( DISTINCT + 72 ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-8964
SELECT - 2 + - COUNT ( DISTINCT + 72 ) col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT 11 + - SUM( 22 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8965
SELECT 11 + - SUM ( 22 ) AS col0
----
-11

query I rowsort
SELECT + 68 + + - 5 * + 35 * - + 54 - + 51 + - + 57 AS col2
----
9410

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + NULLIF ( COUNT( DISTINCT - 1 ), - 26 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + NULLIF ( COUNT ( DISTINCT - 1 ), - 26 ) col2
----
1

query I rowsort
SELECT + 52 + + 93 AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT COUNT( + - 91 ) * MIN( ALL - - 15 )
----
15

skipif mysql # not compatible
query I rowsort label-8969
SELECT COUNT ( + - 91 ) * MIN ( ALL - - 15 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8970
SELECT ( + COUNT( * ) ) + + SUM( - 10 ) + + 37 * - ( - COUNT( * ) ) * - 48 AS col1, COUNT( * ) DIV + 14 + - 96
----
-1785
-96

skipif mysql # not compatible
query II rowsort label-8970
SELECT ( + COUNT ( * ) ) + + SUM ( - 10 ) + + 37 * - ( - COUNT ( * ) ) * - 48 AS col1, COUNT ( * ) / + 14 + - 96
----
-1785
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8971
SELECT CASE + 99 WHEN + 72 * - 98 THEN NULL ELSE + COUNT( * ) END + - 55, 83 + - + 74 AS col0
----
-54
9

skipif mysql # not compatible
query II rowsort label-8971
SELECT CASE + 99 WHEN + 72 * - 98 THEN NULL ELSE + COUNT ( * ) END + - 55, 83 + - + 74 AS col0
----
-54
9

query I rowsort
SELECT 8 + + ( + 60 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT COUNT( * ) * - 49
----
-49

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT COUNT ( * ) * - 49
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8974
SELECT CASE - + 47 WHEN - MAX( 63 ) * + 82 THEN + + COUNT( * ) ELSE - 26 END * COALESCE ( + 21, CAST( - 83 AS SIGNED ), 54 ) * + 7 AS col0
----
-3822

skipif mysql # not compatible
query I rowsort label-8974
SELECT CASE - + 47 WHEN - MAX ( 63 ) * + 82 THEN + + COUNT ( * ) ELSE - 26 END * COALESCE ( + 21, CAST ( - 83 AS INTEGER ), 54 ) * + 7 AS col0
----
-3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT CASE + + 2 WHEN - 57 THEN NULL ELSE 55 / - 12 / + CAST( NULL AS SIGNED ) * + COUNT( * ) END / COUNT( * ) - - + 6 - 13 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT CASE + + 2 WHEN - 57 THEN NULL ELSE 55 / - 12 / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) END / COUNT ( * ) - - + 6 - 13 * COUNT ( * )
----
NULL

query I rowsort
SELECT NULLIF ( 73, 51 ) + 92 AS col2
----
165

query II rowsort
SELECT 67 AS col1, 40
----
67
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT 39 * - 35 * + COUNT( * ) AS col2
----
-1365

skipif mysql # not compatible
query I rowsort label-8979
SELECT 39 * - 35 * + COUNT ( * ) AS col2
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL 88 + 60 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT COUNT( DISTINCT + ( - 52 ) ) + - 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT COUNT ( DISTINCT + ( - 52 ) ) + - 92 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8983
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8984
SELECT DISTINCT SUM( ALL - CASE + - 76 WHEN 96 THEN - - 85 END ) + + CAST( NULL AS SIGNED ) / - NULLIF ( + 2, - 15 + + - 38 * 68 ) + - 71 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT SUM ( ALL - CASE + - 76 WHEN 96 THEN - - 85 END ) + + CAST ( NULL AS INTEGER ) / - NULLIF ( + 2, - 15 + + - 38 * 68 ) + - 71 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 34 - - 47 col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT DISTINCT + - COALESCE ( + 78, + + 70, + 82 * COUNT( * ) - + 21 * - 61, + MAX( + 20 ) ) * - - 36
----
-2808

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + - COALESCE ( + 78, + + 70, + 82 * COUNT ( * ) - + 21 * - 61, + MAX ( + 20 ) ) * - - 36
----
-2808

query I rowsort
SELECT 23 * - 55
----
-1265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8988
SELECT + - SUM( DISTINCT - 49 ) DIV 4 + 80 * 82 + - 77 + - 66 * ( + 82 ) * + 47 * 88 + - 36
----
-22377573

skipif mysql # not compatible
query I rowsort label-8988
SELECT + - SUM ( DISTINCT - 49 ) / 4 + 80 * 82 + - 77 + - 66 * ( + 82 ) * + 47 * 88 + - 36
----
-22377573

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL + + MAX( ALL + 17 ) + - + COUNT( * ) + - 72
----
-56

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + + MAX ( ALL + 17 ) + - + COUNT ( * ) + - 72
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8990
SELECT ALL - - CAST( NULL AS DECIMAL ) - - + CAST( + 83 AS DECIMAL ) AS col1, + 89 AS col1
----
NULL
89

skipif mysql # not compatible
query II rowsort label-8990
SELECT ALL - - CAST ( NULL AS REAL ) - - + CAST ( + 83 AS REAL ) AS col1, + 89 AS col1
----
NULL
89

query I rowsort
SELECT ALL - - 33 AS col2
----
33

query I rowsort
SELECT DISTINCT - 7 * + 48 * + 62 * + 19 * + + 65 AS col2
----
-25727520

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT 3 * + 75 DIV + 75 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8993
SELECT 3 * + 75 / + 75 AS col2
----
3

query I rowsort
SELECT ALL - - COALESCE ( ( + - 98 ), - COALESCE ( 68, + - 51 ), - 41 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8995
SELECT COUNT( * ) * CASE 30 WHEN 63 + 15 THEN - COUNT( * ) + - - 31 ELSE + + 62 END, 68 + + 29 col1
----
62
97

skipif mysql # not compatible
query II rowsort label-8995
SELECT COUNT ( * ) * CASE 30 WHEN 63 + 15 THEN - COUNT ( * ) + - - 31 ELSE + + 62 END, 68 + + 29 col1
----
62
97

query I rowsort
SELECT 72 * 47 AS col2
----
3384

query I rowsort
SELECT - ( - COALESCE ( + 99, + 28 + - - 21 ) ) AS col0
----
99

query I rowsort
SELECT - ( COALESCE ( + - ( - 92 ), - 0 ) ) * + 78 AS col1
----
-7176

query II rowsort
SELECT + 95, NULLIF ( + - 67, + 20 ) col0
----
95
-67

query II rowsort
SELECT - 71 AS col1, 18 AS col1
----
-71
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9001
SELECT ALL + ( - 28 ) * - 8 + + MIN( DISTINCT 67 ) DIV 51
----
225

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL + ( - 28 ) * - 8 + + MIN ( DISTINCT 67 ) / 51
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT MAX( + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT MAX ( + 64 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9003
SELECT - 28, SUM( DISTINCT - 20 ) col1
----
-28
-20

skipif mysql # not compatible
query II rowsort label-9003
SELECT - 28, SUM ( DISTINCT - 20 ) col1
----
-28
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9004
SELECT COUNT( * ) * 59 * - 14 * 21 AS col2, ( + - NULLIF ( + 75, + 23 * - + 82 * - 19 * - 34 + + 87 ) ) * + NULLIF ( COUNT( * ) * - 47, - CASE 13 WHEN - 89 THEN NULL WHEN 66 / CAST( + AVG ( ALL + 89 ) AS SIGNED ) THEN + NULLIF ( 72, + 66 ) WHEN - 34 THEN COALESCE ( + COALESCE ( - 23, - COALESCE ( - 88, 47 ) ), - 13 ) ELSE NULL END )
----
-17346
3525

skipif mysql # not compatible
query II rowsort label-9004
SELECT COUNT ( * ) * 59 * - 14 * 21 AS col2, ( + - NULLIF ( + 75, + 23 * - + 82 * - 19 * - 34 + + 87 ) ) * + NULLIF ( COUNT ( * ) * - 47, - CASE 13 WHEN - 89 THEN NULL WHEN 66 / CAST ( + AVG ( ALL + 89 ) AS INTEGER ) THEN + NULLIF ( 72, + 66 ) WHEN - 34 THEN COALESCE ( + COALESCE ( - 23, - COALESCE ( - 88, 47 ) ), - 13 ) ELSE NULL END )
----
-17346
3525

query I rowsort
SELECT 78 + - - 87 + + 64 AS col1
----
229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9006
SELECT ALL + COUNT( - ( - - CAST( - 12 AS SIGNED ) ) ) * - CASE SUM( + 79 ) WHEN - - AVG ( DISTINCT - + 53 ) * - 11 THEN 88 WHEN + 99 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + COUNT ( - ( - - CAST ( - 12 AS INTEGER ) ) ) * - CASE SUM ( + 79 ) WHEN - - AVG ( DISTINCT - + 53 ) * - 11 THEN 88 WHEN + 99 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 88 + + + 70
----
158

query II rowsort
SELECT - 39 AS col0, 20
----
-39
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT + COUNT( * ) * + + 82 * COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9009
SELECT + COUNT ( * ) * + + 82 * COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT + COUNT( * ) DIV - 25 * - - 65
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT + COUNT ( * ) / - 25 * - - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL SUM( + 17 ) + + + 29
----
46

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL SUM ( + 17 ) + + + 29
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL - COUNT( * ) + + - 51
----
-52

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - COUNT ( * ) + + - 51
----
-52

query I rowsort
SELECT DISTINCT + 94 + 37 + + + 81 * - 20 * 46
----
-74389

query II rowsort
SELECT 57, 31 * 73 AS col1
----
57
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL + MIN( DISTINCT + 23 ) + - + 84
----
-61

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + MIN ( DISTINCT + 23 ) + - + 84
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT DISTINCT - 22 DIV + ( 43 )
----
0

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - 22 / + ( 43 )
----
0

query I rowsort
SELECT + 23 + 2 + + - 65
----
-40

query I rowsort
SELECT + 41 * 26
----
1066

query I rowsort
SELECT ALL 46 * 15 AS col1
----
690

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9020
SELECT + CAST( - CAST( + 56 AS SIGNED ) AS SIGNED ) * - - 86 * - COALESCE ( + + 81, 75 DIV 0 ) - - 92 AS col2
----
390188

skipif mysql # not compatible
query I rowsort label-9020
SELECT + CAST ( - CAST ( + 56 AS INTEGER ) AS INTEGER ) * - - 86 * - COALESCE ( + + 81, 75 / 0 ) - - 92 AS col2
----
390188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9021
SELECT ALL + 31 * - COUNT( * ) * - + 6 - COUNT( * ) DIV 55
----
186

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + 31 * - COUNT ( * ) * - + 6 - COUNT ( * ) / 55
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + 48 * + 4 * + 24 * + COUNT( * ) + COUNT( * ) + - COUNT( * ) * - 10 + - + 35 * - + 13
----
5074

skipif mysql # not compatible
query I rowsort label-9022
SELECT + 48 * + 4 * + 24 * + COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) * - 10 + - + 35 * - + 13
----
5074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9023
SELECT ALL COUNT( * ) * + + NULLIF ( - 99, + 29 / - 91 / - - CAST( - - 58 AS SIGNED ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL COUNT ( * ) * + + NULLIF ( - 99, + 29 / - 91 / - - CAST ( - - 58 AS INTEGER ) ) AS col1
----
-99

query I rowsort
SELECT DISTINCT + - ( 82 ) AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT DISTINCT - 45 * - - COUNT( * ) + + + MIN( ALL - + 59 ) + - + 39 * - CAST( NULL AS SIGNED ) * + 58 - + AVG ( DISTINCT - 67 ) / 64 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT - 45 * - - COUNT ( * ) + + + MIN ( ALL - + 59 ) + - + 39 * - CAST ( NULL AS INTEGER ) * + 58 - + AVG ( DISTINCT - 67 ) / 64 * - 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT - 52 DIV + - 87 + - - 74
----
74

skipif mysql # not compatible
query I rowsort label-9026
SELECT - 52 / + - 87 + - - 74
----
74

query I rowsort
SELECT + ( + + 80 ) col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9028
SELECT ALL + COUNT( * ) AS col0, + 46 - - 36
----
1
82

skipif mysql # not compatible
query II rowsort label-9028
SELECT ALL + COUNT ( * ) AS col0, + 46 - - 36
----
1
82

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT + COUNT( * ) + + 96 AS col0, COUNT( * ) + + 48 - - 68 + ( + 1 )
----
97
118

skipif mysql # not compatible
query II rowsort label-9029
SELECT + COUNT ( * ) + + 96 AS col0, COUNT ( * ) + + 48 - - 68 + ( + 1 )
----
97
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT - + 85 * + + 76 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT - + 85 * + + 76 - - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 74 * + 53 + - 88 + 69 + - 69 AS col0
----
3834

query I rowsort
SELECT ALL 90 * + 49 * + 68 col2
----
299880

query I rowsort
SELECT + + 74 col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT + 77 DIV 3 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9034
SELECT + 77 / 3 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL 47 * 43 - + ( ( + + SUM( DISTINCT - 15 ) ) ) - 77
----
1959

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL 47 * 43 - + ( ( + + SUM ( DISTINCT - 15 ) ) ) - 77
----
1959

query II rowsort
SELECT DISTINCT + 79 AS col1, - 13
----
79
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9037
SELECT ALL - COALESCE ( 32, - 28 + - - 41 ) * - + COALESCE ( COUNT( * ), + - CASE + + 4 WHEN ( - + COUNT( * ) ) THEN - 6 DIV 42 WHEN 70 * 45 THEN SUM( - 50 ) + - COUNT( * ) ELSE - 20 END * 64 )
----
32

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - COALESCE ( 32, - 28 + - - 41 ) * - + COALESCE ( COUNT ( * ), + - CASE + + 4 WHEN ( - + COUNT ( * ) ) THEN - 6 / 42 WHEN 70 * 45 THEN SUM ( - 50 ) + - COUNT ( * ) ELSE - 20 END * 64 )
----
32

query I rowsort
SELECT - ( NULLIF ( 56, - - 44 ) ) + - 17 AS col2
----
-73

query I rowsort
SELECT ALL 67 * 17
----
1139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9040
SELECT DISTINCT 26 * - - 92 * 86 DIV COUNT( * )
----
205712

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT 26 * - - 92 * 86 / COUNT ( * )
----
205712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9041
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) * - - 30 + - 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) * - - 30 + - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT + 49 * COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9042
SELECT + 49 * COUNT ( * ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT COUNT( ALL + - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9043
SELECT COUNT ( ALL + - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - 17 * MAX( + 18 ) * + COUNT( * ) + - 34 * + - 40
----
1054

skipif mysql # not compatible
query I rowsort label-9044
SELECT - 17 * MAX ( + 18 ) * + COUNT ( * ) + - 34 * + - 40
----
1054

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9045
SELECT - COUNT( * ) / - CAST( NULL AS DECIMAL ) / + - COUNT( * ) * + 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT - COUNT ( * ) / - CAST ( NULL AS REAL ) / + - COUNT ( * ) * + 7 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT - 7 + + 89 + + COUNT( * ) + - + 45 * - 57 * - 21 AS col1
----
-53782

skipif mysql # not compatible
query I rowsort label-9046
SELECT - 7 + + 89 + + COUNT ( * ) + - + 45 * - 57 * - 21 AS col1
----
-53782

query I rowsort
SELECT ALL - 7 + - 7
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL COUNT( - CAST( + 2 AS SIGNED ) ) + - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL COUNT ( - CAST ( + 2 AS INTEGER ) ) + - COUNT ( * ) col2
----
0

query II rowsort
SELECT DISTINCT ( - 30 ) AS col0, - 50 + - 21 AS col2
----
-30
-71

query I rowsort
SELECT ALL COALESCE ( - - ( - 22 ), + + 93 * + - 64 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9051
SELECT ALL - COUNT( * ) * - + 84, + 11 * 35 col1
----
84
385

skipif mysql # not compatible
query II rowsort label-9051
SELECT ALL - COUNT ( * ) * - + 84, + 11 * 35 col1
----
84
385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT - 47 + - CAST( NULL AS SIGNED ) * COALESCE ( - - 33, - 66 ) * - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT - 47 + - CAST ( NULL AS INTEGER ) * COALESCE ( - - 33, - 66 ) * - - 64 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9053
SELECT ALL - COUNT( * ) + - 87 + + - ( 11 ) + + - COUNT( * ) * 65 * - + 71 * + COUNT( - + 47 ) - - 21 - + - 43 + + - MAX( ALL - 55 ) * - NULLIF ( CAST( NULL AS DECIMAL ) * 86, NULLIF ( + 98, 3 * - 72 ) + 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - COUNT ( * ) + - 87 + + - ( 11 ) + + - COUNT ( * ) * 65 * - + 71 * + COUNT ( - + 47 ) - - 21 - + - 43 + + - MAX ( ALL - 55 ) * - NULLIF ( CAST ( NULL AS REAL ) * 86, NULLIF ( + 98, 3 * - 72 ) + 4 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9054
SELECT DISTINCT - NULLIF ( 26, CAST( + COUNT( * ) AS SIGNED ) ) * - COUNT( * ) + SUM( DISTINCT + 96 ) AS col1, + 48 AS col1, 11 col0
----
122
48
11

skipif mysql # not compatible
query III rowsort label-9054
SELECT DISTINCT - NULLIF ( 26, CAST ( + COUNT ( * ) AS INTEGER ) ) * - COUNT ( * ) + SUM ( DISTINCT + 96 ) AS col1, + 48 AS col1, 11 col0
----
122
48
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9055
SELECT - MIN( - 28 ) AS col1, 90 * + CAST( NULL AS SIGNED ) / + - ( - 25 ) col0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-9055
SELECT - MIN ( - 28 ) AS col1, 90 * + CAST ( NULL AS INTEGER ) / + - ( - 25 ) col0
----
28
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9056
SELECT ALL ( - COUNT( * ) ), - 33 DIV COUNT( * ) AS col1
----
-1
-33

skipif mysql # not compatible
query II rowsort label-9056
SELECT ALL ( - COUNT ( * ) ), - 33 / COUNT ( * ) AS col1
----
-1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT - 53 + COUNT( ALL - 72 ) + + - 61
----
-113

skipif mysql # not compatible
query I rowsort label-9057
SELECT - 53 + COUNT ( ALL - 72 ) + + - 61
----
-113

query I rowsort
SELECT + 17 + - 10 + - 99 + 43 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9059
SELECT - COALESCE ( + + 65, - + 82 * - COUNT( * ) + 97 + + COUNT( * ) DIV 84 ) AS col1, - 70 + + 43 * + CAST( NULL AS DECIMAL )
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-9059
SELECT - COALESCE ( + + 65, - + 82 * - COUNT ( * ) + 97 + + COUNT ( * ) / 84 ) AS col1, - 70 + + 43 * + CAST ( NULL AS REAL )
----
-65
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT + CASE + COUNT( * ) WHEN COUNT( * ) * + MAX( ALL - 99 ) - + - 38 THEN + + 74 WHEN 80 THEN + 86 * + 69 - ( - 82 ) + 5 ELSE CAST( 51 AS SIGNED ) END + 80 * COUNT( 16 ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-9060
SELECT + CASE + COUNT ( * ) WHEN COUNT ( * ) * + MAX ( ALL - 99 ) - + - 38 THEN + + 74 WHEN 80 THEN + 86 * + 69 - ( - 82 ) + 5 ELSE CAST ( 51 AS INTEGER ) END + 80 * COUNT ( 16 ) AS col1
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9061
SELECT ALL - - COUNT( * ) * - 14 DIV - - 31 * + - COUNT( * ) * + 31
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL - - COUNT ( * ) * - 14 / - - 31 * + - COUNT ( * ) * + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT - - COUNT( * ) * + 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9062
SELECT - - COUNT ( * ) * + 77 AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT ALL - ( + 47 ) DIV + 60 + + + 85 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL - ( + 47 ) / + 60 + + + 85 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9064
SELECT 13 * - NULLIF ( 85, - 37 * 70 + 19 + + AVG ( 23 ) * MIN( DISTINCT + + 31 ) + 25 + - + CAST( NULL AS SIGNED ) DIV + 54 DIV + 65 ) DIV - COUNT( * ) + COUNT( * ) * 22 + COUNT( * )
----
1128

skipif mysql # not compatible
query I rowsort label-9064
SELECT 13 * - NULLIF ( 85, - 37 * 70 + 19 + + AVG ( 23 ) * MIN ( DISTINCT + + 31 ) + 25 + - + CAST ( NULL AS INTEGER ) / + 54 / + 65 ) / - COUNT ( * ) + COUNT ( * ) * 22 + COUNT ( * )
----
1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT + + 41 / + NULLIF ( SUM( ALL - + 99 ), + CAST( NULL AS SIGNED ) * - 45 + + + 55 ) + - 68 + + 30 * 49 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT + + 41 / + NULLIF ( SUM ( ALL - + 99 ), + CAST ( NULL AS INTEGER ) * - 45 + + + 55 ) + - 68 + + 30 * 49 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT ALL 46 DIV 67 - + 68 - + 96
----
-164

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL 46 / 67 - + 68 - + 96
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9067
SELECT + 68 * - - 8 * CAST( NULL AS SIGNED ) AS col1, 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-9067
SELECT + 68 * - - 8 * CAST ( NULL AS INTEGER ) AS col1, 87 AS col2
----
NULL
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT ALL - 58 DIV + MAX( ALL + 54 ) - - 8
----
7

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL - 58 / + MAX ( ALL + 54 ) - - 8
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT - 50 DIV - + 38 + 91 - + + SUM( - - 32 ) col0
----
60

skipif mysql # not compatible
query I rowsort label-9069
SELECT - 50 / - + 38 + 91 - + + SUM ( - - 32 ) col0
----
60

query I rowsort
SELECT DISTINCT - 25 * - - 74
----
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT - NULLIF ( 77, COUNT( * ) ) * - 38 - + 13 AS col0
----
2913

skipif mysql # not compatible
query I rowsort label-9071
SELECT - NULLIF ( 77, COUNT ( * ) ) * - 38 - + 13 AS col0
----
2913

query I rowsort
SELECT + 48 * - 96 + 23
----
-4585

query I rowsort
SELECT DISTINCT + - 22 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + - 78 - + + COALESCE ( + 62, 66 ) * - 63 + + + ( - 8 ) + COUNT( * )
----
3821

skipif mysql # not compatible
query I rowsort label-9074
SELECT + - 78 - + + COALESCE ( + 62, 66 ) * - 63 + + + ( - 8 ) + COUNT ( * )
----
3821

query I rowsort
SELECT ALL + COALESCE ( - 24, + 35 + - 24 - - 74, 68 * + 89 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT DISTINCT + - MIN( - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + - MIN ( - 55 )
----
55

query I rowsort
SELECT ALL 13 * + 78 * 56 + - 78
----
56706

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT + COALESCE ( - ( + NULLIF ( + + CASE + COUNT( - + 77 ) WHEN - CASE 18 WHEN - 58 THEN + - COUNT( * ) + + COUNT( * ) END * 73 THEN + 18 END, - 55 DIV 34 ) ), 59 * 16, - 19 + 8 DIV - 40, SUM( - 46 ) + + 76 )
----
944

skipif mysql # not compatible
query I rowsort label-9078
SELECT + COALESCE ( - ( + NULLIF ( + + CASE + COUNT ( - + 77 ) WHEN - CASE 18 WHEN - 58 THEN + - COUNT ( * ) + + COUNT ( * ) END * 73 THEN + 18 END, - 55 / 34 ) ), 59 * 16, - 19 + 8 / - 40, SUM ( - 46 ) + + 76 )
----
944

query I rowsort
SELECT ALL 19 + - ( + - ( + 35 ) )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9080
SELECT 24 * 22 DIV 13 * - COUNT( * ) * - MAX( ( - + 27 ) )
----
-1080

skipif mysql # not compatible
query I rowsort label-9080
SELECT 24 * 22 / 13 * - COUNT ( * ) * - MAX ( ( - + 27 ) )
----
-1080

query I rowsort
SELECT ALL 72 * + 95
----
6840

query I rowsort
SELECT ALL 84 + + 82 AS col2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT COUNT( * ) + + - ( - + 16 ) + + 11
----
28

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT COUNT ( * ) + + - ( - + 16 ) + + 11
----
28

query I rowsort
SELECT DISTINCT - 3 * ( + - 21 )
----
63

query I rowsort
SELECT DISTINCT 36 * - 87 * 38
----
-119016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9086
SELECT ALL 46, CAST( + - 24 AS SIGNED ) * - 7 AS col0
----
46
168

skipif mysql # not compatible
query II rowsort label-9086
SELECT ALL 46, CAST ( + - 24 AS INTEGER ) * - 7 AS col0
----
46
168

query I rowsort
SELECT 39 * - + 75
----
-2925

query I rowsort
SELECT NULLIF ( + 23, 89 + - 89 - 91 * + 22 + COALESCE ( 91, 56 * + ( - + 29 ) ) ) + 7 + 8
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT 32 + + 0 DIV + 8 * 59 DIV 1
----
32

skipif mysql # not compatible
query I rowsort label-9089
SELECT 32 + + 0 / + 8 * 59 / 1
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9090
SELECT ALL - 13 - 52 * + CAST( NULL AS DECIMAL ) * MIN( ALL - - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - 13 - 52 * + CAST ( NULL AS REAL ) * MIN ( ALL - - 26 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT ALL - + NULLIF ( - + 78, 84 * + CASE CAST( + - 7 AS SIGNED ) WHEN + 86 THEN NULL WHEN - 12 THEN - 60 ELSE 17 * + 12 - - - 36 + 64 / - 4 END ) * 42 col1
----
3276

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - + NULLIF ( - + 78, 84 * + CASE CAST ( + - 7 AS INTEGER ) WHEN + 86 THEN NULL WHEN - 12 THEN - 60 ELSE 17 * + 12 - - - 36 + 64 / - 4 END ) * 42 col1
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT + 30 + + - MIN( ALL + ( - 86 ) ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-9092
SELECT + 30 + + - MIN ( ALL + ( - 86 ) ) AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + COUNT( * ) + + - 71
----
-70

skipif mysql # not compatible
query I rowsort label-9093
SELECT + COUNT ( * ) + + - 71
----
-70

query I rowsort
SELECT - + 86 col2
----
-86

query I rowsort
SELECT - 96 + 68
----
-28

query I rowsort
SELECT 32 * - + ( + COALESCE ( + 66, + 37 + - 45 ) ) AS col0
----
-2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9097
SELECT ALL - + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT NULLIF ( 33, + 47 ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-9098
SELECT NULLIF ( 33, + 47 ) / + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT + + 39 + - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT + + 39 + - COUNT ( * ) AS col2
----
38

query I rowsort
SELECT DISTINCT - 35 * - + 72
----
2520

onlyif mysql # DIV for integer division: 
query II rowsort label-9101
SELECT + 47 AS col2, - 36 DIV + 50 AS col0
----
47
0

skipif mysql # not compatible
query II rowsort label-9101
SELECT + 47 AS col2, - 36 / + 50 AS col0
----
47
0

query I rowsort
SELECT DISTINCT - - 89 + - 52
----
37

query I rowsort
SELECT DISTINCT - + 64 + + 77 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT DISTINCT 8 + 73 / - 22 * - 69 + + 64 / - + 71 + + + 79 + + 43 * - 81 * - 50 + + CASE - - 73 WHEN COALESCE ( + 94, CASE 42 WHEN 33 + 75 * ( + ( 98 ) ) THEN COUNT( DISTINCT 18 ) * + 10 END ) THEN + 12 WHEN 51 / - 72 + 68 * 60 THEN + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT 8 + 73 / - 22 * - 69 + + 64 / - + 71 + + + 79 + + 43 * - 81 * - 50 + + CASE - - 73 WHEN COALESCE ( + 94, CASE 42 WHEN 33 + 75 * ( + ( 98 ) ) THEN COUNT ( DISTINCT 18 ) * + 10 END ) THEN + 12 WHEN 51 / - 72 + 68 * 60 THEN + 65 END
----
NULL

query I rowsort
SELECT ALL - - 14 + 36 * 8 - - 61 - - + 64 + - + 16
----
411

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT + 5 DIV + 5 + 8
----
9

skipif mysql # not compatible
query I rowsort label-9106
SELECT + 5 / + 5 + 8
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9107
SELECT - 97 * - COUNT( * ) + COUNT( * ) + 28 - 20 - + CAST( COUNT( * ) AS SIGNED ) - CASE - - 16 WHEN - 70 + + 47 THEN NULL WHEN + 56 THEN NULL WHEN + 80 + NULLIF ( - 22 + + 7, 72 ) THEN - 1 ELSE 50 * + COUNT( * ) END AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9107
SELECT - 97 * - COUNT ( * ) + COUNT ( * ) + 28 - 20 - + CAST ( COUNT ( * ) AS INTEGER ) - CASE - - 16 WHEN - 70 + + 47 THEN NULL WHEN + 56 THEN NULL WHEN + 80 + NULLIF ( - 22 + + 7, 72 ) THEN - 1 ELSE 50 * + COUNT ( * ) END AS col2
----
55

query I rowsort
SELECT + 35 + 83 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - 72 * - 79 - - - 46 * + COUNT( * ) * - 81 + + 0
----
9414

skipif mysql # not compatible
query I rowsort label-9109
SELECT - 72 * - 79 - - - 46 * + COUNT ( * ) * - 81 + + 0
----
9414

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL COUNT( * ) + 51 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL COUNT ( * ) + 51 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9111
SELECT 16 * + 76 + + 91 + + 20 col1, 76 * 15 * + CAST( - CAST( + CASE + - 23 WHEN 71 THEN + 0 / MAX( + + 2 ) END AS SIGNED ) AS SIGNED ) / NULLIF ( 13 + - ( 63 + 13 ), - ( 55 ) + 97 * 90 ) + NULLIF ( 2, 1 * - 71 - + COUNT( * ) * 25 ) col1
----
1327
NULL

skipif mysql # not compatible
query II rowsort label-9111
SELECT 16 * + 76 + + 91 + + 20 col1, 76 * 15 * + CAST ( - CAST ( + CASE + - 23 WHEN 71 THEN + 0 / MAX ( + + 2 ) END AS INTEGER ) AS INTEGER ) / NULLIF ( 13 + - ( 63 + 13 ), - ( 55 ) + 97 * 90 ) + NULLIF ( 2, 1 * - 71 - + COUNT ( * ) * 25 ) col1
----
1327
NULL

query I rowsort
SELECT 33 * 63
----
2079

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT DISTINCT 31 * 27 DIV + 5
----
167

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT 31 * 27 / + 5
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT ALL - ( - ( SUM( - 66 ) ) ), 86 col2
----
-66
86

skipif mysql # not compatible
query II rowsort label-9114
SELECT ALL - ( - ( SUM ( - 66 ) ) ), 86 col2
----
-66
86

query I rowsort
SELECT 23 + + 44 * + + 77
----
3411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT ALL - NULLIF ( - + COUNT( * ), 26 * - COALESCE ( + 81, + 62 + 58 + 7 + - + 31 * - 87 ) ) - + + CAST( ( - + 73 ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - NULLIF ( - + COUNT ( * ), 26 * - COALESCE ( + 81, + 62 + 58 + 7 + - + 31 * - 87 ) ) - + + CAST ( ( - + 73 ) AS INTEGER )
----
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9117
SELECT ALL - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 95 * 57 * 26
----
140790

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL 60 - - ( + COUNT( * ) ) col0
----
61

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL 60 - - ( + COUNT ( * ) ) col0
----
61

query I rowsort
SELECT 13 * - 5 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9121
SELECT COUNT( * ) * 48 col1, 38 AS col0
----
48
38

skipif mysql # not compatible
query II rowsort label-9121
SELECT COUNT ( * ) * 48 col1, 38 AS col0
----
48
38

query I rowsort
SELECT DISTINCT 49 col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT COUNT( * ) * 99 * - CAST( 57 AS SIGNED ) AS col0
----
-5643

skipif mysql # not compatible
query I rowsort label-9123
SELECT COUNT ( * ) * 99 * - CAST ( 57 AS INTEGER ) AS col0
----
-5643

query I rowsort
SELECT DISTINCT 17 * - 34 AS col2
----
-578

query I rowsort
SELECT DISTINCT NULLIF ( + 95, + + 24 ) / + CASE 87 WHEN - - NULLIF ( - + ( + + 79 ), 21 * - + 37 + + - 93 * - 68 * ( + 73 ) + - 87 ) THEN 63 END * 88 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL 52 * - + MIN( - - 11 )
----
-572

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL 52 * - + MIN ( - - 11 )
----
-572

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9127
SELECT ALL ( - SUM( DISTINCT 91 ) ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL ( - SUM ( DISTINCT 91 ) ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT NULLIF ( + + CAST( NULL AS SIGNED ), - CASE + - 75 WHEN - + 26 * 74 + MAX( ALL ( + ( - - 64 ) ) ) + + + 95 - - - 40 THEN - + 78 WHEN 48 * 88 THEN COUNT( * ) * - 10 + 30 * 75 END ) * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT NULLIF ( + + CAST ( NULL AS INTEGER ), - CASE + - 75 WHEN - + 26 * 74 + MAX ( ALL ( + ( - - 64 ) ) ) + + + 95 - - - 40 THEN - + 78 WHEN 48 * 88 THEN COUNT ( * ) * - 10 + 30 * 75 END ) * - 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT DISTINCT - CASE - - 60 WHEN 32 + - + 85 THEN NULL WHEN CAST( 54 AS SIGNED ) + + + 53 THEN + - 65 * + - ( - 98 ) * - 40 ELSE 48 END * 71 * ( 48 ) AS col1
----
-163584

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT - CASE - - 60 WHEN 32 + - + 85 THEN NULL WHEN CAST ( 54 AS INTEGER ) + + + 53 THEN + - 65 * + - ( - 98 ) * - 40 ELSE 48 END * 71 * ( 48 ) AS col1
----
-163584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT ALL ( - CAST( - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL ( - CAST ( - COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9131
SELECT ( + 3 ) * + + MIN( - - 44 ), - 96 * + 43 AS col0
----
132
-4128

skipif mysql # not compatible
query II rowsort label-9131
SELECT ( + 3 ) * + + MIN ( - - 44 ), - 96 * + 43 AS col0
----
132
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + COUNT( * ) * 21 + 23 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9132
SELECT + COUNT ( * ) * 21 + 23 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL + MIN( ALL - 18 ) + 53
----
35

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL + MIN ( ALL - 18 ) + 53
----
35

query I rowsort
SELECT 57 + + 87 * + 51
----
4494

query I rowsort
SELECT DISTINCT - + 18 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL 62 * ( + 68 ) * + COUNT( * ) + - + 92
----
4124

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL 62 * ( + 68 ) * + COUNT ( * ) + - + 92
----
4124

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL - COUNT( * ) * - + COUNT( * ) * - 97 + - + 36
----
-133

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) * - 97 + - + 36
----
-133

query I rowsort
SELECT + - 34 * + 94
----
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9139
SELECT 76 DIV - 88 - + 60 * + 43 + + COUNT( * ) AS col0
----
-2579

skipif mysql # not compatible
query I rowsort label-9139
SELECT 76 / - 88 - + 60 * + 43 + + COUNT ( * ) AS col0
----
-2579

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT + COUNT( + 27 ) AS col2, - 90 * + 8 AS col2
----
1
-720

skipif mysql # not compatible
query II rowsort label-9140
SELECT + COUNT ( + 27 ) AS col2, - 90 * + 8 AS col2
----
1
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-9141
SELECT DISTINCT - - MIN( - 2 ) * + + NULLIF ( + COUNT( ALL + 7 ), - + 1 * 64 + 23 ) + + - 3 + + 47 + + COUNT( * ) * + + 51, 63 AS col1
----
93
63

skipif mysql # not compatible
query II rowsort label-9141
SELECT DISTINCT - - MIN ( - 2 ) * + + NULLIF ( + COUNT ( ALL + 7 ), - + 1 * 64 + 23 ) + + - 3 + + 47 + + COUNT ( * ) * + + 51, 63 AS col1
----
93
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9142
SELECT ALL + CASE 13 WHEN - CASE + + 99 WHEN - 55 + NULLIF ( 20, + - 91 ) - 32 * + 40 / - COUNT( + 90 ) THEN - + 32 + + 51 ELSE 17 * 34 END + CAST( 38 + 40 * - 26 AS SIGNED ) THEN - CAST( + 55 AS SIGNED ) END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL + CASE 13 WHEN - CASE + + 99 WHEN - 55 + NULLIF ( 20, + - 91 ) - 32 * + 40 / - COUNT ( + 90 ) THEN - + 32 + + 51 ELSE 17 * 34 END + CAST ( 38 + 40 * - 26 AS INTEGER ) THEN - CAST ( + 55 AS INTEGER ) END * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( 37 ) AS col0
----
37

query II rowsort
SELECT ALL + 78 AS col2, + 94 AS col1
----
78
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT - 55 * - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9145
SELECT - 55 * - COUNT ( * )
----
55

query I rowsort
SELECT ALL + CASE ( + 85 ) WHEN 13 THEN 51 WHEN - + 38 THEN NULL ELSE + 36 END
----
36

query I rowsort
SELECT - 19 * - 65 AS col0
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - COUNT( * ) * + COUNT( * ) * + 51
----
-51

skipif mysql # not compatible
query I rowsort label-9148
SELECT - COUNT ( * ) * + COUNT ( * ) * + 51
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT ALL + 85 DIV + 28
----
3

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + 85 / + 28
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT - 36 - CAST( NULL AS SIGNED ) + - 80 * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT - 36 - CAST ( NULL AS INTEGER ) + - 80 * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT MIN( ALL - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-9151
SELECT MIN ( ALL - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL + MAX( - - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + MAX ( - - 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT DISTINCT + MIN( - - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + MIN ( - - 38 )
----
38

query I rowsort
SELECT ALL 76 * - 14 AS col0
----
-1064

query I rowsort
SELECT - 82 - - + 85 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT ALL + CAST( NULL AS SIGNED ) * - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + CAST ( NULL AS INTEGER ) * - 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL COALESCE ( + 63, + COUNT( * ), + 40 )
----
63

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL COALESCE ( + 63, + COUNT ( * ), + 40 )
----
63

query I rowsort
SELECT DISTINCT ( - + 4 )
----
-4

query I rowsort
SELECT ALL + 87 * + + 12 col1
----
1044

query II rowsort
SELECT 32 AS col1, 56
----
32
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT - - 81 + - + CASE 57 WHEN - CAST( NULL AS SIGNED ) THEN + ( 89 ) WHEN 93 THEN + 49 * + NULLIF ( + CAST( NULL AS SIGNED ), - 81 * + NULLIF ( COALESCE ( - 32, + + 68 * - 8 + 64, + 62 ), 59 * ( 79 ) - + 0 / + 8 ) ) + 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT - - 81 + - + CASE 57 WHEN - CAST ( NULL AS INTEGER ) THEN + ( 89 ) WHEN 93 THEN + 49 * + NULLIF ( + CAST ( NULL AS INTEGER ), - 81 * + NULLIF ( COALESCE ( - 32, + + 68 * - 8 + 64, + 62 ), 59 * ( 79 ) - + 0 / + 8 ) ) + 76 END AS col1
----
NULL

query I rowsort
SELECT + - 1 - + + 82
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9163
SELECT ALL 13 AS col0, - CAST( - 68 AS SIGNED ) AS col0
----
13
68

skipif mysql # not compatible
query II rowsort label-9163
SELECT ALL 13 AS col0, - CAST ( - 68 AS INTEGER ) AS col0
----
13
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT + 87 DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-9164
SELECT + 87 / - 26
----
-3

query I rowsort
SELECT + 57 * - 44
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT COUNT( * ) + COUNT( ALL - ( - + 11 ) )
----
2

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL - ( - + 11 ) )
----
2

query I rowsort
SELECT ALL + 4 + 72 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL 45 + + COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL 45 + + COUNT ( * ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9169
SELECT + 15 + COUNT( DISTINCT + + 61 ), + ( - + 60 ) + - SUM( ALL + 39 ) + - + 28 + + ( - - 93 ) * - 50 * 38 col1
----
16
-176827

skipif mysql # not compatible
query II rowsort label-9169
SELECT + 15 + COUNT ( DISTINCT + + 61 ), + ( - + 60 ) + - SUM ( ALL + 39 ) + - + 28 + + ( - - 93 ) * - 50 * 38 col1
----
16
-176827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9170
SELECT ALL 84 DIV - ( SUM( DISTINCT + 51 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL 84 / - ( SUM ( DISTINCT + 51 ) )
----
-1

query I rowsort
SELECT ALL + ( 37 ) AS col0
----
37

query I rowsort
SELECT ALL - 44 + - 84 AS col2
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT - CASE 71 WHEN + CASE 31 WHEN 88 - - 16 THEN + ( - 27 ) END / - 70 * + - 69 THEN - CAST( - 15 AS SIGNED ) ELSE - + 56 END
----
56

skipif mysql # not compatible
query I rowsort label-9173
SELECT - CASE 71 WHEN + CASE 31 WHEN 88 - - 16 THEN + ( - 27 ) END / - 70 * + - 69 THEN - CAST ( - 15 AS INTEGER ) ELSE - + 56 END
----
56

query I rowsort
SELECT + 90 + ( + 86 ) - + + 98 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - 67 * + COUNT( * ) * 98 + + 46
----
-6520

skipif mysql # not compatible
query I rowsort label-9175
SELECT - 67 * + COUNT ( * ) * 98 + + 46
----
-6520

query I rowsort
SELECT DISTINCT + ( - 39 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9177
SELECT ALL - - MAX( - 34 ) DIV 96 - 25
----
-25

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL - - MAX ( - 34 ) / 96 - 25
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-9178
SELECT DISTINCT 76 DIV - + ( + + 96 ) - + 23 AS col2, + 85 AS col1
----
-23
85

skipif mysql # not compatible
query II rowsort label-9178
SELECT DISTINCT 76 / - + ( + + 96 ) - + 23 AS col2, + 85 AS col1
----
-23
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9179
SELECT ( - 18 ), + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-18
1

skipif mysql # not compatible
query II rowsort label-9179
SELECT ( - 18 ), + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-18
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9180
SELECT - 38 * 63 DIV + 36 + + 13 * - COUNT( * ) + + 70 * + + 93 + 62 - 37 DIV + + ( - 40 ) * - CAST( + + NULLIF ( + - 45, - CASE CAST( NULL AS SIGNED ) WHEN 83 THEN ( 98 ) WHEN - 58 + 11 * + 93 THEN COALESCE ( CASE 2 WHEN ( - 3 ) * COUNT( * ) + 25 THEN NULL WHEN - CASE - 80 WHEN CASE 78 WHEN 18 THEN - 46 ELSE 48 END - + 77 THEN - 97 DIV - CASE 95 WHEN 79 THEN NULL WHEN - COUNT( * ) DIV - COUNT( * ) THEN NULL ELSE 56 END WHEN 59 + + COALESCE ( 8, 83 ) THEN + 69 ELSE NULL END THEN NULL ELSE 92 END, - 83 + + NULLIF ( COUNT( * ), + CAST( NULL AS DECIMAL ) ) ) * 85 END ) AS SIGNED ) - + 22 * + MAX( ALL 69 DIV + CAST( 44 AS SIGNED ) )
----
6471

skipif mysql # not compatible
query I rowsort label-9180
SELECT - 38 * 63 / + 36 + + 13 * - COUNT ( * ) + + 70 * + + 93 + 62 - 37 / + + ( - 40 ) * - CAST ( + + NULLIF ( + - 45, - CASE CAST ( NULL AS INTEGER ) WHEN 83 THEN ( 98 ) WHEN - 58 + 11 * + 93 THEN COALESCE ( CASE 2 WHEN ( - 3 ) * COUNT ( * ) + 25 THEN NULL WHEN - CASE - 80 WHEN CASE 78 WHEN 18 THEN - 46 ELSE 48 END - + 77 THEN - 97 / - CASE 95 WHEN 79 THEN NULL WHEN - COUNT ( * ) / - COUNT ( * ) THEN NULL ELSE 56 END WHEN 59 + + COALESCE ( 8, 83 ) THEN + 69 ELSE NULL END THEN NULL ELSE 92 END, - 83 + + NULLIF ( COUNT ( * ), + CAST ( NULL AS REAL ) ) ) * 85 END ) AS INTEGER ) - + 22 * + MAX ( ALL 69 / + CAST ( 44 AS INTEGER ) )
----
6471

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL + MIN( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL + MIN ( + 4 )
----
4

query I rowsort
SELECT ( - + 48 ) col0
----
-48

query I rowsort
SELECT + 36 + + 50
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT - NULLIF ( - + COUNT( * ), - 58 ) * + 33 * CASE - 85 WHEN - COALESCE ( - 54, - COUNT( * ) ) THEN 2 * - - 79 / - 26 + 95 + - COUNT( * ) - - - 22 END + - 76 * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT - NULLIF ( - + COUNT ( * ), - 58 ) * + 33 * CASE - 85 WHEN - COALESCE ( - 54, - COUNT ( * ) ) THEN 2 * - - 79 / - 26 + 95 + - COUNT ( * ) - - - 22 END + - 76 * 1
----
NULL

query I rowsort
SELECT ALL + 90 * - NULLIF ( + 89, + + 75 + - 17 ) AS col2
----
-8010

query I rowsort
SELECT + 13 + - + 17
----
-4

query II rowsort
SELECT ( - + 54 ) AS col0, - 2 - + 40 AS col0
----
-54
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9188
SELECT ALL + 97 AS col0, + COUNT( * ) DIV 74
----
97
0

skipif mysql # not compatible
query II rowsort label-9188
SELECT ALL + 97 AS col0, + COUNT ( * ) / 74
----
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9189
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 28 + 7 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-9189
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 28 + 7 AS col2
----
NULL
35

query I rowsort
SELECT - 62 * 94 + 86 AS col0
----
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT - MIN( DISTINCT - 67 ) + + + 12 + - - 76 + - 86
----
69

skipif mysql # not compatible
query I rowsort label-9191
SELECT - MIN ( DISTINCT - 67 ) + + + 12 + - - 76 + - 86
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT ALL + COALESCE ( + - 81, + 8 + + 14 + - 53 DIV + 36 * + 40 * 41 )
----
-81

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + COALESCE ( + - 81, + 8 + + 14 + - 53 / + 36 * + 40 * 41 )
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT ALL - 28 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - 28 / - 35
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT - 35 + + - 64 - - 82 / + 8 * - CAST( NULL AS SIGNED ) * - - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT - 35 + + - 64 - - 82 / + 8 * - CAST ( NULL AS INTEGER ) * - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9195
SELECT ALL + 3, - COUNT( * ) + NULLIF ( - 16, + + ( - 32 ) + - + 71 ) col1
----
3
-17

skipif mysql # not compatible
query II rowsort label-9195
SELECT ALL + 3, - COUNT ( * ) + NULLIF ( - 16, + + ( - 32 ) + - + 71 ) col1
----
3
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT NULLIF ( - + 3, - COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9196
SELECT NULLIF ( - + 3, - COUNT ( * ) )
----
-3

query I rowsort
SELECT COALESCE ( - 94, 30 )
----
-94

query II rowsort
SELECT ALL + 17 * + 44 + + 45 * 88 AS col1, 5
----
4708
5

query I rowsort
SELECT - 63 * - ( 70 )
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT - SUM( ALL + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-9200
SELECT - SUM ( ALL + 98 )
----
-98

query I rowsort
SELECT + 46 + + - 64 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL + MIN( + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + MIN ( + 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL 29 + 27 + 27 * + 68 + - - 14 * - 63 * + 48 - - 47 + - COUNT( * ) * + ( 76 ) AS col2
----
-40473

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL 29 + 27 + 27 * + 68 + - - 14 * - 63 * + 48 - - 47 + - COUNT ( * ) * + ( 76 ) AS col2
----
-40473

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9204
SELECT - + ( - CAST( NULL AS SIGNED ) ) * + CAST( NULL AS DECIMAL ) * - ( + CASE - + 99 WHEN + - 38 THEN + ( - 70 ) WHEN 82 - + + 51 THEN - 73 / - 66 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT - + ( - CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS REAL ) * - ( + CASE - + 99 WHEN + - 38 THEN + ( - 70 ) WHEN 82 - + + 51 THEN - 73 / - 66 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9205
SELECT ALL - - CASE 85 WHEN - CAST( COUNT( * ) AS DECIMAL ) + + + 92 * + - 65 + + 72 THEN + - 80 + COALESCE ( + ( - 74 ), + 11 ) ELSE + - 31 END * 21
----
-651

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL - - CASE 85 WHEN - CAST ( COUNT ( * ) AS REAL ) + + + 92 * + - 65 + + 72 THEN + - 80 + COALESCE ( + ( - 74 ), + 11 ) ELSE + - 31 END * 21
----
-651

query I rowsort
SELECT DISTINCT + 6 * - NULLIF ( + + COALESCE ( - 28, + 39 ), + 92 ) * - - 32 * - - 25 * + 85 - 74 AS col2
----
11423926

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT DISTINCT - COUNT( * ) + + 17 - - 72 * 37
----
2680

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - COUNT ( * ) + + 17 - - 72 * 37
----
2680

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT 10, - 68 + - 74 * + COUNT( * ) AS col0
----
10
-142

skipif mysql # not compatible
query II rowsort label-9208
SELECT 10, - 68 + - 74 * + COUNT ( * ) AS col0
----
10
-142

query I rowsort
SELECT - 48 * 44
----
-2112

query II rowsort
SELECT + 5, + 63 + + - 76 * + + 87 AS col2
----
5
-6549

query II rowsort
SELECT DISTINCT - 37, 18 AS col0
----
-37
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT MIN( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT MIN ( - 47 )
----
-47

query I rowsort
SELECT + 15 * - + 18 AS col0
----
-270

query I rowsort
SELECT ALL - ( 43 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9215
SELECT - + 58, - COUNT( * ) AS col0
----
-58
-1

skipif mysql # not compatible
query II rowsort label-9215
SELECT - + 58, - COUNT ( * ) AS col0
----
-58
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT 3 / - 32 * - CASE - 56 WHEN - 5 + COUNT( * ) - - + COUNT( * ) * + - 64 THEN CASE + COUNT( * ) WHEN - 33 / + - SUM( - 39 ) THEN 59 END WHEN COALESCE ( - ( - 74 ), 20 ) + 44 * 34 THEN - 32 * - COALESCE ( + 53 * 99, 88, 76 - COUNT( DISTINCT - 93 ) * - COUNT( * ) ) + - COALESCE ( ( - 84 ), - COUNT( * ) ) * + 87 WHEN 92 + + 77 THEN 82 END / 9 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT 3 / - 32 * - CASE - 56 WHEN - 5 + COUNT ( * ) - - + COUNT ( * ) * + - 64 THEN CASE + COUNT ( * ) WHEN - 33 / + - SUM ( - 39 ) THEN 59 END WHEN COALESCE ( - ( - 74 ), 20 ) + 44 * 34 THEN - 32 * - COALESCE ( + 53 * 99, 88, 76 - COUNT ( DISTINCT - 93 ) * - COUNT ( * ) ) + - COALESCE ( ( - 84 ), - COUNT ( * ) ) * + 87 WHEN 92 + + 77 THEN 82 END / 9 + + 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT 26 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-9217
SELECT 26 / 36
----
0

query I rowsort
SELECT 33 * - 94 col0
----
-3102

query I rowsort
SELECT ALL 55 * - 54
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT 72 * + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT 72 * + - COUNT ( * )
----
-72

query I rowsort
SELECT 16 + - 34
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT 52 DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9222
SELECT 52 / + 96 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9223
SELECT COUNT( * ) DIV + + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT COUNT ( * ) / + + 36 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9224
SELECT DISTINCT - NULLIF ( + 75, + CASE - CAST( + 98 AS SIGNED ) WHEN - 98 + - 57 THEN + 83 WHEN - 41 * + ( + - 45 ) + 37 THEN NULL WHEN + + 74 THEN NULL END + + + CASE - 57 WHEN 42 * - 77 * - 15 THEN COUNT( * ) ELSE - 68 * - 85 - 24 / - 94 END ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT - NULLIF ( + 75, + CASE - CAST ( + 98 AS INTEGER ) WHEN - 98 + - 57 THEN + 83 WHEN - 41 * + ( + - 45 ) + 37 THEN NULL WHEN + + 74 THEN NULL END + + + CASE - 57 WHEN 42 * - 77 * - 15 THEN COUNT ( * ) ELSE - 68 * - 85 - 24 / - 94 END ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT DISTINCT - 14 * COUNT( * ) * 20
----
-280

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT - 14 * COUNT ( * ) * 20
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT DISTINCT - COUNT( * ) + - - 87 + - 5 * - - 95 * + 26
----
-12264

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT - COUNT ( * ) + - - 87 + - 5 * - - 95 * + 26
----
-12264

query I rowsort
SELECT 77 * + 47 AS col1
----
3619

query I rowsort
SELECT 23 * - 1 - + 78 * - 27 AS col2
----
2083

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT ALL 35 * + 20 col1, + ( + - COUNT( * ) )
----
700
-1

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL 35 * + 20 col1, + ( + - COUNT ( * ) )
----
700
-1

query I rowsort
SELECT ALL + 96 + + 14 + - ( + 56 ) * - 39 + - 47 + + 14
----
2261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT - COUNT( DISTINCT 23 ) * + COUNT( * ) DIV 80 * ( + 85 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9231
SELECT - COUNT ( DISTINCT 23 ) * + COUNT ( * ) / 80 * ( + 85 ) col2
----
0

query I rowsort
SELECT ALL - - 59 + + NULLIF ( 81, + 70 ) AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT + CAST( + + 38 AS SIGNED ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9233
SELECT + CAST ( + + 38 AS INTEGER ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT ALL + 68 * COUNT( * ) * 95 + + ( - 60 ) * COALESCE ( 50, - 76, - 22 ) * - - 32 * + 36 AS col1
----
-3449540

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + 68 * COUNT ( * ) * 95 + + ( - 60 ) * COALESCE ( 50, - 76, - 22 ) * - - 32 * + 36 AS col1
----
-3449540

query I rowsort
SELECT ALL - 10 + 9 + - 98 AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT COUNT( * ) - + + 25 DIV + + 92 + 32 + + 41 + - 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9236
SELECT COUNT ( * ) - + + 25 / + + 92 + 32 + + 41 + - 73 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT 62 + + + 53 + + 90 * - + MIN( 93 ) + + 84 * 86 - - + 23 * + 97 AS col0
----
1200

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT 62 + + + 53 + + 90 * - + MIN ( 93 ) + + 84 * 86 - - + 23 * + 97 AS col0
----
1200

query I rowsort
SELECT ALL - - 67 + - - 9 * + 96 + - 40
----
891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9239
SELECT ALL + COALESCE ( + 85, 50, 91 * - 80 * + - COALESCE ( + CAST( NULL AS SIGNED ), + 65 + 65 * + COUNT( ALL - 40 ) ) * - 80 - - NULLIF ( 22, - - 96 ) + + COUNT( * ) * + + 63 - COUNT( * ), COUNT( * ) ) + + 32 * 8 AS col1
----
341

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL + COALESCE ( + 85, 50, 91 * - 80 * + - COALESCE ( + CAST ( NULL AS INTEGER ), + 65 + 65 * + COUNT ( ALL - 40 ) ) * - 80 - - NULLIF ( 22, - - 96 ) + + COUNT ( * ) * + + 63 - COUNT ( * ), COUNT ( * ) ) + + 32 * 8 AS col1
----
341

query I rowsort
SELECT 11 + + 81 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT - MIN( 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9241
SELECT - MIN ( 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT 1 * + 91 + - COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9242
SELECT 1 * + 91 + - COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9243
SELECT ALL - 52 DIV + - COUNT( * ) + 92 + 85 + - 56
----
173

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - 52 / + - COUNT ( * ) + 92 + 85 + - 56
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT + COUNT( * ) - COUNT( * ) DIV - + 12 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9244
SELECT + COUNT ( * ) - COUNT ( * ) / - + 12 AS col1
----
1

query I rowsort
SELECT - ( - 11 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9246
SELECT 49 + - 65 + - 92 DIV - NULLIF ( - + 3, - + MAX( ALL + - 90 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-9246
SELECT 49 + - 65 + - 92 / - NULLIF ( - + 3, - + MAX ( ALL + - 90 ) )
----
-46

query I rowsort
SELECT ALL - 3 - + + 38 + 89 * - 18 - - + ( + - 73 )
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT COUNT( DISTINCT 41 ) * - 77 + - + 50 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-9248
SELECT COUNT ( DISTINCT 41 ) * - 77 + - + 50 AS col1
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9249
SELECT ALL + - ( - - COUNT( * ) ) DIV - - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + - ( - - COUNT ( * ) ) / - - 3 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT + 13 + - MIN( ALL - 31 )
----
44

skipif mysql # not compatible
query I rowsort label-9250
SELECT + 13 + - MIN ( ALL - 31 )
----
44

query I rowsort
SELECT DISTINCT - 0 * + - 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9252
SELECT DISTINCT ( 22 ) col1, - MIN( 37 ) AS col1
----
22
-37

skipif mysql # not compatible
query II rowsort label-9252
SELECT DISTINCT ( 22 ) col1, - MIN ( 37 ) AS col1
----
22
-37

query I rowsort
SELECT ALL - 67 * - 80
----
5360

query I rowsort
SELECT 7 * + 29
----
203

query I rowsort
SELECT 42 * NULLIF ( - 99, 45 ) AS col0
----
-4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9256
SELECT ALL COUNT( * ) AS col1, + ( + 86 ) * COUNT( * ) + - + 43 + + 67 + - + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9256
SELECT ALL COUNT ( * ) AS col1, + ( + 86 ) * COUNT ( * ) + - + 43 + + 67 + - + CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT 13 + + + 56 col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT - 70, 62 + + + 69 + - + COUNT( DISTINCT + - 74 ) AS col0
----
-70
130

skipif mysql # not compatible
query II rowsort label-9258
SELECT - 70, 62 + + + 69 + - + COUNT ( DISTINCT + - 74 ) AS col0
----
-70
130

query II rowsort
SELECT 61 AS col1, + 83
----
61
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL COUNT( - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL COUNT ( - 59 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT 32 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT 32 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT 18 * + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT 18 * + COUNT ( * ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT MAX( ALL + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9263
SELECT MAX ( ALL + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL 11 * - + 90 + + 77 * + MAX( - 80 ) AS col2
----
-7150

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL 11 * - + 90 + + 77 * + MAX ( - 80 ) AS col2
----
-7150

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + SUM( - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9265
SELECT + SUM ( - 62 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-9266
SELECT + COUNT( * ) AS col1, 5
----
1
5

skipif mysql # not compatible
query II rowsort label-9266
SELECT + COUNT ( * ) AS col1, 5
----
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT 48 + - - ( + + COALESCE ( + - COUNT( * ), + 70 + - 98 ) )
----
47

skipif mysql # not compatible
query I rowsort label-9267
SELECT 48 + - - ( + + COALESCE ( + - COUNT ( * ), + 70 + - 98 ) )
----
47

query I rowsort
SELECT + 72 * 21 - + 94 * - 14 * + 1 AS col1
----
2828

query I rowsort
SELECT 93 - + - 27 AS col1
----
120

query I rowsort
SELECT ALL 11 + + 63 * 67 * 79 col0
----
333470

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT + NULLIF ( 7, - 37 + + + 83 ) * 4 + - COUNT( - 60 )
----
27

skipif mysql # not compatible
query I rowsort label-9271
SELECT + NULLIF ( 7, - 37 + + + 83 ) * 4 + - COUNT ( - 60 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT + 81 + + - CAST( NULL AS SIGNED ) + + 80 * COUNT( + - 20 ) + - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT + 81 + + - CAST ( NULL AS INTEGER ) + + 80 * COUNT ( + - 20 ) + - 10 AS col2
----
NULL

query I rowsort
SELECT ALL + 59 * - 5 AS col2
----
-295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT ALL CASE + COUNT( * ) WHEN 25 * CAST( NULL AS SIGNED ) THEN - + 9 * - 36 END - - COUNT( * ) / 40 * - 36 + 83 + - - 80 / 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL CASE + COUNT ( * ) WHEN 25 * CAST ( NULL AS INTEGER ) THEN - + 9 * - 36 END - - COUNT ( * ) / 40 * - 36 + 83 + - - 80 / 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + - 67 * - COUNT( * ) * - 24 * + 92 + + 68 AS col2
----
-147868

skipif mysql # not compatible
query I rowsort label-9275
SELECT + - 67 * - COUNT ( * ) * - 24 * + 92 + + 68 AS col2
----
-147868

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT DISTINCT + SUM( ALL + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT + SUM ( ALL + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL COUNT( DISTINCT - 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL COUNT ( DISTINCT - 64 ) AS col1
----
1

query I rowsort
SELECT ALL - 23 * + + 6
----
-138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9279
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), - 32 * 20 DIV - 3, + + ( - 81 ) )
----
213

skipif mysql # not compatible
query I rowsort label-9279
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), - 32 * 20 / - 3, + + ( - 81 ) )
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - - 12 + + + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9280
SELECT - - 12 + + + COUNT ( * ) AS col0
----
13

query I rowsort
SELECT + 70 * 68
----
4760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9282
SELECT - 61, 27 / - + 53 + CAST( NULL AS SIGNED ) * + - 64 AS col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-9282
SELECT - 61, 27 / - + 53 + CAST ( NULL AS INTEGER ) * + - 64 AS col0
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT NULLIF ( + + MAX( ALL - 69 ), + 79 * 10 )
----
-69

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT NULLIF ( + + MAX ( ALL - 69 ), + 79 * 10 )
----
-69

query I rowsort
SELECT ALL - 62 * + - 41 col1
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL + MAX( - - 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + MAX ( - - 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT MAX( ALL - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9286
SELECT MAX ( ALL - 2 ) AS col1
----
-2

query I rowsort
SELECT - 73 col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL CASE + 58 WHEN - - COUNT( * ) + + 27 + 35 THEN + - 85 - + + 45 + - 68 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL CASE + 58 WHEN - - COUNT ( * ) + + 27 + 35 THEN + - 85 - + + 45 + - 68 WHEN + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT + - 74 + 1 AS col1
----
-73

query I rowsort
SELECT DISTINCT + ( + 17 ) + + + 15
----
32

query I rowsort
SELECT - 72 * + 62 * 35 AS col1
----
-156240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9292
SELECT ALL + CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT - 90 DIV - - 90 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9293
SELECT - 90 / - - 90 AS col2
----
-1

query I rowsort
SELECT ALL - 68 * - 96 * + 74
----
483072

query II rowsort
SELECT DISTINCT + 13 * + 40 col2, - 98 AS col0
----
520
-98

query I rowsort
SELECT ALL - 59 + 17 AS col2
----
-42

query I rowsort
SELECT - 83 + + + 40 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9298
SELECT DISTINCT - CAST( 46 AS SIGNED ) + CASE + 16 WHEN + + 25 + - AVG ( + + 90 ) + - + ( + - COUNT( ALL + - ( + CAST( NULL AS DECIMAL ) ) ) ) * 22 + - 3 / ( - COUNT( DISTINCT - 50 ) ) - + 24 THEN - 17 ELSE NULL END + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - CAST ( 46 AS INTEGER ) + CASE + 16 WHEN + + 25 + - AVG ( + + 90 ) + - + ( + - COUNT ( ALL + - ( + CAST ( NULL AS REAL ) ) ) ) * 22 + - 3 / ( - COUNT ( DISTINCT - 50 ) ) - + 24 THEN - 17 ELSE NULL END + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL + 95 + + + 68 + + + MAX( - 38 )
----
125

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + 95 + + + 68 + + + MAX ( - 38 )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL + ( + + 26 ) + NULLIF ( MIN( ALL + 58 ), 29 * 4 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + ( + + 26 ) + NULLIF ( MIN ( ALL + 58 ), 29 * 4 ) AS col0
----
84

query I rowsort
SELECT ( - 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - 82 + - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9302
SELECT - 82 + - COUNT ( * ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - 0 * + + MAX( DISTINCT - + 19 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9303
SELECT - 0 * + + MAX ( DISTINCT - + 19 ) AS col0
----
0

query I rowsort
SELECT + 6 * 97 + - 72 col2
----
510

query I rowsort
SELECT ( + + 82 )
----
82

query I rowsort
SELECT ( - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT + SUM( DISTINCT 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9307
SELECT + SUM ( DISTINCT 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9308
SELECT ALL + COALESCE ( - 77, ( 43 ) + - - 27 * + MAX( + 14 ) DIV - 50 - - 54 * - CASE 72 WHEN - 64 + 44 THEN - 61 DIV - + 22 * + ( - SUM( ALL - 82 ) ) + + 74 + 10 DIV + 54 WHEN + ( + 12 ) * - 75 THEN + CASE 47 WHEN 91 * 63 + - 49 THEN - COUNT( ALL - 38 ) DIV - 68 WHEN + 55 THEN NULL ELSE - 94 + 10 END WHEN + 1 * COUNT( * ) THEN NULL ELSE NULL END + + 37, + 47 )
----
-77

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL + COALESCE ( - 77, ( 43 ) + - - 27 * + MAX ( + 14 ) / - 50 - - 54 * - CASE 72 WHEN - 64 + 44 THEN - 61 / - + 22 * + ( - SUM ( ALL - 82 ) ) + + 74 + 10 / + 54 WHEN + ( + 12 ) * - 75 THEN + CASE 47 WHEN 91 * 63 + - 49 THEN - COUNT ( ALL - 38 ) / - 68 WHEN + 55 THEN NULL ELSE - 94 + 10 END WHEN + 1 * COUNT ( * ) THEN NULL ELSE NULL END + + 37, + 47 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL 64 * - + COUNT( * ) * + 52
----
-3328

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL 64 * - + COUNT ( * ) * + 52
----
-3328

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL + COUNT( * ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL + COUNT ( * ) * 42
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9311
SELECT DISTINCT COUNT( DISTINCT + - 5 ) * + MAX( 55 ) AS col0, + COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-9311
SELECT DISTINCT COUNT ( DISTINCT + - 5 ) * + MAX ( 55 ) AS col0, + COUNT ( * )
----
55
1

query I rowsort
SELECT + - ( + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9313
SELECT DISTINCT + 25 * - - SUM( ALL + 85 ) + - - ( + + 61 ) AS col2, 87 AS col1
----
2186
87

skipif mysql # not compatible
query II rowsort label-9313
SELECT DISTINCT + 25 * - - SUM ( ALL + 85 ) + - - ( + + 61 ) AS col2, 87 AS col1
----
2186
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL - 66 * 93 * - + SUM( DISTINCT + ( + + 40 ) ) * + + 35 + + 24 AS col2
----
8593224

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL - 66 * 93 * - + SUM ( DISTINCT + ( + + 40 ) ) * + + 35 + + 24 AS col2
----
8593224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9315
SELECT + 68 * - - ( CAST( NULL AS SIGNED ) ) - - CASE - + 85 WHEN 18 * - - 35 / COUNT( * ) * - + 11 THEN + - 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT + 68 * - - ( CAST ( NULL AS INTEGER ) ) - - CASE - + 85 WHEN 18 * - - 35 / COUNT ( * ) * - + 11 THEN + - 72 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 19, + + 27 ) AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT ALL 11 DIV - + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL 11 / - + 44 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9318
SELECT + 81 - + 46, COUNT( * ) + - 39 DIV - 73 AS col1
----
35
1

skipif mysql # not compatible
query II rowsort label-9318
SELECT + 81 - + 46, COUNT ( * ) + - 39 / - 73 AS col1
----
35
1

query I rowsort
SELECT ALL ( - 14 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT + + 89 * 38, - 20 * - ( - COALESCE ( COUNT( * ), + - COUNT( * ) * NULLIF ( - - CASE + COUNT( DISTINCT - 32 ) WHEN - ( 28 ) + - CASE ( - 58 ) WHEN 89 THEN 89 + 36 + 3 WHEN 69 THEN COUNT( * ) END + + 20 THEN 2 END, 19 * AVG ( 21 ) ) + + 50 ) ) AS col2
----
3382
-20

skipif mysql # not compatible
query II rowsort label-9320
SELECT + + 89 * 38, - 20 * - ( - COALESCE ( COUNT ( * ), + - COUNT ( * ) * NULLIF ( - - CASE + COUNT ( DISTINCT - 32 ) WHEN - ( 28 ) + - CASE ( - 58 ) WHEN 89 THEN 89 + 36 + 3 WHEN 69 THEN COUNT ( * ) END + + 20 THEN 2 END, 19 * AVG ( 21 ) ) + + 50 ) ) AS col2
----
3382
-20

query I rowsort
SELECT DISTINCT + 84 col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT + - 20 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT + - 20 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT + + NULLIF ( + CASE - 72 WHEN + 2 / + + 45 THEN + + COUNT( * ) + - - 77 + - COUNT( * ) WHEN + 9 - + 71 * + 28 THEN NULL END, + ( - CASE 51 WHEN + 54 THEN + CAST( + COUNT( * ) AS SIGNED ) WHEN - 1 THEN - 61 END ) * + 19 ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT + + NULLIF ( + CASE - 72 WHEN + 2 / + + 45 THEN + + COUNT ( * ) + - - 77 + - COUNT ( * ) WHEN + 9 - + 71 * + 28 THEN NULL END, + ( - CASE 51 WHEN + 54 THEN + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 1 THEN - 61 END ) * + 19 ) + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT + 70 * - COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9324
SELECT + 70 * - COUNT ( * ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT + - 70 + + 37 + COUNT( * ) + + 16 * 66
----
1024

skipif mysql # not compatible
query I rowsort label-9325
SELECT + - 70 + + 37 + COUNT ( * ) + + 16 * 66
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT - COUNT( * ) - + + 7
----
-8

skipif mysql # not compatible
query I rowsort label-9326
SELECT - COUNT ( * ) - + + 7
----
-8

query I rowsort
SELECT ALL 96 + - 67
----
29

query I rowsort
SELECT DISTINCT NULLIF ( 52, + 77 )
----
52

query I rowsort
SELECT ALL + 27 + - 43
----
-16

query I rowsort
SELECT ALL - 73 + - 35
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + 42 + + COUNT( 81 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9331
SELECT + 42 + + COUNT ( 81 ) AS col1
----
43

query I rowsort
SELECT DISTINCT + 9 + + 9 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT ALL COUNT( - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL COUNT ( - 87 )
----
1

query I rowsort
SELECT ALL ( 96 )
----
96

query I rowsort
SELECT ALL 42 + + 26
----
68

query II rowsort
SELECT - 36 AS col2, 20
----
-36
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL NULLIF ( - ( SUM( DISTINCT - 23 ) ), - - 38 )
----
23

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL NULLIF ( - ( SUM ( DISTINCT - 23 ) ), - - 38 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9338
SELECT - CAST( + 89 AS SIGNED ) * 35 * - 42 col1
----
130830

skipif mysql # not compatible
query I rowsort label-9338
SELECT - CAST ( + 89 AS INTEGER ) * 35 * - 42 col1
----
130830

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + 92 + 78 * - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + 92 + 78 * - COUNT ( * )
----
14

query I rowsort
SELECT DISTINCT + 83 * - - 35
----
2905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT DISTINCT 8 DIV 67 - - 85 + - - ( - 25 ) * + + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT 8 / 67 - - 85 + - - ( - 25 ) * + + COUNT ( * ) AS col2
----
60

query I rowsort
SELECT - 53 * 97
----
-5141

query I rowsort
SELECT - 70 + + 39 AS col1
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-9344
SELECT ALL ( 63 ) DIV - + 74 * 80 - + 56 AS col1, 95 + + COALESCE ( - + 53, - - 70 DIV - 14 + - 64 ) * + + 67 AS col2
----
-56
-3456

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL ( 63 ) / - + 74 * 80 - + 56 AS col1, 95 + + COALESCE ( - + 53, - - 70 / - 14 + - 64 ) * + + 67 AS col2
----
-56
-3456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9345
SELECT - COALESCE ( + 16, + 28 * - - 99 ) + + 1 * + ( - COALESCE ( 67, + 99 * + 77 * COALESCE ( + 63, + COUNT( * ) * + 3 * - ( - 93 ) + + 97 - 81 ) DIV - 34 + - 39 + 93 + 44 ) ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-9345
SELECT - COALESCE ( + 16, + 28 * - - 99 ) + + 1 * + ( - COALESCE ( 67, + 99 * + 77 * COALESCE ( + 63, + COUNT ( * ) * + 3 * - ( - 93 ) + + 97 - 81 ) / - 34 + - 39 + 93 + 44 ) ) col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT 2 * - MIN( ALL + 62 ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-9346
SELECT 2 * - MIN ( ALL + 62 ) AS col1
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9347
SELECT 25 DIV - COALESCE ( 69, + COUNT( * ) ) + - - 31 + - 32 - - - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9347
SELECT 25 / - COALESCE ( 69, + COUNT ( * ) ) + - - 31 + - 32 - - - 25 AS col1
----
-26

query I rowsort
SELECT + 7 * + + 84 - + 15 - 25 + + - ( - 30 ) * 50 * - 57 AS col0
----
-84952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT - SUM( + 4 ) * + - COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT - SUM ( + 4 ) * + - COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 55
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT - 99 + - 77 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT - 99 + - 77 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT - CASE 93 WHEN + 89 + - 97 THEN - 80 + ( - - 22 ) WHEN + COUNT( * ) THEN - 19 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT - CASE 93 WHEN + 89 + - 97 THEN - 80 + ( - - 22 ) WHEN + COUNT ( * ) THEN - 19 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 55 * - 71 AS col2
----
-3905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT - + NULLIF ( + 10, + CAST( - 91 AS SIGNED ) * - CASE + SUM( - + ( 55 ) ) WHEN 27 * - 64 * + COUNT( * ) + 51 * + + 32 THEN NULL WHEN - 41 THEN - 23 ELSE NULL END ) * - 65 + 27 + 41 AS col1
----
718

skipif mysql # not compatible
query I rowsort label-9354
SELECT - + NULLIF ( + 10, + CAST ( - 91 AS INTEGER ) * - CASE + SUM ( - + ( 55 ) ) WHEN 27 * - 64 * + COUNT ( * ) + 51 * + + 32 THEN NULL WHEN - 41 THEN - 23 ELSE NULL END ) * - 65 + 27 + 41 AS col1
----
718

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT - ( - + COALESCE ( COUNT( * ), + 0 + 79 ) ) * + + 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT - ( - + COALESCE ( COUNT ( * ), + 0 + 79 ) ) * + + 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL - COUNT( - + 11 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - COUNT ( - + 11 ) AS col2
----
-1

query I rowsort
SELECT + 65 + 64 AS col1
----
129

query I rowsort
SELECT 78 + - + 64 col0
----
14

query I rowsort
SELECT ALL 18 * 12 AS col1
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT - 88 DIV - 68
----
1

skipif mysql # not compatible
query I rowsort label-9360
SELECT - 88 / - 68
----
1

query I rowsort
SELECT + 6 * - 78
----
-468

query I rowsort
SELECT ALL - 80 + 36 + - 35 AS col0
----
-79

query II rowsort
SELECT 58 * 99 * - + 55 * - + 39 - - 12, - 76 AS col1
----
12316602
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL 85 * + + 92 + + NULLIF ( 55, - - 1 ) * + CASE NULLIF ( - COALESCE ( + - 98, 27, + COUNT( DISTINCT 78 ) / - 91 ), COUNT( * ) ) WHEN 67 * - 23 + - 9 * - - 84 THEN NULL WHEN 0 THEN NULL WHEN + COUNT( * ) - + 53 THEN + 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL 85 * + + 92 + + NULLIF ( 55, - - 1 ) * + CASE NULLIF ( - COALESCE ( + - 98, 27, + COUNT ( DISTINCT 78 ) / - 91 ), COUNT ( * ) ) WHEN 67 * - 23 + - 9 * - - 84 THEN NULL WHEN 0 THEN NULL WHEN + COUNT ( * ) - + 53 THEN + 66 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9365
SELECT - ( + 69 ) DIV + 12 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9365
SELECT - ( + 69 ) / + 12 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT COUNT( * ) + + 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9366
SELECT COUNT ( * ) + + 73 AS col1
----
74

query II rowsort
SELECT ALL + 91 col2, + 31
----
91
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT - 72 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-9368
SELECT - 72 / - 80
----
0

query I rowsort
SELECT ALL 37 + + 74 col1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT DISTINCT 96 DIV - - 6
----
16

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT 96 / - - 6
----
16

query II rowsort
SELECT DISTINCT 20 AS col1, - 63
----
20
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT 32 * COUNT( - - 54 ) * COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9372
SELECT 32 * COUNT ( - - 54 ) * COUNT ( * ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT ALL 42 DIV - + 47
----
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL 42 / - + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT COUNT( * ) - SUM( ALL 11 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9374
SELECT COUNT ( * ) - SUM ( ALL 11 ) AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT DISTINCT 77 + 44 DIV + - 95 * + - 22
----
77

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT 77 + 44 / + - 95 * + - 22
----
77

query I rowsort
SELECT 51 - + 5 * 61
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT 96 * - COUNT( * ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-9377
SELECT 96 * - COUNT ( * ) col1
----
-96

query I rowsort
SELECT ALL 71 * 29
----
2059

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT 72 col2, MIN( - 17 ) AS col2
----
72
-17

skipif mysql # not compatible
query II rowsort label-9379
SELECT 72 col2, MIN ( - 17 ) AS col2
----
72
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL COUNT( DISTINCT - - 36 ) * + + 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL COUNT ( DISTINCT - - 36 ) * + + 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT 0 * + MIN( ALL + + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT 0 * + MIN ( ALL + + 70 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9382
SELECT DISTINCT 50 AS col0, 85 - + 94 * ( + + 51 ) DIV + + COUNT( DISTINCT + 32 ) + 86 AS col2
----
50
-4623

skipif mysql # not compatible
query II rowsort label-9382
SELECT DISTINCT 50 AS col0, 85 - + 94 * ( + + 51 ) / + + COUNT ( DISTINCT + 32 ) + 86 AS col2
----
50
-4623

query II rowsort
SELECT + 56 AS col2, 75
----
56
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9384
SELECT 76 * - + 56, COALESCE ( - + CASE - - 27 WHEN - + 55 * + + 0 * + 15 + - - 45 + + 39 / - - 91 / 71 THEN - - 58 ELSE + + COUNT( * ) END, + + 68 ) AS col1
----
-4256
-1

skipif mysql # not compatible
query II rowsort label-9384
SELECT 76 * - + 56, COALESCE ( - + CASE - - 27 WHEN - + 55 * + + 0 * + 15 + - - 45 + + 39 / - - 91 / 71 THEN - - 58 ELSE + + COUNT ( * ) END, + + 68 ) AS col1
----
-4256
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9385
SELECT 11 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT 11 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT DISTINCT - - 8 / - 59 * + CAST( NULL AS SIGNED ) - + 48 + + 28 + + 42 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT - - 8 / - 59 * + CAST ( NULL AS INTEGER ) - + 48 + + 28 + + 42 * 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9387
SELECT - CAST( NULL AS SIGNED ) * - COALESCE ( - 68, + + COALESCE ( + 39, + + CASE - - 16 WHEN - CASE + 50 WHEN - 46 THEN 31 + - 9 + COUNT( * ) WHEN 34 THEN NULL ELSE + + 86 END THEN - 53 * + NULLIF ( 33, CAST( 76 AS SIGNED ) + + - 24 ) ELSE NULL END * 91 + ( 77 ) ) * + 1 ) + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT - CAST ( NULL AS INTEGER ) * - COALESCE ( - 68, + + COALESCE ( + 39, + + CASE - - 16 WHEN - CASE + 50 WHEN - 46 THEN 31 + - 9 + COUNT ( * ) WHEN 34 THEN NULL ELSE + + 86 END THEN - 53 * + NULLIF ( 33, CAST ( 76 AS INTEGER ) + + - 24 ) ELSE NULL END * 91 + ( 77 ) ) * + 1 ) + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT 24 * 25 * + - MIN( + + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9388
SELECT 24 * 25 * + - MIN ( + + 0 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9390
SELECT ALL + NULLIF ( ( + - CASE + - 33 WHEN - - MIN( ALL - ( 47 ) ) THEN 98 WHEN 4 THEN NULL END ), - 2 * + - CAST( NULL AS DECIMAL ) + - - 71 + + 1 ) * 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL + NULLIF ( ( + - CASE + - 33 WHEN - - MIN ( ALL - ( 47 ) ) THEN 98 WHEN 4 THEN NULL END ), - 2 * + - CAST ( NULL AS REAL ) + - - 71 + + 1 ) * 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9391
SELECT + - 1 AS col2, + SUM( - + 0 ) + - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9391
SELECT + - 1 AS col2, + SUM ( - + 0 ) + - COUNT ( * )
----
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - + 49 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - + 49 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT DISTINCT + + 4 + - 91 * MIN( ALL - ( 87 ) ) + - - 19 DIV 7 + - 4 + - CASE + + 1 WHEN - 21 * - 14 * - CASE + COUNT( * ) WHEN - 3 THEN NULL ELSE - + ( 54 ) * - 34 END THEN NULL ELSE - + 4 + 74 END + COUNT( * ) DIV 99 AS col0
----
7849

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT + + 4 + - 91 * MIN ( ALL - ( 87 ) ) + - - 19 / 7 + - 4 + - CASE + + 1 WHEN - 21 * - 14 * - CASE + COUNT ( * ) WHEN - 3 THEN NULL ELSE - + ( 54 ) * - 34 END THEN NULL ELSE - + 4 + 74 END + COUNT ( * ) / 99 AS col0
----
7849

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT 93 * + 17 + - + 26 DIV 1 + - - 19 * - 70 * 11 col0
----
-13075

skipif mysql # not compatible
query I rowsort label-9394
SELECT 93 * + 17 + - + 26 / 1 + - - 19 * - 70 * 11 col0
----
-13075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9395
SELECT ALL + 84 + COUNT( ALL - + 26 ) + - - COUNT( * ) DIV - 23 col1
----
85

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + 84 + COUNT ( ALL - + 26 ) + - - COUNT ( * ) / - 23 col1
----
85

query I rowsort
SELECT 80 - - 75 AS col2
----
155

query II rowsort
SELECT 46 AS col2, - 92 col2
----
46
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT COUNT( * ) AS col0, + COUNT( * ) * 67
----
1
67

skipif mysql # not compatible
query II rowsort label-9398
SELECT COUNT ( * ) AS col0, + COUNT ( * ) * 67
----
1
67

query II rowsort
SELECT ALL - + 69 AS col2, 60
----
-69
60

query I rowsort
SELECT 72 + - + 17
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT + + ( - - ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9401
SELECT + + ( - - ( - COUNT ( * ) ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - + 28 + - ( ( 6 ) ) - 18
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9403
SELECT 89, + 96 + 14 + - - MAX( - + 17 ) * 55 * + 93 + + 33 AS col2
----
89
-86812

skipif mysql # not compatible
query II rowsort label-9403
SELECT 89, + 96 + 14 + - - MAX ( - + 17 ) * 55 * + 93 + + 33 AS col2
----
89
-86812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT + CAST( - 12 AS SIGNED ) - + - 75 + + - 45
----
18

skipif mysql # not compatible
query I rowsort label-9404
SELECT + CAST ( - 12 AS INTEGER ) - + - 75 + + - 45
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT ALL 55 * + 67 AS col2, 91 - COUNT( - + 31 ) * 1 AS col2
----
3685
90

skipif mysql # not compatible
query II rowsort label-9405
SELECT ALL 55 * + 67 AS col2, 91 - COUNT ( - + 31 ) * 1 AS col2
----
3685
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9406
SELECT ALL - 9 + - 33 AS col2, + CAST( - 98 AS SIGNED ) AS col0
----
-42
-98

skipif mysql # not compatible
query II rowsort label-9406
SELECT ALL - 9 + - 33 AS col2, + CAST ( - 98 AS INTEGER ) AS col0
----
-42
-98

query I rowsort
SELECT 51 + - ( + + ( - 65 ) ) AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT 54 * - NULLIF ( + + 50, + SUM( DISTINCT + + 3 ) * NULLIF ( - + ( + AVG ( ALL - 46 ) ), - - ( + 33 ) * ( 73 ) ) ) AS col2
----
-2700

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT 54 * - NULLIF ( + + 50, + SUM ( DISTINCT + + 3 ) * NULLIF ( - + ( + AVG ( ALL - 46 ) ), - - ( + 33 ) * ( 73 ) ) ) AS col2
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT 60 + + COUNT( * ) - - 56
----
117

skipif mysql # not compatible
query I rowsort label-9409
SELECT 60 + + COUNT ( * ) - - 56
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL COUNT( * ) - - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL COUNT ( * ) - - - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9411
SELECT ALL AVG ( ALL + + CASE CASE - + 82 WHEN 18 THEN NULL ELSE - - 80 + - - 52 + CAST( NULL AS SIGNED ) + 21 END WHEN - 72 * - 28 THEN - 78 * + + ( ( + + 66 ) ) ELSE NULL END ) AS col0, + CASE + 73 WHEN + ( + CAST( + COUNT( * ) AS SIGNED ) ) * ( 79 ) * - COUNT( * ) + COUNT( DISTINCT 8 + 61 ) THEN NULL ELSE COUNT( * ) * - 72 END
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-9411
SELECT ALL AVG ( ALL + + CASE CASE - + 82 WHEN 18 THEN NULL ELSE - - 80 + - - 52 + CAST ( NULL AS INTEGER ) + 21 END WHEN - 72 * - 28 THEN - 78 * + + ( ( + + 66 ) ) ELSE NULL END ) AS col0, + CASE + 73 WHEN + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) * ( 79 ) * - COUNT ( * ) + COUNT ( DISTINCT 8 + 61 ) THEN NULL ELSE COUNT ( * ) * - 72 END
----
NULL
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9412
SELECT ALL 24 DIV - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL 24 / - COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT 86 + - COUNT( ALL - + 60 )
----
85

skipif mysql # not compatible
query I rowsort label-9413
SELECT 86 + - COUNT ( ALL - + 60 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT ALL 41 DIV - 96 * + 97
----
0

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL 41 / - 96 * + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - ( - COUNT( * ) ) * + 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9415
SELECT - ( - COUNT ( * ) ) * + 49 AS col1
----
49

query I rowsort
SELECT - 35 + + 6 * + 14
----
49

query I rowsort
SELECT + 75 * 39 * + 51
----
149175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9418
SELECT ALL 81 * + 73 AS col0, 0 * CAST( NULL AS SIGNED )
----
5913
NULL

skipif mysql # not compatible
query II rowsort label-9418
SELECT ALL 81 * + 73 AS col0, 0 * CAST ( NULL AS INTEGER )
----
5913
NULL

query I rowsort
SELECT + 87 + 3 + - + 82
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT + + CAST( + 8 AS SIGNED ) col2
----
8

skipif mysql # not compatible
query I rowsort label-9420
SELECT + + CAST ( + 8 AS INTEGER ) col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9421
SELECT - 85 DIV + 69 + + COUNT( * ), + 54 AS col0
----
0
54

skipif mysql # not compatible
query II rowsort label-9421
SELECT - 85 / + 69 + + COUNT ( * ), + 54 AS col0
----
0
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9422
SELECT + COALESCE ( - 27, - + 21 * - 83 + 49 + + 43 * - 6 + - 18, 0 ) + - + 12 AS col2, + COUNT( - 2 ) col1
----
-39
1

skipif mysql # not compatible
query II rowsort label-9422
SELECT + COALESCE ( - 27, - + 21 * - 83 + 49 + + 43 * - 6 + - 18, 0 ) + - + 12 AS col2, + COUNT ( - 2 ) col1
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT + CASE - - CAST( NULL AS SIGNED ) WHEN - 64 * - - 9 THEN + - COUNT( * ) - - ( - + 34 ) + 54 / - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT + CASE - - CAST ( NULL AS INTEGER ) WHEN - 64 * - - 9 THEN + - COUNT ( * ) - - ( - + 34 ) + 54 / - 79 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9424
SELECT - NULLIF ( + + 19, - - 11 + - + 69 ) * + 2 + - COALESCE ( - - 42, + - CAST( + COUNT( * ) AS SIGNED ), - - ( - 43 ) * + + ( 8 ), 71 * ( + 51 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-9424
SELECT - NULLIF ( + + 19, - - 11 + - + 69 ) * + 2 + - COALESCE ( - - 42, + - CAST ( + COUNT ( * ) AS INTEGER ), - - ( - 43 ) * + + ( 8 ), 71 * ( + 51 ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9425
SELECT + CAST( 8 AS SIGNED ) * - COUNT( * ) DIV + + 34 * 12 + - 17 * - - COUNT( * ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-9425
SELECT + CAST ( 8 AS INTEGER ) * - COUNT ( * ) / + + 34 * 12 + - 17 * - - COUNT ( * ) col0
----
-17

query I rowsort
SELECT + COALESCE ( - + 10, - - 65 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9427
SELECT + - 33 + COUNT( + 89 ) - + SUM( DISTINCT + 54 ) * - COUNT( ALL + 7 ) AS col2, + CAST( - 17 AS SIGNED )
----
22
-17

skipif mysql # not compatible
query II rowsort label-9427
SELECT + - 33 + COUNT ( + 89 ) - + SUM ( DISTINCT + 54 ) * - COUNT ( ALL + 7 ) AS col2, + CAST ( - 17 AS INTEGER )
----
22
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9428
SELECT + 10 DIV ( COUNT( * ) ) - 99 * - 80 AS col2, 32 AS col1
----
7930
32

skipif mysql # not compatible
query II rowsort label-9428
SELECT + 10 / ( COUNT ( * ) ) - 99 * - 80 AS col2, 32 AS col1
----
7930
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - 30 * - 84 * - 12 * + 81 + COUNT( * ) + + COUNT( * ) col1
----
-2449438

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 30 * - 84 * - 12 * + 81 + COUNT ( * ) + + COUNT ( * ) col1
----
-2449438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9430
SELECT - - CAST( - MAX( ALL - 98 ) AS SIGNED ) + 57 - - + 6 * - COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-9430
SELECT - - CAST ( - MAX ( ALL - 98 ) AS INTEGER ) + 57 - - + 6 * - COUNT ( * )
----
149

query I rowsort
SELECT DISTINCT + + 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + - MIN( ALL + 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9432
SELECT + - MIN ( ALL + 23 ) AS col1
----
-23

query I rowsort
SELECT ALL + 53 * COALESCE ( - 12, 13 ) + + 90 col1
----
-546

query I rowsort
SELECT ALL + - ( + ( 67 ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9435
SELECT ALL - 3 DIV - 23 * + - 73 AS col1, ( COUNT( * ) ) + + 98 + - 28
----
0
71

skipif mysql # not compatible
query II rowsort label-9435
SELECT ALL - 3 / - 23 * + - 73 AS col1, ( COUNT ( * ) ) + + 98 + - 28
----
0
71

query I rowsort
SELECT - 64 + - ( - 27 ) AS col0
----
-37

query I rowsort
SELECT DISTINCT + 70 * + + 16 + - ( - 5 ) AS col2
----
1125

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL - 24 * + COUNT( * ) - - - 25 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL - 24 * + COUNT ( * ) - - - 25 AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT ALL 47 * 23 - - + 63 DIV + - 76 AS col2
----
1081

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL 47 * 23 - - + 63 / + - 76 AS col2
----
1081

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT + 7 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9440
SELECT + 7 / 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT + 84 * + + NULLIF ( + - 96, + 18 * - SUM( - 56 ) ) AS col2
----
-8064

skipif mysql # not compatible
query I rowsort label-9441
SELECT + 84 * + + NULLIF ( + - 96, + 18 * - SUM ( - 56 ) ) AS col2
----
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT CASE + - 26 WHEN + + 47 / - 79 - + 98 + 77 - ( 4 ) / + + 55 * - ( - - COALESCE ( - - 17, - ( + COUNT( * ) ) - + + 86 + - 86 / - 63 + + 59, + + 90 + 80 ) ) + - 85 + - 29 THEN NULL ELSE - ( 47 ) END
----
-47

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT CASE + - 26 WHEN + + 47 / - 79 - + 98 + 77 - ( 4 ) / + + 55 * - ( - - COALESCE ( - - 17, - ( + COUNT ( * ) ) - + + 86 + - 86 / - 63 + + 59, + + 90 + 80 ) ) + - 85 + - 29 THEN NULL ELSE - ( 47 ) END
----
-47

query I rowsort
SELECT DISTINCT NULLIF ( - - 54, + + ( + - 73 ) ) AS col2
----
54

query I rowsort
SELECT DISTINCT 24 * NULLIF ( + 65, - 15 )
----
1560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9445
SELECT DISTINCT ( - CAST( + 52 AS SIGNED ) ) col1, 49 AS col1
----
-52
49

skipif mysql # not compatible
query II rowsort label-9445
SELECT DISTINCT ( - CAST ( + 52 AS INTEGER ) ) col1, 49 AS col1
----
-52
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT - 53 * + CASE + - CAST( NULL AS SIGNED ) WHEN + 75 THEN 77 WHEN - - 95 THEN 30 WHEN - 66 * - - 88 THEN NULL ELSE - - 22 END AS col2
----
-1166

skipif mysql # not compatible
query I rowsort label-9446
SELECT - 53 * + CASE + - CAST ( NULL AS INTEGER ) WHEN + 75 THEN 77 WHEN - - 95 THEN 30 WHEN - 66 * - - 88 THEN NULL ELSE - - 22 END AS col2
----
-1166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT ALL CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL CAST ( 99 AS INTEGER )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - COUNT( * ) * 29 * - - 64 AS col0
----
-1856

skipif mysql # not compatible
query I rowsort label-9448
SELECT - COUNT ( * ) * 29 * - - 64 AS col0
----
-1856

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT - 23 * COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9449
SELECT - 23 * COUNT ( * ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT - CAST( + 67 AS SIGNED ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT - CAST ( + 67 AS INTEGER ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9451
SELECT - CASE + - 32 WHEN - 9 * + 44 THEN 3 / - - 3 + - 86 + - CAST( - + 95 AS DECIMAL ) * + - 73 + CASE WHEN NOT NULL BETWEEN ( - ( - + 4 ) ) AND NULL THEN 23 * - + 95 + 15 END + + - 66 WHEN - 41 THEN 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT - CASE + - 32 WHEN - 9 * + 44 THEN 3 / - - 3 + - 86 + - CAST ( - + 95 AS REAL ) * + - 73 + CASE WHEN NOT NULL BETWEEN ( - ( - + 4 ) ) AND NULL THEN 23 * - + 95 + 15 END + + - 66 WHEN - 41 THEN 33 END AS col0
----
NULL

query I rowsort
SELECT - CASE - - ( - 55 ) WHEN 77 THEN NULL ELSE - 2 END * + 53
----
106

query I rowsort
SELECT DISTINCT + 61 * - ( 37 )
----
-2257

query I rowsort
SELECT ALL 75 + - + 63 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT + 23 - - 9 * + CASE - 38 WHEN - COUNT( ALL 81 ) THEN - 50 ELSE NULL END * + 54 - - NULLIF ( + 55, - 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 23 - - 9 * + CASE - 38 WHEN - COUNT ( ALL 81 ) THEN - 50 ELSE NULL END * + 54 - - NULLIF ( + 55, - 53 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL 62 + + CAST( NULL AS SIGNED ) + - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL 62 + + CAST ( NULL AS INTEGER ) + - - 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9457
SELECT - 80 AS col2, COUNT( * )
----
-80
1

skipif mysql # not compatible
query II rowsort label-9457
SELECT - 80 AS col2, COUNT ( * )
----
-80
1

query I rowsort
SELECT ALL - - 62 + 11
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT - + 36 * - 75 + + - SUM( + 98 ) + - - 31 AS col1
----
2633

skipif mysql # not compatible
query I rowsort label-9459
SELECT - + 36 * - 75 + + - SUM ( + 98 ) + - - 31 AS col1
----
2633

onlyif mysql # DIV for integer division: 
query II rowsort label-9460
SELECT DISTINCT 24 DIV ( - - 87 ) col1, NULLIF ( + 27, - - 11 * + 69 )
----
0
27

skipif mysql # not compatible
query II rowsort label-9460
SELECT DISTINCT 24 / ( - - 87 ) col1, NULLIF ( + 27, - - 11 * + 69 )
----
0
27

query I rowsort
SELECT - - ( - 18 ) * 49 * - 63 + + 92 * - 98
----
46550

query II rowsort
SELECT + - 22 AS col1, ( - + 9 )
----
-22
-9

query I rowsort
SELECT ALL + + 42 col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT DISTINCT - 42 / CAST( NULL AS SIGNED ) + 13 * + - 81 * - 34 * + + CAST( - - 57 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT - 42 / CAST ( NULL AS INTEGER ) + 13 * + - 81 * - 34 * + + CAST ( - - 57 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9465
SELECT DISTINCT + + CAST( + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT + + CAST ( + 49 AS INTEGER )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT ALL 86 DIV - - 8 + - 56 + 55
----
9

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL 86 / - - 8 + - 56 + 55
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9467
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9468
SELECT DISTINCT + COUNT( * ) DIV + 93 + - 42 * + 13
----
-546

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT + COUNT ( * ) / + 93 + - 42 * + 13
----
-546

query I rowsort
SELECT ALL + - 92 AS col1
----
-92

query I rowsort
SELECT + + 35 - - 91
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-9471
SELECT + + 29 * + 48 * + 68, 54 + - COUNT( * ) AS col1
----
94656
53

skipif mysql # not compatible
query II rowsort label-9471
SELECT + + 29 * + 48 * + 68, 54 + - COUNT ( * ) AS col1
----
94656
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + CASE + + 27 WHEN 8 THEN - COUNT( * ) * - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT + CASE + + 27 WHEN 8 THEN - COUNT ( * ) * - 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9473
SELECT ALL + 99 AS col2, ( MIN( 84 ) ) + + 1 AS col0
----
99
85

skipif mysql # not compatible
query II rowsort label-9473
SELECT ALL + 99 AS col2, ( MIN ( 84 ) ) + + 1 AS col0
----
99
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT + COUNT( * ) * + 38, + 8 + ( COUNT( * ) ) AS col0
----
38
9

skipif mysql # not compatible
query II rowsort label-9474
SELECT + COUNT ( * ) * + 38, + 8 + ( COUNT ( * ) ) AS col0
----
38
9

query I rowsort
SELECT + NULLIF ( 59, + 71 * - 5 ) * + - 79
----
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL + 46 * ( + COUNT( * ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL + 46 * ( + COUNT ( * ) ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9477
SELECT + ( - - 14 ) - + CAST( NULL AS SIGNED ) + - - 15, - 12 AS col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-9477
SELECT + ( - - 14 ) - + CAST ( NULL AS INTEGER ) + - - 15, - 12 AS col0
----
NULL
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL + COUNT( * ) * - + MIN( - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + COUNT ( * ) * - + MIN ( - 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL - 74 * + + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - 74 * + + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT + 54 * + + 78 * - - SUM( DISTINCT - 85 ) * - - 59 * + MAX( DISTINCT - 38 ) + COUNT( * ) * + 35, + 6 * + 54 AS col0
----
802680875
324

skipif mysql # not compatible
query II rowsort label-9480
SELECT + 54 * + + 78 * - - SUM ( DISTINCT - 85 ) * - - 59 * + MAX ( DISTINCT - 38 ) + COUNT ( * ) * + 35, + 6 * + 54 AS col0
----
802680875
324

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL 12 * - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL 12 * - COUNT ( * ) AS col0
----
-12

query I rowsort
SELECT DISTINCT 71 * - - 85
----
6035

query I rowsort
SELECT 5 + - + 6 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT COUNT( 98 ) + 40 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9484
SELECT COUNT ( 98 ) + 40 AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT ALL - 75 * 8 * + - CAST( + 6 AS SIGNED )
----
3600

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - 75 * 8 * + - CAST ( + 6 AS INTEGER )
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL + COUNT( * ) + - MIN( DISTINCT 86 )
----
-85

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + COUNT ( * ) + - MIN ( DISTINCT 86 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT 21 - - - 93 * - - 84 * + COUNT( * )
----
-7791

skipif mysql # not compatible
query I rowsort label-9487
SELECT 21 - - - 93 * - - 84 * + COUNT ( * )
----
-7791

query I rowsort
SELECT DISTINCT - 57 + 4 * + ( - 11 )
----
-101

query I rowsort
SELECT ALL 70 + - - 36 * + 26 + - - 98 - + 29 col2
----
1075

query I rowsort
SELECT ALL - 84 + - 19
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL + 57 * - 32 * + 92 * - MIN( ALL 0 ) * + 88
----
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + 57 * - 32 * + 92 * - MIN ( ALL 0 ) * + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT + 16 * - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-9492
SELECT + 16 * - COUNT ( * )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9493
SELECT DISTINCT + - 97 DIV + 93 + - - 30 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT + - 97 / + 93 + - - 30 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9494
SELECT 86 + + - ( + - ( - 15 ) ) + - MAX( - + ( 95 ) ) * + + COUNT( * ) * - + CAST( - - 19 AS SIGNED ) + + 47 - + + 63 * + 28
----
-3451

skipif mysql # not compatible
query I rowsort label-9494
SELECT 86 + + - ( + - ( - 15 ) ) + - MAX ( - + ( 95 ) ) * + + COUNT ( * ) * - + CAST ( - - 19 AS INTEGER ) + + 47 - + + 63 * + 28
----
-3451

onlyif mysql # aggregate syntax: 
query II rowsort label-9495
SELECT + 73 * - 84, COUNT( - - 77 ) AS col0
----
-6132
1

skipif mysql # not compatible
query II rowsort label-9495
SELECT + 73 * - 84, COUNT ( - - 77 ) AS col0
----
-6132
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT MAX( NULLIF ( 21, - 46 + + + 79 ) )
----
21

skipif mysql # not compatible
query I rowsort label-9496
SELECT MAX ( NULLIF ( 21, - 46 + + + 79 ) )
----
21

query I rowsort
SELECT ALL + 96 * 20
----
1920

query I rowsort
SELECT - 82 + + 50 * + - 26
----
-1382

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT 76 * + - ( MIN( + 68 ) )
----
-5168

skipif mysql # not compatible
query I rowsort label-9499
SELECT 76 * + - ( MIN ( + 68 ) )
----
-5168

query I rowsort
SELECT 78 + + 22 + 61 col1
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL - 5 + + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - 5 + + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT - - 88 DIV + + ( 17 ) + + 60 * - SUM( 17 )
----
-1015

skipif mysql # not compatible
query I rowsort label-9502
SELECT - - 88 / + + ( 17 ) + + 60 * - SUM ( 17 )
----
-1015

query I rowsort
SELECT + 32 + + 43
----
75

query I rowsort
SELECT ALL - - 42 - + 44
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT ALL + 81 DIV - 9
----
-9

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + 81 / - 9
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9506
SELECT + SUM( DISTINCT - 99 ) * 33 * MAX( DISTINCT + + 85 ) * 14 + CASE - 86 WHEN - 39 THEN + - 92 WHEN - 70 THEN NULL END + - - 61 + + + 1 + + - 58 * - 35 * - ( - CAST( 32 AS SIGNED ) ) + - + 89 / - ( - - 43 ) * 20 / - + 67 / + COALESCE ( + 59, + NULLIF ( 79, + CAST( - 23 AS SIGNED ) ) / COALESCE ( - COUNT( * ) - 94, 92 ) + 22 ) + ( 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT + SUM ( DISTINCT - 99 ) * 33 * MAX ( DISTINCT + + 85 ) * 14 + CASE - 86 WHEN - 39 THEN + - 92 WHEN - 70 THEN NULL END + - - 61 + + + 1 + + - 58 * - 35 * - ( - CAST ( 32 AS INTEGER ) ) + - + 89 / - ( - - 43 ) * 20 / - + 67 / + COALESCE ( + 59, + NULLIF ( 79, + CAST ( - 23 AS INTEGER ) ) / COALESCE ( - COUNT ( * ) - 94, 92 ) + 22 ) + ( 70 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT CAST( 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-9507
SELECT CAST ( 90 AS INTEGER )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT - MAX( ALL 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT - MAX ( ALL 63 )
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-9509
SELECT ALL 42 DIV - 6, 13 + + 28 AS col2
----
-7
41

skipif mysql # not compatible
query II rowsort label-9509
SELECT ALL 42 / - 6, 13 + + 28 AS col2
----
-7
41

query I rowsort
SELECT 27 + - - 61
----
88

query I rowsort
SELECT ALL 72 * + - 64 AS col1
----
-4608

query I rowsort
SELECT DISTINCT - COALESCE ( 2, 90 ) AS col0
----
-2

query I rowsort
SELECT ALL 36 * + + 95
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT CASE + ( - 21 ) WHEN 84 THEN COUNT( * ) END * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT CASE + ( - 21 ) WHEN 84 THEN COUNT ( * ) END * - 31
----
NULL

query I rowsort
SELECT 96 + + 50 AS col0
----
146

query I rowsort
SELECT DISTINCT 71 * + 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT ( + 15 ) * 0 * 59 + + 5 + + CAST( 37 AS SIGNED ) + 98 + COUNT( * ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-9517
SELECT ( + 15 ) * 0 * 59 + + 5 + + CAST ( 37 AS INTEGER ) + 98 + COUNT ( * ) AS col2
----
141

query I rowsort
SELECT + 50 * - - 83 * + + 72 * 68 + - 53 col1
----
20318347

query II rowsort
SELECT 59, 74 AS col0
----
59
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9520
SELECT ( + + 86 ) * + - 22 * - 5 + 85, 46 * + ( - 11 ) * - CAST( NULL AS SIGNED ) AS col2
----
9545
NULL

skipif mysql # not compatible
query II rowsort label-9520
SELECT ( + + 86 ) * + - 22 * - 5 + 85, 46 * + ( - 11 ) * - CAST ( NULL AS INTEGER ) AS col2
----
9545
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL ( + 35 ) + 76 + + + COUNT( * ) * - 30 * + COUNT( * ) * - 27
----
921

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL ( + 35 ) + 76 + + + COUNT ( * ) * - 30 * + COUNT ( * ) * - 27
----
921

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL MIN( DISTINCT - + 96 ) + 81
----
-15

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL MIN ( DISTINCT - + 96 ) + 81
----
-15

query I rowsort
SELECT ALL 29 + COALESCE ( - 55, + 62 * - - 82 ) * - - 58
----
-3161

query I rowsort
SELECT DISTINCT 93 * - 18
----
-1674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), 91 ) + 97 AS col1
----
188

skipif mysql # not compatible
query I rowsort label-9525
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), 91 ) + 97 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT SUM( - 42 ) + 1
----
-41

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT SUM ( - 42 ) + 1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9527
SELECT ALL 22 DIV - MIN( - CAST( - - 31 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 22 / - MIN ( - CAST ( - - 31 AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT DISTINCT - CAST( + 90 AS SIGNED ) * + 15 AS col2
----
-1350

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT - CAST ( + 90 AS INTEGER ) * + 15 AS col2
----
-1350

query I rowsort
SELECT ALL 83 * 11 - - + 80 AS col0
----
993

query I rowsort
SELECT 55 * + + ( + 95 ) AS col0
----
5225

query I rowsort
SELECT 14 * + 72
----
1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9532
SELECT DISTINCT 2 + + 31 + - - SUM( 95 ) DIV + 40 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT 2 + + 31 + - - SUM ( 95 ) / + 40 AS col2
----
35

query I rowsort
SELECT - 71 - - 3 AS col2
----
-68

query I rowsort
SELECT - - 93 AS col0
----
93

query I rowsort
SELECT + 7 * - + 62
----
-434

query I rowsort
SELECT 62 * + 94
----
5828

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT ALL + 24 * 44 DIV - - 68 + 6 * + 22 + + + 37
----
184

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + 24 * 44 / - - 68 + 6 * + 22 + + + 37
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT 93 DIV - + 91 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9538
SELECT 93 / - + 91 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT + + COUNT( + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-9539
SELECT + + COUNT ( + 80 )
----
1

query I rowsort
SELECT ALL - 76 * + 87 - ( ( - + 45 ) )
----
-6567

query I rowsort
SELECT ALL - 58 * 75 AS col1
----
-4350

query I rowsort
SELECT DISTINCT - - 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT + COUNT( + + 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9543
SELECT + COUNT ( + + 93 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 65 * + ( NULLIF ( - + 84, + + 95 ) )
----
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9545
SELECT DISTINCT + ( 55 ) AS col1, 64 / - 64 * + 3 * + CAST( NULL AS SIGNED ) / - + 9 * - COUNT( * ) + + - 78 AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-9545
SELECT DISTINCT + ( 55 ) AS col1, 64 / - 64 * + 3 * + CAST ( NULL AS INTEGER ) / - + 9 * - COUNT ( * ) + + - 78 AS col0
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT - 31 * - COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9546
SELECT - 31 * - COUNT ( * ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL 28 * - NULLIF ( - 47, - 77 * 11 * - NULLIF ( 62, - - AVG ( CAST( 60 AS SIGNED ) ) * + - 28 ) ) + ( COUNT( * ) ) * + 3 * - - 93
----
1595

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL 28 * - NULLIF ( - 47, - 77 * 11 * - NULLIF ( 62, - - AVG ( CAST ( 60 AS INTEGER ) ) * + - 28 ) ) + ( COUNT ( * ) ) * + 3 * - - 93
----
1595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9548
SELECT CAST( + 96 AS SIGNED ) * 56 + + COUNT( * ) AS col2
----
5377

skipif mysql # not compatible
query I rowsort label-9548
SELECT CAST ( + 96 AS INTEGER ) * 56 + + COUNT ( * ) AS col2
----
5377

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT MAX( - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9549
SELECT MAX ( - 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT + MAX( DISTINCT - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9550
SELECT + MAX ( DISTINCT - 6 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT ALL + CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9552
SELECT ALL + ( + 70 ) * 10 + + COUNT( * ) + + 5 * 87 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL + ( + 70 ) * 10 + + COUNT ( * ) + + 5 * 87 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT SUM( + - 87 ) + 66
----
-21

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT SUM ( + - 87 ) + 66
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT - COUNT( * ) + 22 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT - COUNT ( * ) + 22 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9555
SELECT ALL CAST( - - 83 AS SIGNED ) * - 64 + - 53 DIV - 71 - + - 7 - + 2 AS col2
----
-5307

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL CAST ( - - 83 AS INTEGER ) * - 64 + - 53 / - 71 - + - 7 - + 2 AS col2
----
-5307

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL COUNT( * ) + + 12 * ( 89 )
----
1069

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL COUNT ( * ) + + 12 * ( 89 )
----
1069

query I rowsort
SELECT 21 * + ( + 20 ) + - 64
----
356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9558
SELECT DISTINCT - COALESCE ( - 32, + ( - 29 ) ) * 74 DIV COUNT( * ) + - - ( - + 74 ) + + - 22 AS col0
----
2272

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - COALESCE ( - 32, + ( - 29 ) ) * 74 / COUNT ( * ) + - - ( - + 74 ) + + - 22 AS col0
----
2272

query I rowsort
SELECT - 5 * - - 62 AS col1
----
-310

query I rowsort
SELECT - 81 + 48
----
-33

query II rowsort
SELECT 76 AS col1, 84
----
76
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT + CAST( 65 AS SIGNED ) + - 12 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9562
SELECT + CAST ( 65 AS INTEGER ) + - 12 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL COUNT( * ) * + 84
----
84

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL COUNT ( * ) * + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT DISTINCT + NULLIF ( COUNT( * ), ( 58 ) + ( - + 50 ) + - COALESCE ( - MAX( + - 4 ), + 89 ) * + 20 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + NULLIF ( COUNT ( * ), ( 58 ) + ( - + 50 ) + - COALESCE ( - MAX ( + - 4 ), + 89 ) * + 20 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT + COUNT( * ) + 34
----
35

skipif mysql # not compatible
query I rowsort label-9565
SELECT + COUNT ( * ) + 34
----
35

query I rowsort
SELECT DISTINCT - 86 * + 56 AS col1
----
-4816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT + SUM( 71 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT + SUM ( 71 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9568
SELECT + 28 * + + COUNT( * ) col0, MIN( ALL CAST( NULL AS SIGNED ) )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-9568
SELECT + 28 * + + COUNT ( * ) col0, MIN ( ALL CAST ( NULL AS INTEGER ) )
----
28
NULL

query I rowsort
SELECT + + 48 + - 4 * 45 AS col2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + - CASE + + 15 WHEN + + COUNT( * ) THEN + - ( + - 56 ) WHEN - 99 THEN NULL END + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT + - CASE + + 15 WHEN + + COUNT ( * ) THEN + - ( + - 56 ) WHEN - 99 THEN NULL END + 50 AS col0
----
NULL

query I rowsort
SELECT + + 98 + + - 53
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9572
SELECT ALL + CAST( - ( - CASE 68 WHEN 96 THEN + COUNT( * ) WHEN - - 29 THEN NULL END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL + CAST ( - ( - CASE 68 WHEN 96 THEN + COUNT ( * ) WHEN - - 29 THEN NULL END ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - 23 * + 20 * 94 col0
----
-43240

query I rowsort
SELECT ALL + - 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9575
SELECT + 91 DIV + + ( + COUNT( * ) ) + + 86 + + + 19 * + COUNT( * )
----
196

skipif mysql # not compatible
query I rowsort label-9575
SELECT + 91 / + + ( + COUNT ( * ) ) + + 86 + + + 19 * + COUNT ( * )
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9576
SELECT ALL - 2 / + 33 + 99 * - 73 + MAX( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL - 2 / + 33 + 99 * - 73 + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT + 1 * - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9577
SELECT + 1 * - ( - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT + ( + 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT ( + - 64 ) AS col1, + COUNT( * )
----
-64
1

skipif mysql # not compatible
query II rowsort label-9579
SELECT ( + - 64 ) AS col1, + COUNT ( * )
----
-64
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT - 42 DIV NULLIF ( 33, - 8 + + 47 ) + - 2 - 67 - + + 75 * + + 16 * + + 92 AS col2
----
-110470

skipif mysql # not compatible
query I rowsort label-9580
SELECT - 42 / NULLIF ( 33, - 8 + + 47 ) + - 2 - 67 - + + 75 * + + 16 * + + 92 AS col2
----
-110470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT ALL CAST( - + CASE 3 WHEN - - 36 + + - ( 46 ) THEN - 53 - + AVG ( ALL - 54 ) + 38 WHEN + 38 THEN NULL ELSE NULL END AS SIGNED ) * + + CAST( - ( + COUNT( - 63 ) ) AS SIGNED ) + + - 52 + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL CAST ( - + CASE 3 WHEN - - 36 + + - ( 46 ) THEN - 53 - + AVG ( ALL - 54 ) + 38 WHEN + 38 THEN NULL ELSE NULL END AS INTEGER ) * + + CAST ( - ( + COUNT ( - 63 ) ) AS INTEGER ) + + - 52 + 76
----
NULL

query I rowsort
SELECT - 80 * - 16 + 86 AS col1
----
1366

query I rowsort
SELECT - 77 + + + 91 * - - 8
----
651

query I rowsort
SELECT ( - 52 ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9585
SELECT DISTINCT 94 / + CAST( NULL AS DECIMAL ) AS col2, 53 / + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9585
SELECT DISTINCT 94 / + CAST ( NULL AS REAL ) AS col2, 53 / + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ( + - 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL - 9 * ( + + COUNT( * ) ) + - 14 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL - 9 * ( + + COUNT ( * ) ) + - 14 AS col2
----
-23

query I rowsort
SELECT ALL - 16 * ( 47 ) AS col2
----
-752

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9589
SELECT - 17 + - 95 + COUNT( * ) + COUNT( * ) DIV + - 54 AS col0, + 19
----
-111
19

skipif mysql # not compatible
query II rowsort label-9589
SELECT - 17 + - 95 + COUNT ( * ) + COUNT ( * ) / + - 54 AS col0, + 19
----
-111
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT COALESCE ( + COUNT( * ), 85, - 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9590
SELECT COALESCE ( + COUNT ( * ), 85, - 10 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + ( - 89 ) AS col2
----
-89

query I rowsort
SELECT - 11 * - 51 AS col0
----
561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9593
SELECT - 81 * + CAST( COUNT( + CAST( NULL AS SIGNED ) ) AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9593
SELECT - 81 * + CAST ( COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col0
----
0

query I rowsort
SELECT + NULLIF ( + - ( - + 73 ), - + 99 * + - 20 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT 81 * 90 + - COUNT( * )
----
7289

skipif mysql # not compatible
query I rowsort label-9595
SELECT 81 * 90 + - COUNT ( * )
----
7289

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + COUNT( DISTINCT + - 0 ) + + 63 * 47 + + 9
----
2971

skipif mysql # not compatible
query I rowsort label-9596
SELECT + COUNT ( DISTINCT + - 0 ) + + 63 * 47 + + 9
----
2971

query II rowsort
SELECT - ( - - 26 ) * 68, - 53 * - 56 + 18 AS col2
----
-1768
2986

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT ALL + - 23 DIV 82 * 83 DIV + 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + - 23 / 82 * 83 / + 50 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT - 62 * + 3 * + + COUNT( * ) + - + 82
----
-268

skipif mysql # not compatible
query I rowsort label-9599
SELECT - 62 * + 3 * + + COUNT ( * ) + - + 82
----
-268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT DISTINCT + 69 * + 57 * 46 - + CAST( 37 AS SIGNED ) + - 44 AS col2
----
180837

skipif mysql # not compatible
query I rowsort label-9600
SELECT DISTINCT + 69 * + 57 * 46 - + CAST ( 37 AS INTEGER ) + - 44 AS col2
----
180837

query I rowsort
SELECT - - 37 + - 8
----
29

query I rowsort
SELECT DISTINCT - 26 - ( + + 98 ) AS col0
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT - + 68 * + 83, + 84 - + ( COUNT( * ) ) AS col2
----
-5644
83

skipif mysql # not compatible
query II rowsort label-9603
SELECT - + 68 * + 83, + 84 - + ( COUNT ( * ) ) AS col2
----
-5644
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9604
SELECT ALL - + COUNT( * ) * - 10 - + CAST( NULL AS DECIMAL ) + + - 78 / - + 75 * - ( + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - + COUNT ( * ) * - 10 - + CAST ( NULL AS REAL ) + + - 78 / - + 75 * - ( + 80 )
----
NULL

query I rowsort
SELECT - + 18 - + 48 + + 57 * 58 AS col1
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT + + 13 * + CASE 56 WHEN - 46 - - 66 / - CAST( - 25 AS SIGNED ) * - 81 - 49 * - + 42 + - 45 - 10 * + 1 - - 96 + 48 * + SUM( DISTINCT - - 90 ) * - + 21 * - 50 + - COUNT( * ) * 42 / + 4 THEN NULL ELSE 91 * - 87 END col2
----
-102921

skipif mysql # not compatible
query I rowsort label-9606
SELECT + + 13 * + CASE 56 WHEN - 46 - - 66 / - CAST ( - 25 AS INTEGER ) * - 81 - 49 * - + 42 + - 45 - 10 * + 1 - - 96 + 48 * + SUM ( DISTINCT - - 90 ) * - + 21 * - 50 + - COUNT ( * ) * 42 / + 4 THEN NULL ELSE 91 * - 87 END col2
----
-102921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT + CAST( NULL AS SIGNED ) + AVG ( DISTINCT 84 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT 84 ) col0
----
NULL

query I rowsort
SELECT ALL + 22 + - 5 AS col1
----
17

query I rowsort
SELECT DISTINCT ( - - 40 ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT - 92 / + CAST( NULL AS SIGNED ) * + ( 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 92 / + CAST ( NULL AS INTEGER ) * + ( 24 )
----
NULL

query I rowsort
SELECT ALL 31 + + - 68 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT + 1 * - MAX( ALL + 87 ) + - - 7 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9612
SELECT + 1 * - MAX ( ALL + 87 ) + - - 7 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT DISTINCT NULLIF ( + 64, 34 ) + - 46 * + + NULLIF ( CAST( - 44 AS SIGNED ), - + CAST( + 45 AS SIGNED ) ) - + - 41 - 26
----
2103

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT NULLIF ( + 64, 34 ) + - 46 * + + NULLIF ( CAST ( - 44 AS INTEGER ), - + CAST ( + 45 AS INTEGER ) ) - + - 41 - 26
----
2103

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT + 28 DIV + 52 + 87
----
87

skipif mysql # not compatible
query I rowsort label-9614
SELECT + 28 / + 52 + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL 13 + MIN( 62 ) - - 94
----
169

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL 13 + MIN ( 62 ) - - 94
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9616
SELECT + 15 AS col2, 79 + + CAST( + 14 AS SIGNED ) - + - 74 * + + 59 - - 50 + + COALESCE ( + + 69, + 10 ) * - + MAX( - 17 ) - - ( - 60 ) AS col0
----
15
5622

skipif mysql # not compatible
query II rowsort label-9616
SELECT + 15 AS col2, 79 + + CAST ( + 14 AS INTEGER ) - + - 74 * + + 59 - - 50 + + COALESCE ( + + 69, + 10 ) * - + MAX ( - 17 ) - - ( - 60 ) AS col0
----
15
5622

query I rowsort
SELECT DISTINCT 7 * + 41
----
287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9618
SELECT CASE + 59 WHEN - - 79 THEN + MAX( + 17 ) DIV - AVG ( + 18 ) + - COUNT( DISTINCT - ( ( + 26 ) ) ) * 99 WHEN - + 91 THEN NULL ELSE + 64 END DIV + 29 col0
----
2

skipif mysql # not compatible
query I rowsort label-9618
SELECT CASE + 59 WHEN - - 79 THEN + MAX ( + 17 ) / - AVG ( + 18 ) + - COUNT ( DISTINCT - ( ( + 26 ) ) ) * 99 WHEN - + 91 THEN NULL ELSE + 64 END / + 29 col0
----
2

query II rowsort
SELECT 75, 59 * - 33 - + ( + 37 ) AS col2
----
75
-1984

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9620
SELECT DISTINCT 12 + + CASE - + 79 WHEN 28 * + 56 THEN 19 ELSE NULL END, - COUNT( * ) DIV 91 * 72 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9620
SELECT DISTINCT 12 + + CASE - + 79 WHEN 28 * + 56 THEN 19 ELSE NULL END, - COUNT ( * ) / 91 * 72 AS col1
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9621
SELECT DISTINCT - 72 AS col1, + CAST( COUNT( * ) AS SIGNED ) * + 36 AS col1
----
-72
36

skipif mysql # not compatible
query II rowsort label-9621
SELECT DISTINCT - 72 AS col1, + CAST ( COUNT ( * ) AS INTEGER ) * + 36 AS col1
----
-72
36

query II rowsort
SELECT 89 AS col0, - 7 + - - 92 AS col1
----
89
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT ALL - 46, COUNT( - 7 ) AS col1
----
-46
1

skipif mysql # not compatible
query II rowsort label-9623
SELECT ALL - 46, COUNT ( - 7 ) AS col1
----
-46
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT COUNT( * ) * CAST( - COUNT( DISTINCT + 11 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9624
SELECT COUNT ( * ) * CAST ( - COUNT ( DISTINCT + 11 ) AS INTEGER )
----
-1

query II rowsort
SELECT 5 AS col2, ( - 14 )
----
5
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9626
SELECT ALL ( - COUNT( * ) ) - - COUNT( * ), + 26 * - 54 + - NULLIF ( + COUNT( * ), - - 97 ) AS col0
----
0
-1405

skipif mysql # not compatible
query II rowsort label-9626
SELECT ALL ( - COUNT ( * ) ) - - COUNT ( * ), + 26 * - 54 + - NULLIF ( + COUNT ( * ), - - 97 ) AS col0
----
0
-1405

query I rowsort
SELECT ( 84 ) + - ( - + 85 ) AS col2
----
169

query I rowsort
SELECT 58 * - 28 + 67 AS col0
----
-1557

query I rowsort
SELECT 46 * - ( 51 )
----
-2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT ALL - CAST( - COUNT( ALL - + 1 ) AS SIGNED ) * - 44 * 21 * - + COUNT( * ) AS col0
----
924

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - CAST ( - COUNT ( ALL - + 1 ) AS INTEGER ) * - 44 * 21 * - + COUNT ( * ) AS col0
----
924

query II rowsort
SELECT + 50, + 38 col2
----
50
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9632
SELECT NULLIF ( - 72, - 87 - - + CASE + 7 WHEN + ( + + 58 ) THEN 40 + + - COALESCE ( + 73, - CAST( NULL AS SIGNED ), + 54, - + SUM( 3 ) ) + 73 - 2 + - 99 WHEN COUNT( DISTINCT - + 88 ) * + 69 * - + 12 THEN NULL WHEN - 82 THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) + 75 - - 7 col2
----
10

skipif mysql # not compatible
query I rowsort label-9632
SELECT NULLIF ( - 72, - 87 - - + CASE + 7 WHEN + ( + + 58 ) THEN 40 + + - COALESCE ( + 73, - CAST ( NULL AS INTEGER ), + 54, - + SUM ( 3 ) ) + 73 - 2 + - 99 WHEN COUNT ( DISTINCT - + 88 ) * + 69 * - + 12 THEN NULL WHEN - 82 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) + 75 - - 7 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL COUNT( * ) * - 41
----
-41

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL COUNT ( * ) * - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT MIN( ALL - 69 ) * 7 * 3
----
-1449

skipif mysql # not compatible
query I rowsort label-9634
SELECT MIN ( ALL - 69 ) * 7 * 3
----
-1449

query I rowsort
SELECT ALL - - 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9636
SELECT - 60 + 72 - COUNT( + 47 ) col2, CASE + + COUNT( * ) WHEN + 48 THEN + 24 ELSE NULL END col1
----
11
NULL

skipif mysql # not compatible
query II rowsort label-9636
SELECT - 60 + 72 - COUNT ( + 47 ) col2, CASE + + COUNT ( * ) WHEN + 48 THEN + 24 ELSE NULL END col1
----
11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT + - 46 * + 87 * - + COUNT( * ) col2
----
4002

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT + - 46 * + 87 * - + COUNT ( * ) col2
----
4002

query I rowsort
SELECT + + 29 * + - 4 + - ( 42 ) + + 30 AS col2
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT 78 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9639
SELECT 78 / 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL + MIN( - 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + MIN ( - 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT + 40 + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9641
SELECT + 40 + + COUNT ( * )
----
41

query I rowsort
SELECT - 49 * + 48
----
-2352

onlyif mysql # aggregate syntax: 
query II rowsort label-9643
SELECT - COUNT( * ) - - 89 + - + COUNT( * ), + 90 + + 93 AS col1
----
87
183

skipif mysql # not compatible
query II rowsort label-9643
SELECT - COUNT ( * ) - - 89 + - + COUNT ( * ), + 90 + + 93 AS col1
----
87
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9644
SELECT COUNT ( * ) * + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9645
SELECT ALL - 45 + + MAX( ALL 21 ) AS col1, CAST( NULL AS DECIMAL )
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-9645
SELECT ALL - 45 + + MAX ( ALL 21 ) AS col1, CAST ( NULL AS REAL )
----
-24
NULL

query I rowsort
SELECT - 41 col1
----
-41

query I rowsort
SELECT ALL + + 20 + - 75 + 4 + + 48
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + 85 - CASE + COUNT( * ) WHEN - - 41 + - 63 * 24 THEN 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT + 85 - CASE + COUNT ( * ) WHEN - - 41 + - 63 * 24 THEN 66 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9649
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) * - 75 THEN + + 46 + - 76 - - 80 + - COUNT( * ) WHEN + - 3 + AVG ( - 80 ) + - - 98 + - 84 * + 99 + - 24 * CASE 55 WHEN - 32 - - - 91 * 78 THEN - 57 END THEN 5 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) * - 75 THEN + + 46 + - 76 - - 80 + - COUNT ( * ) WHEN + - 3 + AVG ( - 80 ) + - - 98 + - 84 * + 99 + - 24 * CASE 55 WHEN - 32 - - - 91 * 78 THEN - 57 END THEN 5 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9650
SELECT DISTINCT + ( + + 38 ) + 93 + + 51 * - - SUM( DISTINCT - 80 ) * COALESCE ( + + 33, 95 ) + 97 + + - COUNT( ALL - 45 ) * + 87 AS col0, 90 AS col1
----
-134499
90

skipif mysql # not compatible
query II rowsort label-9650
SELECT DISTINCT + ( + + 38 ) + 93 + + 51 * - - SUM ( DISTINCT - 80 ) * COALESCE ( + + 33, 95 ) + 97 + + - COUNT ( ALL - 45 ) * + 87 AS col0, 90 AS col1
----
-134499
90

query I rowsort
SELECT 86 + + 45
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - CASE + 78 WHEN - 5 / + COUNT( * ) THEN + 62 / 64 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT - CASE + 78 WHEN - 5 / + COUNT ( * ) THEN + 62 / 64 END AS col0
----
NULL

query II rowsort
SELECT ALL - + 28 + + ( 19 ) * 37 AS col2, 89
----
675
89

query I rowsort
SELECT - 52 + + COALESCE ( + 25, + ( + + 87 ), + 91 ) - - 25 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT 76 + + + 97 / + + 63 / 54 * + 62 + 68 * - 89 / + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT 76 + + + 97 / + + 63 / 54 * + 62 + 68 * - 89 / + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9656
SELECT COUNT( * ) - + 53 + - + CAST( 61 AS SIGNED )
----
-113

skipif mysql # not compatible
query I rowsort label-9656
SELECT COUNT ( * ) - + 53 + - + CAST ( 61 AS INTEGER )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT MIN( 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT MIN ( 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9658
SELECT COUNT( * ) + - - 90 * - - 47 + 1 AS col2, + 63 * - - 61 + - 11 AS col0
----
4232
3832

skipif mysql # not compatible
query II rowsort label-9658
SELECT COUNT ( * ) + - - 90 * - - 47 + 1 AS col2, + 63 * - - 61 + - 11 AS col0
----
4232
3832

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT DISTINCT MAX( ALL 90 )
----
90

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT MAX ( ALL 90 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT ALL - CAST( - 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL - CAST ( - 61 AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9661
SELECT DISTINCT - SUM( - 15 ) AS col1, 1 - - 41
----
15
42

skipif mysql # not compatible
query II rowsort label-9661
SELECT DISTINCT - SUM ( - 15 ) AS col1, 1 - - 41
----
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT COUNT( - 96 ) * - - 96 + - - 2 - - 10 + - + COUNT( * ) * 1 col2
----
107

skipif mysql # not compatible
query I rowsort label-9662
SELECT COUNT ( - 96 ) * - - 96 + - - 2 - - 10 + - + COUNT ( * ) * 1 col2
----
107

query I rowsort
SELECT DISTINCT ( + 81 ) * + 86
----
6966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9664
SELECT - ( + 40 ) DIV - ( - 63 ) * + - MIN( 1 ) + - - COUNT( * ) - + 14 * - COUNT( * ) * + - 90 * COALESCE ( - COUNT( * ), 86 ) + + 80 * + 76 AS col1
----
7341

skipif mysql # not compatible
query I rowsort label-9664
SELECT - ( + 40 ) / - ( - 63 ) * + - MIN ( 1 ) + - - COUNT ( * ) - + 14 * - COUNT ( * ) * + - 90 * COALESCE ( - COUNT ( * ), 86 ) + + 80 * + 76 AS col1
----
7341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9665
SELECT COUNT( + 79 ), - COUNT( * ) + + CAST( 71 AS SIGNED ) AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-9665
SELECT COUNT ( + 79 ), - COUNT ( * ) + + CAST ( 71 AS INTEGER ) AS col1
----
1
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9666
SELECT ALL CAST( - 75 AS SIGNED ) * - 63
----
4725

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL CAST ( - 75 AS INTEGER ) * - 63
----
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT ALL COUNT( - 58 ) * - - MIN( DISTINCT - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL COUNT ( - 58 ) * - - MIN ( DISTINCT - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT MIN( 18 )
----
18

skipif mysql # not compatible
query I rowsort label-9668
SELECT MIN ( 18 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9669
SELECT MIN( + 12 ) col2, COUNT( * ) * - - 58 col2
----
12
58

skipif mysql # not compatible
query II rowsort label-9669
SELECT MIN ( + 12 ) col2, COUNT ( * ) * - - 58 col2
----
12
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT + MIN( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9670
SELECT + MIN ( + 40 )
----
40

query I rowsort
SELECT - COALESCE ( + 30, + 90 ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9672
SELECT COALESCE ( - 39, + 84 * CAST( + 19 AS SIGNED ) DIV - CAST( - 34 AS SIGNED ) * - + COUNT( * ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9672
SELECT COALESCE ( - 39, + 84 * CAST ( + 19 AS INTEGER ) / - CAST ( - 34 AS INTEGER ) * - + COUNT ( * ) ) AS col2
----
-39

query I rowsort
SELECT ALL - - 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + SUM( + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-9674
SELECT + SUM ( + 76 )
----
76

query I rowsort
SELECT 85 * 7 * 18
----
10710

query I rowsort
SELECT + ( + + 17 )
----
17

query I rowsort
SELECT DISTINCT + - ( - 4 ) + - - 2 AS col0
----
6

query I rowsort
SELECT ALL - - 6 + 66
----
72

query I rowsort
SELECT ALL + 41 + + 72 col0
----
113

query I rowsort
SELECT + 10 * + 85 - + - 92 AS col2
----
942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT DISTINCT CAST( - 34 AS SIGNED ) + - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT CAST ( - 34 AS INTEGER ) + - COUNT ( * ) AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT + 49 DIV + SUM( ALL - 5 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9682
SELECT + 49 / + SUM ( ALL - 5 ) AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT - - 53 + - + 80 DIV - 42
----
54

skipif mysql # not compatible
query I rowsort label-9683
SELECT - - 53 + - + 80 / - 42
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT + CASE 8 WHEN + - NULLIF ( - - SUM( + 12 ), - - 62 ) THEN NULL WHEN + 63 / - + CAST( - 74 AS SIGNED ) THEN 39 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT + CASE 8 WHEN + - NULLIF ( - - SUM ( + 12 ), - - 62 ) THEN NULL WHEN + 63 / - + CAST ( - 74 AS INTEGER ) THEN 39 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT - 78 + + MIN( ALL - ( + + 15 ) ) - - 35 + 11 * - 58 col1
----
-696

skipif mysql # not compatible
query I rowsort label-9685
SELECT - 78 + + MIN ( ALL - ( + + 15 ) ) - - 35 + 11 * - 58 col1
----
-696

query I rowsort
SELECT ALL 37 + - 28 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT DISTINCT MIN( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT MIN ( ALL - 6 )
----
-6

query I rowsort
SELECT ALL - 57 - + 98 AS col1
----
-155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9689
SELECT - 6 - 33 + + ( 55 ) DIV - 87 * + MAX( ALL - 75 )
----
-39

skipif mysql # not compatible
query I rowsort label-9689
SELECT - 6 - 33 + + ( 55 ) / - 87 * + MAX ( ALL - 75 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT - COUNT( * ) * - MIN( DISTINCT ( - 87 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-9690
SELECT - COUNT ( * ) * - MIN ( DISTINCT ( - 87 ) )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ( + - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9691
SELECT ( + - COUNT ( * ) ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT ALL + CAST( + 72 AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + CAST ( + 72 AS INTEGER ) AS col2
----
72

query I rowsort
SELECT ( - 94 ) col1
----
-94

query I rowsort
SELECT - 76 * - 29 col2
----
2204

query II rowsort
SELECT ALL + 1, 49 AS col0
----
1
49

query I rowsort
SELECT ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL + MIN( - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + MIN ( - 67 )
----
-67

query I rowsort
SELECT 95 * 36 - + 22 + + 94 * 94
----
12234

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT ALL 40 * 15 * + COUNT( * ) AS col1, + 29 AS col1
----
600
29

skipif mysql # not compatible
query II rowsort label-9699
SELECT ALL 40 * 15 * + COUNT ( * ) AS col1, + 29 AS col1
----
600
29

query II rowsort
SELECT ALL + 20 col2, - 70 AS col1
----
20
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT + MIN( + + 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9701
SELECT + MIN ( + + 99 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9702
SELECT ALL + CASE - COALESCE ( - CAST( NULL AS SIGNED ), ( - 58 ), - 91 + + 78 * + ( 14 ) ) WHEN - 88 * ( + + 49 ) * 37 + - + 92 + + + 91 THEN + + 90 + + COUNT( * ) WHEN - - 99 * - 14 + + 56 THEN CASE 10 WHEN 46 - + + MIN( + 71 ) + + - 90 + + - COALESCE ( 74, - 27 / 49 + - 16, + ( + 31 ) + + AVG ( DISTINCT 89 ) ) + COALESCE ( + 82, 57 / + 74, + COUNT( * ) * - MAX( ALL 63 ) ) * COUNT( * ) THEN NULLIF ( + 83, 25 ) ELSE 45 END + - 2 ELSE COUNT( * ) + 94 END AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL + CASE - COALESCE ( - CAST ( NULL AS INTEGER ), ( - 58 ), - 91 + + 78 * + ( 14 ) ) WHEN - 88 * ( + + 49 ) * 37 + - + 92 + + + 91 THEN + + 90 + + COUNT ( * ) WHEN - - 99 * - 14 + + 56 THEN CASE 10 WHEN 46 - + + MIN ( + 71 ) + + - 90 + + - COALESCE ( 74, - 27 / 49 + - 16, + ( + 31 ) + + AVG ( DISTINCT 89 ) ) + COALESCE ( + 82, 57 / + 74, + COUNT ( * ) * - MAX ( ALL 63 ) ) * COUNT ( * ) THEN NULLIF ( + 83, 25 ) ELSE 45 END + - 2 ELSE COUNT ( * ) + 94 END AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9703
SELECT 97 * + 50 + + 79 + + 15 DIV 10 * 91 + + COUNT( * ) + - - 16 * - 68
----
3933

skipif mysql # not compatible
query I rowsort label-9703
SELECT 97 * + 50 + + 79 + + 15 / 10 * 91 + + COUNT ( * ) + - - 16 * - 68
----
3933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9704
SELECT + COUNT( ALL CAST( - 32 AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) + + 48, - 54 * - - 5 * + 59 * + 96 col0
----
NULL
-1529280

skipif mysql # not compatible
query II rowsort label-9704
SELECT + COUNT ( ALL CAST ( - 32 AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) + + 48, - 54 * - - 5 * + 59 * + 96 col0
----
NULL
-1529280

query II rowsort
SELECT ALL + 70 * 4 - - 23 * + 75 + - - 87 AS col1, ( + - 4 )
----
2092
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT - 58 * - 47 + - 80 + - + ( + 30 ) + ( - + 8 ) + 77 + - 5 - 66 + + ( + 15 ) * + COALESCE ( - + 71, + COALESCE ( - 86, - COUNT( * ) + - 14 * + + 5 ) * - 10 + + + CAST( + 74 AS SIGNED ) + + 4 * - 89 - + ( 15 ) + - 2 ) * + - SUM( ALL - - 1 ) - + SUM( ALL 54 ) + 37 * 36 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT - 58 * - 47 + - 80 + - + ( + 30 ) + ( - + 8 ) + 77 + - 5 - 66 + + ( + 15 ) * + COALESCE ( - + 71, + COALESCE ( - 86, - COUNT ( * ) + - 14 * + + 5 ) * - 10 + + + CAST ( + 74 AS INTEGER ) + + 4 * - 89 - + ( 15 ) + - 2 ) * + - SUM ( ALL - - 1 ) - + SUM ( ALL 54 ) + 37 * 36 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT + - COUNT( * ) - + - 55
----
54

skipif mysql # not compatible
query I rowsort label-9707
SELECT + - COUNT ( * ) - + - 55
----
54

query I rowsort
SELECT + + 89 * - 45 * - + 38
----
152190

query I rowsort
SELECT + + 31 + - + 27 * + 49 AS col1
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL + - 0 * + COUNT( * ) + + + 69 * + 18 * - COUNT( * )
----
-1242

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + - 0 * + COUNT ( * ) + + + 69 * + 18 * - COUNT ( * )
----
-1242

query I rowsort
SELECT DISTINCT + - 96 col1
----
-96

query I rowsort
SELECT + - 56 + + 63 * + 23 * - 54 * 5
----
-391286

query I rowsort
SELECT DISTINCT + + 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL - ( - 32 ) * + - 10 + - COUNT( * )
----
-321

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - ( - 32 ) * + - 10 + - COUNT ( * )
----
-321

query I rowsort
SELECT + 58 + - 32 * COALESCE ( + - ( - 15 ), - - 41 * - 86 + - ( - 18 ) ) - + - 46 * - 59 AS col0
----
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT + ( - - 75 ) * - COUNT( * ) + - 0
----
-75

skipif mysql # not compatible
query I rowsort label-9716
SELECT + ( - - 75 ) * - COUNT ( * ) + - 0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL - ( 47 ) * + + COUNT( * ) - - ( - 50 ) + + SUM( ALL 86 ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL - ( 47 ) * + + COUNT ( * ) - - ( - 50 ) + + SUM ( ALL 86 ) col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9718
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT + + MIN( ALL + 57 ) + - 29, COUNT( * ) AS col2
----
28
1

skipif mysql # not compatible
query II rowsort label-9719
SELECT + + MIN ( ALL + 57 ) + - 29, COUNT ( * ) AS col2
----
28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT + 38 * COUNT( * ) + + 4 * 47 AS col2
----
226

skipif mysql # not compatible
query I rowsort label-9720
SELECT + 38 * COUNT ( * ) + + 4 * 47 AS col2
----
226

query I rowsort
SELECT - + 24 * - + 18 * + - 7 AS col1
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT DISTINCT 87 - - + COUNT( * ) - 30
----
58

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT 87 - - + COUNT ( * ) - 30
----
58

query II rowsort
SELECT + 25 * + 52 AS col2, 1 AS col1
----
1300
1

query I rowsort
SELECT ALL 31 * - - 24 AS col2
----
744

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT DISTINCT 62, 7 * - MAX( + 23 ) * 33 + - + 12 AS col2
----
62
-5325

skipif mysql # not compatible
query II rowsort label-9725
SELECT DISTINCT 62, 7 * - MAX ( + 23 ) * 33 + - + 12 AS col2
----
62
-5325

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT 5 AS col1, ( - 89 ) * + - 82 + + COUNT( * ) + 21 * 45 - COUNT( * )
----
5
8243

skipif mysql # not compatible
query II rowsort label-9726
SELECT 5 AS col1, ( - 89 ) * + - 82 + + COUNT ( * ) + 21 * 45 - COUNT ( * )
----
5
8243

query I rowsort
SELECT ALL 83 * - 27 AS col1
----
-2241

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT + 89 * COALESCE ( - 10, - COUNT( * ) ) AS col2
----
-890

skipif mysql # not compatible
query I rowsort label-9728
SELECT + 89 * COALESCE ( - 10, - COUNT ( * ) ) AS col2
----
-890

query I rowsort
SELECT - 95 * - + 54 col2
----
5130

query II rowsort
SELECT 21 AS col1, - 45 AS col2
----
21
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9731
SELECT + 82 + - + 31 + - 82 * 54 DIV - 59 - 91 - + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9731
SELECT + 82 + - + 31 + - 82 * 54 / - 59 - 91 - + COUNT ( * ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT - MAX( ALL + 42 ) - - - 93 + - CAST( NULL AS SIGNED ) * - - 71 / - 5 * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT - MAX ( ALL + 42 ) - - - 93 + - CAST ( NULL AS INTEGER ) * - - 71 / - 5 * 9
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT - 47 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-9733
SELECT - 47 / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + 59 + - CASE - 35 WHEN - - 43 - - - ( + 0 ) - COALESCE ( - - AVG ( DISTINCT + + ( + 40 ) ), COUNT( * ), + 98 * - 62 - - 10 * - 19 * ( + + 18 ) ) * + 95 * - + 30 THEN + - 28 / - - COUNT( * ) * 15 - - - 34 * + + ( 70 ) END + - - 28 + - + 79 / + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT + 59 + - CASE - 35 WHEN - - 43 - - - ( + 0 ) - COALESCE ( - - AVG ( DISTINCT + + ( + 40 ) ), COUNT ( * ), + 98 * - 62 - - 10 * - 19 * ( + + 18 ) ) * + 95 * - + 30 THEN + - 28 / - - COUNT ( * ) * 15 - - - 34 * + + ( 70 ) END + - - 28 + - + 79 / + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9735
SELECT - 11 DIV + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9735
SELECT - 11 / + COUNT ( * ) AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT ALL - 35 DIV + 56 * + - 11 * + - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL - 35 / + 56 * + - 11 * + - 20 AS col0
----
0

query I rowsort
SELECT - 29 + + 5 AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9738
SELECT ALL COUNT( * ) DIV COUNT( * ) + - 71 * + + 9 + + + 68 AS col1
----
-570

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL COUNT ( * ) / COUNT ( * ) + - 71 * + + 9 + + + 68 AS col1
----
-570

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9739
SELECT + 37 * + - 52 + - + CAST( NULL AS DECIMAL ) - + + 88 * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT + 37 * + - 52 + - + CAST ( NULL AS REAL ) - + + 88 * - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL - 63 * + MIN( + + 12 )
----
-756

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - 63 * + MIN ( + + 12 )
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT + SUM( ALL + 58 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-9741
SELECT + SUM ( ALL + 58 ) col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9742
SELECT - + CAST( NULL AS SIGNED ) * CASE - - 87 WHEN - 58 THEN + 27 + - 0 WHEN COUNT( * ) THEN NULL ELSE NULL END * 41 * - 92 + + 40 + + 4 col2, 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9742
SELECT - + CAST ( NULL AS INTEGER ) * CASE - - 87 WHEN - 58 THEN + 27 + - 0 WHEN COUNT ( * ) THEN NULL ELSE NULL END * 41 * - 92 + + 40 + + 4 col2, 94
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT - COUNT( * ) + + 32 * - 97 * COUNT( * )
----
-3105

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT - COUNT ( * ) + + 32 * - 97 * COUNT ( * )
----
-3105

query I rowsort
SELECT ALL + 49 + - 28 AS col1
----
21

query I rowsort
SELECT ALL - - ( 42 ) AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9746
SELECT ALL 68 DIV - + 15
----
-4

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL 68 / - + 15
----
-4

query I rowsort
SELECT DISTINCT - + 84 + + 5
----
-79

query I rowsort
SELECT + ( + 10 ) AS col0
----
10

query I rowsort
SELECT 92 * - + 71
----
-6532

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9750
SELECT ALL - 14 + - - 54 AS col0, 3 * - + CASE + + 19 WHEN + 77 * + + 85 THEN - 63 * 29 + - MAX( - + 55 ) * + + 66 + - NULLIF ( - 72, + SUM( 47 ) ) + + - 75 WHEN 50 + - 26 THEN + 55 * - - 42 DIV 75 ELSE - + 96 END + + 24 col0
----
40
312

skipif mysql # not compatible
query II rowsort label-9750
SELECT ALL - 14 + - - 54 AS col0, 3 * - + CASE + + 19 WHEN + 77 * + + 85 THEN - 63 * 29 + - MAX ( - + 55 ) * + + 66 + - NULLIF ( - 72, + SUM ( 47 ) ) + + - 75 WHEN 50 + - 26 THEN + 55 * - - 42 / 75 ELSE - + 96 END + + 24 col0
----
40
312

query I rowsort
SELECT + 95 * + 7 AS col1
----
665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT + + CAST( + + NULLIF ( 4, - + 86 ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-9752
SELECT + + CAST ( + + NULLIF ( 4, - + 86 ) AS INTEGER )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT + - 43 * - CAST( NULL AS SIGNED ) * + COUNT( * ) / 84 + AVG ( - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT + - 43 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 84 + AVG ( - 47 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT 71 DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9754
SELECT 71 / 75 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT DISTINCT CAST( + - ( 26 ) AS SIGNED ) - 43
----
-69

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT CAST ( + - ( 26 ) AS INTEGER ) - 43
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT 94 DIV + + 92 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9756
SELECT 94 / + + 92 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + 68 + - COUNT( * ) col1
----
67

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 68 + - COUNT ( * ) col1
----
67

query I rowsort
SELECT 14 - - 69
----
83

query I rowsort
SELECT 30 * + 59 + - - 20 AS col2
----
1790

query I rowsort
SELECT 40 * - + 45
----
-1800

query I rowsort
SELECT ALL 29 * + 20
----
580

query I rowsort
SELECT 30 * + ( + + 22 )
----
660

query II rowsort
SELECT DISTINCT - 22 * - 11 col2, - 92 AS col2
----
242
-92

query I rowsort
SELECT ALL + 67 + - 81 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT 20 * - CASE + 46 WHEN - 81 THEN 78 WHEN + COUNT( * ) + + - NULLIF ( + - 16, + 85 ) - + COUNT( * ) * - 36 * + + 49 * - + 97 + - - COUNT( * ) + - 53 THEN NULL ELSE 93 + + 53 END AS col0
----
-2920

skipif mysql # not compatible
query I rowsort label-9765
SELECT 20 * - CASE + 46 WHEN - 81 THEN 78 WHEN + COUNT ( * ) + + - NULLIF ( + - 16, + 85 ) - + COUNT ( * ) * - 36 * + + 49 * - + 97 + - - COUNT ( * ) + - 53 THEN NULL ELSE 93 + + 53 END AS col0
----
-2920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT AVG ( DISTINCT 81 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT AVG ( DISTINCT 81 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT COUNT( * ) - - + 61
----
62

skipif mysql # not compatible
query I rowsort label-9767
SELECT COUNT ( * ) - - + 61
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT NULLIF ( + CASE 15 WHEN - + 64 THEN + - 13 END, - 5 ) + - MAX( 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT NULLIF ( + CASE 15 WHEN - + 64 THEN + - 13 END, - 5 ) + - MAX ( 74 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9769
SELECT CAST( NULL AS SIGNED ) - 20 + 14 + + COUNT( * ) * - - COUNT( * ) / + + CAST( NULL AS SIGNED ) * + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT CAST ( NULL AS INTEGER ) - 20 + 14 + + COUNT ( * ) * - - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * + 7 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9770
SELECT ALL 63 + COALESCE ( + COUNT( 73 ), COUNT( * ) * - 97 * - CAST( COUNT( * ) AS SIGNED ) * 35 * + - ( 11 ) - - - 87 DIV + - 93 )
----
64

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL 63 + COALESCE ( + COUNT ( 73 ), COUNT ( * ) * - 97 * - CAST ( COUNT ( * ) AS INTEGER ) * 35 * + - ( 11 ) - - - 87 / + - 93 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9771
SELECT - NULLIF ( - 42, - 30 ) DIV - 27 - - - COUNT( * ) * COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9771
SELECT - NULLIF ( - 42, - 30 ) / - 27 - - - COUNT ( * ) * COUNT ( * )
----
-2

query I rowsort
SELECT 81 * - 82 * - - 87 AS col2
----
-577854

query I rowsort
SELECT DISTINCT + 42 + 27 AS col2
----
69

query I rowsort
SELECT ALL - 78 + - 47 + + + 32 * + 90
----
2755

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9775
SELECT DISTINCT + COUNT( * ) DIV 67 DIV + SUM( DISTINCT + 49 ) * + ( COALESCE ( - 11, + + ( + 99 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT + COUNT ( * ) / 67 / + SUM ( DISTINCT + 49 ) * + ( COALESCE ( - 11, + + ( + 99 ) ) ) AS col0
----
0

query I rowsort
SELECT 23 * + + 90 - - - 45
----
2025

onlyif mysql # aggregate syntax: 
query II rowsort label-9777
SELECT + - MIN( + 6 ) AS col0, 67 AS col2
----
-6
67

skipif mysql # not compatible
query II rowsort label-9777
SELECT + - MIN ( + 6 ) AS col0, 67 AS col2
----
-6
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - MIN( ALL + + 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9778
SELECT - MIN ( ALL + + 24 ) AS col1
----
-24

query I rowsort
SELECT ALL - ( + 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9780
SELECT + 11 * - 8 + - 68 + - 65 * CASE + + 84 WHEN + - COUNT( * ) THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN 5 / - COALESCE ( + 3, - 11 ) + + 70 * - + 26 * ( ( 18 ) ) * - - 83 THEN - 6 * + - AVG ( + - 22 ) + + + 18 END AS col0, 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9780
SELECT + 11 * - 8 + - 68 + - 65 * CASE + + 84 WHEN + - COUNT ( * ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 5 / - COALESCE ( + 3, - 11 ) + + 70 * - + 26 * ( ( 18 ) ) * - - 83 THEN - 6 * + - AVG ( + - 22 ) + + + 18 END AS col0, 1 AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT - CAST( + 42 AS SIGNED ) - + 93
----
-135

skipif mysql # not compatible
query I rowsort label-9781
SELECT - CAST ( + 42 AS INTEGER ) - + 93
----
-135

query I rowsort
SELECT DISTINCT - + 85 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL - - CASE + 19 WHEN 4 * - 11 * 18 * 29 THEN NULL WHEN - + ( + 53 ) * 27 THEN SUM( ALL - 93 ) / + + ( 98 ) + 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL - - CASE + 19 WHEN 4 * - 11 * 18 * 29 THEN NULL WHEN - + ( + 53 ) * 27 THEN SUM ( ALL - 93 ) / + + ( 98 ) + 8 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT COUNT( * ) * COALESCE ( COALESCE ( + 8, - 91 ), 66 ) - 14
----
-6

skipif mysql # not compatible
query I rowsort label-9784
SELECT COUNT ( * ) * COALESCE ( COALESCE ( + 8, - 91 ), 66 ) - 14
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT COUNT( * ) + - 56 + + 35
----
-20

skipif mysql # not compatible
query I rowsort label-9785
SELECT COUNT ( * ) + - 56 + + 35
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT MAX( DISTINCT - 10 ) * + 51 * - 12 * - + 22 * - 8 - - + 96 + + + 87
----
1077303

skipif mysql # not compatible
query I rowsort label-9786
SELECT MAX ( DISTINCT - 10 ) * + 51 * - 12 * - + 22 * - 8 - - + 96 + + + 87
----
1077303

query II rowsort
SELECT 24 AS col0, + 36
----
24
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT COUNT( * ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9788
SELECT COUNT ( * ) / + - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT CASE ( + AVG ( 14 ) ) WHEN 92 THEN NULL ELSE - + 28 END * + ( - 19 )
----
532

onlyif mysql # aggregate syntax: 
query II rowsort label-9790
SELECT ALL - MIN( ALL + 58 ) + - 10 * - ( + - 1 ) + - 47, 57 + 38 AS col2
----
-115
95

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL - MIN ( ALL + 58 ) + - 10 * - ( + - 1 ) + - 47, 57 + 38 AS col2
----
-115
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9791
SELECT COUNT( * ) DIV - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9791
SELECT COUNT ( * ) / - 28 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9792
SELECT DISTINCT - 81 + - 72 + + 71 + 94 * - 8 + COUNT( * ), 57 * - + AVG ( + + 60 ) * + - COUNT( 37 ) * + 27 + - CAST( + COUNT( ALL + COALESCE ( - 59, - 86 ) ) AS SIGNED ) + - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
-833
NULL

skipif mysql # not compatible
query II rowsort label-9792
SELECT DISTINCT - 81 + - 72 + + 71 + 94 * - 8 + COUNT ( * ), 57 * - + AVG ( + + 60 ) * + - COUNT ( 37 ) * + 27 + - CAST ( + COUNT ( ALL + COALESCE ( - 59, - 86 ) ) AS INTEGER ) + - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
-833
NULL

query I rowsort
SELECT ALL 23 + 96
----
119

query I rowsort
SELECT 46 + - - 63 - 89 * - + 4 + - 36
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT ALL - COUNT( - - 57 ) + + 78 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL - COUNT ( - - 57 ) + + 78 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT 20 DIV 8 * + 41 col1
----
82

skipif mysql # not compatible
query I rowsort label-9796
SELECT 20 / 8 * + 41 col1
----
82

query II rowsort
SELECT ( + 80 ) + + + 16 AS col1, - 69
----
96
-69

query I rowsort
SELECT ALL 87 + + 16
----
103

query I rowsort
SELECT 36 + 14 AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT ALL 99, COUNT( * ) AS col2
----
99
1

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL 99, COUNT ( * ) AS col2
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT COALESCE ( + ( - COUNT( * ) ), - + 10 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT COALESCE ( + ( - COUNT ( * ) ), - + 10 ) AS col2
----
-1

query I rowsort
SELECT ALL + NULLIF ( + - 40, - 48 ) + + 98
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT - SUM( DISTINCT 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9803
SELECT - SUM ( DISTINCT 85 ) AS col1
----
-85

query II rowsort
SELECT - 87, 53 AS col2
----
-87
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL MIN( ALL + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL MIN ( ALL + 53 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9806
SELECT DISTINCT 63 + - - ( - 49 ) DIV - COUNT( * ) + + 95
----
207

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT 63 + - - ( - 49 ) / - COUNT ( * ) + + 95
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL + 58 * + COUNT( * ) + + 60
----
118

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + 58 * + COUNT ( * ) + + 60
----
118

query I rowsort
SELECT + + 52 + 25 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT ALL COUNT( * ) * - + 24 - - COUNT( * ) + + - CAST( NULL AS SIGNED ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL COUNT ( * ) * - + 24 - - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * 29
----
NULL

query I rowsort
SELECT ALL + ( - - 82 ) col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT 77 * - 73 * + - 13 * 44 * - 70 * COUNT( * ) + - COUNT( * ) + 61 + - 17
----
-225064797

skipif mysql # not compatible
query I rowsort label-9811
SELECT 77 * - 73 * + - 13 * 44 * - 70 * COUNT ( * ) + - COUNT ( * ) + 61 + - 17
----
-225064797

query I rowsort
SELECT + + 8 * + + 77 + ( - 21 ) + 91
----
686

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9813
SELECT + - 21 DIV - CAST( CAST( - 10 AS SIGNED ) AS SIGNED ) + - 91
----
-93

skipif mysql # not compatible
query I rowsort label-9813
SELECT + - 21 / - CAST ( CAST ( - 10 AS INTEGER ) AS INTEGER ) + - 91
----
-93

query I rowsort
SELECT ALL + - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9815
SELECT + ( - ( + 24 ) ) DIV + SUM( ALL + 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9815
SELECT + ( - ( + 24 ) ) / + SUM ( ALL + 50 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT - 47 * + SUM( + + 51 ) AS col1
----
-2397

skipif mysql # not compatible
query I rowsort label-9816
SELECT - 47 * + SUM ( + + 51 ) AS col1
----
-2397

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT + 63 DIV + 28 + - ( - 53 ) * - 73 + + ( + 44 ) AS col2
----
-3823

skipif mysql # not compatible
query I rowsort label-9817
SELECT + 63 / + 28 + - ( - 53 ) * - 73 + + ( + 44 ) AS col2
----
-3823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT + - 25 DIV - + ( + COUNT( * ) ) - - 64
----
89

skipif mysql # not compatible
query I rowsort label-9818
SELECT + - 25 / - + ( + COUNT ( * ) ) - - 64
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT DISTINCT + + 42 DIV + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + + 42 / + 51 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT DISTINCT + - CASE MAX( - 38 ) WHEN - + CAST( NULL AS SIGNED ) + - + 67 THEN + + 91 WHEN - + 14 + - + 5 - - 37 - + 32 * + 24 / + + 26 + + - 81 THEN - 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT + - CASE MAX ( - 38 ) WHEN - + CAST ( NULL AS INTEGER ) + - + 67 THEN + + 91 WHEN - + 14 + - + 5 - - 37 - + 32 * + 24 / + + 26 + + - 81 THEN - 21 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT ALL + CAST( + - COUNT( DISTINCT + - 73 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL + CAST ( + - COUNT ( DISTINCT + - 73 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL + 81 * + 20 AS col1
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT - MAX( DISTINCT + 93 ) * + + 78 * - NULLIF ( 80, 26 * - 33 * + COUNT( * ) * + - COUNT( * ) * - 30 * - 41 ) + 88
----
580408

skipif mysql # not compatible
query I rowsort label-9824
SELECT - MAX ( DISTINCT + 93 ) * + + 78 * - NULLIF ( 80, 26 * - 33 * + COUNT ( * ) * + - COUNT ( * ) * - 30 * - 41 ) + 88
----
580408

query II rowsort
SELECT 89 AS col0, ( - - 53 ) + + NULLIF ( - COALESCE ( 35, - 58 ), 18 )
----
89
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT + 93 * + CASE - ( - COUNT( * ) ) WHEN - ( COUNT( * ) ) - + 53 * + ( NULLIF ( - 35, + - 84 ) ) THEN + COALESCE ( - 4, - 98 + 2 - ( + 62 ) + + 68 * 82 ) + - + 52 + - - 49 WHEN + 15 * COUNT( * ) + + + SUM( ALL + - 65 ) / - 76 + - 56 THEN NULL ELSE COUNT( - + 96 ) END - 52 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9826
SELECT + 93 * + CASE - ( - COUNT ( * ) ) WHEN - ( COUNT ( * ) ) - + 53 * + ( NULLIF ( - 35, + - 84 ) ) THEN + COALESCE ( - 4, - 98 + 2 - ( + 62 ) + + 68 * 82 ) + - + 52 + - - 49 WHEN + 15 * COUNT ( * ) + + + SUM ( ALL + - 65 ) / - 76 + - 56 THEN NULL ELSE COUNT ( - + 96 ) END - 52 AS col0
----
41

query I rowsort
SELECT + ( + 54 ) col1
----
54

query I rowsort
SELECT - 42 - + 5 AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9829
SELECT ALL + COALESCE ( + 34, - CAST( - COUNT( * ) AS SIGNED ) ) * + + 28 * + + 84
----
79968

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + COALESCE ( + 34, - CAST ( - COUNT ( * ) AS INTEGER ) ) * + + 28 * + + 84
----
79968

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT - 88 - + COUNT( * ) - - 54 + - 13 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9830
SELECT - 88 - + COUNT ( * ) - - 54 + - 13 AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT DISTINCT + COALESCE ( + 80, 28, - CAST( NULL AS SIGNED ) ) + - - 21 * + 17 * + ( + + 5 ) AS col0
----
1865

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT + COALESCE ( + 80, 28, - CAST ( NULL AS INTEGER ) ) + - - 21 * + 17 * + ( + + 5 ) AS col0
----
1865

query I rowsort
SELECT ALL + 4 + + 79 col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9833
SELECT - SUM( DISTINCT + 4 ) * - + ( + + 27 ), + ( - 16 ) AS col1
----
108
-16

skipif mysql # not compatible
query II rowsort label-9833
SELECT - SUM ( DISTINCT + 4 ) * - + ( + + 27 ), + ( - 16 ) AS col1
----
108
-16

query I rowsort
SELECT DISTINCT - 32 + 41 + + - 0 * + - 31
----
9

query I rowsort
SELECT ALL + 77 * + 88
----
6776

query I rowsort
SELECT DISTINCT - 50 + - - 86 + - 50 AS col0
----
-14

query II rowsort
SELECT ALL - 78 * - + 30 AS col1, 74 - - - 8 * + + 22 AS col0
----
2340
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-9838
SELECT + 95 DIV - 60 + - ( + 32 ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-9838
SELECT + 95 / - 60 + - ( + 32 ) col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT MAX( DISTINCT 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT MAX ( DISTINCT 15 ) AS col0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9840
SELECT ( COALESCE ( - - 51, - CASE - 23 WHEN + + 51 + - - CAST( NULL AS DECIMAL ) + + 8 * 56 THEN NULL WHEN ( - - 28 ) * - + 57 * 11 THEN NULL ELSE + ( - 3 ) END ) )
----
51

skipif mysql # not compatible
query I rowsort label-9840
SELECT ( COALESCE ( - - 51, - CASE - 23 WHEN + + 51 + - - CAST ( NULL AS REAL ) + + 8 * 56 THEN NULL WHEN ( - - 28 ) * - + 57 * 11 THEN NULL ELSE + ( - 3 ) END ) )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9841
SELECT + + 45 DIV + - 15 - - + 91 + ( 51 ) + - + MAX( ALL - 55 ) + + + 31 * 68 + 36 * + 9 * + 39 * + 35
----
444562

skipif mysql # not compatible
query I rowsort label-9841
SELECT + + 45 / + - 15 - - + 91 + ( 51 ) + - + MAX ( ALL - 55 ) + + + 31 * 68 + 36 * + 9 * + 39 * + 35
----
444562

query II rowsort
SELECT DISTINCT + - ( - 73 ) AS col0, + 13 + 13 AS col1
----
73
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + - 96 * - COUNT( * ) + + + 75 + 11 * + - COUNT( * ) * 64 AS col0
----
-533

skipif mysql # not compatible
query I rowsort label-9843
SELECT + - 96 * - COUNT ( * ) + + + 75 + 11 * + - COUNT ( * ) * 64 AS col0
----
-533

query I rowsort
SELECT ALL - 85 * - ( + + 96 ) AS col2
----
8160

query I rowsort
SELECT + 11 - - + 25 + + 45 * 61 AS col1
----
2781

query I rowsort
SELECT DISTINCT - 41 * + 63 AS col2
----
-2583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9847
SELECT - - 44 DIV 64 - + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9847
SELECT - - 44 / 64 - + + COUNT ( * ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT + + 14 DIV 19 - - 11
----
11

skipif mysql # not compatible
query I rowsort label-9848
SELECT + + 14 / 19 - - 11
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT + 64 * 40 + ( + CAST( NULL AS SIGNED ) ) * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT + 64 * 40 + ( + CAST ( NULL AS INTEGER ) ) * 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT + 60 DIV + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9850
SELECT + 60 / + COUNT ( * )
----
60

query I rowsort
SELECT ALL + 2 * + 62 + - - 47 col2
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9852
SELECT ALL - ( + + COUNT( * ) ) * - + 70 - + ( + 94 ) * CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - ( + + COUNT ( * ) ) * - + 70 - + ( + 94 ) * CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 22 * - + ( + 61 ) + 67
----
-1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9854
SELECT - CAST( NULL AS SIGNED ) * - 65 + - - COUNT( * ) * + - 56 / - - CAST( + 25 AS SIGNED ) / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT - CAST ( NULL AS INTEGER ) * - 65 + - - COUNT ( * ) * + - 56 / - - CAST ( + 25 AS INTEGER ) / 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + ( - + NULLIF ( - 59, + 89 * 23 + - - 68 + - COUNT( * ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-9855
SELECT + ( - + NULLIF ( - 59, + 89 * 23 + - - 68 + - COUNT ( * ) ) )
----
59

query II rowsort
SELECT + 73 AS col1, + 8 AS col2
----
73
8

query I rowsort
SELECT + 94 + 38
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9858
SELECT CAST( NULL AS DECIMAL ) + + + 74 / - + ( 75 ) / 67 * - - CAST( NULL AS SIGNED ) / 67 * SUM( ALL + - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT CAST ( NULL AS REAL ) + + + 74 / - + ( 75 ) / 67 * - - CAST ( NULL AS INTEGER ) / 67 * SUM ( ALL + - 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT 81 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-9859
SELECT 81 * - COUNT ( * )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT 71 - - CAST( - 26 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-9860
SELECT 71 - - CAST ( - 26 AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT 46 * + ( COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT 46 * + ( COUNT ( * ) )
----
46

query II rowsort
SELECT DISTINCT 0, 4 col0
----
0
4

query I rowsort
SELECT 83 * - - 90 col1
----
7470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT 54 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT 54 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 66 + + - 63 + + + 94 * - 87 AS col1
----
-8175

query II rowsort
SELECT ALL + 10 AS col1, + 75
----
10
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT MAX( + + 98 ) + + COUNT( * ) + - 56 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9867
SELECT MAX ( + + 98 ) + + COUNT ( * ) + - 56 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + SUM( ( + 95 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9868
SELECT + SUM ( ( + 95 ) ) AS col2
----
95

query I rowsort
SELECT - - NULLIF ( + 11, + 15 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT 43 - - 19 + + 54 * 11 * - 42 * - COUNT( * ) col0
----
25010

skipif mysql # not compatible
query I rowsort label-9870
SELECT 43 - - 19 + + 54 * 11 * - 42 * - COUNT ( * ) col0
----
25010

query I rowsort
SELECT + 20 * - - 45
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT + ( COUNT( * ) ) - + 94
----
-93

skipif mysql # not compatible
query I rowsort label-9872
SELECT + ( COUNT ( * ) ) - + 94
----
-93

query I rowsort
SELECT ALL ( 54 )
----
54

query I rowsort
SELECT 92 + ( 54 ) + ( 19 ) AS col2
----
165

query I rowsort
SELECT DISTINCT - 36 * + 6
----
-216

query I rowsort
SELECT ALL - 3 * - 80
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT DISTINCT - MIN( ALL + 54 ) * - + 76 col2, - 87 AS col2
----
4104
-87

skipif mysql # not compatible
query II rowsort label-9877
SELECT DISTINCT - MIN ( ALL + 54 ) * - + 76 col2, - 87 AS col2
----
4104
-87

query I rowsort
SELECT + 16 * - 99 + + + 51 col0
----
-1533

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT MAX( ALL + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9879
SELECT MAX ( ALL + 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9880
SELECT DISTINCT - - NULLIF ( + 52, + MIN( DISTINCT 8 ) / - CAST( + 89 AS SIGNED ) )
----
52

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - - NULLIF ( + 52, + MIN ( DISTINCT 8 ) / - CAST ( + 89 AS INTEGER ) )
----
52

query I rowsort
SELECT ALL - - 28 + + 0 col0
----
28

query I rowsort
SELECT DISTINCT - CASE WHEN - 37 IS NULL THEN NULL ELSE - 48 * - 66 END
----
-3168

query I rowsort
SELECT ALL 7 + 77
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT 66 * + 68 * + 24 * + COALESCE ( + 77, 60, MIN( - 13 ) ) AS col0
----
8293824

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT 66 * + 68 * + 24 * + COALESCE ( + 77, 60, MIN ( - 13 ) ) AS col0
----
8293824

query I rowsort
SELECT DISTINCT 77 * + 74
----
5698

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9886
SELECT DISTINCT COALESCE ( - + CAST( - 99 AS SIGNED ), - 87, 49 ) + + 7 col2, + 19 DIV 29 * - 97
----
106
0

skipif mysql # not compatible
query II rowsort label-9886
SELECT DISTINCT COALESCE ( - + CAST ( - 99 AS INTEGER ), - 87, 49 ) + + 7 col2, + 19 / 29 * - 97
----
106
0

query I rowsort
SELECT 55 + - + 72 AS col1
----
-17

query I rowsort
SELECT DISTINCT 12 + COALESCE ( COALESCE ( - 98, 45 ), + 84 )
----
-86

query II rowsort
SELECT 83 col2, 21 * 58 AS col2
----
83
1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9890
SELECT 39 - - COUNT( * ) col2, CASE 51 WHEN - + NULLIF ( - + COUNT( * ), + 72 ) THEN + 8 + - + CAST( + + 82 AS SIGNED ) / - + 4 * + + 89 / + - 66 - 45 WHEN - SUM( DISTINCT - 34 ) THEN - - 32 WHEN - - 16 * + 61 + + - 88 THEN NULL ELSE NULL END + SUM( ALL ( 1 ) ) / - 75 + - 72 AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-9890
SELECT 39 - - COUNT ( * ) col2, CASE 51 WHEN - + NULLIF ( - + COUNT ( * ), + 72 ) THEN + 8 + - + CAST ( + + 82 AS INTEGER ) / - + 4 * + + 89 / + - 66 - 45 WHEN - SUM ( DISTINCT - 34 ) THEN - - 32 WHEN - - 16 * + 61 + + - 88 THEN NULL ELSE NULL END + SUM ( ALL ( 1 ) ) / - 75 + - 72 AS col2
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT 74 * - - COALESCE ( + - 8, 91 * MIN( DISTINCT - - 11 ), + NULLIF ( - CASE + + 3 WHEN + + 14 + COUNT( * ) - + COUNT( * ) - + ( + 1 ) * - 61 THEN - 68 WHEN 6 + - 11 THEN 55 ELSE NULL END, + 98 + 44 ) ) AS col1
----
-592

skipif mysql # not compatible
query I rowsort label-9891
SELECT 74 * - - COALESCE ( + - 8, 91 * MIN ( DISTINCT - - 11 ), + NULLIF ( - CASE + + 3 WHEN + + 14 + COUNT ( * ) - + COUNT ( * ) - + ( + 1 ) * - 61 THEN - 68 WHEN 6 + - 11 THEN 55 ELSE NULL END, + 98 + 44 ) ) AS col1
----
-592

query I rowsort
SELECT NULLIF ( 51, + + 14 + + 71 + + 76 + - + 44 ) - + + 5 - - - 99 AS col2
----
-53

query I rowsort
SELECT DISTINCT 58 - + 73 + - + 69 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT DISTINCT - 32 * - + COUNT( 40 )
----
32

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT - 32 * - + COUNT ( 40 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT DISTINCT 63 DIV - + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT 63 / - + 94 AS col1
----
0

query III rowsort
SELECT ALL 98 * 75 * + ( 50 ) AS col0, + ( + ( - 59 ) ) * 86 * 89 AS col2, + NULLIF ( NULLIF ( 27, - 5 * 93 ), + COALESCE ( + 86, + 5 ) + + + 5 ) AS col0
----
367500
-451586
27

query I rowsort
SELECT 64 * + + 7
----
448

query II rowsort
SELECT - - 68, - 96 AS col1
----
68
-96

query I rowsort
SELECT 11 + 51 - - COALESCE ( + + 7, - 68 * NULLIF ( + 12, + + 28 ), - ( - ( + CASE 25 WHEN + + 90 THEN - 56 WHEN + 80 * + + 82 THEN - - ( + 19 ) END ) ) ) * 30 - - + 63 AS col0
----
335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9900
SELECT DISTINCT CASE 55 WHEN + 5 THEN - 10 * - 6 END * + + COUNT( * ) AS col2, COUNT( ALL + CAST( NULL AS SIGNED ) ) * COUNT( * ) * + + 39
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9900
SELECT DISTINCT CASE 55 WHEN + 5 THEN - 10 * - 6 END * + + COUNT ( * ) AS col2, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * + + 39
----
NULL
0

query I rowsort
SELECT 58 + - 60 - - 15 * + + 37 AS col2
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL - 40 * - COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL - 40 * - COUNT ( * ) AS col2
----
40

query I rowsort
SELECT 60 * - - 9 AS col1
----
540

query II rowsort
SELECT + 96 AS col1, + 66 * + 86
----
96
5676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT DISTINCT - 7 * CAST( + 44 AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT - 7 * CAST ( + 44 AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9906
SELECT ALL 24 AS col2, + COUNT( * ), 22 + + 70 AS col0
----
24
1
92

skipif mysql # not compatible
query III rowsort label-9906
SELECT ALL 24 AS col2, + COUNT ( * ), 22 + + 70 AS col0
----
24
1
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9907
SELECT 59, 69 + - MIN( DISTINCT ( + 21 ) ) * + CASE - + 30 WHEN + ( - COUNT( * ) ) THEN CAST( + + 20 AS SIGNED ) * - 94 END + COUNT( * ) AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-9907
SELECT 59, 69 + - MIN ( DISTINCT ( + 21 ) ) * + CASE - + 30 WHEN + ( - COUNT ( * ) ) THEN CAST ( + + 20 AS INTEGER ) * - 94 END + COUNT ( * ) AS col1
----
59
NULL

query I rowsort
SELECT DISTINCT 59 + - 9
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT ALL COUNT( * ), 50 + + 9 AS col1
----
1
59

skipif mysql # not compatible
query II rowsort label-9909
SELECT ALL COUNT ( * ), 50 + + 9 AS col1
----
1
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT + COUNT( * ) AS col2, - 32
----
1
-32

skipif mysql # not compatible
query II rowsort label-9910
SELECT + COUNT ( * ) AS col2, - 32
----
1
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9911
SELECT ALL + + ( 16 ) + + 58 * + - 88 - 86 - + - COALESCE ( + - COUNT( * ), + 25 + + - 42 ) AS col0, + 95 - + COUNT( * )
----
-5175
94

skipif mysql # not compatible
query II rowsort label-9911
SELECT ALL + + ( 16 ) + + 58 * + - 88 - 86 - + - COALESCE ( + - COUNT ( * ), + 25 + + - 42 ) AS col0, + 95 - + COUNT ( * )
----
-5175
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9912
SELECT ( COUNT( * ) ) - + 90 + - 82 * 59 * + CAST( + 79 AS SIGNED ) col2
----
-382291

skipif mysql # not compatible
query I rowsort label-9912
SELECT ( COUNT ( * ) ) - + 90 + - 82 * 59 * + CAST ( + 79 AS INTEGER ) col2
----
-382291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT + CAST( NULL AS SIGNED ) * + 28 * - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT + CAST ( NULL AS INTEGER ) * + 28 * - - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL - CASE + 35 WHEN + NULLIF ( - 92, ( 15 ) ) * CASE COUNT( * ) WHEN 7 THEN + COUNT( * ) END THEN - SUM( DISTINCT - 11 ) * 69 + 46 ELSE NULL END / + NULLIF ( - + 18, - 76 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - CASE + 35 WHEN + NULLIF ( - 92, ( 15 ) ) * CASE COUNT ( * ) WHEN 7 THEN + COUNT ( * ) END THEN - SUM ( DISTINCT - 11 ) * 69 + 46 ELSE NULL END / + NULLIF ( - + 18, - 76 ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 93 + + 75 * + 78 - 63 + - 53 * NULLIF ( ( + + 54 ), + ( + 79 ) + - 13 + - + 26 ) AS col1
----
3018

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT - 85 DIV 26 + - - 51 + 72 + + - 85
----
35

skipif mysql # not compatible
query I rowsort label-9916
SELECT - 85 / 26 + - - 51 + 72 + + - 85
----
35

query II rowsort
SELECT - 87 + - 18 * - + 45 * + 27 AS col0, + 30 * + + 70 * - - 89
----
21783
186900

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL - MAX( - + 38 ) * - - 67 * + 60 + + 13 * COUNT( * ) * + 68 + 35 + + - COUNT( * )
----
153678

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL - MAX ( - + 38 ) * - - 67 * + 60 + + 13 * COUNT ( * ) * + 68 + 35 + + - COUNT ( * )
----
153678

query I rowsort
SELECT 52 col1
----
52

query I rowsort
SELECT ALL - + 42 * 55 * - 59 * - + 42 + - - 87 AS col0
----
-5724093

query I rowsort
SELECT 62 * - - 90 - 50
----
5530

query I rowsort
SELECT ALL + ( - - 93 ) * 21 AS col1
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT 20 * + 43 * + COUNT( * ) AS col0
----
860

skipif mysql # not compatible
query I rowsort label-9923
SELECT 20 * + 43 * + COUNT ( * ) AS col0
----
860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT 90 * + - 25 + - - COUNT( * ) + 32 * + CAST( NULL AS SIGNED ) * - - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT 90 * + - 25 + - - COUNT ( * ) + 32 * + CAST ( NULL AS INTEGER ) * - - 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT 59 + ( - + MAX( DISTINCT + - 13 ) ) * + MAX( DISTINCT - 78 )
----
-955

skipif mysql # not compatible
query I rowsort label-9925
SELECT 59 + ( - + MAX ( DISTINCT + - 13 ) ) * + MAX ( DISTINCT - 78 )
----
-955

query I rowsort
SELECT ALL + 15 * - + 64 - 83
----
-1043

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT SUM( ALL + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9927
SELECT SUM ( ALL + 80 )
----
80

query I rowsort
SELECT - 1 * + 79 + 74 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT SUM( DISTINCT ( 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-9929
SELECT SUM ( DISTINCT ( 96 ) )
----
96

query I rowsort
SELECT ALL + ( + ( - - 79 ) ) AS col2
----
79

query II rowsort
SELECT 54 * 33 + - + 33 + - 90 * NULLIF ( 16, + 35 ) AS col2, - ( 87 ) col0
----
309
-87

query I rowsort
SELECT ALL - 38 * - 58 - + - 77 AS col2
----
2281

query I rowsort
SELECT DISTINCT + 26 col2
----
26

query I rowsort
SELECT ALL + ( - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + 99 * - ( - SUM( 9 ) ) AS col0
----
891

skipif mysql # not compatible
query I rowsort label-9935
SELECT + 99 * - ( - SUM ( 9 ) ) AS col0
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL 11 * - MAX( + 27 )
----
-297

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL 11 * - MAX ( + 27 )
----
-297

onlyif mysql # aggregate syntax: 
query III rowsort label-9937
SELECT MAX( ALL + 74 ) AS col0, 91 AS col0, - + 28 AS col2
----
74
91
-28

skipif mysql # not compatible
query III rowsort label-9937
SELECT MAX ( ALL + 74 ) AS col0, 91 AS col0, - + 28 AS col2
----
74
91
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT DISTINCT - 73 * + 80, - MAX( DISTINCT - 87 ) col0
----
-5840
87

skipif mysql # not compatible
query II rowsort label-9938
SELECT DISTINCT - 73 * + 80, - MAX ( DISTINCT - 87 ) col0
----
-5840
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT + COUNT( ALL + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-9939
SELECT + COUNT ( ALL + 66 )
----
1

query I rowsort
SELECT ALL 57 * + 18 AS col1
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + CASE + 31 WHEN + CASE + - COUNT( * ) WHEN + COUNT( * ) * + + 72 / 51 * + COUNT( * ) * 34 THEN COUNT( * ) END - + 73 THEN - + MAX( - 96 ) + - 7 - + 15 / - 96 END * + 78 + + 39 * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT + CASE + 31 WHEN + CASE + - COUNT ( * ) WHEN + COUNT ( * ) * + + 72 / 51 * + COUNT ( * ) * 34 THEN COUNT ( * ) END - + 73 THEN - + MAX ( - 96 ) + - 7 - + 15 / - 96 END * + 78 + + 39 * 89 AS col2
----
NULL

query II rowsort
SELECT + 57 + + ( - + 40 ) AS col2, 17
----
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL + 78 + - 49 + - 23 * - + 2 + - - 4 + + COUNT( DISTINCT + 60 ) + + + 80 * NULLIF ( + 74, + - 47 - + 20 + - ( 17 ) * - COALESCE ( + COUNT( * ), COALESCE ( - 69, + COALESCE ( - + CASE - MAX( - 19 ) WHEN + 3 - MAX( DISTINCT - 62 ) THEN + + NULLIF ( - - 17, 75 ) + - 31 * - - 68 ELSE + 92 END, - 17 * + COUNT( * ) ) ) ) * + 34 ) * - ( + - 96 ) AS col1
----
568400

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + 78 + - 49 + - 23 * - + 2 + - - 4 + + COUNT ( DISTINCT + 60 ) + + + 80 * NULLIF ( + 74, + - 47 - + 20 + - ( 17 ) * - COALESCE ( + COUNT ( * ), COALESCE ( - 69, + COALESCE ( - + CASE - MAX ( - 19 ) WHEN + 3 - MAX ( DISTINCT - 62 ) THEN + + NULLIF ( - - 17, 75 ) + - 31 * - - 68 ELSE + 92 END, - 17 * + COUNT ( * ) ) ) ) * + 34 ) * - ( + - 96 ) AS col1
----
568400

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT COUNT( * ) + - + 37 + - - 42
----
6

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT COUNT ( * ) + - + 37 + - - 42
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT CASE 56 WHEN COUNT( * ) THEN + - COUNT( * ) - + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT CASE 56 WHEN COUNT ( * ) THEN + - COUNT ( * ) - + 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL + 98 + COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL + 98 + COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT + + MAX( DISTINCT - - 95 ) + - 71
----
24

skipif mysql # not compatible
query I rowsort label-9947
SELECT + + MAX ( DISTINCT - - 95 ) + - 71
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT ALL ( - ( + CASE - - 88 WHEN + 22 * - COALESCE ( + - ( - - ( + - 82 ) ), 81, - 10 * - + 30 - - - 11, + ( COUNT( * ) ) / - 26 * CASE WHEN ( NULL ) < - + CAST( NULL AS SIGNED ) THEN NULL ELSE + 19 END * + + 91 + - + 49 * - - CASE + MIN( DISTINCT + ( - + 61 ) ) WHEN 40 THEN NULL ELSE + CAST( + + ( - 65 ) AS SIGNED ) END + 89 - - 27 * - ( + + 33 ) ) * - + 89 - + 63 - - NULLIF ( 67, + 47 / + 24 ) THEN + AVG ( ALL 0 ) + ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ) END ) ) + + COUNT( ALL - 87 + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL ( - ( + CASE - - 88 WHEN + 22 * - COALESCE ( + - ( - - ( + - 82 ) ), 81, - 10 * - + 30 - - - 11, + ( COUNT ( * ) ) / - 26 * CASE WHEN ( NULL ) < - + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 19 END * + + 91 + - + 49 * - - CASE + MIN ( DISTINCT + ( - + 61 ) ) WHEN 40 THEN NULL ELSE + CAST ( + + ( - 65 ) AS INTEGER ) END + 89 - - 27 * - ( + + 33 ) ) * - + 89 - + 63 - - NULLIF ( 67, + 47 / + 24 ) THEN + AVG ( ALL 0 ) + ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) END ) ) + + COUNT ( ALL - 87 + 50 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9949
SELECT + + 23 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT + + 23 * CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT + 30 + + + 48 AS col1, + 11 AS col2
----
78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + NULLIF ( MIN( - + 44 ), + COUNT( * ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9951
SELECT + NULLIF ( MIN ( - + 44 ), + COUNT ( * ) ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL CASE - - 93 WHEN 76 THEN NULL WHEN - + ( - - 30 ) THEN NULL WHEN - - 49 + + COUNT( - 44 ) * - COUNT( * ) - + - 19 * - 37 THEN NULL ELSE 1 END + + + 18 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL CASE - - 93 WHEN 76 THEN NULL WHEN - + ( - - 30 ) THEN NULL WHEN - - 49 + + COUNT ( - 44 ) * - COUNT ( * ) - + - 19 * - 37 THEN NULL ELSE 1 END + + + 18 AS col1
----
19

query I rowsort
SELECT + 44 + + 22 AS col0
----
66

query I rowsort
SELECT - ( + 79 ) - + 78 col0
----
-157

query I rowsort
SELECT + 58 + + - 60 col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9956
SELECT DISTINCT + 35 * NULLIF ( 28, + SUM( ALL + + 10 ) ), 95 * + 79 AS col2
----
980
7505

skipif mysql # not compatible
query II rowsort label-9956
SELECT DISTINCT + 35 * NULLIF ( 28, + SUM ( ALL + + 10 ) ), 95 * + 79 AS col2
----
980
7505

query I rowsort
SELECT ALL + - 41 + + + COALESCE ( - 93, - 12 ) col0
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9958
SELECT ALL - 2 * + 4 AS col2, - NULLIF ( + - 82, - 23 ) * - COUNT( * ) + - + 27 DIV + + ( - 71 ) + + 66 * - + 34 AS col2
----
-8
-2326

skipif mysql # not compatible
query II rowsort label-9958
SELECT ALL - 2 * + 4 AS col2, - NULLIF ( + - 82, - 23 ) * - COUNT ( * ) + - + 27 / + + ( - 71 ) + + 66 * - + 34 AS col2
----
-8
-2326

query I rowsort
SELECT DISTINCT + 88 col1
----
88

query I rowsort
SELECT + ( 29 )
----
29

query I rowsort
SELECT ( - 4 ) AS col1
----
-4

query I rowsort
SELECT - 71 + - + NULLIF ( + 86, - - 87 * 98 + + 82 ) * + 64 AS col0
----
-5575

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT ALL ( + 64 ) DIV 34 + + 79 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL ( + 64 ) / 34 + + 79 AS col1
----
80

query I rowsort
SELECT DISTINCT + 32 * 52
----
1664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL + 59 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + 59 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9966
SELECT - ( 93 ) DIV + + ( + 7 ) + - 42
----
-55

skipif mysql # not compatible
query I rowsort label-9966
SELECT - ( 93 ) / + + ( + 7 ) + - 42
----
-55

query I rowsort
SELECT DISTINCT + 41 * 92 AS col1
----
3772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT ALL - 87 * + CAST( 66 AS SIGNED ) AS col0
----
-5742

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL - 87 * + CAST ( 66 AS INTEGER ) AS col0
----
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT - ( - - 6 ) * - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9969
SELECT - ( - - 6 ) * - COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - COUNT( * ) - - + 38 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9970
SELECT - COUNT ( * ) - - + 38 AS col1
----
37

query II rowsort
SELECT + NULLIF ( + - 52, + 38 ), 43 AS col0
----
-52
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT - CAST( NULL AS SIGNED ) - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT - CAST ( NULL AS INTEGER ) - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL + ( - CASE - + 3 WHEN - 88 THEN NULL WHEN + 14 + - COUNT( * ) THEN NULL ELSE - 54 END ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + ( - CASE - + 3 WHEN - 88 THEN NULL WHEN + 14 + - COUNT ( * ) THEN NULL ELSE - 54 END ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9974
SELECT NULLIF ( - - COALESCE ( - 7, CASE + MIN( ALL + 3 ) WHEN + COUNT( * ) THEN - + 48 + + 8 + + + 60 WHEN - 37 THEN 7 DIV + - NULLIF ( + - 28, 51 ) ELSE NULL END, + - 98 ), CAST( + + ( + 80 ) AS SIGNED ) ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-9974
SELECT NULLIF ( - - COALESCE ( - 7, CASE + MIN ( ALL + 3 ) WHEN + COUNT ( * ) THEN - + 48 + + 8 + + + 60 WHEN - 37 THEN 7 / + - NULLIF ( + - 28, 51 ) ELSE NULL END, + - 98 ), CAST ( + + ( + 80 ) AS INTEGER ) ) col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL 83 * - + 89 * + - ( + + 45 ) + CASE + + SUM( 44 ) WHEN + COUNT( ALL + 30 ) THEN NULL WHEN 97 THEN - 51 + SUM( DISTINCT 21 ) + - 98 * - 68 - + - 86 WHEN + 42 THEN - 19 * + - 12 * 36 * + - 71 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL 83 * - + 89 * + - ( + + 45 ) + CASE + + SUM ( 44 ) WHEN + COUNT ( ALL + 30 ) THEN NULL WHEN 97 THEN - 51 + SUM ( DISTINCT 21 ) + - 98 * - 68 - + - 86 WHEN + 42 THEN - 19 * + - 12 * 36 * + - 71 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - ( + 84 ) col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL - 57 * CASE - 41 WHEN + 66 THEN + + 52 WHEN - - 63 THEN + + 65 ELSE + + 21 + - 87 - + CASE - + CASE WHEN NOT - 18 >= - ( - - 28 ) THEN NULL ELSE - + ( + + COUNT( * ) ) * - 57 * ( - COUNT( * ) ) + - + 39 - - + AVG ( ALL - 33 ) END WHEN - + 64 THEN + 13 ELSE - 63 * 16 END END + + 8
----
-53686

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - 57 * CASE - 41 WHEN + 66 THEN + + 52 WHEN - - 63 THEN + + 65 ELSE + + 21 + - 87 - + CASE - + CASE WHEN NOT - 18 >= - ( - - 28 ) THEN NULL ELSE - + ( + + COUNT ( * ) ) * - 57 * ( - COUNT ( * ) ) + - + 39 - - + AVG ( ALL - 33 ) END WHEN - + 64 THEN + 13 ELSE - 63 * 16 END END + + 8
----
-53686

query I rowsort
SELECT - + 36 * - 44 AS col2
----
1584

query I rowsort
SELECT ALL 59 + - + ( + 79 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT + - CASE 2 WHEN + - 54 THEN NULL WHEN COUNT( * ) + + 55 * 24 THEN 14 END + + - 40 / + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT + - CASE 2 WHEN + - 54 THEN NULL WHEN COUNT ( * ) + + 55 * 24 THEN 14 END + + - 40 / + 5
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + 21 AS col2
----
1344

query I rowsort
SELECT ALL - 6 + - - 79 AS col1
----
73

query I rowsort
SELECT DISTINCT + CASE 43 WHEN + + 39 - + + 84 * + - 88 THEN + + 73 - + AVG ( DISTINCT + - 66 ) ELSE + 24 END col0
----
24

query I rowsort
SELECT - - ( - 7 ) AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL CAST( - + ( + 15 ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL CAST ( - + ( + 15 ) AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT - COUNT( * ) + + + 28 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9986
SELECT - COUNT ( * ) + + + 28 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9987
SELECT DISTINCT ( MIN( DISTINCT - + 20 ) ) DIV - 83, + 6 DIV + 35 * 86 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-9987
SELECT DISTINCT ( MIN ( DISTINCT - + 20 ) ) / - 83, + 6 / + 35 * 86 AS col1
----
0
0

query II rowsort
SELECT + 16 AS col0, + 48 * - 95
----
16
-4560

query I rowsort
SELECT 48 - ( - 41 ) + 77
----
166

query I rowsort
SELECT ( 85 ) * + 45 * + + 2 - - - 22 + - 73 + - ( - 15 ) AS col0
----
7570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT 91 / - - CAST( NULL AS SIGNED ) + - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT 91 / - - CAST ( NULL AS INTEGER ) + - - 38
----
NULL

query II rowsort
SELECT CASE + + 43 WHEN + + 22 THEN + - 99 END + 36, - 73 AS col2
----
NULL
-73

query I rowsort
SELECT ALL ( - + 61 ) * 22
----
-1342

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9994
SELECT + ( + CASE - ( - - 40 ) WHEN - 5 * - 49 + COUNT( - 26 ) THEN NULL ELSE 67 END ) DIV + COUNT( * ) DIV COUNT( - + 30 ) + COUNT( * ) + 51 * - 9, + 82 col2
----
-391
82

skipif mysql # not compatible
query II rowsort label-9994
SELECT + ( + CASE - ( - - 40 ) WHEN - 5 * - 49 + COUNT ( - 26 ) THEN NULL ELSE 67 END ) / + COUNT ( * ) / COUNT ( - + 30 ) + COUNT ( * ) + 51 * - 9, + 82 col2
----
-391
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT ( + CAST( 88 AS SIGNED ) ) * - 80 AS col1
----
-7040

skipif mysql # not compatible
query I rowsort label-9995
SELECT ( + CAST ( 88 AS INTEGER ) ) * - 80 AS col1
----
-7040

query I rowsort
SELECT 90 * + - 7
----
-630

query I rowsort
SELECT 93 + 49 + - 76 AS col0
----
66

query I rowsort
SELECT ALL + 28 + 2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT + MIN( DISTINCT - - 6 ) * + 94 + 98 + 83 * + 28 col0
----
2986

skipif mysql # not compatible
query I rowsort label-9999
SELECT + MIN ( DISTINCT - - 6 ) * + 94 + 98 + 83 * + 28 col0
----
2986

